/* ═══════════════════════════════════════════════════════
   JUST BARELY — same structure as YarnTrailWeb (and PiClimbWeb, HairDiaryWeb), in the game's look:
   the night sky #1B1F3B → #33295A, gold #FFD166 for BARELY, and the piece colors from Theme.swift.
   Headings use the system's rounded face in its heaviest weight (SF Pro Rounded Black on Apple
   devices, like the game). No web fonts. The site is always dark, like the game.
   ═══════════════════════════════════════════════════════ */

/* 1. VARIABLES — the game's colors (Sources/PrecisApp/Theme.swift)
   ─────────────────────────────────────────────────────── */
:root {
  color-scheme: dark;

  --sky-top:   #1b1f3b;
  --sky-bot:   #33295a;
  --bg:        #1b1f3b;
  --bg-2:      #22234a;
  --surface:   rgba(255, 243, 214, 0.05);
  --surface-2: rgba(255, 243, 214, 0.09);
  --header-bg: rgba(27, 31, 59, 0.82);

  --gold:      #ffd166;   /* BARELY, stars, the accent */
  --gold-dk:   #f2bd3f;
  --block:     #f4a259;
  --block-dk:  #c46f2e;
  --spring:    #6bdb76;
  --sign:      #8e7dff;
  --spikes:    #ef5d7a;
  --grass:     #7fd8be;
  --ground:    #4a3f78;
  --runner:    #fff3d6;   /* cream */

  --accent:      var(--gold);
  --accent-soft: rgba(255, 209, 102, 0.12);
  --accent-line: rgba(255, 209, 102, 0.30);
  --link:        var(--gold);
  --on-accent:   #1b1f3b;

  --text:   #fff3d6;
  --text-2: #d9d3ec;
  --text-3: #a8a2c8;
  --border: rgba(255, 243, 214, 0.10);
  --error:  #ff8f9f;

  --round: ui-rounded, 'SF Pro Rounded', 'Arial Rounded MT Bold', 'Hiragino Maru Gothic ProN', 'Nunito', system-ui, sans-serif;
  --sans:  -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', 'Helvetica Neue', 'Hiragino Sans', 'Apple SD Gothic Neo', 'PingFang SC', 'Microsoft YaHei', sans-serif;

  --pad:   clamp(16px, 5vw, 80px);
  --max-w: 1200px;

  --r1: 12px;
  --r2: 16px;
  --r3: 24px;

  --sh1: 0 1px 3px rgba(0, 0, 0, .3);
  --sh3: 0 18px 60px rgba(8, 6, 24, .55), 0 4px 16px rgba(8, 6, 24, .35);
}

/* 2. RESET & BASE
   ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(1.5px 1.5px at 12% 18%, rgba(255,243,214,.55) 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 62%, rgba(255,243,214,.45) 50%, transparent 51%),
    radial-gradient(2px 2px at 46% 9%, rgba(255,243,214,.40) 50%, transparent 51%),
    radial-gradient(1px 1px at 67% 33%, rgba(255,243,214,.50) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 84% 71%, rgba(255,243,214,.40) 50%, transparent 51%),
    radial-gradient(1px 1px at 93% 14%, rgba(255,243,214,.55) 50%, transparent 51%),
    linear-gradient(180deg, var(--sky-top) 0%, var(--sky-bot) 100%);
  background-attachment: fixed;
  min-height: 100dvh;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; }
textarea { resize: vertical; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

.visually-hidden-focusable {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}
.visually-hidden-focusable:focus {
  position: static; width: auto; height: auto;
  overflow: visible; clip: auto; white-space: normal;
  background: var(--gold); color: var(--on-accent);
  padding: 8px 16px; border-radius: 4px; z-index: 9999;
}

/* 3. HEADER (body > header: the pages have their own <header> elements)
   ─────────────────────────────────────────────────────── */
