/* ChaffChing - "The Listening Dashboard"
   Locks: theme dark-only · accent emerald (amber = money amounts only) ·
   radius {card 16, interactive pill, input 8} · Geist / Geist Mono */

/* ---------- Fonts ---------- */
@font-face { font-family: 'Geist'; src: url('fonts/geist-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('fonts/geist-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('fonts/geist-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('fonts/geist-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('fonts/geist-mono-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('fonts/geist-mono-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --bg: #0b0d10;
  --bg-elev: #11141a;
  --bg-card: #14181f;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.13);
  --text: #f2f5f7;
  --text-2: #9aa3ae;
  --text-3: #7b8591;
  --accent: #34d399;
  --accent-deep: #10b981;
  --accent-ink: #062a1e;
  --amber: #f5b544;            /* money amounts ONLY */
  --blue: #3b82f6;             /* "locked" state, mirrors app */
  --grey-state: #5b6470;       /* "pending" state */
  --r-card: 16px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  color: var(--text);
  font: 400 1rem/1.6 'Geist', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(120vw 80vh at 85% -10%, rgba(52, 211, 153, 0.07), transparent 60%),
    radial-gradient(100vw 60vh at 0% 100%, rgba(16, 185, 129, 0.05), transparent 55%),
    var(--bg);
  overflow-x: hidden;
}
/* film grain: fixed, pointer-events none, never on scrolling containers */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 60; pointer-events: none;
  opacity: 0.05; 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='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
::selection { background: rgba(52, 211, 153, 0.25); }

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.025em; line-height: 1.12; }
h1 { font-size: clamp(2.75rem, 5.6vw, 4.25rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.125rem; letter-spacing: -0.01em; }
p  { margin: 0; }
.lead { color: var(--text-2); font-size: 1.125rem; line-height: 1.55; max-width: 52ch; }
.mono { font-family: 'Geist Mono', ui-monospace, monospace; font-feature-settings: 'tnum' 1; font-variant-numeric: tabular-nums; }
.eyebrow {
  font: 500 0.7rem/1 'Geist Mono', monospace; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--text-3); display: block; margin-bottom: 18px;
}

.wrap { max-width: 1180px; margin-inline: auto; padding-inline: 28px; }
section { padding-block: 110px; position: relative; }
@media (max-width: 768px) { section { padding-block: 72px; } }

/* ---------- Money (clickable, easter egg) ---------- */
button.money {
  font: inherit; background: none; border: 0; padding: 0; color: var(--amber);
  cursor: pointer; position: relative; transition: transform 0.15s var(--ease-spring);
}
button.money:active { transform: scale(1.06); }
.ring {
  position: absolute; left: 50%; top: 50%; width: 34px; height: 34px;
  margin: -17px 0 0 -17px; border: 1.5px solid var(--accent); border-radius: 50%;
  pointer-events: none; opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .ring.go { animation: ring 0.6s var(--ease-out) forwards; }
  @keyframes ring { from { transform: scale(0.6); opacity: 0.55; } to { transform: scale(2.3); opacity: 0; } }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 999px; padding: 13px 26px;
  font-weight: 600; font-size: 0.95rem; line-height: 1; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #4be0ab; }
.btn-ghost { color: var(--text); border-color: var(--line-strong); background: transparent; }
.btn-ghost:hover { border-color: var(--text-3); background: var(--bg-elev); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Floating glass nav ---------- */
.nav { position: fixed; top: 14px; left: 0; right: 0; z-index: 50; pointer-events: none; padding-inline: 14px; }
.nav .wrap {
  pointer-events: auto;
  display: flex; align-items: center; gap: 26px;
  height: 62px; padding-inline: 12px 10px;
  max-width: 1080px;
  border-radius: 999px;
  background: rgba(17, 20, 26, 0.72);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 16px 40px -16px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}
@media (prefers-reduced-transparency: reduce) { .nav .wrap { background: #14181f; } }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.02rem; color: var(--text); letter-spacing: -0.02em; padding-left: 8px; }
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a { color: var(--text-2); font-size: 0.92rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav .btn { padding: 10px 18px; font-size: 0.88rem; }
@media (max-width: 860px) { .nav-links { display: none; } .nav .btn { margin-left: auto; } }

/* ---------- Heartbeat (fixed left-edge pulse) ---------- */
.heartbeat { position: fixed; left: 26px; top: 0; bottom: 0; width: 2px; z-index: 40; pointer-events: none; }
.heartbeat::before { content: ''; position: absolute; inset: 10vh 0; background: linear-gradient(180deg, transparent, var(--line-strong) 12%, var(--line-strong) 88%, transparent); }
.hb-dot {
  position: absolute; left: 50%; top: 12vh; width: 8px; height: 8px; margin-left: -4px;
  border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.7);
  transition: top 0.6s var(--ease-out);
}
.hb-dot .ring { width: 26px; height: 26px; margin: -13px 0 0 -13px; }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    .hb-dot { animation: hb-travel linear both; animation-timeline: scroll(root); transition: none; }
    @keyframes hb-travel { from { top: 12vh; } to { top: 86vh; } }
  }
}
@media (max-width: 1100px) { .heartbeat { display: none; } }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(120px, 16vh, 168px); padding-bottom: 64px; min-height: 100dvh; display: flex; align-items: center; overflow: clip; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(40px, 6vw, 88px); align-items: center; width: 100%; }
.hero h1 { max-width: 17ch; }
.hero h1 em { font-style: italic; font-weight: 600; color: var(--accent); line-height: 1.15; padding-bottom: 0.08em; }
.hero .lead { margin-top: 22px; }
.hero-ctas { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

/* ---------- Live popover (real mini re-creation of the app's menu bar UI) ---------- */
.pop-stage { position: relative; display: flex; justify-content: center; }
.pop-stage::before {
  content: ''; position: absolute; inset: -16% -20%;
  background: radial-gradient(55% 55% at 55% 45%, rgba(16, 185, 129, 0.16), transparent 70%);
  pointer-events: none;
}
.pop {
  position: relative; width: min(400px, 100%);
  border-radius: var(--r-card);
  background: rgba(20, 24, 31, 0.78);
  border: 1px solid var(--line-strong);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 32px 70px -28px rgba(0, 0, 0, 0.65),
    0 2px 10px -2px rgba(2, 12, 9, 0.5);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  padding: 22px 22px 16px;
  transform: rotate(-1.5deg);
}
@media (prefers-reduced-transparency: reduce) { .pop { background: #14181f; } }
@media (prefers-reduced-motion: no-preference) {
  .pop { animation: pop-float 7s ease-in-out infinite 2.6s; }
  @keyframes pop-float {
    0%, 100% { transform: rotate(-1.5deg) translateY(0); }
    50% { transform: rotate(-1.5deg) translateY(-7px); }
  }
  .pop.pre { opacity: 0; transform: rotate(-1.5deg) translateY(18px); filter: blur(8px); animation: none; }
  .pop.enter { transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out), filter 0.6s var(--ease-out); }
}
.pop-head { display: flex; align-items: center; justify-content: space-between; }
.pop-cap { font: 500 0.66rem/1 'Geist Mono', monospace; letter-spacing: 0.16em; color: var(--text-3); }
.livedot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-left: 6px; vertical-align: 1px; }
.pop-total { font-size: clamp(1.8rem, 2.4vw, 2.25rem); font-weight: 600; color: var(--text); margin-top: 10px; letter-spacing: -0.01em; }
.pop-spark { width: 100%; height: 58px; margin-top: 10px; overflow: visible; }
.pop-spark .base { fill: none; stroke: var(--accent); stroke-width: 1.6; opacity: 0.55; }
.pop-spark .peak { fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-dasharray: 400; stroke-dashoffset: 400; }
.pop-spark .fill { fill: url(#sparkfill); opacity: 0; transition: opacity 0.5s var(--ease-out); }
.pop.done .pop-spark .peak { stroke-dashoffset: 0; }
.pop.done .pop-spark .fill { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .pop.play .pop-spark .peak { transition: stroke-dashoffset 0.34s var(--ease-out); }
}
.pop-recent { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.pop-row {
  display: flex; align-items: baseline; gap: 10px;
  padding-block: 7px; font-size: 0.92rem;
}
.pop-row .money { font-size: 0.95rem; font-weight: 500; }
.pop-row .net { color: var(--text-2); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pop-row time { color: var(--text-3); font-size: 0.8rem; }
.pop-row-new { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .pop-row-new { max-height: 0; opacity: 0; transform: translateY(-8px); }
  .pop.done .pop-row-new {
    max-height: 44px; opacity: 1; transform: none;
    transition: max-height 0.3s var(--ease-out), opacity 0.26s var(--ease-spring), transform 0.26s var(--ease-spring);
  }
}
.pop-pending { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; border-top: 1px solid var(--line); padding-top: 14px; }
.pop-pending .bar { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.pop-pending .bar i { display: block; height: 100%; width: 78%; border-radius: 2px; background: linear-gradient(90deg, var(--grey-state), #8b94a1); }
.pop-pending span:last-child { color: var(--text-2); font-size: 0.82rem; }
.pop-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; border-top: 1px solid var(--line); padding-top: 13px; }
.pop-foot a { font-weight: 600; font-size: 0.9rem; }
.chip {
  font: 500 0.78rem/1 'Geist', sans-serif; color: var(--text-2);
  background: transparent; border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 7px 13px; cursor: pointer; transition: color 0.2s, border-color 0.2s;
}
.chip:hover { color: var(--text); border-color: var(--text-3); }
.chip[aria-pressed="true"] { color: var(--accent); border-color: rgba(52, 211, 153, 0.45); }
@media (min-width: 901px) and (max-width: 1240px) {
  .hero h1 { font-size: clamp(2.4rem, 4.5vw, 3.5rem); }
  .hero .lead { font-size: 1.05rem; }
}
@media (max-width: 900px) {
  .hero { min-height: 0; padding-top: 120px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .pop { transform: none; }
}

/* ---------- Networks strip ---------- */
.networks { padding-block: 0 10px; }
.networks .wrap {
  display: flex; align-items: center; gap: 44px; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding-top: 38px;
}
.networks p { color: var(--text-3); font-size: 0.9rem; }
.netmarks { display: flex; gap: 44px; align-items: center; flex-wrap: wrap; }
.netmark { color: var(--text-3); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.03em; transition: color 0.2s ease; }
.netmark:hover { color: var(--text-2); }
@media (max-width: 640px) { .networks .wrap, .netmarks { gap: 24px; } }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; margin-top: 52px; }
.cell {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 28px;
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color 0.25s ease, transform 0.25s var(--ease-out);
}
.cell:hover { border-color: var(--line-strong); }
.cell p { color: var(--text-2); font-size: 0.95rem; }
.cell-a { grid-column: 1 / 6; grid-row: 1 / 3; }
.cell-b { grid-column: 6 / 10; }
.cell-c { grid-column: 10 / 13; background: linear-gradient(160deg, rgba(16, 185, 129, 0.13), var(--bg-card) 65%); }
.cell-d { grid-column: 6 / 13; flex-direction: row; align-items: center; gap: 26px; }
.cell-d > div { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.cell-d .cell-img { flex: 1.15; margin: -12px -12px -12px 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.cell-e { grid-column: 1 / 7; }
.cell-f { grid-column: 7 / 13; }
.cell-a .cell-img {
  margin: -28px -28px 16px; border-bottom: 1px solid var(--line);
  border-radius: var(--r-card) var(--r-card) 0 0; overflow: hidden; flex: 1; min-height: 0;
}
.cell-a .cell-img img { height: 100%; width: 100%; object-fit: cover; object-position: top left; }
.pro-tag {
  align-self: flex-start; font: 500 0.66rem/1 'Geist Mono', monospace;
  letter-spacing: 0.1em; color: var(--accent);
  border: 1px solid rgba(52, 211, 153, 0.35); border-radius: 999px; padding: 4px 9px;
}
/* sound pills with hover waveform */
.sound-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.sound-list span {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.82rem; color: var(--text-2); cursor: pointer;
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 13px;
  transition: color 0.2s, border-color 0.2s;
}
.sound-list span:hover { color: var(--text); border-color: var(--text-3); }
.wave { display: inline-flex; gap: 2px; align-items: flex-end; height: 10px; }
.wave i { width: 2px; height: 4px; background: var(--accent); border-radius: 1px; }
@media (prefers-reduced-motion: no-preference) {
  .sound-list span:hover .wave i { animation: wave 0.5s ease-in-out infinite alternate; }
  .wave i:nth-child(2) { animation-delay: 0.1s; }
  .wave i:nth-child(3) { animation-delay: 0.2s; }
  .wave i:nth-child(4) { animation-delay: 0.3s; }
  @keyframes wave { from { transform: scaleY(0.5); } to { transform: scaleY(2.4); } }
}
/* lifecycle mini-bar that fills on enter */
.lifecycle { display: flex; gap: 4px; margin-top: 14px; }
.lifecycle i { height: 6px; border-radius: 3px; transform-origin: left; }
.lifecycle i:nth-child(1) { background: var(--grey-state); flex: 1; }
.lifecycle i:nth-child(2) { background: var(--blue); flex: 0.8; }
.lifecycle i:nth-child(3) { background: var(--accent-deep); flex: 1.6; }
.lifecycle i:nth-child(4) { background: var(--accent); flex: 1.7; }
@media (prefers-reduced-motion: no-preference) {
  .reveal .lifecycle i { transform: scaleX(0); }
  .reveal.in .lifecycle i { transform: scaleX(1); transition: transform 0.5s var(--ease-out); }
  .reveal.in .lifecycle i:nth-child(2) { transition-delay: 0.12s; }
  .reveal.in .lifecycle i:nth-child(3) { transition-delay: 0.24s; }
  .reveal.in .lifecycle i:nth-child(4) { transition-delay: 0.36s; }
}
.lifecycle-labels { display: flex; justify-content: space-between; margin-top: 8px; color: var(--text-3); font-size: 0.78rem; }
@media (max-width: 900px) {
  .cell-a, .cell-b, .cell-c, .cell-d, .cell-e, .cell-f { grid-column: 1 / 13; grid-row: auto; }
  .cell-d { flex-direction: column; align-items: stretch; }
  .cell-d .cell-img { margin: 0; }
  .cell-a .cell-img img { max-height: 320px; }
}

/* ---------- Showcase (scroll zoom) ---------- */
.showcase { background: var(--bg-elev); border-block: 1px solid var(--line); overflow: hidden; }
.showcase-head { max-width: 60ch; }
.showcase-head .lead { margin-top: 16px; }
.showcase-shot { margin-top: 52px; position: relative; }
.showcase-shot::before {
  content: ''; position: absolute; inset: 6% -8% -18%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(16, 185, 129, 0.12), transparent 70%);
  pointer-events: none;
}
.showcase-shot img { position: relative; margin-inline: auto; max-width: 980px; width: 100%; filter: drop-shadow(0 28px 56px rgba(0, 0, 0, 0.55)); }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .showcase-shot img { animation: shot-zoom linear both; animation-timeline: view(); animation-range: entry 0% cover 55%; }
    @keyframes shot-zoom { from { transform: scale(1.07) translateY(28px); } to { transform: scale(1) translateY(0); } }
  }
}

/* ---------- Journey (pinned horizontal lifecycle) ---------- */
.journey-head { padding-bottom: 0; }
.journey-head h2 { max-width: 16ch; }
.journey { position: relative; }
@media (prefers-reduced-motion: no-preference) and (min-width: 768px) {
  @supports (animation-timeline: view()) {
    .journey { height: 330vh; view-timeline: --journey block; }
    .journey-sticky { position: sticky; top: 0; height: 100dvh; display: flex; align-items: center; overflow: hidden; }
    .journey-track {
      animation: journey-pan linear both;
      animation-timeline: --journey;
      animation-range: contain 0% contain 100%;
    }
    @keyframes journey-pan { from { transform: translateX(0); } to { transform: translateX(calc(-100% + 100vw)); } }
  }
}
.journey-sticky { width: 100%; }
.journey-track { display: flex; gap: 20px; width: max-content; padding-inline: max(28px, calc((100vw - 1180px) / 2 + 28px)); will-change: transform; }
@supports not (animation-timeline: view()) {
  .journey-sticky { overflow-x: auto; scroll-snap-type: x mandatory; padding-block: 56px; scrollbar-width: thin; }
  .journey-track > * { scroll-snap-align: center; }
}
@media (prefers-reduced-motion: reduce), (max-width: 767px) {
  .journey { height: auto !important; }
  .journey-sticky { position: static !important; height: auto !important; overflow-x: auto; scroll-snap-type: x mandatory; padding-block: 48px; scrollbar-width: thin; }
  .journey-track { animation: none !important; }
  .journey-track > * { scroll-snap-align: center; }
}
.stage {
  width: min(520px, 82vw); flex-shrink: 0;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 36px;
}
.stage .stage-day { font: 500 0.72rem/1 'Geist Mono', monospace; letter-spacing: 0.12em; color: var(--text-3); }
.stage h3 { font-size: 1.5rem; margin-top: 14px; display: flex; align-items: center; gap: 12px; }
.stage h3 i { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.stage p { color: var(--text-2); margin-top: 12px; max-width: 38ch; }
.stage .money, .stage .stage-amount { font-size: 2rem; font-weight: 600; display: inline-block; margin-top: 26px; }
.stage-pending h3 i { background: var(--grey-state); }
.stage-pending .stage-amount { color: var(--grey-state); }
.stage-locked h3 i { background: var(--blue); }
.stage-locked .stage-amount { color: var(--text-2); }
.stage-approved h3 i { background: var(--accent-deep); }
.stage-approved .stage-amount { color: var(--text); }
.stage-paid { border-color: rgba(52, 211, 153, 0.4); background: linear-gradient(160deg, rgba(16, 185, 129, 0.1), var(--bg-card) 60%); }
.stage-paid h3 i { background: var(--accent); }

/* ---------- Trust Pulse + marquee ---------- */
.pulse-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: start; }
.pulse-grid .lead { margin-top: 16px; }
.pulse-stats { display: grid; gap: 0; }
.pulse-stat { padding-block: 20px; border-bottom: 1px solid var(--line); display: flex; align-items: baseline; gap: 18px; }
.pulse-stat:last-child { border-bottom: 0; }
.pulse-stat .mono { font-size: 2rem; font-weight: 600; color: var(--text); min-width: 4.6ch; }
.pulse-stat p { color: var(--text-2); font-size: 0.95rem; }
.marquee { margin-top: 56px; overflow: hidden; border-block: 1px solid var(--line); padding-block: 18px; position: relative; }
.marquee-track { display: flex; gap: 14px; width: max-content; }
@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: marquee 42s linear infinite; }
  .marquee:hover .marquee-track { animation-play-state: paused; }
  @keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
}
.adv {
  display: inline-flex; align-items: baseline; gap: 10px; white-space: nowrap;
  border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px;
  font-size: 0.88rem; color: var(--text-2);
}
.adv .mono { font-size: 0.82rem; color: var(--text-3); }
.adv .up { color: #e0707b; }     /* reversal rising = bad = app red */
.adv .down { color: var(--accent); }
.marquee-note { margin-top: 14px; color: var(--text-3); font-size: 0.8rem; }
@media (max-width: 900px) { .pulse-grid { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- iPhone split ---------- */
.iphone { overflow: hidden; }
.iphone .wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.phones { position: relative; height: 560px; }
.phones img {
  position: absolute; width: min(54%, 264px); border-radius: 30px;
  border: 1px solid var(--line-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}
.phones .ph-back { left: 4%; top: 0; transform: rotate(-7deg); }
.phones .ph-front { right: 4%; top: 84px; transform: rotate(4deg); z-index: 2; }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .phones .ph-back { animation: ph-drift-b linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    .phones .ph-front { animation: ph-drift-f linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    @keyframes ph-drift-b { from { transform: rotate(-7deg) translateY(46px); } to { transform: rotate(-7deg) translateY(-30px); } }
    @keyframes ph-drift-f { from { transform: rotate(4deg) translateY(20px); } to { transform: rotate(4deg) translateY(-8px); } }
  }
}
.iphone-copy h2 { max-width: 14ch; }
.iphone-copy .lead { margin-top: 16px; }
.iphone-copy ul { margin: 26px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; color: var(--text-2); }
.iphone-copy li { padding-left: 26px; position: relative; }
.iphone-copy li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 600; }
@media (max-width: 900px) {
  .iphone .wrap { grid-template-columns: 1fr; }
  .phones { order: 2; height: 480px; }
}

/* ---------- Privacy ---------- */
.privacy { background: var(--bg-elev); border-block: 1px solid var(--line); }
.privacy h2 { max-width: 14ch; }
.privacy .lead { margin-top: 18px; }
.privacy-link { display: inline-block; margin-top: 22px; font-weight: 500; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 56px; }
.fact { padding: 4px 28px 8px; border-left: 1px solid var(--line); }
.fact h3 { margin-bottom: 8px; font-size: 1.02rem; }
.fact p { color: var(--text-2); font-size: 0.92rem; }
@media (max-width: 820px) {
  .facts { grid-template-columns: 1fr; gap: 24px; }
  .fact { padding-block: 0; }
}

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: 1fr 1.1fr; gap: 18px; margin-top: 52px; max-width: 900px; align-items: start; }
.plan { background: transparent; border: 1px solid var(--line); border-radius: var(--r-card); padding: 32px; }
.plan-pro {
  border-color: rgba(52, 211, 153, 0.4);
  background: linear-gradient(170deg, rgba(16, 185, 129, 0.1), var(--bg-card) 50%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 28px 60px -30px rgba(0, 0, 0, 0.6);
  padding: 40px 36px; margin-top: -14px;
}
.plan h3 { font-size: 0.95rem; color: var(--text-2); font-weight: 500; }
.price { font-size: 2.3rem; font-weight: 600; letter-spacing: -0.02em; margin-top: 10px; color: var(--text); }
.price small { font-size: 0.95rem; font-weight: 500; color: var(--text-2); letter-spacing: 0; font-family: 'Geist', sans-serif; }
.price-alt { color: var(--text-3); font-size: 0.88rem; margin-top: 4px; }
.plan ul { margin: 26px 0 0; padding: 0; list-style: none; display: grid; gap: 11px; color: var(--text-2); font-size: 0.95rem; }
.plan li { padding-left: 26px; position: relative; }
.plan li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 600; }
.plan-note { margin-top: 26px; color: var(--text-3); font-size: 0.82rem; }
@media (max-width: 768px) { .plans { grid-template-columns: 1fr; } .plan-pro { margin-top: 0; } }

/* ---------- FAQ ---------- */
.faq-list { margin-top: 40px; max-width: 760px; }
details { border-bottom: 1px solid var(--line); }
details summary {
  cursor: pointer; list-style: none; padding-block: 20px;
  font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
details summary::-webkit-details-marker { display: none; }
details summary::after { content: '+'; color: var(--text-3); font-size: 1.4rem; font-weight: 400; transition: transform 0.2s ease; flex-shrink: 0; }
details[open] summary::after { transform: rotate(45deg); }
details div { padding-bottom: 22px; color: var(--text-2); max-width: 64ch; }

/* ---------- Download band ---------- */
.download .wrap {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #0e2a1f, var(--bg-card) 62%);
  border: 1px solid rgba(52, 211, 153, 0.28); border-radius: 24px;
  padding: 64px 56px;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center;
}
.download h2 { max-width: 18ch; }
.download .lead { margin-top: 16px; }
.dl-total { margin-top: 26px; font-size: 1.05rem; color: var(--text-2); }
.dl-total .money { font-size: 1.3rem; font-weight: 600; }
.store-badges { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; justify-self: end; }
.store-badge {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--line-strong); border-radius: var(--r-card);
  padding: 13px 22px; color: var(--text); min-width: 240px;
  background: rgba(11, 13, 16, 0.45);
  transition: border-color 0.2s, transform 0.15s ease;
}
.store-badge:hover { text-decoration: none; border-color: var(--text-3); }
.store-badge:active { transform: scale(0.98); }
.store-badge svg { width: 26px; height: 26px; flex-shrink: 0; }
.store-badge .sb-txt { display: flex; flex-direction: column; line-height: 1.25; }
.store-badge .sb-top { font-size: 0.72rem; color: var(--text-2); }
.store-badge .sb-name { font-weight: 600; font-size: 1.02rem; letter-spacing: -0.01em; }
@media (max-width: 820px) {
  .download .wrap { grid-template-columns: 1fr; padding: 44px 28px; }
  .store-badges { justify-self: start; }
}

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding-block: 56px 40px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.foot-brand .brand { padding-left: 0; }
.foot-brand p { color: var(--text-3); font-size: 0.9rem; margin-top: 12px; max-width: 34ch; }
.foot-col h3 { font-size: 0.85rem; color: var(--text-3); font-weight: 500; margin-bottom: 14px; }
.foot-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.foot-col a { color: var(--text-2); font-size: 0.92rem; }
.foot-col a:hover { color: var(--text); text-decoration: none; }
.foot-base { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 0.85rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (max-width: 768px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Legal / prose pages ---------- */
.prose { max-width: 72ch; padding-block: 140px 96px; }
.prose h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.prose .meta { color: var(--text-3); font-size: 0.9rem; margin-top: 12px; }
.prose h2 { font-size: 1.35rem; margin-top: 48px; }
.prose h3 { margin-top: 28px; }
.prose p, .prose li { color: var(--text-2); margin-top: 14px; }
.prose ul { padding-left: 22px; margin: 8px 0 0; }
.prose li { margin-top: 8px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose ol { padding-left: 22px; margin: 12px 0 0; }
.prose ol li { margin-top: 10px; padding-left: 4px; }
.prose code, .field {
  font: 500 0.86em/1.3 'Geist Mono', ui-monospace, monospace;
  color: var(--text); background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 6px; padding: 1px 6px; white-space: nowrap;
}

/* ---------- Guides page ---------- */
.guide-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.guide-toc a {
  font: 500 0.82rem/1 'Geist', sans-serif; color: var(--text-2);
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 8px 15px;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.guide-toc a:hover { color: var(--accent); border-color: rgba(52, 211, 153, 0.45); text-decoration: none; }

.guide-net {
  margin-top: 22px; padding: 26px 28px; background: var(--bg-card);
  border: 1px solid var(--line); border-radius: var(--r-card); scroll-margin-top: 90px;
}
.guide-net h2 { margin-top: 0; display: flex; align-items: center; gap: 10px; }
.guide-net > p:first-of-type { margin-top: 6px; }

.need {
  margin-top: 18px; padding: 14px 16px; background: var(--bg-elev);
  border: 1px solid var(--line); border-left: 2px solid var(--accent); border-radius: 10px;
}
.need .lbl {
  font: 500 0.66rem/1 'Geist Mono', monospace; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 10px;
}
.need ul { margin: 0; padding-left: 18px; }
.need li { margin-top: 6px; color: var(--text-2); }

.note {
  margin-top: 18px; padding: 13px 16px; background: rgba(245, 181, 68, 0.06);
  border: 1px solid rgba(245, 181, 68, 0.22); border-radius: 10px;
  color: var(--text-2); font-size: 0.92rem;
}
.note strong { color: var(--amber); }

/* ---------- Scroll reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
  .reveal.in { opacity: 1; transform: none; }
  .stagger > * { opacity: 0; transform: translateY(18px); }
  .stagger.in > * { opacity: 1; transform: none; transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out); }
  .stagger.in > *:nth-child(2) { transition-delay: 0.06s; }
  .stagger.in > *:nth-child(3) { transition-delay: 0.12s; }
  .stagger.in > *:nth-child(4) { transition-delay: 0.18s; }
  .stagger.in > *:nth-child(5) { transition-delay: 0.24s; }
  .stagger.in > *:nth-child(6) { transition-delay: 0.3s; }
}
