/* ————— Snuddle site v3 — night-sky brand ————— */

:root {
  --bg: #0a0916;
  --bg-2: #100e24;
  --bg-3: #161232;
  --bg-4: #1a1838;
  --ink: #e6e1d6;
  --ink-dim: rgba(230, 225, 214, 0.62);
  --ink-faint: rgba(230, 225, 214, 0.38);
  --teal: #5ad6c0;
  --violet: #9b7bb8;
  --gold: #ffdd8d;
  --sky: #8fb8da;
  --card: #171226;
  --line: rgba(255, 255, 255, 0.09);
  --line-soft: rgba(255, 255, 255, 0.06);
  --radius: 20px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Plus Jakarta Sans", -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* fixed gradient sky + stars behind everything */
.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1200px 700px at 75% -10%, rgba(155, 123, 184, 0.16), transparent 60%),
    radial-gradient(900px 600px at 12% 20%, rgba(90, 214, 192, 0.07), transparent 55%),
    linear-gradient(180deg, var(--bg-4) 0%, var(--bg-3) 28%, var(--bg-2) 60%, var(--bg) 100%);
}
.sky::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.4px 1.4px at 12% 18%, rgba(238, 230, 214, .9), transparent 55%),
    radial-gradient(1px 1px at 32% 8%, rgba(238, 230, 214, .7), transparent 55%),
    radial-gradient(1.6px 1.6px at 55% 26%, rgba(238, 230, 214, .8), transparent 55%),
    radial-gradient(1px 1px at 71% 12%, rgba(238, 230, 214, .6), transparent 55%),
    radial-gradient(1.3px 1.3px at 86% 33%, rgba(238, 230, 214, .85), transparent 55%),
    radial-gradient(1px 1px at 44% 44%, rgba(238, 230, 214, .5), transparent 55%),
    radial-gradient(1.5px 1.5px at 8% 58%, rgba(238, 230, 214, .75), transparent 55%),
    radial-gradient(1px 1px at 64% 66%, rgba(238, 230, 214, .55), transparent 55%),
    radial-gradient(1.3px 1.3px at 91% 74%, rgba(238, 230, 214, .7), transparent 55%),
    radial-gradient(1px 1px at 26% 82%, rgba(238, 230, 214, .6), transparent 55%);
  animation: twinkle 6s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .55; } to { opacity: 1; } }

.wrap { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -0.01em; }
h1 { font-size: clamp(3rem, 7.5vw, 5.2rem); }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); }

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 18px;
}
.eyebrow.gold { color: var(--gold); }
.crown { margin-right: 4px; }

.accent-word {
  background: linear-gradient(120deg, var(--teal), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ————— nav ————— */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(10, 9, 22, 0.6);
  border-bottom: 1px solid var(--line-soft);
}
.site-nav .wrap { display: flex; align-items: center; gap: 28px; padding: 15px 0; }
.nav-brand {
  display: inline-flex; align-items: center;
  font-family: var(--font-display); font-size: 1.9rem; font-weight: 700;
  color: var(--gold); text-decoration: none;
  letter-spacing: 0.01em;
  line-height: 1;
}
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--ink-dim); text-decoration: none; font-size: 14px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 20px; border-radius: 999px;
  font-weight: 600; font-size: 14px; text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.btn-solid {
  background: linear-gradient(120deg, var(--teal), #3fae9b);
  color: #06251f;
}
.btn-solid:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(90, 214, 192, 0.3); }
.btn-gold {
  background: linear-gradient(120deg, var(--gold), #e7bd63);
  color: #3c2c07;
  padding: 14px 28px;
  font-size: 15px;
}
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(255, 221, 141, 0.32); }

/* ————— hero ————— */
.hero { padding: 84px 0 90px; }
.hero-center { text-align: center; max-width: 46em; margin-inline: auto; }
.hero-subtitle { font-size: 1.15rem; color: var(--ink-dim); max-width: 34em; margin: 22px auto 30px; }
.store-row { display: flex; gap: 14px; align-items: center; justify-content: left; }
.store-badge img { height: 52px; width: auto; border-radius: 10px; display: block; }
.store-badge { transition: transform .2s; display: inline-block; }
.store-badge:hover { transform: translateY(-2px); }
.hero-stats { margin-top: 26px; font-size: 13.5px; color: var(--ink-faint); }
.hero-stats strong { color: var(--gold); font-weight: 700; }
.tag-dot { width: 8px; height: 8px; border-radius: 50%; }