body > header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 20px;
  padding: 0 var(--pad);
  height: 64px;
  background: var(--header-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.header-brand { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.brand-logo { border-radius: 8px; box-shadow: var(--sh1); }
.brand-name {
  font-family: var(--round);
  font-size: 20px; font-weight: 900;
  color: var(--text);
  letter-spacing: -0.01em;
}

.header-nav { display: flex; align-items: center; gap: 2px; flex: 1; }
.nav-link {
  padding: 7px 13px;
  border-radius: 100px;
  font-size: 14px; font-weight: 500;
  color: var(--text-2);
  transition: color .15s, background .15s;
  white-space: nowrap;
}
.nav-link:hover   { color: var(--gold); background: var(--accent-soft); }
.nav-link--active { color: var(--gold); font-weight: 600; }
.nav-link--cta { margin-left: auto; color: var(--on-accent); background: var(--gold); font-weight: 700; }
.nav-link--cta:hover,
.nav-link--cta.nav-link--active { color: var(--on-accent); background: var(--gold-dk); }

.nav-toggle {
  display: none;
  background: none;
  padding: 8px; border-radius: var(--r1);
  color: var(--text);
  margin-left: auto;
  transition: background .15s;
}
.nav-toggle:hover { background: var(--accent-soft); }

/* Language picker */
.lang-picker { position: relative; flex-shrink: 0; }
.lang-trigger {
  display: flex; align-items: center; gap: 5px;
  padding: 6px 10px; border-radius: 100px;
  font-size: 13px; font-weight: 500;
  color: var(--text-2);
  cursor: pointer; background: none; border: none;
  list-style: none;
  transition: color .15s, background .15s;
  user-select: none;
}
.lang-trigger::-webkit-details-marker { display: none; }
.lang-trigger:hover { color: var(--gold); background: var(--accent-soft); }
.lang-code { font-weight: 600; font-size: 12px; letter-spacing: .04em; }
.lang-chevron { transition: transform .2s; }
details[open] .lang-chevron { transform: rotate(180deg); }
.lang-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: #262856;
  border: 1px solid var(--border);
  border-radius: var(--r2);
  box-shadow: var(--sh3);
  padding: 8px; min-width: 300px; z-index: 200;
}
.lang-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; list-style: none; }
.lang-option {
  display: block;
  padding: 8px 10px; border-radius: var(--r1);
  font-size: 13px; color: var(--text-2);
  transition: color .15s, background .15s; white-space: nowrap;
}
.lang-option:hover   { color: var(--gold); background: var(--accent-soft); }
.lang-option--active { color: var(--gold); font-weight: 600; background: var(--accent-soft); }

/* 4. BUTTONS
   ─────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px;
  background: var(--gold); color: var(--on-accent);
  border-radius: 100px;
  font-family: var(--round); font-size: 16px; font-weight: 800;
  transition: transform .15s, box-shadow .2s, background .2s;
  box-shadow: 0 4px 0 #c99a2e, 0 10px 24px rgba(255, 209, 102, .22);
}
.btn-primary:hover { background: var(--gold-dk); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(2px); box-shadow: 0 2px 0 #c99a2e; }
.btn-primary--soon {
  background: transparent; color: var(--gold);
  border: 2px dashed var(--accent-line);
  box-shadow: none; cursor: default;
}
.btn-primary--soon:hover,
.btn-primary--soon:active { background: transparent; transform: none; box-shadow: none; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 13px 22px;
  color: var(--text);
  border-radius: 100px; font-size: 15px; font-weight: 600;
  border: 1.5px solid var(--border);
  transition: border-color .2s, background .2s, color .2s;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); background: var(--accent-soft); }

/* 5. HERO
   ─────────────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 40px 64px;
  align-items: center;
  min-height: min(calc(100dvh - 64px), 880px);
  padding: 60px var(--pad) 80px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.hero-content { max-width: 560px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 14px 5px 5px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  margin-bottom: 28px;
}
.hero-badge-icon { border-radius: 7px; }
.hero-badge-text { font-family: var(--round); font-size: 14px; font-weight: 800; color: var(--text); }
.hero-headline {
  font-family: var(--round);
  font-size: clamp(38px, 5.4vw, 66px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -.02em;
  color: var(--text);
  margin-bottom: 16px;
  overflow-wrap: break-word;
}
.hero-promise {
  display: inline-block;
  font-family: var(--round);
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 900;
  color: var(--gold);
  transform: rotate(-3deg);
  text-shadow: 0 0 24px rgba(255, 209, 102, .35);
  margin-bottom: 18px;
}
.hero-sub {
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.65;
  color: var(--text-2);
  margin-bottom: 36px;
  max-width: 500px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* A landscape phone with a drawn level, or a screenshot on /features */
