/* Minimal, light, one accent. System fonts only (the page's CSP allows no outside fonts). */
:root {
  --bg: #f7f6f2; --panel: #ffffff; --ink: #1a1a1a; --muted: #6f6c66; --line: #e6e3dc; --grey: #b9b5ad;
  --acc: #1d4e89; --acc-ink: #ffffff; --acc-soft: #e9eef5; --ok: #1f7a55; --no: #c0392b;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 4px; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.eyebrow { margin: 0; font: 500 0.78rem/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--acc); }

/* Buttons */
.primary, .ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem; padding: 0 1.5rem; border-radius: 6px; font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, transform 100ms ease;
}
.primary { background: var(--acc); color: var(--acc-ink); border: 1px solid var(--acc); }
.primary:hover { background: #163f70; }
.primary:active, .ghost:active { transform: translateY(1px); }
.primary.big { min-height: 3.6rem; padding: 0 2rem; font-size: 1.1rem; }
.ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.ghost:hover { border-color: var(--ink); }
.ghost:disabled { opacity: 0.35; cursor: default; border-color: var(--line); }

/* Landing */
.nav { max-width: 72rem; margin: 0 auto; padding: 1.1rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { font: 700 1.4rem/1 var(--serif); letter-spacing: -0.01em; text-decoration: none; }
.nav .links { display: flex; align-items: center; gap: 1.25rem; font-size: 0.95rem; }
.nav .links a:not(.primary) { color: var(--muted); text-decoration: none; }
.nav .links a:not(.primary):hover { color: var(--ink); }
.nav .primary { min-height: 2.6rem; padding: 0 1.1rem; font-size: 0.95rem; }
.hero { max-width: 72rem; margin: 0 auto; padding: 3.5rem 1.25rem 4.5rem; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 4rem; align-items: center; }
.hero h1 { margin: 1.1rem 0 1.4rem; font: 400 clamp(2.9rem, 7vw, 5.4rem)/1.02 var(--serif); letter-spacing: -0.025em; }
.hero .sub { margin: 0 0 2.2rem; font-size: 1.25rem; line-height: 1.55; color: var(--muted); max-width: 30em; }
.checks { margin: 1.6rem 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem; font: 400 0.9rem var(--mono); color: var(--muted); }
.checks li::before { content: "✓ "; color: var(--acc); }
.resume-row { margin-top: 0.9rem; }
.resume-row button { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; font-size: 0.95rem; }
.sample { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 2.2rem 2.2rem 2rem; box-shadow: 0 30px 60px -40px rgba(26, 26, 26, 0.25); }
.sample .eyebrow { color: var(--muted); }
.sample .score { display: flex; align-items: flex-end; gap: 1.2rem; margin: 0.8rem 0 1.6rem; padding-bottom: 1.6rem; border-bottom: 1px solid var(--line); }
.sample .score b { font: 400 5.5rem/0.85 var(--serif); letter-spacing: -0.03em; }
.sample .score span { display: block; color: var(--acc); font-weight: 600; font-size: 1.15rem; }
.sample .score small { display: block; color: var(--muted); font-size: 0.95rem; }
.bars { display: grid; gap: 1rem; }
.bars div { display: grid; grid-template-columns: 7.5rem 1fr 2rem; align-items: center; gap: 1rem; font-size: 0.95rem; }
.bars i { display: block; height: 4px; background: var(--line); border-radius: 2px; position: relative; overflow: hidden; }
.bars i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--acc); }
.bars em { font-style: normal; text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.steps { border-top: 1px solid var(--line); }
.steps ol { max-width: 72rem; margin: 0 auto; padding: 3.5rem 1.25rem 4rem; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; counter-reset: s; }
.steps li { counter-increment: s; color: var(--muted); }
.steps li::before { content: "0" counter(s); display: block; font: 500 0.85rem var(--mono); color: var(--acc); margin-bottom: 0.8rem; }
.steps b { display: block; color: var(--ink); font: 400 1.5rem/1.2 var(--serif); margin-bottom: 0.4rem; }
.foot { max-width: 72rem; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; font-size: 0.875rem; color: var(--muted); }
.foot a { color: var(--muted); }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 2.5rem; padding-top: 2rem; }
  .sample { padding: 1.5rem; }
  .sample .score b { font-size: 4.5rem; }
  .bars div { grid-template-columns: 6.2rem 1fr 1.8rem; }
  .steps ol { grid-template-columns: 1fr; gap: 2rem; padding: 2.5rem 1.25rem; }
  .nav .links a.lang-link { display: none; }
  .hero .primary.big { width: 100%; }
}

