/* 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%; }

/* The site's look: the app's paper things (phones, slips, labels) lie on big fields of colour.
   One field per reader (teal by default; blue residents, oxblood fellows, green attendings, purple CRNAs, berry program
   directors), yellow for emphasis, night for promises, near-white where you read. One look, in light and dark. */
@property --field { syntax: '<color>'; inherits: true; initial-value: #0A6456; }
@property --field-deep { syntax: '<color>'; inherits: true; initial-value: #004C40; }
:root {
  /* the app's Folio colours: its paper, its ink, and its case categories. Mirrors src/theme/folio.ts in the app repo. */
  --paper: #F5F1E8; --panel: #FCFAF3;
  /* ink and rules as they are on paper, by name: a paper thing lying on a field of colour asks for these back (the long list below) */
  --s-ink: #221F19; --s-ink-wet: #5F584C; --s-dim: #6F6A5D; --s-faint: #A49E8E; --s-line: #E6DFCE; --s-rule: #E4E0D6;
  --ink: var(--s-ink); --ink-wet: var(--s-ink-wet); --dim: var(--s-dim); --faint: var(--s-faint); --line: var(--s-line);
  --folio: #0C7361; --folio-ink: #0A5F50; --folio-soft: rgba(12,115,97,0.09);
  --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;
  /* the site's own */
  --field: #0A6456; --field-deep: #004C40; --field-bright: #ACEEDE;
  --yellow: #F9D544; --night: #1E1B16; --ground: #FBFAF6; --shelf: #F3EEE2; --rule: var(--s-rule); --on-field: #FCFAF3; --tape-ink: #1E1B16;
  /* pieces with a look of their own: the headline slip, the phone's frame, the reviews band, the darker green for small labels */
  --slip: #FCFAF3; --slip-ink: #221F19; --bezel: #15130F; --notch: #15130F; --voices-bg: var(--yellow); --voices-ink: var(--tape-ink); --voices-dim: #4A4334; --ok-ink: color-mix(in srgb, var(--ok) 78%, #000); --app-on-accent: #fff; --field-ink: var(--field); --voices-kick: var(--tape-ink); --blank-mark: color-mix(in srgb, var(--yellow) 60%, transparent);
  /* accents on a page follow its reader's colour; the app's own pieces reset them to Folio teal (see .phone) */
  --s-accent: var(--field); --s-accent-ink: var(--field-deep); --s-accent-soft: color-mix(in srgb, var(--field) 10%, transparent); --s-on-accent: #FCFAF3;
  --accent: var(--s-accent); --accent-ink: var(--s-accent-ink); --accent-soft: var(--s-accent-soft); --on-accent: var(--s-on-accent);
  --button-bg: var(--yellow); --button-ink: var(--tape-ink);
  --warn-bg: rgba(182,131,42,0.12);
  --shadow: 0 14px 32px rgba(30,27,22,0.13);
  --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;
  transition: --field 0.6s ease, --field-deep 0.6s ease;
}
/* night: the same page with the lamp off. The values live in _dark.part; build.mjs writes them in here twice (device setting, and by name). */
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) {
  /* night. The app's own dark Folio colours (src/theme/folio.ts), as the live site already used them, plus the site's grounds. */
  --paper: #1B1812; --panel: #27221B; --ground: #14120D; --shelf: #1A1711; --night: #0C0A07;
  --s-ink: #EFE9DB; --s-ink-wet: #BBB4A4; --s-dim: #A39C8C; --s-faint: #6F6859; --s-line: #37322A; --s-rule: #322D24;
  /* on dark paper the reader's colour is too deep to read, so links take its pale tint and rules a brighter mix of the two */
  --s-accent: color-mix(in srgb, var(--field) 42%, var(--field-bright)); --s-accent-ink: var(--field-bright); --s-accent-soft: color-mix(in srgb, var(--field-bright) 13%, transparent); --s-on-accent: #14120D;
  --folio: #33D6B4; --folio-ink: #5FE0C4; --folio-soft: rgba(51,214,180,0.12); --app-on-accent: #14120D;
  --ok: #5FC487; --ok-ink: #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;
  /* the headline slips and printed reports stay paper, a shade quieter; the phone's frame lightens so it still reads as a phone */
  --slip: #EFE9DB; --bezel: #3B362C; --notch: #0A0907;
  /* the reviews band rests: dark, with the yellow kept for its highlight */
  --voices-bg: #1E190B; --voices-ink: var(--s-ink); --voices-dim: var(--s-dim); --voices-kick: var(--yellow); --field-ink: var(--field-bright); --blank-mark: color-mix(in srgb, var(--yellow) 24%, transparent);
  --warn-bg: rgba(230,180,90,0.12); --shadow: 0 14px 32px rgba(0,0,0,0.5); --dash-invite: rgba(107,100,85,0.90);
  --graphite: #7D766A; --lift: 0 22px 50px rgba(0,0,0,0.55);
  color-scheme: dark;
}
}
:root[data-theme="dark"] {
  /* night. The app's own dark Folio colours (src/theme/folio.ts), as the live site already used them, plus the site's grounds. */
  --paper: #1B1812; --panel: #27221B; --ground: #14120D; --shelf: #1A1711; --night: #0C0A07;
  --s-ink: #EFE9DB; --s-ink-wet: #BBB4A4; --s-dim: #A39C8C; --s-faint: #6F6859; --s-line: #37322A; --s-rule: #322D24;
  /* on dark paper the reader's colour is too deep to read, so links take its pale tint and rules a brighter mix of the two */
  --s-accent: color-mix(in srgb, var(--field) 42%, var(--field-bright)); --s-accent-ink: var(--field-bright); --s-accent-soft: color-mix(in srgb, var(--field-bright) 13%, transparent); --s-on-accent: #14120D;
  --folio: #33D6B4; --folio-ink: #5FE0C4; --folio-soft: rgba(51,214,180,0.12); --app-on-accent: #14120D;
  --ok: #5FC487; --ok-ink: #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;
  /* the headline slips and printed reports stay paper, a shade quieter; the phone's frame lightens so it still reads as a phone */
  --slip: #EFE9DB; --bezel: #3B362C; --notch: #0A0907;
  /* the reviews band rests: dark, with the yellow kept for its highlight */
  --voices-bg: #1E190B; --voices-ink: var(--s-ink); --voices-dim: var(--s-dim); --voices-kick: var(--yellow); --field-ink: var(--field-bright); --blank-mark: color-mix(in srgb, var(--yellow) 24%, transparent);
  --warn-bg: rgba(230,180,90,0.12); --shadow: 0 14px 32px rgba(0,0,0,0.5); --dash-invite: rgba(107,100,85,0.90);
  --graphite: #7D766A; --lift: 0 22px 50px rgba(0,0,0,0.55);
  color-scheme: dark;
}
:root[data-role="resident"] { --field: #144F92; --field-deep: #033973; --field-bright: #BFE1FF; }
:root[data-role="fellow"] { --field: #922522; --field-deep: #721212; --field-bright: #FFCDC5; }
:root[data-role="attending"] { --field: #246131; --field-deep: #124920; --field-bright: #BFEBC4; }
:root[data-role="crna"] { --field: #5E3685; --field-deep: #462367; --field-bright: #E9D3FF; }
:root[data-role="pd"] { --field: #812A5A; --field-deep: #641843; --field-bright: #FECEE4; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr, 62px) + 18px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--ground); 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; }
button { font: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--yellow); color: var(--tape-ink); }
:focus-visible { outline: 3px 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, .wrap { max-width: 1180px; margin-inline: auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: 800px; margin-inline: auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.nw { white-space: nowrap; }
.sr, .visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.kick { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; color: var(--dim); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; text-wrap: balance; }
/* no last line of one stranded word, where the browser can manage it */
p, li, dd, blockquote, figcaption { text-wrap: pretty; }
h1 { font-size: clamp(42px, 5.7vw, 78px); line-height: 0.98; letter-spacing: -0.032em; margin-top: 14px; }
h2 { font-size: clamp(32px, 4.6vw, 60px); line-height: 1.03; letter-spacing: -0.028em; margin: 12px 0 14px; }
h3 { font-size: 23px; line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 8px; }
/* the second half of a heading: on a headline it's a paper slip, on a section heading a strip of yellow label tape */
em.t { font-style: normal; }
h2 em.t, mark { display: inline-block; background: var(--yellow); color: var(--tape-ink); padding: 0 0.16em 0.04em; border-radius: 5px; transform: rotate(-1.4deg); }
h1 em.t, .tag-slip { display: block; width: fit-content; max-width: 100%; position: relative; margin-top: 0.3em; background: var(--panel); color: var(--ink); font-size: 0.76em; line-height: 1.02; padding: 0.3em 0.34em 0.2em; border-radius: 7px; transform: rotate(2deg); transform-origin: 12% 50%; box-shadow: 0 0.14em 0.42em rgba(0,0,0,0.30); }
.tag-slip[data-stamp]::before { content: attr(data-stamp); position: absolute; left: 0.9em; top: 0.55em; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 500; color: var(--dim); }
.tag-slip[data-stamp] { padding-top: max(0.32em, 22px); }
h1 br { display: none; }
.rule { display: none; }
.link, .textlink { color: var(--accent-ink); text-underline-offset: 3px; font-weight: 500; }
/* a strip of label tape: names the thing it's stuck on */
.tape { position: absolute; left: 20px; top: -12px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; background: var(--field); color: var(--on-field); padding: 5px 9px 4px; border-radius: 4px; transform: rotate(-1.6deg); box-shadow: 0 3px 8px rgba(30,27,22,0.2); transition: background 0.6s ease; }

/* anything on a field of colour: light text, and the quiet greys become the field's own tint */
.on-field, .hero, .page-head, .ref-head, .notfound, .final, main > section.band:first-child:has(h1), footer.site { --ink: var(--on-field); --ink-wet: var(--on-field); --dim: var(--field-bright); --faint: var(--field-bright); --line: color-mix(in srgb, var(--on-field) 26%, transparent); --rule: color-mix(in srgb, var(--on-field) 26%, transparent); --accent: var(--yellow); --accent-ink: var(--on-field); --accent-soft: color-mix(in srgb, var(--on-field) 14%, transparent); --on-accent: var(--tape-ink); color: var(--on-field); }
.on-field, .hero, .final, section.page-head, main > section.band:first-child:has(h1) { background: var(--field); }
.on-field :focus-visible, .hero :focus-visible, .page-head :focus-visible, .ref-head :focus-visible, .notfound :focus-visible, .final :focus-visible, header.site :focus-visible, footer.site :focus-visible { outline-color: var(--yellow); }
/* the app's own pieces keep the app's colours wherever they lie */
/* anything made of paper keeps the paper's own ink and greys, whatever it lies on */
.phone, .sheet, .tee2, .folio, .tag-slip, h1 em.t, .card, .guide, .feature, .menu-drop, .pal-box, .contact, .slips figure, .tier:not(.pick-me), .plan:not(.pro), .memo, .box, .bcard, .lane, .flowmap .src, .timeline .notes, .mins, .keep, .pull, .numgrid > div, .timeline3 li, .ask-card { --ink: var(--s-ink); --ink-wet: var(--s-ink-wet); --dim: var(--s-dim); --faint: var(--s-faint); --line: var(--s-line); --rule: var(--s-rule); --accent: var(--s-accent); --accent-ink: var(--s-accent-ink); --accent-soft: var(--s-accent-soft); --on-accent: var(--s-on-accent); color: var(--ink); }
/* and the app's own pieces keep the app's teal */
.phone, .sheet, .tee2, .folio { --accent: var(--folio); --accent-ink: var(--folio-ink); --accent-soft: var(--folio-soft); --on-accent: var(--app-on-accent); }
/* three things stay paper at night: the headline slips, the paper labels on the dark band, and a printed report */
h1 em.t, .tag-slip, .trust .kick, .sheet { --paper: #F5F1E8; --panel: var(--slip); --ink: var(--slip-ink); --ink-wet: #5F584C; --dim: #655F54; --faint: #A49E8E; --line: #E6DFCE; --rule: #E4E0D6; --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; --folio: #0C7361; --folio-ink: #0A5F50; --folio-soft: rgba(12,115,97,0.09); --accent: var(--field); --accent-ink: var(--field-deep); --accent-soft: color-mix(in srgb, var(--field) 10%, transparent); --on-accent: #FCFAF3; color: var(--ink); color-scheme: light; }
.sheet { --accent: var(--folio); --accent-ink: var(--folio-ink); --accent-soft: var(--folio-soft); --on-accent: #fff; }
.phone :focus-visible, .sheet :focus-visible { outline-color: var(--folio); }

/* ---------- header ---------- */
header.site { position: sticky; top: 0; z-index: 30; background: var(--field); color: var(--on-field); }
header.site > .container { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-block: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.brand span { font-family: var(--serif); font-size: 24px; font-weight: 500; letter-spacing: -0.01em; }
.menu { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 500; }
.menu a, .menu summary { text-decoration: none; cursor: pointer; }
.menu > a:hover, .menu summary:hover { color: var(--yellow); }
.menu a[aria-current="page"], .menu details.cur > summary { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 7px; }
.menu a.user { margin-left: 2px; padding-left: 26px; border-left: 1px solid color-mix(in srgb, var(--on-field) 32%, transparent); }
header.site details { position: relative; }
header.site summary { list-style: none; }
header.site summary::-webkit-details-marker { display: none; }
details.navdd summary::after { content: ""; display: inline-block; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin: 0 0 3px 8px; transition: transform 0.15s; }
details.navdd[open] summary::after { transform: translateY(3px) rotate(225deg); }
/* the menus drop over everything in the header, the search panel included */
.menu-drop { position: absolute; z-index: 3; top: calc(100% + 12px); background: var(--panel); color: var(--ink); border-radius: 10px; box-shadow: 0 18px 40px rgba(0,0,0,0.30); padding: 8px; display: grid; min-width: 250px; }
details.navdd .menu-drop { left: -14px; }
details.mobile .menu-drop { right: 0; width: min(300px, calc(100vw - 40px)); max-height: calc(100svh - 90px); overflow-y: auto; overscroll-behavior: contain; }
.menu-drop a { padding: 11px 12px; border-radius: 7px; text-decoration: none; display: flex; align-items: center; gap: 11px; font-size: 15.5px; font-weight: 500; color: var(--ink); }
.menu-drop a:hover, .menu-drop a[aria-current="page"] { background: var(--paper); }
.menu-drop a i { width: 14px; height: 14px; border-radius: 3px; background: var(--dot, var(--ink)); flex: none; }
.menu-drop hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; width: auto; }
.menu-drop button { cursor: pointer; display: flex; align-items: center; gap: 11px; width: 100%; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink-wet); border-radius: 8px; padding: 11px 12px; font-size: 15.5px; font-weight: 500; text-align: left; margin-bottom: 6px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-size: 14.5px; text-decoration: none; border-radius: 9px; padding: 9px 16px; white-space: nowrap; border: 0; cursor: pointer; }
.btn.accent { background: var(--accent); color: var(--on-accent); }
header.site .btn.accent { background: var(--yellow); color: var(--tape-ink); }
.menu a.btn:hover { color: var(--tape-ink); }
.find { cursor: pointer; display: inline-flex; align-items: center; gap: 8px; background: transparent; color: inherit; border: 1.5px solid color-mix(in srgb, var(--on-field) 45%, transparent); border-radius: 9px; padding: 7px 10px; font-size: 14.5px; font-weight: 500; line-height: 1.3; }
.find:hover { background: color-mix(in srgb, var(--on-field) 14%, transparent); }
.find svg, .pal-box svg, .menu-drop button svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; flex: none; }
.find kbd { font-family: var(--mono); font-size: 11px; line-height: 1.4; border: 1px solid color-mix(in srgb, var(--on-field) 45%, transparent); border-radius: 4px; padding: 0 5px; }
.phone-nav { display: none; align-items: center; gap: 10px; }
details.mobile summary { cursor: pointer; border: 1.5px solid color-mix(in srgb, var(--on-field) 55%, transparent); border-radius: 9px; padding: 7px 13px; font-size: 14.5px; font-weight: 500; }
/* the search panel: under the header, on every page */
.palette { position: absolute; z-index: 1; left: 0; right: 0; top: 100%; background: var(--field-deep); color: var(--on-field); box-shadow: 0 30px 50px rgba(0,0,0,0.35); max-height: calc(100svh - 60px); overflow-y: auto; overscroll-behavior: contain; }
.palette .container { max-width: 820px; padding-block: 20px 30px; }
.pal-box { display: flex; align-items: center; gap: 12px; background: var(--panel); color: var(--ink-wet); border-radius: 12px; padding: 3px 8px 3px 16px; box-shadow: 0 10px 24px rgba(0,0,0,0.25); cursor: text; }
.pal-box input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 19px; color: var(--ink); padding: 13px 0; outline: none; }
.pal-box button { cursor: pointer; border: 0; background: transparent; color: var(--ink-wet); font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; padding: 9px 10px; border-radius: 7px; }
.pal-box button:hover { background: var(--paper); color: var(--ink); }
header.site .pal-box :focus-visible { outline-color: var(--field); }
.scrim { position: fixed; inset: 0; z-index: 20; background: rgba(21,19,15,0.5); }

/* answers: used by the search panel and by Home's "Does it...?" */
.res { --r-text: var(--ink); --r-soft: var(--ink-wet); --r-rule: var(--rule); --r-go: var(--field-ink); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 56px; align-items: start; margin-top: 38px; }
.res.one { grid-template-columns: minmax(0, 1fr); }
.res.one ul { columns: 2; column-gap: 56px; }
.res ul { list-style: none; margin: 0; padding: 0; }
.res li { break-inside: avoid; }
.gk { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; color: var(--r-soft); padding-bottom: 9px; border-bottom: 2px solid var(--r-text); }
.res a { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 1px 16px; padding: 13px 2px; border-bottom: 1px solid var(--r-rule); text-decoration: none; color: var(--r-text); }
.res a b { font-family: var(--serif); font-weight: 400; font-size: 21px; line-height: 1.25; }
.res a i { font-style: normal; font-size: 13px; font-weight: 600; color: var(--r-go); white-space: nowrap; }
.res a small { grid-column: 1 / -1; font-size: 13.5px; line-height: 1.45; color: var(--r-soft); }
.res a:hover b { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--r-go); }
.res a.soon i { border: 1px dashed currentColor; border-radius: 6px; padding: 1px 7px; font-weight: 500; color: var(--r-soft); }
.res .none { margin: 0; font-size: 17px; color: var(--r-soft); max-width: 36em; }
.res .none a { display: inline; padding: 0; border: 0; font-weight: 600; color: var(--r-text); text-decoration: underline; text-underline-offset: 3px; }
.palette .res { --r-text: var(--on-field); --r-soft: var(--field-bright); --r-rule: color-mix(in srgb, var(--on-field) 22%, transparent); --r-go: var(--yellow); grid-template-columns: minmax(0, 1fr); gap: 22px; margin-top: 22px; }
.palette .res.one ul { columns: 1; }

/* ---------- buttons, the App Store button and the desktop QR ---------- */
.store { display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 17.5px; text-decoration: none; border-radius: 12px; padding: 17px 28px; background: var(--yellow); color: var(--tape-ink); box-shadow: 0 8px 20px rgba(0,0,0,0.20); }
.store svg { width: 18px; height: 18px; fill: currentColor; }
.qr { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; line-height: 1.4; color: var(--dim); }
.qr img { width: 68px; height: 68px; border-radius: 8px; border: 4px solid #fff; background: #fff; }
.ctas { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin-top: 24px; }
/* a row of text links under a paragraph: each link its own piece, wrapping whole */
.linkrow { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 10px; }
.lead { font-size: clamp(18px, 1.75vw, 21px); line-height: 1.5; max-width: 30em; margin: 24px 0 0; color: var(--ink-wet); text-wrap: pretty; }
.fine { font-size: 13.5px; color: var(--dim); margin: 18px 0 0; max-width: 40em; }
.fine a { color: inherit; }
.sub { font-size: 18px; line-height: 1.55; color: var(--ink-wet); margin: 0; max-width: 36em; }
.sub b, .list b, .steps b { color: var(--ink); font-weight: 600; }
.disclaim { font-size: 13.5px; color: var(--dim); margin: 22px 0 0; }
.disclaim a { color: var(--accent-ink); }
.byline a, .page-head .lead a, .ref-head .lead a { color: inherit; text-underline-offset: 3px; }

/* ---------- the top of a page ---------- */
.hero { overflow: hidden; }
.hero > .container { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 48px; align-items: center; padding-block: 46px 66px; }
.hero > .container > * { min-width: 0; }
.page-head { padding-block: 46px 50px; }
.page-head h1 { font-size: clamp(38px, 5vw, 64px); }
.page-head .meta { color: var(--field-bright); font-size: 14px; margin-top: 16px; }

/* ---------- the phone and the app's own pieces ---------- */
.phone { position: relative; width: 348px; max-width: 100%; margin-inline: auto; background: var(--paper); border: 1px solid var(--line); border-radius: 44px; box-shadow: 0 34px 70px rgba(0,0,0,0.34), 0 0 0 10px var(--bezel); padding: 22px 16px 18px; }
.hero .phone { transform: rotate(2.4deg); }
/* what plays inside a phone, or lists itself as you type, must never make the browser nudge the page's scroll to follow it */
.phone, .res, .jscreen { overflow-anchor: none; }
.phone .notch { width: 92px; height: 24px; border-radius: 14px; background: var(--notch); margin: -8px auto 16px; }
.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); margin-top: 3px; }
.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; margin-top: 12px; }
.capture .text { flex: 1; min-width: 0; font-size: 13.5px; line-height: 1.35; 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(--folio); }
.capture .mic.crna { background: #14B8A6; }
.caret { display: inline-block; width: 1.5px; height: 1em; background: var(--folio); 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: 13.5px; 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; }
.example-note { text-align: center; font-size: 12px; color: var(--dim); margin: 20px 0 0; }
.hero .example-note { transform: rotate(2.4deg); }

/* ---------- sections ---------- */
section.band { padding-block: 88px; }
section.band.shelf, .shelf-band { background: var(--shelf); }
section.band .kick { color: var(--accent-ink); }
.sec-head { max-width: 860px; margin-bottom: 34px; }
.sec-head .sub { margin-top: 4px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.split > * { min-width: 0; }
.split.flip > :first-child { order: 2; }
.list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.list li { position: relative; padding-left: 26px; font-size: 16.5px; line-height: 1.5; color: var(--ink-wet); }
.list li::before { content: "\2713"; position: absolute; left: 0; color: var(--accent); font-weight: 600; }
.card { position: relative; background: var(--panel); border-radius: 8px; padding: 28px 26px 22px; box-shadow: 0 16px 34px rgba(30,27,22,0.14); }
.split > .card { transform: rotate(0.8deg); }
.split.flip > .card { transform: rotate(-0.8deg); }
.card > .kick:first-child { position: absolute; left: 20px; bottom: calc(100% - 16px); margin: 0 !important; background: var(--field); color: var(--on-field); padding: 5px 9px 4px; border-radius: 4px; transform: rotate(-1.6deg); box-shadow: 0 3px 8px rgba(30,27,22,0.2); max-width: calc(100% - 40px); }
.card > .kick:first-child + * { margin-top: 8px; }
.card .list { margin-top: 0; }
.card .field { font-size: 13px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.card .disclaim { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); }
/* Your program, as a card: who's on, and a hello from one of them */
.prog-name { font-family: var(--serif); font-size: 30px; line-height: 1.1; letter-spacing: -0.02em; }
.prog-dots { display: flex; gap: 7px; margin-top: 14px; }
.prog-dots i { width: 14px; height: 14px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 28%, transparent); }
.prog-dots i:nth-child(-n+2) { background: var(--accent); }
.prog-count { margin-top: 12px; display: grid; gap: 2px; font-size: 15.5px; }
.prog-count span { color: var(--ink-wet); font-size: 14px; }
.prog-hi { margin-top: 18px; padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; font-family: var(--serif); font-size: 21px; line-height: 1.25; }
.prog-hi small { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); margin-top: 5px; }
.prog-stamps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.prog-stamps span { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; padding: 6px 10px 5px; border: 1.5px dashed var(--faint); border-radius: 7px; color: var(--ink-wet); }
.prog-stamps .on { border-style: solid; border-color: var(--accent); color: var(--accent-ink); background: var(--accent-soft); transform: rotate(-3deg); }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 26px 0 0; display: grid; gap: 28px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 58px minmax(0, 1fr); font-size: 18px; line-height: 1.5; color: var(--ink-wet); }
.steps li::before { content: counter(s); font-family: var(--serif); font-size: 62px; line-height: 0.86; color: var(--accent); }
/* things the app does for the awkward parts: plain rows with the app's category ticks */
.roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; border-top: 2px solid var(--ink); }
.role { position: relative; padding: 18px 2px 18px 22px; border-bottom: 1px solid var(--rule); min-width: 0; text-decoration: none; display: block; }
.role::before { content: ""; position: absolute; left: 2px; top: 21px; bottom: 21px; width: 5px; border-radius: 3px; background: var(--tick, var(--accent)); }
.role .n { display: block; font-family: var(--serif); font-weight: 500; font-size: 23px; line-height: 1.2; letter-spacing: -0.01em; }
.role .s { display: block; margin-top: 4px; color: var(--ink-wet); font-size: 16px; }
.role .go { display: block; margin-top: 6px; font-size: 14.5px; color: var(--accent-ink); font-weight: 600; }
.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: 15px; }
.meter .frac { font-family: var(--mono); font-size: 14.5px; }
.meter .frac span { color: var(--dim); }
.bar { height: 6px; border-radius: 3px; background: var(--line); margin-top: 7px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 3px; background: var(--folio); }
.meter.met .bar i { background: var(--ok); }
.meter.behind .bar i { background: var(--watch-tick); }
.meter .pace { font-size: 12.5px; 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); }
.card:has(> .meter) { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
/* four short promises, each under a paper label */
.trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; margin-top: 36px; }
.trust > div { min-width: 0; }
.trust .kick { display: inline-block; background: var(--panel); color: var(--tape-ink); padding: 5px 9px 4px; border-radius: 4px; transform: rotate(-1.4deg); box-shadow: 0 3px 8px rgba(30,27,22,0.16); }
.trust > div:nth-child(even) .kick { transform: rotate(1deg); }
.trust p { margin: 12px 0 0; font-size: 15.5px; color: var(--ink-wet); }
.band.night, .promise { background: var(--night); color: var(--on-field); --ink: var(--on-field); --ink-wet: color-mix(in srgb, var(--on-field) 76%, transparent); --dim: color-mix(in srgb, var(--on-field) 70%, transparent); --accent: var(--yellow); --accent-ink: var(--yellow); --on-accent: var(--tape-ink); --line: color-mix(in srgb, var(--on-field) 24%, transparent); --rule: color-mix(in srgb, var(--on-field) 24%, transparent); }
section.band.night .kick, .promise > .container > .kick { color: var(--yellow); }
section.band .trust .kick, section.band.night .trust .kick { color: var(--tape-ink); }
.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, .final blockquote { margin: 0; font-family: var(--serif); font-size: clamp(22px, 2.6vw, 30px); line-height: 1.36; max-width: 30em; }
.founder .who, .who-said { font-size: 13.5px; color: var(--dim); margin-top: 14px; }
.who-said a { color: inherit; text-underline-offset: 3px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq details:first-of-type { border-top: 2px solid var(--ink); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding: 20px 2px; font-family: var(--serif); font-size: clamp(21px, 2.3vw, 27px); line-height: 1.2; letter-spacing: -0.012em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-size: 26px; line-height: 1; color: var(--accent); flex: none; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p, .faq details div { margin: 0 0 22px; max-width: 62ch; color: var(--ink-wet); font-size: 17px; }
.faq details p + p { margin-top: -10px; }
.faq a { color: var(--accent-ink); text-underline-offset: 3px; font-weight: 500; }
.faq > .container, .band.faq > .container { max-width: 900px; margin-left: max(0px, calc((100% - 1180px) / 2)); }
/* the last word on a page: the field again, one line, one button */
.final { padding-block: 92px 108px; }
.final h2 { font-size: clamp(38px, 6vw, 84px); line-height: 1; letter-spacing: -0.035em; margin: 0; max-width: 16em; }
.final blockquote + .who-said + h2, .final .who-said + h2 { margin-top: 68px; }
.final .ctas { margin-top: 40px; }
.final .sub { margin-top: 20px; max-width: 34em; }

/* ---------- plain pages: support, legal, 404 ---------- */
.contact { background: var(--panel); border-radius: 8px; padding: 26px; margin: 44px 0 40px; box-shadow: var(--shadow); }
.contact h2 { font-size: 28px; margin: 0 0 6px; }
.contact p { margin: 0 0 8px; color: var(--ink-wet); }
.legal-text { padding-block: 44px 80px; }
.legal-text h2 { font-size: 28px; letter-spacing: -0.015em; margin: 44px 0 12px; }
.legal-text h3 { font-size: 20px; margin: 26px 0 8px; }
.legal-text p, .legal-text li { font-size: 16.5px; line-height: 1.65; }
.legal-text ul { padding-left: 22px; margin: 0 0 14px; }
.legal-text li { margin-bottom: 6px; }
.legal-text a { color: var(--accent-ink); text-underline-offset: 3px; }
.legal-text .highlight { background: var(--accent-soft); border-radius: 8px; padding: 14px 18px; margin: 16px 0; font-size: 15.5px; }
.legal-text .warning { background: var(--warn-bg); border-radius: 8px; padding: 14px 18px; margin: 16px 0; font-size: 15.5px; }
.legal-text .table-wrap { overflow-x: auto; margin: 12px 0 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.legal-text table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 14.5px; }
.legal-text th { text-align: left; padding: 10px 12px; background: var(--paper); font-weight: 600; border-bottom: 1px solid var(--line); }
.legal-text td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
@media (max-width: 560px) {
  .legal-text .table-wrap { overflow: visible; border: 0; border-radius: 0; background: transparent; }
  .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-path: inset(50%); }
  .legal-text .data-table tr { border: 1px solid var(--line); border-radius: 10px; 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-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); font-weight: 500; 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: 13.5px; color: var(--dim); }
.notfound { padding-block: 96px 120px; }

/* ---------- guides and tools: paper cards with a tape label ---------- */
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 38px 26px; margin-top: 42px; }
.guide { position: relative; display: flex; flex-direction: column; gap: 10px; background: var(--panel); color: var(--ink); border-radius: 8px; padding: 32px 24px 20px; text-decoration: none; box-shadow: 0 12px 26px rgba(30,27,22,0.11); min-width: 0; transition: transform 0.18s ease; }
section.band .guide:not(.soon) .kick, .guide:not(.soon) .kick { color: var(--on-field); }
.guide .kick { position: absolute; left: 18px; top: -11px; background: var(--field); color: var(--on-field); padding: 5px 9px 4px; border-radius: 4px; transform: rotate(-1.6deg); box-shadow: 0 3px 8px rgba(30,27,22,0.2); transition: background 0.6s ease; }
.guide b { font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1.12; letter-spacing: -0.018em; }
.guide .d { font-size: 15px; color: var(--ink-wet); }
.guide .gmeta, .feature .gmeta { font-size: 12.5px; line-height: 1.4; color: var(--dim); }
.guide .go { margin-top: auto; padding-top: 8px; font-weight: 600; font-size: 14.5px; color: var(--accent-ink); }
.guide.soon { background: transparent; box-shadow: none; border: 2px dashed color-mix(in srgb, var(--ink) 32%, transparent); }
section.band .guide.soon .kick, .guide.soon .kick { background: var(--shelf); color: var(--ink-wet); border: 1px dashed currentColor; box-shadow: none; }
.feature { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 18px 56px; align-items: end; background: var(--panel); color: var(--ink); border-radius: 10px; padding: 48px 40px 36px; text-decoration: none; box-shadow: 0 26px 54px rgba(30,27,22,0.22); transition: transform 0.18s ease; }
.feature .tape { left: 30px; top: -13px; background: var(--yellow); color: var(--tape-ink); }
.feature > span:not(.tape) { display: grid; gap: 12px; justify-items: start; min-width: 0; }
.feature .kick { color: var(--accent-ink); }
.feature b { font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 4.6vw, 58px); line-height: 1.02; letter-spacing: -0.028em; text-wrap: balance; }
.feature .d { font-size: 18px; line-height: 1.5; color: var(--ink-wet); }
.feature .go { font-weight: 600; font-size: 16px; background: var(--field); color: var(--on-field); border-radius: 9px; padding: 11px 18px; transition: background 0.6s ease; }
@media (hover: hover) { .guide:not(.soon):hover { transform: translateY(-4px) rotate(-0.6deg); } .feature:hover { transform: translateY(-4px); } }
/* who are you? the buttons that set the page's colour */
.pick { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 40px; }
.pick > span { font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--field-bright); margin-right: 3px; }
.pick button { cursor: pointer; background: transparent; color: var(--on-field); border: 1.5px solid color-mix(in srgb, var(--on-field) 55%, transparent); border-radius: 7px; padding: 8px 14px; font-size: 15px; font-weight: 600; transition: transform 0.18s ease, background 0.18s ease; }
@media (hover: hover) { .pick button:hover { background: color-mix(in srgb, var(--on-field) 14%, transparent); } }
.pick button[aria-pressed="true"] { background: var(--yellow); border-color: var(--yellow); color: var(--tape-ink); transform: rotate(-2deg) scale(1.04); box-shadow: 0 6px 14px rgba(0,0,0,0.25); }
.pick button[aria-pressed="true"]::after { content: "\00d7"; content: "\00d7" / ""; margin-left: 8px; font-weight: 400; opacity: 0.65; }

