/* ═══════════════════════════════════════════════════════════════
   Topa! marketing site — v2
   Speakeasy (dark) + Tiki menu (light) palette from the app tokens.
   Motion lives in js/site.js; everything here renders fine without it.
   ═══════════════════════════════════════════════════════════════ */

/* ─── Theme-morph properties (registered so they can transition) ── */
@property --page-bg    { syntax: '<color>'; inherits: true; initial-value: #171414; }
@property --page-fg    { syntax: '<color>'; inherits: true; initial-value: #F6F3EF; }
@property --page-muted { syntax: '<color>'; inherits: true; initial-value: #9A8F8A; }
@property --page-line  { syntax: '<color>'; inherits: true; initial-value: rgba(246,243,239,.12); }

:root {
  --ink:        #171414;   /* midnight */
  --ink-2:      #211D1C;
  --mahogany:   #2D2827;   /* mahoganyRoom */
  --barrel:     #4B413E;   /* barrelWood */
  --cream:      #F6F3EF;   /* creamSand */
  --tiki:       #F0ECE8;
  --warm-ink:   #2B2523;
  --warm-mid:   #6A5E59;
  --ash:        #9A8F8A;   /* cigarAsh */
  --orange:     #DC5E19;   /* burntOrange — primary CTA */
  --orange-2:   #EE7431;
  --golden:     #F6A623;   /* goldenSyrup */
  --yuzu:       #FFD166;
  --green:      #9FBF7A;   /* sugarcane */
  --teal:       #1E8F8A;   /* origin-story teal */

  --font-serif: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --font-sans:  'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --ease-out:   cubic-bezier(.16, 1, .3, 1);
  --ease-io:    cubic-bezier(.65, 0, .35, 1);
  --max:        1240px;
  --gutter:     clamp(16px, 4vw, 40px);
  --radius:     28px;
  --radius-sm:  16px;
  --section:    clamp(96px, 12vw, 176px);
  --nav-h:      72px;
}

/* Section themes. Without JS each section paints itself; with JS the
   body owns the colours and morphs between them as sections scroll by. */
.theme-dark  { --bg: var(--ink);  --fg: var(--cream);    --muted: var(--ash);      --line: rgba(246,243,239,.12); }
.theme-teal  { --bg: var(--teal); --fg: #fff;             --muted: rgba(255,255,255,.8); --line: rgba(255,255,255,.2); }
.theme-light { --bg: var(--tiki); --fg: var(--warm-ink); --muted: var(--warm-mid); --line: rgba(43,37,35,.12); }
main section[data-bg] { background: var(--bg); color: var(--fg); }

.morph body {
  background: var(--page-bg);
  color: var(--page-fg);
  transition: --page-bg .7s var(--ease-io), --page-fg .7s var(--ease-io),
              --page-muted .7s var(--ease-io), --page-line .7s var(--ease-io);
}
.morph body[data-theme="light"] { --page-bg: var(--tiki); --page-fg: var(--warm-ink); --page-muted: var(--warm-mid); --page-line: rgba(43,37,35,.12); }
.morph body[data-theme="teal"] { --page-bg: var(--teal); --page-fg: #fff; --page-muted: rgba(255,255,255,.8); --page-line: rgba(255,255,255,.2); }
.morph main section[data-bg]:not(.hero):not(.cta) {
  --bg: transparent; --fg: var(--page-fg); --muted: var(--page-muted); --line: var(--page-line);
  background: transparent;
}

/* ─── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html:not(.lenis) { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  background: var(--ink);
  color: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; } /* keep width/height attrs as an aspect hint, not a fixed height */
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--golden); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--orange); color: var(--cream); }

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  background: var(--cream); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 600;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ─── Type ──────────────────────────────────────────────────── */
.display, .h2, .h3, .statement-text { font-family: var(--font-serif); font-weight: 400; }
.display {
  font-size: clamp(2.9rem, 7.4vw, 6.6rem);
  line-height: .98;
  letter-spacing: -.028em;
}
/* Accent words in headings: upright, solid brand orange (no italics/gradients). */
.display em, .h2 em, .statement-text em { font-style: normal; color: var(--orange); }
.h2 {
  font-size: clamp(2.2rem, 4.6vw, 4rem);
  line-height: 1.04;
  letter-spacing: -.022em;
  max-width: 17ch;
  text-wrap: balance;
}
.h3 { font-size: clamp(1.45rem, 2.1vw, 1.9rem); line-height: 1.15; letter-spacing: -.01em; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.6; color: var(--muted); max-width: 40rem; }
.muted { color: var(--muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 20px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(220,94,25,.22); }
.link { color: var(--orange); font-weight: 500; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease-out); }
.link:hover { background-size: 100% 1px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--fg); }
.link-arrow span { transition: transform .4s var(--ease-out); }
.link-arrow:hover span { transform: translateX(5px); }


/* SplitText derives the mask class by suffixing each word of linesClass with -mask */
.splitline-mask { padding-bottom: .22em; margin-bottom: -.22em; }

/* ─── Buttons ───────────────────────────────────────────────── */
.btn {
  --h: 50px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 26px; border-radius: 999px;
  font-size: 15px; font-weight: 600; letter-spacing: -.005em; white-space: nowrap;
  transition: background-color .3s, color .3s, border-color .3s, box-shadow .4s var(--ease-out), transform .4s var(--ease-out);
  will-change: transform;
}
.btn-sm { --h: 40px; padding: 0 18px; font-size: 14px; }
.btn-lg { --h: 58px; padding: 0 32px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary {
  background: var(--orange); color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 8px 20px -10px rgba(0,0,0,.55);
}
.btn-primary:hover { background: var(--orange-2); box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 12px 26px -10px rgba(0,0,0,.6); }
.btn-ghost { color: var(--fg); border: 1px solid var(--line); background: color-mix(in srgb, var(--fg) 4%, transparent); }
.btn-ghost:hover { border-color: color-mix(in srgb, var(--fg) 40%, transparent); background: color-mix(in srgb, var(--fg) 8%, transparent); }
.btn-arrow { width: 16px; height: 16px; transition: transform .4s var(--ease-out); }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ─── Nav ───────────────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100;
  padding: 14px var(--gutter);
  transition: transform .6s var(--ease-out);
}
.nav.is-hidden { transform: translateY(-120%); }
.nav-inner {
  /* Narrower than the content container; logo | centred links | actions */
  max-width: 920px; margin: 0 auto; height: 64px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  padding: 4px 14px; border-radius: 999px; /* symmetric so the centre column is truly centred */
  color: var(--cream);
  border: 1px solid transparent;
  transition: background-color .5s, border-color .5s, backdrop-filter .5s, color .5s, box-shadow .5s;
}
.nav.is-scrolled .nav-inner {
  background: rgba(23,20,20,.72);
  border-color: rgba(246,243,239,.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: 0 20px 50px -25px rgba(0,0,0,.6);
}
.nav-logo { grid-column: 1; justify-self: start; padding-left: 12px; }
.nav-logo svg { width: 76px; height: auto; }
.nav-links { grid-column: 2; display: flex; gap: 4px; position: relative; isolation: isolate; }
/* Current-section indicator: one pill that glides between links (positioned by js/site.js). */
.nav-pill {
  position: absolute; z-index: -1; top: 0; left: 0; height: 100%; width: var(--w, 0);
  transform: translateX(var(--x, 0)); border-radius: 999px;
  background: rgba(246,243,239,.1); box-shadow: inset 0 0 0 1px rgba(246,243,239,.06);
  opacity: 0; pointer-events: none;
  transition: transform .55s var(--ease-out), width .55s var(--ease-out), opacity .3s;
}
.nav-pill.is-on { opacity: 1; }
.nav-pill.no-slide { transition: opacity .3s; }
.nav-links a {
  position: relative; padding: 8px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: rgba(246,243,239,.72);
  transition: color .25s, background-color .25s;
}
.nav-links a:hover { color: var(--cream); background: rgba(246,243,239,.07); }
.nav-links a.is-current { color: var(--cream); }
.nav-links a.is-current:hover { background: transparent; }
.nav-actions { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 8px; }
.nav-login { font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 999px; color: var(--cream); white-space: nowrap; transition: background-color .25s; }
.nav-login:hover { background: rgba(246,243,239,.08); }
.nav-burger { display: none; width: 40px; height: 40px; border-radius: 50%; position: relative; }
.nav-burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease-out); }
.nav-burger span:first-child { top: 16px; }
.nav-burger span:last-child { top: 23px; }
.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(23,20,20,.96);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  padding: calc(var(--nav-h) + 40px) var(--gutter) 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  color: var(--cream);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
  font-family: var(--font-serif); font-size: clamp(2.2rem, 9vw, 3rem); line-height: 1.25;
  border-bottom: 1px solid rgba(246,243,239,.1); padding: 10px 0;
}
.mobile-menu-actions { display: grid; gap: 10px; }
.mobile-menu-actions .btn-ghost { --fg: var(--cream); --line: rgba(246,243,239,.2); }

