/* ═══════════════════════════════════════════════════════════════
   GOLFLI — landing page styles. Mobile-first.
   ⚠ SWAPPABLE TOKENS: every hex below is a placeholder. Edit :root only.
   ═══════════════════════════════════════════════════════════════ */
:root {
  /* ── Palette (dark mode) ── */
  --bg: #0B100D;          /* near-black with a warm forest undertone */
  --bg-2: #10161226;      /* deeper band tint (used with base bg) */
  --band: #0E1411;        /* alternating band solid */
  --card: #141A17;        /* raised surface (cards, chips, bubbles) */
  --card-2: #1B221E;      /* elevated surface (memory card, hovers) */
  --surface: #141A17;     /* generic surface fallback */
  --ink: #F3EFE6;         /* primary text — cream */
  --ink-2: #B5BDB6;       /* secondary text */
  --ink-3: #7B857E;       /* muted text */
  --line: #232B27;        /* hairlines / borders */
  --line-2: #2C3630;      /* stronger hairline */
  --green: #6BA080;       /* THE accent — sage forest green (readable on dark) */
  --green-2: #7DB392;     /* hover / pressed */
  --green-3: #4E7A5C;     /* deeper for filled bg on filled buttons */
  --green-deep: #1A2F20;  /* dark filled cards & final CTA */
  --sage: rgba(107,160,128,.14);  /* soft tint on dark */
  --sage-2: #2C3E33;              /* tint border */
  --err: #E58A75;

  /* ── Type ── */
  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;

  /* ── Shape & depth ── */
  --r-sm: 12px; --r: 20px; --r-lg: 28px; --pill: 999px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.35), 0 6px 20px rgba(0,0,0,.28);
  --shadow: 0 2px 4px rgba(0,0,0,.32), 0 18px 44px rgba(0,0,0,.42);
  --shadow-lg: 0 40px 90px rgba(0,0,0,.55), 0 10px 24px rgba(0,0,0,.35);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --wrap: 1180px;
  --header-h: 68px;
}

/* ── Reset-ish ── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 1rem; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-variation-settings: 'opsz' 14;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--green); color: #0B100D; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.nowrap { white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--green); color: #0B100D; font-weight: 700; padding: .6rem 1rem; border-radius: var(--pill); }
.skip:focus { top: 1rem; }

/* grain overlay for tactile depth */
.grain {
  position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: .09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

/* ── Type scale ── */
.h1 {
  font-size: clamp(2.2rem, 1rem + 5vw, 4.25rem);
  line-height: 1.02; letter-spacing: -.035em; font-weight: 800;
  font-variation-settings: 'opsz' 96;
  text-wrap: balance;
}
.h1 .accent { color: var(--green-2); }
.h2 {
  font-size: clamp(1.9rem, 1.4rem + 2.2vw, 3rem);
  line-height: 1.08; letter-spacing: -.03em; font-weight: 800;
  font-variation-settings: 'opsz' 96;
  max-width: 22ch; text-wrap: balance;
}
.lead { font-size: 1.05rem; color: var(--ink-2); max-width: 36rem; line-height: 1.5; }
.sub { font-size: 1.05rem; color: var(--ink-2); max-width: 34rem; margin-top: .9rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green-2);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(107,160,128,.20); animation: pulse 2.4s ease-in-out infinite; }
.eyebrow .dot { position: relative; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(107,160,128,.10); } }
@media (min-width: 768px) {
  .lead { font-size: 1.15rem; }
  .sub { font-size: 1.1rem; }
}

