/* CVAI on Basecoat --------------------------------------------------------
 *
 * Components come from Basecoat (static/vendor/basecoat) — the shadcn/ui
 * design system in plain HTML: .btn, .card, .field, .table, .badge, .alert,
 * .sidebar, .tabs, .empty, .progress, .item, .accordion.
 *
 * This file only does three things, and loads after Basecoat:
 *   1. the theme (shadcn variables): cobalt on a night sidebar, IBM Plex
 *   2. page layout (Basecoat ships no layout utilities)
 *   3. product pieces with no Basecoat equivalent: score readouts, the ranked
 *      shortlist, the marketing site
 *
 * No inline styles anywhere; templates use these classes.
 * ------------------------------------------------------------------------ */

/* ---------------------------------------------------------------- theme */

:root {
  --background: #F5F7FA;
  --foreground: #0B1220;
  --card: #FFFFFF;
  --card-foreground: #0B1220;
  --popover: #FFFFFF;
  --popover-foreground: #0B1220;
  --primary: #2743E6;
  --primary-foreground: #FFFFFF;
  --secondary: #EEF1F6;
  --secondary-foreground: #0B1220;
  --muted: #EEF1F6;
  --muted-foreground: #5A6478;
  --accent: #EEF1FE;
  --accent-foreground: #1C33C0;
  --destructive: #B42318;
  --border: #E2E6ED;
  --input: #D5DBE5;
  --ring: #2743E6;
  --radius: 0.5rem;

  --font-sans: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* the night sidebar */
  --sidebar: #0B1220;
  --sidebar-foreground: #AEB9CF;
  --sidebar-primary: #FFFFFF;
  --sidebar-primary-foreground: #0B1220;
  --sidebar-accent: #18223A;
  --sidebar-accent-foreground: #FFFFFF;
  --sidebar-border: #1E2A40;
  --sidebar-ring: #4D66FF;
  --sidebar-width: 15rem;

  /* product semantics — score bands, never decoration */
  --strong: #0E7A55;   --strong-bg: #E6F4EE;
  --possible: #9A6412; --possible-bg: #FBF2E2;
  --weak: #B42318;     --weak-bg: #FCECEA;

  --night-950: #060A13;
  --night-900: #0B1220;
  --night-700: #1E2A40;
  --night-500: #4A5877;
  --night-300: #9AA6BF;
}

/* Dark surfaces (landing hero, auth panel) re-theme Basecoat components
   by nesting them in .dark, which is how Basecoat scopes dark mode. */
.dark {
  --background: #060A13;
  --foreground: #F2F5FA;
  --card: #111A2B;
  --card-foreground: #F2F5FA;
  --popover: #111A2B;
  --popover-foreground: #F2F5FA;
  --primary: #4D66FF;
  --primary-foreground: #FFFFFF;
  --secondary: #1A2438;
  --secondary-foreground: #F2F5FA;
  --muted: #1A2438;
  --muted-foreground: #9AA6BF;
  --accent: #1A2438;
  --accent-foreground: #FFFFFF;
  --destructive: #F0645A;
  --border: #243149;
  --input: #2A3752;
  --ring: #6F84FF;
  --strong: #6DDDB0;   --strong-bg: rgba(14, 122, 85, 0.2);
  --possible: #F2C46D; --possible-bg: rgba(154, 100, 18, 0.22);
  --weak: #F59C93;     --weak-bg: rgba(180, 35, 24, 0.22);
}

/* Basecoat's components read --color-* aliases that Basecoat declares once on
   :root as var(--card) etc. A custom property resolves where it's declared, so
   overriding --card inside .dark never reached --color-card: the specimen card
   on the night panel stayed white. Redeclaring the aliases on every themed
   scope makes local overrides flow through. */
/* Variables alone don't recolour text that inherits from the page: without
   this the nav, logo and outline buttons on the night hero were dark-on-dark. */
.dark { color: var(--foreground); }

.dark, .site {
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --color-card: var(--card);
  --color-card-foreground: var(--card-foreground);
  --color-popover: var(--popover);
  --color-popover-foreground: var(--popover-foreground);
  --color-primary: var(--primary);
  --color-primary-foreground: var(--primary-foreground);
  --color-secondary: var(--secondary);
  --color-secondary-foreground: var(--secondary-foreground);
  --color-muted: var(--muted);
  --color-muted-foreground: var(--muted-foreground);
  --color-accent: var(--accent);
  --color-accent-foreground: var(--accent-foreground);
  --color-destructive: var(--destructive);
  --color-border: var(--border);
  --color-input: var(--input);
  --color-ring: var(--ring);
}

