/* ============================================================
   kmra — designer redesign (2026-10-04)
   Warm cream light theme + full dark theme. Dark = default.
   Theme follows the OS; <html data-theme="light|dark"> (set by
   theme.js from the nav toggle) overrides the OS setting.
   The dark feature cards (hero recorder, tough-questions card,
   privacy band) stay dark in both themes via --dcard vars.
   No build step, vanilla CSS.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  color-scheme: dark;
  --bg: #07090d;
  --bg2: #0d1117;
  --card: #10151d;
  --line: #232c3a;
  --vf-line: #3a465a;
  --text: #eceff4;
  --muted: #8b94a7;
  --rec: #ff3b30;
  --rec-deep: #c81e1e;
  --good: #3ddc84;
  --ok: #ffc857;
  --low: #ff6b6b;
  --link: #6ea8ff;
  --radius: 14px;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --font-display: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --shadow: none;
  /* Dark feature cards stay dark in both themes. */
  --dcard: #171310;
  --dcard-2: #221c15;
  --dcard-line: #3a3222;
  --on-dcard: #f5f0e6;
  --on-dcard-muted: #b3a68d;
  --band: #100d0a;
}
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f5f0e6;
    --bg2: #ece4d3;
    --card: #fffdf7;
    --line: #e7dcc6;
    --vf-line: #b3a488;
    --text: #211c14;
    --muted: #6f6455;
    --rec: #d92d20;
    --rec-deep: #b42318;
    --link: #2b5cb8;
    --shadow: 0 1px 2px rgba(60, 45, 20, 0.06), 0 10px 28px rgba(60, 45, 20, 0.08);
    --band: #fdfaf2;
  }
}
/* Manual theme override via <html data-theme="...">, set by theme.js.
   Higher specificity than the prefers-color-scheme block above, so a saved
   choice always wins over the OS setting. */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f0e6;
  --bg2: #ece4d3;
  --card: #fffdf7;
  --line: #e7dcc6;
  --vf-line: #b3a488;
  --text: #211c14;
  --muted: #6f6455;
  --rec: #d92d20;
  --rec-deep: #b42318;
  --link: #2b5cb8;
  --shadow: 0 1px 2px rgba(60, 45, 20, 0.06), 0 10px 28px rgba(60, 45, 20, 0.08);
  --band: #fdfaf2;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #07090d;
  --bg2: #0d1117;
  --card: #10151d;
  --line: #232c3a;
  --vf-line: #3a465a;
  --text: #eceff4;
  --muted: #8b94a7;
  --rec: #ff3b30;
  --rec-deep: #c81e1e;
  --good: #3ddc84;
  --ok: #ffc857;
  --low: #ff6b6b;
  --link: #6ea8ff;
  --shadow: none;
  --band: #100d0a;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