/* ─── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: clip; isolation: isolate;
  min-height: 100svh;
  padding-top: calc(var(--nav-h) + clamp(40px, 7vh, 96px));
  text-align: center;
  background: var(--ink);
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 70%; opacity: .55; transform-origin: 50% 80%; }
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, var(--ink) 0%, rgba(23,20,20,.55) 30%, rgba(23,20,20,.2) 60%, var(--ink) 100%),
    radial-gradient(60% 50% at 50% 0%, rgba(23,20,20,0) 0%, var(--ink) 100%);
}
.hero-content { position: relative; display: flex; flex-direction: column; align-items: center; }
.hero-eyebrow { color: rgba(246,243,239,.7); }
.hero-title { max-width: 11.6em; text-wrap: balance; font-size: clamp(2.9rem, 6.2vw, 5.9rem); }
.hero-sub { margin: 24px auto 0; max-width: 36rem; color: rgba(246,243,239,.66); }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.hero .btn-ghost { --fg: var(--cream); --line: rgba(246,243,239,.22); }
.hero-proof {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px;
  margin-top: 28px; font-size: 14px; color: rgba(246,243,239,.62);
}
.hero-proof strong { color: var(--cream); }
.stars { color: var(--golden); letter-spacing: 2px; }
.hero-proof .sep { width: 4px; height: 4px; border-radius: 50%; background: rgba(246,243,239,.3); }

.hero-phones {
  position: relative; margin-top: clamp(40px, 6vh, 72px);
  height: clamp(360px, 46vw, 620px);
  display: flex; justify-content: center; align-items: flex-start;
  perspective: 1600px;
}
.hphone {
  position: absolute; top: 0; left: 50%;
  width: clamp(180px, 22vw, 300px);
  filter: drop-shadow(0 40px 60px rgba(0,0,0,.55));
  will-change: transform;
}
.hphone img { width: 100%; height: auto; }
.hphone--c  { z-index: 5; translate: -50% 0; }
.hphone--l1 { z-index: 4; translate: calc(-50% - 78%) 9%;  rotate: -6deg; scale: .9; }
.hphone--r1 { z-index: 4; translate: calc(-50% + 78%) 9%;  rotate: 6deg;  scale: .9; }
.hphone--l2 { z-index: 3; translate: calc(-50% - 148%) 20%; rotate: -11deg; scale: .8; opacity: .8; }
.hphone--r2 { z-index: 3; translate: calc(-50% + 148%) 20%; rotate: 11deg;  scale: .8; opacity: .8; }

/* JS hides the intro states up front; failsafe below reveals if motion never boots. */
.js:not(.motion-ready):not(.motion-off) .hero-content > *,
.js:not(.motion-ready):not(.motion-off) .hphone { opacity: 0; }

