/* Arkansas Funeral Law Exam Prep — answer-sheet visual system.
   One memorable device: the filled answer bubble. Everything else stays quiet. */

@font-face { font-family: 'Public Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/public-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Public Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/public-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Public Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/public-sans-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Public Sans'; font-style: normal; font-weight: 800; font-display: swap; src: url('/assets/fonts/public-sans-latin-800-normal.woff2') format('woff2'); }

:root {
  --paper: #f6f8f7;
  --sheet: #ffffff;
  --ink: #1d2b2f;
  --ink-soft: #4a5a5e;
  --evergreen: #24584a;
  --evergreen-deep: #183d33;
  --brass: #a9802f;
  --mist: #e2eae6;
  --line: #c9d5d0;
  --wrong: #9e3434;
  --wrong-wash: #f6e7e5;
  --right-wash: #e3efe9;
  --radius: 6px;
  --measure: 68ch;
  --font: 'Public Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: 'tnum' 1;
}
img { max-width: 100%; height: auto; }
a { color: var(--evergreen); text-underline-offset: 0.18em; }
a:hover { color: var(--evergreen-deep); }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.prose { max-width: var(--measure); }

/* ---------- Type scale (1.25 ratio) ---------- */
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.55rem, 2.6vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 56ch; }
.small { font-size: 0.9rem; color: var(--ink-soft); }
.cite { font-size: 0.85rem; color: var(--ink-soft); }

/* ---------- Header / footer ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--sheet); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; letter-spacing: -0.01em; }
.brand-mark { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--evergreen); position: relative; flex: none; }
.brand-mark::after { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: var(--evergreen); }
.nav { display: flex; gap: 20px; font-size: 0.95rem; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { text-decoration: underline; }
@media (max-width: 640px) { .nav .hide-sm { display: none; } }

.site-footer { margin-top: 96px; border-top: 1px solid var(--line); background: var(--sheet); padding: 40px 0 56px; font-size: 0.9rem; color: var(--ink-soft); }
.site-footer .cols { display: grid; gap: 24px; grid-template-columns: 2fr 1fr 1fr; }
.site-footer a { color: var(--ink-soft); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
@media (max-width: 720px) { .site-footer .cols { grid-template-columns: 1fr; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 700; font-size: 1.05rem;
  padding: 14px 22px; border-radius: var(--radius);
  border: 2px solid var(--evergreen); background: var(--evergreen); color: #fff;
  cursor: pointer; text-decoration: none;
}
.btn:hover { background: var(--evergreen-deep); border-color: var(--evergreen-deep); color: #fff; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn-quiet { background: transparent; color: var(--evergreen); }
.btn-quiet:hover { background: var(--right-wash); color: var(--evergreen-deep); }
.price-tag { font-weight: 800; padding-left: 10px; border-left: 1px solid rgba(255,255,255,0.45); }

/* ---------- Answer bubbles (the signature element) ---------- */
.choices { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.choice {
  display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start;
  width: 100%; text-align: left; font: inherit; color: inherit;
  background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; cursor: pointer;
}
.choice:hover { border-color: var(--evergreen); }
.bubble {
  width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid var(--ink-soft);
  display: grid; place-items: center;
  font-size: 0.82rem; font-weight: 700; color: var(--ink-soft);
  transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
}
.choice[aria-checked='true'] { border-color: var(--evergreen); background: var(--right-wash); }
.choice[aria-checked='true'] .bubble { background: var(--evergreen); border-color: var(--evergreen); color: #fff; }
.choice.is-correct { border-color: var(--evergreen); background: var(--right-wash); }
.choice.is-correct .bubble { background: var(--evergreen); border-color: var(--evergreen); color: #fff; }
.choice.is-wrong { border-color: var(--wrong); background: var(--wrong-wash); }
.choice.is-wrong .bubble { background: var(--wrong); border-color: var(--wrong); color: #fff; }
.choice[disabled] { cursor: default; }
@media (prefers-reduced-motion: reduce) { .bubble { transition: none; } }

/* ---------- Home ---------- */
.hero { padding: 64px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; gap: 36px; } .hero { padding-top: 40px; } }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 28px 0 12px; }
.facts { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 8px; }
.facts li { display: grid; grid-template-columns: 16px 1fr; gap: 12px; align-items: baseline; }
.facts li::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--evergreen); transform: translateY(-1px); }

