/* ==========================================================================
   Loupe - shared styles for every page (index, me, privacy, 404).

   Taken from the approved direction C mockup. Tokens and every component used
   by more than one page live here; each page's own layout lives in its own
   file (scan.css, me.css). LIGHT MODE ONLY: no dark tokens, no
   prefers-color-scheme switch, and the page always sets its own background.

   This file is ASCII only; curly punctuation in generated content is written
   as CSS escapes (\2019 and friends), so no encoding step can mangle it.

   Layout: phone first, checked at 390px wide with a 16px gutter and no
   sideways scroll. Breakpoints used across pages:
     >= 520px  small tablet: two fields side by side (page files)
     >= 760px  the gutter grows to 32px
     >= 600px  the footer's two text columns sit side by side
     >= 860px  the footer goes to three columns
     >= 980px  desktop: the answer and where it came from sit side by side
   ========================================================================== */

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */
:root {
  --paper: #F6F2EA;        /* warm ground */
  --paper-2: #EFE8DC;      /* inset wells, avatars */
  --surface: #FFFFFF;      /* cards */
  --ink: #1C2621;          /* body text */
  --ink-2: #4F5B54;        /* secondary text */
  --ink-3: #5C6862;        /* captions, placeholders */
  --line: #E6DDCE;
  --line-strong: #CDBFA9;
  --green: #1A7049;        /* the one accent: buttons, links, the lens */
  --green-deep: #145A3C;   /* pressed edge, hover */
  --green-off: #388361;    /* a primary button that can't be used yet (white on it: 4.6:1) */
  --green-off-deep: #336F55;
  --green-soft: #E3F1E7;   /* tints, chips */
  --green-soft-ink: #145A3C;
  --green-line: #C9E2D2;   /* the waiting ring's track */
  --on-green: #FFFFFF;
  --leaf: #7CC39A;         /* illustration only */
  --sun: #F2B33D;          /* the lens glint; decoration only, never text */
  --amber-soft: #FBEFD5;
  --amber-ink: #7A4A06;
  --red-soft: #FBE4DF;
  --red-ink: #9B2C1B;
  --ring: rgba(26, 112, 73, 0.22);
  --shadow: 0 1px 2px rgba(70, 52, 24, 0.06), 0 6px 20px rgba(70, 52, 24, 0.07);
  --shadow-lg: 0 2px 6px rgba(70, 52, 24, 0.08), 0 18px 40px rgba(70, 52, 24, 0.12);
  /* the 11B loupe (brand/README.md): ink face, wall, glass; the glint is --sun */
  --lens-face: #1C2621;
  --lens-wall: #414E48;
  --lens-glass: #E3F1E7;
  --sans: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --mono: ui-monospace, Menlo, monospace;
  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 10px;
  /* layout */
  --gutter: 16px;
  --wrap: 1120px;
  --narrow: 580px;
  color-scheme: light;
}
@media (min-width: 760px) { :root { --gutter: 32px; } }

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
* { box-sizing: border-box; }
html { background: var(--paper); color-scheme: light; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: lining-nums;
  overflow-wrap: break-word;
}
img, svg { display: block; }
[hidden] { display: none !important; }
a { color: var(--green); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--green-deep); }
/* Type: Nunito 900 is kept for the wordmark and the landing headline only.
   Every other heading sits at 700-800 so the page doesn't shout. */
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -0.015em; font-weight: 800; text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
p { margin: 0; }
/* a bare <strong> or <b> would take "bolder" and compute to 900 inside 600-800 text; 900 is kept for the
   wordmark and the landing headline, so bold text tops out at 800 (rules below that set a weight still win) */
strong, b { font-weight: 800; }
/* <q> always draws curly quotes, whatever the text inside it */
q { quotes: "\201C" "\201D" "\2018" "\2019"; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }
/* headings take focus from script on each screen change; they aren't controls, so no ring */
[tabindex="-1"]:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* skip link: off screen until it has keyboard focus */
.skip {
  position: absolute; left: var(--gutter); top: -200px; z-index: 100;
  background: var(--surface); color: var(--green); font-weight: 800;
  padding: 10px 16px; border-radius: var(--r-sm); box-shadow: var(--shadow-lg); text-decoration: none;
}
.skip:focus { top: 12px; }

