/* Layout: answer-sheet motif. Narrow reading column, bubble rows as the recurring mark, score scales as real data. */
:root {
  /* Forest green for buttons, links and highlights; neutrals lean slightly green. */
  --paper: #F5F7F4;
  --surface: #FFFFFF;
  --ink: #14201A;
  --muted: #55645A;
  --line: #DAE2DC;
  --accent: #15803D;
  --accent-ink: #FFFFFF;
  --accent-hover: #166534;
  --accent-text: #15803D;
  --accent-soft: #E2F2E7;
  --ok: #15803D;
  --err: #B93A23;
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Public Sans", "Helvetica Neue", Arial, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --wrap: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0C130F; --surface: #131C16; --ink: #E5EDE7; --muted: #98AB9E;
    --line: #233328; --accent: #15803D; --accent-ink: #FFFFFF; --accent-hover: #166534; --accent-text: #4CC07A; --accent-soft: #15301F; --ok: #4CC07A; --err: #F08A74;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0C130F; --surface: #131C16; --ink: #E5EDE7; --muted: #98AB9E;
  --line: #233328; --accent: #15803D; --accent-ink: #FFFFFF; --accent-hover: #166534; --accent-text: #4CC07A; --accent-soft: #15301F; --ok: #4CC07A; --err: #F08A74;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 10; background: var(--paper);
}
a { color: var(--accent-text); }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h2 { font-size: clamp(30px, 4.2vw, 44px); font-weight: 700; }
h3 { font-size: 21px; font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.band { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.wrap { max-width: var(--wrap); margin: 0 auto; }
.section { padding-block: clamp(56px, 9vw, 104px); }
.section + .section { border-top: 1px solid var(--line); }
.eyebrow {
  font: 500 12px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.section-head { display: grid; gap: 14px; max-width: 640px; margin-bottom: 44px; }
.section-head p { color: var(--muted); font-size: 18px; }

/* Header */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5;
  background: var(--paper); border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 800 21px/1 var(--display); }
.brand-mark { display: inline-grid; grid-template-columns: repeat(2, 9px); gap: 3px; }
.brand-mark i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--ink); }
.brand-mark i:nth-child(1), .brand-mark i:nth-child(4) { background: var(--accent); border-color: var(--accent); }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:not(.btn):hover { color: var(--accent-text); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 6px;
  padding: 13px 22px; font: 600 16px/1 var(--body); text-decoration: none; cursor: pointer;
  transition: background-color .15s ease;
}
.btn:hover { background: var(--accent-hover); }
.nav .btn { padding: 10px 16px; font-size: 14px; color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); background: transparent; }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } }

/* Hero */
.hero { padding-block: clamp(48px, 8vw, 96px) clamp(56px, 8vw, 96px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 6vw, 72px); align-items: center; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } }
.hero h1 { font-size: clamp(38px, 5.4vw, 62px); font-weight: 700; letter-spacing: -0.02em; }
.hero h1 em { font-style: normal; color: var(--accent-text); }
.hero-copy { display: grid; gap: 24px; min-width: 0; }
.hero-copy > p { font-size: 19px; color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 4px 0 0; list-style: none; font-size: 15px; color: var(--muted); }
.facts li { display: flex; align-items: center; gap: 8px; }
.facts li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }

