/* Copied verbatim from web-prototype/src/styles (fonts.css, theme.css, base.css) on 2026-11-21 so the waitlist looks like the app. Re-copy to update. */
/* Self-hosted Atkinson Hyperlegible Next and Mono (variable woff2, latin + latin-ext), downloaded
   from Google Fonts on 2026-11-20. SIL Open Font License 1.1: public/fonts/OFL-*.txt. */
/* latin-ext */
@font-face {
  font-family: 'Atkinson Hyperlegible Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/atkinson-hyperlegible-mono-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Atkinson Hyperlegible Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/atkinson-hyperlegible-mono-latin.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;
}
/* latin-ext */
@font-face {
  font-family: 'Atkinson Hyperlegible Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/atkinson-hyperlegible-mono-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Atkinson Hyperlegible Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/atkinson-hyperlegible-mono-latin.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;
}
/* latin-ext */
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/atkinson-hyperlegible-next-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/atkinson-hyperlegible-next-latin.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;
}
/* latin-ext */
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/atkinson-hyperlegible-next-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/atkinson-hyperlegible-next-latin.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;
}
/* latin-ext */
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/fonts/atkinson-hyperlegible-next-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/fonts/atkinson-hyperlegible-next-latin.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;
}
/*
  THEME: everything a visual direction changes lives here, and only here.
  Components and pages use these custom properties only.

  Current direction: "Tarjeta" (cards, Atkinson Hyperlegible Next + Mono) in the
  "Verde clásico" palette:
  - primary green #2e7d32 for actions and links, with white labels (5.13:1);
  - leaf green #8bc34a for selected states and "better", with ink labels (6.88:1);
  - one ink colour, --color-ink (#1b2e1c, 14.44:1 on white). To try navy ink, change that
    one line, or uncomment the theme-navy-ink block at the end of this file.
  - warnings are amber, never red.
  All contrast values were computed from these hex values.
*/
:root {
  /* ---------- ink: the ONE token for text and dark labels ---------- */
  --color-ink: #141e46; /* v2: navy ink (was #1b2e1c in v1) */

  /* ---------- green scales (from #2e7d32 and #8bc34a) ---------- */
  --green-50: #f2f9f1; /* tint background */
  --green-100: #e3f1e0;
  --green-200: #c5e3bf;
  --green-300: #a5d39a;
  --green-400: #66a86a;
  --green-500: #43a047;
  --green-600: #388e3c;
  --green-700: #2e7d32; /* primary */
  --green-800: #1f5c24;
  --green-900: #163f19;
  --leaf: #8bc34a;
  --leaf-hover: #a2cf6e;
  --leaf-soft: #e4f2d3;
  --leaf-line: #b9dc8f;

  /* ---------- type ---------- */
  --font-sans: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: var(--font-sans);
  --font-mono: "Atkinson Hyperlegible Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 800;
  --display-weight: 800;
  --display-tracking: -0.015em;

  --text-xs: 0.8125rem; /* 13px: the smallest text we use */
  --text-sm: 0.9375rem;
  --text-md: 1.0625rem; /* 17px body */
  --text-lg: 1.1875rem;
  --text-xl: 1.4375rem;
  --text-2xl: clamp(1.625rem, 1.3rem + 1.4vw, 2rem);
  --text-3xl: clamp(2.125rem, 1.5rem + 2.8vw, 3.25rem);
  --leading-tight: 1.15;
  --leading-normal: 1.55;

  /* ---------- surfaces and text ---------- */
  --color-bg: #f7f8f5;
  --color-surface: #ffffff;
  --color-surface-2: #f0f2ee;
  --color-surface-3: #e3e7e1;
  --color-text: var(--color-ink);
  --color-text-muted: #5b665c; /* 6.00:1 on white, 5.33:1 on surface-2 */
  --color-text-subtle: #5b665c;
  --color-border: #e0e5dd;
  --color-border-strong: #c9d1c5;
  --color-overlay: rgb(27 46 28 / 0.45);

  /* ---------- actions and links: primary green ---------- */
  --color-accent: var(--green-700);
  --color-accent-hover: #276b2b; /* white 6.51:1 */
  --color-accent-contrast: #ffffff; /* label on primary green */
  --color-accent-soft: var(--green-100);
  --color-accent-faint: var(--green-50);
  --color-accent-ink: var(--green-800); /* green text on green-100: 6.86:1 */
  --color-accent-line: var(--green-300);
  --color-link: var(--green-700); /* 5.13:1 white, 4.78:1 tint */
  --color-link-hover: var(--green-800);

  /* ---------- selected and "better": leaf green ---------- */
  --color-select: var(--leaf);
  --color-select-hover: var(--leaf-hover);
  --color-select-ink: var(--color-ink); /* 6.88:1 on leaf */
  --color-select-soft: var(--leaf-soft);
  --color-better: var(--color-ink);
  --color-better-soft: var(--leaf-soft); /* ink 12.34:1 */

  /* ---------- warnings: amber, never red ---------- */
  --color-worse: #5c4300;
  --color-worse-soft: #fff1c2; /* 8.24:1 */
  --color-warn: #5c4300;
  --color-warn-soft: #fff1c2;
  --color-risk: #5c4300; /* "Difícil" and destructive actions: dark amber, with a shape and a word */
  --color-risk-soft: #fff1c2;
  --color-ok: var(--color-ink); /* "Probable": ink ring + word, not a brand-green fill */
  --color-ok-soft: var(--green-100);
  --color-info-soft: #f0f2ee;
  --color-focus: #2563c9;
  --color-highlight: #fff6d6;

  /* ---------- course blocks in week grids (bg / ink pairs) ---------- */
  --course-1-bg: #e3edf8; --course-1-ink: #1f3d61;
  --course-2-bg: #e3f1e0; --course-2-ink: #1f5c24;
  --course-3-bg: #f7e8da; --course-3-ink: #6a3a12;
  --course-4-bg: #eee6f5; --course-4-ink: #4a2d6b;
  --course-5-bg: #e6e8f8; --course-5-ink: #2c3580; /* indigo (was maroon #6e2235: read as red) */
  --course-6-bg: #ddf0ee; --course-6-ink: #1d5450;
  --course-7-bg: #f4f0d8; --course-7-ink: #5c5114;
  --course-8-bg: #eceee9; --course-8-ink: #36403a;
  --blocked-bg: #eef0ec;
  --blocked-stripe: #d7dcd3;

  /* ---------- shape ---------- */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 999px;
  --border-width: 1px;

  /* ---------- spacing (4px base) ---------- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --gutter: 1rem;
  --card-pad: 1.25rem;
  --content-max: 72rem;
  --reading-max: 40rem;

  /* ---------- elevation ---------- */
  --shadow-1: 0 1px 2px rgb(27 46 28 / 0.06);
  --shadow-2: 0 2px 8px rgb(27 46 28 / 0.08), 0 1px 2px rgb(27 46 28 / 0.05);
  --shadow-3: 0 16px 40px rgb(27 46 28 / 0.16), 0 2px 8px rgb(27 46 28 / 0.08);

  /* ---------- motion ---------- */
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --duration: 160ms;

  --focus-ring: 0 0 0 3px color-mix(in srgb, var(--color-focus) 45%, transparent);
}

