/* Apofis Group: one static stylesheet for every page. A white theme with a single black accent and neutral
   greys. Sans-serif headlines and body (Archivo); IBM Plex Mono for small uppercase labels. Colour literals
   live only in :root, each measured for WCAG AA. The only motion is an opacity scroll-reveal and the Valistra
   chart draw, both CSS transitions that run only with JavaScript and only when motion is allowed; every word is
   in the HTML and is visible with JavaScript off, under reduced motion and in print. The header scrolls with
   the page; only the cookie banner is fixed. No dark mode. */

/* ---------------------------------------------------------------- fonts */
@font-face { font-family: "Archivo"; src: url(fonts/archivo.woff2) format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url(fonts/plex-mono-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
/* Metric-matched fallback for Archivo (capsize method): upm 1000, ascent 878, descent 210, xWidthAvg 440; Arial upm 2048, xWidthAvg 913. */
@font-face { font-family: "Archivo Fallback"; src: local("Arial"), local("ArialMT"), local("Liberation Sans"); size-adjust: 98.70%; ascent-override: 88.96%; descent-override: 21.28%; line-gap-override: 0%; }

/* ---------------------------------------------------------------- tokens (contrast measured on white / surface) */
:root {
  --bg: #FFFFFF;              /* page ground */
  --surface: #F5F5F5;         /* cards, panels, menu, cookie banner (ink 16.6, mute 6.0) */
  --ink: #141414;             /* text, headlines, the black accent, solid buttons, focus rings (18.4 on white) */
  --ink-2: #454545;           /* secondary text and leads (9.6 on white, 8.7 on surface) */
  --mute: #595959;            /* labels, eyebrows and folios (7.0 on white, 6.0 on surface) */
  --line: #E2E2E2;            /* hairlines and panel edges: decorative only, never the only edge of a control */
  --rule: #707070;            /* link underlines and the chart baseline (5.0 on white: at or above 3:1) */
  --ink-hover: #333333;       /* solid-button hover (white text 12.6) */
  --on-ink: #FFFFFF;          /* text on the black accent */

  /* the mark keeps its geometry and takes colour from these: black legs and body, a neutral-grey orbit, a white halo */
  --mk-legs: var(--ink); --mk-orbit: #8C8C8C; --mk-halo: var(--bg); --mk-body: var(--ink);

  --sans: "Archivo", "Archivo Fallback", Arial, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --fs-display: clamp(2.75rem, 1.55rem + 5.3vw, 5.5rem);
  --fs-display-legal: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem);
  --fs-h2: clamp(1.875rem, 1.3rem + 2.1vw, 3rem);
  --fs-h3: clamp(1.25rem, 1.12rem + .5vw, 1.5rem);
  --fs-h4: 1.1875rem;
  --fs-lead: clamp(1.125rem, 1.03rem + .4vw, 1.375rem);
  --fs-body: 1.0625rem;
  --fs-small: .9375rem;
  --fs-btn: 1rem;
  --fs-eyebrow: .8125rem;
  --fs-label: .75rem;
  --fs-price: clamp(2rem, 1.5rem + 1.6vw, 2.75rem);

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 72px; --s-9: 112px; --s-10: 160px;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --wrap: 72rem;
  --measure: 42rem;
  --prose: 36em;
  --radius: 14px;
  --radius-s: 10px;
  --t-micro: 150ms;
  --ease: cubic-bezier(.2,.7,.1,1);
  color-scheme: light;
}
@media (min-width: 760px) { :root { --gutter: max(40px, env(safe-area-inset-left, 0px)); } }

/* ---------------------------------------------------------------- base and type */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--fs-body)/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
h1, h2, h3, h4, p, figure, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img, svg { max-width: 100%; }
button, input { font: inherit; color: inherit; }
main { display: block; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.arr { display: inline-block; flex: none; width: 1em; height: 1em; vertical-align: -.125em; }

h1 { font: 700 var(--fs-display)/1.02 var(--sans); letter-spacing: -.03em; text-wrap: balance; }
h1 em { font-style: normal; text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .1em; text-decoration-color: var(--ink); }
.legal-page h1 { font-size: var(--fs-display-legal); letter-spacing: -.02em; }
h2 { font: 700 var(--fs-h2)/1.08 var(--sans); letter-spacing: -.02em; max-width: 24ch; text-wrap: balance; }
h3 { font: 600 var(--fs-h3)/1.25 var(--sans); letter-spacing: -.01em; }
h4 { font: 600 var(--fs-h4)/1.3 var(--sans); }
p { max-width: var(--prose); text-wrap: pretty; }
em { font-style: italic; }
strong { font-weight: 600; }
.eyebrow { max-width: none; font: 500 var(--fs-eyebrow)/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.label { max-width: none; font: 500 var(--fs-label)/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.lead { max-width: var(--prose); font-size: var(--fs-lead); line-height: 1.5; color: var(--ink-2); }
.deck { max-width: var(--prose); font-size: var(--fs-small); color: var(--mute); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------------------------------------------------------------- links, focus, buttons */
a, .link { color: var(--ink); text-decoration-line: underline; text-decoration-thickness: 1px; text-decoration-color: var(--rule); text-underline-offset: 4px;
  transition: text-decoration-color var(--t-micro) var(--ease), color var(--t-micro) var(--ease); }
a:hover, a:focus-visible, .link:hover, .link:focus-visible { text-decoration-color: var(--ink); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.skip { position: absolute; left: var(--s-4); top: -100px; z-index: 100; padding: 12px 18px; background: var(--ink); color: var(--on-ink); font-weight: 600; text-decoration: none; }
.skip:focus { top: var(--s-2); }

.acts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4); }
.acts > .link { display: inline-flex; align-items: center; gap: .4em; min-height: 44px; }
.consent-act .link { display: inline-flex; align-items: center; min-height: 24px; }   /* standalone banner control: hold the 24px link floor */

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: 10px 28px; border: 1.5px solid var(--ink); background: var(--ink); color: var(--on-ink);
  font: 600 var(--fs-btn)/1.2 var(--sans); text-align: center; text-decoration: none; cursor: pointer; transition: background-color var(--t-micro) var(--ease), border-color var(--t-micro) var(--ease); }
.btn:hover, .btn:active { background: var(--ink-hover); border-color: var(--ink-hover); }
.btn--sm { min-height: 44px; padding: 8px 20px; font-size: .9375rem; }
.btn--wide { width: 100%; }
@media (min-width: 600px) { .btn--wide { width: auto; } }
.btn--ghost { background: transparent; color: var(--ink); }                 /* header Login: outlined, same height */
.btn--ghost:hover, .btn--ghost:active { background: var(--surface); border-color: var(--ink); }
.btn--accept { background: var(--ink); }                                     /* banner buttons share one weight so the choice is equal */
.btn--ink { background: var(--ink); }
.copy { min-height: 44px; padding: 8px 20px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font: 600 var(--fs-small)/1.2 var(--sans);
  cursor: pointer; transition: background-color var(--t-micro) var(--ease); }
.copy:hover, .copy:active { background: var(--surface); }
.copy[hidden] { display: none; }
.copy-msg { font-size: var(--fs-small); color: var(--ink-2); }

/* ---------------------------------------------------------------- sections and heads */
.sec { padding-block: var(--s-8); border-top: 1px solid var(--line); }
@media (min-width: 900px) { .sec { padding-block: var(--s-9); } }
.sec-head { max-width: var(--measure); margin-bottom: var(--s-7); }
.sec-head > * + * { margin-top: var(--s-4); }

/* ---------------------------------------------------------------- hero (every page) */
.p-hero { padding-block: var(--s-8) var(--s-8); }
@media (min-width: 900px) { .p-hero { padding-block: var(--s-10) var(--s-9); } }
.legal-page .p-hero, .contact .p-hero, .about .p-hero { padding-block: var(--s-8) var(--s-7); }
.p-hero-in { display: grid; gap: var(--s-5); }
.p-hero-in > h1 { margin-block: var(--s-2) var(--s-3); max-width: 18ch; }
.p-hero-in > .lead { font-size: var(--fs-lead); }
.p-hero-in > .acts { margin-top: var(--s-3); }
.legal-page .p-hero-in { gap: var(--s-3); }

/* ---------------------------------------------------------------- steps: ruled rows with a number column */
.steps { border-top: 1px solid var(--line); max-width: var(--measure); }
.steps > li { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); padding-block: var(--s-5); border-bottom: 1px solid var(--line); }
.st-n { grid-column: 1; font: 500 var(--fs-eyebrow)/1.9 var(--mono); color: var(--mute); }
.steps > li > div { grid-column: 2; min-width: 0; }
.st-t { margin: 0; }
.st-d { margin-top: var(--s-2); color: var(--ink-2); }
@media (min-width: 900px) {
  .steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-6) var(--s-7); border-top: 0; max-width: none; }
  .steps > li { display: block; padding-block: var(--s-5) var(--s-6); border-bottom: 0; border-top: 2px solid var(--ink); }
  .st-n { display: block; margin-bottom: var(--s-4); }
}

