/* Exam180 "answer sheet" look: white paper, red-orange drop-out ink ruling, black pencil bubbles.
   Fonts are self-hosted (SIL Open Font License, see assets/fonts/LICENSE-*.txt): Barlow Condensed (headings, labels),
   IBM Plex Sans (text), IBM Plex Mono (numbers, codes). No third-party requests. */
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url(fonts/barlow-condensed-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-display: swap; src: url(fonts/barlow-condensed-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url(fonts/ibm-plex-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: italic; font-display: swap; src: url(fonts/ibm-plex-sans-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url(fonts/ibm-plex-sans-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url(fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 600; font-display: swap; src: url(fonts/ibm-plex-mono-latin-600-normal.woff2) format("woff2"); }

:root {
  --paper: #ffffff; --ink: #141414; --muted: #5a5955; --line: #e4dfda;
  --red: #e4572e; --red-ink: #b8401c; --rule: #f4cbbd; --tint: #fff5f0;
  --bg: var(--paper); --card: var(--paper); --brand: var(--ink); --brand-2: var(--red-ink); --accent: var(--red);
  --ok: #1b7343; --ok-bg: #e8f4ec; --bad: #b42318; --bad-bg: #fdeceb; --warn-bg: var(--tint);
  --radius: 2px; --shadow: none;
  --font: "IBM Plex Sans", "Segoe UI", Roboto, Arial, sans-serif;
  --head: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --mono: "IBM Plex Mono", Consolas, "Courier New", monospace;
  --serif: var(--head);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.6 var(--font); color: var(--ink); background: var(--paper); }
a { color: var(--red-ink); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--head); line-height: 1.02; margin: 0 0 .5em; text-transform: uppercase; }
h1 { font-weight: 800; font-size: clamp(2.3rem, 5.6vw, 3.6rem); letter-spacing: .005em; }
h2 { font-weight: 800; font-size: clamp(1.6rem, 3.4vw, 2.15rem); letter-spacing: .01em; }
h3 { font-weight: 800; font-size: 1.28rem; letter-spacing: .02em; }
p { margin: 0 0 1em; }
::selection { background: var(--rule); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.mono, .count, .timer, .price { font-family: var(--mono); }

/* header / footer */
.top { background: var(--paper); border-bottom: 2px solid var(--red); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.logo { display: inline-flex; align-items: center; gap: 2px; font: 800 1.55rem/1 var(--head); letter-spacing: .03em; color: var(--ink); text-decoration: none; text-transform: uppercase; }
.logo .b { display: inline-flex; align-items: center; justify-content: center; width: 1.05em; height: 1.05em; margin-left: 3px; border-radius: 50%;
  background: var(--ink); color: #fff; font: 600 .6em/1 var(--mono); letter-spacing: 0; }
.logo .b:first-of-type { margin-left: 7px; }
.top nav a { margin-left: 20px; color: var(--red-ink); text-decoration: none; font: 600 1.02rem var(--head); letter-spacing: .1em; text-transform: uppercase; }
.top nav a:hover { color: var(--ink); }
@media (max-width: 560px) { .top nav a { margin-left: 12px; font-size: .9rem; letter-spacing: .06em; } .top nav a:nth-child(2) { display: none; } }
footer { border-top: 2px solid var(--red); margin-top: 64px; padding: 26px 0 40px; color: var(--muted); font-size: .84rem; }
footer p { margin-bottom: .6em; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: .55em; border: 2px solid var(--ink); border-radius: 0; padding: 11px 20px 10px;
  font: 800 1.08rem/1 var(--head); letter-spacing: .08em; text-transform: uppercase;
  background: var(--ink); color: #fff; cursor: pointer; text-decoration: none; transition: background .12s, color .12s; }
.btn::before { content: ""; width: .5em; height: .5em; background: currentColor; flex: none; }
.btn:hover { background: var(--red); border-color: var(--red); color: #fff; }
.btn.secondary { background: var(--paper); color: var(--ink); }
.btn.secondary::before { background: transparent; border: 2px solid currentColor; width: .55em; height: .55em; border-radius: 50%; }
.btn.secondary:hover { background: var(--tint); color: var(--ink); border-color: var(--ink); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--red-ink); padding: 8px 6px; }
.btn.ghost::before { display: none; }
.btn.ghost:hover { color: var(--ink); background: transparent; }
.btn.small { padding: 8px 13px 7px; font-size: .95rem; }
.btn:disabled { opacity: .4; cursor: not-allowed; }

/* landing */
.hero { padding: 54px 0 40px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } .sheet { display: none; } }
.hero .kicker, .kicker { font: 600 .82rem var(--mono); color: var(--red-ink); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.hero p.lead { font-size: 1.14rem; color: var(--muted); max-width: 620px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; align-items: center; }
.hero .note, .note { color: var(--muted); font-size: .9rem; }
.sheet { border: 2px solid var(--red); padding: 14px 16px 10px; min-width: 250px; font-family: var(--mono); color: var(--red-ink);
  background: var(--paper); }
.sheet .h { font: 800 .95rem var(--head); letter-spacing: .12em; text-transform: uppercase; border-bottom: 2px solid var(--red); padding-bottom: 6px; margin-bottom: 4px; }
.sheet .row { display: flex; align-items: center; gap: 9px; height: 34px; font-size: .85rem; border-bottom: 1px solid var(--rule); }
.sheet .row:last-child { border-bottom: 0; }
.sheet .row > span:first-child { width: 22px; }
.bub { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid var(--red); color: var(--red-ink); font: 600 .68rem var(--mono); }
.bub.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.grid { display: grid; gap: 18px; }
.g3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.card { background: var(--paper); border: 1.5px solid var(--ink); border-radius: 0; padding: 22px; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); margin: 0; }
section { padding: 34px 0; }
section > h2 { display: inline-block; border-bottom: 3px solid var(--red); padding-bottom: 4px; margin-bottom: .7em; }
.price { font-size: 2rem; font-weight: 600; margin: 6px 0 2px; }
.plan { position: relative; }
.plan ul { padding-left: 0; list-style: none; margin: 12px 0 14px; color: var(--muted); font-size: .95rem; }
.plan li { padding: 4px 0 4px 18px; border-bottom: 1px solid var(--rule); position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: .68em; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--red); }
.plan.featured { border-width: 3px; box-shadow: 6px 6px 0 var(--red); }
.tag { display: inline-block; font: 600 .7rem var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 3px 7px;
  border: 1.5px solid var(--ink); color: var(--ink); background: var(--paper); border-radius: 0; }
.tag.soon { border-color: var(--red); color: var(--red-ink); background: var(--tint); }
.weights { display: flex; height: 16px; overflow: hidden; margin: 12px 0 8px; border: 1.5px solid var(--ink); }
.weights div:nth-child(1) { background: var(--ink); } .weights div:nth-child(2) { background: var(--red); }
.weights div:nth-child(3) { background: repeating-linear-gradient(45deg, var(--ink) 0 2px, var(--paper) 2px 6px); }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font: .85rem var(--mono); color: var(--muted); }
.legend i { display: inline-block; width: 11px; height: 11px; margin-right: 6px; vertical-align: -1px; border: 1.5px solid var(--ink); }
.legend span:nth-child(1) i { background: var(--ink) !important; } .legend span:nth-child(2) i { background: var(--red) !important; border-color: var(--red); }
.legend span:nth-child(3) i { background: repeating-linear-gradient(45deg, var(--ink) 0 2px, var(--paper) 2px 5px) !important; }
.faq details { border: 0; border-bottom: 1px solid var(--rule); padding: 14px 4px; margin: 0; }
.faq details:first-of-type { border-top: 2px solid var(--red); }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; gap: 12px; align-items: baseline; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: ""; flex: none; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--red); transform: translateY(2px); }
.faq details[open] summary::before { background: var(--ink); border-color: var(--ink); }
.faq details p { margin: 10px 0 0 26px; color: var(--muted); }

/* forms: inputs are boxes on the sheet; radios and checkboxes are bubbles */
label { display: block; font: 800 1.02rem var(--head); letter-spacing: .04em; text-transform: uppercase; margin: 16px 0 6px; }
input[type=email], input[type=text], select, textarea { width: 100%; padding: 10px 12px; border: 1.5px solid var(--ink); border-radius: 0;
  font: 1rem var(--font); background: var(--paper); color: var(--ink); }
textarea { min-height: 84px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--rule); outline-offset: 0; border-color: var(--red); }
input[type=radio], input[type=checkbox] { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; margin: 0 8px 0 0; flex: none;
  border: 1.5px solid var(--red); border-radius: 50%; background: var(--paper); vertical-align: -4px; cursor: pointer; }
input[type=checkbox] { border-radius: 2px; }
input[type=radio]:checked, input[type=checkbox]:checked { background: var(--ink); border-color: var(--ink); box-shadow: inset 0 0 0 2px var(--paper); }
input[type=radio]:focus-visible, input[type=checkbox]:focus-visible { outline: 3px solid var(--rule); }
.radio-row { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-row label { display: inline-flex; align-items: center; font: 400 .95rem var(--font); text-transform: none; letter-spacing: 0; margin: 0;
  padding: 7px 12px; border: 1.5px solid var(--line); border-radius: 0; cursor: pointer; background: var(--paper); }
.radio-row label:has(input:checked) { border-color: var(--ink); background: var(--tint); }
label.check { display: flex; gap: 0; align-items: flex-start; font: 400 .95rem var(--font); text-transform: none; letter-spacing: 0; margin-top: 12px; }
label.check input { margin-top: 3px; }
.hp { position: absolute; left: -9999px; }
.thanks { background: var(--ok-bg); color: var(--ok); padding: 12px 16px; border-left: 4px solid var(--ok); font-weight: 600; }

/* exam */
.exam-bar { position: sticky; top: 0; z-index: 5; background: var(--paper); border-bottom: 2px solid var(--red); }
.exam-bar .wrap { display: flex; align-items: center; gap: 14px; height: 56px; }
.exam-bar .count { font-weight: 600; }
.progress { flex: 1; height: 8px; background: repeating-linear-gradient(90deg, var(--rule) 0 6px, var(--paper) 6px 8px); }
.progress > div { height: 100%; background: var(--ink); transition: width .2s; }
.timer { font-weight: 600; padding: 3px 9px; border: 1.5px solid var(--ink); font-variant-numeric: tabular-nums; }
.timer.low { border-color: var(--bad); color: var(--bad); background: var(--bad-bg); }
.exam-main { padding-top: 26px; padding-bottom: 40px; }
.qlayout { display: grid; gap: 22px; }
.qlayout.has-case { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: start; }
@media (max-width: 860px) { .qlayout.has-case { grid-template-columns: 1fr; } }
.case-panel { position: sticky; top: 76px; max-height: calc(100vh - 96px); overflow: auto; border-color: var(--red); background: var(--tint); }
@media (max-width: 860px) { .case-panel { position: static; max-height: none; } }
.case-panel h3 { color: var(--red-ink); }
.case-panel p { color: var(--ink); font-size: .95rem; }
.meta { font: 600 .74rem var(--mono); color: var(--red-ink); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.stem { font-size: 1.08rem; margin-bottom: 18px; }
.opts { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.opt { display: flex; gap: 14px; align-items: flex-start; padding: 13px 10px; border: 0; border-bottom: 1px solid var(--rule); border-radius: 0;
  font: 400 1rem/1.55 var(--font); text-transform: none; letter-spacing: 0; margin: 0;
  background: var(--paper); cursor: pointer; transition: background .1s; position: relative; }
.opt:hover { background: var(--tint); }
.opt input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.opt .letter { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin-top: -2px; border-radius: 50%;
  border: 1.5px solid var(--red); color: var(--red-ink); font: 600 .85rem var(--mono); }
.opt input:focus-visible ~ .letter { outline: 3px solid var(--rule); }
.opt.selected .letter { background: var(--ink); border-color: var(--ink); color: #fff; }
.opt.struck .letter { border-style: dashed; }
.opt.correct { background: var(--ok-bg); } .opt.correct .letter { background: var(--ok); border-color: var(--ok); color: #fff; }
.opt.wrong { background: var(--bad-bg); } .opt.wrong .letter { background: var(--bad); border-color: var(--bad); color: #fff; }
.opt.locked { cursor: default; }
.why { font-size: .92rem; color: var(--muted); margin-top: 6px; }
.why b { color: var(--ink); }
.trapchip { display: inline-block; font: 600 .68rem var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--bad); border: 1.5px solid var(--bad); padding: 1px 6px; margin-left: 4px; }
.match-row { display: grid; grid-template-columns: 1fr 190px; gap: 12px; align-items: center; padding: 12px 10px; border: 0; border-bottom: 1px solid var(--rule); background: var(--paper); }
@media (max-width: 560px) { .match-row { grid-template-columns: 1fr; } }
.match-row.correct { background: var(--ok-bg); } .match-row.wrong { background: var(--bad-bg); }
.explain { margin-top: 18px; padding: 14px 16px; background: var(--tint); border-left: 4px solid var(--red); }
.qnav { display: flex; justify-content: space-between; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.qnav .right { display: flex; gap: 10px; }
.navgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 8px 6px; margin-top: 28px; padding-top: 16px; border-top: 2px solid var(--red); }
.navgrid button { width: 34px; height: 34px; justify-self: center; border-radius: 50%; border: 1.5px solid var(--red); background: var(--paper);
  font: 600 .74rem var(--mono); cursor: pointer; color: var(--red-ink); position: relative; padding: 0; }
.navgrid button.answered { background: var(--ink); border-color: var(--ink); color: #fff; }
.navgrid button.current { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--red); }
.navgrid button.flagged::after { content: ""; position: absolute; top: -3px; right: -3px; width: 10px; height: 10px; background: var(--red); border: 2px solid var(--paper); }
.flagbtn.on { color: var(--red); }

/* exhibits */
table.exhibit { width: 100%; border-collapse: collapse; font-size: .86rem; margin: 10px 0 14px; background: var(--paper); border: 1.5px solid var(--ink); }
table.exhibit th, table.exhibit td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; }
table.exhibit th { background: var(--ink); color: #fff; font: 600 .78rem var(--mono); text-transform: uppercase; letter-spacing: .03em; }
table.exhibit td.num, table.exhibit th.num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.chart { width: 100%; height: auto; background: var(--paper); border: 1.5px solid var(--ink); }
.excerpt { background: var(--paper); border: 1.5px dashed var(--ink); padding: 10px 14px; font-size: .88rem; }
.excerpt ul { margin: 6px 0 0; padding-left: 18px; }

/* results */
.score-hero { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center; }
@media (max-width: 600px) { .score-hero { grid-template-columns: 1fr; } }
.ring { width: 150px; height: 150px; }
.band { display: inline-block; font: 600 .78rem var(--mono); text-transform: uppercase; letter-spacing: .06em; padding: 4px 10px; border: 1.5px solid currentColor; }
.bar { height: 12px; background: repeating-linear-gradient(90deg, var(--rule) 0 6px, var(--paper) 6px 8px); overflow: hidden; margin: 6px 0 2px; }
.bar > div { height: 100%; }
.domain-row { margin-bottom: 14px; }
.domain-row .top-line { display: flex; justify-content: space-between; font-weight: 600; }
.domain-row .top-line span:last-child { font-family: var(--mono); }
.trap-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.trap-row:last-child { border-bottom: 0; }
.trap-row .n { font: 600 1rem var(--mono); color: var(--bad); white-space: nowrap; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0 16px; }
.filters button { border: 1.5px solid var(--ink); background: var(--paper); border-radius: 0; padding: 6px 13px 5px; cursor: pointer;
  font: 800 .92rem var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.filters button.on { background: var(--ink); color: #fff; }
.review-item { margin-bottom: 18px; }
.review-item .head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.pill { font: 600 .7rem var(--mono); text-transform: uppercase; letter-spacing: .06em; padding: 3px 8px; border: 1.5px solid currentColor; }
.pill.ok { background: var(--ok-bg); color: var(--ok); } .pill.bad { background: var(--bad-bg); color: var(--bad); } .pill.skip { background: var(--paper); color: var(--muted); }
.report-box { margin-top: 10px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.hidden { display: none !important; }
.disclaimer { font-size: .82rem; color: var(--muted); }
.engage { margin-top: 26px; }
.engage h2 { font-size: 1.5rem; }
.locked-tag { font: 600 .7rem var(--mono); text-transform: uppercase; padding: 2px 7px; border: 1.5px solid var(--red); color: var(--red-ink); margin-left: 6px; }

/* landing: info blocks read as ruled rows on the sheet, not boxes */
#how .card { border: 0; border-top: 3px solid var(--ink); padding: 14px 0 0; }
#how .card h3::before { content: counter(item, decimal-leading-zero); counter-increment: item; display: inline-block; margin-right: 10px;
  font: 600 .8rem var(--mono); color: var(--red-ink); vertical-align: 3px; }
#how .grid { counter-reset: item; gap: 28px; }
#study-mode .card, #deal .card, .plain-note { border: 0; border-left: 4px solid var(--red); background: var(--tint); padding: 18px 22px; }
section:has(> .card .weights) > .card { border: 0; border-top: 3px solid var(--ink); padding: 14px 0 0; }