/* Answer sheet card */
.sheet {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 24px; display: grid; gap: 18px; min-width: 0;
}
.sheet-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font: 500 12px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); border-bottom: 1px dashed var(--line); padding-bottom: 14px; }
.rows { display: grid; gap: 11px; }
.row { display: grid; grid-template-columns: 26px repeat(4, 1fr); align-items: center; gap: 8px; }
.row b { font: 500 13px/1 var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.bub {
  justify-self: center; width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid var(--line); display: grid; place-items: center;
  font: 500 11px/1 var(--mono); color: var(--muted);
}
.bub.on { background: var(--ink); border-color: var(--ink); color: transparent; animation: fill .5s ease both; }
.row:nth-child(2) .bub.on { animation-delay: .15s; } .row:nth-child(3) .bub.on { animation-delay: .3s; }
.row:nth-child(4) .bub.on { animation-delay: .45s; } .row:nth-child(5) .bub.on { animation-delay: .6s; }
@keyframes fill { from { background: transparent; color: var(--muted); } }
.sheet-foot { display: flex; justify-content: space-between; align-items: end; gap: 12px; border-top: 1px dashed var(--line); padding-top: 16px; }
.sheet-foot small { display: block; font: 500 11px/1.3 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.sheet-foot strong { font: 800 40px/1 var(--display); letter-spacing: -0.02em; }
.sheet-foot strong span { color: var(--accent-text); }

/* Tests */
.tests { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 620px) { .tests { grid-template-columns: 1fr; } }
.compare-wrap { overflow-x: auto; margin-top: 40px; }
.compare { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15.5px; }
.compare caption { text-align: left; font: 700 21px/1.2 var(--display); padding-bottom: 14px; }
.compare th, .compare td { text-align: left; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.compare tbody th { font-weight: 600; width: 22%; }
.compare td { color: var(--muted); font-variant-numeric: tabular-nums; }
.test { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 24px; display: grid; grid-template-rows: auto auto 1fr auto; gap: 12px; min-width: 0; }
.test-name { font: 800 44px/1 var(--display); letter-spacing: -0.02em; }
.test-for { font-size: 14px; font-weight: 600; color: var(--accent-text); }
.test p { color: var(--muted); font-size: 15.5px; }
.scale { border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 8px; }
.scale-label { display: flex; justify-content: space-between; font: 500 12px/1 var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.scale-bar { height: 6px; border-radius: 3px; background: var(--accent-soft); position: relative; }
.scale-bar::after { content: ""; position: absolute; right: 0; top: 50%; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); transform: translate(30%, -50%); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: step; display: grid; gap: 10px; align-content: start; min-width: 0; }
.steps li::before {
  content: counter(step); width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid var(--ink); display: grid; place-items: center;
  font: 500 15px/1 var(--mono);
}
.steps li:first-child::before { background: var(--ink); color: var(--paper); }
.steps p { color: var(--muted); font-size: 15.5px; }

/* Formats */
.formats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 700px) { .formats { grid-template-columns: 1fr; } }
.format { border: 1px solid var(--line); border-radius: 12px; padding: 28px; display: grid; gap: 12px; background: var(--surface); min-width: 0; }
.format .tag { font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); }
.format ul { margin: 4px 0 0; padding-left: 20px; color: var(--muted); display: grid; gap: 6px; font-size: 15.5px; }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 72px); align-items: start; }
@media (max-width: 820px) { .about { grid-template-columns: 1fr; } }
.creds { display: grid; gap: 0; border-top: 1px solid var(--line); }
.cred { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-block: 18px; border-bottom: 1px solid var(--line); }
.cred span { color: var(--muted); font-size: 15.5px; }
.cred strong { font: 700 28px/1 var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.about-copy { display: grid; gap: 18px; max-width: 62ch; min-width: 0; }
.about-copy p { font-size: 18px; }
.about-copy p + p { color: var(--muted); font-size: 17px; }

/* FAQ */
.faq { display: grid; border-top: 1px solid var(--line); max-width: 780px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding-block: 20px; display: flex; justify-content: space-between; gap: 16px; font: 600 18px/1.35 var(--body); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 500 22px/1 var(--mono); color: var(--accent-text); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 22px; color: var(--muted); max-width: 62ch; }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 72px); align-items: start; }
@media (max-width: 820px) { .contact { grid-template-columns: 1fr; } }
.contact-intro { display: grid; gap: 16px; min-width: 0; }
.contact-intro p { color: var(--muted); font-size: 18px; }
form { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: clamp(20px, 4vw, 32px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; min-width: 0; }
@media (max-width: 560px) { form { grid-template-columns: 1fr; } }
.field { display: grid; gap: 7px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
label, legend { font-weight: 600; font-size: 14.5px; }
.opt { font-weight: 400; color: var(--muted); }
input, select, textarea {
  width: 100%; font: 400 16px/1.4 var(--body); color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--line); border-radius: 8px; padding: 11px 13px;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; min-width: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer; font-size: 15px; }
.choice span::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--muted); }
.choice input:checked + span { border-color: var(--ink); }
.choice input:checked + span::before { background: var(--ink); border-color: var(--ink); }
.choice input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.status { font-size: 15px; color: var(--muted); }
.status.ok { color: var(--ok); font-weight: 600; }
.status.err { color: var(--err); font-weight: 600; }
.hp { position: absolute; left: -9999px; }