.sheet {
  background: var(--sheet); border: 1px solid var(--line); border-radius: 10px;
  padding: 24px; box-shadow: 0 1px 0 var(--line), 0 18px 40px -28px rgba(29, 43, 47, 0.35);
}
.sheet-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 1px dashed var(--line); padding-bottom: 12px; margin-bottom: 16px; font-size: 0.9rem; color: var(--ink-soft); }
.sheet-q { font-weight: 600; font-size: 1.08rem; margin-bottom: 16px; }
.feedback { margin-top: 14px; padding: 12px 14px; border-radius: var(--radius); background: var(--mist); font-size: 0.95rem; }
.feedback strong { display: block; }
.sheet-foot { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-top: 16px; font-size: 0.9rem; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--evergreen); text-decoration: underline; cursor: pointer; }

.band { padding: 72px 0; }
.band + .band { border-top: 1px solid var(--line); }

/* Blueprint: section weights shown as a filled-bubble row, like a scored sheet */
.blueprint { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 2px; }
.blueprint li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.blueprint a { color: var(--ink); text-decoration: none; font-weight: 600; }
.blueprint a:hover { color: var(--evergreen); text-decoration: underline; }
.dots { display: flex; gap: 5px; }
.dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--evergreen); display: block; }
.blueprint .count { font-size: 0.9rem; color: var(--ink-soft); min-width: 7ch; text-align: right; }
.bp-right { display: flex; align-items: center; gap: 14px; }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--evergreen); color: var(--evergreen); font-weight: 800; margin-bottom: 12px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 20px; } }

.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { margin: 10px 0 0; max-width: var(--measure); }

.notice { border-left: 4px solid var(--brass); background: var(--sheet); padding: 14px 18px; border-radius: 0 var(--radius) var(--radius) 0; }

/* ---------- Exam ---------- */
.exam-shell { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; padding: 32px 0; align-items: start; }
@media (max-width: 900px) { .exam-shell { grid-template-columns: 1fr; } }
.qcard { background: var(--sheet); border: 1px solid var(--line); border-radius: 10px; padding: 28px; }
@media (max-width: 520px) { .qcard { padding: 18px; } }
.qmeta { display: flex; justify-content: space-between; gap: 12px; color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 14px; }
.qtext { font-size: 1.2rem; font-weight: 600; margin-bottom: 20px; max-width: 62ch; }
.qnav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.mark { display: inline-flex; align-items: center; gap: 8px; font-size: 0.95rem; cursor: pointer; }
.mark input { width: 18px; height: 18px; accent-color: var(--brass); }

.panel { background: var(--sheet); border: 1px solid var(--line); border-radius: 10px; padding: 20px; position: sticky; top: 16px; }
@media (max-width: 900px) { .panel { position: static; } }
.timer { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; }
.timer.low { color: var(--wrong); }
.grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; margin: 16px 0; }
.cell {
  aspect-ratio: 1; border-radius: 50%; border: 1.5px solid var(--ink-soft); background: var(--sheet);
  font: inherit; font-size: 0.68rem; font-weight: 700; color: var(--ink-soft); cursor: pointer; padding: 0;
  display: grid; place-items: center;
}
.cell.answered { background: var(--evergreen); border-color: var(--evergreen); color: #fff; }
.cell.marked { box-shadow: 0 0 0 2px var(--brass); }
.cell.current { outline: 2px solid var(--ink); outline-offset: 2px; }
.legend { display: grid; gap: 6px; font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 16px; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; border: 1.5px solid var(--ink-soft); }
.legend i.a { background: var(--evergreen); border-color: var(--evergreen); }
.legend i.m { box-shadow: 0 0 0 2px var(--brass); }

.state { padding: 80px 0; text-align: left; }

/* ---------- Results ---------- */
.verdict { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; padding: 28px; border-radius: 10px; background: var(--sheet); border: 1px solid var(--line); }
.verdict.pass { border-color: var(--evergreen); }
.verdict.fail { border-color: var(--wrong); }
.score-ring { width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center; text-align: center; font-weight: 800; }
.score-ring b { font-size: 2rem; display: block; line-height: 1; }
.score-ring span { font-size: 0.8rem; font-weight: 600; color: var(--ink-soft); }
.verdict h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 6px; }
@media (max-width: 560px) { .verdict { grid-template-columns: 1fr; } }

