/* Shared styles for every exam site ("study app + trust").
   Each site's theme (sites/<id>/site.json "theme.vars") overrides the variables below in base.html.
   body.style-study (CRCST: soft cards, lip buttons) and body.style-shop (CWI: black + safety orange,
   hard-edged, bigger tap targets) add the site's identity. Everything else is shared. */
*, *::before, *::after { box-sizing: border-box; }
:root {
  --bg: #F4F5F8; --card: #fff; --ink: #131A2A; --ink-2: #3E4859; --ink-3: #576173;
  --line: #E1E4EA; --line-strong: #C9CED8;
  --accent: #3341C4; --accent-lip: #222C96; --accent-ink: #fff; --accent-soft: #ECEEFE; --accent-text: #2632A6;
  --ok: #12804A; --ok-lip: #0A5E35; --good-soft: #E7F6EC; --ok-soft: var(--good-soft); --ok-ink: #0A5E35;
  --bad: #C42D36; --bad-lip: #8F1C23; --bad-soft: #FDEDEE; --bad-ink: #93202A;
  --gold: #F2A20C; --gold-ink: #8A4A00; --gold-soft: #FFF3DC;
  --radius: 16px; --radius-sm: 12px; --tap: 48px;
  --btn-border: 0 solid transparent;
  --font-body: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: var(--font-body); --font-label: var(--font-body);
  --head-weight: 800; --head-transform: none; --head-tracking: -0.015em; --head-wdth: 100;
  --header-bg: var(--card); --header-ink: var(--ink); --header-line: 2px solid var(--line);
}
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; font: 400 17px/1.6 var(--font-body); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; font-variant-numeric: normal; }
a { color: var(--accent-text); text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 3px; border-radius: 6px; }
.style-shop :focus-visible { outline-color: #FFB000; }
.skip-link { position: absolute; left: 12px; top: -100px; z-index: 100; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--ink); color: #fff; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }
main:focus { outline: none; }
.i { width: 22px; height: 22px; flex: none; vertical-align: middle; }
.i-sm { width: 18px; height: 18px; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-family: var(--font-head); font-weight: var(--head-weight); text-transform: var(--head-transform); letter-spacing: var(--head-tracking); font-variation-settings: "wdth" var(--head-wdth); line-height: 1.12; margin: 0 0 .5em; }
h1, h2 { hyphens: manual; -webkit-hyphens: manual; overflow-wrap: break-word; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 6vw, 3.1rem); line-height: 1.06; }
h2 { font-size: clamp(1.5rem, 3.4vw, 1.9rem); }
h3 { font-size: 1.2rem; line-height: 1.3; }
h4 { font-size: 1.05rem; margin: 0 0 .4em; }
.style-shop h3 { font-size: 1.12rem; }
.style-shop h1 { font-size: clamp(2rem, 5.6vw, 3rem); }
.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 38em; }
.muted { color: var(--ink-2); }
.small { font-size: 15px; }
.center { text-align: center; }
/* Labels: sentence case, 15px bold, no tracking. No small caps anywhere. */
.label { font-family: var(--font-label); font-size: 15px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--ink-2); }
.num, .val, .price, table.simple td, .timer, .dial .pct, .dbar .val, .goal .ringbox b, .dring .rb b, .countdown .days b, .xbar-title span, .qnav button { font-variant-numeric: tabular-nums; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.wrap.narrow { max-width: 792px; }
/* One section rhythm: 72px desktop, 48px phones. Back-to-back sections on the same background share one gap. */
.section { padding: 72px 0; }
.section:not(.band) + .section:not(.band) { padding-top: 0; }
main > .section:first-child:not(.band) { padding-top: 40px; }
@media (max-width: 759px) { .section { padding: 48px 0; } main > .section:first-child:not(.band) { padding-top: 24px; } }
.band { background: var(--card); border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); }
.stack { display: flex; flex-direction: column; gap: 20px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.grid { display: grid; gap: 16px; }
@media (min-width: 760px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.sec-title { margin-bottom: 16px; }
.back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; text-decoration: none; }
.back .i { width: 18px; height: 18px; }

/* ---------- nav ---------- */
.nav { background: var(--header-bg); color: var(--header-ink); border-bottom: var(--header-line); position: relative; z-index: 20; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--header-ink); text-decoration: none; min-height: 44px; flex: none; }
.brand .brand-mark { width: 28px; height: 28px; }
.brand .brand-wm { width: auto; height: 24px; }
.wm { font-family: var(--font-head); font-size: 20px; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
.wm span { color: var(--accent-text); }
.style-shop .wm { text-transform: uppercase; font-weight: 900; font-variation-settings: "wdth" 125; letter-spacing: 0; }
.style-shop .wm span { color: var(--accent); font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links > a, .nav-links .btn-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; font-weight: 700; font-size: 16px; color: var(--header-ink); text-decoration: none; }
.nav-links > a:hover { color: var(--accent-text); }
.style-shop .nav-links > a:hover { color: var(--accent); }
.nav-links form { margin: 0; }
.menu { position: relative; display: none; }
.menu > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; border-radius: var(--radius-sm); font-weight: 700; font-size: 16px; cursor: pointer; color: var(--header-ink); }
.menu > summary::-webkit-details-marker { display: none; }
.menu[open] > summary { background: var(--bg); }
.menu-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; width: min(260px, calc(100vw - 32px)); display: grid; gap: 2px; padding: 8px; background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 30px rgba(19,26,42,.14); }
.menu-panel > a, .menu-panel .btn-link { display: flex; align-items: center; min-height: 48px; padding: 0 12px; border-radius: var(--radius-sm); font-weight: 700; color: var(--ink); text-decoration: none; }
.menu-panel > a:hover { background: var(--bg); }
.menu-panel form { margin: 4px 0 0; }
.nav-links .menu-panel .btn-link { width: 100%; padding: 0 12px; text-decoration: none; color: var(--ink); }
@media (max-width: 760px) { .hide-sm { display: none !important; } .show-sm { display: block; } .nav-links > a, .nav-links .btn-link { padding: 0 8px; } }
@media (max-width: 380px) { .wm { font-size: 18px; } .brand { gap: 8px; } }