body.landing { background: var(--bg); }
h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 0 0 16px;
  color: var(--text);
}
.wrap { max-width: 920px; margin: 0 auto; padding: 0 20px; }
.wrap-wide { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
a { color: var(--link); }
.hidden { display: none !important; }
.center { text-align: center; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
a.ts-link { color: var(--link); text-decoration: none; border-bottom: 1px dotted var(--link); cursor: pointer; }
a.ts-link:hover { text-decoration: underline; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; gap: 28px;
  padding-top: 14px; padding-bottom: 14px;
}
.logo {
  font-family: var(--font-display);
  font-weight: 800; font-size: 22px; letter-spacing: -0.02em;
  color: var(--text); text-decoration: none;
  display: inline-flex; align-items: center; gap: 7px;
}
.logo::before {
  content: ""; width: 11px; height: 11px; border-radius: 50%;
  background: var(--rec);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--rec) 22%, transparent);
}
.nav-links { display: flex; gap: 26px; margin-left: 8px; }
.nav-links a {
  color: var(--text); text-decoration: none; font-size: 14.5px; font-weight: 500;
}
.nav-links a:hover { color: var(--rec); }
.nav-cta {
  margin-left: auto;
  background: var(--text); color: var(--bg);
  border: none; border-radius: 999px;
  font-weight: 700; font-size: 14px;
  padding: 10px 22px; cursor: pointer;
  white-space: nowrap;
}
.nav-cta:hover { opacity: 0.88; }
/* Theme toggle (sun/moon) in the nav. */
.theme-toggle {
  background: none; border: 1px solid var(--line); border-radius: 50%;
  width: 36px; height: 36px; cursor: pointer;
  color: var(--text);
  display: inline-flex; align-items: center; justify-content: center;
  margin-left: auto;
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--rec); color: var(--rec); }
/* When both toggle and CTA are present, CTA keeps the right edge. */
.nav-inner .theme-toggle + .nav-cta { margin-left: 0; }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
  align-items: center;
  padding: 72px 24px 88px;
}
.hero-left h1 {
  font-size: clamp(44px, 5.4vw, 76px);
  font-weight: 800;
  margin: 18px 0 20px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px;
  background: var(--card);
}
.hero-badge::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--rec);
}
.hero-sub { font-size: 17px; color: var(--muted); max-width: 46ch; margin: 0 0 26px; }
.use-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.use-pills span {
  font-size: 13.5px; font-weight: 500;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 15px;
  color: var(--text);
  box-shadow: var(--shadow);
}

/* Dark recorder card in the hero. */
.hero-right { min-width: 0; }
.hero-card {
  background: var(--dcard);
  color: var(--on-dcard);
  border: 1px solid var(--dcard-line);
  border-radius: 22px;
  padding: 26px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.hero-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  background: var(--dcard-2);
  border: 1px solid var(--dcard-line);
  border-radius: 999px; padding: 5px;
  margin-bottom: 18px;
}
.hero-tab {
  border: none; background: transparent; cursor: pointer;
  color: var(--on-dcard-muted);
  font-size: 14px; font-weight: 600;
  border-radius: 999px; padding: 10px 8px;
}
.hero-tab.active { background: var(--on-dcard); color: var(--dcard); }
.hero-pane { display: block; }
.hero-pane.hidden { display: none; }

/* Viewfinder */
.hero-vf {
  position: relative;
  background: #000;
  border: 1px solid var(--dcard-line);
  border-radius: 14px;
  min-height: 230px;
  display: flex; flex-direction: column;
  overflow: hidden;
  margin-bottom: 18px;
}
.hero-vf-timer {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--mono); font-size: 12.5px; color: var(--on-dcard-muted);
  padding: 12px 0 4px;
}
.rec-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--rec); display: inline-block; flex-shrink: 0;
  animation: blink 1.4s ease-in-out infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.hero-vf-center {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  color: var(--on-dcard-muted); font-size: 13.5px;
}
.hero-vf-prompt {
  text-align: center; font-size: 15px; font-weight: 600; color: var(--on-dcard);
  padding: 10px 16px 16px;
}
/* Viewfinder corner brackets */
.hvc { position: absolute; width: 26px; height: 26px; border: 2px solid var(--on-dcard-muted); opacity: 0.85; }
.hvc.tl { top: 12px; left: 12px; border-right: none; border-bottom: none; }
.hvc.tr { top: 12px; right: 12px; border-left: none; border-bottom: none; }
.hvc.bl { bottom: 12px; left: 12px; border-right: none; border-top: none; }
.hvc.br { bottom: 12px; right: 12px; border-left: none; border-top: none; }

.hero-label {
  display: block; font-size: 12.5px; font-weight: 600;
  color: var(--on-dcard-muted); margin: 14px 0 6px;
}
.hero-select {
  width: 100%;
  background: var(--dcard-2); color: var(--on-dcard);
  border: 1px solid var(--dcard-line); border-radius: 10px;
  font-size: 14.5px; padding: 12px 14px;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23b3a68d' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  cursor: pointer;
}
.btn-record {
  width: 100%; margin-top: 16px;
  background: var(--rec); color: #fff;
  border: none; border-radius: 999px;
  font-size: 15.5px; font-weight: 700;
  padding: 15px 20px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
}
.btn-record:hover { background: var(--rec-deep); }
.hero-privacy {
  display: flex; gap: 8px; align-items: flex-start;
  font-size: 12.5px; color: var(--on-dcard-muted);
  margin: 14px 0 0; line-height: 1.5;
}