/* ----------------------------------------------------------------- base */

body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { letter-spacing: -0.015em; text-wrap: balance; }
.mono, .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted-foreground); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
/* Basecoat's reset strips link styling; restore it for links inside text. */
.auth-alt a, .auth-legal a, .alert a, .faq a, .page-head p a, .empty p a {
  color: var(--primary); text-decoration: underline; text-underline-offset: 3px;
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* --------------------------------------------------------------- layout */

.stack { display: grid; gap: 1.5rem; }
.stack-sm { display: grid; gap: 0.75rem; }
.stack-xs { display: grid; gap: 0.375rem; }
.row { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.form { display: grid; gap: 1.25rem; }
.inline-form { display: inline; margin: 0; }

/* app shell: Basecoat's .sidebar + a <main> sibling */
.app-main { min-width: 0; }
.page { max-width: 70rem; margin: 0 auto; padding: 2.5rem 2.5rem 5rem; display: grid; gap: 2rem; }
.page-narrow { max-width: 46rem; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.page-head h1 { font-size: 1.75rem; font-weight: 600; line-height: 1.15; }
.page-head p { color: var(--muted-foreground); margin-top: 0.375rem; max-width: 42rem; }
.back-link { display: inline-flex; align-items: center; gap: 0.25rem; margin-bottom: 0.5rem; font-size: 0.8125rem; color: var(--muted-foreground); text-decoration: none; }
.back-link:hover { color: var(--foreground); }
.back-link svg { width: 14px; height: 14px; }
.mobile-bar { display: none; }

.brand { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.01em; color: inherit; text-decoration: none; }
.brand svg { width: 24px; height: 24px; }

.credit-chip { display: grid; gap: 1px; padding: 0.625rem 0.75rem; border: 1px solid var(--sidebar-border); border-radius: var(--radius); color: var(--sidebar-foreground); text-decoration: none; font-size: 0.8125rem; }
.credit-chip strong { color: var(--sidebar-primary); font-family: var(--font-mono); font-size: 1rem; font-weight: 500; }
.credit-chip:hover { border-color: var(--night-500); }
.account { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; min-width: 0; }
.account .avatar { flex: none; justify-content: center; align-items: center; background: var(--sidebar-accent);
  color: var(--sidebar-primary); font-size: 0.75rem; font-weight: 600; } /* Basecoat avatars expect an <img>; this is the text fallback */
.account-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--sidebar-primary); }
.account a { margin-left: auto; color: var(--sidebar-foreground); font-size: 0.75rem; text-decoration: none; white-space: nowrap; }
.account a:hover { color: var(--sidebar-primary); }

/* --------------------------------------------------------------- scores */

.score {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 3.25rem; padding: 0.25rem 0.5rem;
  border-radius: calc(var(--radius) - 2px);
  font-family: var(--font-mono); font-variant-numeric: tabular-nums;
  font-size: 1.0625rem; font-weight: 500; line-height: 1.3;
}
.score-strong { background: var(--strong-bg); color: var(--strong); }
.score-possible { background: var(--possible-bg); color: var(--possible); }
.score-weak { background: var(--weak-bg); color: var(--weak); }
.score-none { background: var(--muted); color: var(--muted-foreground); }
.score-lg { min-width: 4.5rem; font-size: 1.75rem; padding: 0.375rem 0.75rem; }

.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.dot-open { color: var(--strong); }
.dot-paused { color: var(--possible); }
.dot-closed { color: var(--muted-foreground); }
.dot-busy { color: var(--primary); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.25; } }

/* Basecoat progress: the span's width is set from data-value by app.js,
   keeping inline styles out of the markup. */
.progress[data-tone="strong"] > span { background: var(--strong); }
.progress[data-tone="possible"] > span { background: var(--possible); }
.progress[data-tone="weak"] > span { background: var(--weak); }

/* ----------------------------------------------------------- dashboard */

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); background: var(--card); }
.stats > div { padding: 1.25rem 1.5rem; display: grid; gap: 0.25rem; }
.stats > div + div { border-left: 1px solid var(--border); }
.stat-value { font-family: var(--font-mono); font-size: 1.75rem; line-height: 1.1; color: var(--foreground); font-variant-numeric: tabular-nums; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.search { position: relative; width: min(20rem, 100%); }
.search svg { position: absolute; left: 0.75rem; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--muted-foreground); pointer-events: none; }
.search input { padding-left: 2.25rem; }