.device {
  width: 100%;
  padding: 12px;
  background: #0f1126;
  border: 1px solid rgba(255, 243, 214, .12);
  border-radius: 40px;
  box-shadow: var(--sh3);
}
.device-screen {
  border-radius: 29px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: linear-gradient(180deg, var(--sky-top), var(--sky-bot));
}
.device-screen > svg, .device-shot { width: 100%; height: 100%; object-fit: cover; }

.scene-barely {
  font-family: var(--round); font-size: 34px; font-weight: 900;
  fill: var(--gold); paint-order: stroke; stroke: #1b1f3b; stroke-width: 6px; stroke-linejoin: round;
}
.scene-chain { font-family: var(--round); font-size: 17px; font-weight: 900; fill: var(--gold); letter-spacing: .04em; }
.scene-next  { font-family: var(--round); font-size: 12px; font-weight: 900; fill: var(--runner); opacity: .7; letter-spacing: .08em; }
.scene-ring   { transform-origin: 260px 300px; animation: ring 2.4s ease-out infinite; }
.scene-runner { animation: bob 1.2s ease-in-out infinite; }
.scene-barely { transform-box: fill-box; }
@keyframes ring { 0% { opacity: 1; transform: scale(.8); } 60%, 100% { opacity: 0; transform: scale(1.45); } }
@keyframes bob  { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }

/* 6. STATS BAR
   ─────────────────────────────────────────────────────── */
.stats-bar {
  background: rgba(255, 243, 214, .04);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px var(--pad);
}
.stats-bar-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  gap: 16px 48px; flex-wrap: wrap;
  list-style: none;
}
.stat-item { display: flex; align-items: center; gap: 10px; color: var(--text); }
.stat-icon {
  width: 34px; height: 34px;
  background: var(--accent-soft); color: var(--gold);
  border-radius: var(--r1);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.stat-label { font-size: 14px; font-weight: 600; }

/* 7. SECTIONS AND CARDS
   ─────────────────────────────────────────────────────── */
.features { padding: 100px var(--pad); max-width: var(--max-w); margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-kicker {
  display: inline-block;
  font-size: 12px; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px;
}
.section-kicker--gold { font-family: var(--round); font-size: 20px; font-weight: 900; letter-spacing: .02em; transform: rotate(-3deg); }
.section-title {
  font-family: var(--round);
  font-size: clamp(30px, 4vw, 50px);
  font-weight: 900; line-height: 1.1;
  color: var(--text); letter-spacing: -.02em;
}
.section-sub {
  font-size: 17px; color: var(--text-2); line-height: 1.65;
  margin-top: 14px; max-width: 580px;
  margin-left: auto; margin-right: auto;
}

.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r3);
  padding: 32px 28px;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.feature-card:hover { transform: translateY(-4px); background: var(--surface-2); }
.feature-card--block:hover  { border-color: rgba(244, 162, 89, .55); }
.feature-card--spring:hover { border-color: rgba(107, 219, 118, .55); }
.feature-card--sign:hover   { border-color: rgba(142, 125, 255, .65); }
.feature-icon {
  width: 56px; height: 56px;
  background: rgba(255, 243, 214, .06);
  border-radius: var(--r2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.feature-title {
  font-family: var(--round);
  font-size: 24px; font-weight: 900;
  color: var(--text); margin-bottom: 8px;
  line-height: 1.2;
}
.feature-card--block  .feature-title { color: var(--block); }
.feature-card--spring .feature-title { color: var(--spring); }
.feature-card--sign   .feature-title { color: #b2a7ff; }
.feature-text { font-size: 15px; line-height: 1.65; color: var(--text-2); }

/* 8. BARELY
   ─────────────────────────────────────────────────────── */
.barely { padding: 100px var(--pad); background: rgba(8, 6, 24, .22); }
.barely-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px 72px; align-items: center;
}
.barely-body { font-size: 17px; line-height: 1.7; color: var(--text-2); margin-top: 18px; max-width: 520px; }
.barely-visual { display: grid; gap: 24px; }

.timing { position: relative; padding-top: 34px; }
.timing-bar {
  display: grid; grid-template-columns: 1fr 34%;
  height: 54px; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--border);
  font-family: var(--round); font-weight: 900; font-size: 13px;
}
.timing-early  { display: flex; align-items: center; padding: 0 16px; background: rgba(255, 243, 214, .05); color: var(--text-3); }
.timing-window {
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 8px;
  background: repeating-linear-gradient(135deg, rgba(255, 209, 102, .95) 0 10px, rgba(255, 209, 102, .82) 10px 20px);
  color: var(--on-accent);
}
.timing-runner {
  position: absolute; top: 0; right: 0;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--runner);
  box-shadow: 0 0 0 4px rgba(255, 209, 102, .25);
}

.stars-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r3); padding: 26px 28px;
}
.stars-title { font-family: var(--round); font-size: 20px; font-weight: 900; margin-bottom: 14px; }
.stars-list { list-style: none; display: grid; gap: 12px; }
.stars-list li { display: grid; grid-template-columns: 78px 1fr; gap: 12px; align-items: center; font-size: 15px; color: var(--text-2); }
.stars { display: inline-flex; gap: 2px; font-size: 22px; line-height: 1; }
.star { color: rgba(255, 243, 214, .18); }
.star--on { color: var(--gold); }

