/* ReadAloud landing page. Tokens follow app/lib/studio/theme.dart: pine and paper, with highlighter yellow
   only for the spoken word. Light is the Paper palette, dark is Night. */

@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("fonts/AtkinsonHyperlegibleNext-400.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("fonts/AtkinsonHyperlegibleNext-500.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("fonts/AtkinsonHyperlegibleNext-700.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Literata"; src: url("fonts/Literata-400.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Literata"; src: url("fonts/Literata-400-Italic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Literata"; src: url("fonts/Literata-600.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/JetBrainsMono-500.ttf") format("truetype"); font-weight: 500; font-display: swap; }

:root {
  --ground: #F6F5F0;
  --surface: #FFFFFF;
  --raised: #ECEAE2;
  --ink: #1F3531;
  --muted: #5E6F6B;
  --untimed: #7E8A86;
  --line: #DEDBD0;
  --action: #2F6E62;
  --on-action: #FFFFFF;
  --action-soft: rgba(47, 110, 98, 0.10);
  --word: #F7CB2D;
  --on-word: #111827;
  --sentence: #FAEDB9;
  --selection: rgba(47, 110, 98, 0.18);
  --success: #2A6E47;
  --reward: #7A6000;
  --inverse: #1F3531;
  --on-inverse: #FFFFFF;
  --inverse-muted: rgba(255, 255, 255, 0.72);
  --shadow-1: 0 1px 3px rgba(0, 0, 0, 0.10);
  --shadow-2: 0 7px 22px rgba(0, 0, 0, 0.13);

  --radius-tag: 6px;
  --radius-control: 8px;
  --radius-card: 14px;
  --radius-pill: 20px;
  --radius-sheet: 28px;

  --ui: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --reading: "Literata", Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --display: var(--reading);

  --gutter: 16px;
  --max: 1120px;
  --quick: 160ms;
  --follow: 120ms;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0F1614; --surface: #17211E; --raised: #22302C; --ink: #E3EAE7; --muted: #9AAAA5; --untimed: #66756F;
    --line: #2A3834; --action: #6FB5A6; --on-action: #08130F; --action-soft: rgba(111, 181, 166, 0.14);
    --word: #E9BE2A; --on-word: #111111; --sentence: #2E2B18; --selection: rgba(111, 181, 166, 0.24);
    --success: #5CC189; --reward: #F2C14E; --inverse: #22302C; --on-inverse: #E3EAE7; --inverse-muted: rgba(227, 234, 231, 0.72);
    --shadow-1: 0 1px 3px rgba(0, 0, 0, 0.30); --shadow-2: 0 7px 22px rgba(0, 0, 0, 0.42);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #0F1614; --surface: #17211E; --raised: #22302C; --ink: #E3EAE7; --muted: #9AAAA5; --untimed: #66756F;
  --line: #2A3834; --action: #6FB5A6; --on-action: #08130F; --action-soft: rgba(111, 181, 166, 0.14);
  --word: #E9BE2A; --on-word: #111111; --sentence: #2E2B18; --selection: rgba(111, 181, 166, 0.24);
  --success: #5CC189; --reward: #F2C14E; --inverse: #22302C; --on-inverse: #E3EAE7; --inverse-muted: rgba(227, 234, 231, 0.72);
  --shadow-1: 0 1px 3px rgba(0, 0, 0, 0.30); --shadow-2: 0 7px 22px rgba(0, 0, 0, 0.42);
  color-scheme: dark;
}

/* Scripts the interface face does not cover: the system's own sans, and sans headings for CJK. */
:root:lang(zh-Hans) { --ui: "Atkinson Hyperlegible Next", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif; --display: var(--ui); }
:root:lang(zh-Hant) { --ui: "Atkinson Hyperlegible Next", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif; --display: var(--ui); }
:root:lang(ja) { --ui: "Atkinson Hyperlegible Next", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif; --display: var(--ui); }
:root:lang(ko) { --ui: "Atkinson Hyperlegible Next", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif; --display: var(--ui); }
:root:lang(vi) { --ui: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif; }
:root:is(:lang(zh-Hans), :lang(zh-Hant), :lang(ja), :lang(ko)) body { line-height: 1.7; }
:root:is(:lang(zh-Hans), :lang(zh-Hant), :lang(ja), :lang(ko)) :is(h1, h2, h3) { letter-spacing: 0; font-weight: 700; }
/* Japanese breaks between phrases, Korean between words, so a headline never splits a phrase. */
:root:lang(ja) :is(h1, h2, h3, .lead) { word-break: auto-phrase; }
:root:lang(ko) { word-break: keep-all; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--ground); color: var(--ink); font-family: var(--ui); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
::selection { background: var(--selection); }
img, svg { display: block; }
a { color: var(--action); text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--action); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
mark { background: var(--word); color: var(--on-word); border-radius: 6px; padding: 0 0.12em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 24px; } }
@media (min-width: 1100px) { :root { --gutter: 32px; } }
.skip { position: absolute; left: -999px; top: 8px; background: var(--action); color: var(--on-action); padding: 8px 14px; border-radius: var(--radius-control); z-index: 100; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--ground) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent;
  transition: border-color var(--quick);
}
.header.scrolled { border-bottom-color: var(--line); }
.header .wrap { display: flex; align-items: center; gap: 12px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; margin-right: auto; }
.brand svg { width: 32px; height: 32px; flex: none; }
.nav { display: none; gap: 4px; }
.nav a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: var(--radius-control); font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--ink); background: var(--raised); }
@media (min-width: 900px) { .nav { display: flex; } }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; min-width: 40px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--surface); cursor: pointer; color: var(--ink); font-size: 14px;
}
.icon-btn:hover { background: var(--raised); }
.icon-btn svg { width: 18px; height: 18px; }
.lang { position: relative; }
.lang select {
  appearance: none; -webkit-appearance: none; height: 40px; padding: 0 32px 0 36px; border: 1px solid var(--line); border-radius: var(--radius-pill);
  background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; max-width: 150px;
}
.lang select:hover { background: var(--raised); }
.lang .globe, .lang .chev { position: absolute; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--muted); }
.lang .globe { left: 12px; width: 16px; height: 16px; }
.lang .chev { right: 12px; width: 12px; height: 12px; }
.header .btn { display: none; }
@media (min-width: 600px) { .header .btn { display: inline-flex; } }
.theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .sun { display: none; }
  :root:not([data-theme="light"]) .theme-btn .moon { display: block; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: var(--radius-pill);
  font-weight: 700; font-size: 15px; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform 90ms, background var(--quick);
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--action); color: var(--on-action); box-shadow: var(--shadow-1); }
.btn-primary:hover { background: color-mix(in srgb, var(--action) 88%, var(--ink)); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--raised); }
.btn-lg { min-height: 52px; padding: 12px 24px; font-size: 16px; }
.btn[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
@media (min-width: 900px) { section { padding: 104px 0; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--action); font-weight: 700; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 14px; }
:root:is(:lang(zh-Hans), :lang(zh-Hant), :lang(ja), :lang(ko)) .eyebrow { letter-spacing: 0.02em; font-size: 14px; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.h2 { font-family: var(--display); font-size: clamp(28px, 4.6vw, 42px); line-height: 1.15; letter-spacing: -0.015em; }
.lead { color: var(--muted); font-size: 17px; margin-top: 14px; }
@media (min-width: 900px) { .lead { font-size: 18px; } }

/* ---------- Hero ---------- */
.hero { padding: 40px 0 64px; }
@media (min-width: 900px) { .hero { padding: 64px 0 96px; } }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1fr 1.02fr; gap: 56px; } }
.hero h1 { font-family: var(--display); font-size: clamp(36px, 7vw, 60px); line-height: 1.08; letter-spacing: -0.025em; }
.hero h1 mark { padding: 0 0.1em; }
.hero .lead { max-width: 560px; margin-top: 20px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (max-width: 520px) { .hero-cta .btn { flex: 1 1 100%; } }
.hero-note { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 20px; color: var(--muted); font-size: 14px; padding: 0; list-style: none; }
.hero-note li { display: inline-flex; align-items: center; gap: 6px; }
.hero-note svg { width: 16px; height: 16px; color: var(--success); }
.platform-line { margin-top: 28px; display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; color: var(--muted); font-size: 13px; }
.platform-line .icons { display: flex; gap: 12px; color: var(--ink); opacity: 0.7; }
.platform-line .icons svg { width: 18px; height: 18px; }

/* ---------- Live demo: the reading room ---------- */
.demo { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sheet); box-shadow: var(--shadow-2); overflow: hidden; min-width: 0; }
.demo-top { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.demo-top .title { font-weight: 700; font-size: 15px; margin-right: auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: var(--radius-tag); background: var(--raised); color: var(--muted); font-size: 12px; font-weight: 700; flex: none; }
.tag.live { background: var(--action-soft); color: var(--action); gap: 6px; }
.tag.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.demo-text {
  font-family: var(--reading); font-size: 18px; line-height: 1.75; color: var(--ink); padding: 18px 20px 8px;
  height: 300px; overflow-y: auto; scrollbar-width: thin; position: relative;
}
@media (min-width: 600px) { .demo-text { font-size: 19px; padding: 22px 28px 8px; height: 330px; } }
.demo-text h3 { font-family: var(--reading); font-size: 1.05em; font-weight: 600; margin-bottom: 8px; }
.demo-text p { margin-bottom: 14px; }
.demo-text .s { border-radius: 4px; transition: background var(--follow); box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.demo-text .s.on { background: var(--sentence); }
.demo-text .w { border-radius: 4px; cursor: pointer; transition: background var(--follow), color var(--follow); padding: 0.04em 0; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.demo-text .w:hover { box-shadow: inset 0 -2px 0 var(--action); }
.demo-text .w.on { background: var(--word); color: var(--on-word); box-shadow: 0 0 0 2px var(--word); }
.demo-text .w.read { color: var(--ink); }
.demo-text.fresh .w { color: var(--ink); }
.demo-fade { position: relative; }
.demo-fade::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 28px; background: linear-gradient(to bottom, transparent, var(--surface)); pointer-events: none; }
.player { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px 14px; padding: 12px 16px 14px; border-top: 1px solid var(--line); }
@media (min-width: 600px) { .player { padding: 14px 22px 16px; } }
.play {
  width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--action); color: var(--on-action); display: grid; place-items: center; cursor: pointer;
  box-shadow: var(--shadow-1); transition: transform 90ms;
}
.play:active { transform: scale(0.95); }
.play svg { width: 22px; height: 22px; }
.play .pause { display: none; }
.play.playing .pause { display: block; }
.play.playing .tri { display: none; }
.track { position: relative; height: 28px; display: flex; align-items: center; cursor: pointer; touch-action: none; }
.track .rail { position: absolute; left: 0; right: 0; height: 4px; border-radius: 2px; background: var(--raised); }
.track .fill { position: absolute; left: 0; height: 4px; border-radius: 2px; background: var(--action); width: 0; }
.track .knob { position: absolute; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--action); box-shadow: var(--shadow-1); left: 0; }
.player-side { display: flex; align-items: center; gap: 8px; }
.time { font-family: var(--mono); font-size: 12px; color: var(--muted); min-width: 76px; text-align: right; }
.speed { height: 30px; padding: 0 10px; border-radius: var(--radius-pill); border: 1px solid var(--line); background: var(--surface); font-family: var(--mono); font-size: 12px; cursor: pointer; color: var(--ink); }
.speed:hover { background: var(--raised); }
.demo-foot { padding: 0 20px 16px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; color: var(--muted); font-size: 12.5px; }
@media (min-width: 600px) { .demo-foot { padding: 0 28px 18px; } }
.demo-foot .hint { color: var(--ink); font-weight: 500; }

