/* folio.css: the app's Folio design language, for anesto.app.
   Tokens mirror src/theme/folio.ts in the app repo (light + dark). One stylesheet for every page. */

/* Fonts are served from anesto.app (no third-party requests). Each has a metric-matched local fallback, so text doesn't
   move when the real font arrives. Overrides measured against the system fonts (scratchpad fontmetrics.mjs). */
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 400 500; font-display: swap; src: url(/assets/fonts/newsreader-v26.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Newsreader'; font-style: italic; font-weight: 400 500; font-display: swap; src: url(/assets/fonts/newsreader-italic-v26.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/assets/fonts/inter-v20.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/plex-mono-400-v20.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/plex-mono-500-v20.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Newsreader Fallback'; font-style: normal; src: local('Georgia'); size-adjust: 103.62%; ascent-override: 71.41%; descent-override: 26.06%; line-gap-override: 0%; }
@font-face { font-family: 'Newsreader Fallback'; font-style: italic; src: local('Georgia Italic'), local('Georgia-Italic'), local('Georgia'); size-adjust: 90.84%; ascent-override: 81.46%; descent-override: 29.72%; line-gap-override: 0%; }
@font-face { font-family: 'Inter Fallback'; src: local('Arial'), local('ArialMT'); size-adjust: 106.25%; ascent-override: 91.30%; descent-override: 22.59%; line-gap-override: 0%; }
@font-face { font-family: 'IBM Plex Mono Fallback'; src: local('Courier New'), local('CourierNewPSMT'); size-adjust: 99.98%; ascent-override: 103.02%; descent-override: 28.00%; line-gap-override: 0%; }

:root {
  --paper: #F5F1E8; --panel: #FCFAF3; --ink: #221F19; --ink-wet: #6E675A; --dim: #6F6A5D; --faint: #A49E8E; --line: #E6DFCE;
  --accent: #0C7361; --accent-ink: #0A5F50; --accent-soft: rgba(12,115,97,0.09); --on-accent: #FFFFFF;
  --ok: #2C7649; --watch: #8F6519; --watch-tick: #B6832A; --behind: #B0452F;
  --cat-ob: #CE4E7A; --cat-card: #C0392B; --cat-tr: #B5452B; --cat-gen: #5E7A34; --cat-vasc: #C06A26; --cat-neuro: #7A5AA6; --cat-amb: #3C7AA6; --cat-peds: #BD8A2A;
  --capture: #7C4DDB;
  --button-bg: #221F19; --button-ink: #FCFAF3;
  --warn-bg: rgba(182,131,42,0.12);
  --shadow: 0 10px 30px rgba(0,0,0,0.10);
  --dash-invite: rgba(164,158,142,0.70);
  --serif: 'Newsreader', 'Newsreader Fallback', 'Iowan Old Style', Georgia, serif;
  --sans: 'Inter', 'Inter Fallback', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'IBM Plex Mono', 'IBM Plex Mono Fallback', ui-monospace, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #181510; --panel: #221E17; --ink: #EFE9DB; --ink-wet: #A39C8C; --dim: #A39C8C; --faint: #6B6455; --line: #2F2A1F;
    --accent: #33D6B4; --accent-ink: #5FE0C4; --accent-soft: rgba(51,214,180,0.12); --on-accent: #181510;
    --ok: #5FC487; --watch: #E6B45A; --watch-tick: #E6B45A; --behind: #E8795F;
    --cat-ob: #F06A94; --cat-card: #EA5A4A; --cat-tr: #E8703F; --cat-gen: #9DC062; --cat-vasc: #E6934A; --cat-neuro: #B79AE0; --cat-amb: #6FB0DE; --cat-peds: #E6B45A;
    --capture: #9C7BEA; --button-bg: #EFE9DB; --button-ink: #181510; --warn-bg: rgba(230,180,90,0.12);
    --shadow: 0 10px 30px rgba(0,0,0,0.45); --dash-invite: rgba(107,100,85,0.90);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img, svg { max-width: 100%; }
img { display: block; height: auto; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--panel); color: var(--ink); padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line); }
.skip:focus { left: 12px; }
.container { max-width: 1120px; margin: 0 auto; padding-inline: 24px; }
.narrow { max-width: 760px; margin: 0 auto; padding-inline: 24px; }
.kick { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); font-weight: 600; }
em.t { font-style: italic; color: var(--accent); }