.roles tbody tr { position: relative; }
.roles tbody tr:hover { background: var(--muted); }
.role-link { font-weight: 500; color: var(--foreground); text-decoration: none; }
.role-link::after { content: ""; position: absolute; inset: 0; }
.role-link:hover { color: var(--primary); }
.roles .row-action { position: relative; z-index: 1; }
.top-candidate { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.top-candidate span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 12rem; }

/* ------------------------------------------------------------ role page */

.role-layout { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: 2rem; align-items: start; }
.role-side { display: grid; gap: 1.5rem; position: sticky; top: 1.5rem; }
.facts { display: grid; gap: 0.75rem; margin: 0; font-size: 0.875rem; }
.facts > div { display: flex; justify-content: space-between; gap: 1rem; }
.facts dt { color: var(--muted-foreground); }
.facts dd { margin: 0; font-weight: 500; text-align: right; }
.criteria-text { max-height: 14rem; overflow: auto; font-size: 0.8125rem; line-height: 1.6; color: var(--muted-foreground); white-space: pre-wrap; }

.dropzone {
  position: relative; display: grid; gap: 0.375rem; align-content: start;
  padding: 1.25rem;
  border: 1.5px dashed var(--input); border-radius: var(--radius);
  background: var(--card); cursor: pointer;
  transition: border-color 120ms ease, background-color 120ms ease;
}
.dropzone:hover, .dropzone.is-over { border-color: var(--primary); background: var(--accent); }
.dropzone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone svg { width: 24px; height: 24px; color: var(--primary); }
.dropzone strong { font-weight: 500; }
.dropzone small { color: var(--muted-foreground); font-size: 0.8125rem; }
.dropzone ul { margin: 0.25rem 0 0; padding: 0; list-style: none; font-size: 0.8125rem; display: grid; gap: 1px; }
.dropzone li { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.grading { display: grid; gap: 0.75rem; }

/* the ranked shortlist: Basecoat accordion with a richer summary row */
.shortlist details { background: var(--card); }
.shortlist summary { gap: 1rem; text-decoration: none; }
/* Basecoat underlines accordion triggers on hover; in a data row that underlines
   every score, so only the name reacts. */
.shortlist summary:hover { text-decoration: none; }
.shortlist summary:hover .candidate-name { text-decoration: underline; text-underline-offset: 3px; }
.candidate-row { flex: 1; min-width: 0; display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto auto; align-items: center; gap: 1rem; }
.candidate-rank { font-family: var(--font-mono); font-size: 0.875rem; color: var(--muted-foreground); }
.candidate-who { display: grid; gap: 1px; min-width: 0; }
.candidate-name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.candidate-line { font-size: 0.8125rem; font-weight: 400; color: var(--muted-foreground); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.candidate-parts { display: flex; gap: 1rem; font-size: 0.75rem; font-weight: 400; color: var(--muted-foreground); }
.candidate-parts b { font-family: var(--font-mono); font-weight: 500; font-size: 0.875rem; color: var(--foreground); margin-left: 0.25rem; }
.candidate-body { display: grid; gap: 1.5rem; padding-left: 3rem; }

.findings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.findings h4 { font-size: 0.8125rem; font-weight: 600; margin-bottom: 0.5rem; }
.findings ul { margin: 0; padding-left: 1rem; list-style: disc; display: grid; gap: 0.25rem; font-size: 0.875rem; }

.checklist { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.625rem; }
.checklist li { display: grid; grid-template-columns: 1.125rem 1fr; gap: 0.75rem; font-size: 0.875rem; }
.checklist svg { width: 18px; height: 18px; margin-top: 1px; }
.checklist .met { color: var(--strong); }
.checklist .partial { color: var(--possible); }
.checklist .not_met { color: var(--weak); }
.checklist q { display: block; margin-top: 0.125rem; font-size: 0.8125rem; color: var(--muted-foreground); }

.breakdown { display: grid; gap: 0.75rem; }
.breakdown > div { display: grid; grid-template-columns: 11rem minmax(0, 1fr) 4rem; align-items: center; gap: 1rem; font-size: 0.8125rem; }
.breakdown .num { text-align: right; }

/* ------------------------------------------------------------- billing */

/* Basecoat textareas size to their content, which ignores rows=; a whole job
   advert needs room from the start. */
.field > textarea.criteria-input { min-height: 16rem; }

.balance { display: flex; align-items: baseline; gap: 0.75rem; }
.balance-value { font-family: var(--font-mono); font-size: 3rem; line-height: 1; }

/* ---------------------------------------------------------------- auth */

.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; background: var(--card); }
.auth-panel { display: flex; flex-direction: column; justify-content: space-between; gap: 2.5rem; padding: 2.5rem 3rem; }
.auth-form { width: 100%; max-width: 24rem; margin: 0 auto; display: grid; gap: 1.5rem; }
.auth-form h1 { font-size: 1.75rem; font-weight: 600; }
.auth-form > p { color: var(--muted-foreground); }
.auth-alt { font-size: 0.875rem; color: var(--muted-foreground); }
.auth-legal { font-size: 0.75rem; color: var(--muted-foreground); }
.divider { display: flex; align-items: center; gap: 0.75rem; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-foreground); }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.auth-night { display: flex; flex-direction: column; justify-content: flex-end; gap: 2rem; padding: 3rem; }
.auth-night figure { margin: 0; display: grid; gap: 0.75rem; }
.auth-night blockquote { margin: 0; max-width: 30rem; font-size: 1.375rem; line-height: 1.4; color: var(--foreground); }
.auth-night figcaption { color: var(--muted-foreground); font-size: 0.875rem; }
.code-input { font-family: var(--font-mono); font-size: 1.75rem; letter-spacing: 0.4em; text-align: center; }

