/* The public website (index.html, science.html), TP-2089 wave 2.
   Every colour, face and shape is a token from theme.css; this file names no colour,
   so ?skin=along and ?skin=rove restyle it with no other change. Marigold (--accent)
   is the mutual-yes state in the app and never appears here (BRAND-SYSTEM 4.1). */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--canvas); color: var(--text); font-family: var(--body); font-size: 16px; line-height: 1.55; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--canvas); color: var(--text); }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: var(--action); text-underline-offset: 3px; }
a:hover { color: var(--action-hover); }
:focus-visible { outline: var(--focus-ring); outline-offset: 3px; border-radius: 3px; }
img, svg { max-width: 100%; display: block; }
.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 16px; }
.skip-link { position: absolute; left: 16px; top: -64px; background: var(--action); color: var(--on-action); padding: 10px 14px; border-radius: var(--r-control); z-index: 10; }
.skip-link:focus { top: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* type */
.display, h1, h2, h3 { font-family: var(--display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); font-style: var(--display-style); line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(2.35rem, 7.4vw, 3.9rem); }
h2 { font-size: clamp(1.8rem, 4.8vw, 2.6rem); }
h3 { font-size: 1.3rem; line-height: 1.2; }
.eyebrow { font-size: var(--type-caption); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.lede { font-size: var(--type-lead); color: var(--text); max-width: 38em; }
.muted { color: var(--muted); }
.small { font-size: var(--type-caption); }
section { padding-block: 56px; }
section + section { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 12px; margin-bottom: 32px; max-width: 46rem; }

/* header */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 16px; }
.brand { font-family: var(--display); font-weight: var(--display-weight); font-size: 2rem; letter-spacing: var(--display-tracking); text-transform: var(--wordmark-case); color: var(--text); text-decoration: none; line-height: 1; }
.brand:hover { color: var(--text); }
.site-header nav { display: flex; align-items: center; gap: 4px 20px; flex-wrap: wrap; justify-content: flex-end; }
.site-header nav a:not(.button) { color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; padding-block: 12px; }
.site-header nav a:not(.button):hover { text-decoration: underline; }
.site-header nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }
@media (max-width: 680px) { .site-header nav .opt { display: none; } .brand { font-size: 1.75rem; } }

/* buttons */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border-radius: var(--r-control); background: var(--action); color: var(--on-action); font-weight: 700; text-decoration: none; border: 2px solid var(--action); }
.button:hover { background: var(--action-hover); border-color: var(--action-hover); color: var(--on-action); }
.button.small { min-height: 44px; padding: 8px 16px; }
.button.quiet { background: var(--surface); color: var(--action); border-color: var(--field-border); }
.button.quiet:hover { background: var(--selected); color: var(--action); }
.actions { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.text-link { font-weight: 600; }

/* hero */
.hero { display: grid; gap: 40px; padding-block: 32px 64px; align-items: center; }
.hero-copy { display: grid; gap: 20px; align-content: start; }
@media (min-width: 900px) { .hero { grid-template-columns: 1.05fr .95fr; gap: 56px; padding-block: 56px 88px; } }

/* the example plan (a ticket) */
.ticket { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-ticket); box-shadow: var(--ticket-shadow); max-width: 520px; width: 100%; justify-self: center; }
.ticket-top { padding: 22px 22px 20px; display: grid; gap: 8px; }
.stub { justify-self: start; font-size: var(--type-caption); font-weight: 700; letter-spacing: .04em; padding: 3px 10px; border: 1px solid var(--field-border); border-radius: 999px; color: var(--muted); background: var(--canvas); }
.ticket-when { font-weight: 700; color: var(--muted); font-size: .95rem; }
.ticket-title { font-size: clamp(1.7rem, 4.6vw, 2.2rem); }
.perforation { position: relative; height: 0; border-top: 2px dashed var(--line); margin: 0; }
.perforation::before, .perforation::after { content: ""; position: absolute; top: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--canvas); border: 1px solid var(--line); display: var(--ticket-notch); }
.perforation::before { left: -12px; clip-path: inset(0 0 0 55%); }
.perforation::after { right: -12px; clip-path: inset(0 55% 0 0); }
.ticket-bottom { padding: 20px 22px 22px; display: grid; gap: 18px; }
.holding { display: flex; flex-wrap: wrap; gap: 10px 12px; }
.holding li { display: grid; justify-items: center; gap: 4px; font-size: var(--type-caption); font-weight: 600; min-width: 52px; }
.mark { width: 48px; height: 48px; display: grid; place-items: center; border-radius: var(--r-control); font-family: var(--display); font-weight: 700; font-size: 1.35rem; color: var(--text); background: var(--tint-sky); }
.mark.t-apricot { background: var(--tint-apricot); }
.mark.t-sage { background: var(--tint-sage); }
.mark.t-rose { background: var(--tint-rose); }
.mark.t-slate { background: var(--tint-slate); }
.mark.open { background: var(--surface); border: 2px dashed var(--field-border); font-family: var(--body); }
.ticket-facts { display: grid; gap: 10px; font-size: .95rem; }
.ticket-facts div { display: grid; grid-template-columns: 5.6em 1fr; gap: 10px; }
.ticket-facts dt { color: var(--muted); font-weight: 600; }
.ticket-facts dd { margin: 0; }
.ticket-note { font-size: .95rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; }
.quote { margin-top: 18px; max-width: 520px; justify-self: center; width: 100%; padding: 14px 18px; background: var(--selected); border-radius: var(--r-card); box-shadow: var(--card-shadow); font-family: var(--display); font-size: 1.15rem; line-height: 1.3; }
.quote cite { display: block; margin-top: 6px; font-family: var(--body); font-size: var(--type-caption); font-style: normal; color: var(--muted); }
.hero-art { display: grid; }