/* ── Buttons ── */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 56px; padding: 0 1.6rem; border-radius: var(--pill);
  background: var(--green); color: #0B100D; font-weight: 700; font-size: 1rem; letter-spacing: -.005em;
  box-shadow: 0 8px 20px rgba(107,160,128,.22);
  transition: transform .35s var(--ease), background-color .25s ease, box-shadow .35s var(--ease);
  white-space: nowrap;
}
.btn:hover { background: var(--green-2); transform: translateY(-2px); box-shadow: 0 14px 28px rgba(107,160,128,.32); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-sm { min-height: 44px; padding: 0 1.1rem; font-size: .92rem; box-shadow: none; }
.btn-light { background: var(--ink); color: var(--green-deep); box-shadow: 0 8px 20px rgba(0,0,0,.28); }
.btn-light:hover { background: #fff; color: var(--green-deep); }
/* Secondary — outlined pill for supporting actions like "Check my spot" */
.btn-secondary {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--line-2); box-shadow: none;
  min-height: 52px;
}
.btn-secondary:hover {
  background: rgba(107,160,128,.08); color: var(--ink);
  border-color: var(--green-2); transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(107,160,128,.14);
}
/* Hero secondary row — "Already on the list?" label + Check my spot button */
.hero-secondary {
  display: flex; align-items: center; gap: .9rem; flex-wrap: wrap;
  margin-top: 1rem;
}
.hero-secondary-label { color: var(--ink-3); font-size: .92rem; }
@media (max-width: 460px) {
  .hero-secondary { gap: .55rem; }
  .hero-secondary-label { font-size: .86rem; width: 100%; }
  .hero-secondary .btn-secondary { width: 100%; }
}
.btn-spinner { position: absolute; width: 20px; height: 20px; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; opacity: 0; animation: spin .7s linear infinite paused; }
.btn.is-loading { pointer-events: none; }
.btn.is-loading .btn-label { opacity: 0; }
.btn.is-loading .btn-spinner { opacity: 1; animation-play-state: running; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,16,13,.72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(0,0,0,.35); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; color: var(--ink); }
.brand-mark { width: 28px; height: 28px; color: var(--green); }
.brand.small { font-size: .95rem; font-weight: 600; color: var(--ink-2); }
.brand.small .brand-mark { width: 20px; height: 20px; }
.header-actions { display: flex; align-items: center; gap: .5rem; }

/* ── Position widget modal ─────────────────────────────────────── */
.spot-modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 1rem; }
.spot-modal[hidden] { display: none !important; }
.spot-backdrop { position: absolute; inset: 0; background: rgba(11,16,13,.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: spotFade .3s var(--ease); }
@keyframes spotFade { from { opacity: 0; } }
.spot-card {
  position: relative; z-index: 1;
  width: 100%; max-width: 480px;
  background: var(--card-2); border: 1px solid var(--line-2); border-radius: 24px;
  padding: 1.75rem 1.5rem 1.5rem; box-shadow: 0 40px 90px rgba(0,0,0,.55);
  animation: spotIn .4s cubic-bezier(.22, 1, .36, 1);
}
@keyframes spotIn { from { opacity: 0; transform: translateY(20px) scale(.96); } }
.spot-close {
  position: absolute; top: 12px; right: 12px; width: 36px; height: 36px;
  border-radius: 50%; border: 0; background: rgba(255,255,255,.06); color: var(--ink);
  font-size: 1.1rem; cursor: pointer; transition: background-color .2s;
}
.spot-close:hover { background: rgba(255,255,255,.12); }
.spot-kicker { display: inline-flex; align-items: center; gap: .5rem; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--green-2); margin: 0 0 .7rem; }
.spot-kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.spot-card h2 { font-family: 'Geist', sans-serif; font-size: 1.55rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; margin: 0 0 .55rem; color: var(--ink); }
.spot-sub { color: var(--ink-2); font-size: .95rem; margin: 0 0 1.1rem; line-height: 1.45; }
.spot-field { display: flex; gap: .5rem; align-items: stretch; }
.spot-field .input { flex: 1; }
.spot-field .btn { min-height: 52px; padding: 0 1.2rem; white-space: nowrap; }
.spot-error { color: #E58A75; font-size: .88rem; margin: .7rem 0 0; }
.spot-result { margin-top: 1rem; animation: refIn .5s var(--ease); }
@media (max-width: 460px) {
  .spot-field { flex-direction: column; }
  .spot-field .btn { width: 100%; }
}

/* ── Reveal system ── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
.stagger > * { opacity: 0; transform: translateY(30px); transition: opacity .85s var(--ease), transform .85s var(--ease); }
.stagger.in > * { opacity: 1; transform: none; }
.stagger.in > :nth-child(1) { transition-delay: .05s; }
.stagger.in > :nth-child(2) { transition-delay: .17s; }
.stagger.in > :nth-child(3) { transition-delay: .29s; }
.stagger.in > :nth-child(4) { transition-delay: .41s; }
.stagger.in > :nth-child(5) { transition-delay: .53s; }
.stagger.in > :nth-child(6) { transition-delay: .65s; }
.stagger.in > :nth-child(7) { transition-delay: .77s; }
.stagger.in > :nth-child(n+8) { transition-delay: .85s; }

/* kinetic masked line reveal */
.kinetic .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.kinetic .line > span { display: inline-block; transform: translateY(112%) rotate(2.5deg); transform-origin: 0 100%; transition: transform 1.1s var(--ease); will-change: transform; }
.kinetic.in .line > span { transform: none; }
.kinetic.in .line:nth-child(2) > span { transition-delay: .12s; }
.kinetic.in .line:nth-child(3) > span { transition-delay: .24s; }

/* ═══════════════════ HERO ═══════════════════ */
.hero { position: relative; overflow: hidden; padding-top: 2.75rem; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-glow { position: absolute; right: -20%; top: -10%; width: 70vw; height: 70vw; max-width: 760px; max-height: 760px; border-radius: 50%; background: radial-gradient(closest-side, rgba(107,160,128,.22), rgba(107,160,128,0)); }
.hero-contours { position: absolute; right: -10%; top: 10%; width: 120%; height: 100%; color: var(--green); opacity: .22; transform: translate3d(0, var(--py, 0px), 0); }
.hero-grid { position: relative; display: grid; gap: 3rem; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 1.35rem; }
.hero-copy .h1 { margin-top: .25rem; }
.trust { font-size: .85rem; color: var(--ink-3); letter-spacing: .01em; }

/* form */
.waitlist-form { width: 100%; max-width: 34rem; display: flex; flex-direction: column; gap: .75rem; }
.field-row { display: flex; flex-direction: column; gap: .6rem; }
.input {
  width: 100%; height: 56px; border-radius: var(--pill); border: 1.5px solid var(--line-2); background: var(--card);
  padding: 0 1.3rem; font: inherit; font-size: 1rem; color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
  appearance: none;
}
.input::placeholder { color: var(--ink-3); }
.input:focus { outline: none; border-color: var(--green); background: var(--card-2); box-shadow: 0 0 0 4px rgba(107,160,128,.18); }
.input.invalid { border-color: var(--err); }
.optional-toggle { align-self: flex-start; font-size: .88rem; font-weight: 600; color: var(--green-2); padding: .35rem .2rem; min-height: 40px; transition: color .2s; }
.optional-toggle:hover { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.optional-fields { display: grid; gap: .6rem; grid-template-columns: 1fr 1fr; }
.optional-fields .input { height: 52px; font-size: .95rem; }
.hp { position: absolute !important; left: -9999px !important; top: auto; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.form-error { color: var(--err); font-size: .9rem; font-weight: 600; padding-left: .5rem; }
.hint { font-size: .82rem; color: var(--ink-3); padding-left: .5rem; }
.on-dark .hint { color: rgba(255,255,255,.5); }
.form-success {
  display: flex; gap: .9rem; align-items: flex-start;
  background: var(--sage); border: 1px solid var(--sage-2); border-radius: var(--r); padding: 1.1rem 1.25rem;
  animation: pop .6s var(--ease);
}
.form-success strong { display: block; font-weight: 700; color: var(--green-2); line-height: 1.35; }
.form-success span { display: block; font-size: .9rem; color: var(--ink-2); margin-top: .2rem; }
.form-success .check { width: 30px; height: 30px; flex: none; fill: none; stroke: var(--green); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.form-success .check path { stroke-dasharray: 20; stroke-dashoffset: 20; animation: draw .6s .25s var(--ease) forwards; }
.form-success .success-body { flex: 1; min-width: 0; }
/* Member number badge — permanent signup-order tag */
.member-badge {
  display: inline-flex !important; align-items: center; gap: .4rem;
  margin-top: .7rem; padding: .3rem .7rem .3rem .55rem;
  border-radius: 999px; background: rgba(107,160,128,.14);
  border: 1px solid rgba(107,160,128,.28);
  color: var(--green-2) !important; font-weight: 700; font-size: .78rem !important;
  letter-spacing: .04em; font-variant-numeric: tabular-nums;
  width: auto; align-self: flex-start;
}
.member-badge::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 3px rgba(107,160,128,.20);
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }

/* Referral card inside the success state */
.ref-card {
  margin-top: 1rem; padding: 1rem; border-radius: 16px;
  background: rgba(11,16,13,.55); border: 1px solid rgba(107,160,128,.28);
  animation: refIn .6s .2s var(--ease) both;
}
@keyframes refIn { from { opacity: 0; transform: translateY(8px); } }
.ref-label {
  display: flex; align-items: center; justify-content: space-between;
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  font-weight: 700; color: var(--ink-3); margin-bottom: .55rem;
}
.ref-count { color: var(--green-2); font-variant-numeric: tabular-nums; }
.ref-link {
  display: flex; align-items: center; gap: .5rem;
  background: var(--card); border: 1px solid var(--line-2); border-radius: var(--pill);
  padding: 4px 4px 4px 14px; transition: border-color .2s, box-shadow .2s;
}
.ref-link:focus-within { border-color: var(--green); box-shadow: 0 0 0 4px rgba(107,160,128,.15); }
.ref-link input {
  flex: 1; min-width: 0; height: 40px; border: 0; background: transparent;
  color: var(--ink); font: inherit; font-size: .92rem; font-family: 'JetBrains Mono', monospace;
  outline: none; letter-spacing: -.005em;
}
.ref-copy {
  height: 40px; padding: 0 1rem; border-radius: 999px;
  background: var(--green); color: #0B100D; font-weight: 700; font-size: .88rem;
  border: 0; cursor: pointer; position: relative; transition: background-color .2s, transform .2s;
  min-width: 82px; flex: none;
}
.ref-copy:hover { background: var(--green-2); }
.ref-copy:active { transform: scale(.97); }
.ref-copy .copy-done { display: none; }
.ref-copy.done { background: var(--green-2); }
.ref-copy.done .copy-idle { display: none; }
.ref-copy.done .copy-done { display: inline; }
.ref-share { display: flex; gap: .5rem; margin-top: .7rem; flex-wrap: wrap; }
.ref-share-btn {
  flex: 1; min-width: 110px;
  padding: .55rem .9rem; border-radius: 999px;
  background: transparent; border: 1px solid var(--line-2); color: var(--ink-2);
  font-weight: 600; font-size: .82rem; text-align: center; text-decoration: none;
  transition: color .2s, border-color .2s, background-color .2s; cursor: pointer;
}
.ref-share-btn:hover { color: var(--ink); border-color: var(--green-2); background: rgba(107,160,128,.08); }

@media (max-width: 560px) {
  .ref-link input { font-size: .82rem; }
  .ref-copy { padding: 0 .8rem; min-width: 72px; font-size: .82rem; }
}

@media (min-width: 560px) {
  .field-row { flex-direction: row; background: var(--card); border: 1.5px solid var(--line-2); border-radius: var(--pill); padding: 5px; transition: border-color .2s, box-shadow .2s, background-color .2s; }
  .field-row:focus-within { border-color: var(--green); background: var(--card-2); box-shadow: 0 0 0 4px rgba(107,160,128,.18); }
  .field-row .input { border: 0; height: 52px; flex: 1; min-width: 0; background: transparent; }
  .field-row .input:focus { box-shadow: none; background: transparent; }
  .field-row .btn { height: 52px; min-height: 52px; }
}

/* phone mockup */
.hero-phone { display: flex; justify-content: center; }
.phone-stage { position: relative; perspective: 1400px; padding: 1.5rem 0 2rem; animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
.phone {
  width: min(320px, 84vw); aspect-ratio: 9 / 19.2; border-radius: 46px; padding: 11px;
  background: linear-gradient(160deg, #1b2a22, #05080605); box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255,255,255,.06);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d;
  transition: transform .5s var(--ease);
}
.phone-screen { position: relative; height: 100%; border-radius: 36px; background: #000; overflow: hidden; display: flex; flex-direction: column; }

/* iOS-style status bar */
.status-bar { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.5rem .5rem; font-size: .82rem; font-weight: 700; color: var(--ink); }
.status-time { font-family: -apple-system, 'SF Pro Text', 'Geist', sans-serif; font-size: .95rem; letter-spacing: -.01em; }
.status-right { display: inline-flex; align-items: center; gap: .35rem; }
.status-ico { width: 16px; height: 12px; color: var(--ink); }
.status-battery { display: inline-flex; align-items: center; gap: .2rem; font-family: -apple-system, sans-serif; font-size: .72rem; font-weight: 600; border: 1.3px solid rgba(255,255,255,.55); padding: 1px 3px 1px 4px; border-radius: 4px; position: relative; }
.status-battery::after { content: ''; position: absolute; right: -3px; top: 4px; width: 2px; height: 4px; background: rgba(255,255,255,.55); border-radius: 0 1px 1px 0; }
.status-battery-fill { position: absolute; left: 1px; top: 1px; bottom: 1px; width: 92%; background: #fff; border-radius: 2px; z-index: 0; }
.status-battery { position: relative; padding-left: 5px; }
.status-battery > :not(.status-battery-fill) { position: relative; z-index: 1; color: #000; font-weight: 700; }

/* Chat header — matches the Golfli app */
.chat-head { display: flex; align-items: center; gap: .7rem; padding: .7rem 1rem .85rem; border-bottom: 1px solid rgba(255,255,255,.06); }
.chat-head-title { flex: 1; min-width: 0; }
.chat-head strong { display: block; font-size: 1rem; line-height: 1.1; color: var(--ink); font-weight: 700; letter-spacing: -.01em; }
.chat-head small { display: inline-flex; align-items: center; gap: .35rem; font-size: .74rem; color: var(--ink-3); font-weight: 500; margin-top: 2px; }
.chat-live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 2px rgba(107,160,128,.18); animation: pulse 2.4s ease-in-out infinite; }
.bot-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--green); color: #0B100D; font-weight: 800; display: grid; place-items: center; font-size: 1.1rem; flex: none; }
.chat-head-icons { display: inline-flex; gap: .5rem; color: var(--ink-3); }
.chat-head-icons svg { width: 20px; height: 20px; opacity: .75; }

/* Chat body */
.chat { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; display: flex; flex-direction: column; gap: .55rem; padding: .9rem .8rem 1rem; }
.chat::-webkit-scrollbar { display: none; }
.chat > * { flex: none; }
.msg {
  max-width: 84%; padding: .7rem .95rem; border-radius: 20px; font-size: .88rem; line-height: 1.4;
  opacity: 0; transform: translateY(10px) scale(.97); transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.msg.show { opacity: 1; transform: none; }
.msg.user { align-self: flex-end; background: rgba(107,160,128,.22); color: var(--ink); border: 1px solid rgba(107,160,128,.32); }
.msg.bot { align-self: flex-start; background: #141917; color: var(--ink); border: 1px solid rgba(255,255,255,.05); }
.msg.typing { display: none; gap: 4px; padding: .85rem .95rem; }
.msg.typing.show { display: flex; }
.msg.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-2); animation: bounce 1s infinite; }
.msg.typing i:nth-child(2) { animation-delay: .15s; } .msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 40% { transform: translateY(-4px); opacity: .6; } }

/* Course cards — horizontal scroll, matches the app */
.course-cards {
  display: flex; gap: .6rem; overflow-x: auto; scrollbar-width: none;
  padding: .3rem 0 .1rem; margin: .2rem -.2rem 0;
  scroll-snap-type: x mandatory;
  opacity: 0; transform: translateY(10px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.course-cards.show { opacity: 1; transform: none; }
.course-cards::-webkit-scrollbar { display: none; }
.course-card {
  flex: none; width: 88%; scroll-snap-align: start;
  background: #0F1412; border: 1px solid rgba(255,255,255,.05); border-radius: 16px;
  overflow: hidden;
}
.cc-photo {
  position: relative; height: 130px;
  background-color: #345847;
  background-size: cover;
  background-position: center;
}
.cc-photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.05) 0%, transparent 40%, rgba(0,0,0,.55) 100%);
  pointer-events: none;
}
.cc-photo-overland {
  background-image:
    linear-gradient(180deg, rgba(0,0,0,.08) 0%, transparent 45%),
    url('https://customer-assets-jai6qajn.emergentagent.net/job_denver-munis-golf/artifacts/8b17mqyk_image.png');
}
.cc-photo-evergreen {
  background-image:
    linear-gradient(180deg, rgba(0,0,0,.08) 0%, transparent 45%),
    url('https://customer-assets-jai6qajn.emergentagent.net/job_denver-munis-golf/artifacts/i6x6wvxn_image.png');
}
.cc-rating {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  display: inline-flex; align-items: center; gap: .25rem;
  padding: .3rem .55rem; border-radius: 999px;
  background: rgba(11,16,13,.72); color: var(--ink);
  font-size: .78rem; font-weight: 700; font-family: -apple-system, sans-serif;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.cc-rating svg { width: 12px; height: 12px; color: #F4CD3A; }
.cc-time {
  position: absolute; bottom: 10px; left: 10px; z-index: 2;
  padding: .35rem .7rem; border-radius: 999px;
  background: rgba(11,16,13,.78); color: var(--ink);
  font-size: .8rem; font-weight: 700; font-variant-numeric: tabular-nums;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.cc-body { padding: .8rem .85rem .85rem; }
.cc-title-row { display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; margin-bottom: .7rem; }
.cc-title { font-size: .95rem; font-weight: 700; color: var(--ink); letter-spacing: -.01em; line-height: 1.2; margin: 0; }
.cc-dist { font-size: .78rem; color: var(--ink-3); margin: .2rem 0 0; }
.cc-price { font-size: 1rem; font-weight: 800; color: var(--green-2); font-variant-numeric: tabular-nums; flex: none; }
.cc-stats { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; margin-bottom: .55rem; }
.cc-stat {
  display: flex; align-items: center; gap: .45rem;
  padding: .5rem .55rem; border-radius: 10px;
  background: #141917; border: 1px solid rgba(255,255,255,.04);
}
.cc-stat svg { width: 16px; height: 16px; color: var(--ink-3); }
.cc-stat span { display: block; font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); line-height: 1; }
.cc-stat strong { display: block; font-size: 1rem; font-weight: 700; color: var(--ink); margin-top: 2px; font-variant-numeric: tabular-nums; line-height: 1; }
.cc-book, .cc-book-web {
  display: flex; align-items: center; justify-content: center; gap: .4rem;
  width: 100%; min-height: 40px; padding: 0 .8rem;
  border-radius: 10px; font-weight: 700; font-size: .85rem; letter-spacing: -.005em;
  margin-bottom: .35rem;
}
.cc-book { background: rgba(107,160,128,.28); color: var(--ink); border: 1px solid rgba(107,160,128,.4); }
.cc-book svg { width: 15px; height: 15px; color: var(--green-2); }
.cc-book-web { background: transparent; color: var(--ink-2); border: 1px solid rgba(255,255,255,.08); }
.cc-book-web svg { width: 13px; height: 13px; color: var(--ink-3); }
.cc-rate { display: flex; align-items: center; gap: .4rem; margin-top: .5rem; padding-top: .5rem; border-top: 1px solid rgba(255,255,255,.05); }
.cc-rate span { flex: 1; font-size: .8rem; color: var(--ink-2); font-weight: 500; }
.cc-rate button { width: 34px; height: 30px; border-radius: 8px; background: #141917; border: 1px solid rgba(255,255,255,.06); font-size: .95rem; }

/* Suggestion pills */
.chat-suggestions {
  display: flex; gap: .5rem; padding: .3rem 0 0; overflow-x: auto; scrollbar-width: none;
  opacity: 0; transform: translateY(6px); transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.chat-suggestions.show { opacity: 1; transform: none; }
.chat-suggestions::-webkit-scrollbar { display: none; }
.chat-suggestions button {
  flex: none; padding: .55rem 1rem; border-radius: 999px;
  background: #141917; border: 1px solid rgba(255,255,255,.06);
  font-size: .8rem; font-weight: 600; color: var(--ink-2); white-space: nowrap;
}

/* Bottom input bar — "Message Tee-Bot…" with mic */
.chat-input-bar {
  margin: .5rem .8rem .9rem; height: 46px; padding: 0 .35rem 0 1rem;
  border-radius: 23px; background: #141917; border: 1px solid rgba(255,255,255,.06);
  display: flex; align-items: center; gap: .3rem;
}
.chat-input {
  flex: 1; min-width: 0; border: 0; background: transparent; font: inherit;
  font-size: .9rem; color: var(--ink); outline: none;
}
.chat-input::placeholder { color: var(--ink-3); }
.chat-mic {
  flex: none; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(107,160,128,.35); color: var(--ink);
  display: grid; place-items: center; border: 0;
}
.chat-mic svg { width: 16px; height: 16px; }
.chat-form .send:hover { transform: scale(1.08); background: var(--green-2); }
.chat-form .send:disabled { opacity: .5; pointer-events: none; }

.float-chip {
  position: absolute; z-index: 2; background: var(--card-2); border: 1px solid var(--line-2); border-radius: var(--pill);
  padding: .45rem .8rem; font-size: .74rem; font-weight: 700; box-shadow: var(--shadow); white-space: nowrap; color: var(--ink);
}
.chip-a { left: -.6rem; top: .1rem; transform: rotate(-4deg); animation: float 6s .8s ease-in-out infinite; }
.chip-b { right: -.8rem; bottom: .2rem; transform: rotate(3deg); animation: float 6.5s 1.6s ease-in-out infinite; }
.chip-b .tick { color: var(--green); margin-right: .2rem; }

@media (min-width: 960px) {
  .hero { padding-top: 3.5rem; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; align-items: center; min-height: min(calc(100svh - var(--header-h) - 60px), 720px); }
  .hero-copy { gap: 1.6rem; }
  .phone { width: 330px; }
  .phone-stage { padding: 2.5rem 0 3rem; }
  .chip-a { left: -3.5rem; top: .6rem; }
  .chip-b { right: -4rem; bottom: .9rem; }
}

/* editorial marquee */
.marquee {
  position: relative; margin-top: 2rem; padding: 1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 240s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { display: inline-flex; align-items: center; gap: 2.2rem; padding-right: 2.2rem; font-size: .82rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); }
.marquee-track span::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ═══════════════════ SECTIONS / CHAPTERS ═══════════════════ */
.section { padding: 4.5rem 0; }
.band { background: var(--band); }
.chapter { position: relative; overflow: hidden; }
.chapter-head { display: inline-flex; align-items: center; gap: .8rem; margin-bottom: 1.1rem; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.chapter-head::before { content: ''; width: 28px; height: 2px; background: var(--green); order: 1; }
.chapter-label { color: var(--ink-3); order: 2; }
.footnote { margin-top: 2rem; font-size: .92rem; color: var(--ink-3); }
@media (min-width: 768px) { .section { padding: 6.5rem 0; } }
@media (min-width: 1024px) { .section { padding: 8rem 0; } }

/* cards */
.cards-3 { display: grid; gap: 1rem; margin-top: 2.25rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.6rem 1.5rem; box-shadow: var(--shadow-sm); transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s ease; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--line-2); }
.card h3 { font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; margin: .9rem 0 .5rem; color: var(--ink); }
.card p { color: var(--ink-2); font-size: .98rem; }
.tag { display: inline-flex; align-items: center; height: 30px; padding: 0 .75rem; border-radius: var(--pill); background: var(--sage); color: var(--green-2); font-weight: 800; font-size: .8rem; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
@media (min-width: 768px) { .cards-3 { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 3rem; } .card { padding: 2rem 1.75rem; } }

/* steps */
.steps { display: grid; gap: 1.25rem; margin-top: 2.25rem; counter-reset: step; }
.step { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.6rem 1.5rem 1.6rem 1.5rem; box-shadow: var(--shadow-sm); }
.step-icon { width: 52px; height: 52px; border-radius: 16px; background: var(--sage); display: grid; place-items: center; }
.step-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--green); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.step-num { position: absolute; right: 1.35rem; top: 1.25rem; font-size: 2.6rem; font-weight: 800; line-height: 1; color: var(--sage-2); letter-spacing: -.04em; font-variation-settings: 'opsz' 96; }
.step h3 { font-size: 1.2rem; font-weight: 800; letter-spacing: -.02em; margin: 1rem 0 .45rem; padding-right: 2.5rem; color: var(--ink); }
.step p { color: var(--ink-2); font-size: .98rem; }
@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 3rem; }
  .step { padding: 2rem 1.75rem; }
  .step:not(:last-child)::after { content: ''; position: absolute; right: -1.25rem; top: 50%; width: 1.25rem; border-top: 2px dashed var(--sage-2); }
}

/* remembers */
.two-col { display: grid; gap: 2.5rem; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.chips li { padding: .5rem .9rem; border-radius: var(--pill); background: var(--card); border: 1px solid var(--line); font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.memory-card { background: linear-gradient(155deg, #1E2A22, #12191545); color: #fff; border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 1.5rem; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.memory-card::before { content: ''; position: absolute; inset: auto -30% -50% auto; width: 80%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(107,160,128,.16), transparent); }
.mc-head { display: flex; align-items: center; gap: .75rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.mc-head strong { display: block; font-size: 1rem; letter-spacing: -.01em; }
.mc-head small { font-size: .78rem; color: rgba(255,255,255,.62); }
.mc-rows > div { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid rgba(255,255,255,.06); font-size: .95rem; }
.mc-rows dt { color: rgba(255,255,255,.55); font-weight: 500; }
.mc-rows dd { font-weight: 700; text-align: right; }
.mc-foot { display: flex; gap: .5rem; margin-top: 1rem; }
.mc-pill { font-size: .78rem; font-weight: 700; padding: .4rem .75rem; border-radius: var(--pill); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.10); }
@media (min-width: 900px) { .two-col { grid-template-columns: 1.05fr .95fr; gap: 4rem; } .memory-card { padding: 2rem; transform: rotate(-1.2deg); } .memory-card.in { transform: rotate(-1.2deg); } }

/* courses — grouped directory */
.course-groups { margin-top: 2.25rem; columns: 1; column-gap: 1.5rem; }
.course-group { break-inside: avoid; margin-bottom: 1.5rem; padding-top: .9rem; border-top: 2px solid var(--green); }
.course-group h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem .7rem; margin: 0 0 .35rem; font-size: 1.05rem; font-weight: 800; letter-spacing: -.015em; color: var(--ink); }
.course-group h3 small { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.course-group li { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; padding: .6rem .4rem; margin: 0 -.4rem; border-bottom: 1px solid var(--line); border-radius: 8px; transition: background-color .25s ease; }
.course-group li:last-child { border-bottom: 0; }
.course-group li:hover { background: rgba(107,160,128,.06); }
.course-group strong { font-size: .97rem; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.course-group small { font-size: .78rem; color: var(--ink-3); text-align: right; white-space: nowrap; }
@media (min-width: 640px) { .course-groups { columns: 2; column-gap: 2rem; } }
@media (min-width: 1024px) { .course-groups { columns: 3; column-gap: 2.5rem; margin-top: 3rem; } }

.photo-ph { margin-top: 1.5rem; }
.photo-ph-inner { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; background: linear-gradient(135deg, #131A15, #0F1512 60%, #131A17); border: 1.5px dashed var(--sage-2); display: grid; place-items: center; }
.photo-ph-inner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph-contours { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--green); opacity: .28; }
.ph-label { position: relative; text-align: center; padding: 1rem; background: rgba(11,16,13,.72); backdrop-filter: blur(8px); border-radius: var(--r); border: 1px solid rgba(255,255,255,.08); display: flex; flex-direction: column; gap: .25rem; }
.ph-kicker { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 800; color: var(--green-2); }
.ph-label strong { font-size: 1rem; letter-spacing: -.01em; color: var(--ink); }
.ph-label small { font-size: .78rem; color: var(--ink-3); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.photo-ph figcaption { margin-top: .7rem; font-size: .85rem; color: var(--ink-3); }
@media (min-width: 768px) { .photo-ph { margin-top: 2rem; } .photo-ph-inner { aspect-ratio: 21 / 8; } }

/* FAQ */
.faq-wrap { display: grid; gap: 2rem; }
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.15rem 0; text-align: left; font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; min-height: 64px; color: var(--ink); transition: color .2s; }
.faq-q:hover { color: var(--green-2); }
.plus { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--line-2); color: var(--ink-2); transition: transform .45s var(--ease), background-color .3s, border-color .3s, color .3s; }
.plus::before, .plus::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: currentColor; transform: translate(-50%, -50%); }
.plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.open .plus { transform: rotate(135deg); background: var(--green); border-color: var(--green); color: #0B100D; }
.faq-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.faq-panel > div { overflow: hidden; }
.faq-panel p { color: var(--ink-2); padding-bottom: 1.25rem; max-width: 60ch; }
.faq-item.open .faq-panel { grid-template-rows: 1fr; }
@media (min-width: 900px) { .faq-wrap { grid-template-columns: .8fr 1.2fr; gap: 4rem; align-items: start; } .faq-q { font-size: 1.15rem; padding: 1.35rem 0; } }

/* ═══════════════════ FINAL CTA ═══════════════════ */
.final { position: relative; overflow: hidden; background: linear-gradient(180deg, #0F1512, #0A0F0C); color: #fff; padding: 5rem 0; border-top: 1px solid var(--line-2); }
.final::before { content: ''; position: absolute; inset: 0; background: radial-gradient(80% 60% at 50% 0%, rgba(107,160,128,.16), transparent 60%); pointer-events: none; }
.final-contours { position: absolute; inset: -10% -20% auto auto; width: 130%; height: 120%; color: var(--green); opacity: .18; pointer-events: none; }
.final-inner { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 1.4rem; }
.final .lead { color: rgba(255,255,255,.72); }
.final .trust { color: rgba(255,255,255,.55); }
.final .h1 .line > span { color: #fff; }
.final .h1 .accent { color: var(--green-2); }
.on-dark .input { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: #fff; }
.on-dark .input::placeholder { color: rgba(255,255,255,.5); }
.on-dark .input:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(107,160,128,.24); background: rgba(255,255,255,.09); }
.on-dark .form-error { color: #FFB4A3; }
.on-dark .form-success { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); }
.on-dark .form-success strong { color: #fff; }
.on-dark .form-success span { color: rgba(255,255,255,.7); }
.on-dark .form-success .check { stroke: var(--green-2); }
@media (min-width: 560px) {
  .on-dark .field-row { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); }
  .on-dark .field-row:focus-within { border-color: var(--green); box-shadow: 0 0 0 4px rgba(107,160,128,.24); }
  .on-dark .field-row .input { background: transparent; }
}
@media (min-width: 768px) { .final { padding: 8rem 0; } .final-inner { align-items: center; text-align: center; } .final .h1 { text-align: center; } }

/* ═══════════════════ FOOTER ═══════════════════ */
.footer { padding: 2.5rem 0 3rem; background: var(--bg); border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-direction: column; gap: 1.25rem; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.footer-links { display: flex; gap: 1.5rem; font-size: .92rem; color: var(--ink-2); }
.footer-links a { position: relative; padding: .5rem 0; min-height: 44px; display: inline-flex; align-items: center; transition: color .2s; }
.footer-links a:hover { color: var(--green-2); }
.disclaimer { font-size: .82rem; color: var(--ink-3); max-width: 60ch; }

/* ═══════════════════ EXTRA MOTION LAYER ═══════════════════ */

/* Scroll progress bar — thin sage-green ticker at top */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--green), var(--green-2));
  z-index: 60; pointer-events: none;
  box-shadow: 0 0 12px rgba(107,160,128,.42);
  transition: width .12s linear, opacity .3s ease;
}

/* Magnetic buttons — tiny 3D-lift feel driven by JS transform */
.btn.magnetic { will-change: transform; transition: transform .35s var(--ease), background-color .25s ease, box-shadow .35s var(--ease); }

/* 3D-tiltable cards — driven by JS setting --tx / --ty CSS vars */
.tiltable {
  transform: perspective(900px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)) translateZ(0);
  transform-style: preserve-3d;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s ease;
}
.tiltable:hover { transition-duration: .12s; }
.tiltable > * { transform: translateZ(0); }

/* Elastic tag pop-in — fires when .reveal wraps a .card and it becomes .in */
.card .tag, .step-num {
  display: inline-flex; transform-origin: left center;
}
.card.pain.reveal.in .tag {
  animation: tagPop .7s cubic-bezier(.34, 1.6, .5, 1) .2s both;
}
.step.reveal.in .step-num {
  animation: numPop .8s cubic-bezier(.34, 1.7, .5, 1) .25s both;
}
@keyframes tagPop {
  0%   { transform: scale(0) rotate(-8deg); opacity: 0; }
  60%  { transform: scale(1.15) rotate(2deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); }
}
@keyframes numPop {
  0%   { transform: scale(0.4); opacity: 0; }
  60%  { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); }
}

/* Course rows cascade-in as their group enters view */
.course-group.in li { animation: rowIn .6s var(--ease) both; }
.course-group.in li:nth-child(1) { animation-delay: .04s; }
.course-group.in li:nth-child(2) { animation-delay: .08s; }
.course-group.in li:nth-child(3) { animation-delay: .12s; }
.course-group.in li:nth-child(4) { animation-delay: .16s; }
.course-group.in li:nth-child(5) { animation-delay: .2s; }
.course-group.in li:nth-child(6) { animation-delay: .24s; }
.course-group.in li:nth-child(7) { animation-delay: .28s; }
.course-group.in li:nth-child(8) { animation-delay: .32s; }
.course-group.in li:nth-child(9) { animation-delay: .36s; }
.course-group.in li:nth-child(n+10) { animation-delay: .4s; }
@keyframes rowIn {
  0%   { opacity: 0; transform: translateX(-14px); }
  100% { opacity: 1; transform: translateX(0); }
}

/* Float chips drift — the "Searches all 40+ metro courses" & "Auto-books" chips gently bob */
.float-chip.chip-a { animation: chipDriftA 6s ease-in-out infinite; }
.float-chip.chip-b { animation: chipDriftB 7s ease-in-out infinite; animation-delay: .8s; }
@keyframes chipDriftA {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(0, -8px); }
}
@keyframes chipDriftB {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(0, 8px); }
}

/* Hero eyebrow-dot pulse ring — layer on top of existing pulse */
.eyebrow .dot::before {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  background: var(--green); opacity: .35; z-index: -1;
  animation: dotRing 2.4s ease-out infinite;
}
@keyframes dotRing {
  0%   { transform: scale(1);   opacity: .35; }
  100% { transform: scale(2.8); opacity: 0; }
}

/* Underline draw on inline text-links inside body copy */
.card p a, .step p a, .faq-panel p a {
  position: relative; text-decoration: none; color: var(--green-2);
}
.card p a::after, .step p a::after, .faq-panel p a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: right center;
  transition: transform .45s var(--ease);
}
.card p a:hover::after, .step p a:hover::after, .faq-panel p a:hover::after {
  transform: scaleX(1); transform-origin: left center;
}

/* Reveal enhancement — cards get a subtle scale-punch when they enter */
.card.reveal.in, .step.reveal.in {
  animation: cardSettle .8s cubic-bezier(.22, 1, .36, 1) both;
}
@keyframes cardSettle {
  0%   { transform: translateY(24px) scale(.985); }
  60%  { transform: translateY(-2px) scale(1.004); }
  100% { transform: translateY(0) scale(1); }
}

/* Cursor spotlight in hero — subtle radial light that follows the mouse */
.hero { position: relative; }
.hero-spotlight {
  position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: 0;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(107,160,128,.16), transparent 65%);
  transition: opacity .5s ease;
  mix-blend-mode: screen;
}
.hero:hover .hero-spotlight { opacity: 1; }

/* Marquee — pause + brighten on hover */
.marquee:hover .marquee-track { animation-play-state: paused; filter: brightness(1.15); }
.marquee-track { transition: filter .3s ease; }

/* Confetti canvas — fixed, top-level */
.confetti-canvas { position: fixed; inset: 0; z-index: 70; pointer-events: none; }

/* Text-scramble — accent during scramble state */
.h1 .accent.scrambling { color: var(--green); }
.h1 .accent.scrambling::after {
  content: ''; display: inline-block; width: 6px; height: 1em; margin-left: 4px; vertical-align: -0.14em;
  background: currentColor; animation: caretBlink .6s steps(2) infinite;
}
@keyframes caretBlink { 50% { opacity: 0; } }

/* Ball-mark divots — click the hero, leave a mark, fills back in over ~3s */
.hero-divots { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.divot {
  position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 32%, rgba(255,255,255,.10) 0%, rgba(11,16,13,.55) 42%, rgba(11,16,13,.75) 70%, transparent 100%);
  box-shadow:
    inset 0 3px 6px rgba(0,0,0,.55),
    inset 0 -1px 2px rgba(107,160,128,.35),
    0 0 0 1px rgba(107,160,128,.18);
  transform: scale(.2);
  opacity: 0;
  animation: divotLife 3s cubic-bezier(.22, 1, .36, 1) forwards;
}
.divot::after {
  content: ''; position: absolute; inset: -6px; border-radius: 50%;
  background: radial-gradient(circle, rgba(107,160,128,.32) 0%, transparent 60%);
  opacity: .8;
}
@keyframes divotLife {
  0%   { transform: scale(.2); opacity: 0; }
  10%  { transform: scale(1.15); opacity: 1; }
  25%  { transform: scale(1); opacity: 1; }
  85%  { transform: scale(1); opacity: .55; }
  100% { transform: scale(.6); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .divot { display: none !important; }
}

/* ═══════════════════ COURSE SEARCH ═══════════════════ */
.course-search {
  position: relative; display: flex; align-items: center; gap: .7rem;
  max-width: 460px; margin: 2rem 0 1.5rem;
  height: 52px; padding: 0 1.1rem; border-radius: var(--pill);
  background: var(--card); border: 1.5px solid var(--line-2);
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.course-search:focus-within { border-color: var(--green); background: var(--card-2); box-shadow: 0 0 0 4px rgba(107,160,128,.16); }
.course-search-icon { width: 18px; height: 18px; color: var(--ink-3); flex: none; transition: color .2s; }
.course-search:focus-within .course-search-icon { color: var(--green-2); }
.course-search-input {
  flex: 1; min-width: 0; height: 100%; border: 0; background: transparent;
  color: var(--ink); font: inherit; font-size: 1rem; outline: none;
}
.course-search-input::placeholder { color: var(--ink-3); }
.course-search-input::-webkit-search-cancel-button { -webkit-appearance: none; height: 16px; width: 16px; background: var(--ink-3); mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6 6l12 12M18 6L6 18' stroke='%23000' stroke-width='2' fill='none'/></svg>") center/contain no-repeat; cursor: pointer; }
.course-search-count { font-size: .82rem; color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.course-search-count.on { color: var(--green-2); font-weight: 700; }
.course-empty { display: none; padding: 2rem; text-align: center; color: var(--ink-3); background: var(--card); border: 1px dashed var(--line-2); border-radius: var(--r); margin-bottom: 2rem; }
.course-empty[hidden] { display: none; }
.course-empty:not([hidden]) { display: block; }
.course-empty strong { display: block; color: var(--ink-2); font-size: 1.05rem; margin-bottom: .3rem; }
.course-group.hide, .course-group li.hide { display: none; }
.course-match { background: rgba(107,160,128,.28); color: var(--ink); padding: 0 2px; border-radius: 3px; }

/* ═══════════════════ AMBIENT SIGNUP TOASTS ═══════════════════ */
.ambient-toasts { position: fixed; left: 20px; bottom: 20px; z-index: 55; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.ambient-toast {
  background: var(--card-2); border: 1px solid var(--line-2); border-radius: 14px;
  padding: .7rem .95rem .7rem .7rem; box-shadow: 0 20px 40px rgba(0,0,0,.55);
  display: flex; align-items: center; gap: .65rem; min-width: 240px; max-width: 320px;
  opacity: 0; transform: translateY(20px) scale(.96);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
  pointer-events: auto;
}
.ambient-toast.in { opacity: 1; transform: none; }
.ambient-toast.out { opacity: 0; transform: translateY(-8px) scale(.96); }
.ambient-toast .av { width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: #0B100D; font-weight: 800; display: grid; place-items: center; font-size: .85rem; flex: none; }
.ambient-toast .body { line-height: 1.3; }
.ambient-toast .body strong { display: block; font-size: .88rem; font-weight: 700; color: var(--ink); letter-spacing: -.005em; }
.ambient-toast .body span { font-size: .78rem; color: var(--ink-3); }
@media (max-width: 640px) {
  .ambient-toasts { left: 12px; right: 12px; bottom: 12px; }
  .ambient-toast { min-width: 0; max-width: 100%; }
}

/* ═══════════════════ KONAMI PUTTING GREEN ═══════════════════ */
.konami-stage {
  position: fixed; inset: 0; z-index: 80; background: radial-gradient(80% 60% at 50% 40%, #1E3D2A, #0B100D 75%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px;
  animation: konFade .4s var(--ease);
}
@keyframes konFade { from { opacity: 0; } }
.konami-stage h2 { font-family: 'Geist', sans-serif; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -.03em; margin: 0 0 .3rem; color: var(--ink); }
.konami-stage .sub { color: var(--ink-2); font-size: .95rem; margin: 0 0 1rem; }
.konami-canvas { background: linear-gradient(180deg, #4A7B5D 0%, #2E5A3F 100%); border-radius: 20px; box-shadow: inset 0 20px 40px rgba(0,0,0,.35), 0 30px 80px rgba(0,0,0,.6); border: 1px solid rgba(255,255,255,.06); max-width: 100%; touch-action: none; }
.konami-hud { display: flex; gap: 1.5rem; align-items: center; margin-top: 1rem; font-family: 'Geist', sans-serif; font-variant-numeric: tabular-nums; }
.konami-hud div { color: var(--ink-2); font-size: .88rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; }
.konami-hud div strong { display: block; font-size: 1.6rem; color: var(--green-2); letter-spacing: -.02em; margin-top: .1rem; text-transform: none; }
.konami-close { position: absolute; top: 20px; right: 20px; width: 40px; height: 40px; border-radius: 50%; background: rgba(0,0,0,.4); color: var(--ink); border: 1px solid var(--line-2); font-size: 1.2rem; }
.konami-close:hover { background: rgba(0,0,0,.6); }
.konami-result { margin-top: 1.25rem; padding: .9rem 1.2rem; border-radius: 999px; background: rgba(107,160,128,.14); border: 1px solid rgba(107,160,128,.32); color: var(--green-2); font-weight: 700; font-size: .95rem; display: none; }
.konami-result.show { display: block; animation: konPop .5s cubic-bezier(.34, 1.6, .5, 1); }
@keyframes konPop { 0% { transform: scale(.5); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

/* ═══════════════════ BIRDIE — SIDE-VIEW SWING GAME ═══════════════════ */
.birdie-stage {
  position: fixed; inset: 0; z-index: 80;
  background: radial-gradient(80% 60% at 50% 30%, #1E3D2A, #0B100D 75%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 20px; animation: konFade .4s var(--ease);
}
.birdie-stage h2 { font-family: 'Geist', sans-serif; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -.03em; margin: 0 0 .25rem; color: var(--ink); }
.birdie-stage .sub { color: var(--ink-2); font-size: .95rem; margin: 0 0 1rem; text-align: center; max-width: 620px; }
.birdie-stage .sub kbd { font-family: 'JetBrains Mono', monospace; background: rgba(255,255,255,.06); border: 1px solid var(--line-2); padding: 1px 6px; border-radius: 4px; font-size: .82rem; color: var(--ink); }
.birdie-canvas {
  background: linear-gradient(180deg, #6EA2CB 0%, #A9C8DE 55%, #7FA97C 55.1%, #4A7B5D 100%);
  border-radius: 20px;
  box-shadow: inset 0 20px 40px rgba(0,0,0,.35), 0 30px 80px rgba(0,0,0,.6);
  border: 1px solid rgba(255,255,255,.06);
  max-width: 100%; touch-action: none; cursor: crosshair;
}
.birdie-hud { display: flex; gap: 1.4rem; align-items: center; margin-top: 1rem; font-family: 'Geist', sans-serif; font-variant-numeric: tabular-nums; flex-wrap: wrap; justify-content: center; }
.birdie-hud div { color: var(--ink-2); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; text-align: center; }
.birdie-hud div strong { display: block; font-size: 1.35rem; color: var(--green-2); letter-spacing: -.02em; margin-top: .15rem; text-transform: none; font-weight: 800; }
.birdie-hud .wind-arrow { display: inline-block; transition: transform .3s ease; margin-right: 4px; }
.birdie-close { position: absolute; top: 20px; right: 20px; width: 40px; height: 40px; border-radius: 50%; background: rgba(0,0,0,.4); color: var(--ink); border: 1px solid var(--line-2); font-size: 1.2rem; cursor: pointer; }
.birdie-close:hover { background: rgba(0,0,0,.6); }
.birdie-hint { margin-top: .9rem; font-family: 'JetBrains Mono', monospace; color: var(--green-2); font-size: .82rem; letter-spacing: .04em; min-height: 1.1em; }
.birdie-result { margin-top: 1rem; padding: .8rem 1.2rem; border-radius: 999px; background: rgba(107,160,128,.14); border: 1px solid rgba(107,160,128,.32); color: var(--green-2); font-weight: 700; font-size: .95rem; display: none; }
.birdie-result.show { display: block; animation: konPop .5s cubic-bezier(.34, 1.6, .5, 1); }
.birdie-result.bad { background: rgba(229,138,117,.14); border-color: rgba(229,138,117,.32); color: #E58A75; }

/* ═══════════════════ MOTION SAFETY ═══════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal, .stagger > *, .kinetic .line > span { opacity: 1 !important; transform: none !important; }
  .msg, .confirm-card, .options, .nudge, .chat-chips { opacity: 1; transform: none; }
  .msg.typing { display: none !important; }
  .marquee-track { animation: none; }
  .scroll-progress, .float-chip, .eyebrow .dot::before, .tiltable { animation: none !important; transform: none !important; }
  .hero-spotlight, .confetti-canvas { display: none !important; }
  .h1 .accent.scrambling::after { display: none !important; }
}