/* ---------- footer ---------- */
footer.site { background: var(--night); padding-block: 52px 64px; font-size: 14px; --ink-wet: color-mix(in srgb, var(--on-field) 72%, transparent); --dim: color-mix(in srgb, var(--on-field) 60%, transparent); color: var(--ink-wet); }
footer .cols { display: grid; grid-template-columns: 1.3fr repeat(4, minmax(0, 1fr)); gap: 28px; }
footer .brand { color: var(--on-field); }
footer h2 { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--yellow); font-weight: 500; margin: 0 0 10px; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--on-field); }
footer .tag { margin: 12px 0 0; max-width: 22em; }
/* the maker: Pierogi Labs, with Peter on a paper badge */
footer .maker { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; text-decoration: none; font-size: 13px; min-height: 44px; }
footer .maker b { color: var(--on-field); font-weight: 600; }
footer .maker:hover b, footer .maker:focus-visible b { color: var(--yellow); }
footer .maker .peter { display: grid; place-items: center; width: 54px; height: 40px; border-radius: 8px; background: var(--panel); flex: none; transform: rotate(-3deg); }
footer .maker .peter img { width: 44px; height: auto; display: block; }
footer .legal { display: flex; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap; border-top: 1px solid color-mix(in srgb, var(--on-field) 22%, transparent); margin-top: 32px; padding-top: 16px; font-size: 12.5px; }