/* cards and grids */
.grid { display: grid; gap: 16px; }
@media (min-width: 720px) { .grid.two { grid-template-columns: repeat(2, 1fr); } .grid.three { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 720px) and (max-width: 1023px) { .grid.three.steps { grid-template-columns: repeat(2, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--card-shadow); padding: 22px; display: grid; gap: 12px; align-content: start; }
.card h3 + p, .card p { color: var(--text); }
.card .never { color: var(--muted); font-size: .95rem; border-top: 1px solid var(--line); padding-top: 10px; }
.card .never b, .card .asked b, .card .gets b { color: var(--text); }
.step-num { width: 40px; height: 40px; border-radius: var(--r-control); background: var(--selected); color: var(--action); display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 1.2rem; }
.step-6 .step-num { background: var(--action); color: var(--on-action); }
.chip { display: inline-block; justify-self: start; font-size: var(--type-caption); font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--tint-slate); color: var(--text); border: 1px solid var(--line); }
.chip.first { background: var(--success-surface); color: var(--success); border-color: var(--success); }
.chip.relayed { background: var(--tint-apricot); color: var(--text); border-color: var(--field-border); }
.chip.reasoning { background: var(--tint-slate); color: var(--text); border-color: var(--field-border); }
.chip.review { background: var(--tint-sky); color: var(--text); border-color: var(--field-border); }
.chip.shown { background: var(--tint-sage); color: var(--text); border-color: var(--field-border); }
.chip.designed { background: var(--surface); color: var(--text); border: 1px dashed var(--field-border); }
a.chip { text-decoration: none; }
a.chip:hover { text-decoration: underline; color: var(--text); }
.callout { background: var(--selected); border-radius: var(--r-card); padding: 18px 22px; max-width: 46rem; }

/* safety */
.host-row { margin-top: 16px; display: grid; gap: 10px; padding: 20px 22px; border: 1px solid var(--line); border-left: 4px solid var(--action); border-radius: var(--r-card); background: var(--surface); }

/* privacy */
.privacy { display: grid; gap: 32px; }
@media (min-width: 900px) { .privacy { grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; } }
.consent-demo { display: grid; gap: 14px; }
.consent-demo .holding { gap: 12px 16px; }
.consent-person { position: relative; display: grid; justify-items: center; gap: 4px; font-size: var(--type-caption); font-weight: 600; }
.consent-person .state { font-weight: 700; color: var(--success); }
.consent-person .state.waiting { color: var(--muted); font-weight: 600; }
.lines { display: grid; }
.lines li { padding: 14px 14px 14px 18px; border-left: 3px solid var(--action); margin-bottom: 8px; background: var(--surface); border-radius: 0 var(--r-control) var(--r-control) 0; }

.mt-xs { margin-top: 8px; } .mt-s { margin-top: 16px; } .mt-m { margin-top: 24px; } .mb-m { margin-block: 12px 24px; } .measure { max-width: 44rem; }
.sources-note.mb-m { margin-block: 0 20px; }
/* band for researchers */
.row-band { display: grid; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--card-shadow); padding: 26px; }
@media (min-width: 820px) { .row-band { grid-template-columns: 1fr auto; gap: 32px; } }

/* close */
.close { display: grid; gap: 28px; }
.close h2 { max-width: 20em; }