/* ----------------------------------------------------------- marketing */

.site { --background: #FFFFFF; background: var(--background); }
.wrap { max-width: 75rem; margin: 0 auto; padding: 0 2.5rem; }

.site-nav { position: absolute; inset: 0 0 auto; z-index: 10; }
.site-nav-inner { display: flex; align-items: center; justify-content: space-between; height: 4.5rem; }
.site-nav-links { display: flex; align-items: center; gap: 0.25rem; }
.site-nav-solid { position: static; border-bottom: 1px solid var(--border); background: var(--card); }

/* The one flourish: a static night sky over a cobalt horizon. */
.starfield {
  background-color: var(--night-950);
  background-image:
    radial-gradient(1px 1px at 12% 22%, rgba(255, 255, 255, 0.9) 50%, transparent 51%),
    radial-gradient(1px 1px at 27% 68%, rgba(207, 216, 255, 0.8) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 41% 14%, rgba(255, 255, 255, 0.9) 50%, transparent 51%),
    radial-gradient(1px 1px at 58% 41%, rgba(255, 255, 255, 0.6) 50%, transparent 51%),
    radial-gradient(1px 1px at 73% 18%, rgba(207, 216, 255, 0.8) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 86% 57%, rgba(255, 255, 255, 0.7) 50%, transparent 51%),
    radial-gradient(1px 1px at 93% 9%, rgba(255, 255, 255, 0.9) 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 83%, rgba(207, 216, 255, 0.7) 50%, transparent 51%),
    radial-gradient(1px 1px at 35% 38%, rgba(255, 255, 255, 0.5) 50%, transparent 51%),
    radial-gradient(1px 1px at 64% 76%, rgba(255, 255, 255, 0.6) 50%, transparent 51%);
  background-size: 480px 420px;
}
.hero { position: relative; overflow: hidden; isolation: isolate; padding: 10.5rem 0 6rem; }
.hero::after {
  content: ""; position: absolute; z-index: -1;
  left: 50%; bottom: -74rem; width: 138rem; height: 88rem; transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(39, 67, 230, 0.34), rgba(39, 67, 230, 0.06) 70%, transparent);
  box-shadow: 0 -1px 0 rgba(160, 178, 255, 0.35);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 4rem; align-items: center; }
.hero h1 { font-size: 3.75rem; font-weight: 500; line-height: 1.04; letter-spacing: -0.03em; color: var(--foreground); }
.hero .eyebrow { display: block; margin-bottom: 1.25rem; color: #C9D2FB; }
.hero-lede { margin-top: 1.5rem; max-width: 34rem; font-size: 1.125rem; color: var(--muted-foreground); }
.hero-actions { margin-top: 2rem; display: flex; gap: 0.75rem; flex-wrap: wrap; }
.hero-note { margin-top: 1rem; font-size: 0.8125rem; color: var(--night-500); }

/* The product, shown not described: a ranked shortlist in a Basecoat card. */
.specimen { box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8); }
.specimen ol { margin: 0; padding: 0; list-style: none; }
.specimen li { display: grid; grid-template-columns: 1.5rem 1fr auto; align-items: center; gap: 0.75rem; padding: 0.75rem 0; font-size: 0.875rem; }
.specimen li + li { border-top: 1px solid var(--border); }
.specimen .rank { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--muted-foreground); }
.specimen .why { display: block; font-size: 0.75rem; color: var(--muted-foreground); }