/* ─── Marquee ───────────────────────────────────────────────── */
.marquee { padding: 26px 0; border-block: 1px solid var(--line); overflow: clip; }
.marquee-track { display: flex; width: max-content; }
.marquee-list { display: flex; flex-shrink: 0; }
.marquee-list li { display: flex; align-items: center; }
.marquee-list li::after { content: '✦'; margin: 0 clamp(20px, 3vw, 40px); color: var(--orange); font-size: .7em; }
.marquee-list a {
  position: relative; display: inline-flex; align-items: baseline; gap: .25em;
  font-family: var(--font-serif); white-space: nowrap;
  font-size: clamp(1.6rem, 3vw, 2.6rem); line-height: 1.1;
  transition: color .3s;
}
.marquee-list a::before {
  content: ''; position: absolute; left: 0; right: 0; bottom: -.08em; height: 2px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out);
}
.marquee-list a::after {
  content: '↗'; font-family: var(--font-sans); font-size: .5em; opacity: 0; transform: translate(-4px, 4px);
  transition: opacity .3s, transform .45s var(--ease-out);
}
.marquee-list a:hover, .marquee-list a:focus-visible { color: var(--orange); }
.marquee-list a:hover::before, .marquee-list a:focus-visible::before { transform: scaleX(1); transform-origin: left; }
.marquee-list a:hover::after, .marquee-list a:focus-visible::after { opacity: 1; transform: none; }
.marquee-preview {
  position: fixed; left: 0; top: 0; z-index: 60;
  width: 220px; aspect-ratio: 11 / 14; border-radius: 16px; overflow: hidden;
  background: var(--mahogany);
  box-shadow: 0 30px 60px -20px rgba(23,20,20,.55), 0 0 0 1px rgba(246,243,239,.08);
  pointer-events: none; opacity: 0; visibility: hidden; will-change: transform, opacity;
}
.marquee-preview img { width: 100%; height: 100%; object-fit: cover; }
.no-js .marquee-track, .motion-off .marquee-track { overflow-x: auto; width: auto; }