/* 9. CHAPTERS
   ─────────────────────────────────────────────────────── */
.chapters { padding: 100px var(--pad); max-width: var(--max-w); margin: 0 auto; }
.chapter-grid { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.chapter {
  position: relative;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r3); padding: 30px 28px 26px;
  overflow: hidden;
}
.chapter::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background: var(--chapter-color, var(--block));
}
.chapter--block  { --chapter-color: var(--block); }
.chapter--spring { --chapter-color: var(--spring); }
.chapter--sign   { --chapter-color: var(--sign); }
.chapter-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.chapter-label { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.chapter-name { font-family: var(--round); font-size: 30px; font-weight: 900; color: var(--chapter-color); line-height: 1.1; margin-bottom: 8px; }
.chapter-text { font-size: 15px; line-height: 1.6; color: var(--text-2); margin-bottom: 18px; }
.chapter-levels { font-family: var(--round); font-size: 14px; font-weight: 800; color: var(--text); }

/* 10. SHORT BREAKS
   ─────────────────────────────────────────────────────── */
.breaks { padding: 20px var(--pad) 100px; }
.breaks-inner {
  max-width: 820px; margin: 0 auto; text-align: center;
  background: linear-gradient(180deg, rgba(127, 216, 190, .10), rgba(127, 216, 190, .03));
  border: 1px solid rgba(127, 216, 190, .25);
  border-radius: var(--r3);
  padding: 48px 40px;
}
.breaks .section-kicker { color: var(--grass); }
.breaks-points {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px;
  margin-top: 26px; font-size: 16px; color: var(--text);
}
.breaks-points li { display: flex; align-items: center; gap: 10px; text-align: left; }
.breaks .check { background: rgba(127, 216, 190, .16); color: var(--grass); }

/* 11. FREE AND REMOVE ADS
   ─────────────────────────────────────────────────────── */
.pricing { padding: 100px var(--pad); background: rgba(8, 6, 24, .22); }
.pricing-grid {
  max-width: 900px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start;
}
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r3); padding: 36px 32px; }
.plan--pro { border: 1.5px solid var(--accent-line); box-shadow: var(--sh3); }
.plan-name { font-family: var(--round); font-size: 30px; font-weight: 900; }
.plan-price { font-size: 13px; font-weight: 800; color: var(--gold); margin: 4px 0 18px; text-transform: uppercase; letter-spacing: .08em; }
.plan-lead { font-family: var(--round); font-size: 20px; font-weight: 800; margin-bottom: 14px; }
.plan-points { list-style: none; display: grid; gap: 11px; }
.plan-points li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 15px; line-height: 1.5; color: var(--text-2); }
.check {
  width: 20px; height: 20px; margin-top: 1px; border-radius: 50%;
  background: var(--accent-soft); color: var(--gold);
  display: grid; place-items: center; flex: none;
}
.plan-note { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); font-size: 14px; color: var(--text-3); line-height: 1.6; }