footer { border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 28px; color: var(--muted); font-size: 14px; }

/* Home: closing call to action */
.cta { background: var(--ink); color: var(--paper); }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-block: clamp(44px, 7vw, 72px); }
.cta-inner > div { display: grid; gap: 10px; min-width: 0; }
.cta p { color: color-mix(in srgb, var(--paper) 78%, var(--ink)); font-size: 18px; }
.cta .btn { background: var(--paper); color: var(--ink); }

/* Contact page */
.contact-hero h1 { font-size: clamp(36px, 5.2vw, 56px); font-weight: 800; letter-spacing: -0.02em; }
.next { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 0; counter-reset: n; border-top: 1px solid var(--line); }
.next li { counter-increment: n; display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 14px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.next li::before { content: counter(n); grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; font: 500 13px/1 var(--mono); }
.next li:first-child::before { background: var(--ink); color: var(--paper); }
.next strong { font-weight: 600; }
.next span { color: var(--muted); font-size: 15.5px; }
.contact-intro p.where { font: 500 13px/1.4 var(--mono); letter-spacing: .04em; color: var(--muted); }

/* Revision 2: plainer structure */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.section-head p + p { font-size: 17px; }
.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 72px); align-items: start; }
.split .section-head { margin-bottom: 0; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.compare-wrap { margin-top: 0; }
.compare { min-width: 460px; }
.compare thead th { font: 700 22px/1 var(--display); letter-spacing: -0.01em; text-transform: none; color: var(--ink); padding-bottom: 16px; }

.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.stat-row { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat-row > div { padding: 22px 20px; border-left: 1px solid var(--line); display: grid; gap: 4px; }
.stat-row > div:first-child { border-left: 0; padding-left: 0; }
.stat-row dt { font-size: 14px; color: var(--muted); }
.stat-row dd { margin: 0; font: 700 22px/1.2 var(--display); }
@media (max-width: 720px) {
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-row > div { padding: 16px 0; border-left: 0; }
  .stat-row > div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
  .stat-row > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

.steps li::before { content: counter(step) "."; width: auto; height: auto; border: 0; border-radius: 0; display: block; font: 700 30px/1 var(--display); color: var(--accent-text); }
.steps li:first-child::before { background: none; color: var(--accent-text); }
.steps { border-top: 1px solid var(--line); padding-top: 28px; }
.formats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.formats p { color: var(--muted); font-size: 16px; max-width: 52ch; }
.formats strong { color: var(--ink); }
@media (max-width: 700px) { .formats { grid-template-columns: 1fr; } }

.about-side { display: grid; gap: 24px; min-width: 0; }
.photo { aspect-ratio: 1 / 1; width: 100%; max-width: 100%; border-radius: 10px; background: var(--accent-soft); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.about-copy h2 { margin-bottom: 6px; }
@media (max-width: 820px) { .photo { max-width: 320px; } }

.links { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.links li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.links a { font-weight: 600; text-decoration: none; }
.links a::after { content: " \2197"; }
.links a:hover { text-decoration: underline; }
.links span { color: var(--muted); font-size: 14px; white-space: nowrap; }

.btn:disabled, .btn:disabled:hover { background: var(--muted); color: var(--surface); cursor: default; }