/* ─── Shared section scaffolding ────────────────────────────── */
.how, .statement, .features, .bento-sec, .story, .fresh, .pricing, .faq { padding: var(--section) 0; }
.section-head { margin-bottom: clamp(48px, 7vw, 88px); }
.section-head--center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.section-head--center .h2 { margin-inline: auto; }
.section-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* ─── How it works (pinned) ─────────────────────────────────── */
.how-pin, .feat-pin { min-height: min(100svh, 760px); display: flex; align-items: center; }
.how-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.how-steps { display: flex; flex-direction: column; gap: 8px; counter-reset: s; }
.how-step {
  display: grid; grid-template-columns: 64px 1fr; gap: 12px;
  padding: 28px 0; border-top: 1px solid var(--line);
  opacity: .32; transition: opacity .6s var(--ease-out);
}
.how-step:last-child { border-bottom: 1px solid var(--line); }
.how-step.is-active { opacity: 1; }
.how-num { font-family: var(--font-serif); font-size: 1.2rem; color: var(--orange); padding-top: 4px; }
.how-step p { margin-top: 10px; color: var(--muted); max-width: 34rem; }
.how-step strong { color: var(--fg); font-weight: 600; }
.how-visual { position: relative; display: flex; justify-content: center; }
.how-progress { position: absolute; left: 0; top: 10%; bottom: 10%; width: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.how-progress span { position: absolute; inset: 0; background: var(--orange); transform-origin: top; transform: scaleY(.333); transition: transform .2s linear; }
.how-stage { position: relative; width: min(320px, 70vw); aspect-ratio: 582 / 1200; }
.how-screen {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; transform: translateY(24px) scale(.96);
  transition: opacity .7s var(--ease-out), transform .9s var(--ease-out);
  filter: drop-shadow(0 40px 50px rgba(43,37,35,.28));
}
.how-screen.is-active { opacity: 1; transform: none; }
.how-chips { position: absolute; right: -38%; top: 26%; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; pointer-events: none; }
.how-chips img {
  width: auto; height: 44px; border-radius: 14px;
  filter: drop-shadow(0 18px 24px rgba(43,37,35,.22));
  opacity: 0; transform: translateX(30px);
  transition: opacity .6s var(--ease-out), transform .8s var(--ease-out);
}
.how-stage.show-chips .how-chips img { opacity: 1; transform: none; }
.how-stage.show-chips .how-chips img:nth-child(2) { transition-delay: .08s; }
.how-stage.show-chips .how-chips img:nth-child(3) { transition-delay: .16s; }

/* ─── Statement ─────────────────────────────────────────────── */
.statement { min-height: 100svh; display: flex; align-items: center; }
.statement-text {
  font-size: clamp(2rem, 4.6vw, 4.2rem); line-height: 1.12; letter-spacing: -.02em;
  max-width: 22ch; text-wrap: pretty;
}
.statement-text .word { display: inline-block; }

/* ─── Features (pinned video showcase) ──────────────────────── */
.feat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.feat-list { display: flex; flex-direction: column; }
.feat {
  position: relative; padding: 22px 0 22px 28px; cursor: pointer;
  border-left: 1px solid var(--line);
}
.feat::before {
  content: ''; position: absolute; left: -1px; top: 0; width: 2px; height: 100%;
  background: var(--orange);
  transform-origin: top; transform: scaleY(var(--p, 0));
}
.feat:not(.is-active)::before { --p: 0 !important; }
.feat-title { font-family: var(--font-serif); font-weight: 400; font-size: clamp(1.3rem, 1.9vw, 1.7rem); line-height: 1.2; opacity: .4; transition: opacity .5s var(--ease-out); }
.feat-body {
  color: var(--muted); max-width: 32rem;
  display: grid; grid-template-rows: 0fr; opacity: 0;
  transition: grid-template-rows .6s var(--ease-out), opacity .5s var(--ease-out), margin .6s var(--ease-out);
}
.feat-body > * { overflow: hidden; }
.feat.is-active .feat-title { opacity: 1; }
.feat.is-active .feat-body { grid-template-rows: 1fr; opacity: 1; margin-top: 10px; }
.feat:hover .feat-title { opacity: .85; }
.feat-visual { position: relative; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.feat-visual::before {
  content: ''; position: absolute; top: 45%; left: 50%; width: 130%; aspect-ratio: 1; translate: -50% -50%; z-index: -1;
  background: radial-gradient(closest-side, rgba(220,94,25,.22), transparent 70%);
}
.feat-counter { font-family: var(--font-serif); font-size: 15px; color: var(--muted); letter-spacing: .08em; }
.feat-counter-cur { color: var(--fg); }

/* CSS phone for raw screen recordings */
.device {
  position: relative; width: min(310px, 68vw); aspect-ratio: 886 / 1920;
  padding: 11px; border-radius: 52px;
  background: linear-gradient(145deg, #4a3a36, #221b1a 45%, #3b2e2b);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.06) inset,
    0 0 0 2px #120f0f,
    0 50px 90px -30px rgba(0,0,0,.7),
    0 30px 40px -20px rgba(0,0,0,.5);
}
.device-screen { position: relative; width: 100%; height: 100%; border-radius: 42px; overflow: hidden; background: #F3EFEA; }
.device-screen video, .device-screen img { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s var(--ease-out); }
.device-screen video.is-swapping { opacity: 0; }
.device-island { position: absolute; top: 22px; left: 50%; translate: -50% 0; width: 30%; height: 26px; border-radius: 20px; background: #0d0b0b; }

/* ─── Bento ─────────────────────────────────────────────────── */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.card {
  --mx: 50%; --my: 0%; --pad: clamp(24px, 2.6vw, 36px);
  position: relative; overflow: hidden; isolation: isolate;
  grid-column: span 2;
  padding: var(--pad);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--fg) 4%, transparent);
  border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 12px;
  transition: border-color .4s, transform .6s var(--ease-out);
}
.card::after {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(220,94,25,.12), transparent 60%);
}
.card:hover::after { opacity: 1; }
.card p { color: var(--muted); }
.card-kicker { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--orange) !important; }
.card--xl {
  grid-column: span 4; grid-row: span 2; min-height: 520px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: center;
}
.card--xl .card-copy { position: relative; z-index: 1; }
.card--dark { background: var(--ink); color: var(--cream); border-color: transparent; }
.card--dark p { color: rgba(246,243,239,.66); }
.card--dark .card-copy { max-width: 30rem; display: flex; flex-direction: column; gap: 12px; }
/* Transparent PNG (hand + phone in its right half): full card height, pinned bottom-right.
   Its empty left half sits under the copy; the hand runs off the bottom edge. */
.card-media {
  position: absolute; z-index: 0; right: 0; bottom: 0;
  height: calc(100% - 100px); width: auto; max-width: none;
  pointer-events: none;
}
.card--dark .h3 { font-size: clamp(2rem, 3.4vw, 3rem); }
.card--match .match-list { display: grid; gap: 10px; margin-top: auto; }
.match-list li {
  display: flex; align-items: center; gap: 12px; font-weight: 500; font-size: 15px;
  padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--fg) 5%, transparent);
}
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--cream); background: #2b2523; }
.pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill--green::before { background: var(--green); }
.pill--amber::before { background: var(--golden); }
.pill--muted::before { background: var(--ash); }
.card--wide { grid-column: span 4; }
.card--img { flex-direction: row; align-items: center; gap: clamp(24px, 4vw, 56px); padding: 12px; }
.card--img img { width: 46%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: calc(var(--radius) - 10px); }
.card--img .card-copy { display: flex; flex-direction: column; gap: 12px; padding: 20px 20px 20px 0; max-width: 30rem; }