/* 12. PRIVACY BAND AND DOWNLOAD CTA
   ─────────────────────────────────────────────────────── */
.privacy-band { padding: 100px var(--pad); }
.privacy-band-inner { max-width: 640px; margin: 0 auto; text-align: center; }
.privacy-band .btn-ghost { margin-top: 28px; }

.download-cta {
  padding: 100px var(--pad) 120px;
  text-align: center;
  background:
    linear-gradient(180deg, transparent 0 calc(100% - 46px), var(--grass) calc(100% - 46px) calc(100% - 40px), var(--ground) calc(100% - 40px));
}
.download-cta-inner { max-width: 560px; margin: 0 auto; }
.download-cta-icon { margin: 0 auto 24px; border-radius: 18px; box-shadow: var(--sh3); }
.download-cta-title {
  font-family: var(--round);
  font-size: clamp(34px, 4.5vw, 54px);
  font-weight: 900; line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--text); margin-bottom: 16px;
}
.download-cta-sub { font-size: 17px; color: var(--text-2); margin-bottom: 36px; line-height: 1.65; }

.appstore-badge {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 14px 28px;
  background: #000; color: #fff;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 18px;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .35);
}
.appstore-badge:hover { transform: translateY(-2px); box-shadow: 0 10px 34px rgba(0, 0, 0, .45); }
.appstore-badge--soon {
  background: transparent; color: var(--text);
  border: 2px dashed var(--accent-line);
  box-shadow: none; cursor: default;
}
.appstore-badge--soon:hover { transform: none; box-shadow: none; }
.appstore-badge-text { text-align: left; }
.appstore-badge-line1 { display: block; font-size: 11px; font-weight: 400; opacity: .75; letter-spacing: .02em; }
.appstore-badge-line2 { display: block; font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.download-note { margin-top: 16px; font-size: 14px; color: var(--text-3); }

/* 13. FEATURES, WHAT'S NEW AND DOWNLOAD PAGES
   ─────────────────────────────────────────────────────── */
.features-page-hero { text-align: center; padding: 72px var(--pad) 24px; max-width: 760px; margin: 0 auto; }
.features-page-hero .section-title { font-size: clamp(34px, 4.6vw, 56px); }

.feature-rows {
  max-width: 1120px; margin: 0 auto;
  padding: 24px var(--pad) 40px;
  display: flex; flex-direction: column; gap: 24px;
}
.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 40px 64px;
  align-items: center;
  padding: 32px 0;
}
.feature-row--flip { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
.feature-row--flip .feature-row-text { order: 2; }
.feature-row-title {
  font-family: var(--round);
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 900; line-height: 1.1; letter-spacing: -.01em;
  color: var(--text); margin-bottom: 14px;
}
.feature-row-body { font-size: 17px; line-height: 1.7; color: var(--text-2); max-width: 460px; }
.feature-row-visual { display: flex; justify-content: center; }
.device--shot { max-width: 560px; }
.shot-placeholder {
  height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  border: 2px dashed rgba(255, 243, 214, .18); border-radius: 29px;
  font-size: 14px; font-weight: 600; color: var(--text-3);
}
.features--more { padding-top: 40px; }
.features-grid--three { max-width: 1040px; margin: 0 auto; }

.release-list { list-style: none; display: flex; flex-direction: column; gap: 24px; }
.release { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r3); padding: 32px 36px; }
.release-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.release-version { font-family: var(--round); font-size: 30px; font-weight: 900; color: var(--text); }
.release-month { font-size: 14px; color: var(--text-3); }
.release-body p { font-size: 16px; line-height: 1.7; color: var(--text-2); margin-bottom: 12px; }
.release-section { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin: 22px 0 8px; }
.release-body ul { padding-left: 20px; font-size: 15px; line-height: 1.65; color: var(--text-2); }
.release-body li { margin-bottom: 6px; }

