/* Last Control: Reclaim — the kept old pages (HQ-2773): /tests, /answers, /cognition, /cognition-quiz, the old legal
   *.html. Loaded after site.css. The pages' own <style> blocks were written for the old /css/app.css tokens (ink on
   paper); here those tokens are mapped onto the site's colours, so the widgets follow the site's dark and light modes.
   Written by hand; tools/legacy/rewrite_legacy.py links it, it does not generate it. */

main.lc, main.lc-cog, main.lc-stub {
  /* old token        -> site token */
  --paper: var(--bg);            /* page and card ground */
  --ceramic: var(--panel);       /* raised cards */
  --ink: var(--fg);              /* text and strong rules */
  --shadow: var(--muted);        /* quiet text and dashed rules */
  --paper-border: var(--rule);
  --bg-light: var(--bg);
  --accent-ink: var(--on-fill);
  --banner: #3F7A3C;             /* "correct" green, AA with white text */
  --radius-sm: 0;
  --radius-md: 0;
  --radius-lg: 0;
  --shadow-card: 3px 3px 0 var(--rule-strong);
  --shadow-card-lg: 4px 4px 0 var(--rule-strong);
  width: 100%;
}

main.lc { color: var(--fg); }

/* site.css styles .section, .faq, .field, .legend and .ledger for its own pages: the old pages use the same names */
main.lc .section { padding: 0; border-top: 0; }
main.lc .field { margin: 0; }
main.lc .legend { margin: 0; font-size: inherit; color: inherit; align-items: stretch; }
main.lc .ledger { list-style: none; }

main.lc h1, main.lc h2, main.lc h3 { overflow-wrap: anywhere; }

/* the old accent span of the headlines: the site's accent text colour (sodium on dark, darkened crack on paper) */
main.lc .hero-hook .crack { color: var(--accent); }

/* boxes the old pages painted plain white: the site's raised panel instead */
main.lc .filed, main.lc .dial__key, main.lc .bundle.featured, main.lc .payments-row { background: var(--panel); }
main.lc a:not([class]) { color: inherit; }

/* hard-coded rules of the old pages, drawn for paper: lifted for the dark ground */
@media (prefers-color-scheme: dark) {
  main.lc [class*="__card"], main.lc [class*="__stamp"], main.lc .faq, main.lc .more-rows { border-color: var(--rule-strong); }
  main.lc .divider-dashed { border-top-color: var(--rule-strong); opacity: 1; }
}

/* the old CTA buttons (app.css primitives) */
main.lc .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 12px 18px;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
}
main.lc .btn-primary { background: var(--fill); color: var(--on-fill); }
main.lc .btn-secondary { background: transparent; color: var(--fg); border-color: var(--fg); }
main.lc .eyebrow, main.lc .mono-label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
}

/* buttons the widgets draw: never below a 44 px target */
main.lc button { min-height: 44px; }

/* ---------- the badge and the one-line pitch in the hero (tests, answers, cognition-quiz) ---------- */
.hero-game {
  margin: 1.25rem 0 0;
  padding-top: 1rem;
  border-top: 1px dashed var(--rule-strong);
  max-width: 40rem;
}
.hero-game .play { gap: 0.5rem 1rem; }
.hero-game-line { margin: 0.7rem 0 0; font-size: 0.875rem; line-height: 1.45; color: var(--fg); max-width: 56ch; }
@media (max-width: 40rem) {
  main.lc #intro .eyebrow-line { margin-top: 16px; }   /* the old pages' 40 px: the hero badge fits a phone's first screen */
  /* tests and cognition-quiz on a phone: the note sits beside the badge, inside its height, as two lines ("Free on
     iPhone" over "No ads", the dot hidden), so the cookie bar never slices it */
  main.lc #intro .hero-game { margin-top: 0.75rem; padding-top: 0.75rem; }
  main.lc #intro .hero-game .play { flex-wrap: nowrap; }
  main.lc #intro .hero-game .play-note { max-width: 10.5rem; line-height: 1.35; }
  main.lc #intro .hero-game .play-note-sep { display: none; }
  main.lc #intro .hero-game .play-note-part { display: block; }
}
/* /answers: under the H1, before the TL;DR; /tests and /cognition-quiz: the start button, the badge and the pitch come
   right after the H1, the lede and the small print after them, so a phone shows the badge on its first screen
   before a cookie choice (the bar then docks at the bottom) */