@media (min-width: 48rem) {
  :root { --gutter: 2rem; --card-pad: 1.5rem; }
}

/* Increased contrast (OS setting): darker secondary text and borders. */
@media (prefers-contrast: more) {
  :root {
    --color-text-muted: #3a443b;
    --color-text-subtle: #3a443b;
    --color-border: #b3bcb0;
    --color-border-strong: #87918a;
    --color-accent-line: var(--green-700);
  }
}

/*
  theme-navy-ink: green with navy ink. Uncomment to try it (navy #141e46: 16.11:1 on white,
  7.67:1 on leaf, 13.76:1 on leaf-soft).

:root {
  --color-ink: #141e46;
}
*/
/* Base and shared UI. Uses tokens from theme.css only. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-md);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: var(--leading-tight); margin: 0; text-wrap: balance; }
h1 { font-size: var(--text-3xl); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); }
h2 { font-size: var(--text-2xl); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); }
h3 { font-size: var(--text-lg); font-weight: var(--weight-bold); }
h4 { font-size: var(--text-md); font-weight: var(--weight-bold); }
p { margin: 0; text-wrap: pretty; }
a { color: var(--color-link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--color-link-hover); }
code, kbd, .mono { font-family: var(--font-mono); font-size: 0.92em; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-sm); }
::selection { background: var(--leaf-soft); }
hr { border: 0; border-top: var(--border-width) solid var(--color-border); margin: var(--space-6) 0; }

.visually-hidden {
  position: absolute !important; left: 0; top: 0; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: var(--space-2); top: -3rem; z-index: 100; background: var(--color-surface); padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); }
.skip-link:focus { top: var(--space-2); }

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--content-max); margin-inline: auto; padding-inline: var(--gutter); }
.reading { max-width: var(--reading-max); }
.page { padding-block: var(--space-8) var(--space-16); }
.page-head { display: grid; gap: var(--space-2); margin-bottom: var(--space-8); }
.page-head .lead { color: var(--color-text-muted); font-size: var(--text-lg); max-width: var(--reading-max); }
.eyebrow { font-family: var(--font-mono); font-size: var(--text-xs); font-weight: var(--weight-semibold); text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-text-muted); }
.stack { display: grid; gap: var(--space-4); align-content: start; }
.stack-sm { display: grid; gap: var(--space-2); align-content: start; }
.stack-lg { display: grid; gap: var(--space-8); align-content: start; }
.cluster { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.cluster-between { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; justify-content: space-between; }
.grid-2 { display: grid; gap: var(--space-4); }
.grid-3 { display: grid; gap: var(--space-4); }
@media (min-width: 48rem) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* grid and flex children may shrink below their content (tables scroll inside .table-wrap) */
.stack, .stack-sm, .stack-lg, [class*="layout"] { grid-template-columns: minmax(0, 1fr); }
.stack > *, .stack-sm > *, .stack-lg > *, .grid-2 > *, .grid-3 > *, [class*="layout"] > *, .card { min-width: 0; }
.muted { color: var(--color-text-muted); }
.subtle { color: var(--color-text-subtle); }
.small { font-size: var(--text-sm); }
.xsmall { font-size: var(--text-xs); }
.num { font-variant-numeric: tabular-nums; }
.strong { font-weight: var(--weight-bold); }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.clamp-1, .clamp-2, .clamp-3 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-1 { -webkit-line-clamp: 1; line-clamp: 1; }
.clamp-2 { -webkit-line-clamp: 2; line-clamp: 2; }
.clamp-3 { -webkit-line-clamp: 3; line-clamp: 3; }
.push-end { margin-top: auto; }