/* ---------- home's three steps, kept here because the role pages borrow them ---------- */
.story { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px; margin-top: 44px; }
.story > div { border-top: 5px solid var(--accent); padding-top: 16px; min-width: 0; transition: border-color 0.6s ease; }
.story .kick { color: var(--ink-wet); }
.story h3 { font-size: 32px; letter-spacing: -0.02em; margin: 8px 0 10px; }
.story p { margin: 0; color: var(--ink-wet); font-size: 16px; }
.free { display: inline-block; margin-top: 14px; font-size: 12.5px; font-weight: 600; color: var(--accent-ink); background: var(--accent-soft); border-radius: 6px; padding: 3px 10px; }

/* "What's next" joins the bar only where there is room for it; below that it is in the footer and the phone menu */
@media (max-width: 1220px) { .menu a.roomy { display: none; } }
@media (max-width: 1100px) { .menu { gap: 20px; } .find span, .find kbd { display: none; } }
@media (max-width: 960px) {
  .menu { display: none; }
  .phone-nav { display: flex; }
  /* on the narrowest phones the icon stands for the name, which stays for screen readers */
  @media (max-width: 350px) { header.site .brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } }
  .hero > .container { grid-template-columns: minmax(0, 1fr); gap: 34px; padding-block: 34px 56px; }
  .qr { display: none; }
  .store { width: 100%; max-width: 440px; }
  footer .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  footer .cols > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  section.band { padding-block: 60px; }
  .split { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .split.flip > :first-child { order: 0; }
  .steps li { grid-template-columns: 46px minmax(0, 1fr); font-size: 17px; }
  .steps li::before { font-size: 50px; }
  .roles, .story { grid-template-columns: minmax(0, 1fr); }
  .story { gap: 28px; }
  .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 22px; }
  .guide-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; margin-top: 38px; }
  .guide { padding: 26px 20px 16px; gap: 7px; }
  .guide b { font-size: 23px; }
  .feature { grid-template-columns: minmax(0, 1fr); padding: 38px 22px 26px; }
  .res { grid-template-columns: minmax(0, 1fr); gap: 26px; margin-top: 28px; }
  .res.one ul { columns: 1; }
  .res a b { font-size: 19.5px; }
  .pick { margin-top: 30px; }
  .pick button { min-height: 44px; }
  .final { padding-block: 62px 76px; }
  .page-head { padding-block: 34px 38px; }
}
@media (prefers-reduced-motion: reduce) { .fade { transition: none; } .caret { animation: none; } }