/* ─── Story (teal, pinned) ──────────────────────────────────── */
.story { min-height: 100svh; display: flex; align-items: center; }
.story-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(40px, 8vw, 140px); align-items: center; }
.story .eyebrow { color: rgba(255,255,255,.65); }
.story-quote { color: #fff; margin-bottom: 32px; max-width: 16ch; }
.story-copy > p:not(.eyebrow) { color: rgba(255,255,255,.82); max-width: 36rem; margin-top: 16px; }
.story-visual { display: flex; justify-content: center; }
.story-phone {
  position: relative; width: min(300px, 68vw); aspect-ratio: 582 / 1200;
  transform: rotate(4deg);
  will-change: transform;
}
/* Shadow via a shaped pseudo-element: a filter on the video's ancestor can stop video painting (notably iOS WebKit). */
.story-phone::before {
  content: ''; position: absolute; inset: 1% 2%; border-radius: 16% / 7.5%;
  box-shadow: 30px 40px 60px rgba(0,0,0,.3);
}
.story-video {
  position: absolute; inset: 1% 4% 2% 4%; width: 92%; height: 97%;
  border-radius: 36px; object-fit: cover; transform: translateZ(0);
}
.story-frame { position: relative; z-index: 1; width: 100%; height: auto; }

/* ─── Fresh (Sanity) ────────────────────────────────────────── */
.fresh-articles { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; min-height: 420px; }
.fresh-article {
  position: relative; display: flex; align-items: flex-end; overflow: hidden;
  border-radius: var(--radius-sm); background: var(--mahogany) center / cover no-repeat;
  color: var(--cream); isolation: isolate;
}
.fresh-article::before { content: ''; position: absolute; inset: 0; z-index: -1; background: inherit; transition: transform 1.2s var(--ease-out); }
.fresh-article:hover::before { transform: scale(1.05); }
.fresh-article--lead { min-height: 440px; }
.fresh-article-col { display: grid; grid-template-rows: repeat(3, 1fr); gap: 16px; }
.fresh-article--sm { min-height: 136px; }
.fresh-article-scrim { width: 100%; padding: 22px; background: linear-gradient(transparent, rgba(0,0,0,.78)); }
.fresh-article-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--golden); }
.fresh-article-title { font-family: var(--font-serif); font-weight: 400; font-size: 1.2rem; line-height: 1.2; margin-top: 6px; }
.fresh-article-title--lead { font-size: clamp(1.6rem, 2.6vw, 2.3rem); }
.fresh-author { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 14px; color: rgba(246,243,239,.8); }
.fresh-author-img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: var(--barrel); }
.fresh-row-head { display: flex; align-items: flex-end; justify-content: space-between; margin: clamp(56px, 7vw, 88px) 0 24px; }
.fresh-recipes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; min-height: 260px; }
.fresh-recipe { display: flex; flex-direction: column; gap: 4px; }
.fresh-recipe-img { aspect-ratio: 4 / 3; border-radius: var(--radius-sm); background: var(--mahogany) center / cover no-repeat; margin-bottom: 10px; overflow: hidden; transition: transform .8s var(--ease-out), border-radius .8s var(--ease-out); }
.fresh-recipe:hover .fresh-recipe-img { transform: translateY(-6px); }
.fresh-recipe-name { font-weight: 600; }
.fresh-recipe-meta { font-size: 14px; color: var(--muted); }
.fresh:not(.loaded) .fresh-articles > *, .fresh:not(.loaded) .fresh-recipes > * { display: none; }
.fresh:not(.loaded) .fresh-articles, .fresh:not(.loaded) .fresh-recipes {
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, color-mix(in srgb, var(--fg) 5%, transparent) 0%, color-mix(in srgb, var(--fg) 9%, transparent) 50%, color-mix(in srgb, var(--fg) 5%, transparent) 100%) 0 0 / 200% 100%;
  animation: shimmer 1.6s linear infinite;
}
.fresh.failed { display: none; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ─── Pricing ───────────────────────────────────────────────── */
.billing-toggle {
  position: relative; display: inline-flex; margin-top: 36px; padding: 5px; border-radius: 999px;
  border: 1px solid var(--line); background: color-mix(in srgb, var(--fg) 4%, transparent);
}
.billing-toggle button { position: relative; z-index: 1; height: 40px; padding: 0 20px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); transition: color .3s; }
.billing-toggle button.is-active { color: var(--ink); background: var(--cream); }
.billing-toggle .save { font-size: 12px; color: var(--green); margin-left: 4px; }
.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; gap: 20px; }
.price-card {
  position: relative; display: flex; flex-direction: column;
  padding: clamp(28px, 3vw, 40px); border-radius: var(--radius);
  border: 1px solid var(--line); background: color-mix(in srgb, var(--fg) 3%, transparent);
}
.price-card--featured { background: var(--mahogany); border-color: var(--orange); color: var(--cream); }
.price-tier-row { display: flex; align-items: center; justify-content: space-between; }
.price-tier { font-size: 15px; font-weight: 600; letter-spacing: .02em; }
.price-pill { font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: rgba(220,94,25,.18); color: var(--golden); }
.price { display: flex; align-items: baseline; gap: 8px; margin-top: 20px; }
.price-num { font-family: var(--font-serif); font-size: clamp(3rem, 5vw, 4rem); line-height: 1; letter-spacing: -.02em; display: inline-block; }
.price-per { color: var(--muted); font-size: 15px; }
.price-card--featured .price-per, .price-card--featured .price-alt { color: rgba(246,243,239,.62); }
.price-alt { margin-top: 8px; font-size: 14px; color: var(--muted); min-height: 1.6em; }
.price-feats { display: grid; gap: 12px; margin: 28px 0 32px; padding-top: 28px; border-top: 1px solid var(--line); flex: 1; }
.price-card--featured .price-feats { border-color: rgba(246,243,239,.12); }
.price-feats li { display: flex; gap: 12px; font-size: 15px; }
.price-feats li::before {
  content: ''; flex: 0 0 18px; height: 18px; margin-top: 3px; border-radius: 50%;
  background: rgba(159,191,122,.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 10'%3E%3Cpath d='M1 5l4 4 8-8' fill='none' stroke='%239FBF7A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 9px no-repeat;
}

/* ─── FAQ ───────────────────────────────────────────────────── */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.faq-grid .section-head { position: sticky; top: calc(var(--nav-h) + 40px); margin-bottom: 0; }
.faq-grid .section-head p.muted { margin-top: 20px; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 26px 48px 26px 0;
  font-family: var(--font-serif); font-size: clamp(1.2rem, 1.8vw, 1.5rem); line-height: 1.3;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before, .faq-item summary::after {
  content: ''; position: absolute; right: 8px; top: 50%; width: 16px; height: 1.5px; background: currentColor;
  transition: transform .5s var(--ease-out);
}
.faq-item summary::after { transform: rotate(90deg); }
.faq-item[open] summary::after { transform: rotate(0deg); }
.faq-a { overflow: hidden; }
.faq-a p { padding: 0 48px 28px 0; color: var(--muted); max-width: 42rem; }

/* ─── Final CTA (classic light version) ─────────────────────── */
.cta {
  position: relative; overflow: clip; isolation: isolate; text-align: center;
  /* Bottom padding reserves the photo strip so content (and the pill's shadow) never meets the footer. */
  padding: var(--section) 0 clamp(240px, 28vw, 440px);
  background: var(--tiki); color: var(--warm-ink);
}
.cta-photo { position: absolute; z-index: -1; bottom: 0; left: 2%; width: 90%; height: auto; pointer-events: none; }
.cta-inner { display: flex; flex-direction: column; align-items: center; }
.cta-icon { width: 120px; height: 120px; border-radius: 22%; margin-bottom: 32px; box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.cta-title { max-width: 700px; color: var(--warm-ink); text-wrap: balance; }
.cta .lead { max-width: 480px; margin: 20px auto 0; color: var(--warm-mid); }
.stores { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: center; gap: 40px; margin-top: 40px; }
.store { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.store-qr { width: 100px; height: 100px; border-radius: 10px; box-shadow: 0 6px 18px -8px rgba(43,37,35,.25); }
.store-badge { height: 40px; width: auto; transition: transform .4s var(--ease-out); }
.store a:hover .store-badge { transform: translateY(-3px); }
.cta-web { margin-top: 36px; }

/* ─── Footer ────────────────────────────────────────────────── */
.footer { background: var(--ink); color: var(--cream); padding: clamp(64px, 8vw, 110px) 0 32px; border-top: 1px solid rgba(246,243,239,.08); }
.footer-top { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; }
.footer-logo { width: 150px; height: auto; color: var(--cream); }
.footer-def { margin-top: 24px; max-width: 26rem; font-size: 14px; color: var(--ash); }
.footer-def span { font-family: var(--font-serif); font-style: italic; color: var(--cream); }
.footer-def strong { color: var(--cream); font-weight: 500; font-style: italic; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.footer-cols h4 { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ash); margin-bottom: 16px; }
.footer-cols a { display: block; font-size: 14px; padding: 5px 0; color: rgba(246,243,239,.8); transition: color .2s; }
.footer-cols a:hover { color: var(--golden); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 64px; padding-top: 24px; border-top: 1px solid rgba(246,243,239,.08); font-size: 13px; color: var(--ash); }
.footer-social { display: flex; gap: 6px; }
.footer-social a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: rgba(246,243,239,.7); transition: background-color .25s, color .25s; }
.footer-social a:hover { background: rgba(246,243,239,.08); color: var(--cream); }
.footer-social svg { width: 17px; height: 17px; }

/* ─── Mobile sticky CTA ─────────────────────────────────────── */
.sticky-cta { display: none; }

/* ═══ Responsive ═══════════════════════════════════════════════ */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-inner { grid-template-columns: auto 1fr; } /* no centre column: logo at natural width, actions get the rest */
  .nav-actions { grid-column: 2; }
  .how-chips { right: -20%; }
}

@media (max-width: 900px) {
  :root { --nav-h: 64px; }
  .nav { padding: 10px 12px; }
  .nav-inner { height: 60px; padding: 4px 10px; gap: 8px; }
  .nav-logo { padding-left: 10px; }
  .nav-login { padding: 8px 10px; font-size: 13px; }
  .nav-burger { display: block; }

  .hphone--l2, .hphone--r2 { display: none; }
  .hphone--l1 { translate: calc(-50% - 62%) 10%; }
  .hphone--r1 { translate: calc(-50% + 62%) 10%; }
  .hero-phones { height: clamp(330px, 88vw, 520px); }
  .hphone { width: clamp(170px, 44vw, 260px); }

  /* How + Features: sticky visual on top, steps scroll under it */
  .how-pin, .feat-pin { display: block; min-height: 0; }
  .how-grid, .feat-grid { grid-template-columns: 1fr; gap: 0; }
  .how-visual, .feat-visual {
    order: -1; position: sticky; top: 0; z-index: 2;
    padding: calc(12px + env(safe-area-inset-top)) 0 20px;
  }
  .how .how-visual, .features .feat-visual { background: var(--tiki); }
  .features .feat-visual { background: var(--ink); gap: 10px; }
  .morph .how .how-visual, .morph .features .feat-visual { background: var(--page-bg); }
  .how-stage { width: auto; height: min(42svh, 380px); }
  .how-progress, .how-chips { display: none; }
  .device { width: auto; height: min(44svh, 400px); padding: 7px; border-radius: 34px; }
  .device-screen { border-radius: 28px; }
  .device-island { top: 14px; height: 16px; }
  .how-step { min-height: 42svh; align-content: center; }
  .feat { min-height: 30svh; display: flex; flex-direction: column; justify-content: center; opacity: .45; transition: opacity .5s var(--ease-out); }
  .feat.is-active { opacity: 1; }
  .feat .feat-title { opacity: 1; }
  .feat .feat-body { grid-template-rows: 1fr; opacity: 1; margin-top: 10px; }
  .feat-visual::before { width: 100%; }
  .feat-counter { display: none; }

  .statement { min-height: 80svh; }

  .bento { grid-template-columns: 1fr 1fr; }
  .card, .card--xl, .card--wide { grid-column: span 2; }
  .card--xl { min-height: 0; }
  .card--xl { grid-template-columns: minmax(0, 1fr); }
  /* Stacked: widen and shift left so the hand + phone (right half of the PNG) centre in the card. */
  .card-media { position: static; height: auto; width: 140%; margin: 8px 0 calc(-1 * var(--pad)) -52%; }
  .card--img { flex-direction: column; align-items: stretch; }
  .card--img img { width: 100%; }
  .card--img .card-copy { padding: 8px 12px 16px; }

  .story { min-height: 0; }
  .story-grid { grid-template-columns: 1fr; gap: 0; }
  .story-visual { order: -1; margin-bottom: 32px; }
  .story-phone { width: auto; height: min(56svh, 500px); }

  .fresh-articles { grid-template-columns: 1fr; }
  .fresh-article--lead { min-height: 360px; }
  .fresh-recipes { grid-template-columns: 1fr 1fr; }

  .price-grid { grid-template-columns: minmax(0, 480px); }
  .price-card--featured { order: -1; }

  .faq-grid { grid-template-columns: 1fr; gap: 24px; }
  .faq-grid .section-head { position: static; }

  .cta-photo { width: 150%; left: -25%; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }

  .sticky-cta {
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 80;
    display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 12px; border-radius: 20px;
    background: rgba(33,29,28,.88); color: var(--cream);
    border: 1px solid rgba(246,243,239,.1);
    -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
    box-shadow: 0 20px 40px -12px rgba(0,0,0,.6);
    transform: translateY(140%); transition: transform .6s var(--ease-out);
  }
  .sticky-cta.is-visible { transform: none; }
  .sticky-cta img { width: 40px; height: 40px; border-radius: 10px; }
  .sticky-cta div { display: flex; flex-direction: column; line-height: 1.25; font-size: 14px; }
  .sticky-cta div span { font-size: 12px; color: var(--ash); }
  .sticky-cta .btn { margin-left: auto; }
}

@media (max-width: 350px) {
  .nav-login { display: none; }
}

@media (max-width: 560px) {
  .hero { padding-top: calc(var(--nav-h) + 44px); }
  .hero-ctas { width: 100%; flex-direction: column; }
  .hero-ctas .btn { width: 100%; }
  .hero-proof .sep, .hero-proof span:last-child { display: none; }
  .nav-actions .btn-sm { padding: 0 14px; font-size: 13px; }
  .nav-actions { gap: 2px; }
  .fresh-recipes { grid-template-columns: 1fr 1fr; gap: 12px; }
  .footer-bottom { flex-direction: column-reverse; align-items: flex-start; }
}

/* Touch devices don't need QR codes to reach the store */
@media (hover: none) and (pointer: coarse) {
  .store-qr { display: none; }
  /* Phones: shorter fade, and only the page colours that visibly change — keeps each frame cheap. */
  .morph body { transition: --page-bg .45s ease-out, --page-fg .3s ease-out, --page-muted .3s ease-out, --page-line .3s ease-out; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