/* ---------- Features ---------- */
.features { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature { display: grid; gap: 28px; align-items: center; padding: 28px 0; }
.feature + .feature { border-top: 1px solid var(--line); padding-top: 56px; margin-top: 28px; }
@media (min-width: 900px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 64px; }
  .feature:nth-child(even) .feature-art { order: -1; }
}
.kicker { font-family: var(--mono); font-size: 12px; color: var(--action); font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 10px; }
.feature h3 { font-family: var(--display); font-size: clamp(24px, 3.4vw, 32px); line-height: 1.2; letter-spacing: -0.01em; }
.feature p { color: var(--muted); margin-top: 12px; font-size: 17px; }
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks svg { width: 20px; height: 20px; color: var(--action); flex: none; margin-top: 2px; }
.feature-art { background: var(--ground); border: 1px solid var(--line); border-radius: var(--radius-sheet); padding: 24px; min-width: 0; }
@media (min-width: 600px) { .feature-art { padding: 32px; } }

/* Illustrations, built from the app's own parts */
.mock { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow-1); padding: 16px; }
.mock + .mock { margin-top: 12px; }
.mock-row { display: flex; align-items: center; gap: 12px; }
.mock-icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--action-soft); color: var(--action); flex: none; }
.mock-icon svg { width: 20px; height: 20px; }
.mock-title { font-weight: 700; font-size: 14px; }
.mock-sub { color: var(--muted); font-size: 12.5px; font-family: var(--mono); }
.mock-bar { height: 6px; border-radius: 3px; background: var(--raised); margin-top: 12px; overflow: hidden; }
.mock-bar i { display: block; height: 100%; background: var(--action); border-radius: 3px; }
.mock-wave { display: flex; align-items: center; gap: 3px; height: 40px; margin-top: 12px; }
.mock-wave i { flex: 1; border-radius: 2px; background: var(--raised); min-width: 2px; }
.mock-wave i.lit { background: var(--word); }
.dictation { font-family: var(--reading); font-size: 18px; line-height: 2; }
.dictation .ok { color: var(--success); }
.dictation .blank { display: inline-block; min-width: 72px; border-bottom: 2px solid var(--action); margin: 0 2px; text-align: center; color: var(--action); font-family: var(--mono); font-size: 14px; line-height: 1.4; }
.dictation .typed::after { content: ""; display: inline-block; width: 2px; height: 1em; background: var(--action); vertical-align: -0.12em; margin-left: 2px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chip { height: 28px; padding: 0 10px; border-radius: var(--radius-pill); border: 1px solid var(--line); display: inline-flex; align-items: center; font-size: 13px; color: var(--muted); background: var(--surface); }
.chip.on { background: var(--action); border-color: var(--action); color: var(--on-action); }
.scores { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.score { background: var(--ground); border-radius: 10px; padding: 10px; text-align: center; }
.score b { display: block; font-family: var(--mono); font-size: 20px; font-weight: 500; }
.score span { font-size: 12px; color: var(--muted); }
.ipa { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.word-card .word { font-family: var(--reading); font-size: 24px; font-weight: 600; }
.word-card .def { margin-top: 6px; font-size: 14px; color: var(--ink); }
.word-card .ex { margin-top: 8px; font-family: var(--reading); font-style: italic; color: var(--muted); font-size: 14px; }
.word-card .ex mark { font-style: normal; }
.due { display: flex; gap: 8px; margin-top: 14px; }
.due span { flex: 1; text-align: center; padding: 8px 4px; border-radius: var(--radius-control); background: var(--ground); font-size: 13px; font-weight: 700; }
.due span:nth-child(1) { color: #9F4824; }
.due span:nth-child(3) { color: var(--success); }
:root[data-theme="dark"] .due span:nth-child(1) { color: #F08F6E; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .due span:nth-child(1) { color: #F08F6E; } }

/* ---------- Privacy ---------- */
.privacy { background: var(--inverse); color: var(--on-inverse); }
:root[data-theme="dark"] .privacy { background: #17211E; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .privacy { background: #17211E; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); } }
.privacy .eyebrow { color: var(--word); }
.privacy .lead { color: var(--inverse-muted); }
.grid4 { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .grid4 { grid-template-columns: repeat(4, 1fr); } }
.pcard { border: 1px solid rgba(255, 255, 255, 0.14); border-radius: var(--radius-card); padding: 22px; background: rgba(255, 255, 255, 0.04); }
.pcard svg { width: 26px; height: 26px; color: var(--word); margin-bottom: 16px; }
.pcard h3 { font-size: 17px; font-weight: 700; font-family: var(--ui); }
.pcard p { color: var(--inverse-muted); margin-top: 8px; font-size: 15px; }

/* ---------- Audience ---------- */
.grid3 { display: grid; gap: 16px; }
@media (min-width: 800px) { .grid3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 24px; }
.card .num { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.card h3 { font-family: var(--ui); font-weight: 700; font-size: 18px; margin-top: 10px; }
.card p { color: var(--muted); margin-top: 8px; }
.langs { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; }
.langs .label { width: 100%; text-align: center; color: var(--muted); font-size: 14px; margin-bottom: 4px; }
.langs .chip { background: var(--surface); }

/* ---------- Pricing ---------- */
.plans { display: grid; gap: 16px; max-width: 880px; margin: 0 auto; }
@media (min-width: 760px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sheet); padding: 28px; display: flex; flex-direction: column; }
.plan.pro { border: 2px solid var(--action); box-shadow: var(--shadow-2); position: relative; }
.plan .badge { position: absolute; top: -13px; left: 28px; background: var(--word); color: var(--on-word); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: var(--radius-pill); }
.plan h3 { font-family: var(--ui); font-weight: 700; font-size: 20px; }
.price { display: flex; align-items: baseline; gap: 6px; margin-top: 12px; }
.price b { font-family: var(--display); font-size: 44px; font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.price span { color: var(--muted); }
.plan .alt { color: var(--muted); font-size: 14px; margin-top: 8px; min-height: 2.6em; }
.plan .checks { margin: 20px 0 28px; flex: 1; }
.plan .btn { width: 100%; }
.fine { text-align: center; color: var(--muted); font-size: 13px; margin-top: 20px; }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 4px; font-weight: 700; font-size: 17px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 20px; height: 20px; flex: none; color: var(--muted); transition: transform var(--quick); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { padding: 0 4px 22px; color: var(--muted); max-width: 680px; }

/* ---------- Download ---------- */
.download { background: var(--surface); border-top: 1px solid var(--line); }
.dl-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .dl-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .dl-grid { grid-template-columns: repeat(4, 1fr); } }
.dl { border: 1px solid var(--line); border-radius: var(--radius-card); padding: 22px; background: var(--ground); display: flex; flex-direction: column; gap: 6px; position: relative; transition: border-color var(--quick), box-shadow var(--quick); }
@media (max-width: 1039px) { .dl.mine { order: -1; } }
.dl.mine { border-color: var(--action); box-shadow: 0 0 0 1px var(--action), var(--shadow-1); }
.dl .mine-tag { display: none; position: absolute; top: 14px; right: 14px; }
.dl.mine .mine-tag { display: inline-flex; }
.dl > svg { width: 30px; height: 30px; margin-bottom: 10px; }
.dl h3 { font-family: var(--ui); font-weight: 700; font-size: 18px; }
.dl .req { color: var(--muted); font-size: 13.5px; }
.dl .acts { display: grid; gap: 8px; margin-top: auto; padding-top: 16px; }
.dl .btn { width: 100%; padding-left: 14px; padding-right: 14px; }
.dl .status { font-size: 12px; font-weight: 700; color: var(--reward); }
.dl .status.ok { color: var(--success); }

.notify { margin: 40px auto 0; max-width: 640px; text-align: center; }
.notify h3 { font-family: var(--ui); font-weight: 700; font-size: 18px; }
.notify p { color: var(--muted); margin-top: 6px; font-size: 14px; }
.notify form { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; justify-content: center; }
.notify input[type="email"] {
  flex: 1 1 240px; min-height: 48px; padding: 0 18px; border-radius: var(--radius-pill); border: 1px solid var(--line); background: var(--ground); color: var(--ink); font: inherit;
}
.notify input[type="email"]:focus { outline: 2px solid var(--action); outline-offset: 1px; border-color: transparent; }
.notify select { min-height: 48px; padding: 0 14px; border-radius: var(--radius-pill); border: 1px solid var(--line); background: var(--ground); color: var(--ink); font: inherit; }
.notify .thanks { display: none; margin-top: 16px; color: var(--success); font-weight: 700; }
.notify.done form { display: none; }
.notify.done .thanks { display: block; }

/* ---------- Footer ---------- */
.footer { padding: 48px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; }
.footer .brand { font-size: 16px; margin: 0; }
.footer .tagline { margin-top: 10px; max-width: 320px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; align-content: flex-start; }
.footer nav a { color: var(--muted); text-decoration: none; }
.footer nav a:hover { color: var(--ink); text-decoration: underline; }
.footer .legal { margin-top: 32px; font-size: 12.5px; display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: space-between; }

/* Sections slide in once; the page reads fine without it. */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 500ms ease, transform 500ms ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