.hero-game:not(:last-child) { margin-bottom: 1.75rem; }
main.lc #intro .lede + .hero-micro { margin-top: 0; }

/* ---------- the result-screen bridge to the App Store (tests, cognition-quiz) ---------- */
.bridge {
  margin: 26px 0 0;
  padding: 1.25rem 1.35rem 1.35rem;
  border: 2px solid var(--deco);
  background: var(--panel);
}
.bridge-line {
  margin: 0 0 0.35rem;
  font-family: var(--f-display);
  font-size: clamp(1.25rem, 4.5vw, 1.6rem);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--fg);
  text-wrap: balance;   /* never one word alone on the second line */
}
.bridge-sub { margin: 0 0 1rem; color: var(--muted); font-size: 0.875rem; }
.bridge .play-note { margin: 0; }

/* ---------- /answers: the separate Reclaim recommendation ---------- */
.reclaim-box {
  border: 2px solid var(--deco);
  background: var(--panel);
  padding: 1.25rem 1.35rem 1.35rem;
}
.reclaim-box h2 {
  font-size: clamp(1.25rem, 4.5vw, 1.6rem);
  line-height: 1.1;
  margin: 0.6rem 0 0.75rem;
  color: var(--fg);
}
.reclaim-box p { margin: 0 0 0.75rem; max-width: 64ch; }
.reclaim-box ul { margin: 0 0 1.1rem; padding-left: 1.2rem; }
.reclaim-box li { margin: 0 0 0.35rem; }
.reclaim-box li::marker { color: var(--accent); }
main.lc .lede ul { padding-left: 1.2rem; }

/* ---------- the old legal pages: whose they are ---------- */
.legacy-note {
  margin: 0 0 2rem;
  padding: 1rem 1.2rem 1.1rem;
  border: 2px solid var(--deco);
  background: var(--panel);
  font-size: 0.875rem;
}
.legacy-note p { margin: 0 0 0.9rem; }

/* ---------- /cognition ---------- */
.cog-hero { padding: clamp(2.25rem, 7vw, 4.5rem) 0 clamp(2rem, 5vw, 3rem); }
.cog-hero h1 { font-size: clamp(2.2rem, 9vw, 4.25rem); line-height: 0.98; margin: 0.9rem 0 0.6rem; max-width: 18ch; }
.cog-sub {
  margin: 0 0 1rem;
  font-family: var(--f-display);
  font-size: clamp(1.2rem, 4.6vw, 1.9rem);
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--accent);
  max-width: 24ch;
}
.cog-lead { font-size: 1rem; max-width: 46ch; margin: 0 0 1.5rem; }
.cog-quiz { margin: 1.25rem 0 0; }
.cog-quiz .cta-quiet { display: inline-flex; align-items: center; min-height: 44px; }
.cog-frame { margin: 0 0 2rem; }
.cog-frame img { width: 100%; height: auto; border: 1px solid var(--rule-strong); }
.cog-frame figcaption { margin-top: 0.6rem; color: var(--muted); font-size: 0.8125rem; }
.cog-facts { margin-bottom: 1rem; }

/* ---------- /cognition-quiz ---------- */
.reveal__score-note {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted); margin-top: 12px;
}

/* ---------- /tests stub ---------- */
main.lc-stub .doc .play { margin-top: 1.5rem; }

/* ---------- /cognition-quiz: the text under the quiz ---------- */
.quiz-about { margin-top: 56px; padding-top: 24px; border-top: 1px dashed var(--rule-strong); }
.quiz-about h2 { font-size: clamp(1.15rem, 4vw, 1.5rem); line-height: 1.15; margin: 0 0 1rem; }
.quiz-about p { margin: 0 0 0.9rem; max-width: 64ch; font-size: 0.875rem; }