/* header */
header.site { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 10; }
header.site .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand span { font-family: var(--serif); font-size: 23px; font-weight: 500; letter-spacing: -0.01em; }
.menu { display: flex; align-items: center; gap: 20px; font-size: 14.5px; }
.menu a { text-decoration: none; color: var(--ink-wet); }
.menu a:hover, .menu a[aria-current="page"] { color: var(--ink); }
.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14.5px; text-decoration: none; border-radius: 10px; padding: 10px 16px; }
.btn.accent, .menu a.btn.accent { background: var(--accent); color: var(--on-accent); }
details.mobile { display: none; position: relative; }
details.mobile summary { list-style: none; cursor: pointer; border: 1px solid var(--line); border-radius: 10px; padding: 7px 12px; font-size: 14px; background: var(--panel); }
details.mobile summary::-webkit-details-marker { display: none; }
details.mobile .drop { position: absolute; right: 0; top: calc(100% + 8px); background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 8px; display: grid; min-width: 220px; }
details.mobile .drop a { padding: 10px 12px; border-radius: 8px; text-decoration: none; }
details.mobile .drop a:hover { background: var(--accent-soft); }
details.mobile .drop a.btn { justify-content: center; margin-top: 6px; }
details.mobile .drop .dk { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); font-weight: 600; padding: 10px 12px 2px; }
details.mobile .drop { max-height: calc(100svh - 80px); overflow-y: auto; }
/* header dropdowns (Who it's for, Guides): plain <details>, closed by nav.js on outside click or Escape */
details.navdd { position: relative; }
details.navdd summary { list-style: none; cursor: pointer; color: var(--ink-wet); display: inline-flex; align-items: center; gap: 5px; padding: 6px 0; }
details.navdd summary::-webkit-details-marker { display: none; }
details.navdd summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 0.15s; }
details.navdd[open] summary::after { transform: translateY(1px) rotate(225deg); }
details.navdd summary:hover, details.navdd[open] summary { color: var(--ink); }
details.navdd .dd { position: absolute; left: -14px; top: calc(100% + 10px); background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 8px; display: grid; min-width: 250px; z-index: 20; }
details.navdd .dd a { padding: 9px 12px; border-radius: 8px; color: var(--ink); }
details.navdd .dd a:hover, details.navdd .dd a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-ink); }

/* App Store button and desktop QR */
.store { display: inline-flex; align-items: center; gap: 10px; background: var(--button-bg); color: var(--button-ink); border-radius: 12px; padding: 12px 20px; text-decoration: none; font-weight: 600; font-size: 16px; }
.store svg { width: 18px; height: 18px; fill: currentColor; }
.qr { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; color: var(--dim); line-height: 1.4; }
.qr img { width: 72px; height: 72px; border-radius: 8px; background: #fff; padding: 5px; border: 1px solid var(--line); }

/* hero */
.hero { padding-block: 56px 40px; }
.hero .container { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 48px; align-items: center; }
h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 6.2vw, 74px); line-height: 1.0; letter-spacing: -0.02em; margin: 14px 0 0; text-wrap: balance; }
.rule { width: 48px; height: 2px; background: var(--accent); margin: 22px 0; border: 0; }
.lead { font-size: 18.5px; color: var(--ink-wet); max-width: 34em; margin: 0; text-wrap: pretty; }
.ctas { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; margin-top: 28px; }
.fine { font-size: 13px; color: var(--dim); margin-top: 16px; }