/* Upload pane inside the hero card */
.drop {
  position: relative;
  border: 2px dashed var(--dcard-line); border-radius: 14px;
  padding: 40px 20px; text-align: center; cursor: pointer;
  color: var(--on-dcard);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.drop:hover, .drop.over { border-color: var(--rec); background: rgba(217, 45, 32, 0.06); }
.drop-icon { display: block; font-size: 26px; margin-bottom: 8px; color: var(--on-dcard-muted); }
.drop-hint { display: block; font-size: 12.5px; color: var(--on-dcard-muted); margin-top: 8px; }
/* The real file input sits invisibly over the whole drop zone. */
.file-input {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: pointer;
}
.uprog { margin-top: 14px; }
.uprog-track { height: 8px; background: var(--dcard-2); border-radius: 999px; overflow: hidden; }
.uprog-fill { height: 100%; width: 0%; background: var(--rec); border-radius: 999px; transition: width 0.2s ease; }
.uprog-text { font-size: 12.5px; color: var(--on-dcard-muted); margin-top: 6px; text-align: center; }

/* Tier / payment step */
.tier-result {
  background: var(--dcard-2); border: 1px solid var(--dcard-line);
  border-radius: 14px; padding: 6px 18px; margin-bottom: 16px;
}
.tier-result-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; font-size: 14.5px; color: var(--on-dcard-muted);
  border-bottom: 1px solid var(--dcard-line);
}
.tier-result-row:last-child { border-bottom: none; }
.tier-result-row.total { color: var(--on-dcard); font-size: 16px; }
.tier-result-row strong { color: var(--on-dcard); }
.code-box {
  border: 1px dashed var(--dcard-line); border-radius: 14px;
  padding: 14px 18px; margin-bottom: 16px; text-align: center;
}
.code-label { display: block; font-size: 12px; color: var(--on-dcard-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.code-value { display: block; font-size: 22px; letter-spacing: 0.1em; color: var(--on-dcard); margin: 6px 0; }
.code-hint { display: block; font-size: 12.5px; color: var(--on-dcard-muted); }
.promo-row { display: flex; gap: 8px; margin: 12px 0; }
.promo-row input {
  flex: 1; background: var(--dcard-2); color: var(--on-dcard);
  border: 1px solid var(--dcard-line); border-radius: 10px;
  padding: 10px 14px; font-size: 14px;
}
.promo-row input::placeholder { color: var(--on-dcard-muted); }
.link-btn {
  background: none; border: none; cursor: pointer;
  color: var(--link); font-size: 14px; padding: 0;
}
.hero-card .link-btn { color: var(--on-dcard-muted); }
.hero-card .link-btn:hover { color: var(--on-dcard); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; width: 100%;
  background: var(--rec); color: #fff;
  border: none; border-radius: 999px;
  font-size: 15.5px; font-weight: 700;
  padding: 15px 20px; cursor: pointer; text-align: center;
  margin-top: 14px;
}
.btn:hover:not(:disabled) { background: var(--rec-deep); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-light {
  background: var(--on-dcard); color: var(--dcard);
  border: none; border-radius: 999px;
  font-size: 14.5px; font-weight: 700;
  padding: 12px 24px; cursor: pointer; white-space: nowrap;
}
.btn-light:hover { opacity: 0.9; }
.btn-outline {
  width: 100%;
  background: transparent; color: var(--text);
  border: 1.5px solid var(--text); border-radius: 999px;
  font-size: 15px; font-weight: 700;
  padding: 14px 20px; cursor: pointer;
}
.btn-outline:hover { background: var(--text); color: var(--bg); }
.btn-red {
  width: 100%;
  background: var(--rec); color: #fff;
  border: none; border-radius: 999px;
  font-size: 15px; font-weight: 700;
  padding: 15px 20px; cursor: pointer;
}
.btn-red:hover { background: var(--rec-deep); }
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1.5px solid var(--line);
}

/* ---------- Notices / status ---------- */
.notice {
  border-radius: 12px; padding: 12px 16px; font-size: 14px; margin-bottom: 16px;
  background: color-mix(in srgb, var(--ok) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--ok) 40%, transparent);
  color: var(--text);
}
.status { font-size: 14px; color: var(--muted); margin: 12px 0 0; min-height: 1.4em; }
.status.error { color: var(--rec); }
.hero-card .status { color: var(--on-dcard-muted); }
.hero-card .status.error { color: #ff8a80; }

/* ---------- Report preview section ---------- */
.report-section { padding: 88px 0; background: var(--band); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.report-head {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end;
  margin-bottom: 44px;
}
.report-head h2 { font-size: clamp(34px, 3.6vw, 52px); font-weight: 800; margin: 0; }
.report-head p { color: var(--muted); font-size: 16px; margin: 0; max-width: 42ch; }
.report-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.report-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 20px; padding: 28px;
  box-shadow: var(--shadow);
}
.report-card h3 { font-size: 22px; font-weight: 800; margin: 12px 0 16px; }
.report-card.dark {
  background: var(--dcard); border-color: var(--dcard-line); color: var(--on-dcard);
}
.report-card.dark h3 { color: var(--on-dcard); }
.rc-kicker {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
}
.report-card.dark .rc-kicker { color: var(--on-dcard-muted); }
.rc-score {
  font-family: var(--font-display); font-weight: 800; font-size: 56px;
  letter-spacing: -0.03em; margin: 8px 0 18px; line-height: 1;
}
.rc-score small { font-size: 18px; font-weight: 600; color: var(--muted); }
.meter-row {
  display: grid; grid-template-columns: 92px 1fr 64px; gap: 12px; align-items: center;
  font-size: 13.5px; margin: 10px 0;
}
.meter-track { height: 7px; background: var(--bg2); border-radius: 999px; overflow: hidden; }
.meter-fill { height: 100%; background: var(--text); border-radius: 999px; }
.meter-fill.red { background: var(--rec); }
.ts-pill {
  display: flex; gap: 12px; align-items: center;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 12px; padding: 11px 15px; font-size: 14px;
  margin: 8px 0;
}
.ts-pill .mono { color: var(--rec); font-weight: 700; }
.q-row {
  border-top: 1px solid var(--dcard-line);
  padding: 13px 2px; font-size: 14.5px; color: var(--on-dcard-muted);
}
.q-row:last-child { border-bottom: 1px solid var(--dcard-line); }

/* ---------- How it works ---------- */
.how-section { padding: 88px 0 40px; }
.section-h2 { font-size: clamp(34px, 3.6vw, 52px); font-weight: 800; margin: 0 0 40px; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.how-col { border-top: 2px solid var(--text); padding-top: 20px; }
.how-step {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em;
  color: var(--muted); margin-bottom: 10px;
}
.how-col h3 { font-size: 22px; font-weight: 800; margin: 0 0 10px; }
.how-col p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------- Pricing ---------- */
.pricing-section { padding: 56px 0 96px; }
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.price-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 20px; padding: 32px;
  box-shadow: var(--shadow);
}
.price-card.dark {
  background: var(--dcard); border-color: var(--dcard-line); color: var(--on-dcard);
}
.price-card.dark p { color: var(--on-dcard-muted); }
.price-kicker {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 14px;
}
.price-card.dark .price-kicker { color: var(--on-dcard-muted); }
.price-big {
  font-family: var(--font-display); font-weight: 800; font-size: 52px;
  letter-spacing: -0.03em; line-height: 1; margin-bottom: 14px;
}
.price-big span { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.price-card.dark .price-big span { color: var(--on-dcard-muted); }
.price-card p { font-size: 15px; margin: 0 0 24px; }
.tier-line { font-size: 14px; color: var(--muted); margin: 0; }
.tier-line .tsep { margin: 0 6px; opacity: 0.6; }

/* ---------- Privacy band (always dark) ---------- */
.privacy-section {
  background: var(--dcard); color: var(--on-dcard);
  padding: 72px 0;
}
.privacy-inner {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center;
}
.privacy-kicker {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--on-dcard-muted); margin-bottom: 16px;
}
.privacy-section h2 {
  color: var(--on-dcard);
  font-size: clamp(30px, 3.2vw, 46px); font-weight: 800; margin: 0;
}
.privacy-note { font-size: 12.5px; color: var(--on-dcard-muted); margin: 12px 0 0; line-height: 1.5; }
.review-code p { color: var(--on-dcard-muted); font-size: 14.5px; margin: 0 0 12px; }
.review-code-row { display: flex; gap: 10px; }
.review-code-row input {
  flex: 1; min-width: 0;
  background: var(--dcard-2); color: var(--on-dcard);
  border: 1px solid var(--dcard-line); border-radius: 999px;
  padding: 12px 20px; font-size: 14.5px; font-family: var(--mono);
}
.review-code-row input::placeholder { color: var(--on-dcard-muted); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 22px 0; }
.footer-inner {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
}
.copy { font-size: 13.5px; color: var(--muted); margin: 0; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 13.5px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.footer-links a:hover { color: var(--text); }

/* ---------- Practice modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0, 0, 0, 0.6);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal.hidden { display: none; }
.modal-card {
  background: var(--card); color: var(--text);
  border: 1px solid var(--line); border-radius: 20px;
  width: 100%; max-width: 620px; max-height: 92vh; overflow-y: auto;
  padding: 28px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.4);
}
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.modal-head h2 { margin: 0; font-size: 26px; }
.modal-head .link-btn { font-size: 28px; line-height: 1; color: var(--muted); }
.modal-head .link-btn:hover { color: var(--text); }
.prompt-label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 8px; }
.prompt-select {
  width: 100%;
  background: var(--bg2); color: var(--text);
  border: 1px solid var(--line); border-radius: 10px;
  font-size: 14.5px; padding: 12px 14px; cursor: pointer;
  appearance: none; -webkit-appearance: none;
}
.prompt-banner {
  background: color-mix(in srgb, var(--ok) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--ok) 40%, transparent);
  border-radius: 10px; padding: 10px 14px; font-size: 14px; margin: 12px 0;
}
.length-pills { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.length-pill { cursor: pointer; }
.length-pill input { position: absolute; opacity: 0; pointer-events: none; }
.length-pill > span {
  display: inline-block;
  border: 1.5px solid var(--line); border-radius: 999px;
  padding: 9px 18px; font-size: 14px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.length-pill input:checked + span { border-color: var(--rec); background: color-mix(in srgb, var(--rec) 10%, transparent); }
.practice-video-wrap {
  position: relative; background: #000; border-radius: 14px;
  overflow: hidden; margin: 16px 0; aspect-ratio: 16 / 9;
}
.practice-video-wrap video { width: 100%; height: 100%; object-fit: cover; display: block; }
.practice-rec {
  position: absolute; top: 12px; left: 12px;
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(0, 0, 0, 0.65); color: #fff;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em;
  border-radius: 8px; padding: 6px 12px;
}
.practice-timer {
  position: absolute; top: 12px; right: 12px;
  background: rgba(0, 0, 0, 0.65); color: #fff;
  font-size: 13px; border-radius: 8px; padding: 6px 12px;
}
.practice-controls { display: flex; gap: 10px; flex-wrap: wrap; }
.practice-controls .btn { width: auto; margin-top: 0; padding: 13px 24px; }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 48px 20px 64px; }
  .hero-left h1 { font-size: clamp(40px, 11vw, 56px); }
  .report-head { grid-template-columns: 1fr; gap: 16px; }
  .report-grid { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr; gap: 28px; }
  .price-grid { grid-template-columns: 1fr; }
  .privacy-inner { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-inner { gap: 14px; }
  .nav-cta { padding: 9px 16px; font-size: 13px; }
  .report-section, .how-section { padding: 56px 0; }
  .pricing-section { padding: 40px 0 64px; }
  .privacy-section { padding: 52px 0; }
  .review-code-row { flex-direction: column; }
  .review-code-row .btn-light { width: 100%; }
  .modal { padding: 12px; }
  .modal-card { padding: 20px; }
  .practice-controls .btn { width: 100%; }
}

/* ============================================================
   RESULTS PAGE (results.html shares this stylesheet)
   ============================================================ */
.spinner {
  width: 44px; height: 44px; margin: 10px auto 16px;
  border: 4px solid var(--line); border-top-color: var(--rec);
  border-radius: 50%; animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.overall { display: flex; gap: 24px; align-items: center; }
.overall-num {
  font-size: 3.4rem; font-weight: 800; line-height: 1;
  color: var(--text);
  min-width: 110px; text-align: center;
  font-variant-numeric: tabular-nums;
  border: 1px solid var(--vf-line); border-radius: 12px; padding: 10px 6px;
}
.overall-num span { font-size: 1.2rem; color: var(--muted); }

.score-row { display: flex; align-items: center; gap: 12px; margin: 12px 0; }
.score-label { width: 130px; flex-shrink: 0; font-size: 0.95rem; }
.score-track { flex: 1; height: 10px; background: var(--bg2); border-radius: 999px; overflow: hidden; }
.score-fill { height: 100%; border-radius: 999px; background: var(--text); }
.score-num { width: 52px; text-align: right; font-variant-numeric: tabular-nums; font-size: 0.95rem; }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; margin: 18px 0;
  box-shadow: var(--shadow);
}
.card h2, .card h3 { display: flex; align-items: center; gap: 10px; }
.card-sec-green h2::before, .card-sec-green h3::before,
.card-sec-amber h2::before, .card-sec-amber h3::before,
.card-sec-red h2::before, .card-sec-red h3::before,
.card-sec-blue h2::before, .card-sec-blue h3::before,
.card-sec-purple h2::before, .card-sec-purple h3::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0;
}
.card-sec-green h2::before, .card-sec-green h3::before { background: var(--good); }
.card-sec-amber h2::before, .card-sec-amber h3::before { background: var(--ok); }
.card-sec-red h2::before, .card-sec-red h3::before { background: var(--rec); }
.card-sec-blue h2::before, .card-sec-blue h3::before { background: var(--link); }
.card-sec-purple h2::before, .card-sec-purple h3::before { background: #a855f7; }

.metric { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.metric:last-child { border-bottom: none; }
.metric-l { color: var(--muted); }
.metric-v { font-weight: 600; text-align: right; }

.pill {
  display: inline-block; font-size: 0.78rem; font-weight: 700;
  border-radius: 999px; padding: 3px 12px; letter-spacing: 0.02em;
}
.pill.good { background: color-mix(in srgb, var(--good) 18%, transparent); color: var(--good); }
.pill.ok { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
.pill.low { background: color-mix(in srgb, var(--low) 18%, transparent); color: var(--low); }

.quote {
  border-left: 3px solid var(--vf-line); padding: 6px 0 6px 14px; margin: 10px 0;
  color: var(--muted); font-style: italic;
}
.fix { background: var(--bg2); border-radius: 10px; padding: 12px 16px; margin: 10px 0; font-size: 0.95rem; }
.fix-head { display: flex; align-items: flex-start; gap: 10px; font-weight: 700; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 6px; }
.fix-head strong { flex: 1; line-height: 1.5; }

.prio {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: color-mix(in srgb, var(--ok) 22%, transparent); color: var(--ok);
  font-weight: 800; font-size: 0.85rem; flex-shrink: 0;
}
.items { list-style: none; padding: 0; margin: 0; }
.items li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.items li:last-child { border-bottom: none; }

.qa { border-bottom: 1px solid var(--line); padding: 14px 0; }
.qa:last-child { border-bottom: none; }
.qa-q { font-weight: 700; margin-bottom: 6px; display: flex; gap: 10px; align-items: flex-start; }
.qnum {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 26px; height: 26px; border-radius: 8px;
  background: var(--bg2); font-size: 0.8rem; font-weight: 700; color: var(--muted);
}
.qtype-challenging { color: #ff6b6b; }
.qtype-clarifying { color: var(--link); }
.qtype-extension { color: var(--good); }

.verdict {
  font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; letter-spacing: -0.02em;
  padding: 14px 20px; border-radius: 12px; display: inline-block;
}
.verdict.good { background: color-mix(in srgb, var(--good) 16%, transparent); color: var(--good); }
.verdict.ok { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
.verdict.low { background: color-mix(in srgb, var(--low) 16%, transparent); color: var(--low); }

.sample-answer {
  background: var(--bg2); border: 1px solid var(--line);
  border-radius: 12px; padding: 18px 20px; margin: 14px 0;
  font-size: 0.97rem; line-height: 1.7;
}
.assumed { background: color-mix(in srgb, var(--ok) 30%, transparent); border-bottom: 2px dotted var(--ok); padding: 0 3px; border-radius: 3px; cursor: help; }
.assumed-inline { background: color-mix(in srgb, var(--ok) 22%, transparent); padding: 0 3px; border-radius: 3px; }
.assumed-legend { font-size: 0.85rem; color: var(--muted); margin-top: 10px; }

.chat-log { max-height: 380px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.chat-log .qa { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.chat-input-row { display: flex; gap: 10px; }
.chat-input-row .btn { width: auto; margin-top: 0; flex-shrink: 0; padding: 12px 28px; }
.chat-input-row input {
  flex: 1; background: var(--bg2); color: var(--text);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 12px 18px; font-size: 14.5px;
}
.chat-input-row input::placeholder { color: var(--muted); }

.talking { list-style: disc; padding-left: 20px; margin: 8px 0 4px; display: block; }
.talking li { margin-bottom: 4px; line-height: 1.5; }
.play {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--bg2); cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.play-tri { width: 0; height: 0; border-left: 11px solid var(--text); border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 2px; }
.play.playing .play-tri { border: none; width: 11px; height: 12px; background: var(--text); margin-left: 0;
  clip-path: polygon(0 0, 38% 0, 38% 100%, 0 100%, 0 0, 62% 0, 100% 0, 100% 100%, 62% 100%, 62% 0); }

.example { background: var(--bg2); border-radius: 10px; padding: 12px 16px; margin: 10px 0; font-size: 0.93rem; }
.cls { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.vCls { font-size: 0.8rem; font-weight: 700; }
.qtCls { font-size: 0.78rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; }

.nav-tag { font-size: 0.8rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; }
.footer { border-top: 1px solid var(--line); margin-top: 48px; padding: 24px 0; color: var(--muted); font-size: 0.88rem; }

@media (max-width: 640px) {
  .overall { flex-direction: column; align-items: stretch; }
  .overall-num { min-width: 0; }
  .score-label { width: 96px; }
  .chat-input-row { flex-direction: column; }
  .metrics { overflow-x: auto; }
}

.was-price{opacity:.55;margin-right:.35em;}
.trial-note{font-size:.85em;opacity:.8;margin:.25em 0 0;}

.fact-verdict{display:inline-block;flex-shrink:0;font-size:.72rem;font-weight:800;text-transform:uppercase;letter-spacing:.05em;padding:3px 10px;border-radius:20px;margin-right:2px}
.verdict-supported{background:rgba(46,160,67,.18);color:#2ea043}
.verdict-unsourced{background:rgba(187,128,9,.18);color:#bb8009}
.verdict-questionable{background:rgba(248,81,73,.18);color:#f85149}
.fact-claim{flex:1;min-width:0}
.items li{flex-wrap:wrap}
