/* PARLANCE — a language lab. Visual language after qoves.com:
   paper ground, deep-teal ink, hairlines, thin display serif, mono annotations. */

:root {
  --paper: #f2f5f5;
  --card: #ffffff;
  --ink: #233137;
  --ink-2: #515255;
  --steel: #758084;
  --mist: #9aaeb5;
  --frost: #cddbe1;
  --ice: #d1ebf2;
  --line: #e3e7e8;
  --line-2: #eef1f1;
  --deep: #233137;
  --deep-2: #2d3b41;
  --on-deep: #f2f5f5;
  --ok: #0c6826;
  --ok-bg: #e6f2ea;
  --bad: #bb3030;
  --bad-bg: #f8e9e9;
  --warn: #b5650a;
  --shadow: 0 1px 2px rgba(35,49,55,.04), 0 8px 28px -12px rgba(35,49,55,.14);

  --serif: "Fraunces", ui-serif, Georgia, serif;
  --sans: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
  --expo: cubic-bezier(0.19, 1, 0.22, 1);
  --quart: cubic-bezier(0.165, 0.84, 0.44, 1);

  --tab-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #12191c; --card: #1a2327; --ink: #e6eced; --ink-2: #a9b4b7; --steel: #8a979b;
    --mist: #6f8389; --frost: #33444a; --ice: #23353c; --line: #2a363a; --line-2: #212b2f;
    --deep: #d7e3e6; --deep-2: #c4d3d7; --on-deep: #12191c;
    --ok: #6cc489; --ok-bg: #16291e; --bad: #ec8080; --bad-bg: #2e1a1a; --warn: #f0a84a;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px -12px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #12191c; --card: #1a2327; --ink: #e6eced; --ink-2: #a9b4b7; --steel: #8a979b;
  --mist: #6f8389; --frost: #33444a; --ice: #23353c; --line: #2a363a; --line-2: #212b2f;
  --deep: #d7e3e6; --deep-2: #c4d3d7; --on-deep: #12191c;
  --ok: #6cc489; --ok-bg: #16291e; --bad: #ec8080; --bad-bg: #2e1a1a; --warn: #f0a84a;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px -12px rgba(0,0,0,.6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.5; letter-spacing: -0.01em;
  min-height: 100dvh; overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
::selection { background: var(--ice); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, p { margin: 0; }

/* ---------- type ---------- */
.display {
  font-family: var(--serif); font-weight: 200; font-variation-settings: "opsz" 144;
  letter-spacing: -0.035em; line-height: 0.98;
}
.display em { font-style: italic; font-weight: 200; }
.eyebrow {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--steel); line-height: 1.3;
}
.idx { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--mist); }
.muted { color: var(--ink-2); }
.small { font-size: 13.5px; }
.balance { text-wrap: balance; }
.pretty { text-wrap: pretty; }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- shell ---------- */
#app { min-height: 100dvh; }
.page {
  max-width: 760px; margin: 0 auto;
  padding: calc(18px + var(--safe-t)) 16px calc(var(--tab-h) + 40px + var(--safe-b));
  animation: rise .6s var(--expo) both;
}
@media (min-width: 720px) { .page { padding-inline: 32px; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 18px; }
.brand { font-family: var(--mono); font-size: 12px; letter-spacing: .32em; text-transform: uppercase; color: var(--ink); }
.brand b { font-weight: 400; color: var(--mist); }
.chip {
  display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--card);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2);
  white-space: nowrap;
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--mist); flex: none; }
.dot.on { background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 18%, transparent); }
.dot.amber { background: var(--warn); }

