/* ============================================================
   GolfAI — Presentation site
   Design system + scroll-deck styles
   ============================================================ */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;1,6..72,400;1,6..72,500&display=swap');

/* ---------- Theme tokens ---------- */
:root {
  --paper:      #f3f0e7;
  --paper-soft: #ece7da;
  --surface:    #ffffff;
  --ink:        #15201a;
  --ink-soft:   #49544d;
  --muted:      #828b80;
  --line:       #e2ded1;
  --line-soft:  #ebe7db;

  --green-900: #0a3829;
  --green-800: #0c4632;
  --green-700: #115c3f;
  --green-600: #15784c;  /* emerald primary */
  --green-500: #1c8c5b;
  --green-400: #41ad77;
  --green-300: #6fcb9a;
  --gold:      #c2a14c;
  --gold-soft: #d8be7f;
  --amber:     #c4862b;

  --accent:        var(--green-600);
  --accent-bright: var(--green-400);

  --head-font: 'Hanken Grotesk', system-ui, sans-serif;
  --body-font: 'Hanken Grotesk', system-ui, sans-serif;
  --mono-font: 'JetBrains Mono', ui-monospace, monospace;
  --serif-font:'Newsreader', Georgia, serif;

  --maxw: 1180px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* Editorial theme — warmer cream, higher contrast, serif accents */
:root[data-theme="editorial"] {
  --paper:      #f7f3e8;
  --paper-soft: #efe9d8;
  --ink:        #14130d;
  --ink-soft:   #4b463a;
  --line:       #e4ddc9;
  --head-font:  var(--serif-font);
}

/* Clubhouse theme — light sections get a green-tinted paper */
:root[data-theme="clubhouse"] {
  --paper:      #eef0e9;
  --paper-soft: #e4e8de;
  --line:       #d8ddd0;
}

/* Heading-font tweak override */
:root[data-head="serif"] { --head-font: var(--serif-font); }

/* Accent tweaks */
:root[data-accent="brass"] { --accent: #b8902f; --accent-bright: var(--gold-soft); }
:root[data-accent="teal"]  { --accent: #0f8a82; --accent-bright: #5ec9c0; }

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body-font);
  background: var(--green-900);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: #fff; }

/* ============================================================
   Scroll deck shell
   ============================================================ */
#deck {
  height: 100svh;
  overflow-y: scroll;
  scroll-snap-type: y proximity;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
#deck::-webkit-scrollbar { display: none; }

.slide {
  position: relative;
  min-height: 100svh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  padding: clamp(64px, 9vh, 120px) clamp(22px, 6vw, 92px);
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
}
.slide--soft { background: var(--paper-soft); }
.slide--dark {
  background:
    radial-gradient(120% 90% at 88% 8%, rgba(65,173,119,.16), transparent 60%),
    radial-gradient(90% 80% at 6% 100%, rgba(194,161,76,.10), transparent 55%),
    var(--green-900);
  color: #eef3ee;
}
.slide--dark .eyebrow { color: var(--gold-soft); }
.slide--dark .lead { color: #c4d3c8; }
.slide--dark .muted-ln { color: #9fb3a6; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; }

/* ---------- Type primitives ---------- */
.eyebrow {
  font-family: var(--mono-font);
  font-size: clamp(11px, .82vw, 13px);
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1.5px;
  background: currentColor;
  opacity: .55;
}
.slide--dark .eyebrow::before { opacity: .7; }

.headline {
  font-family: var(--head-font);
  font-weight: 800;
  line-height: 1.015;
  letter-spacing: -.022em;
  font-size: clamp(2.1rem, 5.3vw, 4.6rem);
  text-wrap: pretty;
}
:root[data-head="serif"] .headline,
:root[data-theme="editorial"] .headline { font-weight: 500; letter-spacing: -.01em; }
.headline em, .serif-accent {
  font-family: var(--serif-font);
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}
.headline .ln { display: block; }
.hero-h { max-width: 13ch; text-wrap: balance; }
.slide--dark .headline em { color: var(--gold-soft); }
.headline--md { font-size: clamp(1.9rem, 4vw, 3.3rem); }

.lead {
  font-size: clamp(1.04rem, 1.45vw, 1.42rem);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 56ch;
  text-wrap: pretty;
}
.muted-ln { color: var(--muted); font-size: .95rem; }

/* ---------- Layout helpers ---------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 5vw, 78px);
  align-items: center;
}
.split--visual-left { grid-template-columns: 1fr 1.05fr; }
.stack { display: flex; flex-direction: column; align-items: stretch; gap: clamp(18px, 2.4vh, 30px); }
.stack > .btn-row, .stack > .eyebrow, .stack > .pill-row, .stack > .hero-credit { align-self: flex-start; }
.stack.col-head { gap: clamp(16px, 2vh, 26px); }

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--body-font);
  font-weight: 600;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  white-space: nowrap;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .18s var(--ease), background .18s, box-shadow .18s, border-color .18s;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 30px -12px color-mix(in oklab, var(--accent) 70%, #000);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 38px -14px color-mix(in oklab, var(--accent) 75%, #000); }
.btn-ghost {
  background: transparent;
  border-color: color-mix(in oklab, var(--ink) 22%, transparent);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.slide--dark .btn-ghost { border-color: rgba(255,255,255,.28); color: #eef3ee; }
.slide--dark .btn-ghost:hover { border-color: var(--gold-soft); color: var(--gold-soft); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- Bullets ---------- */
.bullets { list-style: none; display: grid; gap: 16px; }
.bullets li {
  position: relative;
  padding-left: 32px;
  font-size: clamp(1rem, 1.15vw, 1.12rem);
  line-height: 1.45;
  color: var(--ink-soft);
}
.bullets li strong { color: var(--ink); font-weight: 700; }
.slide--dark .bullets li { color: #c8d6cb; }
.slide--dark .bullets li strong { color: #fff; }
.bullets li::before {
  content: "";
  position: absolute;
  left: 0; top: .42em;
  width: 13px; height: 13px;
  border-radius: 4px;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 18%, transparent);
}
.slide--dark .bullets li::before { background: var(--accent-bright); box-shadow: 0 0 0 4px rgba(111,203,154,.16); }

/* ---------- Pills / chips ---------- */
.pill {
  font-family: var(--mono-font);
  font-size: 12.5px;
  letter-spacing: .04em;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  display: inline-flex; align-items: center; gap: 8px;
  white-space: nowrap;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.slide--dark .pill { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); color: #cfdcd2; }
.slide--dark .pill .dot { background: var(--accent-bright); }
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(20px, 2.4vw, 30px);
}
.slide--dark .card { background: rgba(255,255,255,.045); border-color: rgba(255,255,255,.12); }

/* Proof callout */
.callout {
  border-left: 3px solid var(--gold);
  background: color-mix(in oklab, var(--gold) 12%, var(--surface));
  border-radius: 0 14px 14px 0;
  padding: 22px 26px;
}
.slide--dark .callout { background: rgba(194,161,76,.12); border-color: var(--gold-soft); }
.callout .k {
  font-family: var(--mono-font); font-size: 11.5px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--amber); display: block; margin-bottom: 8px;
}
.slide--dark .callout .k { color: var(--gold-soft); }
.callout p { font-size: 1.05rem; line-height: 1.5; }

/* ---------- Stats ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px,1fr)); gap: clamp(16px,1.6vw,22px); }
.stat .n {
  font-family: var(--head-font);
  font-weight: 800;
  font-size: clamp(2.1rem, 3.6vw, 3.2rem);
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--accent);
}
.slide--dark .stat .n { color: var(--gold-soft); }
.stat .l { margin-top: 10px; font-size: .98rem; color: var(--ink-soft); line-height: 1.4; max-width: 26ch; }
.slide--dark .stat .l { color: #b9c8bd; }
.stat .src { font-family: var(--mono-font); font-size: 11px; letter-spacing: .03em; color: var(--muted); margin-top: 7px; display: block; }

/* ============================================================
   Device frames
   ============================================================ */
.phone {
  --pw: clamp(230px, 23vw, 290px);
  width: var(--pw);
  border-radius: 40px;
  padding: 9px;
  background: linear-gradient(150deg, #1d211e, #050706);
  box-shadow: 0 38px 70px -34px rgba(0,0,0,.6), inset 0 0 0 1.5px rgba(255,255,255,.07);
  position: relative;
}
.phone::before {
  content: ""; position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  width: 42%; height: 7px; border-radius: 99px; background: rgba(0,0,0,.55); z-index: 3;
}
.phone img { width: 100%; border-radius: 32px; }
.phone-stack { display: flex; gap: clamp(14px, 1.6vw, 26px); align-items: flex-end; justify-content: center; }
.phone--back { --pw: clamp(190px, 18vw, 232px); opacity: .9; transform: translateY(18px) rotate(-3deg); }
.phone--front { z-index: 2; transform: rotate(2deg); }

.browser {
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -42px rgba(10,40,28,.5);
  overflow: hidden;
}
.browser .bar {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 14px;
  background: color-mix(in oklab, var(--paper-soft) 60%, #fff);
  border-bottom: 1px solid var(--line);
}
.browser .bar .tl { width: 11px; height: 11px; border-radius: 50%; background: #d8d2c4; }
.browser .url {
  margin-left: 10px; font-family: var(--mono-font); font-size: 11.5px; color: var(--muted);
  background: var(--surface); border: 1px solid var(--line); border-radius: 7px;
  padding: 4px 12px; flex: 1; max-width: 320px;
}
.browser img { width: 100%; }

/* ============================================================
   Hero
   ============================================================ */
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(34px, 5vw, 72px);
  align-items: center;
  width: 100%;
}
.hero-credit { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; }
.hero-credit .lbl { font-family: var(--mono-font); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-soft); }

/* Rotating product band (in 'What it is' slide) */
.rotor { position: relative; }
.rotor-stage {
  position: relative;
  aspect-ratio: 16 / 10.2;
  border-radius: 16px;
  overflow: hidden;
  background: var(--green-900);
  border: 1px solid var(--line);
  box-shadow: 0 44px 90px -46px rgba(10,40,28,.55);
}
.rotor-stage .frame {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(120% 120% at 50% 0%, #15392a, #0a2c20);
  opacity: 0; transition: opacity .7s var(--ease);
}
.rotor-stage .frame.on { opacity: 1; }
.rotor-stage .frame img { max-height: 100%; max-width: 100%; object-fit: contain; box-shadow: 0 24px 50px -24px rgba(0,0,0,.6); border-radius: 6px; }
.rotor-stage .frame.ph img { max-height: 92%; border-radius: 18px; }
.rotor-stage .placeholder {
  width: 88%; height: 84%; border-radius: 10px;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 12px, rgba(255,255,255,.015) 12px 24px);
  border: 1px dashed rgba(255,255,255,.22);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono-font); font-size: 13px; letter-spacing: .08em; color: rgba(255,255,255,.55); text-transform: uppercase;
}
.rotor-cap {
  position: absolute; left: 16px; bottom: 14px; z-index: 4;
  font-family: var(--mono-font); font-size: 13px; letter-spacing: .04em;
  color: #fff; background: rgba(8,24,17,.62); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.16); border-radius: 999px; padding: 8px 15px;
  display: inline-flex; align-items: center; gap: 9px;
}
.rotor-cap .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-bright); animation: pulse 1.8s infinite; }
.rotor-dots { display: flex; gap: 8px; margin-top: 16px; }
.rotor-dots button {
  width: 26px; height: 4px; border-radius: 99px; border: none; cursor: pointer;
  background: color-mix(in oklab, var(--ink) 18%, transparent); transition: background .3s, width .3s;
}
.slide--dark .rotor-dots button { background: rgba(255,255,255,.22); }
.rotor-dots button.on { background: var(--accent); width: 40px; }
.slide--dark .rotor-dots button.on { background: var(--accent-bright); }

/* ============================================================
   Audio phone widget
   ============================================================ */
.audio-phone { position: relative; width: clamp(252px, 25vw, 312px); }
.audio-phone .phone { width: 100%; }
.audio-overlay {
  position: absolute; inset: 9px;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(8,28,20,.05) 30%, rgba(7,24,17,.86) 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 22px 18px; z-index: 4; cursor: pointer;
}
.audio-play {
  width: 66px; height: 66px; border-radius: 50%;
  background: var(--accent); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  align-self: center; margin-bottom: auto; margin-top: auto;
  box-shadow: 0 14px 36px -10px rgba(0,0,0,.5), 0 0 0 0 color-mix(in oklab, var(--accent) 60%, transparent);
  color: #fff; transition: transform .2s var(--ease);
  animation: ring 2.6s infinite;
}
.audio-play:hover { transform: scale(1.06); }
.audio-play svg { width: 26px; height: 26px; margin-left: 3px; }
.audio-play.playing { animation: none; }
.audio-play.playing svg { margin-left: 0; }
.audio-meta { color: #eaf2ec; }
.audio-meta .t { font-weight: 700; font-size: 1rem; }
.audio-meta .s { font-family: var(--mono-font); font-size: 11.5px; color: #9fc3ad; letter-spacing: .03em; margin-top: 3px; }
.eq { display: flex; align-items: flex-end; gap: 3px; height: 26px; margin-top: 12px; }
.eq span { flex: 1; background: var(--accent-bright); border-radius: 2px; height: 20%; opacity: .55; }
.audio-phone.playing .eq span { animation: eq 900ms ease-in-out infinite; }
.eq span:nth-child(2){ animation-delay: .12s } .eq span:nth-child(3){ animation-delay: .26s }
.eq span:nth-child(4){ animation-delay: .07s } .eq span:nth-child(5){ animation-delay: .31s }
.eq span:nth-child(6){ animation-delay: .18s } .eq span:nth-child(7){ animation-delay: .02s }
.eq span:nth-child(8){ animation-delay: .22s } .eq span:nth-child(9){ animation-delay: .14s }
.transcript { margin-top: 18px; display: grid; gap: 9px; }
.bubble { font-size: .92rem; line-height: 1.4; padding: 10px 14px; border-radius: 14px; max-width: 88%; }
.bubble.golfer { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); color: #d6e2d9; justify-self: start; border-bottom-left-radius: 4px; }
.bubble.ai { background: color-mix(in oklab, var(--accent) 22%, var(--green-900)); color: #eaf6ee; justify-self: end; border-bottom-right-radius: 4px; }
.bubble .who { font-family: var(--mono-font); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; opacity: .6; display: block; margin-bottom: 3px; }

/* ============================================================
   Two-column compare (switchers)
   ============================================================ */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 2.4vw, 30px); }
.compare .card h3 { font-family: var(--head-font); font-size: 1.32rem; font-weight: 700; margin-bottom: 6px; letter-spacing: -.01em; }
.compare .tag { font-family: var(--mono-font); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 14px; }
.compare p { color: var(--ink-soft); line-height: 1.55; font-size: 1.01rem; }
.slide--dark .compare p { color: #c2d2c6; }

/* logos strip */
.logos { display: flex; flex-wrap: wrap; gap: 14px 14px; }
.logo-chip {
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.05);
  border-radius: 12px; padding: 16px 22px;
  display: flex; flex-direction: column; gap: 3px; min-width: 168px;
}
.logo-chip .nm { font-weight: 700; font-size: 1.05rem; color: #fff; white-space: nowrap; }
.logo-chip .ds { font-family: var(--mono-font); font-size: 10.5px; letter-spacing: .08em; color: #9fb3a6; text-transform: uppercase; }

/* feature mini-grid */
.feat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 26px; }
.feat { display: grid; gap: 5px; }
.feat .h { font-weight: 700; font-size: 1.04rem; display: flex; align-items: center; gap: 9px; }
.feat .h::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); }
.slide--dark .feat .h::before { background: var(--accent-bright); }
.feat p { color: var(--ink-soft); font-size: .96rem; line-height: 1.42; }
.slide--dark .feat p { color: #b9c8bd; }

/* ============================================================
   Fixed chrome — brand, CTA, nav, progress
   ============================================================ */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px clamp(22px, 4vw, 48px);
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand .mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(150deg, var(--green-500), var(--green-800));
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 19px;
  box-shadow: 0 6px 18px -6px rgba(10,56,41,.6); font-family: var(--head-font);
}
.brand .wm { font-weight: 800; font-size: 19px; letter-spacing: -.01em; font-family: var(--head-font); }
.brand .wm b { color: var(--accent); }
.topbar.on-dark .brand .wm { color: #fff; }
.topbar.on-dark .brand .wm b { color: var(--gold-soft); }
.topbar .cta-top {
  font-family: var(--body-font); font-weight: 600; font-size: .92rem;
  padding: 10px 20px; border-radius: 999px; background: var(--accent); color: #fff; cursor: pointer; border: none;
  box-shadow: 0 10px 26px -12px color-mix(in oklab, var(--accent) 70%, #000);
  transition: transform .16s var(--ease);
}
.topbar .cta-top:hover { transform: translateY(-2px); }

/* progress */
.progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--accent); z-index: 50; width: 0; transition: width .15s linear; }

/* dot rail */
.rail { position: fixed; right: clamp(14px, 2vw, 30px); top: 50%; transform: translateY(-50%); z-index: 40; display: flex; flex-direction: column; gap: 13px; }
.rail button {
  --c: color-mix(in oklab, var(--ink) 35%, transparent);
  width: 9px; height: 9px; border-radius: 50%; border: none; cursor: pointer; padding: 0;
  background: transparent; position: relative; box-shadow: inset 0 0 0 1.5px var(--c); transition: all .25s var(--ease);
}
.rail button::after {
  content: attr(data-label); position: absolute; right: 20px; top: 50%; transform: translateY(-50%) translateX(6px);
  font-family: var(--mono-font); font-size: 10.5px; letter-spacing: .05em; white-space: nowrap;
  background: var(--ink); color: var(--paper); padding: 4px 9px; border-radius: 6px;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.rail button:hover::after { opacity: 1; transform: translateY(-50%) translateX(0); }
.rail button.on { box-shadow: inset 0 0 0 5px var(--accent); width: 11px; height: 11px; }
.rail.on-dark button { --c: rgba(255,255,255,.42); }
.rail.on-dark button.on { box-shadow: inset 0 0 0 5px var(--accent-bright); }
.rail.on-dark button::after { background: #eef3ee; color: var(--green-900); }

/* prev/next + counter */
.deck-nav { position: fixed; left: clamp(20px, 4vw, 46px); bottom: 22px; z-index: 40; display: flex; align-items: center; gap: 14px; }
.deck-nav .arrow {
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--ink);
  transition: all .18s var(--ease); box-shadow: 0 8px 20px -12px rgba(0,0,0,.4);
}
.deck-nav .arrow:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.deck-nav .arrow:disabled { opacity: .35; cursor: default; transform: none; }
.deck-nav .count { font-family: var(--mono-font); font-size: 12.5px; letter-spacing: .08em; color: var(--ink-soft); }
.deck-nav .count b { color: var(--accent); }
.deck-nav.on-dark .arrow { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #eef3ee; }
.deck-nav.on-dark .arrow:hover { border-color: var(--gold-soft); color: var(--gold-soft); }
.deck-nav.on-dark .count { color: #b9c8bd; }
.deck-nav.on-dark .count b { color: var(--gold-soft); }

/* scroll hint */
.scroll-hint { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 5; font-family: var(--mono-font); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.55); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.scroll-hint .mouse { width: 22px; height: 34px; border-radius: 12px; border: 1.5px solid rgba(255,255,255,.4); position: relative; }
.scroll-hint .mouse::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 6px; border-radius: 2px; background: rgba(255,255,255,.7); transform: translateX(-50%); animation: wheel 1.6s infinite; }

/* ============================================================
   Reveal animations
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .slide .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .slide[data-active] .reveal { opacity: 1; transform: none; }
  .slide[data-active] .reveal:nth-child(1){ transition-delay: .05s }
  .slide[data-active] .reveal:nth-child(2){ transition-delay: .13s }
  .slide[data-active] .reveal:nth-child(3){ transition-delay: .21s }
  .slide[data-active] .reveal:nth-child(4){ transition-delay: .29s }
  .slide[data-active] .reveal:nth-child(5){ transition-delay: .37s }
  .slide[data-active] .reveal:nth-child(6){ transition-delay: .45s }
  .r-d1 { transition-delay: .1s } .r-d2 { transition-delay: .2s } .r-d3 { transition-delay: .3s } .r-d4 { transition-delay: .4s }
}

@keyframes pulse { 0%,100%{ opacity:1; transform:scale(1) } 50%{ opacity:.4; transform:scale(.8) } }
@keyframes ring { 0%{ box-shadow: 0 14px 36px -10px rgba(0,0,0,.5), 0 0 0 0 color-mix(in oklab, var(--accent) 55%, transparent) } 70%{ box-shadow: 0 14px 36px -10px rgba(0,0,0,.5), 0 0 0 16px transparent } 100%{ box-shadow: 0 14px 36px -10px rgba(0,0,0,.5), 0 0 0 0 transparent } }
@keyframes eq { 0%,100%{ height: 18%; opacity:.5 } 50%{ height: 96%; opacity:1 } }
@keyframes wheel { 0%{ opacity:0; transform: translateX(-50%) translateY(-3px) } 40%{ opacity:1 } 100%{ opacity:0; transform: translateX(-50%) translateY(5px) } }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 920px) {
  /* Touch devices: let the deck scroll naturally. Tall stacked slides
     must grow to fit their content rather than be pinned to one viewport
     height and clipped/snapped. */
  #deck { scroll-snap-type: none; }
  .slide {
    min-height: 100svh;
    height: auto;
    overflow: visible;
    scroll-snap-stop: normal;
    align-items: flex-start;
    padding: clamp(82px, 12vh, 104px) clamp(18px, 6vw, 40px) clamp(48px, 8vh, 72px);
  }
  .hero-grid, .split, .split--visual-left, .compare, .feat-grid {
    grid-template-columns: 1fr;
    gap: clamp(24px, 4vh, 40px);
  }
  .split .visual, .split--visual-left .visual, .hero-grid .visual { order: 2; }
  .visual { width: 100%; }
  .rail { display: none; }
  .phone-stack { justify-content: center; }
  .audio-phone { margin-inline: auto; }
  .deck-nav { left: 50%; transform: translateX(-50%); }
  .topbar .cta-top { display: none; }
}
@media (max-width: 560px) {
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .browser .url { display: none; }
  .audio-phone { width: 100%; max-width: 280px; }
  .compare { gap: 16px; }
  .feat-grid { gap: 12px 0; }
  .transcript .bubble { max-width: 100%; }
  /* shrink device frames so a two-phone stack fits a narrow screen */
  .phone { --pw: clamp(160px, 46vw, 220px); }
  .phone--back { --pw: clamp(132px, 38vw, 184px); }
}
@media (max-width: 380px) {
  .stat-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Lightbox / zoom viewer
   ============================================================ */
#deck img { cursor: zoom-in; }
.audio-phone .phone img { cursor: default; }

.lb { position: fixed; inset: 0; z-index: 120; display: none; }
.lb.open { display: block; }
.lb-backdrop { position: absolute; inset: 0; background: rgba(6,18,13,.9); backdrop-filter: blur(10px); }
.lb-stage {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(48px, 8vh, 96px) clamp(56px, 9vw, 130px);
  touch-action: none;
}
.lb-media { position: relative; display: flex; align-items: center; justify-content: center; }
.lb-media img, .lb-media video {
  max-width: 88vw; max-height: 82vh;
  border-radius: 10px;
  box-shadow: 0 50px 130px -30px #000, 0 0 0 1px rgba(255,255,255,.08);
  transform-origin: 0 0;
  will-change: transform;
  user-select: none; -webkit-user-drag: none;
}
.lb-media img { cursor: zoom-in; }
.lb-media img.zoomed { cursor: grab; }
.lb-media img.zoomed.panning { cursor: grabbing; }
.lb-placeholder {
  width: min(72vw, 1100px); aspect-ratio: 16/9; border-radius: 12px;
  background: radial-gradient(120% 120% at 50% 30%, #15392a, #0a2c20);
  border: 1px solid rgba(255,255,255,.14);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
}
.lb-placeholder .pl-play { width: 90px; height: 90px; border-radius: 50%; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.24); display: grid; place-items: center; }
.lb-placeholder .pl-play svg { width: 30px; height: 30px; fill: rgba(245,250,246,.85); margin-left: 4px; }
.lb-placeholder .pl-l { font-family: var(--mono-font); font-size: 14px; letter-spacing: .06em; color: rgba(216,190,127,.9); }

.lb-close, .lb-arrow {
  position: absolute; z-index: 4; cursor: pointer;
  display: grid; place-items: center;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); color: #eef3ee;
  backdrop-filter: blur(6px); transition: background .18s, border-color .18s, transform .18s;
}
.lb-close:hover, .lb-arrow:hover { background: rgba(255,255,255,.16); border-color: var(--gold-soft); color: var(--gold-soft); }
.lb-close { top: 20px; right: 22px; width: 46px; height: 46px; border-radius: 50%; font-size: 20px; }
.lb-arrow { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; font-size: 30px; line-height: 1; padding-bottom: 4px; }
.lb-arrow:hover { transform: translateY(-50%) scale(1.06); }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }
.lb-counter { position: absolute; top: 26px; left: 50%; transform: translateX(-50%); z-index: 4; font-family: var(--mono-font); font-size: 13px; letter-spacing: .1em; color: #d7e3da; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: 6px 14px; }
.lb-thumbs { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 4; display: flex; gap: 8px; max-width: 90vw; overflow-x: auto; padding: 6px; scrollbar-width: none; }
.lb-thumbs::-webkit-scrollbar { display: none; }
.lb-thumb { border: 2px solid transparent; border-radius: 7px; overflow: hidden; cursor: pointer; flex: 0 0 auto; background: #0a2c20; transition: border-color .2s, opacity .2s; opacity: .55; }
.lb-thumb img { height: 46px; width: auto; display: block; max-width: none; cursor: pointer; border-radius: 0; box-shadow: none; animation: none; }
.lb-thumb.on { border-color: var(--gold-soft); opacity: 1; }
.lb-thumb:hover { opacity: 1; }
.lb-hint { position: absolute; bottom: 18px; left: 22px; z-index: 4; font-family: var(--mono-font); font-size: 11px; letter-spacing: .08em; color: rgba(216,226,218,.5); }
@media (max-width: 700px) { .lb-hint { display: none; } .lb-thumbs { bottom: 10px; } .lb-stage { padding: 64px 16px; } .lb-arrow { width: 42px; height: 42px; font-size: 24px; } }

@keyframes lbfade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lbpop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .lb-media img, .lb-media video, .lb-placeholder, .lb-backdrop { animation: none; } }