/* ---------- surfaces ---------- */
.card {
  background: var(--color-surface);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--card-pad);
  box-shadow: var(--shadow-1);
}
/* cards in a grid line up: same height, footer at the bottom */
.grid-2 > .card, .grid-3 > .card, .cards > .card { display: flex; flex-direction: column; gap: var(--space-3); height: 100%; }
.card-tight { padding: var(--space-4); }
.card-green { background: var(--color-accent-faint); border-color: var(--color-accent-line); }
.card-head { display: flex; justify-content: space-between; gap: var(--space-3); align-items: baseline; flex-wrap: wrap; margin-bottom: var(--space-3); }
.panel { background: var(--color-surface-2); border-radius: var(--radius-md); padding: var(--space-4); }
.panel-green { background: var(--color-accent-faint); border: var(--border-width) solid var(--green-200); border-radius: var(--radius-md); padding: var(--space-4); }
.divider-list > * + * { border-top: var(--border-width) solid var(--color-border); }
.section-green { background: var(--color-accent-faint); border-block: var(--border-width) solid var(--green-200); }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--color-surface);
  --btn-fg: var(--color-text);
  --btn-border: var(--color-border-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 2.75rem; padding: 0 var(--space-5);
  font: inherit; font-weight: var(--weight-bold); font-size: var(--text-md); line-height: 1.2;
  color: var(--btn-fg); background: var(--btn-bg);
  border: 1.5px solid var(--btn-border); border-radius: var(--radius-md);
  cursor: pointer; text-decoration: none; text-align: center;
  transition: background var(--duration) var(--ease), border-color var(--duration) var(--ease), transform var(--duration) var(--ease);
}
.btn:hover { --btn-bg: var(--color-surface-2); color: var(--btn-fg); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-primary { --btn-bg: var(--color-accent); --btn-fg: var(--color-accent-contrast); --btn-border: var(--color-accent); }
.btn-primary:hover { --btn-bg: var(--color-accent-hover); --btn-border: var(--color-accent-hover); }
.btn-soft { --btn-bg: var(--color-surface); --btn-fg: var(--color-link); --btn-border: var(--color-accent); }
.btn-soft:hover { --btn-bg: var(--color-accent-faint); }
/* leaf button: used on the green pass card (ink label 6.88:1; the white ring keeps it visible on dark green) */
.btn-leaf { --btn-bg: var(--color-select); --btn-fg: var(--color-select-ink); --btn-border: #ffffff; }
.btn-leaf:hover { --btn-bg: var(--color-select-hover); --btn-fg: var(--color-select-ink); }
.btn-ghost { --btn-bg: transparent; --btn-border: transparent; }
.btn-ghost:hover { --btn-bg: var(--color-surface-2); }
.btn-danger { --btn-fg: var(--color-risk); --btn-border: color-mix(in srgb, var(--color-risk) 40%, transparent); }
.btn-sm { min-height: 2.75rem; padding: 0 var(--space-4); font-size: var(--text-sm); }
.btn-lg { min-height: 3.25rem; padding: 0 var(--space-6); font-size: var(--text-lg); }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--color-link); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 1.5rem; }
.link-btn:hover { color: var(--color-link-hover); }