.bars { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 12px; }
.bars li { display: grid; grid-template-columns: minmax(0, 1fr) 90px; gap: 6px 16px; align-items: center; }
.bar { grid-column: 1 / -1; height: 8px; background: var(--mist); border-radius: 4px; overflow: hidden; position: relative; }
.bar > i { position: absolute; inset: 0 auto 0 0; background: var(--evergreen); border-radius: 4px; }
.bar.weak > i { background: var(--wrong); }
.bar::after { content: ''; position: absolute; top: -3px; bottom: -3px; left: 75%; width: 2px; background: var(--ink); opacity: 0.55; }
.bars .frac { text-align: right; font-size: 0.9rem; color: var(--ink-soft); }

.recap { display: grid; gap: 18px; margin-top: 16px; }
.recap article { background: var(--sheet); border: 1px solid var(--line); border-left: 4px solid var(--wrong); border-radius: 0 10px 10px 0; padding: 18px 20px; }
.recap h3 { margin-bottom: 4px; }
.recap .meta { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 10px; }

.review { display: grid; gap: 16px; margin-top: 16px; }
.review article { background: var(--sheet); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; }
.review .ans { display: grid; gap: 6px; margin: 10px 0; }
.review .ans div { padding: 8px 12px; border-radius: var(--radius); }
.review .yours { background: var(--wrong-wash); }
.review .right { background: var(--right-wash); }

.section-title { margin-top: 48px; }

/* ---------- Study pages ---------- */
.crumbs { font-size: 0.9rem; color: var(--ink-soft); margin: 28px 0 8px; }
.study-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; padding-bottom: 24px; }
@media (max-width: 900px) { .study-grid { grid-template-columns: 1fr; } }
.cta-card { background: var(--sheet); border: 1px solid var(--line); border-radius: 10px; padding: 22px; position: sticky; top: 16px; }
.cites { padding-left: 1.1em; }

@media print {
  .site-header, .site-footer, .no-print { display: none !important; }
  body { background: #fff; }
  .recap article, .review article, .verdict { break-inside: avoid; }
}

/* Answered sample/review choices stay fully legible */
.choice:disabled { opacity: 1; color: var(--ink); }
.choice:disabled .bubble { opacity: 1; }
.choice.is-correct:disabled .bubble, .choice.is-wrong:disabled .bubble { color: #fff; }

.nav a { white-space: nowrap; }
@media (max-width: 460px) {
  .brand { font-size: 0.95rem; }
  .brand-mark { width: 22px; height: 22px; }
}
.site-footer ul { align-content: start; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; }

/* NBE product cards + proportional blueprint bars */
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 24px; }
.product { background: var(--sheet); border: 1px solid var(--line); border-radius: 10px; padding: 20px 22px; }
.product h3 a { color: var(--ink); text-decoration: none; }
.product h3 a:hover { color: var(--evergreen); text-decoration: underline; }
.bpbar { display: block; width: 160px; height: 10px; background: var(--mist); border-radius: 5px; overflow: hidden; }
.bpbar i { display: block; height: 100%; background: var(--evergreen); border-radius: 5px; }
@media (max-width: 520px) { .bpbar { width: 80px; } }
.grid { grid-template-columns: repeat(10, minmax(0, 1fr)); }
.cell { min-width: 0; overflow: hidden; font-size: 0.62rem; letter-spacing: -0.02em; }
.grid.dense { gap: 4px; }
.grid.dense .cell { border-radius: 5px; aspect-ratio: auto; height: 22px; font-size: 0.62rem; }
.score-ring b { font-size: 1.6rem; }
.buy-pair { display: inline-flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.buy-pair.stacked { display: grid; gap: 8px; width: 100%; }
.buy-pair.stacked .btn { width: 100%; }
.pack-strip { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; }
.pack-strip button { font: inherit; font-size: 0.9rem; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--sheet); cursor: pointer; color: var(--ink); }
.pack-strip button[aria-current='true'] { border-color: var(--evergreen); background: var(--right-wash); font-weight: 700; }
.guarantee-form { display: grid; gap: 14px; max-width: 520px; margin-top: 20px; }
.guarantee-form label { display: grid; gap: 6px; font-weight: 600; }
.guarantee-form input[type=text], .guarantee-form input[type=date] { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--sheet); }
.guarantee-form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.guarantee-form .check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--evergreen); }
@media (max-width: 460px) { .nav .hide-xs { display: none; } .nav { gap: 14px; } }
.sheet .products { grid-template-columns: 1fr; gap: 12px; }
.sheet .product { padding: 14px 16px; }
.sheet .product h3 { margin-bottom: 4px; }
.sheet .product p { margin: 0 0 6px; }