.section { padding: 6rem 0; }
.section-tint { background: var(--muted); }
.section-head { display: grid; gap: 1rem; max-width: 44rem; margin-bottom: 3rem; }
.section-head h2 { font-size: 2.25rem; font-weight: 600; line-height: 1.12; }
.section-head p { font-size: 1.125rem; color: var(--muted-foreground); }

.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; counter-reset: step; }
.steps li { display: grid; gap: 0.75rem; align-content: start; padding-top: 1.25rem; border-top: 1px solid var(--foreground); counter-increment: step; }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--font-mono); font-size: 0.8125rem; color: var(--primary); }
.steps h3 { font-size: 1.375rem; font-weight: 600; }
.steps p { color: var(--muted-foreground); }

.personas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.ticks { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.75rem; }
.ticks li { display: grid; grid-template-columns: 1.125rem 1fr; gap: 0.75rem; }
.ticks svg { width: 18px; height: 18px; margin-top: 3px; color: var(--primary); }

.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--border); }
.principles > div { display: grid; gap: 0.75rem; align-content: start; padding: 2rem 2rem 2rem 0; }
.principles > div + div { padding-left: 2rem; border-left: 1px solid var(--border); }
.principles svg { width: 22px; height: 22px; color: var(--primary); }
.principles h3 { font-size: 1.125rem; font-weight: 600; }
.principles p { font-size: 0.875rem; color: var(--muted-foreground); }

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: stretch; }
.plans .card { height: 100%; }
.plans .card > footer, .grid-2 > .card > footer { margin-top: auto; } /* line the buttons up */
.plan-featured { outline: 2px solid var(--foreground); outline-offset: -1px; }
.plan-price { display: flex; align-items: baseline; gap: 0.5rem; }
.plan-amount { font-size: 3rem; font-weight: 500; letter-spacing: -0.03em; line-height: 1; }

.faq { max-width: 52rem; }
.cta-band { padding: 5rem 0; }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { font-size: 2.25rem; font-weight: 500; color: var(--foreground); }

.site-footer { padding: 2.5rem 0; border-top: 1px solid var(--border); font-size: 0.8125rem; color: var(--muted-foreground); }
.site-footer-inner { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--foreground); }

/* ----------------------------------------------------------- responsive */

@media (max-width: 1080px) {
  .hero-grid, .role-layout { grid-template-columns: 1fr; }
  .role-side { position: static; }
  .hero h1 { font-size: 3rem; }
  .plans { grid-template-columns: 1fr; max-width: 30rem; }
  .principles { grid-template-columns: 1fr; }
  .principles > div, .principles > div + div { padding: 1.5rem 0; border-left: 0; border-top: 1px solid var(--border); }
}

@media (max-width: 860px) {
  .mobile-bar { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 1rem; background: var(--sidebar); color: var(--sidebar-primary); }
  .page { padding: 1.5rem 1rem 4rem; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats > div:nth-child(3) { border-left: 0; }
  .stats > div:nth-child(n+3) { border-top: 1px solid var(--border); }
  .grid-2, .findings, .personas, .steps { grid-template-columns: 1fr; }
  .candidate-row { grid-template-columns: 1.75rem minmax(0, 1fr) auto; }
  .candidate-parts { display: none; }
  .candidate-body { padding-left: 0; }
  .breakdown > div { grid-template-columns: 1fr 4rem; }
  .breakdown .progress { grid-column: 1 / -1; order: 3; }
  .auth { grid-template-columns: 1fr; }
  .auth-night { display: none; }
  .auth-panel { padding: 1.5rem 1rem; }
  .wrap { padding: 0 1rem; }
  .hide-sm { display: none; }
  .hero { padding-top: 8rem; }
  .hero h1 { font-size: 2.25rem; }
  .section { padding: 4rem 0; }
  .section-head h2, .cta-band h2 { font-size: 1.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ------------------------------------------------------------ helpers */
.w-full { width: 100%; }
.text-center { text-align: center; }
.text-end { text-align: end; }
.btn svg { flex: none; }