/* ---------- forms ---------- */
.field { display: grid; gap: var(--space-1); }
.field > label, .label { font-weight: var(--weight-bold); font-size: var(--text-sm); }
.hint { font-size: var(--text-sm); color: var(--color-text-muted); }
.error-text { font-size: var(--text-sm); color: var(--color-risk); }
.input, .select, .textarea {
  width: 100%; min-height: 2.75rem; padding: var(--space-2) var(--space-3);
  font: inherit; color: var(--color-text); background: var(--color-surface);
  border: 1.5px solid var(--color-border-strong); border-radius: var(--radius-md);
}
.textarea { min-height: 5rem; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--color-focus); box-shadow: var(--focus-ring); }
.input[aria-invalid="true"] { border-color: var(--color-risk); }
.check { display: grid; grid-template-columns: auto 1fr; gap: var(--space-3); align-items: start; cursor: pointer; }
.check input { width: 1.375rem; height: 1.375rem; margin: 0.1rem 0 0; accent-color: var(--color-accent); }
.radio-cards { display: grid; gap: var(--space-2); }
.radio-card { display: flex; gap: var(--space-3); align-items: center; padding: var(--space-3) var(--space-4); border: 1.5px solid var(--color-border-strong); border-radius: var(--radius-md); background: var(--color-surface); cursor: pointer; min-height: 3.25rem; }
.radio-card:has(input:checked) { border-color: var(--color-accent); background: var(--color-accent-faint); }
.radio-card input { accent-color: var(--color-accent); width: 1.25rem; height: 1.25rem; }
.search-row { display: flex; gap: var(--space-2); }
.search-row .input { flex: 1; }

/* segmented control */
.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--color-surface-2); border-radius: var(--radius-pill); border: var(--border-width) solid var(--color-border); }
.seg button { font: inherit; font-size: var(--text-sm); font-weight: var(--weight-bold); border: 0; background: transparent; min-height: 2.5rem; padding: 0 var(--space-4); border-radius: var(--radius-pill); cursor: pointer; color: var(--color-text-muted); }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { background: var(--color-select); color: var(--color-select-ink); }

/* ---------- badges, chips, pills ---------- */
.badge { display: inline-flex; align-items: center; gap: var(--space-1); padding: 0.125rem 0.6rem; border-radius: var(--radius-pill); font-size: var(--text-xs); font-weight: var(--weight-bold); background: var(--color-surface-2); color: var(--color-text-muted); white-space: nowrap; }
.badge-accent { background: var(--color-accent-soft); color: var(--color-accent-ink); }
.badge-solid { background: var(--color-select); color: var(--color-select-ink); }
.badge-ok { background: var(--color-select-soft); color: var(--color-ink); }
.badge-warn { background: var(--color-warn-soft); color: var(--color-warn); }
.badge-risk { background: var(--color-risk-soft); color: var(--color-risk); }
.badge-illus { background: transparent; border: var(--border-width) dashed var(--color-border-strong); color: var(--color-text-muted); font-weight: var(--weight-regular); }
.chip { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 2.75rem; padding: 0 var(--space-4); border-radius: var(--radius-pill); border: 1.5px solid var(--color-border-strong); background: var(--color-surface); font: inherit; font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--color-text); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--color-select); border-color: var(--color-select); color: var(--color-select-ink); }
.chip-remove { border: 0; background: transparent; padding: 0; width: 1.75rem; height: 1.75rem; border-radius: 50%; cursor: pointer; color: var(--color-text-muted); font-size: 1.15rem; line-height: 1; display: inline-grid; place-items: center; }
.chip-remove:hover { background: var(--color-surface-3); }
/* better / worse chips for comparisons: green and amber, never red */
.vs { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.3rem 0.7rem; border-radius: var(--radius-pill); font-size: var(--text-sm); font-weight: var(--weight-semibold); background: var(--color-surface-2); color: var(--color-text); }
.vs::before { font-weight: var(--weight-bold); }
.vs-better { background: var(--color-better-soft); color: var(--color-better); }
.vs-better::before { content: "▲"; font-size: 0.7em; }
.vs-worse { background: var(--color-worse-soft); color: var(--color-worse); }
.vs-worse::before { content: "▼"; font-size: 0.7em; }
.vs-same::before { content: "="; }

