/* BandCraft - one premium light "examiner diagnostic report" theme shared by every page.
   Warm cream page, white cards, deep navy chrome, a gold accent and four criterion colours.
   Every colour is a token in :root; nothing else in this file declares a raw colour. */
:root {
  color-scheme: light;

  /* surfaces */
  --bg: #F5F0E6;              /* warm cream page */
  --card: #FFFFFF;
  --card-border: #ECE6D8;
  --well: #FBF8F1;            /* input wells and nested panels */
  --line: #E6DFCF;
  --line-strong: #CFC6B0;

  /* brand dark */
  --navy: #16233E;
  --navy-soft: #22345A;
  --cream-ink: #F3ECDD;       /* text on navy */
  --cream-muted: #C9C7C2;     /* secondary text on navy (AA on --navy) */

  /* text (AA on cream and white) */
  --text: #22272F;
  --muted: #5A6372;

  /* premium accent */
  --gold: #C2A24C;
  --gold-hover: #D1B466;
  --gold-tint: #F6EDCF;
  --gold-ink: #6B5410;        /* gold-family text on light surfaces */

  /* criterion colours: icon tile and score bar */
  --c-tr: #6D5AE6;
  --c-cc: #138A7E;
  --c-lr: #E07B39;
  --c-gra: #DB5461;
  --c-other: #667085;
  --teal-ink: #0E6F65;        /* teal as readable text */

  /* functional notices */
  --warn: #B45309;
  --warn-tint: #FDF1E1;
  --danger: #B42318;
  --danger-tint: #FDEBEA;
  --info-tint: #EEF3FB;

  /* Latin faces first; Hangul and Devanagari fall through to Noto, so mixed text always renders. */
  --font-display: "Source Serif 4", "Noto Sans KR", "Noto Sans Devanagari", Georgia, "Times New Roman", serif;
  --font-ui: "Hanken Grotesk", "Noto Sans KR", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Consolas, "Courier New", monospace;

  --radius: 14px;
  --radius-sm: 8px;
  --measure: 70ch;
  --shadow-rest: 0 1px 2px rgba(22, 35, 62, .05), 0 10px 28px -16px rgba(22, 35, 62, .22);
  --shadow-lift: 0 2px 4px rgba(22, 35, 62, .06), 0 18px 36px -16px rgba(22, 35, 62, .3);
  --focus: 0 0 0 3px rgba(109, 90, 230, .35);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1rem/1.65 var(--font-ui); overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
.page { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .page { padding: 0 16px; } }

a { color: var(--navy); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
::selection { background: var(--gold-tint); color: var(--navy); }
:focus-visible { outline: 3px solid var(--c-tr); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

/* ---------- header ---------- */
/* The bar lives in its own full-width strip so it can stay at the top while the page scrolls
   (web/topbar.js adds .is-scrolled for the hairline, and .is-hidden on phones while scrolling down). */
.topbar-wrap {
  position: sticky; top: 0; z-index: 40; background: var(--bg);
  transition: transform .25s ease, box-shadow .2s ease;
}
.topbar-wrap.is-scrolled { box-shadow: 0 1px 0 var(--line-strong); }
html { scroll-padding-top: 88px; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 16px 0 14px; gap: 16px; }
@media (max-width: 640px) {
  .topbar-wrap.is-hidden { transform: translateY(-100%); box-shadow: none; }
  html { scroll-padding-top: 16px; }
}
@media (prefers-reduced-motion: reduce) { .topbar-wrap { transition: none; } }
.wordmark { font: 700 1.4rem var(--font-display); letter-spacing: -.01em; color: var(--navy); text-decoration: none; }
/* Route C wordmark carries a bronze full stop (.wm-dot); no leading bullet. */
.topbar-right { display: flex; align-items: center; gap: 22px; }
.topbar nav a { margin-left: 22px; font: 500 .92rem var(--font-ui); color: var(--navy); text-decoration: none; }
.topbar nav a:first-child { margin-left: 0; }
/* Phone: wordmark and links share the first row; the language switch gets its own row, first
   thing on the page, so a non-English speaker never has to hunt for it. */
@media (max-width: 640px) {
  .topbar { flex-wrap: wrap; row-gap: 14px; }
  .topbar-right { display: contents; }
  .topbar-lang { order: 3; flex: 1 1 100%; }
}
.topbar nav a:hover { text-decoration: underline; }

/* ---------- shared surfaces ---------- */
.card-surface, .pack, .crit, .gauge, .essay-card {
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius);
  box-shadow: var(--shadow-rest);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card-surface:hover, .pack:hover, .crit:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.workspace:hover, .compare-wrap-card:hover { transform: none; }

.eyebrow { margin: 0 0 12px; font: 600 .76rem/1.2 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }

/* ---------- hero ---------- */
.hero-band { background: var(--bg); color: var(--text); padding-bottom: 56px; }
.hero { padding: 56px 0 0; }
.hero-copy { min-width: 0; }
.hero-eyebrow { margin: 0 0 16px; font: 600 .78rem var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
.hero-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.1rem, 5.2vw, 3.5rem); line-height: 1.1; letter-spacing: -.015em; margin: 0; max-width: 18ch; text-wrap: balance; }
.hero-sub { margin: 22px 0 0; max-width: 48ch; font-size: 1.12rem; line-height: 1.6; color: var(--muted); }
.hero-reassure { margin: 14px 2px 0; font-size: .9rem; color: var(--muted); }
@media (max-width: 640px) { .hero { padding: 32px 0 0; } .hero-band { padding-bottom: 40px; } .hero-sub { font-size: 1.04rem; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 30px; border: 1px solid var(--navy); border-radius: 999px;
  background: var(--navy); color: var(--cream-ink); text-decoration: none;
  font: 600 1rem var(--font-ui); cursor: pointer;
  box-shadow: 0 10px 22px -12px rgba(22, 35, 62, .6);
  transition: background .15s ease, transform .15s ease;
}
a.btn:hover { text-decoration: none; }
.btn:hover:not(:disabled) { background: var(--navy-soft); }
.btn:disabled { opacity: .7; cursor: progress; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--navy); box-shadow: none; }
.btn-gold:hover:not(:disabled) { background: var(--gold-hover); }
.hero-band :focus-visible, .sitefoot :focus-visible { outline-color: var(--gold); }
.spinner { width: 15px; height: 15px; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-quiet {
  margin-top: 10px; border: 1px solid var(--line-strong); background: var(--card); color: var(--navy);
  font: 600 .88rem var(--font-ui); padding: 9px 16px; min-height: 42px; border-radius: 999px; cursor: pointer;
}
.btn-quiet:hover { background: var(--gold-tint); border-color: var(--gold); }
.btn-quiet:disabled { opacity: .6; cursor: wait; }

/* ---------- the writing tool ---------- */
.workspace { margin-top: -36px; padding: 32px; position: relative; }
.ws-title { margin: 0 0 22px; font: 600 1.7rem/1.2 var(--font-display); color: var(--navy); }
.ws-controls { display: flex; flex-wrap: wrap; gap: 20px 40px; padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.ws-manuscript { min-width: 0; display: flex; flex-direction: column; align-items: stretch; }
.ws-manuscript .btn-quiet { align-self: flex-start; }
.ws-manuscript .btn { align-self: flex-start; }
.ws-foot { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
@media (max-width: 640px) { .workspace { padding: 20px 16px; margin-top: -24px; } .ws-manuscript .btn { align-self: stretch; } }
.control { display: flex; flex-direction: column; gap: 8px; }
.control-label, .field { font: 600 .84rem var(--font-ui); letter-spacing: .02em; color: var(--navy); }
.field { display: block; margin-bottom: 8px; }
.field-essay { margin-top: 24px; }
.seg { display: inline-flex; align-self: flex-start; gap: 2px; border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px; background: var(--well); }
.seg button { border: 0; background: transparent; color: var(--muted); font: 600 .9rem var(--font-ui); padding: 9px 18px; min-height: 40px; border-radius: 999px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--navy); color: var(--cream-ink); }
.seg button:not([aria-pressed="true"]):hover { color: var(--navy); background: var(--gold-tint); }
.hint { margin: 2px 0 0; font-size: .84rem; color: var(--muted); line-height: 1.5; }
.balance { margin: 0 0 14px; font: 600 .92rem/1.5 var(--font-ui); color: var(--teal-ink); }
.topic-err { margin: 8px 0 0; font-size: .88rem; color: var(--warn); }
textarea#question, textarea#essay {
  width: 100%; display: block; resize: vertical; color: var(--text);
  font: 400 1rem/1.7 var(--font-ui); background: var(--well);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
}
textarea#question { padding: 12px 14px; }
textarea#essay { min-height: 340px; padding: 18px; font-family: var(--font-display); font-size: 1.05rem; }
textarea::placeholder { color: var(--muted); opacity: 1; }
textarea#question:focus-visible, textarea#essay:focus-visible { outline: none; border-color: var(--c-tr); box-shadow: var(--focus); background: var(--card); }
.meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin: 12px 2px 18px; font-size: .86rem; color: var(--muted); }
.kbd-hint { display: inline-flex; align-items: center; gap: 5px; }
kbd { font: inherit; font-size: .76rem; color: var(--text); border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; background: var(--well); }

/* ---------- notices ---------- */
.notice { margin-top: 16px; padding: 13px 16px; border-radius: var(--radius-sm); font-size: .94rem; border: 1px solid var(--line); border-left: 4px solid var(--line-strong); background: var(--well); color: var(--text); }
.notice.err { border-left-color: var(--danger); background: var(--danger-tint); }
.notice.warn { border-left-color: var(--warn); background: var(--warn-tint); }
.notice.info { border-left-color: var(--c-tr); background: var(--info-tint); }

/* ---------- example + result: the diagnostic report ---------- */
.example { padding: 56px 0 0; }
.sample-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 0 16px; }
.sample-cap { margin: 0; font-size: .92rem; line-height: 1.5; color: var(--muted); }
.sample-note { margin: 0 0 10px; }
.sample-toggle { flex: none; border: 0; background: transparent; padding: 4px 0; cursor: pointer; font: 600 .9rem var(--font-ui); color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.sample-toggle:hover { text-decoration-thickness: 2px; }
.sample-body { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .35s ease, opacity .25s ease; }
.sample-clip { min-height: 0; overflow: hidden; padding: 6px; margin: -6px; }
.sample-body.is-collapsed { grid-template-rows: 0fr; opacity: 0; visibility: hidden; transition: grid-template-rows .35s ease, opacity .25s ease, visibility 0s .35s; }
.result { margin-top: 56px; scroll-margin-top: 16px; }
.result-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 22px; }
.result-head h2 { font: 600 clamp(1.6rem, 3.4vw, 2.1rem)/1.2 var(--font-display); color: var(--navy); margin: 0; }
/* Language switch: one control, shown in the top bar and inside the tool, always in sync.
   Each option is written in its own script so speakers find their language at a glance. */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px 3px 3px 10px; background: var(--card); }