/* the line shown when JavaScript is off */
.noscript {
  margin: 0 0 20px; padding: 12px 16px; border-radius: var(--r-md);
  background: var(--amber-soft); color: var(--amber-ink);
  font-weight: 750; font-size: 15.5px; line-height: 1.45;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: var(--narrow); margin: 0 auto; }
/* one screen at a time (index and me switch screens in place) */
.screen { display: none; }
.screen.is-on { display: block; animation: rise .28s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
/* with JavaScript off, a page's "Loading..." screen, which only a script would ever finish,
   stays hidden: the noscript line says what to do instead */
@media (scripting: none) { .screen.is-on[data-screen="loading"] { display: none; } }

/* type helpers */
.muted { color: var(--ink-2); }
.fine { color: var(--ink-3); font-size: 14.5px; line-height: 1.5; }
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.kicker { font-size: 13px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.nowrap { white-space: nowrap; }
/* an exact search string Loupe sends, shown as a literal (the name keeps its quotation marks) */
.qlit { display: inline-block; max-width: 100%; font-weight: 800; color: var(--ink); background: var(--paper); border-radius: 7px; padding: 1px 7px; box-shadow: inset 0 0 0 1.5px var(--line); line-height: 1.4; vertical-align: 1px; overflow-wrap: anywhere; }

/* --------------------------------------------------------------------------
   The 11B wordmark (brand/wordmark.html, with its inline styles moved here).
   "L" and "upe" are live Nunito 900 text; the o is the inline SVG, drawn in
   font units, so the whole mark takes its size from the parent's font-size.
   -------------------------------------------------------------------------- */
.loupe-wm { font: 900 1em/1 var(--sans); letter-spacing: -.03em; color: #1A7049; white-space: nowrap; }
.loupe-wm > svg { display: inline-block; width: 0.5744em; height: 1.05em; vertical-align: -.25em; margin: 0 0.025em 0 0.065em; overflow: visible; }
/* at 48px and up the glint takes a finer stroke (brand README) */
.loupe-wm.is-display .c11b-glint { stroke-width: 52; }

/* --------------------------------------------------------------------------
   Header / footer
   -------------------------------------------------------------------------- */
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 72px; }
/* clear space of about half the o's width is kept by the header's own padding */
.brand { display: inline-flex; align-items: center; text-decoration: none; font-size: 32px; line-height: 1; padding: 6px 0 4px; border-radius: 8px; }

/* The footer: the brand, then two short columns. "About Loupe" (middle) holds the three lines about
   Loupe itself; "Privacy and age" (right) is one line and a link to the privacy page (which says it all in
   full) plus the 18+ line. Stacked on phones; from 600px the two columns sit side by side under the
   brand; from 860px all three share one row. */
.foot { margin-top: 72px; border-top: 1px solid var(--line); background: var(--paper); }
.foot .wrap { display: grid; gap: 22px; padding-top: 32px; padding-bottom: 40px; }
@media (min-width: 600px) { .foot .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 40px; } .foot-brand { grid-column: 1 / -1; } }
@media (min-width: 860px) { .foot .wrap { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.15fr) minmax(0, 1.15fr); gap: 48px; } .foot-brand { grid-column: auto; } }
.foot-brand .brand { font-size: 26px; }
.foot-brand p { margin-top: 6px; color: var(--ink-2); font-weight: 700; }
.foot h2 { font-size: 15px; font-weight: 800; margin-bottom: 6px; letter-spacing: 0; }
.foot p { font-size: 14.5px; color: var(--ink-2); line-height: 1.55; }
.foot p + p { margin-top: 8px; }
.foot .foot-more { text-wrap: balance; }
.age { display: inline-flex; align-items: center; gap: 8px; }
.foot .age { display: flex; }
.age b { display: inline-grid; place-items: center; min-width: 34px; height: 24px; border-radius: 999px; border: 1.5px solid var(--line-strong); font-size: 12.5px; font-weight: 800; color: var(--ink); flex: none; }