/* ---------- alerts ---------- */
.alert { display: grid; gap: var(--space-1); padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); border: var(--border-width) solid var(--color-border); background: var(--color-info-soft); font-size: var(--text-sm); }
.alert-warn { background: var(--color-warn-soft); border-color: color-mix(in srgb, var(--color-warn) 25%, transparent); }
.alert-risk { background: var(--color-risk-soft); border-color: color-mix(in srgb, var(--color-risk) 25%, transparent); }
.alert-ok { background: var(--color-accent-faint); border-color: var(--green-200); color: var(--color-ink); }
.alert strong { font-weight: var(--weight-bold); }
p.alert, span.alert { display: block; }

/* ---------- tables and lists ---------- */
.table-wrap { overflow-x: auto; max-width: 100%; position: relative; } /* position keeps .visually-hidden children inside the scroller */
.table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.table th, .table td { text-align: left; padding: var(--space-3); border-bottom: var(--border-width) solid var(--color-border); vertical-align: top; }
.table th { font-family: var(--font-mono); font-weight: var(--weight-semibold); color: var(--color-text-muted); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.05em; }
.plain-list { list-style: none; margin: 0; padding: 0; }
.steps-list { margin: 0; padding-left: 1.25rem; display: grid; gap: var(--space-2); }
.dot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.dot-list li { position: relative; padding-left: 1.5rem; }
.dot-list li::before { content: ""; position: absolute; left: 0.2rem; top: 0.55rem; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--color-accent); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: var(--space-1) var(--space-4); font-size: var(--text-sm); }
.kv dt { color: var(--color-text-muted); }
.kv dd { margin: 0; }

/* ---------- progress, spinner ---------- */
.progress { height: 0.6rem; background: var(--color-surface-3); border-radius: var(--radius-pill); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--color-accent); border-radius: inherit; transition: width 300ms var(--ease); }
.spinner { width: 1.25rem; height: 1.25rem; border: 2px solid var(--color-surface-3); border-top-color: var(--color-accent); border-radius: 50%; animation: spin 0.8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } * { transition: none !important; } }

/* ---------- risk light: shape and word, never color alone ---------- */
.light { display: inline-flex; align-items: center; gap: 0.35rem; font-size: var(--text-xs); font-weight: var(--weight-bold); white-space: nowrap; }
.light::before { content: ""; width: 0.7rem; height: 0.7rem; border-radius: 50%; background: currentColor; }
.light-verde { color: var(--color-ink); }
.light-verde::before { background: transparent; box-shadow: inset 0 0 0 2px currentColor; }
.light-amarillo { color: var(--color-warn); }
.light-amarillo::before { border-radius: 2px; transform: rotate(45deg) scale(0.85); }
.light-rojo { color: var(--color-risk); }
.light-rojo::before { border-radius: 1px; }

/* ---------- code block ---------- */
.codeblock { display: flex; gap: var(--space-2); align-items: center; background: var(--color-surface-2); border: var(--border-width) solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-2) var(--space-2) var(--space-2) var(--space-3); }
.codeblock code { flex: 1; overflow-x: auto; white-space: nowrap; font-size: var(--text-sm); }

/* ---------- blurred teaser ---------- */
.teaser { position: relative; min-height: 24rem; }
.teaser-content { filter: blur(6px); pointer-events: none; user-select: none; }
.teaser-overlay { position: absolute; inset: 0; display: grid; place-items: center; padding: var(--space-4); }

/* ---------- wordmark (placeholder until the logo is final) ---------- */
.wordmark { font-family: var(--font-display); font-weight: var(--weight-bold); letter-spacing: -0.02em; color: var(--color-text); }
.wordmark em { font-style: normal; color: var(--color-accent); }

/* ---------- the pass card: primary-green ground, white text, leaf button ---------- */
.card-pass { background: var(--color-accent); border: 2px solid var(--color-accent); color: #ffffff; box-shadow: var(--shadow-3); }
.card-pass :is(h2, h3, p, li, .price, .small, .xsmall, .muted) { color: #ffffff; }
.card-pass .dot-list li::before { background: var(--color-select); }