.lang-globe { width: 16px; height: 16px; margin-right: 4px; flex: none; fill: none; stroke: var(--gold-ink); stroke-width: 1.6; }
.lang-opt { border: 0; background: transparent; color: var(--muted); font: 600 .86rem var(--font-ui); padding: 7px 13px; min-height: 36px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.lang-opt[aria-pressed="true"] { background: var(--navy); color: var(--cream-ink); }
.lang-opt:not([aria-pressed="true"]):hover { color: var(--navy); background: var(--gold-tint); }
.lang-opt:focus-visible { outline: none; box-shadow: var(--focus); }

.report { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

@keyframes reveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.report.reveal-seq { animation: reveal .5s ease both; }
.report.reveal-seq .crit { animation: reveal .5s ease both; }
.report.reveal-seq .crit:nth-child(1) { animation-delay: .1s; }
.report.reveal-seq .crit:nth-child(2) { animation-delay: .18s; }
.report.reveal-seq .crit:nth-child(3) { animation-delay: .26s; }
.report.reveal-seq .crit:nth-child(n+4) { animation-delay: .34s; }

/* band gauge */
.gauge { padding: 22px 24px; }
.gauge-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.gauge-label { font: 600 .78rem var(--font-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.gauge-range { font: 600 2.2rem/1 var(--font-display); letter-spacing: -.01em; color: var(--navy); }
.gauge-track {
  position: relative; height: 12px; margin: 18px 0 8px; border-radius: 999px; background: var(--line);
  background-image: repeating-linear-gradient(90deg, transparent 0, transparent calc(11.111% - 1px), var(--line-strong) calc(11.111% - 1px), var(--line-strong) 11.111%);
}
.gauge-fill { position: absolute; top: -2px; bottom: -2px; border-radius: 999px; background: var(--gold); box-shadow: 0 0 0 3px var(--gold-tint); }
.gauge-scale { display: flex; justify-content: space-between; font-size: .78rem; font-weight: 600; color: var(--muted); }
.gauge-cefr { margin: 12px 0 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .86rem; color: var(--muted); }
.cefr-chip { padding: 2px 11px; border-radius: 999px; background: var(--gold-tint); border: 1px solid var(--gold); color: var(--gold-ink); font: 700 .82rem/1.6 var(--font-ui); letter-spacing: .04em; }
.gauge-note { margin: 14px 0 0; font-size: .86rem; line-height: 1.55; color: var(--muted); }

/* criterion cards */
.crit-grid { display: grid; gap: 20px; }
@media (min-width: 760px) { .crit-grid { grid-template-columns: 1fr 1fr; } }
.crit { --c: var(--c-other); padding: 22px 24px 24px; min-width: 0; }
.crit-tr { --c: var(--c-tr); }
.crit-cc { --c: var(--c-cc); }
.crit-lr { --c: var(--c-lr); }
.crit-gra { --c: var(--c-gra); }
.crit-tc, .crit-op { --c: var(--c-tr); }
.crit-org { --c: var(--c-cc); }
.crit-gr { --c: var(--c-gra); }
.crit-vt, .crit-vo { --c: var(--c-lr); }
.crit-fc { --c: var(--c-cc); }
.crit-top { display: flex; align-items: center; gap: 14px; }
.crit-icon { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--c); display: inline-flex; align-items: center; justify-content: center; }
.crit-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--card); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.crit-name { margin: 0; flex: 1; min-width: 0; font: 600 1.05rem/1.3 var(--font-ui); color: var(--navy); }
.crit-score { flex: none; font: 600 2rem/1 var(--font-display); color: var(--navy); }
.crit-of { font: 500 .85rem var(--font-ui); color: var(--muted); }
.crit-bar { height: 8px; margin: 16px 0 4px; border-radius: 999px; background: var(--line); overflow: hidden; }
.crit-bar-fill { display: block; height: 100%; border-radius: 999px; background: var(--c); }
.crit-items { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.crit-items li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; line-height: 1.6; color: var(--text); }
.crit-text { min-width: 0; overflow-wrap: anywhere; }

/* the essay that was read */
.essay-card { padding: 24px 28px; }
.essay-card-h { margin: 0 0 14px; font: 600 .78rem var(--font-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.essay-page { font: 400 1rem/1.8 var(--font-display); color: var(--text); overflow-wrap: anywhere; max-width: var(--measure); }
.essay-page p { margin: 0 0 1.1em; }
.essay-page p:last-child { margin-bottom: 0; }
.rewrite-toggle { margin: 0 0 16px; font: 600 .9rem var(--font-ui); color: var(--text); background: var(--well); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 8px 14px; cursor: pointer; }
.rewrite-toggle:hover:not(:disabled) { border-color: var(--gold); background: var(--gold-tint); }
.rewrite-toggle:disabled { opacity: .7; cursor: progress; }
.essay-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.essay-split .rewrite-panel[hidden] { display: none; }
.rewrite-panel { border-top: 1px solid var(--line); padding-top: 16px; }
.rewrite-label, .rewrite-empty { margin: 0 0 12px; font-size: .92rem; color: var(--muted); }
.rewrite-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
@media (min-width: 760px) { .essay-split.has-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .essay-split.has-panel .rewrite-panel { border-top: 0; padding-top: 0; border-left: 1px solid var(--line); padding-left: 20px; } }
/* inline highlights: the exact phrases the feedback quotes */
.hl { --h: var(--c-other); --h-fill: rgba(102, 112, 133, .14); color: var(--text); border-radius: 2px; padding: 0 1px; }
.hl-tr { --h: var(--c-tr); --h-fill: rgba(109, 90, 230, .13); }
.hl-cc { --h: var(--c-cc); --h-fill: rgba(19, 138, 126, .14); }
.hl-lr { --h: var(--c-lr); --h-fill: rgba(224, 123, 57, .17); }
.hl-gra { --h: var(--c-gra); --h-fill: rgba(219, 84, 97, .14); }
.hl-observed { background: transparent; box-shadow: inset 0 -2px 0 var(--h); }
.hl-fix { background: var(--h-fill); text-decoration: underline wavy var(--h) 1px; text-underline-offset: 3px; }
.result-note { margin: 28px 0 0; font-size: .92rem; line-height: 1.55; color: var(--muted); max-width: var(--measure); }
.charged { margin: 16px 0 0; font-size: .86rem; color: var(--muted); }

/* ---------- lower sections ---------- */
.dband { margin-top: 80px; padding-bottom: 8px; }
.dband .page > section + section { margin-top: 80px; }
.sec-h { font: 600 clamp(1.6rem, 3.6vw, 2.2rem)/1.2 var(--font-display); letter-spacing: -.01em; color: var(--navy); margin: 0 0 22px; }
.sec-lead { margin: 0 0 28px; max-width: 64ch; font-size: 1.05rem; line-height: 1.65; color: var(--muted); }
.win-body { padding: 36px 40px 40px; }
@media (max-width: 640px) { .win-body { padding: 24px 18px 28px; } }
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.how-step { display: flex; flex-direction: column; }
.how-step-body { display: flex; flex-direction: column; gap: 18px; padding: 24px; flex: 1; }
.how-step-head { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.how-copy { margin: 0; font-size: 1.02rem; line-height: 1.55; color: var(--text); }
.note-num { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: var(--cream-ink); font: 600 1.05rem var(--font-display); display: inline-flex; align-items: center; justify-content: center; }
.frame { flex: 1; padding: 14px; border-radius: var(--radius-sm); background: var(--well); border: 1px solid var(--line); }
.frame .essay-page { font-size: .88rem; line-height: 1.65; color: var(--muted); }
.frame .crit { padding: 14px; box-shadow: none; }
.frame .crit:hover { transform: none; box-shadow: none; }
.frame .crit-icon { width: 34px; height: 34px; border-radius: 10px; }
.frame .crit-icon svg { width: 18px; height: 18px; }
.frame .crit-items li { font-size: .88rem; }
.frame .gauge { padding: 14px 16px; box-shadow: none; }
.frame .gauge:hover { transform: none; }
.frame .gauge-range { font-size: 1.5rem; }
@media (min-width: 760px) { .how-steps { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }

.compare-wrap { overflow-x: auto; padding: 10px 24px 16px; }
.compare-table { width: 100%; min-width: 560px; border-collapse: collapse; table-layout: fixed; }
.compare-table td, .compare-table th { padding: 15px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); font-weight: 400; }
.compare-table tbody tr:last-child td, .compare-table tbody tr:last-child th { border-bottom: 0; }
.compare-table thead th { font: 700 .78rem var(--font-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line-strong); }
.compare-table .ct-corner { width: 31%; border-bottom: 1px solid var(--line-strong); }
.compare-table tbody th { font-weight: 600; color: var(--navy); }
.compare-table td { font-size: .94rem; color: var(--muted); }
.compare-table .ct-own { background: var(--gold-tint); color: var(--text); font-weight: 500; }
.compare-table thead .ct-own { color: var(--navy); border-top: 3px solid var(--gold); }
.yes { color: var(--teal-ink); font-weight: 700; }
.yes::before { content: ""; display: inline-block; width: 9px; height: 5px; margin-right: 8px; border-left: 2px solid var(--c-cc); border-bottom: 2px solid var(--c-cc); transform: rotate(-45deg) translateY(-2px); }
@media (max-width: 560px) {
  .compare-wrap { padding: 4px 8px 8px; }
  .compare-table td, .compare-table th { padding: 10px 6px; }
  .compare-table td, .compare-table tbody th { font-size: .82rem; }
}

.privacy { margin: 0; display: grid; gap: 20px; }
.privacy-row { display: block; padding: 22px 22px 24px; }
.privacy-row dt { margin: 0 0 8px; font: 600 1.15rem/1.3 var(--font-display); color: var(--navy); }
.privacy-row dd { margin: 0; font-size: .95rem; line-height: 1.6; color: var(--muted); }
.privacy-row dd + dd { margin-top: 10px; }
@media (min-width: 640px) { .privacy { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .privacy { grid-template-columns: repeat(4, 1fr); } }

.packs { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.pack { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 52px 26px 26px; }
.pack.is-featured { border: 2px solid var(--gold); }
.pack-tag { position: absolute; top: 18px; left: 26px; padding: 2px 12px; border-radius: 999px; background: var(--gold); color: var(--navy); font: 700 .7rem/1.6 var(--font-ui); letter-spacing: .08em; text-transform: uppercase; }
.pack-amount { display: flex; align-items: baseline; gap: 2px; font-family: var(--font-display); color: var(--navy); }
.pack-num { font-weight: 600; font-size: 3.4rem; letter-spacing: -.02em; line-height: 1; }
.pack-reads { font: 600 1.05rem var(--font-ui); color: var(--navy); }
.pack-each { font-size: .88rem; color: var(--muted); margin-bottom: 14px; }
.buy { align-self: stretch; margin-top: auto; min-height: 46px; border: 1px solid var(--navy); border-radius: 999px; background: var(--card); color: var(--navy); font: 600 .94rem var(--font-ui); cursor: pointer; transition: background .15s ease, color .15s ease; }
.buy:hover { background: var(--navy); color: var(--cream-ink); }
.pack.is-featured .buy { background: var(--navy); color: var(--cream-ink); }
.pack.is-featured .buy:hover { background: var(--navy-soft); }
@media (min-width: 720px) { .packs { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }


/* ---------- footer (navy, full width) ---------- */
footer { margin-top: 96px; padding: 40px 0 56px; font-size: .88rem; color: var(--cream-muted); background: var(--navy); }
footer p { margin: 0 0 8px; max-width: 72ch; line-height: 1.6; }
footer a { color: var(--cream-ink); text-decoration-color: var(--gold); }
footer a:hover { color: var(--gold); }
.sitefoot { margin-top: 96px; }
.sitefoot .foot-biz { font-size: .8rem; line-height: 1.6; word-break: keep-all; overflow-wrap: anywhere; }

/* ---------- long-form pages (terms, privacy, accuracy) ---------- */
.prose { padding: 48px 0 0; max-width: var(--measure); }
.prose h1 { font: 600 clamp(2rem, 5vw, 2.8rem)/1.15 var(--font-display); letter-spacing: -.015em; color: var(--navy); margin: 0 0 24px; }
.prose h2 { font: 600 1.4rem/1.3 var(--font-display); color: var(--navy); margin: 44px 0 10px; padding-top: 20px; border-top: 1px solid var(--line-strong); }
.prose p, .prose ul { font-size: 1.04rem; line-height: 1.78; color: var(--text); }
.prose ul { padding-left: 1.2em; margin: 8px 0 16px; }
.prose li { margin: 0 0 6px; }
.prose li::marker { color: var(--gold); }
.prose strong { color: var(--navy); }
.prose a { color: var(--navy); }
.prose .meta-line { font-size: .88rem; color: var(--muted); margin: -8px 0 20px; }
.prose .placeholder { font-size: .92em; background: var(--gold-tint); border-bottom: 1px dashed var(--gold-ink); padding: 0 4px; color: var(--navy); }
.prose .callout { border: 1px solid var(--card-border); border-left: 4px solid var(--gold); background: var(--card); box-shadow: var(--shadow-rest); border-radius: var(--radius-sm); padding: 18px 20px; font-size: 1rem; color: var(--navy); }
.faq { margin: 16px 0 0; }
.faq dt { font: 600 1.15rem/1.4 var(--font-display); color: var(--navy); margin: 28px 0 8px; }
.faq dd { margin: 0; font-size: 1.04rem; line-height: 1.75; color: var(--text); }

/* ---------- tutor panel ---------- */
.tutor { margin-top: 28px; }
.tutor-card { padding: 28px; }
.tutor-card:hover { transform: none; box-shadow: var(--shadow-rest); }
.tutor-h { font: 600 1.4rem/1.25 var(--font-display); color: var(--navy); margin: 0 0 8px; }
.tutor-hint { margin: 0 0 16px; font-size: .92rem; color: var(--muted); }
.tutor-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tutor-chip { margin-top: 0; }
.tutor-thread { display: flex; flex-direction: column; gap: 12px; margin: 18px 0 0; }
.tutor-turn { padding: 12px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--well); max-width: var(--measure); }
.tutor-q { border-left: 4px solid var(--gold); }
.tutor-a { border-left: 4px solid var(--c-cc); background: var(--card); }
.tutor-who { margin: 0 0 4px; font: 600 .76rem/1.2 var(--font-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tutor-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; color: var(--text); }
.tutor-form { margin-top: 18px; }
.tutor-row { display: flex; gap: 10px; }
.tutor-input { flex: 1; min-width: 0; min-height: 48px; padding: 0 14px; font: 1rem var(--font-ui); color: var(--text); background: var(--well); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); }
.tutor-input:focus-visible { outline: none; border-color: var(--c-tr); box-shadow: var(--focus); background: var(--card); }
.tutor-input:disabled { opacity: .6; }
.tutor-send { min-height: 48px; padding: 0 24px; }
.tutor-left { margin: 12px 0 0; font-size: .9rem; color: var(--muted); }
@media (max-width: 640px) { .tutor-card { padding: 20px 16px; } .tutor-row { flex-direction: column; } .tutor-send { width: 100%; } }

/* ---------- practice figure (drawn outside the question box) ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.practice-task { margin: 0 0 22px; padding: 16px 20px 20px; background: var(--card); border: 1px solid var(--card-border); border-top: 3px solid var(--gold); border-radius: var(--radius); box-shadow: var(--shadow-rest); min-width: 0; }
.practice-task[hidden] { display: none; }
.pt-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin: 0 0 12px; }
.pt-label { margin: 0; font: 600 1.05rem/1.35 var(--font-display); color: var(--navy); }
.pt-text { margin: 12px 0 0; font-size: 1.02rem; line-height: 1.55; color: var(--text); white-space: pre-line; overflow-wrap: anywhere; }
textarea#question:disabled { opacity: .6; cursor: not-allowed; }
.task-figure { margin: 0; padding: 0; min-width: 0; }
.task-figure[hidden] { display: none; }
.chart { margin: 0; min-width: 0; }
.chart-title { font: 600 1.05rem/1.35 var(--font-display); color: var(--navy); text-align: center; }
.chart-unit { margin: 2px 0 12px; font-size: .84rem; color: var(--muted); text-align: center; }
.chart-art { width: 100%; max-width: 460px; margin: 0 auto; }
.chart-svg { display: block; width: 100%; height: auto; font-family: var(--font-ui); }
.chart-pies { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; }
.chart-pie { flex: 1 1 220px; max-width: 280px; min-width: 0; }
.chart-pie-title { text-align: center; font: 600 .95rem var(--font-ui); color: var(--navy); }
.chart-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin: 10px 0 0; padding: 0; list-style: none; font-size: .88rem; color: var(--text); }
.chart-legend-item { display: inline-flex; align-items: center; gap: 7px; }
.chart-swatch { width: 14px; height: 14px; border-radius: 3px; flex: none; }
.chart-swatch.is-line { height: 4px; width: 20px; border-radius: 2px; }
.chart-table-wrap { max-width: 100%; overflow-x: auto; }
.chart-table { width: 100%; border-collapse: collapse; font-size: .94rem; color: var(--text); font-variant-numeric: tabular-nums; }
.chart-table caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.chart-table th, .chart-table td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: right; }
.chart-table thead th { background: var(--well); color: var(--navy); font-weight: 600; border-bottom: 2px solid var(--line-strong); }
.chart-table tbody th { text-align: left; font-weight: 600; color: var(--navy); }
.chart-table thead th:first-child { text-align: left; }
@media (max-width: 640px) {
  .practice-task { padding: 14px 12px 16px; }
  .chart-table th, .chart-table td { padding: 8px 6px; font-size: .86rem; }
}

/* ---------- writing timer (practice guidance, never enforced; static colours, no animation) ---------- */
.timer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 18px 0 4px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--well); }
.timer-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; min-width: 0; }
.timer-label, .timer-allot { font-size: .84rem; color: var(--muted); }
.timer-clock { font: 700 1.9rem/1 var(--font-mono); color: var(--navy); font-variant-numeric: tabular-nums; }
.timer-actions { display: flex; gap: 8px; }
.timer-actions .btn-quiet { margin-top: 0; }
.timer-status { flex-basis: 100%; margin: 0; min-height: 1.2em; font-size: .88rem; color: var(--muted); }
.timer.is-warn .timer-clock, .timer.is-warn .timer-status { color: var(--warn); }
.timer.is-done { border-color: var(--warn); background: var(--warn-tint); }
.timer.is-done .timer-clock, .timer.is-done .timer-status { color: var(--danger); }

/* ---------- speaking mode ---------- */
.mode-control { margin-bottom: 22px; }
#writing-body[hidden], #speaking-body[hidden] { display: none; }
#speaking-body { display: flex; flex-direction: column; align-items: stretch; gap: 0; min-width: 0; }
#speaking-body .btn-quiet, #speaking-body > .btn { align-self: flex-start; }
.sp-question { margin: 16px 0 0; }
.sp-prompt { margin: 0; font: 600 1.2rem/1.4 var(--font-display); color: var(--navy); overflow-wrap: anywhere; }
.sp-lead { margin: 12px 0 4px; font-weight: 600; color: var(--navy); }
.sp-list { margin: 8px 0 0; padding-left: 1.3em; line-height: 1.6; color: var(--text); }
.sp-list li { margin: 0 0 6px; overflow-wrap: anywhere; }
.sp-list li::marker { color: var(--gold-ink); }
.sp-note { margin: 12px 0 0; font-size: .9rem; color: var(--muted); }
.recorder { display: flex; flex-direction: column; gap: 12px; margin: 18px 0 18px; padding: 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--well); }
.rec-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.rec-actions .btn-quiet { margin-top: 0; }
.rec-btn { min-width: 160px; }
.rec-stop { background: var(--danger); border-color: var(--danger); color: #fff; }
.rec-stop:hover:not(:disabled) { background: #8F1B12; }
.recorder.is-recording { border-color: var(--danger); background: var(--danger-tint); }
.recorder.is-recording .timer-clock { color: var(--danger); }
.rec-dot { display: none; width: 10px; height: 10px; border-radius: 50%; background: var(--danger); align-self: center; animation: rec-pulse 1.2s ease-in-out infinite; }
.recorder.is-recording .rec-dot { display: inline-block; }
@keyframes rec-pulse { 50% { opacity: .25; } }
#rec-playback { width: 100%; max-width: 420px; }
#rec-playback[hidden] { display: none; }
.heard-card { margin: 0; padding: 22px 24px; border: 1px solid var(--card-border); border-top: 3px solid var(--gold); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-rest); min-width: 0; }
.heard-h { margin: 0 0 6px; font: 600 1.15rem/1.3 var(--font-display); color: var(--navy); }
.heard-note { margin: 0 0 12px; font-size: .9rem; color: var(--muted); line-height: 1.5; }
@media (max-width: 640px) {
  #speaking-body > .btn, .rec-btn { align-self: stretch; width: 100%; }
  .rec-actions .btn-quiet { flex: 1 1 100%; }
  .heard-card { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rec-dot { animation: none; }
  .card-surface, .pack, .crit, .gauge, .buy, .btn { transition: none; }
  .card-surface:hover, .pack:hover, .crit:hover { transform: none; }
  .sample-body, .sample-body.is-collapsed { transition: none; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0 !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* --- Report note: a non-criterion caveat (e.g. the speaking transcript and
   pronunciation note). Deliberately NOT styled or scored like a criterion card. --- */
.crit-block { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.report-note {
  background: var(--well);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.report-note-label {
  margin: 0 0 6px;
  font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted);
}
.report-note-text { margin: 0; color: var(--muted); line-height: 1.55; overflow-wrap: break-word; }
.report-note-text + .report-note-text { margin-top: 8px; }

/* Wordmark accent (Route C) */
.wm-dot { color: var(--gold); }

/* Pricing: payments-off state */
.buy:disabled { opacity: .5; cursor: not-allowed; }
.buy:disabled:hover { transform: none; }

/* Mobile report: guard against long-word horizontal overflow */
.crit-text, .ov-sentence, .ov-steps li, .heard-note, .pt-text, .essay-page p { overflow-wrap: break-word; }

/* --- resubmit & compare (client-side; essays stay in the browser) --- */
.revise-bar { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); text-align: center; }
.revise-hint { margin: 12px auto 0; max-width: 48ch; font-size: .85rem; color: var(--muted); line-height: 1.5; }

.compare-panel {
  margin-top: 24px; padding: 22px 24px;
  background: var(--well); border: 1px solid var(--card-border);
  border-left: 3px solid var(--gold); border-radius: var(--radius);
}
.compare-panel .eyebrow { margin: 0 0 14px; }
.compare-bands { display: flex; flex-direction: column; gap: 9px; }
.compare-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto auto;
  gap: 10px; align-items: baseline; font-size: .95rem;
}
.compare-crit { color: var(--text); font-weight: 500; min-width: 0; }
.compare-val { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 600; }
.compare-val-new { color: var(--navy); }
.compare-arrow { color: var(--line-strong); }
.compare-delta { font-size: .78rem; font-weight: 600; }
.compare-delta.up { color: var(--teal-ink); }
.compare-delta.down { color: var(--warn); }
.compare-delta.same { color: var(--muted); }
.compare-caveat { margin: 14px 0 0; font-size: .85rem; color: var(--muted); line-height: 1.55; }
.compare-sub { margin: 20px 0 10px; font: 600 1.05rem var(--font-display); color: var(--navy); }
.diff-text { margin: 0; line-height: 1.75; color: var(--text); white-space: pre-wrap; overflow-wrap: break-word; }
.diff-add { background: var(--gold-tint); border-radius: 2px; padding: 0 1px; }
.diff-del { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-strong); }

@media (max-width: 640px) {
  .compare-row { grid-template-columns: minmax(0, 1fr) auto auto auto; }
  .compare-delta { grid-column: 1 / -1; padding-left: 2px; }
  .revise-btn { width: 100%; }
}

/* --- onboarding: hero secondary CTA + "in three steps" strip --- */


/* --- Korean and Hindi typography ---
   Korean: never break inside a word (keep-all), the mark of a page written for Korean readers;
   break-word stops a long unbroken string from overflowing a narrow box.
   Devanagari carries marks above and below the line, so it needs a taller line box. */
html:lang(ko) body { word-break: keep-all; overflow-wrap: break-word; }
html:lang(ko) .hero-title { line-height: 1.24; letter-spacing: -.025em; }
html:lang(ko) .sec-h, html:lang(ko) .ws-title { letter-spacing: -.02em; }
html:lang(hi) body { line-height: 1.75; }
html:lang(hi) .hero-title { line-height: 1.32; letter-spacing: 0; }
html:lang(hi) .sec-h, html:lang(hi) .ws-title, html:lang(hi) .result-head h2 { line-height: 1.35; }
/* Hangul and Devanagari have no capitals and no true italics: wide tracking (a Latin small-caps
   convention) only makes them look gappy, and a synthesized slant reads as unfinished. Small
   labels lean on capitals for legibility in Latin, so they get a little more size instead. */
html:lang(ko) .eyebrow, html:lang(ko) .hero-eyebrow, html:lang(ko) .gauge-label,
html:lang(ko) .essay-card-h, html:lang(ko) .compare-table thead th, html:lang(ko) .pack-tag,
html:lang(ko) .tutor-who, html:lang(ko) .report-note-label,
html:lang(hi) .eyebrow, html:lang(hi) .hero-eyebrow, html:lang(hi) .gauge-label,
html:lang(hi) .essay-card-h, html:lang(hi) .compare-table thead th, html:lang(hi) .pack-tag,
html:lang(hi) .tutor-who, html:lang(hi) .report-note-label { letter-spacing: 0; text-transform: none; }
html:lang(ko) .eyebrow, html:lang(ko) .hero-eyebrow, html:lang(hi) .eyebrow, html:lang(hi) .hero-eyebrow { font-size: .86rem; }
