/* The kit's public pages: JourneyListo's look (dark header, paper hero, bright button, bordered sample card), with the
   site's colors from site.json (--dark, --dark-2, --accent, --accent-ink, --link, set in each page's <head>).
   Mobile-first, system fonts, no framework. */
:root {
  --dark: #0a1430;
  --dark-2: #11214b;
  --accent: #ffd60a;
  --accent-ink: #0a1430;
  --link: #253b78;
  --ink: #0a1430;
  --ink-2: #33405f;
  --ink-3: #56617c;
  --on-dark: #fff;
  --on-dark-2: #c9d2e8;
  --line: #dde2ee;
  --bg: #f4f6fb;
  --paper: #fbfaf4;
  --card: #fff;
  --ok: #15803d;
  --ok-bg: #eaf7ef;
  --bad: #c2410c;
  --bad-bg: #fff2ea;
  --info-bg: #eef2fb;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(10, 20, 48, 0.06), 0 10px 30px rgba(10, 20, 48, 0.08);
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.55; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--link); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(30px, 8vw, 46px); font-weight: 850; letter-spacing: -0.03em; text-wrap: balance; }
h2 { font-size: clamp(23px, 5.6vw, 30px); font-weight: 800; text-wrap: balance; }
h3 { font-size: 19px; font-weight: 750; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 18px; }
.narrow { max-width: 760px; }
.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus { left: 12px; top: 12px; z-index: 10; background: #fff; padding: 10px 14px; border-radius: 10px; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }

/* header */
.site-header { background: var(--dark); color: var(--on-dark); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 58px; gap: 10px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: #fff; text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.brand:hover { color: #fff; }
.brand__mark { width: 30px; height: 30px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 900; font-size: 18px; }
.brand__name b { color: var(--accent); font-weight: 800; }
/* a long address or code in a source title or a table cell wraps instead of widening the page (KIT-FIX) */
main cite, main td, main th, .sources li { overflow-wrap: anywhere; }
/* a long brand and two header links share a 375 px row without wrapping "Log in" (KIT-FIX) */
@media (max-width: 400px) { .site-header .wrap { gap: 6px; } .brand { font-size: 17px; gap: 7px; } .header-login, .lang-switch { padding: 8px 9px; font-size: 14px; } .site-header__nav { gap: 4px; } }
.site-header__nav { display: flex; align-items: center; gap: 6px; }
.header-login, .lang-switch { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 12px; border-radius: 999px; color: #fff; text-decoration: none; font-weight: 650; font-size: 15px; white-space: nowrap; flex: 0 0 auto; }
.lang-switch { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.28); }
.lang-switch:hover, .header-login:hover { color: var(--accent-ink); background: var(--accent); box-shadow: none; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 14px 22px; border: 0; border-radius: var(--radius-sm); background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 750; font-size: 17px; line-height: 1.2; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08), 0 6px 18px rgba(0, 0, 0, 0.12); }
.btn--secondary { background: var(--dark); color: #fff; }
.btn--lg { min-height: 56px; font-size: 18px; }
.btn--block { display: flex; width: 100%; }
.btn--quiet { background: transparent; color: var(--link); box-shadow: inset 0 0 0 1.5px var(--line); }
.buy-terms { margin: 8px 0 0; font-size: 14px; color: var(--ink-3); line-height: 1.45; text-align: center; }
/* The renewal sentence ("Then $24 on Nov 20 and every month until you cancel.") in contrasting type (LEGAL, Nov 13). */
.buy-terms strong { color: var(--ink); font-weight: 700; }
.cta .buy-terms strong { color: var(--on-dark); }
/* "By starting, you accept the Terms." (JourneyListo's consent line): the link keeps a 44 px tap area. */
.buy-terms [data-agree] a { display: inline-block; padding: 13px 0; margin: -13px 0; line-height: 18px; }

/* landing hero */
.hero { background: var(--paper); padding: 16px 0 26px; border-bottom: 1px solid var(--line); }
.hero__grid { display: grid; gap: 14px; }
.hero h1 { font-size: clamp(27px, 7.4vw, 44px); margin: 0 0 6px; }
.hero__sub { margin: 0; font-size: 17px; color: var(--ink-2); }
.hero__cta { margin-top: 2px; }
/* site.json practice_note: one line above the free-week button ("independent practice; the exam is booked with ...") */
.hero__note { margin: 0 0 8px; font-size: 14px; line-height: 1.4; color: var(--ink-2); text-align: center; text-wrap: balance; }
/* the landing's trust line under the first screen (home.json trust): who makes the site, one plain link */
.trust-strip { padding: 14px 0; border-bottom: 1px solid var(--line); }
.trust-line { margin: 0; font-size: 15px; color: var(--ink-2); }
@media (min-width: 900px) {
  .hero { padding: 40px 0 48px; }
  .hero__grid { grid-template-columns: 1fr 1fr; grid-template-areas: 'copy sample' 'cta sample'; align-items: start; column-gap: 40px; }
  .hero__copy { grid-area: copy; }
  .hero .sample { grid-area: sample; }
  .hero__cta { grid-area: cta; }
}

/* the sample question and the check's questions */
.sample, .q-card { background: #fff; border: 2px solid var(--ink); border-radius: 14px; padding: 14px 14px 12px; box-shadow: 5px 5px 0 var(--accent); }
.sample__label, .q-card__label { margin: 0 0 6px; font-size: 12.5px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--link); }
.sample__q, .q-card__q { margin: 0 0 10px; font-size: 16.5px; font-weight: 600; line-height: 1.42; }
.opts { display: grid; gap: 8px; }
.opts--2 { grid-template-columns: 1fr 1fr; }
.opt { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 9px 12px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-weight: 650; font-size: 16px; line-height: 1.3; text-align: left; cursor: pointer; }
.opt:hover:not([disabled]) { border-color: var(--link); background: var(--info-bg); }
.opt[disabled] { cursor: default; }
.opt__mark { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #9aa3ba; flex: none; }
.opt.is-correct { border-color: var(--ok); background: var(--ok-bg); }
.opt.is-correct .opt__mark { border-color: var(--ok); background: radial-gradient(circle, var(--ok) 45%, transparent 50%); }
.opt.is-wrong { border-color: var(--bad); background: var(--bad-bg); }
.opt.is-wrong .opt__mark { border-color: var(--bad); background: radial-gradient(circle, var(--bad) 45%, transparent 50%); }
.sample__hint { margin: 8px 0 0; font-size: 13.5px; color: var(--ink-3); }
.sample.is-done .sample__hint { display: none; }
.fb { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--info-bg); font-size: 15.5px; }
.fb p { margin: 0 0 8px; }
.fb p:last-child { margin: 0; }
.fb__title { font-weight: 800; font-size: 17px; }
.fb.is-ok { background: var(--ok-bg); }
.fb.is-bad { background: var(--bad-bg); }
.fb__src { font-size: 14px; color: var(--ink-2); }
.fb__src cite { font-style: normal; }
.q-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; align-items: center; }
.q-actions .btn { flex: 1 1 auto; }
.linkish { background: none; border: 0; padding: 8px 4px; color: var(--link); font: inherit; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* sections */
.section { padding: 34px 0; }
.section--check { padding: 6px 0 26px; }
.section ol, .section ul { padding-left: 1.2em; }
.section li { margin: 0 0 6px; }
.check-line, .first-line { font-size: 16px; color: var(--ink-2); }
.first-line { margin: 10px 0 0; }

/* guide pages */
.page-hero { background: var(--paper); border-bottom: 1px solid var(--line); padding: 22px 0 18px; }
.flag { display: inline-block; margin: 0 0 12px; padding: 5px 11px; border-radius: 999px; background: var(--info-bg); color: var(--link); font-size: 13px; font-weight: 750; }
.lead { font-size: 18.5px; color: var(--ink-2); margin: 0; }
.answer .lead { color: var(--ink); }
.prose { padding-top: 18px; padding-bottom: 40px; }
.prose h2 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li { margin: 0 0 6px; }
.crumbs { font-size: 14px; color: var(--ink-3); margin: 0 0 14px; }
.crumbs a { color: var(--ink-3); }
.takeaways, .keyfacts, .callout { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin: 0 0 20px; box-shadow: var(--shadow); }
.takeaways h2, .keyfacts h2 { margin-top: 0; font-size: 20px; }
.takeaways ul { margin: 0; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 10px; }
table.data { width: 100%; border-collapse: collapse; font-size: 15.5px; background: #fff; }
table.data th, table.data td { text-align: left; vertical-align: top; padding: 9px 10px; border-bottom: 1px solid var(--line); }
table.data thead th { font-size: 13.5px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--ink-3); border-bottom: 2px solid var(--line); }
table.data tbody th { font-weight: 700; }
table.data caption { text-align: left; font-weight: 700; padding: 0 0 6px; }
.table__src { font-size: 14px; color: var(--ink-3); }
/* Tables of 3+ columns on a phone (lead's note, Nov 13: the facts table's detail wrapped two words per line and its
   source column was clipped at 375 px): each row is a block, the first cell a bold label, then each cell under it (its
   column's name in front, data-label), the key facts' source as a small line last. phone.py checks every page. */
@media (max-width: 599px) {
  table.data--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  table.data--stack, table.data--stack tbody, table.data--stack tr, table.data--stack th, table.data--stack td { display: block; width: auto; }
  table.data--stack caption { display: block; }
  table.data--stack tr { padding: 10px 2px; border-bottom: 1px solid var(--line); }
  table.data--stack th, table.data--stack td { padding: 0; border: 0; overflow-wrap: break-word; }
  table.data--stack tbody th { margin: 0 0 3px; }
  table.data--stack td + td { margin-top: 4px; }
  table.data--stack td[data-label]::before { content: attr(data-label) ": "; font-weight: 600; color: var(--ink-3); }
  table.keyfacts__table td:last-child { font-size: 14px; color: var(--ink-3); }
  .table-wrap:has(> table.data--stack) { overflow-x: visible; }
  /* two columns stay a table, split 40/60 so neither column drops under ~120 px on a 375 px phone */
  table.data:not(.data--stack) { table-layout: fixed; }
  table.data:not(.data--stack) tr > :first-child { width: 40%; }
  table.data:not(.data--stack) th, table.data:not(.data--stack) td { padding: 9px 8px; overflow-wrap: break-word; hyphens: auto; }
}
.fact { font-weight: inherit; }
.src-ref { font-size: 0.72em; vertical-align: super; margin-left: 2px; text-decoration: none; white-space: nowrap; }
.myth { text-decoration: line-through; color: var(--bad); }
.count-note { display: block; font-size: 14.5px; color: var(--ink-3); }
cite { font-style: normal; }
.cta { background: var(--dark); color: #fff; border-radius: var(--radius); padding: 20px 18px; margin: 28px 0; }
.cta h2 { color: #fff; margin-top: 0; }
.cta p { color: var(--on-dark-2); }
.cta .buy-terms { color: var(--on-dark-2); }
.cta a:not(.btn) { color: var(--accent); }
.cta__line { margin: 10px 0 0; font-size: 15px; text-align: center; }
.faq { margin: 28px 0; }
.faq-item { border-top: 1px solid var(--line); padding: 12px 0 2px; }
.faq-q { font-size: 18px; margin: 0 0 6px; }
.faq-a { margin: 0 0 10px; color: var(--ink-2); }
.sources { margin-top: 30px; font-size: 15px; }
.sources h2 { font-size: 20px; }
.sources__list { padding-left: 1.3em; }
.sources__list li { margin: 0 0 6px; }
.reviewed { color: var(--ink-3); font-size: 14.5px; }

/* the lead magnet */
.magnet { background: #fff; border: 2px solid var(--ink); border-radius: 14px; padding: 14px; margin: 0 0 22px; }
.magnet__title { display: block; font-weight: 800; font-size: 18px; margin: 0 0 8px; }
.magnet__row { display: flex; gap: 8px; }
.input { flex: 1 1 auto; min-width: 0; min-height: 50px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; font-size: 17px; }
.magnet__consent, .magnet__open { font-size: 13.5px; color: var(--ink-3); margin: 8px 0 0; }
.magnet__msg { margin: 8px 0 0; font-weight: 650; }
.magnet__msg.is-ok { color: var(--ok); }
.magnet__msg.is-error { color: var(--bad); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* the free check */
.check { padding: 22px 0 30px; background: var(--paper); border-bottom: 1px solid var(--line); }
/* Calculator pages (kind "calculator"): the form, the answer with its steps, the practice-math line, the button. */
.calc { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 16px 16px 18px; margin: 16px 0 4px; }
.calc__modes { border: 0; padding: 0; margin: 0 0 12px; display: grid; gap: 6px; }
.calc__modes legend { font-weight: 750; margin-bottom: 6px; }
.calc__mode { display: flex; gap: 8px; align-items: center; min-height: 44px; }
.calc__inputs { display: grid; gap: 12px; }
.calc__field label { display: block; font-weight: 650; margin-bottom: 6px; }
.calc__field .input { width: 100%; }
.calc__unit { font-weight: 500; color: var(--ink-3); }
.calc__err { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--bad-bg); color: var(--ink); font-weight: 650; }
.calc__form .btn { margin-top: 16px; }
.calc__out { margin-top: 16px; padding: 14px; border-radius: 12px; background: var(--ok-bg); }
.calc__out h3 { font-size: 17px; margin: 12px 0 6px; }
.calc__answer { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.calc__label { margin: 0; font-weight: 750; }
.calc__value { margin: 0; font-size: 26px; font-weight: 850; }
.calc__steps { margin: 0 0 10px; padding-left: 22px; }
.calc__steps li { margin: 0 0 6px; }
.calc__src { font-size: 14px; color: var(--ink-2); margin: 8px 0 0; }
.calc__src cite { font-style: normal; }
.calc__note { font-size: 14px; color: var(--ink-3); margin: 14px 0 0; }
.calc__cta { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.calc__cta-h { font-weight: 750; margin: 0 0 10px; }
.input[aria-invalid="true"] { border-color: var(--bad); }
.fb__steps-h { font-weight: 750; margin: 8px 0 4px; }
.fb__steps { margin: 0 0 8px; padding-left: 20px; }
.facts-row { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 14px 0 16px; }
.facts-row li { padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 15px; font-weight: 650; }
.progress { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; margin: 0 0 12px; }
.progress span { display: block; height: 100%; background: var(--link); }
.result { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
/* the result box keeps clear of the lead above it (KIT-FIX: 4 px apart on the check page) */
.check__run { margin-top: 16px; }
.result h2 { margin-top: 0; }
.bars { list-style: none; padding: 0; margin: 10px 0 6px; }
.bars li { margin: 0 0 12px; }
.bar__top { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; font-weight: 650; }
.bar__top > span:last-child { white-space: nowrap; flex: 0 0 auto; }
.bar__top > span:first-child { min-width: 0; }
.bar__track { position: relative; height: 12px; border-radius: 99px; background: var(--line); margin-top: 4px; }
.bar__fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; background: var(--bad); }
.bar__fill.is-ready { background: var(--ok); }
.bar__line { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink); }
.bar__tag { font-size: 13px; font-weight: 750; }
.bar__tag.is-ready { color: var(--ok); }
.bar__tag.is-not { color: var(--bad); }
.ready-note, .pass-rule { font-size: 14.5px; color: var(--ink-2); }
.pass-more summary { cursor: pointer; font-size: 14.5px; color: var(--link); }
.pass-more p { font-size: 14.5px; color: var(--ink-2); margin-top: 6px; }
.noscript { padding: 12px; background: var(--bad-bg); border-radius: 10px; }

/* footer */
.site-footer { background: var(--dark); color: var(--on-dark-2); padding: 30px 0 22px; margin-top: 10px; font-size: 15px; }
.site-footer a { color: #fff; }
.footer__grid { display: grid; gap: 18px; }
@media (min-width: 800px) { .footer__grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer__h { font-weight: 750; color: #fff; margin: 0 0 6px; }
.footer__links { list-style: none; padding: 0; margin: 0; }
.footer__links li { margin: 0 0 7px; }
.footer__legal { font-size: 13px; color: var(--on-dark-2); margin: 12px 0 0; }

/* 404 */
.notfound { padding: 40px 0; }
.notfound__block { margin: 0 0 26px; }

@media print { .site-header, .site-footer, .cta, .magnet, .first-line { display: none; } }

/* the kit's member bar (js/site.js memberMode adds it under the header for a signed-in member) */
.member-bar { background: var(--dark-2); color: #fff; }
.member-bar p { max-width: 1120px; margin: 0 auto; padding: 8px 18px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 650; font-size: 15px; }
.btn--small { min-height: 40px; padding: 8px 14px; font-size: 15px; }

/* The landing's first screen on a phone, as compact as stays readable: the sample question, its four choices (44 px
   tap targets) and the free-week button fit a 375x667 screen (index.mjs SAMPLE_LIMITS, measured with tests/phone.py). */
@media (max-width: 899px) {
  .page-landing .site-header .wrap { min-height: 52px; }
  .hero { padding: 10px 0 16px; }
  .hero__grid { gap: 10px; }
  .hero__grid > * { min-width: 0; }
  .hero h1 { font-size: clamp(24px, 6.6vw, 30px); line-height: 1.12; margin: 0 0 4px; }
  .hero__sub { font-size: 16px; line-height: 1.4; }
  .hero .sample { padding: 10px 11px 9px; border-radius: 12px; box-shadow: 4px 4px 0 var(--accent); }
  .hero .sample__label { margin: 0 0 4px; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hero .sample__q { margin: 0 0 8px; font-size: 16px; line-height: 1.36; }
  .hero .opts { gap: 6px; }
  .hero .opt { min-height: 44px; padding: 6px 10px; gap: 8px; font-size: 15.5px; line-height: 1.25; }
  .hero .opt__mark { width: 16px; height: 16px; }
  .hero .sample__hint { margin: 5px 0 0; font-size: 12.5px; }
  .hero .btn--lg { min-height: 52px; }
  .hero .buy-terms { margin-top: 6px; font-size: 13.5px; }
  .hero__note { margin: 0 0 6px; font-size: 13.5px; line-height: 1.35; }
}