/* Cells and figures */
.cell { aspect-ratio: 1; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; display: grid; place-items: center; overflow: hidden; }
.cell svg { width: 100%; height: 100%; display: block; }
.cell.gap { border: 1.5px dashed var(--acc); background: var(--acc-soft); }
.cell.gap span { font: 400 1.8rem var(--serif); color: var(--acc); }

/* Test */
body.inapp .site { display: none; }
.test { max-width: 40rem; margin: 0 auto; padding: 0 1rem 2rem; min-height: 100svh; display: flex; flex-direction: column; }
.bar { position: sticky; top: 0; padding-top: 1rem; background: var(--bg); z-index: 2; }
.progress { height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--acc); transition: width 250ms ease; }
.progress.wide { width: min(18rem, 80vw); margin: 1.2rem auto 0; }
.testhead { display: flex; justify-content: space-between; padding: 0.7rem 0 0; font: 400 0.9rem var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.clock.low { color: var(--no); }
.testbody { flex: 1; }
.testbody .item { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 1.4rem 1.2rem 1.3rem; margin-top: 1rem; }
.prompt { margin: 0 0 1.2rem; font: 400 1.4rem/1.25 var(--serif); letter-spacing: -0.005em; text-wrap: balance; }
.matrix { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.35rem; max-width: 16rem; margin: 0 auto; }
.seq { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; padding: 0.4rem 0; }
.seq span { min-width: 3rem; padding: 0.55rem 0.7rem; text-align: center; border: 1px solid var(--line); border-radius: 6px; font-size: 1.3rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.seq .gap { border: 1.5px dashed var(--acc); background: var(--acc-soft); color: var(--acc); }
.model { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; font: 400 0.75rem var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.model .cell { width: 8.5rem; }
.opts { display: grid; gap: 0.4rem; margin-top: 1.3rem; padding-top: 1.3rem; border-top: 1px solid var(--line); }
.opts-8 { grid-template-columns: repeat(4, 1fr); }
.opts-6 { grid-template-columns: repeat(3, 1fr); }
.opts-4 { grid-template-columns: repeat(2, 1fr); max-width: 22rem; margin-left: auto; margin-right: auto; }
.opt { aspect-ratio: 1; padding: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; cursor: pointer; display: grid; place-items: center; overflow: hidden; transition: border-color 120ms ease, box-shadow 120ms ease; }
.opts-6 .opt { aspect-ratio: auto; min-height: 3.4rem; font-size: 1.3rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.opt svg { width: 100%; height: 100%; display: block; }
.opt:hover:not(:disabled) { border-color: var(--ink); }
.opt.on { border-color: var(--acc); box-shadow: 0 0 0 1.5px var(--acc); background: var(--acc-soft); }
.opt.right { border-color: var(--ok); box-shadow: 0 0 0 1.5px var(--ok); }
.opt.wrong { border-color: var(--no); box-shadow: 0 0 0 1.5px var(--no); }
.opt:disabled { cursor: default; }
.testfoot { display: flex; justify-content: space-between; gap: 0.6rem; padding: 1.2rem 0 0; flex-wrap: wrap; }
.confirm { width: 100%; display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.confirm p { width: 100%; margin: 0 0 0.2rem; }

.center { min-height: 80svh; display: grid; place-content: center; text-align: center; padding: 1rem; }
.center .big { font: 400 1.6rem var(--serif); margin: 0; }

/* Paywall */
.wall, .report { max-width: 32rem; margin: 0 auto; padding: 3rem 1.25rem 4rem; }
.wall h1 { margin: 0.8rem 0 1.6rem; font: 400 clamp(2.4rem, 9vw, 3.2rem)/1.05 var(--serif); letter-spacing: -0.02em; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 1.2rem; }
.lockcard { text-align: center; }
.blurnum { font: 400 5rem/1 var(--serif); filter: blur(12px); user-select: none; padding: 0.6rem 0 0.2rem; }
.bell { width: 100%; display: block; }
.bell text { font-size: 9px; fill: var(--muted); font-family: var(--mono); }
.bell.locked { filter: blur(3px); opacity: 0.6; }
.incl { list-style: none; padding: 0; margin: 1.6rem 0; display: grid; gap: 0.55rem; }
.incl li::before { content: "✓"; color: var(--acc); margin-right: 0.7rem; }
.wall .primary.big { width: 100%; }
.wall .small { text-align: center; margin-top: 0.8rem; }

/* Report */
.iqnum { margin: 0.4rem 0 0; font: 400 clamp(6rem, 30vw, 9rem)/0.9 var(--serif); letter-spacing: -0.04em; }
.iqnum.sm { font-size: 4rem; color: var(--acc); }
.range { margin: -1.2rem 0 1.4rem; font-family: var(--mono); }
.pct { margin: 0.6rem 0 1.6rem; font-size: 1.15rem; color: var(--acc); font-weight: 600; }
.areas { margin-top: 0.8rem; display: grid; gap: 1rem; padding: 1.4rem; }
.area { display: grid; grid-template-columns: 1fr auto; gap: 0.4rem 1rem; font-size: 0.95rem; }
.area b { font-weight: 500; font-variant-numeric: tabular-nums; color: var(--muted); }
.area .progress { grid-column: 1 / -1; }
.report h2 { margin: 3rem 0 1rem; font: 400 1.6rem var(--serif); }
.chips { display: grid; grid-template-columns: repeat(9, 1fr); gap: 0.3rem; }
.chip { aspect-ratio: 1; border-radius: 4px; border: 1px solid transparent; font: 500 0.78rem var(--mono); cursor: pointer; font-variant-numeric: tabular-nums; }
.chip.ok { background: #e4f1ea; color: var(--ok); }
.chip.no { background: #f7e4e1; color: var(--no); }
.chip.skip { background: var(--line); color: var(--muted); }
.chip.sel { border-color: var(--ink); }
.detail .item { margin-top: 1rem; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 1.2rem; }
.detail .prompt { font-size: 1.15rem; }
.certrow { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.certrow input { flex: 1 1 12rem; min-height: 3rem; padding: 0 1rem; border-radius: 6px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font: inherit; }
.cert { margin-top: 1rem; padding: 2.5rem 1.5rem; text-align: center; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.cert .cname { display: block; margin: 1rem 0 0.5rem; font: 400 2rem var(--serif); }
.cert p { margin: 0.3rem 0; }
.again { margin-top: 2.5rem; }

/* Terms */
.wrap { max-width: 40rem; margin: 0 auto; padding: 1.25rem 1.25rem 4rem; }
.top { display: flex; justify-content: space-between; font-size: 0.95rem; }
.top a { color: var(--muted); text-decoration: none; }
.doc h1 { font: 400 2.6rem var(--serif); margin: 2.5rem 0 1.2rem; }
.doc p { color: var(--muted); }
.doc b { color: var(--ink); font-weight: 600; }

@media print {
  body * { visibility: hidden; }
  #cert, #cert * { visibility: visible; }
  #cert { position: fixed; inset: 0; border: 2px solid #1a1a1a; margin: 1.5cm; display: grid; place-content: center; background: #fff; }
}
