/* TAP5 public commerce homepage. Shared tokens/components provide the base. */
html { scroll-behavior: smooth; }
html { min-height: 100%; overflow-y: auto; } body.tap5-home { margin: 0; min-height: 100%; overflow-x: clip; overflow-y: auto; background: #080807; }
.tap5-home h1, .tap5-home h2, .tap5-home h3, .tap5-home p { margin-top: 0; }
.tap5-home a { text-decoration: none; }
.tap5-home a.tap5-button { color: var(--tap5-black); }
.tap5-home button, .tap5-home input { font: inherit; }
.tap5-home .skip-link { position: fixed; top: -5rem; left: 1rem; z-index: 1000; padding: .7rem 1rem; background: var(--tap5-gold); color: #080807; border-radius: .4rem; }
.tap5-home .skip-link:focus { top: 1rem; }
.public-header { position: relative; z-index: 30; border-bottom: 1px solid rgb(255 255 255 / 8%); background: #0a0a09; }
.public-nav { min-height: 76px; gap: 2rem; }
.wordmark { display: inline-flex; align-items: center; gap: .75rem; color: #f6f1e6 !important; font-size: 1.35rem; font-weight: 800; letter-spacing: .16em; white-space: nowrap; }
.wordmark sup { position: relative; top: -.35em; margin-left: .15em; color: var(--tap5-gold); font-size: .45em; letter-spacing: 0; }
.wordmark-symbol { display: grid; place-items: center; position: relative; width: 2.2rem; height: 2.2rem; border: 1px solid rgb(216 184 113 / 65%); border-radius: .45rem; color: var(--tap5-gold); font-size: .9rem; letter-spacing: -.15em; background: linear-gradient(145deg, rgb(216 184 113 / 15%), transparent); }
.wordmark-symbol span { color: #f6f1e6; }
.public-links { flex: 1; justify-content: center; gap: clamp(.8rem, 2vw, 2rem); }
.public-links a, .header-signout { color: #c6c1b5; font-size: .83rem; font-weight: 600; white-space: nowrap; transition: color .18s ease; }
.public-links a:hover, .header-signout:hover { color: var(--tap5-gold); }
.public-actions { display: flex; align-items: center; gap: 1.2rem; margin-left: auto; }
.header-account { display: inline-flex; align-items: center; gap: .75rem; min-height: 44px; padding: .68rem .9rem; border: 1px solid rgb(216 184 113 / 60%); border-radius: .55rem; color: var(--tap5-gold) !important; font-size: .82rem; font-weight: 750; white-space: nowrap; transition: background .18s ease; }
.header-account:hover { background: rgb(216 184 113 / 10%); }
[hidden] { display: none !important; }
.mobile-session-link, .nav-toggle { display: none !important; }
.hero-wrap { padding: 1rem 0 0; }
.home-hero { position: relative; min-height: min(800px, calc(100svh - 92px)); overflow: hidden; border: 1px solid rgb(216 184 113 / 20%); border-radius: 1.25rem; isolation: isolate; background: #15140f; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 52% center; }
.hero-vignette { position: absolute; inset: 0; background: linear-gradient(90deg, #0c0c0be8 0%, #0b0b0bcc 31%, #0b0b0b57 59%, #0b0b0b9c 100%), linear-gradient(0deg, #080807 0%, transparent 25%, transparent 76%, #08080743 100%); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 380px); align-items: center; gap: clamp(1.5rem, 4vw, 5rem); min-height: inherit; padding: clamp(2rem, 5vw, 5.5rem); padding-bottom: 6rem; }
.hero-copy { max-width: 47rem; }
.eyebrow { color: var(--tap5-gold); font-size: .69rem; font-weight: 800; letter-spacing: .21em; line-height: 1.5; }
.eyebrow-line { display: inline-block; width: 1.8rem; height: 1px; margin: 0 .6rem .25rem 0; background: var(--tap5-gold); }
.hero-copy h1 { margin: 1.4rem 0 1.5rem; color: #fffaf0; font-size: clamp(3.65rem, 6.3vw, 7rem); font-weight: 650; letter-spacing: -.075em; line-height: .99; text-wrap: balance; }
.hero-copy h1 em, .story-grid h2 em { color: var(--tap5-gold); font-style: normal; }
.hero-description { max-width: 30rem; color: #e2ded4; font-size: clamp(.98rem, 1.35vw, 1.12rem); line-height: 1.7; }
.hero-install { display: flex; align-items: center; gap: .8rem; min-height: 0; margin-top: 1rem; }
.hero-install small { max-width: 18rem; color: #c8beac; font-size: .72rem; line-height: 1.4; }
.hero-install .tap5-button[hidden] + small { display: none; }
.location-finder { position:relative; max-width:33rem; margin-top:1.5rem; }
.location-finder label { display:block; margin-bottom:.55rem; color:#f1e4c6; font-size:.78rem; font-weight:700; }
.location-search-row { display:flex; align-items:center; gap:.6rem; min-height:54px; padding:.25rem .25rem .25rem .9rem; border:1px solid #e2c686; border-radius:.75rem; background:#f8f5ed; color:#2d2a24; box-shadow:0 12px 38px #0008; }
.location-search-row>span { font-size:1.5rem; line-height:1; color:#a97727; }
.location-search-row input { flex:1; min-width:0; height:44px; border:0; outline:0; background:transparent; color:#17140d; font-size:.9rem; }
.location-search-row input::placeholder { color:#615f59; }
.location-search-row:focus-within { outline:3px solid #e6bb62; outline-offset:3px; }
.location-search-row button { min-width:80px; min-height:44px; border:0; border-radius:.55rem; background:linear-gradient(140deg,#f5dda7,#c69a4b); color:#17120b; font-weight:800; cursor:pointer; }
.location-search-row button:hover { filter:brightness(1.07); }
.location-current { min-height:44px; margin:.3rem 0 0; padding:0 .2rem; border:0; background:transparent; color:#f3d99d; font-size:.78rem; font-weight:700; cursor:pointer; text-decoration:underline; text-underline-offset:.25em; }
.location-message { margin:.15rem 0 0; color:#e0d8c7; font-size:.75rem; line-height:1.45; }
.location-results { position:absolute; top:calc(100% + .35rem); right:0; left:0; z-index:12; overflow:auto; max-height:19rem; padding:.35rem; border:1px solid #b89556; border-radius:.75rem; background:#191815; box-shadow:0 18px 44px #000b; }
.location-results button { display:grid; gap:.18rem; width:100%; min-height:52px; padding:.65rem .75rem; border:0; border-radius:.5rem; background:transparent; color:#fff7e7; text-align:left; cursor:pointer; }
.location-results button:hover,.location-results button:focus-visible { background:#4a3a20; outline:2px solid #e6bb62; }
.location-results small { color:#c9ba9d; }
.location-attribution { display:block; margin-top:.35rem; color:#f2e2bf; font-size:.7rem; }
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; margin-top: 2rem; }
.hero-primary { min-height: 52px; padding-inline: 1.35rem; }
.hero-secondary { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; color: #fff5e0 !important; font-size: .88rem; font-weight: 650; }
.hero-secondary:hover { color: var(--tap5-gold) !important; }
.hero-categories { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.5rem; }
.hero-categories a { display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; padding: .5rem .75rem; border: 1px solid rgb(216 184 113 / 38%); border-radius: .65rem; background: rgb(15 15 13 / 70%); backdrop-filter: blur(12px); color: #f7f0df; font-size: .76rem; font-weight: 700; }
.hero-categories a:hover, .hero-categories a:focus-visible { border-color: var(--tap5-gold); background: rgb(75 57 26 / 80%); }
.hero-categories a span { color: var(--tap5-gold); font-size: 1.15rem; }
.welcome-card { justify-self: end; width: 100%; max-width: 380px; padding: clamp(1.35rem, 2.5vw, 2rem); background: rgb(17 17 15 / 83%); border-color: rgb(216 184 113 / 31%); box-shadow: 0 22px 70px rgb(0 0 0 / 48%), inset 0 1px rgb(255 255 255 / 9%); }
.card-kicker { margin-bottom: .75rem; color: var(--tap5-gold); font-size: .65rem; font-weight: 800; letter-spacing: .22em; }
.welcome-card h2 { margin-bottom: .55rem; font-size: clamp(1.8rem, 2.5vw, 2.45rem); font-weight: 650; letter-spacing: -.045em; line-height: 1.16; }
.card-lede { margin-bottom: 1.3rem; color: #d2ccc0; font-size: .86rem; line-height: 1.5; }
.google-button { width: 100%; min-height: 48px; background: #f7f4ed; border-color: #f7f4ed; color: #171713; font-size: .9rem; }
.google-button:hover:not(:disabled) { background: #fff; }
.google-letter { display: inline-grid; place-items: center; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: #fff; color: #4285f4; font-size: 1.1rem; font-weight: 800; }
.google-hint { margin: .65rem 0 1.1rem; color: #bdb7ab; font-size: .71rem; line-height: 1.45; }
.auth-divider { display: flex; align-items: center; gap: .7rem; margin: 1.05rem 0; color: #aaa59a; font-size: .68rem; white-space: nowrap; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: rgb(255 255 255 / 17%); }
.home-signin { display: grid; gap: .8rem; }
.home-signin .tap5-label { color: #e8e4da; font-size: .75rem; }
.home-signin .tap5-input { min-height: 46px; border-color: rgb(255 255 255 / 19%); background: rgb(9 9 8 / 78%); font-size: .85rem; }
.home-signin .tap5-input::placeholder { color: #8f8c83; }
.password-wrap { position: relative; display: block; }
.password-wrap .tap5-input { padding-right: 4.3rem; }
.password-toggle { position: absolute; top: 50%; right: .35rem; transform: translateY(-50%); min-width: 44px; min-height: 44px; padding: .2rem .55rem; border: 0; border-radius: .35rem; background: transparent; color: var(--tap5-gold); font-size: .72rem !important; font-weight: 750 !important; cursor: pointer; }
.card-main-action { width: 100%; justify-content: space-between; min-height: 46px; margin-top: .4rem; font-size: .85rem; }
.card-text-link { display: block; margin-top: 1rem; text-align: center; font-size: .82rem; }
.auth-help { margin: 1rem 0 0; color: #a9a398; font-size: .7rem; text-align: center; }
.auth-help a { text-decoration: underline; text-underline-offset: 2px; }
.auth-error { margin: .9rem 0 0; padding: .65rem .75rem; border: 1px solid var(--tap5-danger); border-radius: .5rem; background: rgb(115 31 31 / 24%); color: #ffd1ce; font-size: .76rem; }
.hero-bottom { position: absolute; right: clamp(2rem, 5vw, 5.5rem); bottom: 2rem; left: clamp(2rem, 5vw, 5.5rem); z-index: 1; display: flex; justify-content: space-between; color: #d8cdb7; font-size: .6rem; font-weight: 700; letter-spacing: .18em; }
.discovery-section { padding-block: clamp(5rem, 9vw, 9rem); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 2.2rem; }
.section-heading h2, .story-grid h2, .closing-panel h2 { margin-bottom: 0; font-size: clamp(2.5rem, 4.5vw, 4.5rem); font-weight: 600; letter-spacing: -.06em; line-height: 1.08; }
.section-heading > p { max-width: 22rem; margin-bottom: .35rem; color: var(--tap5-muted); font-size: .91rem; line-height: 1.6; }
.discovery-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 1rem; }
.discovery-card { position: relative; display: block; min-width: 0; min-height: 29rem; overflow: hidden; border: 1px solid rgb(216 184 113 / 24%); border-radius: 1rem; background: #202019; color: #fff !important; }
.discovery-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.discovery-card:hover img { transform: scale(1.045); }
.discovery-food img { object-position: 58% center; }
.discovery-essentials img { object-position: 50% center; }
.discovery-health img { object-position: 50% center; }
.discovery-overlay { position: absolute; inset: 0; background: linear-gradient(0deg, #080807e8 0%, #0808077a 45%, #08080712 100%); }
.discovery-content { position: absolute; right: 1.5rem; bottom: 1.6rem; left: 1.5rem; display: grid; gap: .7rem; }
.discovery-content small { color: var(--tap5-gold); font-size: .7rem; font-weight: 800; letter-spacing: .16em; }
.discovery-content strong { font-size: clamp(1.6rem, 2.6vw, 2.5rem); font-weight: 600; letter-spacing: -.05em; line-height: 1.1; }
.discovery-content > span { display: flex; justify-content: space-between; align-items: center; padding-top: .8rem; border-top: 1px solid rgb(255 255 255 / 35%); font-size: .8rem; font-weight: 650; }
.story-section { padding-block: clamp(5rem, 8vw, 8rem); border-block: 1px solid var(--tap5-line); background: radial-gradient(circle at 20% 50%, rgb(167 128 56 / 11%), transparent 40%), #11110e; }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 7vw, 8rem); }
.story-grid h2 { margin-top: 1.3rem; }
.story-list article { display: grid; grid-template-columns: 2rem 1fr; gap: 1.2rem; padding: 1.4rem 0; border-bottom: 1px solid var(--tap5-line); }
.story-list article:first-child { padding-top: 0; }
.story-list article > span { color: var(--tap5-gold); font-size: .73rem; font-weight: 800; }
.story-list h3 { margin-bottom: .4rem; font-size: 1.12rem; font-weight: 650; }
.story-list p { margin-bottom: 0; color: var(--tap5-muted); font-size: .9rem; line-height: 1.6; }
.closing-section { padding-block: clamp(5rem, 8vw, 8rem); }
.closing-panel { display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding: clamp(2rem, 5vw, 4.5rem); border: 1px solid var(--tap5-line); border-radius: 1.25rem; background: linear-gradient(120deg, #242117, #11110f 66%); }
.closing-panel h2 { margin: .8rem 0; }
.closing-panel p:last-child { margin-bottom: 0; color: var(--tap5-muted); }
.closing-panel .tap5-button { flex: 0 0 auto; }
.public-footer { border-top: 1px solid var(--tap5-line); background: #0b0b09; }
.footer-inner { display: grid; grid-template-columns: 1fr 1fr auto; gap: 2rem; align-items: start; padding-block: 3rem; }
.footer-wordmark { font-size: 1.2rem; }
.footer-inner p, .footer-inner > span { color: var(--tap5-muted); font-size: .78rem; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; }
.footer-inner nav a { color: #d3cdc0; font-size: .82rem; }
.footer-inner nav a:hover { color: var(--tap5-gold); }
.tap5-home .concierge-fab { width: 58px; height: 58px; border: 1px solid #f7d58d; border-radius: 18px; color: #17130c; background: linear-gradient(145deg, #f5dda7, #b88a3c); box-shadow: 0 12px 34px rgb(0 0 0 / 40%); transform: none; }
.tap5-home .concierge-fab:hover { transform: translateY(-3px); box-shadow: 0 17px 38px rgb(0 0 0 / 45%); }
.tap5-home .concierge-fab svg { width: 29px; height: 29px; }
.tap5-home .concierge-fab span { display: none; }
.tap5-home .concierge-close, .tap5-home .concierge-lang, .tap5-home .concierge-compose button { min-height: 44px; }
@media (max-width: 1050px) {
  .public-links { gap: .85rem; }
  .public-links a { font-size: .77rem; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(300px, 350px); gap: 1.3rem; padding-inline: 2.5rem; }
  .hero-copy h1 { font-size: clamp(3.3rem, 6vw, 5rem); }
}
@media (max-width: 899px) {
  html { scroll-behavior: auto; }
  .public-nav { min-height: 64px; }
  .public-links { display: none; }
  .tap5-home .tap5-nav[data-open='true'] .public-links { display: grid; position: fixed; top: 64px; left: auto; right: 0; width: min(86vw, 22rem); max-height: calc(100dvh - 64px); overflow-y: auto; gap: 0; padding: 1rem; border: 1px solid rgb(216 184 113 / 36%); border-radius: 0 0 0 1rem; background: #11110ff2; box-shadow: -20px 18px 45px #000a; }
  .tap5-home .tap5-nav[data-open='true'] .public-links a { padding: .8rem 1rem; font-size: .91rem; }
  .mobile-session-link:not([hidden]) { display: block !important; }
  .nav-toggle { display: grid !important; align-content: center; justify-items: center; gap: 5px; width: 44px; height: 44px; padding: 0; border: 1px solid var(--tap5-line); border-radius: .55rem; background: #171713; cursor: pointer; }
  .nav-toggle span { display: block; width: 18px; height: 1.5px; background: var(--tap5-gold); }
  .header-signout { display: none; }
  .header-account { min-height: 44px; padding: .65rem .7rem; font-size: .75rem; }
  .wordmark { font-size: 1.18rem; }
  .wordmark-symbol { width: 2rem; height: 2rem; }
  .public-actions { gap: .5rem; }
  .hero-wrap { padding-top: 0; }
  .hero-wrap > .tap5-container { width: 100%; }
  .home-hero { min-height: auto; border: 0; border-radius: 0; }
  .hero-photo { height: 27rem; object-position: 66% 25%; }
  .hero-vignette { background: linear-gradient(0deg, #080807 0%, #080807 25%, #08080777 58%, #08080748 100%); }
  .hero-grid { display: flex; flex-direction: column; align-items: stretch; gap: 1.3rem; padding: 2rem 1rem 3rem; }
  .hero-copy { display: flex; flex-direction: column; justify-content: end; min-height: 16rem; }
  .hero-copy h1 { margin: .7rem 0 .75rem; font-size: clamp(2.75rem, 10vw, 4.25rem); line-height: .98; }
  .hero-description { max-width: 26rem; margin-bottom: 0; font-size: .9rem; line-height: 1.5; }
  .hero-install { align-items: flex-start; flex-direction: column; margin-top: .8rem; }
  .location-finder { margin-top:1.15rem; }
  .location-search-row { min-height:50px; }
  .location-search-row button { min-width:72px; }
  .hero-ctas { margin-top: 1.15rem; }
  .hero-primary { min-height: 46px; }
  .hero-categories { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .35rem; margin-top: 1rem; }
  .hero-categories a { display: grid; justify-items: center; gap: .1rem; min-width: 0; padding: .45rem .1rem; font-size: .65rem; text-align: center; }
  .hero-secondary { display: none; }
  .welcome-card { max-width: none; justify-self: stretch; padding: 1.5rem; border-radius: 1rem; background: rgb(20 20 17 / 94%); }
  .welcome-card h2 { font-size: 1.8rem; }
  .hero-bottom { display: none; }
  .section-heading { display: block; }
  .section-heading > p { max-width: 30rem; margin-top: 1rem; }
  .discovery-section { padding-block: 4rem; }
  .discovery-grid { grid-template-columns: 1fr; }
  .discovery-card { min-height: 19rem; }
  .story-grid { grid-template-columns: 1fr; gap: 2rem; }
  .closing-panel { display: grid; gap: 1.5rem; }
  .closing-panel .tap5-button { justify-self: start; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.4rem; padding-bottom: calc(3rem + env(safe-area-inset-bottom)); }
  .footer-inner nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .tap5-home .concierge-fab { bottom: calc(16px + env(safe-area-inset-bottom)); }
  .tap5-home:not(.is-after-auth) .concierge-fab { opacity: 0; pointer-events: none; }
}
@media (max-width: 390px) {
  .wordmark { gap: .45rem; font-size: 1.02rem; }
  .header-account { font-size: .72rem; }
  .hero-copy h1 { font-size: clamp(2.7rem, 10vw, 3.4rem); }
  .hero-copy { min-height: 14rem; }
  .welcome-card { padding: 1.15rem; }
  .discovery-card { min-height: 17rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .discovery-card img, .tap5-home .concierge-fab { transition: none; }
}

/* Keep install CTAs truly hidden until pwa.js confirms installation is available. */
[data-tap5-install][hidden] { display: none !important; }