.hair { height: 1px; background: var(--line); border: 0; margin: 0; }
.section { margin-top: 40px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.section-head h2 { font-family: var(--serif); font-weight: 300; font-size: 26px; letter-spacing: -0.02em; font-variation-settings: "opsz" 72; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.card-pad { padding: 20px; }
@media (min-width: 720px) { .card-pad { padding: 28px; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 24px; border-radius: 999px;
  background: var(--deep); color: var(--on-deep);
  font-weight: 500; font-size: 15.5px; letter-spacing: -0.005em;
  transition: transform .4s var(--expo), background .3s, opacity .3s;
  user-select: none; text-decoration: none;
}
.btn:hover { background: var(--deep-2); }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .32; pointer-events: none; }
.btn.block { width: 100%; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--frost); }
.btn.ghost:hover { background: var(--card); }
.btn.ok { background: var(--ok); color: #fff; }
.btn.bad { background: var(--bad); color: #fff; }
.btn .arr { font-family: var(--mono); font-size: 14px; transition: transform .4s var(--expo); }
.btn:hover .arr { transform: translateX(3px); }
.link { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); border-bottom: 1px solid var(--frost); padding-bottom: 2px; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); flex: none; }
.icon-btn svg { width: 18px; height: 18px; }

/* ---------- bottom nav ---------- */
.tabs {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(12px + var(--safe-b)); z-index: 40;
  display: flex; gap: 2px; padding: 5px; border-radius: 999px;
  background: color-mix(in srgb, var(--card) 78%, transparent);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.tabs a {
  display: flex; align-items: center; gap: 7px; height: 44px; padding: 0 15px; border-radius: 999px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--steel); text-decoration: none; transition: background .3s, color .3s;
}
.tabs a svg { width: 17px; height: 17px; }
.tabs a.on { background: var(--deep); color: var(--on-deep); }
.tabs a .lbl { display: none; }
.tabs a.on .lbl { display: inline; }
@media (min-width: 560px) { .tabs a .lbl { display: inline; } }
.tabs .badge { min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--bad); color: #fff; font-size: 9.5px; letter-spacing: 0; display: grid; place-items: center; }

/* ---------- home ---------- */
.hero { padding: 26px 0 8px; }
.hero h1 { font-size: clamp(46px, 13vw, 92px); }
.hero .lede { margin-top: 18px; max-width: 34ch; color: var(--ink-2); font-size: 16.5px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 28px; }
.stat { padding: 16px 0 14px; }
.stat + .stat { border-left: 1px solid var(--line); padding-left: 14px; }
.stat .v { font-family: var(--serif); font-weight: 200; font-size: 40px; line-height: 1; letter-spacing: -0.03em; font-variation-settings: "opsz" 144; }
.stat .v small { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--steel); margin-left: 3px; }
.stat .eyebrow { margin-top: 8px; }

.next-card { margin-top: 26px; overflow: hidden; }
.next-card .top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.next-card h3 { font-family: var(--serif); font-weight: 300; font-size: 34px; letter-spacing: -0.025em; line-height: 1.05; margin-top: 10px; font-variation-settings: "opsz" 96; }
.next-card .meta { margin-top: 10px; color: var(--ink-2); font-size: 14.5px; }
.next-card .actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.next-card .actions .btn { flex: 1 1 200px; }

.ring { width: 64px; height: 64px; flex: none; }
.ring circle { fill: none; stroke-width: 2; }
.ring .track { stroke: var(--line); }
.ring .val { stroke: var(--ink); stroke-linecap: round; transition: stroke-dashoffset 1s var(--expo); }
.ring text { font-family: var(--mono); font-size: 10px; fill: var(--ink); letter-spacing: .04em; }

.flight {
  margin-top: 14px; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center;
  padding: 16px 18px; border-radius: 16px; background: var(--deep); color: var(--on-deep);
}
.flight .eyebrow { color: color-mix(in srgb, var(--on-deep) 62%, transparent); }
.flight p { font-size: 14px; line-height: 1.4; margin-top: 3px; color: color-mix(in srgb, var(--on-deep) 88%, transparent); }
.flight svg { width: 26px; height: 26px; opacity: .9; }
.flight .go { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; border: 1px solid color-mix(in srgb, var(--on-deep) 30%, transparent); padding: 8px 12px; border-radius: 999px; white-space: nowrap; }

/* course index */
.unit { padding: 22px 0 6px; border-bottom: 1px solid var(--line); }
.unit-head { display: grid; grid-template-columns: 44px 1fr auto; gap: 8px; align-items: baseline; }
.unit-head h3 { font-family: var(--serif); font-weight: 300; font-size: 23px; letter-spacing: -0.02em; line-height: 1.15; font-variation-settings: "opsz" 72; }
.unit-head .sub { color: var(--ink-2); font-size: 14px; margin-top: 2px; }
.unit-bar { grid-column: 2 / -1; height: 2px; background: var(--line); margin-top: 12px; position: relative; overflow: hidden; border-radius: 2px; }
.unit-bar i { position: absolute; inset: 0 auto 0 0; background: var(--ink); border-radius: 2px; }
.lessons { margin: 12px 0 12px 44px; }
.lesson {
  width: 100%; display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; text-align: left;
  padding: 12px 0; border-top: 1px solid var(--line-2);
}
.lesson:first-child { border-top: 0; }
.lesson .t { font-size: 15.5px; }
.lesson .s { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--steel); }
.lesson .mark { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--frost); display: grid; place-items: center; }
.lesson.done .mark { background: var(--ink); border-color: var(--ink); color: var(--on-deep); }
.lesson.done .mark svg { width: 10px; height: 10px; }
.lesson.cur .mark { border: 1.5px solid var(--ink); box-shadow: 0 0 0 4px var(--ice); }
.lesson.cur .t { font-weight: 500; }
.lesson.lock { opacity: .42; }
.lesson:not(.lock):hover .t { text-decoration: underline; text-decoration-color: var(--frost); text-underline-offset: 4px; }
.unit-links { margin: 0 0 14px 44px; display: flex; gap: 16px; }