/* ---------------------------------------------------------------- the coming-later note */
.later { max-width: var(--measure); margin-top: var(--s-6); padding: var(--s-5) var(--s-6); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.later h3 { margin-bottom: var(--s-2); }
.later p { color: var(--ink-2); }

/* ---------------------------------------------------------------- questions */
.faq { max-width: var(--measure); border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); min-height: 56px; padding-block: var(--s-4); list-style: none; font: 600 var(--fs-h4)/1.3 var(--sans); cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::marker { content: ""; }
.faq details > p { padding-bottom: var(--s-5); color: var(--ink-2); }
.faq-x { position: relative; width: 28px; height: 28px; flex: none; border: 1px solid var(--mute); border-radius: 50%; }
.faq-x::before, .faq-x::after { content: ""; position: absolute; background: var(--ink); }
.faq-x::before { left: 7px; right: 7px; top: 13px; height: 1.5px; }
.faq-x::after { top: 7px; bottom: 7px; left: 13px; width: 1.5px; }
.faq details[open] .faq-x::after { display: none; }

/* ---------------------------------------------------------------- the Valistra run chart (draws once on view, then holds) */
.run-figure { margin: 0 0 var(--s-7); padding: var(--s-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
@media (min-width: 900px) { .run-figure { padding: var(--s-7); } }
.run-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-3) var(--s-5); margin-bottom: var(--s-5); }
.run-axis { font: 500 var(--fs-label)/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.run-key { display: flex; align-items: center; gap: var(--s-2); font: 500 var(--fs-label)/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.run-key::before { content: ""; width: 20px; height: 2px; background: var(--ink); }
.run-chart { position: relative; }
.run-area { position: relative; height: clamp(11rem, 36vw, 24rem); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-s); }
.run-frame, .run-plot { position: absolute; inset: 0; width: 100%; height: 100%; }
.run-frame line, .run-plot path { vector-effect: non-scaling-stroke; }
.run-frame .gl { stroke: var(--line); stroke-width: 1; }
.run-frame .ceil { stroke: var(--ink); stroke-width: 2; stroke-dasharray: 2 6; }
.run-frame .base { stroke: var(--rule); stroke-width: 1; }
.run-plot .load { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
@media (min-width: 900px) { .run-plot .load { stroke-width: 4; } }
.run-figure figcaption { margin-top: var(--s-4); font-size: var(--fs-small); color: var(--ink-2); }

/* ---------------------------------------------------------------- the Valistra "what you sign" fields */
.fields { max-width: var(--measure); border-top: 1px solid var(--line); }
.fd { display: grid; gap: var(--s-1); padding-block: var(--s-3); border-bottom: 1px solid var(--line); }
.fd dt { font: 500 var(--fs-label)/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.fd dd { font-size: var(--fs-body); }
@media (min-width: 600px) { .fd { grid-template-columns: 12rem minmax(0, 1fr); column-gap: var(--s-5); align-items: baseline; } }

/* ---------------------------------------------------------------- the four plans (very end of Valistra) */
.plans { display: grid; gap: var(--s-4); }
@media (min-width: 680px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .plans { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-3); } }
.plan { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.plan-tag { align-self: flex-start; padding: 3px 10px; border: 1px solid var(--mute); border-radius: 999px; font: 500 var(--fs-label)/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.plan-h { margin: 0; }
.plan-price { display: flex; align-items: baseline; gap: .4em; margin-top: var(--s-1); }
.plan-amount { font: 700 var(--fs-price)/1 var(--sans); letter-spacing: -.02em; }
.plan-period { font-size: var(--fs-small); color: var(--mute); }
.plan-note { font-size: var(--fs-small); color: var(--ink-2); }
.plan-cta { margin-top: auto; padding-top: var(--s-3); font-size: var(--fs-small); color: var(--mute); }
.plan-cta .btn { width: 100%; }

/* ---------------------------------------------------------------- about and contact bodies */
.prose { max-width: var(--measure); display: grid; gap: var(--s-4); }
.prose p { max-width: none; color: var(--ink-2); }
.prose p.lead { color: var(--ink-2); }
.mail-lg { font: 600 clamp(1.5rem, 1.2rem + 1.6vw, 2.25rem)/1.2 var(--sans); letter-spacing: -.01em; overflow-wrap: anywhere; }
.copy-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); margin-top: var(--s-5); }
.contact-note { max-width: var(--measure); margin-top: var(--s-5); font-size: var(--fs-small); color: var(--ink-2); }

/* ---------------------------------------------------------------- 404 */
.nf-links { display: grid; gap: var(--s-3); max-width: var(--measure); font-size: var(--fs-lead); }
.nf-links a { display: grid; grid-template-columns: minmax(0, 1fr) 1.25rem; align-items: center; gap: var(--s-2); min-height: 56px; padding: var(--s-3) var(--s-5);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); color: var(--ink); text-decoration: none; }
.nf-links a:hover, .nf-links a:focus-visible { border-color: var(--ink); }

/* ---------------------------------------------------------------- header and menu */
.hd { position: relative; z-index: 10; padding-top: env(safe-area-inset-top, 0px); background: var(--bg); border-bottom: 1px solid var(--line); }
.hd-in { display: flex; align-items: center; gap: var(--s-5); min-height: 72px; }
.brand { display: flex; align-items: center; gap: var(--s-2); min-height: 44px; margin-right: auto; color: var(--ink); text-decoration: none; }
.brand .mark { width: 32px; height: 32px; }
.mark { display: block; flex: none; overflow: visible; }
.m-orbit { fill: none; stroke: var(--mk-orbit); stroke-width: 3.2; stroke-linecap: round; }
.m-legs { fill: none; stroke: var(--mk-legs); stroke-width: 8; stroke-linejoin: miter; stroke-miterlimit: 10; }
.m-halo { fill: none; stroke: var(--mk-halo); stroke-width: 9; stroke-linecap: round; }
.m-body { fill: var(--mk-body); }
.wm { display: inline-flex; align-items: baseline; gap: .34em; white-space: nowrap; font: 600 1.25rem/1 var(--sans); letter-spacing: -.01em; }
.w1 { font-weight: 700; }
.w2 { font-weight: 500; color: var(--ink-2); }

.nav ul { display: flex; align-items: center; gap: var(--s-5); }
.nav a { display: flex; align-items: center; min-height: 44px; font: 500 .9375rem/1 var(--sans); color: var(--ink); text-decoration: none; }
.nav a:hover, .nav a:focus-visible, .nav a[aria-current="page"] { text-decoration: underline 2px var(--ink); text-underline-offset: 8px; }
@media (max-width: 899px) { .nav, .hd-in > .btn { display: none; } }
@media (min-width: 900px) { .hd-in { gap: var(--s-6); } .menu { display: none; } .brand .mark { width: 36px; height: 36px; } .wm { font-size: 1.375rem; } }

/* the phone menu is a native <details>: it opens and closes without JavaScript */
.menu summary { display: flex; align-items: center; gap: var(--s-2); min-height: 44px; padding-inline: var(--s-1); list-style: none; font: 600 .9375rem/1 var(--sans); cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary::marker { content: ""; }
.menu .c, .menu[open] .o { display: none; }
.menu[open] .c { display: inline; }
.menu-ic { position: relative; width: 18px; height: 12px; }
.menu-ic::before, .menu-ic::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: var(--ink); }
.menu-ic::before { top: 2px; }
.menu-ic::after { bottom: 2px; }
.menu-panel { position: absolute; top: 100%; left: 0; right: 0; display: grid; gap: var(--s-6); padding: var(--s-5) var(--gutter) var(--s-6); background: var(--surface); border-bottom: 1px solid var(--line); }
.menu-panel li a { display: block; padding-block: var(--s-3); border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.menu-panel li:last-child a { border-bottom: 0; }
.mt { display: block; font: 600 1.5rem/1.1 var(--sans); letter-spacing: -.01em; }
.menu-panel small { display: block; margin-top: 6px; font: 500 var(--fs-label)/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.menu-panel a[aria-current="page"] .mt { text-decoration: underline 2px var(--ink); text-underline-offset: 6px; }
.menu-foot { display: flex; }

/* ---------------------------------------------------------------- cookie banner (consent.js); never a modal */
.consent { position: fixed; left: var(--s-3); right: var(--s-3); bottom: var(--s-3); z-index: 900; max-width: 54rem; margin-inline: auto; max-height: 45vh; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--ink); border-radius: var(--radius); }
@media (min-width: 900px) { .consent { left: var(--s-6); right: var(--s-6); bottom: var(--s-6); } }
.consent[hidden] { display: none; }
html:has(.consent:not([hidden])) body { padding-bottom: var(--consent-h, 45vh); }
html:has(.consent:not([hidden])) { scroll-padding-bottom: var(--consent-h, 45vh); }
.consent-in { display: grid; gap: var(--s-3); padding-block: var(--s-4); padding-inline: var(--s-5); }
.consent-h { max-width: none; font: 600 var(--fs-h3)/1.2 var(--sans); letter-spacing: -.01em; }
.consent-in > p { max-width: none; font-size: var(--fs-small); line-height: 1.5; color: var(--ink-2); }
.consent-act { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); }

/* ---------------------------------------------------------------- footer */
.ft { padding-block: var(--s-8) var(--s-7); border-top: 1px solid var(--line); }
.ft-in { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
.ft-brand { display: flex; align-items: center; gap: var(--s-3); }
.ft-brand .mark { width: 44px; height: 44px; }
.ft-brand .wm { font-size: 1.375rem; }
.ft-about, .ft-contact { display: grid; gap: var(--s-3); align-content: start; }
.ft-lead, .ft-entity, .ft-note { color: var(--ink-2); }
.ft-lead { max-width: var(--prose); }
.ft-entity, .ft-note, .ft-legal { font-size: var(--fs-small); }
.ft a { display: inline-flex; align-items: center; min-height: 24px; padding-block: 4px; }
.ft-nav ul, .ft-legal ul { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-5); }
.ft-mail a { font: 600 1.375rem/1.2 var(--sans); letter-spacing: -.01em; overflow-wrap: anywhere; }
.ft-small { font: 500 var(--fs-label)/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
@media (min-width: 900px) {
  .ft-in { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); column-gap: var(--s-8);
    grid-template-areas: "brand nav" "about contact" "note note" "legal legal" "small small"; }
  .ft-brand { grid-area: brand; } .ft-about { grid-area: about; } .ft-nav { grid-area: nav; align-self: center; justify-self: end; } .ft-contact { grid-area: contact; }
  .ft-note { grid-area: note; } .ft-legal { grid-area: legal; } .ft-small { grid-area: small; }
}

/* ---------------------------------------------------------------- legal pages and cookie settings */
.legal { padding-block: var(--s-5) var(--s-8); border-top: 1px solid var(--line); }
.legal-in { display: grid; gap: var(--s-3); }
.legal-in > * { max-width: var(--measure); }
.legal-in > .table-wrap { max-width: none; }
.legal p { max-width: var(--prose); color: var(--ink-2); }
.legal h2 { font: 600 var(--fs-h3)/1.25 var(--sans); letter-spacing: -.01em; margin-top: var(--s-5); max-width: var(--measure); }
.legal h3 { font: 600 1rem/1.3 var(--sans); margin-top: var(--s-4); }
.legal ul { display: grid; gap: var(--s-1); padding-left: 1.25em; list-style: disc; color: var(--ink-2); }
.legal table { width: 100%; min-width: 36rem; border-collapse: collapse; font-size: var(--fs-small); }
.legal th, .legal td { padding: var(--s-2) var(--s-3) var(--s-2) 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal th { font: 600 .8125rem/1.3 var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
.legal tbody th { font: inherit; letter-spacing: normal; text-transform: none; color: inherit; }
.legal td { color: var(--ink-2); }
.table-wrap { overflow-x: auto; padding: var(--s-3) var(--s-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); }

.choice { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-2) var(--s-3); align-items: start; padding-block: var(--s-3); border-top: 1px solid var(--line); }
.choice input[type="checkbox"] { width: 24px; height: 24px; margin: 0; accent-color: var(--ink); }
.choice label { font-weight: 600; }
.choice p { grid-column: 2; max-width: var(--prose); color: var(--ink-2); }
.choice-h { grid-column: 2; grid-row: 1; margin-top: 0; }
.choice-always { grid-column: 1; grid-row: 1; align-self: center; font: 500 var(--fs-label)/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.choice-group { display: grid; gap: var(--s-3); min-width: 0; margin: 0; padding: 0; border: 0; }
.choice-group > legend { padding: 0; }
.legal-acts { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-4); }
.consent-status { min-height: 1.5em; font-weight: 600; }

/* ---------------------------------------------------------------- scroll reveal and the chart draw
   Enhancement only. reveal.js adds .reveal-on to <html> and .is-shown to each .reveal as it enters view, and
   only when JavaScript runs and motion is allowed. With no JavaScript, under reduced motion and in print there
   is no .reveal-on and these rules never apply, so every element is fully visible from the first paint. */
@media screen and (prefers-reduced-motion: no-preference) {
  .reveal-on .reveal { opacity: 0; transition: opacity 600ms var(--ease); }
  .reveal-on .reveal.is-shown { opacity: 1; }
  /* the Valistra chart line is clipped, then drawn left to right once its figure (a .reveal) reaches view, then holds */
  .reveal-on .reveal .run-plot { clip-path: inset(0 100% 0 0); transition: clip-path 1400ms var(--ease); }
  .reveal-on .reveal.is-shown .run-plot { clip-path: inset(0); }
}

/* ---------------------------------------------------------------- print: ink on paper */
@media print {
  html, body, .hd, .later, .run-figure, .plan, .nf-links a, .table-wrap { background: none !important; }
  .skip, .sprite, .menu, .consent, .copy, .copy-msg, .faq-x { display: none !important; }
  .btn { background: none !important; border: 1px solid var(--ink) !important; color: var(--ink) !important; }
  .hd { border: 0; }
  .sec, .p-hero, .ft, .legal { padding-block: var(--s-6) !important; }
  .steps > li, .faq details, .fd, .plan, .later, .run-figure, .nf-links a { break-inside: avoid; }
  h1, h2, h3, .sec-head { break-after: avoid; }
  .faq details::details-content { content-visibility: visible; }
}

/* ---------------------------------------------------------------- forced colours (Windows high contrast) */
@media (forced-colors: active) {
  .menu-ic::before, .menu-ic::after, .faq-x::before, .faq-x::after, .run-key::before { forced-color-adjust: none; background: CanvasText; border-color: CanvasText; }
  .link, .nav a[aria-current="page"] { text-decoration-line: underline; }
  .menu-t { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
}

/* ---------------------------------------------------------------- reduced motion: not even colour fades */
@media (prefers-reduced-motion: reduce) {
  a, .link, .btn, .btn--ghost, .copy { transition: none; }
}