/* cinematic scene panel */
.hero-scene { margin-top: 64px; }
.scene-stage {
  position: relative;
  height: clamp(320px, 46vw, 460px);
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(900px 420px at 50% 120%, rgba(155, 123, 184, 0.18), transparent 65%),
    radial-gradient(700px 360px at 78% -10%, rgba(90, 214, 192, 0.09), transparent 60%),
    linear-gradient(180deg, #141130, #0c0a1c 70%);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
}
.scene-moon {
  position: absolute;
  top: -90px; right: 8%;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(255, 221, 141, 0.28), rgba(255, 221, 141, 0.05) 55%, transparent 72%);
  filter: blur(2px);
}
.scene-penguin {
  position: absolute;
  left: 0; right: 0; bottom: 12%;
  margin-inline: auto;
  width: clamp(220px, 30vw, 320px);
  filter: drop-shadow(0 26px 60px rgba(0, 0, 0, 0.55));
}
.scene-tag {
  position: absolute;
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(16, 14, 30, 0.72); backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  padding: 7px 13px; border-radius: 999px;
  font-size: 12.5px; font-weight: 500; color: var(--ink-dim);
}
.tag-a { top: 24%; left: 15%; }
.tag-b { top: 20%; right: 14%; }
.tag-c { bottom: 26%; left: 20%; }
.scene-eq {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 64px;
  display: flex; align-items: flex-end; justify-content: center; gap: 6px;
  padding-bottom: 14px;
  mask-image: linear-gradient(180deg, transparent, black 30%);
}
.scene-eq span {
  width: 5px;
  height: 14px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--teal), rgba(90, 214, 192, 0.15));
  opacity: 0.75;
}
.scene-eq span:nth-child(3n) { background: linear-gradient(180deg, var(--violet), rgba(155, 123, 184, 0.15)); }
.scene-eq span:nth-child(4n) { background: linear-gradient(180deg, var(--gold), rgba(255, 221, 141, 0.12)); }
.scene-caption {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-faint);
}

/* ————— problem scroll story ————— */
.problem { height: 320vh; position: relative; }
.problem-sticky {
  position: sticky; top: 0; height: 100vh;
  display: grid; place-items: center;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 50% 110%, rgba(155, 123, 184, 0.12), transparent 60%);
}
.problem-stage { position: relative; text-align: center; width: 100%; }
.problem-act { display: grid; gap: clamp(18px, 3.4vh, 34px); }
.act-resolve {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: clamp(12px, 2.4vh, 22px);
  opacity: 0;
  pointer-events: none;
}
.resolve-penguin { width: clamp(110px, 13vw, 160px); margin-inline: auto; filter: drop-shadow(0 18px 44px rgba(0,0,0,.5)); }
.resolve-time { color: var(--gold); }
.resolve-sub { color: var(--ink-faint); font-style: italic; }
.problem-time {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 6.5rem);
  font-weight: 700;
  color: var(--ink);
}
.problem-line {
  font-size: clamp(1.15rem, 2.6vw, 1.7rem);
  color: var(--ink-dim);
  max-width: 26em;
  margin-inline: auto;
}
.problem-line em { color: var(--ink); font-style: italic; }
.problem-line s { color: var(--ink-faint); }
.problem-answer {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 600;
  background: linear-gradient(120deg, var(--teal), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
[data-line] { opacity: 0; transform: translateY(26px); will-change: opacity, transform; }

/* ————— sections ————— */
section { position: relative; }
#features, .premium, .price, #download { padding: 110px 0; }
.section-head { max-width: 40em; margin-bottom: 64px; }
.section-head .section-sub { margin-top: 18px; color: var(--ink-dim); font-size: 1.08rem; max-width: 36em; }

/* feature rows */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 44px 0;
}
.feature-row.reverse .feature-art { order: -1; }
.feature-index {
  font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent, var(--teal)); margin-bottom: 14px;
}
.feature-copy p { color: var(--ink-dim); margin-top: 16px; max-width: 30em; }
.feature-meta {
  display: inline-block; margin-top: 20px;
  font-size: 12.5px; font-weight: 600;
  color: var(--accent, var(--teal));
  border: 1px solid color-mix(in srgb, var(--accent, var(--teal)) 35%, transparent);
  padding: 6px 14px; border-radius: 999px;
}