/* --------------------------------------------------------------------------
   Building blocks: card, buttons, pills, chips, links
   -------------------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px;
  border-radius: var(--r-md); border: 0;
  font-weight: 850; font-size: 17px; line-height: 1.1; letter-spacing: -0.005em; text-align: center;
  text-decoration: none; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--green); color: var(--on-green); min-height: 58px; box-shadow: 0 3px 0 var(--green-deep); }
.btn-primary:hover { color: var(--on-green); background: var(--green-deep); }
.btn-primary:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--green-deep); }
.btn-secondary { background: var(--green-soft); color: var(--green-soft-ink); }
.btn-secondary:hover { color: var(--green-soft-ink); box-shadow: inset 0 0 0 2px var(--green); }
.btn-outline { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 2px var(--line-strong); }
.btn-outline:hover { color: var(--ink); box-shadow: inset 0 0 0 2px var(--green); }
.btn-ghost { background: transparent; color: var(--green); padding: 0 12px; min-height: 44px; }
.btn-ghost:hover { background: var(--green-soft); }
.btn-danger { color: var(--red-ink); box-shadow: inset 0 0 0 2px var(--red-ink); background: var(--surface); }
.btn-danger:hover { color: var(--red-ink); background: var(--red-soft); }
.btn-sm { min-height: 44px; font-size: 15.5px; padding: 0 16px; }
.btn-block { width: 100%; }
/* a button that can't be used right now (busy with its answer, or turned off in a sample); it still reads */
.btn:disabled, .btn[aria-disabled="true"] { opacity: .75; cursor: not-allowed; }
.btn:disabled:active, .btn[aria-disabled="true"]:active { transform: none; }
/* and it doesn't react to hover or press */
/* the primary one is a solid, lighter green instead of see-through: white on it stays 4.6:1
   (opacity .75 would drop it to 3.6:1) */
.btn-primary:disabled, .btn-primary[aria-disabled="true"] { opacity: 1; background: var(--green-off); box-shadow: 0 3px 0 var(--green-off-deep); }
.btn-secondary:disabled, .btn-secondary[aria-disabled="true"] { box-shadow: none; }
.btn-outline:disabled, .btn-outline[aria-disabled="true"] { box-shadow: inset 0 0 0 2px var(--line-strong); }
.btn-ghost:disabled, .btn-ghost[aria-disabled="true"] { background: transparent; }
.btn-danger:disabled, .btn-danger[aria-disabled="true"] { background: var(--surface); }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 999px; padding: 3px 11px;
  font-size: 13px; font-weight: 800; line-height: 1.45; white-space: nowrap;
  background: var(--paper-2); color: var(--ink-2);
}
.pill svg { width: 14px; height: 14px; }
.pill-green { background: var(--green-soft); color: var(--green-soft-ink); }
.pill-amber { background: var(--amber-soft); color: var(--amber-ink); }
.pill-red { background: var(--red-soft); color: var(--red-ink); }
.pill-line { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-strong); color: var(--ink-2); }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 36px; padding: 0 12px; border-radius: 999px;
  background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line-strong);
  color: var(--green); font-weight: 800; font-size: 15px; text-decoration: none;
  max-width: 100%; overflow-wrap: anywhere;
}
.chip:hover { box-shadow: inset 0 0 0 2px var(--green); color: var(--green-deep); }
.chip svg { width: 14px; height: 14px; flex: none; }

/* a button that reads as a link inside a sentence */
.linklike { font: inherit; color: var(--green); background: none; border: 0; padding: 0; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; cursor: pointer; }
.linklike:hover { color: var(--green-deep); }

/* "Back to ..." above a card */
.back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 800; text-decoration: none; margin-bottom: 8px; }
.back svg { width: 18px; height: 18px; }

/* initials in a plain circle; never a face */
.avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--paper-2); color: var(--ink-2); display: grid; place-items: center; font-weight: 800; font-size: 16px; flex: none; letter-spacing: .02em; }
.avatar svg { width: 24px; height: 24px; }

/* --------------------------------------------------------------------------
   Form fields
   -------------------------------------------------------------------------- */
.field { display: grid; gap: 7px; min-width: 0; }
.field > label, .label { font-weight: 850; font-size: 15px; color: var(--ink); }
.input, .select {
  width: 100%; min-height: 56px; padding: 0 16px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--line-strong);
  background: var(--surface); color: var(--ink);
  font-weight: 650; font-size: 17px;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.input::placeholder { color: var(--ink-3); font-weight: 550; opacity: 1; }