/* ---------- lesson runner ---------- */
.run { max-width: 640px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column; padding: calc(12px + var(--safe-t)) 16px 0; }
.run-top { display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: center; }
.progress { height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--ink); border-radius: 3px; transition: width .7s var(--expo); }
.run-count { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--steel); min-width: 44px; text-align: right; }
.run-body { flex: 1; display: flex; flex-direction: column; padding: 26px 0 16px; animation: rise .5s var(--expo) both; }
.prompt-eyebrow { display: flex; gap: 10px; align-items: center; }
.prompt-eyebrow .ln { flex: 1; height: 1px; background: var(--line); }
.prompt { font-family: var(--serif); font-weight: 300; font-size: clamp(26px, 6.8vw, 36px); letter-spacing: -0.022em; line-height: 1.14; margin-top: 16px; font-variation-settings: "opsz" 96; text-wrap: balance; }
.prompt.target { font-weight: 300; }
.say { display: inline-flex; vertical-align: middle; margin-right: 10px; }
.sub-prompt { margin-top: 8px; color: var(--ink-2); font-size: 15px; }

.specimen { margin-top: 18px; position: relative; padding: 34px 20px 26px; text-align: center; }
.specimen .word { font-family: var(--serif); font-weight: 200; font-size: clamp(48px, 14vw, 78px); letter-spacing: -0.035em; line-height: 1; font-variation-settings: "opsz" 144; }
.specimen .gloss { margin-top: 16px; font-size: 18px; color: var(--ink-2); }
.specimen .anno { position: absolute; font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--mist); }
.specimen .anno.tl { top: 14px; left: 16px; } .specimen .anno.tr { top: 14px; right: 16px; }
.specimen .anno.bl { bottom: 12px; left: 16px; } .specimen .anno.br { bottom: 12px; right: 16px; }
.specimen .cross { position: absolute; width: 9px; height: 9px; }
.specimen .cross::before, .specimen .cross::after { content: ""; position: absolute; background: var(--frost); }
.specimen .cross::before { left: 4px; top: 0; width: 1px; height: 9px; }
.specimen .cross::after { top: 4px; left: 0; height: 1px; width: 9px; }
.specimen .measure { margin: 18px auto 0; width: min(280px, 80%); height: 9px; position: relative; border-left: 1px solid var(--frost); border-right: 1px solid var(--frost); }
.specimen .measure::after { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 1px; background: var(--frost); }

.options { display: grid; gap: 10px; margin-top: 22px; }
.opt {
  display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: center; text-align: left;
  min-height: 56px; padding: 12px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line);
  font-size: 17px; transition: border-color .2s, background .2s, transform .3s var(--expo);
}
.opt .k { font-family: var(--mono); font-size: 10.5px; color: var(--mist); }
.opt:hover { border-color: var(--frost); }
.opt:active { transform: scale(.99); }
.opt.sel { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.opt.right { border-color: var(--ok); background: var(--ok-bg); box-shadow: inset 0 0 0 1px var(--ok); }
.opt.wrong { border-color: var(--bad); background: var(--bad-bg); }

.answer-zone { min-height: 112px; margin-top: 22px; padding: 10px 0; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 8px;
  background-image: repeating-linear-gradient(to bottom, transparent 0 51px, var(--line) 51px 52px); }
.bank { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 20px; }
.tile {
  height: 44px; padding: 0 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line);
  box-shadow: 0 2px 0 var(--line); font-size: 16.5px; transition: transform .25s var(--expo), opacity .2s;
}
.tile:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--line); }
.tile.used { opacity: 0; pointer-events: none; }
.tile.ghosted { background: var(--line-2); box-shadow: none; color: transparent; pointer-events: none; }