/* ---------- buttons: a "lip" that presses down ---------- */
.btn {
  --b: var(--accent); --lip: var(--accent-lip); --fg: var(--accent-ink);
  appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: calc(var(--tap) + 4px); padding: 0 22px; border-radius: var(--radius-sm); border: var(--btn-border);
  font: 700 17px/1.2 var(--font-body); letter-spacing: .01em; text-align: center; text-decoration: none; cursor: pointer;
  background: var(--b); color: var(--fg); box-shadow: 0 4px 0 var(--lip); transform: translateY(0);
  transition: transform 70ms ease-out, box-shadow 70ms ease-out, background-color 150ms, filter 150ms;
  -webkit-tap-highlight-color: transparent; user-select: none; margin-bottom: 4px;
}
.btn:hover { filter: brightness(1.06); }
.btn:active, .btn.is-pressed { transform: translateY(4px); box-shadow: 0 0 0 var(--lip); }
.btn[disabled], .btn.is-disabled { --b: #E3E6EC; --lip: #CDD2DB; --fg: #5F6878; cursor: not-allowed; filter: none; }
.btn[disabled]:active { transform: none; box-shadow: 0 4px 0 var(--lip); }
/* Start buttons after submit: still the brand colour, plainly busy. */
.btn.is-busy, .btn.is-busy[disabled] { --b: var(--accent); --lip: var(--accent-lip); --fg: var(--accent-ink); opacity: .82; cursor: progress; }
.btn-ghost.is-busy, .btn-ghost.is-busy[disabled] { --b: var(--card); --lip: var(--line-strong); --fg: var(--ink); }
.btn-primary { }
.btn-ghost { --b: var(--card); --lip: var(--line-strong); --fg: var(--ink); box-shadow: 0 4px 0 var(--lip), inset 0 0 0 2px var(--line-strong); }
.btn-ghost:active { box-shadow: 0 0 0 var(--lip), inset 0 0 0 2px var(--line-strong); }
.btn-ok { --b: var(--ok); --lip: var(--ok-lip); --fg: #fff; }
.btn-bad { --b: var(--bad); --lip: var(--bad-lip); --fg: #fff; }
.btn-dark { --b: var(--ink); --lip: #000; --fg: #fff; }
.btn-sm { min-height: var(--tap); padding: 0 16px; font-size: 16px; }
.btn-lg { min-height: calc(var(--tap) + 8px); font-size: 18px; padding: 0 28px; }
.btn-block { width: 100%; }
.btn .i { width: 20px; height: 20px; }
.btn-link { appearance: none; background: none; border: 0; padding: 0 4px; min-height: 44px; font: inherit; font-weight: 700; color: var(--accent-text); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; gap: 6px; }
.style-shop .btn { border-radius: var(--radius-sm); }
.style-shop .btn-ghost { box-shadow: 0 4px 0 var(--ink); }
.style-shop .btn-ghost:active { box-shadow: 0 0 0 var(--ink); }
.style-shop .btn[disabled] { border-color: #9AA0A6; }
.style-shop .btn-ok, .style-shop .btn-bad { --lip: var(--ink); }
.style-shop .nav .btn-primary { box-shadow: 0 3px 0 #000; border-color: var(--accent); }

/* ---------- cards, chips, alerts ---------- */
/* Three card surfaces only: .card (white), .card.soft (calls to action), .card.warn (the guarantee). Same border and padding. */
.card { background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card.soft { background: var(--accent-soft); }
.card.warn { background: var(--gold-soft); }
.style-shop .card { border-color: var(--ink); border-width: 2px; box-shadow: 4px 4px 0 rgba(18,19,20,.14); }
.card-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.card-head h3 { margin: 0; }
/* plain-text kicker (no chip background): a domain name above a heading */
.kicker { font-size: 15px; font-weight: 700; color: var(--accent-text); line-height: 1.35; }
/* Credentials as plain text, not chips. */
.creds { margin: 2px 0 0; font-size: 15px; font-weight: 700; line-height: 1.4; color: var(--ink-2); }
.creds span { font-size: 15px; }
.alert { padding: 14px 16px; border-radius: var(--radius-sm); background: var(--bad-soft); color: var(--bad-ink); border: 2px solid currentColor; border-color: rgba(0,0,0,.06); font-size: 17px; }
.alert.info { background: var(--accent-soft); color: var(--ink); }
.alert.ok { background: var(--ok-soft); color: var(--ok-ink); }
.alert a { font-weight: 700; }
.alert-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; }
.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 90; max-width: min(92vw, 520px); box-shadow: 0 8px 30px rgba(0,0,0,.18); }
.checks { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; }
.checks li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; }
.checks li::before { content: ""; width: 22px; height: 22px; margin-top: 2px; background: var(--ok); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 100% no-repeat; }

/* ---------- choices ---------- */
.choices { display: grid; gap: 12px; }
.choice {
  width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; min-height: calc(var(--tap) + 12px); padding: 12px 14px;
  background: var(--card); color: var(--ink); font: 400 18px/1.45 var(--font-body);
  border: 2px solid var(--line-strong); border-bottom-width: 4px; border-radius: var(--radius-sm); cursor: pointer;
  transition: transform 70ms, border-color 150ms, background-color 150ms, color 150ms; -webkit-tap-highlight-color: transparent;
}
.style-shop .choice { border-color: #8A9097; border-bottom-color: var(--ink); }
button.choice:not([disabled]):hover { border-color: var(--accent); }
button.choice:not([disabled]):active { transform: translateY(2px); }
.choice .letter { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; border: 2px solid var(--line-strong); font-weight: 800; font-size: 16px; color: var(--ink-2); background: var(--card); transition: background-color 150ms, border-color 150ms, color 150ms; }
.style-shop .choice .letter { border-radius: 2px; font-family: var(--font-label); border-color: var(--ink); color: var(--ink); }
.choice .letter .i { width: 20px; height: 20px; stroke-width: 3; }
.choice.selected { border-color: var(--accent); background: var(--accent-soft); }
.choice.selected .letter { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.choice.wrong { border-color: var(--bad); background: var(--bad-soft); color: var(--bad-ink); }
.choice.wrong .letter { background: var(--bad); border-color: var(--bad); color: #fff; }
.choice.right { border-color: var(--ok); background: var(--ok-soft); color: var(--ok-ink); }
.choice.right .letter { background: var(--ok); border-color: var(--ok); color: #fff; }
.choice.dim { opacity: .74; }
.choice[disabled] { cursor: default; }
@keyframes shake { 0%,100% { transform: translateX(0) } 20% { transform: translateX(-7px) } 40% { transform: translateX(6px) } 60% { transform: translateX(-4px) } 80% { transform: translateX(3px) } }
.do-shake { animation: shake 380ms cubic-bezier(.36,.07,.19,.97) both; }
@keyframes pop { 0% { transform: scale(1) } 40% { transform: scale(1.12) } 100% { transform: scale(1) } }
.do-pop { animation: pop 320ms ease-out both; }
.draw path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw 360ms 100ms ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.q-stem { font-size: 19px; line-height: 1.55; font-weight: 500; margin: 0 0 18px; }
@media (min-width: 760px) { .q-stem { font-size: 20px; } }

/* explanation box (results review, samples, runner) */
.explain { margin-top: 14px; padding: 16px; border-radius: var(--radius-sm); background: var(--bg); font-size: 17px; }
.explain h4, .explain .ex-title, .explain .ex-h { font-size: 18px; font-weight: 700; line-height: 1.35; margin: 0 0 .4em; letter-spacing: 0; }
.explain.is-right .ex-title, .explain.is-right .ex-h { color: var(--ok-ink); } .explain.is-wrong .ex-title, .explain.is-wrong .ex-h { color: var(--bad-ink); }
.explain.is-right { background: var(--ok-soft); } .explain.is-right h4 { color: var(--ok-ink); }
.explain.is-wrong { background: var(--bad-soft); } .explain.is-wrong h4 { color: var(--bad-ink); }
.explain.show { animation: rise 340ms cubic-bezier(.2,.9,.3,1.05) both; }
.explain .ex-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.explain .ex-head .ex-title { margin: 0; font-size: 20px; font-weight: 800; }
.ex-icon { display: none; width: 32px; height: 32px; flex: none; border-radius: 50%; place-items: center; color: #fff; }
.ex-icon .i { width: 18px; height: 18px; }
.explain.is-right .ex-icon { display: grid; background: var(--ok); }
.explain.is-wrong .ex-icon { display: grid; background: var(--bad); }
.explain .why-wrong { margin: 0 0 8px; font-weight: 700; }
.explain .ex-body { margin: 0; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sample-cta { margin: 16px 0 0; }
.sample-cta.show { animation: rise 340ms 120ms cubic-bezier(.2,.9,.3,1.05) both; }
.ref { display: flex; gap: 8px; margin-top: 10px; font-size: 15px; color: var(--ink-2); }
.ref .i { width: 18px; height: 18px; margin-top: 2px; }

/* ---------- sample question card ---------- */
.sample { padding: 20px; }
.sample-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-bottom: 12px; font-size: 15px; font-weight: 700; line-height: 1.35; }
.sample-label { color: var(--ink); }
.sample-dom { color: var(--accent-text); }
.sample .q-stem { font-size: 18px; }
.sample + .sample { margin-top: 16px; }

/* ---------- home ---------- */
.hero { padding: 24px 0 40px; }
.hero-grid { display: grid; gap: 28px; }
.hero h1 { margin: 14px 0 14px; }
.hero h1 em { font-style: normal; color: var(--accent-text); }
.style-shop .hero { background: var(--ink); color: #fff; padding-bottom: 48px; }
.style-shop .hero h1 em { color: var(--accent); }
.style-shop .hero .lead, .style-shop .hero .hero-note { color: #D2D6DB; }
.style-shop .hero .byline { background: #1F2226; border-color: #3A3F45; color: #fff; }
.style-shop .hero .byline .muted, .style-shop .hero .byline .small { color: #C5CAD0; }
.style-shop .hero .creds span { background: transparent; color: #fff; border-color: #6B7178; }
.style-shop .hero .card { color: var(--ink); }
.style-shop .hero .btn-primary { box-shadow: 0 4px 0 #000; border-color: var(--accent); }
.hero-cta { margin-top: 22px; display: grid; gap: 10px; max-width: 460px; }
.hero-copy { display: flex; flex-direction: column; }
@media (max-width: 899px) { .hero-copy .byline { order: 10; margin: 20px 0 0; } }
.start-hint { margin: 0; font-weight: 700; color: var(--ink-2); }
.start-buttons { display: grid; gap: 12px; }
.start-buttons form { margin: 0; }
.start-buttons .btn { width: 100%; }
.hero-note { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 15px; color: var(--ink-2); margin: 4px 0 0; }
.resume { justify-items: start; gap: 4px; }
.resume .btn { width: 100%; }
.resume form { margin: 0; }
.start-over { display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; font-weight: 700; color: var(--accent-text); }
.last-result { margin: 0 0 4px; font-size: 17px; }
.last-result a { font-weight: 700; display: inline-flex; min-height: 44px; align-items: center; }
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.hero-note .i { width: 17px; height: 17px; color: var(--ok); }
.style-shop .hero-note .i { color: var(--accent); }
@media (min-width: 900px) { .hero { padding: 48px 0 64px; } .hero-grid { grid-template-columns: 1.05fr 1fr; align-items: start; gap: 56px; } }

/* byline: who reviews the questions */
.byline { display: flex; gap: 12px; align-items: center; min-height: 64px; padding: 10px 12px 10px 10px; border-radius: var(--radius-sm); background: var(--card); border: 2px solid var(--line); max-width: 520px; margin: 4px 0 18px; color: var(--ink); text-decoration: none; transition: border-color 150ms; }
a.byline:hover { border-color: var(--accent); }
.byline-text { flex: 1; min-width: 0; display: block; }
.byline .who-line { display: block; font-size: 17px; font-weight: 700; line-height: 1.35; }
.byline .creds { margin-top: 2px; }
.byline .go { width: 20px; height: 20px; color: var(--ink-3); }
.more-link { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-weight: 700; }
.more-link .i { width: 18px; height: 18px; }
.expert-initials { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 17px; background: var(--accent-soft); color: var(--accent-text); border: 2px solid var(--line); }
.expert-initials.sm { width: 44px; height: 44px; font-size: 15px; }
.expert-initials.lg { width: 88px; height: 88px; font-size: 28px; }
.expert-photo.sm { width: 44px; height: 44px; }
.expert-photo.lg { width: 88px; height: 88px; }
.style-shop .expert-initials { border-radius: 3px; background: var(--accent); color: var(--ink); border-color: var(--ink); font-family: var(--font-label); }
.expert-photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }

/* trust band */
.style-shop .trust { border-color: var(--ink); }
.trust-grid { display: grid; gap: 18px; }
@media (min-width: 900px) { .trust-grid { grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; } }
.expert { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; }
.expert .who { font-size: 19px; font-weight: 800; }
.expert .role { color: var(--ink-2); margin: 6px 0 0; }
.expert blockquote { margin: 0 0 12px; font-size: 18px; color: var(--ink-2); }
.stamp { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--ok-soft); color: var(--ok-ink); font-weight: 700; font-size: 16px; line-height: 1.35; }
.stamp.pending { background: var(--bg); color: var(--ink-2); }
.stamp .i { width: 20px; height: 20px; }
.facts { list-style: none; margin: 0; padding: 0; }
.facts li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; padding: 14px 0; border-bottom: 2px solid var(--line); }
.facts li:last-child { border-bottom: 0; }
.facts .ic, .policy-points .ic { display: block; width: 20px; height: 20px; margin-top: 3px; color: var(--ink-3); }
.facts .ic .i, .policy-points .ic .i { width: 20px; height: 20px; display: block; }
.facts b { display: block; font-size: 18px; line-height: 1.35; }
.facts .d { display: block; color: var(--ink-2); font-size: 16px; margin-top: 2px; }
.facts a { font-weight: 700; }
.guarantee { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; }
.style-shop .guarantee { background: var(--accent-soft); border-color: var(--ink); }
.guarantee .seal { width: 56px; height: 56px; }
.guarantee b { display: block; font-size: 18px; }
.guarantee p { margin: 2px 0 0; color: var(--ink-2); font-size: 16px; }
.indep { display: grid; grid-template-columns: 44px 1fr; gap: 14px; }
.indep .ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); color: var(--ink); }
.indep b { display: block; }
.indep p { margin: 2px 0 0; color: var(--ink-2); font-size: 16px; }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; }
.steps li { display: grid; grid-template-columns: 46px 1fr; gap: 14px; position: relative; padding-bottom: 22px; }
.steps li:not(:last-child)::before { content: ""; position: absolute; left: 21px; top: 48px; bottom: 4px; width: 3px; border-radius: 3px; background: var(--line-strong); }
.steps .n { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--card); border: 3px solid var(--accent); color: var(--accent-text); }
.steps li:first-child .n { background: var(--accent); color: var(--accent-ink); }
.style-shop .steps .n { border-radius: 3px; border-color: var(--ink); color: var(--ink); font-family: var(--font-label); }
.style-shop .steps li:first-child .n { background: var(--accent); color: var(--ink); }
.steps h3 { margin: 9px 0 4px; }
.steps p { color: var(--ink-2); margin: 0; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } .steps li::before { display: none; } }

/* domain table */
.domain-group + .domain-group { margin-top: 28px; }
.group-title { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px; font-size: 1.15rem; }
.composition { display: flex; height: 30px; border-radius: 8px; overflow: hidden; gap: 2px; margin: 10px 0 6px; }
.composition span { display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-size: 15px; font-weight: 700; min-width: 4px; }
.composition span:nth-child(even) { background: var(--accent-lip); color: #fff; }
.style-shop .composition { border-radius: 2px; }
.style-shop .composition span:nth-child(even) { background: var(--ink); color: #fff; }
.domain-list { list-style: none; margin: 0; padding: 0; }
.domain-list li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 2px solid var(--line); min-height: 52px; }
.domain-list .idx { font-family: var(--font-label); font-weight: 700; color: var(--ink-3); font-size: 15px; }
.domain-list .weight { font-weight: 800; }
.domain-list .idx { min-width: 1.4em; }
.domain-list a { font-weight: 700; }

/* FAQ */
.faq details { border-bottom: 2px solid var(--line); }
.faq summary { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; font-weight: 700; font-size: 18px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; color: var(--accent-text); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--ink-2); }

/* ticket: a CTA row */
/* ticket: a call-to-action row, drawn as .card.soft */
.ticket { display: grid; gap: 14px; align-items: center; padding: 20px; border-radius: var(--radius); background: var(--accent-soft); border: 2px solid var(--line); }
.ticket h3, .ticket h2 { margin: 0 0 4px; font-size: 1.2rem; line-height: 1.3; }
.ticket p { margin: 0; }
.ticket form { margin: 0; }
.style-shop .ticket { border-color: var(--ink); }
@media (min-width: 760px) { .ticket { grid-template-columns: 1fr auto; } }

/* ---------- results ---------- */
.scorecard { text-align: center; padding: 22px 18px 20px; }
.dial { position: relative; width: 220px; height: 220px; margin: 14px auto 10px; }
.dial > svg { width: 220px; height: 220px; transform: rotate(-90deg); }
.ring circle { fill: none; }
.ring .track { stroke: #E3E6EC; }
.ring .fill { stroke-linecap: round; transition: stroke-dashoffset 1100ms cubic-bezier(.2,.8,.2,1); }
.style-shop .ring .fill { stroke-linecap: butt; }
.dial .center { position: absolute; inset: 0; display: grid; place-content: center; }
.dial .pct { font-size: 60px; font-weight: 800; line-height: 1; letter-spacing: -0.03em; font-family: var(--font-head); }
.dial .pct small { font-size: 28px; }
.dial .raw { font-size: 16px; color: var(--ink-2); margin-top: 6px; font-weight: 600; }
.ready-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--ink-2); }
.ready-tag i { display: inline-block; width: 4px; height: 18px; border-radius: 2px; background: var(--ink); }
.gapnote { display: flex; align-items: flex-start; gap: 10px; margin: 14px 0 0; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--ink); font-weight: 600; text-align: left; }
.gapnote.ok { background: var(--ok-soft); color: var(--ok-ink); }
.gapnote .i { margin-top: 2px; }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.dbar { padding: 14px 14px 16px; }
.dbar .top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.dbar .name { font-weight: 700; line-height: 1.3; }
.dbar .val { font-weight: 800; white-space: nowrap; }
.dbar .val small { font-weight: 600; color: var(--ink-3); font-size: 15px; }
.dbar .foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; font-size: 16px; }
.dbar .foot form { margin: 0; }
.tag-low { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--bad-ink); font-size: 15px; }
.tag-low .i { width: 17px; height: 17px; }
.meter { position: relative; height: 14px; border-radius: 999px; background: #E3E6EC; }
.meter > span { position: absolute; inset: 0 auto 0 0; width: var(--w, 0%); border-radius: inherit; background: var(--ok); transition: width 800ms cubic-bezier(.2,.8,.2,1); }
.meter > span::after { content: ""; position: absolute; left: 8px; right: 8px; top: 3px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.35); }
.meter.low > span { background: var(--bad); }
/* gold means ready only: an in-between score is indigo */
.meter.mid > span { background: var(--accent); }
.meter .mark { position: absolute; left: var(--target, 70%); top: -5px; bottom: -5px; width: 4px; margin-left: -2px; border-radius: 2px; background: var(--ink); }
.meter[data-fill] > span { width: 0; }
.style-shop .meter { border-radius: 0; } .style-shop .meter > span { border-radius: 0; }

.upsell h2 { font-size: clamp(1.35rem, 3vw, 1.6rem); }
.style-shop .upsell h2, .style-shop .scorecard h1 { text-transform: none; font-variation-settings: "wdth" 100; letter-spacing: -0.01em; }
.gaps { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.gaps li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--bg); }
.gaps .i { color: var(--bad); margin-top: 2px; }
.plan-forms { display: grid; gap: 12px; margin: 16px 0 6px; }
.plan-forms form { margin: 0; }
.plan-btn { position: relative; width: 100%; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; text-align: left; padding: 16px; min-height: 76px; cursor: pointer; font: inherit; color: var(--ink);
  background: var(--card); border: 2px solid var(--line-strong); border-bottom-width: 4px; border-radius: var(--radius); transition: transform 70ms, border-color 150ms; }
.plan-btn:hover { border-color: var(--accent); }
.plan-btn:active { transform: translateY(2px); }
.plan-btn.featured { border-color: var(--accent); background: var(--accent-soft); }
.style-shop .plan-btn { border-color: var(--ink); }
.style-shop .plan-btn.featured { background: var(--accent-soft); box-shadow: 4px 4px 0 var(--ink); }
.plan-btn b { display: block; font-size: 18px; }
.plan-btn .desc { display: block; font-size: 16px; color: var(--ink-2); }
.plan-btn .price { font-size: 24px; font-weight: 800; text-align: right; line-height: 1.1; }
.plan-btn .price small { display: block; font-size: 15px; font-weight: 600; color: var(--ink-3); }
.plan-btn .plan-flag { margin: 0 0 4px; }
.plan-btn .go { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-weight: 800; color: var(--accent-text); font-size: 16px; }
/* plain-text guarantee line on the featured plan (no pill) */
.plan-flag { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 15px; font-weight: 700; color: var(--gold-ink); }
.plan-flag .i { color: var(--gold-ink); }
.plans > .featured, .plan-forms > .is-featured { order: -1; }
.anchor-line { margin: 16px 0 0; padding: 12px 14px; border-left: 4px solid var(--accent); background: var(--bg); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 17px; color: var(--ink); }
.employer-line { display: flex; gap: 8px; margin: 12px 0 0; font-size: 17px; color: var(--ink-2); }
.employer-line .i { margin-top: 4px; color: var(--ink-3); }
.upbar { display: none; }
@media (max-width: 759px) {
  .upbar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 30; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 52px; padding: 10px 16px; border-radius: var(--radius-sm); background: var(--accent); color: var(--accent-ink); box-shadow: 0 4px 0 var(--accent-lip), 0 10px 24px rgba(19,26,42,.2); font-weight: 800; font-size: 17px; text-align: center; text-decoration: none; transition: transform 200ms ease, opacity 200ms ease; }
  .upbar.is-off { transform: translateY(140%); opacity: 0; pointer-events: none; }
  body:has(.upbar) footer { padding-bottom: 96px; }
}
.secure { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 15px; color: var(--ink-2); margin: 10px 0 0; }
.secure .i { width: 18px; height: 18px; }

.review-list { display: grid; gap: 10px; }
.review-item { border: 2px solid var(--line); border-radius: var(--radius-sm); background: var(--card); }
.style-shop .review-item { border-color: #8A9097; }
.review-item summary { display: grid; grid-template-columns: auto auto 1fr; gap: 6px 10px; align-items: center; padding: 12px 14px; min-height: 56px; cursor: pointer; list-style: none; }
.review-item summary::-webkit-details-marker { display: none; }
.review-item .q-n { font-weight: 800; }
.review-item .q-dom { grid-column: 3; justify-self: end; font-size: 15px; text-align: right; }
.review-item .q-peek { grid-column: 1 / -1; color: var(--ink-2); font-size: 16px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.review-item[open] .q-peek { display: none; }
.review-item summary:hover { background: var(--bg); border-radius: var(--radius-sm); }
.review-item:hover { border-color: var(--line-strong); }
.review-item .q-more { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 4px; justify-self: start; color: var(--accent-text); font-weight: 700; font-size: 15px; }
.review-item summary:hover .q-more .when-closed { text-decoration: underline; text-underline-offset: 3px; }
.review-item .q-more .i { transform: rotate(90deg); transition: transform 150ms ease-out; }
.review-item[open] .q-more .i { transform: rotate(-90deg); }
.review-item .q-more .when-open, .review-item[open] .q-more .when-closed { display: none; }
.review-item[open] .q-more .when-open { display: inline; }
@media (prefers-reduced-motion: reduce) { .review-item .q-more .i { transition: none; } }
.review-body { padding: 0 14px 14px; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; font-size: 15px; font-weight: 800; }
.tag.right { background: var(--ok-soft); color: var(--ok-ink); }
.tag.wrong { background: var(--bad-soft); color: var(--bad-ink); }
.tag.skip { background: var(--bg); color: var(--ink-2); }
.toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; cursor: pointer; }
.toggle input { width: 22px; height: 22px; accent-color: var(--accent); }

/* ---------- dashboard ---------- */
.unlock-card { background: var(--accent-soft); }
.callout { display: flex; gap: 10px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--card); border: 2px solid var(--line); border-left: 4px solid var(--accent); color: var(--ink); font-size: 17px; }
.callout .i { margin-top: 2px; color: var(--accent-text); }
.unlock-form { margin: 0; }
.dash-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.dash-head h1 { font-size: clamp(1.8rem, 5vw, 2.3rem); margin: 0; }
.streak { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--gold-ink); min-height: 44px; }
.streak .i { color: var(--gold); fill: var(--gold); }
.countdown { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; background: var(--ink); color: #fff; border-color: var(--ink); }
.countdown .days { width: 88px; height: 88px; border-radius: var(--radius-sm); background: rgba(255,255,255,.1); display: grid; place-content: center; text-align: center; }
.countdown .days b { font-size: 38px; line-height: 1; font-family: var(--font-head); }
.countdown .days span { font-size: 15px; font-weight: 700; color: #C9D0DD; }
.countdown .t { font-size: 19px; font-weight: 800; }
.countdown .s { color: #D3D8E2; font-size: 16px; }
.countdown .meter { margin-top: 12px; background: rgba(255,255,255,.2); }
.countdown .meter > span { background: var(--gold); }
.countdown .meter .mark { background: #fff; }
.countdown a, .countdown .btn-link { color: #fff; }
.style-shop .countdown { border-left: 8px solid var(--accent); }
.profile-form { display: grid; gap: 12px; }
.profile-form .fields { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .profile-form .fields { grid-template-columns: 1.4fr 1fr; } }
.goal { display: grid; grid-template-columns: 84px 1fr; gap: 16px; align-items: center; }
.goal .ringbox { position: relative; width: 84px; height: 84px; }
.goal .ringbox > svg { width: 84px; height: 84px; transform: rotate(-90deg); }
.goal .ringbox b .i { width: 32px; height: 32px; color: var(--ok-ink); stroke-width: 2.6; }
.goal .ringbox b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 22px; }
.goal .t { font-weight: 800; font-size: 18px; }
.week { display: flex; gap: 6px; margin-top: 8px; }
.week > span { flex: 1; text-align: center; font-size: 15px; font-weight: 700; color: var(--ink-3); }
.week i { display: block; height: 32px; border-radius: 7px; background: #E3E6EC; margin-bottom: 3px; position: relative; overflow: hidden; }
.week i::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: var(--h, 0%); background: var(--gold); }
.week .today { color: var(--ink); }
.style-shop .week i { border-radius: 1px; }
.tasks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tasks form { margin: 0; }
.task { width: 100%; display: grid; grid-template-columns: 46px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; min-height: 76px; text-align: left; text-decoration: none; color: var(--ink); font: inherit; cursor: pointer;
  background: var(--card); border: 2px solid var(--line); border-bottom-width: 4px; border-radius: var(--radius); transition: transform 70ms, border-color 150ms; }
.task:hover { border-color: var(--accent); }
.task:active { transform: translateY(2px); }
.style-shop .task { border-color: var(--ink); }
.task .ic { width: 46px; height: 46px; border-radius: var(--radius-sm); display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); }
.task.first { border-color: var(--accent); }
.task.first .ic { background: var(--accent); color: var(--accent-ink); }
.style-shop .task .ic { background: var(--ink); color: var(--accent); }
.style-shop .task.first { box-shadow: 4px 4px 0 var(--accent); }
.task b { display: block; font-size: 17px; line-height: 1.35; }
.task .d { display: block; font-size: 15px; color: var(--ink-2); }
.task .go { color: var(--ink-3); }
.rings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 700px) { .rings { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .rings { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.dring { display: flex; flex-direction: column; gap: 8px; padding: 14px; }
.dring .rb { position: relative; width: 60px; height: 60px; }
.dring .rb > svg { width: 60px; height: 60px; transform: rotate(-90deg); }
.dring .rb b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 15px; }
.dring .n { font-weight: 700; font-size: 16px; line-height: 1.3; }
.dring .n a { color: var(--ink); display: inline-block; padding: 6px 0; min-height: 44px; }
.dring .w { font-size: 15px; color: var(--ink-3); }
.dring form { margin: auto 0 0; }
.dring .btn { width: 100%; }

/* tables */
.table-scroll { overflow-x: auto; }
table.simple { width: 100%; border-collapse: collapse; }
table.simple th, table.simple td { text-align: left; padding: 12px 8px; border-bottom: 2px solid var(--line); vertical-align: middle; }
table.simple th { font-size: 15px; font-weight: 700; color: var(--ink-2); text-transform: none; letter-spacing: 0; }
table.simple td a { display: inline-flex; min-height: 44px; align-items: center; font-weight: 700; }

/* ---------- forms ---------- */
.form { max-width: 460px; margin: 40px auto; }
.field { display: grid; gap: 6px; margin-bottom: 16px; font-weight: 700; }
.field > span { font-size: 16px; }
.field input, .field select, textarea, .field textarea {
  width: 100%; min-height: var(--tap); padding: 10px 14px; font: 400 17px/1.4 var(--font-body); color: var(--ink);
  background: var(--card); border: 2px solid var(--ink-3); border-radius: var(--radius-sm);
}
.field input:focus, textarea:focus, .tutor input:focus { outline: 3px solid var(--accent-text); outline-offset: 1px; border-color: var(--accent-text); }
.step-pill { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); }
.step-pill i { display: inline-block; width: 28px; height: 6px; border-radius: 3px; background: var(--accent); }
.step-pill i + i { background: var(--line-strong); }

/* pricing */
.page-intro { max-width: 640px; margin: 0 auto 8px; }
.page-intro .lead { margin-left: auto; margin-right: auto; }
.plans { display: grid; gap: 16px; max-width: 792px; margin: 24px auto 0; }
@media (min-width: 760px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { position: relative; display: flex; flex-direction: column; gap: 6px; }
.plan-compare { margin: -2px 0 4px; font-size: 16px; font-weight: 700; color: var(--ink-2); }
.plan-foot { margin: 4px 0 0; font-size: 15px; text-align: center; }
.plan-foot a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.plan.featured { border-color: var(--accent); }
.style-shop .plan.featured { box-shadow: 6px 6px 0 var(--accent); }
.plan .price { font-size: 40px; font-weight: 800; font-family: var(--font-head); }
.plan .per { color: var(--ink-2); font-weight: 600; }
.plan form { margin-top: auto; }

/* ---------- article (study guides) ---------- */
.with-aside { display: grid; gap: 28px; }
@media (min-width: 1000px) { .with-aside { grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; } }
.article { min-width: 0; }
.article-body { background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 24px 18px; }
.style-shop .article-body { border-color: var(--ink); }
@media (min-width: 760px) { .article-body { padding: 36px 44px; } }
.article-body > :first-child { margin-top: 0; }
.article h1 { font-size: clamp(1.9rem, 4.6vw, 2.6rem); }
.article h2 { margin-top: 1.8em; font-size: clamp(1.4rem, 3vw, 1.65rem); }
.article h3 { margin-top: 1.4em; }
.article p, .article li { max-width: 68ch; }
.article ul, .article ol { padding-left: 1.3em; }
.article li { margin-bottom: .45em; }
.article table { border-collapse: collapse; width: 100%; margin: 1em 0 1.6em; font-size: 16px; display: block; overflow-x: auto; }
.article th, .article td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 2px solid var(--line); vertical-align: top; }
.article th { border-bottom-color: var(--ink); }
.article .meta { color: var(--ink-2); }
.review-box { margin: 18px 0 8px; border: 2px solid var(--line); border-radius: var(--radius); background: var(--card); }
.style-shop .review-box { border-color: var(--ink); }
.review-box .main { display: flex; gap: 14px; padding: 16px; align-items: flex-start; }
.review-box .who-line { font-size: 17px; font-weight: 700; }
.review-box .dates { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 6px; color: var(--ink-2); font-size: 15px; }
.review-box .dates span { display: inline-flex; align-items: center; gap: 6px; }
.review-box .dates .i { width: 17px; height: 17px; }
.review-box .bar { display: flex; flex-wrap: wrap; gap: 0 16px; padding: 2px 16px; border-top: 2px solid var(--line); background: var(--card); border-radius: 0 0 var(--radius) var(--radius); font-size: 16px; }
.review-box .bar a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.pending-note { font-weight: 400; color: var(--ink-2); }
.sources-list { padding-left: 1.4em; }
.sources-list li { margin-bottom: .5em; }
.sources-list .cnt { color: var(--ink-3); font-size: 15px; }
.aside-sticky { position: sticky; top: 16px; }
.guide-nav { display: grid; gap: 12px; margin-top: 24px; }
.guide-nav a { display: flex; flex-direction: column; padding: 14px 16px; min-height: 64px; border: 2px solid var(--line); border-radius: var(--radius-sm); background: var(--card); text-decoration: none; }
.guide-nav a span { font-size: 15px; color: var(--ink-2); font-weight: 700; }
.guide-nav a b { color: var(--ink); }
.guide-nav .next { text-align: right; }
@media (min-width: 760px) { .guide-nav { grid-template-columns: 1fr 1fr; } }
.practice-q { margin-top: 16px; }
.practice-q .q-label { margin: 0; line-height: 1.4; }
.practice-q details summary { display: inline-flex; align-items: center; min-height: 48px; font-weight: 700; color: var(--accent-text); cursor: pointer; }
.practice-choices { padding-left: 1.6em; display: grid; gap: 8px; }
.practice-choices li { padding-left: 4px; }

/* ---------- footer ---------- */
footer { margin-top: 0; padding: 32px 0 40px; border-top: 2px solid var(--line); background: var(--card); font-size: 16px; color: var(--ink-2); }
.style-shop footer { background: var(--ink); color: #C5CAD0; border-top: 4px solid var(--accent); }
.style-shop footer a { color: #fff; }
.style-shop footer strong { color: #fff; }
.foot-grid { display: grid; gap: 22px; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.2fr 1fr; } }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 18px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.foot-trust { display: grid; gap: 8px; }
.foot-trust p { margin: 0; display: flex; gap: 8px; }
.foot-trust .i { width: 19px; height: 19px; margin-top: 3px; }
.foot-links .foot-logout { margin: 0; }
.foot-links .foot-logout .btn-link { color: inherit; padding: 0; }
footer .brand { color: inherit; }

/* ---------- exam runner ---------- */
body.exam-mode { background: var(--bg); }
.xbar { position: sticky; top: 0; z-index: 30; background: var(--card); border-bottom: 2px solid var(--line); }
.style-shop .xbar { background: var(--ink); color: #fff; border-bottom: 3px solid var(--accent); }
.xbar-in { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; gap: 10px; padding: 8px 12px; }
.xbar-exit { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: var(--radius-sm); color: var(--ink-2); text-decoration: none; }
.xbar-exit:hover { background: var(--bg); }
.style-shop .xbar-exit { color: #fff; } .style-shop .xbar-exit:hover { background: #2A2E33; }
.xbar-exit .i { width: 26px; height: 26px; }
.xbar-mid { flex: 1; min-width: 0; display: grid; gap: 4px; }
.xbar-title { display: flex; justify-content: space-between; gap: 8px; font-size: 15px; font-weight: 700; color: var(--ink-2); white-space: nowrap; overflow: hidden; }
.xbar-title strong { overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.style-shop .xbar-title, .style-shop .xbar-title strong { color: #fff; }
.progress { height: 12px; border-radius: 999px; background: #E3E6EC; overflow: hidden; }
.progress span { display: block; height: 100%; border-radius: inherit; background: var(--accent); transition: width 600ms cubic-bezier(.2,.8,.2,1); position: relative; }
.style-shop .progress { background: #3A3F45; border-radius: 0; } .style-shop .progress span { background: var(--accent); border-radius: 0; }
.timer { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; border-radius: var(--radius-sm); font-weight: 800; font-size: 17px; background: var(--bg); }
.timer.low { background: var(--bad-soft); color: var(--bad-ink); }
.style-shop .timer { background: #2A2E33; color: #fff; font-family: var(--font-label); }
.xbar-grid { flex: none; min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 0 10px; border-radius: var(--radius-sm); border: 2px solid var(--line-strong); background: var(--card); color: var(--ink); font: 700 15px var(--font-body); cursor: pointer; }
.style-shop .xbar-grid { background: transparent; color: #fff; border-color: #6B7178; }
.runner { display: grid; gap: 24px; padding-top: 20px; padding-bottom: 120px; }
@media (min-width: 1000px) { .runner { grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; padding-top: 32px; } }
.runner-main { min-width: 0; max-width: 720px; }
.q-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 14px; }
.q-meta .count { font-size: 15px; font-weight: 700; color: var(--ink-3); }
.q-meta .q-domain { flex: 1 1 100%; min-width: 0; font-size: 15px; font-weight: 700; color: var(--accent-text); line-height: 1.35; overflow-wrap: anywhere; }
.q-stem:focus { outline: none; }
.runner-actions { display: none; gap: 12px; margin-top: 24px; }
.runner-actions .btn { flex: 1; }
@media (min-width: 1000px) { .runner-actions { display: flex; } .xfoot { display: none !important; } .xbar-grid { display: none; } }
.runner-side { display: none; }
@media (min-width: 1000px) { .runner-side { display: block; } }
.side-card { position: sticky; top: 88px; }
.keys-hint { font-size: 15px; color: var(--ink-2); margin: 12px 0 0; }
.qnav { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; }
.qnav button { min-height: 44px; border-radius: 10px; border: 2px solid var(--line-strong); background: var(--card); color: var(--ink); font: 700 15px var(--font-body); cursor: pointer; position: relative; }
.style-shop .qnav button { border-radius: 2px; }
.qnav .answered { background: var(--accent-soft); border-color: var(--accent); }
.qnav .right { background: var(--ok-soft); border-color: var(--ok); color: var(--ok-ink); }
.qnav .wrong { background: var(--bad-soft); border-color: var(--bad); color: var(--bad-ink); }
.qnav .current { outline: 3px solid var(--ink); outline-offset: 1px; }
.qnav .flagged::after { content: ""; position: absolute; top: -4px; right: -4px; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); border: 2px solid var(--card); }
.xfoot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: grid; grid-template-columns: auto auto 1fr; gap: 10px; padding: 12px 12px calc(12px + env(safe-area-inset-bottom)); background: var(--card); border-top: 2px solid var(--line); }
.xfoot.two { grid-template-columns: auto 1fr; }
.style-shop .xfoot { border-top: 3px solid var(--ink); }
.xfoot .btn { margin-bottom: 4px; padding: 0 16px; }
.overlay { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; }
.backdrop { position: absolute; inset: 0; border: 0; background: rgba(19,26,42,.5); cursor: pointer; }
.modal { position: relative; width: min(100%, 460px); background: var(--card); border-radius: var(--radius); padding: 24px; display: grid; gap: 14px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.style-shop .modal { border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--accent); }
.modal h3, .modal h2 { margin: 0; font-size: 1.4rem; }
.grid-sheet-wrap { place-items: end center; padding: 0; }
.grid-sheet { position: relative; width: min(100%, 640px); max-height: 80vh; overflow: auto; background: var(--card); border-radius: 22px 22px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); animation: up 300ms cubic-bezier(.2,.9,.3,1) both; }
.grid-sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
@keyframes up { from { transform: translateY(100%); } to { transform: none; } }

/* practice: Check bar and the feedback sheet that slides up */
.fb { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; max-height: 88vh; overflow-y: auto; background: var(--bad-soft); border-top: 2px solid #F3C6C9;
  border-radius: 22px 22px 0 0; box-shadow: 0 -12px 32px rgba(19,26,42,.14); padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); }
.fb.is-right { background: var(--ok-soft); border-top-color: #BDE3CB; }
.style-shop .fb { border-radius: 0; border-top: 4px solid var(--bad); }
.style-shop .fb.is-right { border-top-color: var(--ok); }
.fb.enter { animation: sheet-up 480ms cubic-bezier(.18,.9,.32,1.08) both; }
@keyframes sheet-up { from { transform: translateY(105%); } to { transform: none; } }
.fb-in { max-width: 680px; margin: 0 auto; }
.fb .grab { width: 40px; height: 5px; border-radius: 5px; background: rgba(0,0,0,.14); margin: -4px auto 10px; }
.fb-head { display: flex; align-items: center; gap: 12px; }
.fb-icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--bad); color: #fff; flex: none; }
.fb.is-right .fb-icon { background: var(--ok); }
.fb-icon .i { width: 22px; height: 22px; stroke-width: 3; }
.fb-verdict { flex: 1; margin: 0; font-size: 24px; font-weight: 800; color: var(--bad-ink); font-family: var(--font-head); text-transform: var(--head-transform); font-variation-settings: "wdth" var(--head-wdth); }
.fb.is-right .fb-verdict { color: var(--ok-ink); }
.fb .lbl { display: block; font-family: var(--font-label); font-size: 15px; font-weight: 800; letter-spacing: 0; text-transform: none; color: var(--bad-ink); margin-bottom: 2px; }
.fb.is-right .lbl { color: var(--ok-ink); }
.fb p { margin: 12px 0 0; font-size: 17px; }
.fb-more { padding-top: 12px; margin-top: 14px; border-top: 2px solid rgba(0,0,0,.08); }
.fb-more .ref { margin-top: 12px; }
.fb-tools { display: flex; flex-wrap: wrap; gap: 0 16px; margin-top: 8px; }
.fb-tools .btn-link { color: var(--ink); }
.fb-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; margin-top: 16px; position: sticky; bottom: calc(-16px - env(safe-area-inset-bottom)); padding: 10px 0 calc(12px + env(safe-area-inset-bottom)); margin-bottom: calc(-16px - env(safe-area-inset-bottom)); background: inherit; }
.fb { background-clip: padding-box; }
.fb-actions { background: var(--bad-soft); }
.fb.is-right .fb-actions { background: var(--ok-soft); }
.fb-actions .btn { margin-bottom: 4px; }
.btn-on-fb { --b: var(--card); --lip: rgba(0,0,0,.16); --fg: var(--ink); box-shadow: 0 4px 0 var(--lip), inset 0 0 0 2px rgba(0,0,0,.1); }
.style-shop .btn-on-fb { --lip: var(--ink); box-shadow: 0 4px 0 var(--ink); }
.fb .icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--radius-sm); border: 0; background: transparent; color: var(--ink-2); cursor: pointer; }
.fb .icon-btn:hover { background: rgba(0,0,0,.06); }
.panel { margin-top: 12px; }
.fb-back { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink-2); }
.runner-start { padding-top: 24px; padding-bottom: 48px; }
.start-card { padding: 24px 20px; }
.start-card h2 { font-size: clamp(1.4rem, 4vw, 1.7rem); }
.start-card .checks { margin: 16px 0 14px; }

/* tutor */
.tutor { margin-top: 4px; padding: 14px; border-radius: var(--radius-sm); background: var(--card); border: 2px solid var(--line); }
.tutor-log { display: grid; gap: 8px; max-height: 320px; overflow: auto; margin-bottom: 10px; }
.tutor-msg { padding: 10px 12px; border-radius: var(--radius-sm); font-size: 17px; white-space: pre-wrap; }
.tutor-msg.user { background: var(--accent-soft); justify-self: end; max-width: 90%; }
.tutor-msg.assistant { background: var(--bg); }
.tutor form { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.tutor input { min-height: var(--tap); padding: 8px 12px; font: 17px var(--font-body); border: 2px solid var(--ink-3); border-radius: var(--radius-sm); }
.tutor-upsell p { font-size: 17px; }
.tutor .tutor-upsell form { display: block; }
.tutor .btn { margin: 0; }
.report-form textarea { margin-top: 6px; }

/* editorial page */
.policy h2 { margin-top: 1.6em; }
.policy-points { list-style: none; margin: 0; padding: 4px 20px; display: block; }
.policy-points li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; padding: 16px 0; }
.policy-points li + li { border-top: 1px solid var(--line); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}

/* Re-score fixes: hero aligned closer to the 792px sections; centered intros read left on phones; low-score upsell tint. */
@media (min-width: 900px) { .hero .wrap.hero-grid { max-width: 1000px; } }
@media (max-width: 759px) { .page-intro.center .lead { text-align: left; } }
.upsell.is-low { background: var(--bad-soft, #FDECEA); border-color: transparent; }
.link-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.link-list a { display: block; padding: 12px 0; min-height: 44px; border-bottom: 1px solid var(--line); font-weight: 600; }
/* Re-score: practice pages read at article width; small labels up to 14px for non-native readers. */
.practice-q .q-stem, .practice-q li, .practice-q .explain p, .practice-q details p { max-width: 58ch; }
.creds span, .review-item .q-dom, .week span { font-size: 15px; }

/* ---------- Round 3: shared pieces ---------- */
.h3 { font-size: 1.2rem; line-height: 1.3; }
.ed { color: var(--ink-2); font-weight: 400; }
.ask-line { display: flex; align-items: flex-start; gap: 8px; margin: 16px 0 0; color: var(--ink-2); font-size: 17px; }
.ask-line .i { margin-top: 4px; color: var(--ink-3); }
.ask-line a { font-weight: 700; overflow-wrap: anywhere; }
.hero .sample-hero { box-shadow: 0 18px 40px rgba(19,26,42,.08); }

/* results preview on the home page (static example) */
.preview { margin: 0; padding: 20px; }
.preview-cap { font-size: 1.2rem; font-weight: 800; line-height: 1.3; font-family: var(--font-head); }
.preview-note { margin: 4px 0 16px; color: var(--ink-2); }
.preview .bars { gap: 18px; }
.pbar .top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.pbar .name { font-weight: 700; line-height: 1.3; }
.pbar .val { font-weight: 800; font-size: 18px; white-space: nowrap; }
.pbar .pstate { margin: 8px 0 0; font-size: 15px; color: var(--ink-2); font-weight: 700; }
.ready-word { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); }
.ready-word .i { color: var(--gold-ink); }
.preview-key { display: flex; align-items: center; gap: 8px; margin: 18px 0 0; font-size: 15px; color: var(--ink-2); }
.preview-key i { width: 4px; height: 18px; border-radius: 2px; background: var(--ink); flex: none; }
.preview-steps { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 12px; }
.preview-steps li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--ink-2); }
.preview-steps .i { width: 20px; height: 20px; margin-top: 3px; color: var(--accent-text); }
.preview-steps b { color: var(--ink); }
.how-grid { display: grid; gap: 24px; align-items: start; }
@media (min-width: 900px) { .how-grid { grid-template-columns: 1fr 1.1fr; gap: 40px; } }

/* reviewer page */
.reviewer-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.reviewer-name { margin: 0; font-size: clamp(1.5rem, 4vw, 1.8rem); }
.reviewer-title { margin: 2px 0 0; color: var(--ink-2); font-weight: 700; }
.facts-list { margin: 0; display: grid; gap: 0; border-top: 2px solid var(--line); }
.facts-list > div { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 12px 0; border-bottom: 2px solid var(--line); }
@media (min-width: 560px) { .facts-list > div { grid-template-columns: 190px 1fr; gap: 12px; align-items: center; } }
.facts-list dt { font-weight: 700; color: var(--ink-2); font-size: 15px; }
.facts-list dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.reviewer-bio { margin: 16px 0 0; }
.reviewer-quote { margin: 16px 0 0; font-size: 18px; color: var(--ink-2); }
.review-status h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; }
.review-status p { margin: 0; }
.ready-ic { color: var(--gold-ink); }

/* error pages */
.error-page h1 { margin-top: 4px; }
.error-page .row { margin: 8px 0 20px; }
.mt-14 { margin-top: 14px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-28 { margin-top: 28px; } .mt-32 { margin-top: 32px; } .mt-36 { margin-top: 36px; }
form.flush { margin: 0; }
.resume-top { max-width: 460px; }
.guide-meta { gap: 4px 12px; margin: 8px 0 0; }
.policy-points { margin-top: 24px; }
.policy-points p { margin: 4px 0 0; }
.policy .ticket { margin-top: 28px; }
table.simple .r { text-align: right; }
.form-title { font-size: 1.8rem; }
.form-error { margin-bottom: 16px; }
.form-note { margin: 6px 0 0; }
.form-switch { margin-top: 16px; }
.secure-left { justify-content: flex-start; }
.step-pill { margin: 0 0 10px; font-size: 15px; font-weight: 700; }
.plan-name { margin: 0; }
.plan-blurb { margin: 0 0 6px; }
.plans + .employer-line, .secure { margin-top: 16px; }
.review-box .who-line a { color: inherit; }
.mt-6 { margin-top: 6px; } .gap-16 { gap: 16px; } .break { word-break: break-all; }
.success { align-items: center; }
.success-icon { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--good-soft); color: var(--ok-ink); }
.success-icon .i { width: 36px; height: 36px; }
.sample-cta .btn { min-height: 56px; height: auto; padding: 10px 18px; line-height: 1.3; font-size: 17px; }
.nav-links > a, .nav-links .btn-link, .menu > summary { white-space: nowrap; }
/* Phones: keep the word "Menu"; make room with a smaller lockup and no menu glyph. */
@media (max-width: 420px) { .nav .wrap { gap: 6px; } .brand { gap: 6px; } .brand .brand-mark { width: 24px; height: 24px; } .brand .brand-wm { height: 20px; } .nav-links { gap: 0; } .nav-links > a { padding: 0 8px; } .menu > summary { padding: 0 8px; } .menu > summary .i { display: none; } }
@media (max-width: 340px) { .brand .brand-mark { display: none; } }
@media (max-width: 759px) { .sample .choice { font-size: 17px; padding: 10px 12px; gap: 12px; } }
.article h1 { margin-top: 12px; }
.field small { font-weight: 400; font-size: 15px; }
/* Round 3b: no icon tiles */
.indep { grid-template-columns: 20px 1fr; gap: 12px; }
.indep .indep-ic { width: 20px; height: 20px; margin-top: 3px; color: var(--ink-3); }
.task .ic.idx-num { width: auto; height: auto; min-width: 2ch; background: none; color: var(--ink-3); font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; place-items: center start; }
.tasks .task:has(.idx-num) { grid-template-columns: 2.2ch 1fr auto; }
.seen-line { margin: 0 auto 20px; max-width: 640px; padding: 14px 16px; border-radius: var(--radius-sm); border: 2px solid var(--line); background: var(--card); font-size: 17px; color: var(--ink); }
.ex-more { min-height: 44px; padding: 0; }
/* drawn trade figure beside the hero sample */
.sample-wrap { display: grid; gap: 16px; }
.trade-fig { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; }
.trade-fig .fig-svg { display: block; max-width: 100%; height: auto; }
.trade-fig figcaption { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
@media (max-width: 520px) { .trade-fig { grid-template-columns: 1fr; } .trade-fig .fig-svg { margin: 0 auto; } }

/* Google sign-in and the "or" divider on auth forms */
.btn-google { gap: 10px; }
.btn-google svg { flex: none; }
.or-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0 16px; color: var(--ink-3); font-size: 15px; }
.or-divider::before, .or-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.form .alert.info { margin: 0 0 14px; }