/* the phone and the app's own pieces */
.phone { width: 340px; max-width: 100%; margin-inline: auto; background: var(--paper); border: 1px solid var(--line); border-radius: 44px; box-shadow: var(--shadow), 0 0 0 8px color-mix(in srgb, var(--ink) 6%, transparent); padding: 22px 16px 18px; }
.phone .notch { width: 92px; height: 24px; border-radius: 14px; background: var(--ink); margin: -8px auto 16px; opacity: 0.9; }
.mast { padding: 0 4px 10px; border-bottom: 1px solid var(--ink); display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; }
.mast .k { font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); font-weight: 600; }
.mast .d { font-family: var(--serif); font-size: 21px; line-height: 1.15; }
.mast .n { font-family: var(--mono); font-size: 22px; text-align: right; line-height: 1; }
.mast .n small { display: block; font-family: var(--sans); font-size: 8.5px; letter-spacing: 0.12em; color: var(--dim); }
.site-pill { display: inline-flex; gap: 6px; align-items: center; margin: 12px 4px 10px; font-size: 12.5px; border: 1px solid var(--accent); color: var(--accent-ink); background: var(--accent-soft); border-radius: 8px; padding: 4px 9px; }
.capture { display: flex; align-items: center; gap: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 10px 10px 12px; min-height: 52px; }
.capture .text { flex: 1; font-size: 13.5px; min-height: 1.4em; }
.capture .mic { width: 34px; height: 34px; border-radius: 9px; background: var(--capture); display: grid; place-items: center; flex: none; }
.capture .mic svg { width: 16px; height: 16px; stroke: #fff; fill: none; stroke-width: 2; }
/* the mic takes the role's colour, as in the app: trainees purple, attendings the accent, CRNAs teal */
.capture .mic.att { background: var(--accent); }
.capture .mic.att svg { stroke: var(--on-accent); }
.capture .mic.crna { background: #14B8A6; }
@media (prefers-color-scheme: dark) { .capture .mic.crna { background: #0D9488; } }
.caret { display: inline-block; width: 1.5px; height: 1em; background: var(--accent); vertical-align: -2px; margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.status { font-family: var(--serif); font-style: italic; font-size: 13px; color: var(--dim); margin: 10px 4px 6px; min-height: 1.3em; }
.dayhead { display: flex; justify-content: space-between; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); font-weight: 600; margin: 14px 4px 4px; }
.row { position: relative; padding: 12px 8px 12px 16px; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row::before { content: ""; position: absolute; left: 2px; top: 12px; bottom: 12px; width: 4px; border-radius: 2px; background: var(--tick, var(--cat-gen)); }
.row .top { display: flex; justify-content: space-between; gap: 8px; }
.row .ttl { font-family: var(--serif); font-size: 17px; line-height: 1.2; }
.row .tm { font-size: 10.5px; color: var(--dim); white-space: nowrap; padding-top: 3px; }
.row .site { font-size: 11.5px; color: var(--dim); margin-top: 2px; }
.row .sup { font-size: 11.5px; color: var(--cat-neuro); margin-top: 1px; }
.row .mx { display: flex; flex-wrap: wrap; gap: 5px 7px; align-items: center; margin-top: 7px; font-size: 11.5px; color: var(--ink-wet); }
.cat { font-size: 11px; padding: 1px 7px; border-radius: 6px; color: color-mix(in srgb, var(--tick) 70%, var(--ink)); background: color-mix(in srgb, var(--tick) 13%, transparent); border: 1px solid color-mix(in srgb, var(--tick) 30%, transparent); }
.ok { color: var(--ok); font-weight: 500; }
.ask { margin-top: 9px; }
.ask .q { font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-ink); font-weight: 600; margin-bottom: 6px; }
.ask .opts { display: flex; flex-wrap: wrap; gap: 6px; }
.opt { font-size: 12px; padding: 4px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); }
.opt.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.need { display: inline-flex; font-size: 11.5px; padding: 2px 8px; border-radius: 7px; border: 1px dashed var(--accent); color: var(--accent-ink); background: var(--accent-soft); }
.send { margin-left: auto; font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: 7px; background: var(--accent); color: var(--on-accent); }
.onacgme { margin-left: auto; font-size: 11.5px; color: var(--ok); font-weight: 500; }
.fade { opacity: 0; transform: translateY(6px); transition: opacity 420ms ease, transform 420ms ease; }
.fade.in { opacity: 1; transform: none; }
.replay { display: block; margin: 6px auto 0; padding: 8px 14px; min-height: 32px; font: inherit; font-size: 12px; color: var(--dim); background: none; border: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.example-note { text-align: center; font-size: 11.5px; color: var(--dim); margin-top: 6px; }

/* sections */
section.band { padding-block: 72px; border-top: 1px solid var(--line); }
.sec-head { max-width: 720px; margin-bottom: 30px; }
h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 4.2vw, 46px); line-height: 1.06; letter-spacing: -0.015em; margin: 10px 0 12px; text-wrap: balance; }
h3 { font-family: var(--serif); font-weight: 500; font-size: 23px; line-height: 1.2; margin: 0 0 8px; }
.sub { font-size: 17px; color: var(--ink-wet); margin: 0; }
.roles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.role { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px 18px 16px 24px; text-decoration: none; display: flex; flex-direction: column; gap: 6px; }
.role::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 4px; border-radius: 0 2px 2px 0; background: var(--tick); }
a.role:hover { border-color: var(--ink-wet); }
.role .n { font-family: var(--serif); font-size: 22px; }
.role .s { font-size: 14.5px; color: var(--ink-wet); flex: 1; }
.role .go { font-size: 13.5px; color: var(--accent-ink); font-weight: 500; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.split.flip > :first-child { order: 2; }
.list { list-style: none; padding: 0; margin: 18px 0 0; }
.list li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 15.5px; }
.list li b { font-weight: 600; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 16px; box-shadow: var(--shadow); }
.card .field { font-size: 13px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 18px 0 0; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 4px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15.5px; }
.steps li::before { content: counter(s); font-family: var(--mono); color: var(--accent); font-size: 18px; }
.disclaim { font-size: 13px; color: var(--dim); margin-top: 14px; }
.meter { padding: 11px 4px; border-bottom: 1px solid var(--line); }
.meter:last-child { border-bottom: 0; }
.meter .top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.meter .name { font-size: 14px; }
.meter .frac { font-family: var(--mono); font-size: 14px; }
.meter .frac span { color: var(--dim); }
.bar { height: 5px; border-radius: 3px; background: var(--line); margin-top: 7px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 3px; background: var(--accent); }
.meter.met .bar i { background: var(--ok); }
.meter.behind .bar i { background: var(--watch-tick); }
.meter .pace { font-size: 12px; color: var(--dim); margin-top: 5px; }
.meter.behind .pace { color: var(--watch); }
.meter.met .pace { color: var(--ok); }
.meter .acgme { font-family: var(--mono); font-size: 11px; color: var(--dim); }
.trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.trust div { padding: 18px 18px 18px 0; }
.trust div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.trust .kick { margin-bottom: 6px; }
.trust p { margin: 0; font-size: 14.5px; color: var(--ink-wet); }
.price { font-family: var(--serif); font-size: clamp(22px, 3vw, 30px); line-height: 1.35; max-width: 860px; margin: 0; text-wrap: pretty; }
.price b { font-weight: 500; color: var(--accent-ink); }
.founder blockquote { margin: 0; font-family: var(--serif); font-size: clamp(21px, 2.6vw, 27px); line-height: 1.35; max-width: 820px; }
.founder .who { font-size: 14px; color: var(--dim); margin-top: 12px; }
.textlink { color: var(--accent-ink); text-underline-offset: 3px; }
.faq details { border-top: 1px solid var(--line); padding: 14px 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-family: var(--serif); font-size: 20px; line-height: 1.3; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-family: var(--sans); flex: none; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p, .faq details div { margin: 10px 0 0; color: var(--ink-wet); max-width: 62em; }
.faq a { color: var(--accent-ink); }
.final { text-align: center; padding-block: 80px; border-top: 1px solid var(--line); }
.final h2 { margin-inline: auto; max-width: 14em; }
.final .ctas { justify-content: center; }

/* plain pages: support, legal, 404 */
.page-head { padding-block: 56px 28px; border-bottom: 1px solid var(--ink); margin-bottom: 32px; }
.page-head h1 { font-size: clamp(36px, 5vw, 56px); margin-top: 10px; }
.page-head .meta { color: var(--dim); font-size: 14px; margin-top: 12px; }
.contact { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px; margin: 0 0 40px; }
.contact h2 { font-size: 26px; margin: 0 0 6px; }
.contact p { margin: 0 0 8px; color: var(--ink-wet); }
.legal-text { padding-bottom: 72px; }
.legal-text h2 { font-size: 26px; margin: 40px 0 12px; }
.legal-text h3 { font-size: 19px; margin: 24px 0 8px; }
.legal-text p, .legal-text li { font-size: 15.5px; }
.legal-text ul { padding-left: 22px; margin: 0 0 14px; }
.legal-text li { margin-bottom: 6px; }
.legal-text a { color: var(--accent-ink); }
.legal-text .highlight { background: var(--accent-soft); border-left: 3px solid var(--accent); padding: 12px 16px; margin: 16px 0; border-radius: 0 10px 10px 0; font-size: 15px; }
.legal-text .warning { background: var(--warn-bg); border-left: 3px solid var(--watch-tick); padding: 12px 16px; margin: 16px 0; border-radius: 0 10px 10px 0; font-size: 15px; }
.legal-text .table-wrap { overflow-x: auto; margin: 12px 0 20px; border: 1px solid var(--line); border-radius: 12px; }
.legal-text table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 14px; }
.legal-text th { text-align: left; padding: 9px 12px; background: var(--panel); font-weight: 600; border-bottom: 1px solid var(--line); }
.legal-text td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
/* phones: each row of a data table stacks as a small card, every cell under its column's name (data-label from the build) */
@media (max-width: 560px) {
  .legal-text .table-wrap { overflow: visible; border: 0; border-radius: 0; }
  .legal-text table.data-table { min-width: 0; display: block; }
  .legal-text .data-table tbody, .legal-text .data-table tr, .legal-text .data-table td { display: block; }
  .legal-text .data-table tr.hdr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .legal-text .data-table tr { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 8px 14px; margin-bottom: 10px; }
  .legal-text .data-table td { border: 0; padding: 5px 0; }
  .legal-text .data-table td[data-label]::before { content: attr(data-label); display: block; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); font-weight: 600; margin-bottom: 1px; }
}
.legal-text tr:last-child td { border-bottom: 0; }
.legal-text .legal-foot { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); }
.notfound { padding-block: 96px; text-align: center; }
.notfound .ctas { justify-content: center; }