.input:focus, .select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px var(--ring); }
.select {
  appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%235C6862' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 20px;
}
.input:disabled, .select:disabled { background-color: var(--paper); color: var(--ink-2); cursor: not-allowed; }
.input[aria-invalid="true"], .select[aria-invalid="true"] { border-color: var(--red-ink); }
.help { font-size: 14.5px; color: var(--ink-2); font-weight: 650; line-height: 1.45; }
.err { color: var(--red-ink); font-size: 14.5px; font-weight: 750; display: flex; gap: 6px; align-items: center; }
.err svg { width: 16px; height: 16px; flex: none; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-weight: 650; padding: 4px 0; }
.check input { appearance: none; -webkit-appearance: none; flex: none; width: 26px; height: 26px; margin: 0; border-radius: 8px; border: 2px solid var(--line-strong); background: var(--surface); display: grid; place-items: center; cursor: pointer; }
.check input:checked { background: var(--green); border-color: var(--green); }
.check input:checked::after { content: ""; width: 12px; height: 7px; border: 3px solid var(--on-green); border-top: 0; border-right: 0; transform: translateY(-2px) rotate(-45deg); }
.check input:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.check input[aria-invalid="true"] { border-color: var(--red-ink); }

/* one choice from a short list: big radio rows */
.opt { display: flex; align-items: center; gap: 14px; min-height: 58px; padding: 0 16px; border-radius: var(--r-md); box-shadow: inset 0 0 0 1.5px var(--line-strong); cursor: pointer; font-weight: 800; background: var(--surface); }
.opt:hover { box-shadow: inset 0 0 0 2px var(--green); }
.opt input { appearance: none; -webkit-appearance: none; margin: 0; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-strong); flex: none; display: grid; place-items: center; background: var(--surface); }
.opt input:checked { border-color: var(--green); }
.opt input:checked::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--green); }
.opt:has(input:checked) { box-shadow: inset 0 0 0 2.5px var(--green); background: var(--green-soft); }
.opt .st { margin-left: auto; color: var(--ink-3); font-weight: 700; font-size: 15px; }
.opt input:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-weight: 800; font-size: 14px; }
.or::before, .or::after { content: ""; flex: 1; height: 1.5px; background: var(--line); }

/* --------------------------------------------------------------------------
   Notices: the full-card outcomes (limits, errors, paused, 404),
   each with the 11B loupe and its sign (site.js fills [data-art])
   -------------------------------------------------------------------------- */
.notice { padding: 30px 22px 26px; text-align: center; display: grid; gap: 12px; justify-items: center; }
.notice h1 { font-size: clamp(28px, 7.4vw, 38px); font-weight: 800; letter-spacing: -0.03em; }
.notice .art { width: 132px; height: 132px; margin-bottom: 4px; }
.notice .art svg, .done-ico svg { width: 100%; height: 100%; }
.notice p.muted { max-width: 36ch; font-weight: 650; text-wrap: balance; }
.notice .actions { display: grid; gap: 8px; width: 100%; max-width: 360px; margin-top: 10px; }
.notice .code { font-size: 13px; color: var(--ink-3); font-weight: 700; margin-top: 6px; }
.notice .code code { font-family: var(--mono); background: var(--paper); padding: 2px 6px; border-radius: 6px; }

/* --------------------------------------------------------------------------
   The answer card and the quoted-answer well
   (the scan's answer on index, the by-name answer on the report)
   -------------------------------------------------------------------------- */