.match { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.match .col { display: grid; gap: 10px; align-content: start; }
.match .tile { width: 100%; height: auto; min-height: 52px; padding: 10px 12px; text-align: center; line-height: 1.25; }
.match .tile.sel { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.match .tile.done { opacity: .28; pointer-events: none; box-shadow: none; }
.match .tile.miss { border-color: var(--bad); background: var(--bad-bg); animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-4px) } 75% { transform: translateX(4px) } }

.field { margin-top: 22px; }
.field textarea {
  width: 100%; min-height: 128px; resize: none; padding: 16px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-size: 18px; line-height: 1.4;
}
.field textarea:focus { outline: none; border-color: var(--ink); }
.accents { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.accents button { min-width: 38px; height: 36px; border-radius: 9px; border: 1px solid var(--line); background: var(--card); font-size: 16px; }

.cloze-line { font-family: var(--serif); font-weight: 300; font-size: clamp(25px, 6.4vw, 34px); line-height: 1.3; margin-top: 18px; letter-spacing: -0.02em; font-variation-settings: "opsz" 96; }
.blank { display: inline-block; min-width: 3.2em; border-bottom: 1.5px solid var(--ink); text-align: center; color: var(--ink); }
.blank.empty { color: transparent; }

.listen-pad { display: flex; gap: 14px; align-items: center; margin-top: 18px; }
.big-play { width: 88px; height: 88px; border-radius: 50%; background: var(--deep); color: var(--on-deep); display: grid; place-items: center; transition: transform .4s var(--expo); }
.big-play:active { transform: scale(.95); }
.big-play svg { width: 30px; height: 30px; }
.slow-play { width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--frost); display: grid; place-items: center; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; }

.mic { width: 108px; height: 108px; border-radius: 50%; margin: 34px auto 0; display: grid; place-items: center; background: var(--deep); color: var(--on-deep); position: relative; }
.mic svg { width: 34px; height: 34px; }
.mic.live::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1px solid var(--ink); animation: pulse 1.4s infinite var(--quart); }
@keyframes pulse { from { transform: scale(.9); opacity: 1 } to { transform: scale(1.25); opacity: 0 } }
.heard { text-align: center; margin-top: 18px; min-height: 26px; color: var(--ink-2); font-size: 16px; }

.run-foot { position: sticky; bottom: 0; margin: 0 -16px; padding: 14px 16px calc(16px + var(--safe-b)); background: linear-gradient(to top, var(--paper) 70%, transparent); }
.run-foot .row { display: flex; gap: 10px; }
.run-foot .row .btn { flex: 1; }

.verdict { margin: 0 -16px; padding: 18px 16px calc(16px + var(--safe-b)); border-top: 1px solid var(--line); animation: up .45s var(--expo) both; }
@keyframes up { from { transform: translateY(24px); opacity: 0 } to { transform: none; opacity: 1 } }
.verdict.good { background: var(--ok-bg); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.verdict.miss { background: var(--bad-bg); border-color: color-mix(in srgb, var(--bad) 30%, transparent); }
.verdict h4 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 24px; letter-spacing: -0.02em; }
.verdict.good h4 { color: var(--ok); } .verdict.miss h4 { color: var(--bad); }
.verdict .ref { margin-top: 6px; font-size: 16px; }
.verdict .note { margin-top: 6px; font-size: 14px; color: var(--ink-2); }
.verdict .btn { margin-top: 14px; }
.diff-miss { text-decoration: underline wavy var(--bad); text-underline-offset: 4px; }

/* ---------- report ---------- */
.report-hero { padding: 26px 0 0; }
.report-hero h1 { font-size: clamp(42px, 11vw, 76px); }
.kv { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); margin-top: 26px; }
.kv > div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.kv > div:nth-child(odd) { padding-right: 14px; }
.kv > div:nth-child(even) { border-left: 1px solid var(--line); padding-left: 14px; }
.kv .v { font-family: var(--serif); font-weight: 200; font-size: 44px; line-height: 1; letter-spacing: -0.03em; font-variation-settings: "opsz" 144; }
.kv .v small { font-family: var(--mono); font-size: 12px; color: var(--steel); }
.kv .eyebrow { margin-top: 8px; }
.fig { margin: 18px 0 0; }
.fig svg { width: 100%; height: auto; display: block; overflow: visible; }
.fig figcaption { margin-top: 10px; display: flex; gap: 10px; font-size: 13.5px; color: var(--ink-2); }
.fig figcaption .idx { flex: none; padding-top: 2px; }
.axis { font-family: var(--mono); font-size: 9px; fill: var(--steel); letter-spacing: .06em; }
.err-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.err-row .t { font-size: 16px; } .err-row .e { color: var(--ink-2); font-size: 14px; }
.strength { width: 64px; height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; }
.strength i { display: block; height: 100%; background: var(--ink); }
.strength.low i { background: var(--bad); }