.download-hero {
  min-height: min(calc(100dvh - 64px), 880px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 80px var(--pad);
}
.download-app-icon { width: 96px; height: 96px; margin: 0 auto 28px; border-radius: 22px; box-shadow: var(--sh3); }
.download-title {
  font-family: var(--round);
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 900; line-height: 1.1; letter-spacing: -.02em;
  color: var(--text); margin-bottom: 16px;
}
.download-intro { font-size: 18px; color: var(--text-2); max-width: 460px; margin: 0 auto 40px; line-height: 1.65; }
.download-requires { margin-top: 8px; font-size: 13px; color: var(--text-3); max-width: 440px; }

/* 14. PROSE (Support, Privacy, What's New)
   ─────────────────────────────────────────────────────── */
.prose-page { max-width: 760px; margin: 0 auto; padding: 60px var(--pad) 100px; }
.prose-header { margin-bottom: 40px; }
.prose-header h1 {
  font-family: var(--round);
  font-size: clamp(34px, 4.5vw, 50px);
  font-weight: 900; line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--text); margin-bottom: 12px;
}
.prose-meta { font-size: 14px; color: var(--text-3); }
.prose-meta a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }

.support-intro { font-size: 17px; color: var(--text-2); line-height: 1.65; }
.support-grid  { display: flex; flex-direction: column; gap: 24px; }
.support-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r3);
  padding: 36px;
  scroll-margin-top: 80px;
}
.support-card h2 { font-family: var(--round); font-size: 26px; font-weight: 900; color: var(--text); margin-bottom: 20px; }
.contact-row { display: flex; gap: 12px; flex-wrap: wrap; font-size: 15px; align-items: center; }
.contact-label { color: var(--text-3); font-weight: 500; }
.contact-row a { color: var(--gold); transition: opacity .15s; overflow-wrap: anywhere; }
.contact-row a:hover { opacity: .75; }

.faq { display: flex; flex-direction: column; }
.faq-item { border-top: 1px solid var(--border); }
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px 0;
  font-size: 16px; font-weight: 600; color: var(--text);
  cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 22px; font-weight: 400; line-height: 1;
  color: var(--gold); flex-shrink: 0;
  transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 0 18px; font-size: 15px; line-height: 1.7; color: var(--text-2); }

/* 15. FORMS
   ─────────────────────────────────────────────────────── */
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.form-field label {
  font-size: 14px; font-weight: 600; color: var(--text);
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.form-field input,
.form-field textarea {
  padding: 12px 16px;
  background: rgba(8, 6, 24, .35);
  border: 1.5px solid var(--border);
  border-radius: var(--r1);
  font-family: var(--sans); font-size: 16px; color: var(--text);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--text-3); }
.form-field input:focus,
.form-field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--accent-soft); }
.form-field textarea { min-height: 140px; }
.form-field--trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-submit {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px;
  background: var(--gold); color: var(--on-accent);
  border-radius: 100px; font-family: var(--round); font-size: 16px; font-weight: 800;
  border: none;
  transition: transform .15s, background .2s;
  box-shadow: 0 4px 0 #c99a2e;
}
.form-submit:hover { background: var(--gold-dk); transform: translateY(-1px); }
.field-error { color: var(--error); font-size: 12px; font-weight: 500; }
.alert-success {
  padding: 12px 16px;
  background: rgba(107, 219, 118, .10);
  border: 1px solid rgba(107, 219, 118, .35);
  border-radius: var(--r1); font-size: 14px; color: var(--text);
  margin-bottom: 20px;
}
.alert-error {
  padding: 12px 16px;
  background: rgba(239, 93, 122, .10);
  border: 1px solid rgba(239, 93, 122, .35);
  border-radius: var(--r1); font-size: 14px; color: var(--error);
  margin-bottom: 20px;
}
.alert-error ul { padding-left: 18px; }

/* 16. PRIVACY POLICY
   ─────────────────────────────────────────────────────── */