/* footer */
footer { border-top: 1px solid var(--line); padding-block: 36px 48px; display: grid; gap: 14px; font-size: .95rem; color: var(--muted); }
footer .brand { font-size: 1.6rem; }
footer p { max-width: 52rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot-links a { padding-block: 10px; }
.skin-links { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.skin-links a { padding: 8px 14px; border: 1px solid var(--field-border); border-radius: 999px; text-decoration: none; color: var(--text); font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.skin-links a[aria-current="true"] { background: var(--selected); border-color: var(--action); color: var(--action); }

/* science page */
.strip { background: var(--text); color: var(--canvas); text-align: center; padding: 12px 16px; font-weight: 700; font-size: .95rem; }
.sci-hero { padding-block: 40px 24px; display: grid; gap: 18px; max-width: 52rem; }
.toc { display: flex; flex-wrap: wrap; gap: 4px 20px; padding-block: 16px; border-block: 1px solid var(--line); }
.toc a { padding-block: 10px; font-weight: 600; }
.claims { display: grid; gap: 16px; }
@media (min-width: 820px) { .claims { grid-template-columns: 1fr 1fr; } }
.claim-made { border-top: 4px solid var(--action); }
.claim-not { border-top: 4px solid var(--field-border); }
.ledger { display: grid; gap: 16px; }
.ledger .card { gap: 14px; }
.ledger dl { display: grid; gap: 12px; }
@media (min-width: 900px) { .ledger dl { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.ledger dt { font-size: var(--type-caption); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.ledger dd { margin: 0; }
.ledger .head { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.ledger .src { font-size: .95rem; color: var(--muted); }
.wont q.not-said, .red-list q.not-said { quotes: "\201C" "\201D"; font-style: normal; text-decoration: line-through; text-decoration-thickness: 1px; text-decoration-color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-bottom: 20px; font-size: .95rem; color: var(--muted); }
.ladder { display: grid; gap: 0; counter-reset: rung; }
.ladder li { counter-increment: rung; position: relative; padding: 16px 16px 16px 64px; background: var(--surface); border: 1px solid var(--line); margin-top: -1px; min-height: 64px; display: grid; align-content: center; }
.ladder li:first-child { border-radius: var(--r-card) var(--r-card) 0 0; }
.ladder li:last-child { border-radius: 0 0 var(--r-card) var(--r-card); border-left: 4px solid var(--action); }
.ladder li::before { content: counter(rung); position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; display: grid; place-items: center; border-radius: var(--r-control); background: var(--selected); color: var(--action); font-family: var(--display); font-weight: 700; }
.ladder li b { display: block; }
@media (min-width: 900px) {
  .ladder { grid-template-columns: repeat(5, 1fr); }
  .ladder li { margin-top: 0; margin-left: -1px; padding: 56px 14px 16px; border-radius: 0 !important; align-content: start; }
  .ladder li:first-child { border-radius: var(--r-card) 0 0 var(--r-card) !important; }
  .ladder li:last-child { border-radius: 0 var(--r-card) var(--r-card) 0 !important; border-left: 1px solid var(--line); border-top: 4px solid var(--action); }
  .ladder li::before { left: 14px; top: 14px; transform: none; }
}
.figure-row { display: grid; gap: 24px; align-items: center; }
@media (min-width: 820px) { .figure-row { grid-template-columns: minmax(0, 420px) 1fr; gap: 48px; } .figure-row.rev { grid-template-columns: 1fr minmax(0, 420px); } }
figure.plot { max-width: 420px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 16px; display: grid; gap: 8px; }
figure.plot svg { width: 100%; height: auto; }
figure.plot figcaption { font-size: var(--type-caption); color: var(--muted); }
.svg-line { stroke: var(--field-border); stroke-width: 1.5; fill: none; }
.svg-axis { stroke: var(--muted); stroke-width: 1.5; fill: none; }
.svg-dot { fill: var(--muted); }
.svg-node { fill: var(--tint-sky); stroke: var(--text); stroke-width: 1.5; }
.svg-text { fill: var(--text); font: 700 13px var(--body); text-anchor: middle; dominant-baseline: central; }
.svg-label { fill: var(--muted); font: 600 11px var(--body); }
.red-list { display: grid; gap: 10px; }
@media (min-width: 720px) { .red-list { grid-template-columns: repeat(2, 1fr); gap: 10px 32px; } }
.red-list li { padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-control); }
.purposes { display: grid; gap: 12px; }
.purpose { display: grid; gap: 4px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
@media (min-width: 820px) { .purpose { grid-template-columns: 14em 1fr auto; gap: 20px; align-items: center; } }
.purpose b { font-family: var(--display); font-size: 1.1rem; }
.unknowns { display: grid; gap: 12px; counter-reset: q; }
.unknowns li { counter-increment: q; padding: 16px 18px 16px 58px; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.unknowns li::before { content: counter(q); position: absolute; left: 16px; top: 16px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: var(--r-control); background: var(--tint-slate); font-weight: 700; }
.thresholds { display: grid; gap: 12px; }
@media (min-width: 720px) { .thresholds { grid-template-columns: repeat(3, 1fr); } }
.thresholds .card b { font-family: var(--display); font-size: 1.5rem; line-height: 1.1; }
.refs { display: grid; gap: 10px; font-size: .95rem; }
.refs li { padding-left: 14px; border-left: 3px solid var(--line); }
.refs .chip { margin-left: 6px; }
.sources-note { font-size: .95rem; color: var(--muted); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media print { .skip-link, .skin-links { display: none; } section { padding-block: 24px; } }