/* footer */
footer.site { border-top: 1px solid var(--ink); padding-block: 40px 56px; font-size: 14px; }
footer .cols { display: grid; grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); gap: 24px; }
footer h2 { font-family: var(--sans); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); margin: 0 0 10px; font-weight: 600; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
footer a { text-decoration: none; color: var(--ink-wet); }
footer a:hover { color: var(--ink); }
footer .tag { color: var(--dim); margin: 12px 0 0; max-width: 22em; }
footer .legal { margin-top: 30px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--dim); }

@media (max-width: 960px) {
  .hero .container, .split { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .split.flip > :first-child { order: 0; }
  .roles, .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust div:nth-child(3) { padding-left: 0; border-left: 0; }
  footer .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  footer .cols > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .menu { display: none; }
  details.mobile { display: block; }
  .qr { display: none; }
}
@media (max-width: 560px) {
  .container, .narrow { padding-inline: 18px; }
  .hero { padding-block: 32px 24px; }
  .roles, .trust { grid-template-columns: minmax(0, 1fr); }
  .trust div, .trust div + div { padding: 14px 0; border-left: 0; border-top: 1px solid var(--line); }
  .trust div:first-child { border-top: 0; }
  section.band { padding-block: 52px; }
}
@media (prefers-reduced-motion: reduce) { .fade { transition: none; } .caret { animation: none; } }