/* ---------- notes ---------- */
.note-block { padding: 22px 0; border-bottom: 1px solid var(--line); }
.note-block h3 { font-family: var(--serif); font-weight: 300; font-size: 24px; letter-spacing: -0.02em; line-height: 1.15; margin-top: 8px; }
.note-block p { margin-top: 10px; color: var(--ink-2); max-width: 60ch; }
.ex { margin-top: 14px; display: grid; gap: 8px; }
.ex div { display: grid; grid-template-columns: 1fr; padding-left: 14px; border-left: 1px solid var(--frost); }
.ex .tl { font-family: var(--serif); font-size: 19px; font-weight: 300; }
.ex .en { font-size: 14px; color: var(--steel); }

/* ---------- onboarding / pickers ---------- */
.onb { max-width: 760px; margin: 0 auto; padding: calc(24px + var(--safe-t)) 16px 40px; animation: rise .7s var(--expo) both; }
.onb h1 { font-size: clamp(52px, 15vw, 112px); margin-top: 48px; }
.onb .lede { margin-top: 22px; font-size: 18px; max-width: 36ch; color: var(--ink-2); }
.pick { margin-top: 36px; border-top: 1px solid var(--line); }
.pick button {
  width: 100%; display: grid; grid-template-columns: 44px 1fr auto; gap: 8px; align-items: baseline; text-align: left;
  padding: 20px 0; border-bottom: 1px solid var(--line); transition: padding .5s var(--expo);
}
.pick button:hover { padding-left: 8px; }
.pick .nm { font-family: var(--serif); font-weight: 300; font-size: 32px; letter-spacing: -0.025em; line-height: 1; font-variation-settings: "opsz" 96; }
.pick .en { font-family: var(--serif); font-style: italic; font-weight: 200; color: var(--steel); font-size: 20px; margin-left: 10px; }
.pick .sel-on { background: var(--card); }
.pick .meta { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--steel); }
.claims { display: grid; grid-template-columns: 1fr; gap: 0; margin-top: 44px; border-top: 1px solid var(--line); }
@media (min-width: 640px) { .claims { grid-template-columns: repeat(3, 1fr); } .claims > div + div { border-left: 1px solid var(--line); padding-left: 16px; } }
.claims > div { padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line); }
.claims p { margin-top: 8px; font-size: 14.5px; color: var(--ink-2); }

.seg { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.seg button { height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 14.5px; }
.seg button.on { background: var(--deep); color: var(--on-deep); border-color: var(--deep); }
.set-row { padding: 20px 0; border-bottom: 1px solid var(--line); }
.set-row .h { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.set-row .h strong { font-weight: 500; }
.set-row p { color: var(--ink-2); font-size: 14px; margin-top: 4px; }
select { font: inherit; font-size: 15px; height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); margin-top: 12px; width: 100%; }

/* complete screen */
.done-hero { padding-top: 40px; }
.done-hero h1 { font-size: clamp(50px, 14vw, 96px); }

.toast { position: fixed; left: 50%; bottom: calc(92px + var(--safe-b)); transform: translateX(-50%); z-index: 60;
  background: var(--deep); color: var(--on-deep); padding: 11px 18px; border-radius: 999px; font-size: 14px; box-shadow: var(--shadow);
  animation: up .4s var(--expo) both; max-width: calc(100vw - 32px); text-align: center; }

.empty { padding: 40px 0; color: var(--ink-2); }
.hidden { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.context { margin-top: 22px; padding: 16px 0 0; border-top: 1px solid var(--line); }
.context .ctx-t { margin-top: 10px; font-family: var(--serif); font-weight: 300; font-size: 22px; letter-spacing: -0.015em; line-height: 1.25; display: flex; align-items: center; }
.context .ctx-t .say { margin-right: 12px; }
.context .ctx-e { margin-top: 6px; color: var(--steel); font-size: 14.5px; padding-left: 52px; }
