:root {
  --ink: #17221d;
  --muted: #5b6b63;
  --line: #dfe6e1;
  --bg: #fbfcfb;
  --card: #ffffff;
  --brand: #0d6b4b;
  --brand-dark: #0a523a;
  --brand-tint: #e7f3ed;
  --warn: #9a5b00;
  --bad: #b3261e;
  --good: #1e7a3c;
  --radius: 10px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.55; font-size: 17px; }
a { color: var(--brand); }
h1 { font-size: 2rem; line-height: 1.2; margin: 1.2rem 0 .6rem; }
h2 { font-size: 1.3rem; margin: 1.6rem 0 .5rem; }
h3 { font-size: 1.08rem; margin: 1rem 0 .3rem; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 620px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.site-header { background: var(--card); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.logo { font-weight: 700; font-size: 1.25rem; color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.logo-mark { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--brand); color: #fff; font-size: 1rem; }
.nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--ink); }
.nav a.btn { color: #fff; }

.btn { display: inline-block; background: var(--brand); color: #fff; border: 0; border-radius: 8px; padding: .7rem 1.15rem; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--brand-dark); }
.btn-small { padding: .4rem .8rem; font-size: .92rem; }
.btn-ghost { background: transparent; color: var(--brand); border: 1.5px solid var(--brand); }
.btn-ghost:hover { background: var(--brand-tint); }
.btn-danger { background: var(--bad); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 1rem 0; }

.hero { padding: 2.5rem 0 1rem; }
.hero h1 { font-size: 2.4rem; max-width: 760px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 720px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 1.5rem 0; }
.features article, .card, .panel, .plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; }
.features h2 { font-size: 1.1rem; margin-top: .2rem; }
.cards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.card h2, .card h3 { margin-top: .2rem; font-size: 1.1rem; }
.panel { margin: 1.2rem 0; }
.cta { background: var(--brand-tint); border-color: #bfdccc; }

.flash { background: var(--brand-tint); border: 1px solid #bfdccc; padding: .6rem .9rem; border-radius: 8px; }
.error { color: var(--bad); font-weight: 600; }

form label { display: block; font-weight: 600; margin: .8rem 0 .3rem; }
input[type=email], input[type=text], input:not([type]), select, textarea { width: 100%; font: inherit; padding: .6rem .7rem; border: 1px solid #c7d2cb; border-radius: 8px; background: #fff; }
textarea { resize: vertical; }
label.check { font-weight: 400; display: flex; gap: 8px; align-items: flex-start; }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.inline-form label { margin: 0; }
.inline-form input, .inline-form select { width: auto; flex: 1 1 200px; }
.inline-form label.check { flex-basis: 100%; }

.table { width: 100%; border-collapse: collapse; background: var(--card); margin: .6rem 0 1rem; }
.table th, .table td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table .num { text-align: right; white-space: nowrap; }
.status-fail { color: var(--bad); font-weight: 700; }
.status-warn { color: var(--warn); font-weight: 700; }
.status-ok { color: var(--good); }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin: 1rem 0; }
.facts div { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: .6rem .8rem; }
.facts dt { font-size: .85rem; color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }
.crumbs { color: var(--muted); font-size: .9rem; margin-top: 1rem; }

.questions { padding-left: 1.3rem; }
.question { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1.1rem; margin: 0 0 14px; }
.stem { font-weight: 600; margin: 0 0 .5rem; }
.option { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; margin: .35rem 0; padding: .35rem .5rem; border-radius: 6px; cursor: pointer; }
.option:hover { background: var(--brand-tint); }
.option.blank { color: var(--muted); font-size: .92rem; }
.letter { font-weight: 700; color: var(--muted); }
.timer { position: sticky; top: 0; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: .4rem .8rem; display: inline-block; font-weight: 700; z-index: 2; }
.timer.urgent { color: var(--bad); border-color: var(--bad); }
.review .options { list-style: none; padding: 0; }
.review .options li { padding: .25rem .5rem; border-radius: 6px; }
.review .options li.correct { background: #e3f4e8; }
.review .options li.chosen { background: #fbe6e4; }
.question.is-right { border-left: 5px solid var(--good); }
.question.is-wrong { border-left: 5px solid var(--bad); }
.question.is-blank { border-left: 5px solid var(--line); }
.explanation { margin: .5rem 0 .2rem; }
.citation { font-size: .88rem; color: var(--muted); }
details.report summary { cursor: pointer; color: var(--muted); font-size: .9rem; }
.score { text-align: center; margin: 1rem 0; }
.score-big { font-size: 3rem; font-weight: 800; margin: 0; color: var(--brand); }
.score-big span { font-size: 1.2rem; color: var(--muted); }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin: 1.2rem 0; }
.plan.featured { border: 2px solid var(--brand); }
.price { font-size: 2rem; font-weight: 800; margin: .3rem 0; }
.price span { font-size: .95rem; font-weight: 400; color: var(--muted); }
.copy { font-family: ui-monospace, monospace; }
.recorder { display: flex; align-items: center; gap: 14px; margin: .6rem 0; }
.timer-inline { font-weight: 700; font-variant-numeric: tabular-nums; }
.oral-result { margin-top: 1rem; border-top: 1px solid var(--line); padding-top: .6rem; }
.approvals { list-style: none; padding: 0; }
pre.small { white-space: pre-wrap; background: #f3f6f4; padding: .5rem; border-radius: 6px; }
.legal h2 { font-size: 1.1rem; }

.site-footer { border-top: 1px solid var(--line); margin-top: 3rem; padding: 1.2rem 0 2rem; font-size: .9rem; color: var(--muted); }
.footer-links a { color: var(--muted); }

@media (max-width: 640px) {
  body { font-size: 16px; }
  h1, .hero h1 { font-size: 1.6rem; }
  .nav { gap: 12px; font-size: .95rem; }
}

/* Layout fixes after the screenshot review */
label.check input[type=checkbox] { flex: 0 0 auto; width: auto; margin: .3rem 0 0; }
.features article > :first-child, .card > :first-child, .panel > :first-child, .plan > :first-child { margin-top: 0; }
.plan select { margin-bottom: .7rem; }
.fields { display: grid; grid-template-columns: 1fr 2fr; gap: 10px 14px; margin: 1rem 0; }
.fields label { display: block; margin-bottom: .3rem; }
@media (max-width: 640px) { .fields { grid-template-columns: 1fr; } }