html:not(.js) .find, html:not(.js) .find-m { display: none; }

/* the Guides page: one card to start with, lifted over the edge of the field, then the shelf */
.lib-hero { padding-bottom: 132px; }
.lib-hero h1 { font-size: clamp(54px, 8.3vw, 108px); line-height: 0.94; }
section.band.lib { padding-top: 0; }
.lib .feature { margin-top: -88px; }
.lib-k { margin-top: 68px; }
.lib .res { margin-top: 64px; }
html:not(.js) .lib-hero .pick, html:not(.js) .doesit { display: none; }
@media (max-width: 860px) { .lib-hero { padding-bottom: 112px; } .lib .feature { margin-top: -76px; } .lib-k { margin-top: 52px; } }

/* a page whose first section carries its headline: that section is the top of the page, on the field */
main > section.band:first-child:has(h1) { padding-block: 46px 72px; }
main > section.band:first-child:has(h1) > .container > .kick, main > section.band:first-child:has(h1) .sec-head .kick { color: var(--field-bright); }
main > section.band:first-child:has(h1) :focus-visible { outline-color: var(--yellow); }

/* tops that sit inside a narrower column still run edge to edge */
main { overflow-x: clip; }
.ref-head, .narrow > .page-head, .notfound { position: relative; z-index: 0; }
.ref-head::before, .narrow > .page-head::before, .notfound::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: calc(50% - 50vw - 2px); width: calc(100vw + 4px); background: var(--field); }
.notfound .lead { margin-left: 0 !important; }