.phone-frame {
  width: min(300px, 78%);
  margin-inline: auto;
  border-radius: 42px;
  padding: 10px;
  background: linear-gradient(160deg, #262040, #14101f);
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}
.phone-frame img { width: 100%; display: block; border-radius: 34px; }
.phone-frame.glow { box-shadow: 0 0 0 1px rgba(255, 221, 141, 0.25), 0 30px 90px rgba(255, 221, 141, 0.12); }

.quiet-strip {
  margin-top: 70px;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
}
.quiet-strip span {
  font-size: 13px; color: var(--ink-dim);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 18px;
  background: rgba(16, 14, 30, 0.45);
}

/* ————— premium ————— */
.premium {
  background:
    radial-gradient(800px 400px at 50% 0%, rgba(255, 221, 141, 0.07), transparent 65%);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.premium-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.premium-list { list-style: none; display: grid; gap: 26px; }
.premium-list li { display: flex; gap: 18px; align-items: flex-start; }
.premium-icon {
  flex: 0 0 46px; height: 46px;
  display: grid; place-items: center;
  font-size: 20px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent, var(--teal)) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent, var(--teal)) 30%, transparent);
}
.premium-list h4 { font-size: 1.08rem; font-weight: 700; }
.premium-list p { color: var(--ink-dim); font-size: 0.95rem; margin-top: 4px; }

/* ————— price ————— */
.price-compare {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 26px;
  align-items: stretch;
}
.price-card {
  border-radius: var(--radius);
  padding: 36px 34px;
  border: 1px solid var(--line);
  background: var(--card);
}
.price-card.them { opacity: .78; }
.price-card.us {
  border-color: rgba(255, 221, 141, 0.4);
  background:
    radial-gradient(400px 200px at 20% 0%, rgba(255, 221, 141, 0.08), transparent 70%),
    var(--card);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
}
.price-label { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-dim); }
.price-card.us .price-label { color: var(--gold); }
.price-big {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  font-weight: 700;
  margin: 14px 0 10px;
}
.price-big span { font-size: 0.45em; color: var(--ink-dim); font-family: var(--font-body); font-weight: 500; }
.price-note { color: var(--ink-faint); font-size: 0.95rem; }
.price-card.us ul { list-style: none; margin: 14px 0 26px; display: grid; gap: 10px; }
.price-card.us li { color: var(--ink-dim); font-size: 0.98rem; padding-left: 24px; position: relative; }
.price-card.us li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 700; }

/* ————— download cta ————— */
.download-cta {
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 72px 32px;
  background:
    radial-gradient(600px 300px at 50% -20%, rgba(90, 214, 192, 0.1), transparent 70%),
    var(--card);
}
.cta-penguin { width: 140px; margin-bottom: 8px; filter: drop-shadow(0 12px 30px rgba(0,0,0,.5)); }
.download-cta p { color: var(--ink-dim); margin: 16px auto 30px; max-width: 34em; }
.download-cta .store-row { justify-content: center; }

/* ————— footer ————— */
.site-footer { border-top: 1px solid var(--line-soft); padding: 56px 0 36px; background: rgba(10, 9, 22, 0.7); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-brand p { color: var(--ink-faint); font-size: 0.92rem; margin-top: 14px; max-width: 24em; }
.site-footer nav { display: grid; gap: 10px; align-content: start; }
.site-footer h4 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 6px; }
.site-footer nav a { color: var(--ink-dim); text-decoration: none; font-size: 14.5px; }
.site-footer nav a:hover { color: var(--ink); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  color: var(--ink-faint); font-size: 13px;
}

/* ————— reveals ————— */
[data-reveal] { opacity: 0; transform: translateY(30px); will-change: opacity, transform; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-line] { opacity: 1 !important; transform: none !important; }
  .sky::after { animation: none; }
}