.asked { padding: 20px 20px 16px; }
.asked .label { color: var(--ink-3); font-size: 13px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.asked .q { font-size: clamp(22px, 5.8vw, 28px); font-weight: 800; letter-spacing: -0.02em; margin-top: 4px; line-height: 1.15; overflow-wrap: anywhere; }
.meta { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.meta li { display: inline-flex; align-items: center; gap: 7px; font-size: 14.5px; font-weight: 750; color: var(--ink-2); background: var(--paper); border-radius: 16px; padding: 5px 12px 5px 10px; line-height: 1.4; max-width: 100%; }
.meta li svg { width: 16px; height: 16px; color: var(--green); flex: none; }
.meta li.cached svg { color: var(--amber-ink); }

.answer-split { display: grid; }
.answer { margin: 0 12px; background: var(--paper); border-radius: 18px; padding: 16px 16px 18px; min-width: 0; }
.answer-tag { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.answer-tag .fine { font-weight: 700; }
/* The AI's answer is quoted material, so it is set in a quiet serif, not in Loupe's own voice. */
.answer-body { font-family: var(--serif); font-optical-sizing: auto; font-size: 18px; line-height: 1.6; font-weight: 400; color: var(--ink); overflow-wrap: anywhere; }
.answer-body ol, .answer-body ul { margin: 0; padding-left: 1.4em; display: grid; gap: 10px; }
/* paragraphs and lists are 12px apart, whichever comes first */
.answer-body > :not(:first-child) { margin-top: 12px; }
.answer-body li > ol, .answer-body li > ul { margin-top: 8px; gap: 6px; }
.answer-body li::marker { font-weight: 600; color: var(--ink-2); font-variant-numeric: lining-nums; }
.answer-body strong { font-weight: 650; }
.answer-body a { font-weight: 600; }
/* Citations stay verbatim, parentheses and all: "(homelight.com)". The link is the answer's own
   text; the arrow and the numbered badge after it are Loupe's, and the badge matches the source list. */
.cite { color: var(--green); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; white-space: nowrap; border-radius: 4px; }
.cite:hover { color: var(--green-deep); background: var(--green-soft); }
.cite svg { display: inline-block; width: 0.6em; height: 0.6em; margin-left: 0.14em; vertical-align: 0.06em; }
.cite-n { font-family: var(--sans); display: inline-grid; place-items: center; min-width: 17px; height: 17px; margin-left: 3px; border-radius: 50%; background: var(--green); color: var(--on-green); font-size: 11px; font-weight: 800; line-height: 1; position: relative; top: -0.5em; }
.nocite { display: flex; gap: 10px; align-items: flex-start; background: var(--amber-soft); color: var(--amber-ink); border-radius: var(--r-md); padding: 12px 14px; font-weight: 700; font-size: 15.5px; margin-bottom: 12px; }
.nocite svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.srcs { margin-top: 16px; padding-top: 14px; border-top: 1.5px dashed var(--line-strong); }
.srcs h3, .srcs h4 { font-size: 13px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.srcs ol { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.srcs li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; font-weight: 650; min-width: 0; line-height: 1.45; }
.srcs li .n { flex: none; display: inline-grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: var(--green); color: var(--on-green); font-size: 11.5px; font-weight: 800; margin-top: 1px; }
.srcs li a { overflow-wrap: break-word; min-width: 0; font-weight: 750; }
/* anything else the AI said, quoted on its own (a claim, a line from the answer) */
.said { font-family: var(--serif); font-size: 18px; line-height: 1.45; font-weight: 400; color: var(--ink); overflow-wrap: anywhere; }

/* where the answer came from */
.prov { padding: 16px 20px 20px; }
.prov-in { display: grid; gap: 12px; }
.prov dl { margin: 0; display: grid; gap: 10px; }
.prov dl div { display: grid; gap: 1px; }
.prov dt { font-size: 13px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.prov dd { margin: 0; font-weight: 700; font-size: 15.5px; }
.disclosure { font-size: 15px; color: var(--ink-2); line-height: 1.55; }
.indep { font-size: 14px; color: var(--ink-3); font-weight: 700; }

/* Desktop: the answer and its provenance sit side by side, the provenance pinned beside
   the answer, so neither column is left with an empty gap whatever the answer's length. */
@media (min-width: 980px) {
  .answer-split { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; padding: 0 0 20px; }
  .answer-split .answer { margin: 0 0 0 20px; padding: 20px 22px 22px; }
  .answer-split .prov { align-self: stretch; margin-left: 26px; padding: 2px 24px 0 24px; border-left: 1.5px solid var(--line); }
  .answer-split .prov-in { position: sticky; top: 16px; }
  .asked { padding: 22px 24px 18px; }
}

/* --------------------------------------------------------------------------
   The waiting ring and its steps. Two short arcs on a full track, so a
   frozen frame still reads as a ring, not a smiley. Only what the page can
   measure moves; with reduced motion the ring stands still.
   -------------------------------------------------------------------------- */
.steps { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 4px; text-align: left; }
.step { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 12px 0 14px; border-radius: var(--r-md); font-weight: 700; color: var(--ink-3); font-size: 17px; }
.step .st-t { flex: 1; min-width: 0; }
.step .st-n { color: var(--ink-3); font-weight: 700; }
.st-ico { width: 24px; height: 24px; flex: none; display: grid; place-items: center; }
.st-ico svg { width: 24px; height: 24px; }
.st-ico .trk { fill: none; stroke: var(--line-strong); stroke-width: 2.5; }
.st-ico .arc { fill: none; stroke: var(--green); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 11 18.85; opacity: 0; }
.st-ico .dot { fill: var(--green); opacity: 0; }
.st-ico .tick { fill: none; stroke: var(--on-green); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.st-tag { flex: none; min-width: 52px; text-align: center; border-radius: 999px; padding: 2px 9px; font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; line-height: 1.5; }
.st-tag:empty { visibility: hidden; }
.step.is-active { background: var(--paper); color: var(--ink); font-weight: 800; }
.step.is-active .st-tag { background: var(--green); color: var(--on-green); }
.step.is-active .st-ico svg { animation: spin 1.1s linear infinite; }
.step.is-active .trk { stroke: var(--green-line); }
.step.is-active .arc { opacity: 1; }
.step.is-done { color: var(--ink-2); }
.step.is-done .st-tag { background: var(--green-soft); color: var(--green-soft-ink); }
.step.is-done .trk { stroke: var(--green); }
.step.is-done .dot { opacity: 1; }
.step.is-done .tick { opacity: 1; }
.step.is-none .st-tag { background: var(--paper-2); color: var(--ink-2); }
.step.is-none .dot { fill: var(--ink-3); }
.step.is-none .trk { stroke: var(--ink-3); }
/* the same ring on its own, e.g. beside "Checking..." in a button; it takes the text colour */
.ring { display: inline-grid; place-items: center; width: 20px; height: 20px; flex: none; }
.ring svg { width: 100%; height: 100%; animation: spin 1.1s linear infinite; }
.ring .dot, .ring .tick { display: none; }
.ring .trk { fill: none; stroke: currentColor; stroke-width: 2.5; opacity: .28; }
.ring .arc { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 11 18.85; }
@keyframes spin { to { transform: rotate(360deg); } }
/* seconds so far: two nowrap halves, so the line never re-wraps as the count goes up */
.elapsed { margin-top: 14px; font-weight: 700; color: var(--ink-2); font-size: 15.5px; }
.elapsed b { font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 800; }
@media (max-width: 479px) { .elapsed > span { display: block; } }

/* --------------------------------------------------------------------------
   The privacy page
   -------------------------------------------------------------------------- */
.policy { padding: 24px 20px 26px; display: grid; gap: 18px; }
.policy h1 { font-size: clamp(28px, 7.4vw, 38px); font-weight: 800; letter-spacing: -0.03em; }
.policy .intro { color: var(--ink-2); font-weight: 650; margin-top: -8px; }
.policy section { display: grid; gap: 6px; border-top: 1.5px solid var(--ink); padding-top: 12px; }
.policy h2 { font-size: 19px; font-weight: 800; letter-spacing: -0.01em; }
.policy ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.policy li, .policy p { font-size: 16px; font-weight: 600; color: var(--ink); line-height: 1.5; }
.policy li::marker { color: var(--ink-3); }
.policy .fine { color: var(--ink-3); font-size: 14.5px; }

/* --------------------------------------------------------------------------
   Reduced motion is a first-class state
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .screen.is-on { animation: none; }
  .btn { transition: none; }
  .step.is-active .st-ico svg, .ring svg { animation: none; }
  .step.is-active .arc { stroke-dasharray: none; }
  .ring .arc { stroke-dasharray: 2 4; }
}

/* --------------------------------------------------------------------------
   Until the scans open: the "coming soon" box over the landing (index.html).
   The same box as a notice card, centred on a grey veil; the page behind is
   inert and doesn't scroll. Remove with the block in index.html on key day.
   -------------------------------------------------------------------------- */
.soon-lock, .soon-lock body { overflow: hidden; }
.soon-veil {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center; padding: 16px;
  background: rgba(28, 38, 33, 0.5);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.soon-veil .narrow { width: 100%; }
.soon-veil .notice h2 { font-size: clamp(28px, 7.4vw, 38px); font-weight: 800; letter-spacing: -0.03em; }