.privacy-content { line-height: 1.75; }
.privacy-content > p:first-child { font-size: 14px; color: var(--text-3); margin-bottom: 28px; }
.privacy-content h2 {
  font-family: var(--round);
  font-size: 24px; font-weight: 900;
  margin-top: 44px; margin-bottom: 12px; color: var(--text);
}
.privacy-content p  { margin-bottom: 16px; font-size: 16px; color: var(--text-2); }
.privacy-content ul { padding-left: 20px; margin-bottom: 16px; font-size: 16px; color: var(--text-2); }
.privacy-content li { margin-bottom: 6px; }
.privacy-content a  { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.privacy-content strong { color: var(--text); }

/* 17. ERROR PAGES
   ─────────────────────────────────────────────────────── */
.error-page {
  min-height: calc(100dvh - 64px - 90px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 60px var(--pad);
}
.error-code {
  font-family: var(--round);
  font-size: 104px; font-weight: 900;
  color: var(--spikes); line-height: 1; margin-bottom: 16px;
  transform: rotate(-4deg);
}
.error-title { font-family: var(--round); font-size: 32px; font-weight: 900; color: var(--text); margin-bottom: 12px; }
.error-sub { font-size: 16px; color: var(--text-2); margin-bottom: 32px; }

/* 18. FOOTER
   ─────────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--border); padding: 28px var(--pad); background: var(--ground); }
.footer-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 8px; font-family: var(--round); font-size: 17px; font-weight: 900; color: var(--text); }
.footer-brand img { border-radius: 6px; }
.footer-copy { font-size: 13px; color: var(--text-2); }
.footer-links { display: flex; gap: 20px; list-style: none; flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: var(--text-2); transition: color .15s; }
.footer-links a:hover { color: var(--gold); }

/* 19. SCROLL ANIMATIONS
   ─────────────────────────────────────────────────────── */
[data-animate] {
  opacity: 0; transform: translateY(22px);
  transition: opacity .55s ease, transform .55s ease;
}
[data-animate].is-visible { opacity: 1; transform: none; }
.section-kicker--gold[data-animate].is-visible { transform: rotate(-3deg); }
[data-animate][data-delay="1"] { transition-delay: .08s; }
[data-animate][data-delay="2"] { transition-delay: .16s; }
[data-animate][data-delay="3"] { transition-delay: .24s; }
[data-animate][data-delay="4"] { transition-delay: .32s; }
[data-animate][data-delay="5"] { transition-delay: .40s; }
[data-animate][data-delay="6"] { transition-delay: .48s; }

/* 20. RESPONSIVE
   ─────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center; justify-items: center;
    padding-top: 40px; min-height: auto; gap: 48px;
  }
  .hero-content { max-width: 100%; }
  .hero-sub     { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .device { max-width: 640px; }
  .features-grid, .chapter-grid { grid-template-columns: 1fr 1fr; }
  .barely-inner { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 560px; }
  .feature-row,
  .feature-row--flip { grid-template-columns: 1fr; text-align: center; gap: 28px; }
  .feature-row--flip .feature-row-text { order: 0; }
  .feature-row-body { margin: 0 auto; }
}

@media (max-width: 600px) {
  body > header { gap: 8px; }
  .header-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg);
    flex-direction: column; align-items: stretch;
    padding: 8px 0 16px; gap: 0; z-index: 50;
    border-top: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
  }
  .header-nav.nav-open { display: flex; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .nav-link { padding: 13px var(--pad); font-size: 16px; width: 100%; border-radius: 0; }
  .nav-link--cta { margin-left: 0; color: var(--gold); background: none; }
  .nav-link--cta:hover, .nav-link--cta.nav-link--active { color: var(--gold); background: var(--accent-soft); }
  .lang-dropdown { position: fixed; top: 64px; left: 16px; right: 16px; min-width: 0; }

  .device { padding: 7px; border-radius: 26px; }
  .device-screen { border-radius: 20px; }
  .shot-placeholder { border-radius: 20px; }
  .features, .barely, .chapters, .pricing, .privacy-band, .download-cta { padding-top: 72px; padding-bottom: 72px; }
  .download-cta { padding-bottom: 100px; }
  .features-grid, .chapter-grid { grid-template-columns: 1fr; }
  .feature-card, .chapter { padding: 24px 20px; }
  .plan { padding: 28px 22px; }
  .breaks-inner { padding: 36px 20px; }
  .support-card { padding: 24px 20px; }
  .release { padding: 24px 20px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-links { gap: 14px; }
}

/* 21. REDUCED MOTION
   ─────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  [data-animate] { opacity: 1; transform: none; transition: none; }
  .section-kicker--gold[data-animate] { transform: rotate(-3deg); }
  .scene-ring, .scene-runner { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