/* ————— responsive ————— */
@media (max-width: 900px) {
  .hero { padding: 56px 0 70px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { min-height: 300px; order: -1; }
  .ring-2 { display: none; }
  .nav-links { display: none; }
  .feature-row { grid-template-columns: 1fr; gap: 30px; padding: 32px 0; }
  .feature-row.reverse .feature-art { order: 0; }
  .premium-grid { grid-template-columns: 1fr; gap: 44px; }
  .price-compare { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .problem { height: 260vh; }
}

/* ————— scroll-scrubbed cinematic hero ————— */
.hero-scrub { position: relative; height: 420vh; }
.hero-stage {
  position: sticky; top: 0; height: 100vh;
  overflow: hidden;
  background: var(--bg);
}
#heroCanvas, .hero-poster {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.hero-poster { object-fit: cover; opacity: 0; transition: opacity 300ms ease; }
.hero-stage.no-frames .hero-poster { opacity: 1; }
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(100deg,
    rgba(10, 9, 22, 0.92) 0%,
    rgba(10, 9, 22, 0.6) 40%,
    rgba(10, 9, 22, 0.08) 70%);
  pointer-events: none;
}
.hero-beat {
  position: absolute;
  top: 50%;
  left: clamp(1.25rem, 7vw, 7rem);
  transform: translateY(calc(-50% + var(--beat-shift, 24px)));
  max-width: min(560px, 56vw);
  opacity: 0;
  pointer-events: none;
}
.hero-beat.is-active { pointer-events: auto; }
.hero-beat h1 { margin-bottom: 18px; }
.hero-beat .beat-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.8vw, 3.6rem);
  font-weight: 600;
  line-height: 1.06;
  margin-bottom: 16px;
}
.hero-beat .beat-title em { font-style: italic; color: var(--gold); }
.hero-beat .beat-title s { color: var(--ink-faint); }
.hero-beat h1 .word { display: inline-block; will-change: transform, opacity; }
.hero-beat .hero-subtitle { margin: 0 0 18px; }
.hero-beat .store-row { justify-content: flex-start; }
.hero-tags {
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-dim);
}
.hero-tags span { display: inline-flex; align-items: center; gap: 7px; }
.scroll-hint {
  position: absolute;
  bottom: 1.4rem; left: 50%;
  transform: translateX(-50%);
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-faint);
  transition: opacity .4s;
}
.scroll-hint-arrow { display: inline-block; animation: hint-bob 1.6s ease-in-out infinite; }
@keyframes hint-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

@media (max-width: 900px) {
  .hero-beat { max-width: min(480px, 86vw); }
  .hero-scrim {
    background: linear-gradient(180deg,
      rgba(10, 9, 22, 0.55) 0%,
      rgba(10, 9, 22, 0.82) 55%,
      rgba(10, 9, 22, 0.94) 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scrub { height: auto; }
  .hero-stage { position: relative; height: 100vh; }
  .hero-stage .hero-poster { opacity: 1; }
  .hero-stage #heroCanvas, .hero-beat:not([data-beat="0"]), .scroll-hint { display: none; }
  .hero-beat[data-beat="0"] { opacity: 1; }
  .scroll-hint-arrow { animation: none; }
}

/* ————— animated demo cards (from the fable concept) ————— */
.demo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background: var(--line);
  margin-bottom: 40px;
}
.demo-card {
  position: relative;
  display: flex; flex-direction: column; gap: 14px;
  padding: 26px;
  background: var(--card);
  transition: background 250ms ease;
}
.demo-card:hover { background: #1d1731; }
.demo-card-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-faint);
}
.demo-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}
.demo-stage {
  position: relative; height: 88px;
  border-radius: 12px;
  background: var(--bg);
  overflow: hidden;
}
.demo-card h3 { font-size: 1.35rem; }
.demo-card p { font-size: 0.92rem; color: var(--ink-dim); line-height: 1.5; }
.demo-tag {
  margin-top: auto; align-self: flex-start;
  padding: 4px 10px; border-radius: 8px;
  font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 16%, transparent);
}
.eq-bars {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end; justify-content: center; gap: 6px;
  padding: 14px 0;
}
.eq-bars span { width: 7px; border-radius: 3px; background: var(--accent); height: 14px; }
.cycle-icons { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2rem; }
.cycle-icons i { position: absolute; opacity: 0; font-style: normal; }
.slider-demo { position: absolute; inset: 0; display: grid; place-items: center; }
.slider-track { position: relative; width: 6px; height: 64px; border-radius: 999px; background: rgba(255,255,255,0.1); }
.slider-fill { position: absolute; bottom: 0; left: 0; width: 100%; border-radius: 999px; background: var(--accent); height: 30%; }
.slider-thumb {
  position: absolute; left: 50%;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--ink);
  border: 3px solid var(--accent);
  transform: translate(-50%, 50%);
  bottom: 30%;
}
.shield-demo, .lock-demo, .moon-phase { position: absolute; inset: 0; display: grid; place-items: center; }
.shield-demo svg, .lock-demo svg { width: 40px; height: 40px; stroke: var(--accent); }
.shield-demo svg .check { stroke-dasharray: 20; stroke-dashoffset: 20; }
.moon-phase .moon-disc {
  position: relative; width: 42px; height: 42px; border-radius: 50%;
  background: var(--accent); overflow: hidden;
}
.moon-phase .moon-shadow {
  position: absolute; inset: 0; border-radius: 50%;
  background: var(--bg);
  transform: translateX(-100%);
}
@media (max-width: 900px) {
  .demo-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .demo-grid { grid-template-columns: 1fr; }
}

/* ————— mobile UX polish ————— */
@media (max-width: 900px) {
  /* tighter chrome: keep the wordmark big, shrink everything else */
  .site-nav .wrap { padding: 10px 0; gap: 16px; }
  .site-nav .btn-solid { padding: 9px 16px; font-size: 13.5px; margin-left: auto; }

  /* story beats: sit in the darkened lower third so the penguin's face
     stays visible and text lands on the scrim */
  .hero-beat {
    top: auto;
    bottom: max(9vh, 64px);
    left: 1.4rem;
    right: 1.4rem;
    max-width: none;
    transform: translateY(var(--beat-shift, 24px));
  }
  .hero-beat h1 { font-size: clamp(2.5rem, 11vw, 3.4rem); }
  .hero-beat .beat-title { font-size: clamp(1.9rem, 8vw, 2.6rem); }
  .hero-beat .hero-subtitle { font-size: 1.02rem; }
  .scroll-hint { bottom: 0.9rem; }

  /* comfier rhythm + thumb-sized targets */
  #features, .premium, .price, #download { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }
  .store-badge img { height: 56px; }
  .btn-gold { width: 100%; }
  .price-card { padding: 28px 22px; }
  .download-cta { padding: 52px 22px; }
  .quiet-strip { margin-top: 44px; }
  .feature-copy h3 br { display: none; }
}

@media (max-width: 560px) {
  .wrap { width: calc(100% - 40px); }
  .hero-stats { display: flex; flex-wrap: wrap; gap: 4px 10px; }
}

/* ————— legal pages ————— */
.legal-wrap { width: min(820px, calc(100% - 40px)); margin-inline: auto; padding: 64px 0 90px; }
.legal-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.legal-wrap h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); margin-bottom: 10px; }
.legal-meta { color: var(--ink-faint); font-size: 14px; margin-bottom: 18px; }
.legal-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.legal-chips span {
  font-size: 12px; color: var(--ink-dim);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 13px; background: rgba(16, 14, 30, 0.5);
}
.legal-intro {
  border: 1px solid var(--line); border-left: 3px solid var(--teal);
  border-radius: 14px; padding: 20px 22px; margin-bottom: 44px;
  background: var(--card); color: var(--ink-dim);
}
.legal-intro strong { color: var(--ink); }
.legal-toc { margin: 0 0 48px; padding: 22px 26px; border: 1px solid var(--line-soft); border-radius: 14px; background: rgba(16,14,30,.4); }
.legal-toc h2 { font-size: 1.2rem; margin-bottom: 12px; }
.legal-toc ol { margin-left: 20px; color: var(--ink-dim); columns: 2; column-gap: 32px; font-size: 14.5px; }
.legal-toc a { color: var(--ink-dim); text-decoration: none; }
.legal-toc a:hover { color: var(--teal); }
.legal-wrap h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 52px 0 16px; }
.legal-wrap h3 { font-size: 1.15rem; font-family: var(--font-body); font-weight: 700; margin: 28px 0 10px; }
.legal-wrap p { color: var(--ink-dim); margin-bottom: 14px; }
.legal-wrap ul { margin: 0 0 16px 22px; color: var(--ink-dim); display: grid; gap: 8px; }
.legal-wrap a { color: var(--teal); }
.legal-callout {
  border: 1px solid rgba(255, 221, 141, 0.3); border-radius: 12px;
  padding: 16px 20px; margin: 18px 0; background: rgba(255, 221, 141, 0.05);
  color: var(--ink-dim);
}
.legal-callout strong { color: var(--gold); }
.legal-table-scroll { overflow-x: auto; margin: 18px 0; border: 1px solid var(--line); border-radius: 12px; }
.legal-wrap table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.legal-wrap th { text-align: left; padding: 12px 14px; background: rgba(255,255,255,0.04); color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--line); }
.legal-wrap td { padding: 11px 14px; color: var(--ink-dim); border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.legal-wrap tr:last-child td { border-bottom: none; }
.legal-contact {
  margin-top: 56px; text-align: center;
  border: 1px solid var(--line); border-radius: 18px;
  padding: 36px 24px; background: var(--card);
}
.legal-contact .email { font-size: 1.25rem; font-weight: 700; color: var(--teal); text-decoration: none; }
.legal-contact p { margin: 8px 0 0; color: var(--ink-faint); font-size: 14px; }
.legal-footer-note { margin-top: 26px; text-align: center; color: var(--ink-faint); font-size: 13px; }
