/* Plabity - flat design system with soft rounding.
   Principles: solid colours only, zero shadows, zero gradients, colour-coded
   state through solid fills. Visual hierarchy comes from typography weight
   and colour block contrast, not depth. Corners: use the --radius /
   --radius-sm tokens (defined in the soft-radius pass at the END of this
   file, which wins the cascade) - never per-component radius values. */

:root {
  /* Surfaces */
  --bg: #ffffff;
  --bg-2: #f8fafc;
  --bg-3: #f1f5f9;

  /* Ink */
  --ink: #0a1224;
  --ink-2: #2d3748;
  --ink-3: #64748b;
  --ink-4: #94a3b8;

  --rule: #e2e8f0;
  --rule-strong: #cbd5e1;

  /* Brand */
  --accent: #1e3a8a;
  --accent-2: #1e40af;
  --accent-deep: #0c1d4d;
  --accent-ink: #ffffff;

  /* State */
  --good: #166534;
  --warn: #b45309;
  --bad:  #991b1b;

  /* Geometry */
  --container: 1200px;
  --container-narrow: 920px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

/* Sticky-footer: on short pages (paywall, simple confirmations) the body grows
   to fill the viewport so the footer sits at the bottom instead of floating
   halfway up the screen with whitespace below it. */
body { display: flex; flex-direction: column; min-height: 100vh; }
body > main { flex: 1 0 auto; }
body > .site-footer { flex-shrink: 0; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); text-decoration: none; }

p { margin: 0 0 12px; }

/* ---------- Header ---------- */

.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.logo:hover { text-decoration: none; color: var(--ink); }

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--ink);
  color: white;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
}

.primary-nav {
  display: flex;
  gap: 28px;
  margin-left: 16px;
  flex: 1;
}

.primary-nav a {
  position: relative;
  display: inline-block;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  padding-bottom: 2px;
}

/* Oxford-style slide-in underline */
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}

.primary-nav a:hover {
  color: var(--ink);
  text-decoration: none;
}

.primary-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* "New" badge on nav items */
.nav-new {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--accent);
  color: #fff;
  padding: 2px 5px;
  margin-left: 5px;
  vertical-align: middle;
}

/* Specialties dropdown (desktop nav mega-menu) */
.nav-dropdown { position: relative; display: inline-flex; align-items: center; }
.nav-dropdown-toggle {
  appearance: none;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.nav-dropdown-toggle:hover { color: var(--ink); }
.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 16px);
  left: 0;
  width: 520px;
  background: var(--bg);
  border: 1px solid var(--rule);
  padding: 16px;
  z-index: 200;
}
.nav-dropdown-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px 24px;
}
.nav-dropdown-panel li a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 8px;
  font-size: 13px;
  color: var(--ink-2);
  text-decoration: none;
}
.nav-dropdown-panel li a:hover { background: var(--bg-2); color: var(--ink); }
.nav-dropdown-panel li a span { color: var(--ink-3); }
.nav-dropdown-heading {
  margin: 12px 0 6px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.nav-dropdown-all {
  display: block;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.nav-dropdown-all:hover { color: var(--accent-2); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

@media (max-width: 720px) {
  .primary-nav { display: none; }
  .header-inner { padding: 12px 16px; gap: 12px; }
  .header-actions .btn-ghost { display: none; }
}

/* ---------- Main / layout ----------
   Default: 1120px container with vertical padding - for internal pages.
   Marketing pages (body.marketing) bypass this so sections can full-bleed. */

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 24px 96px;
  background: var(--bg);
}

body.marketing main {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container.narrow { max-width: var(--container-narrow); }

h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  color: var(--ink);
}

h3 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  margin: 24px 0 12px;
}

/* ---------- Scenario picker ---------- */

.scenario-intro {
  color: var(--ink-2);
  max-width: 640px;
  margin: 0 0 28px;
  font-size: 14px;
}

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2px;
  background: var(--rule);
  padding: 2px;
}

.scenario-card {
  background: var(--bg);
  padding: 20px 22px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background 0.1s;
}

.scenario-card:hover {
  background: var(--ink);
  color: white;
}

.scenario-card:hover .number,
.scenario-card:hover .meta { color: var(--ink-4); }

.scenario-card:hover .tag { background: white; color: var(--ink); }

.scenario-card .row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.scenario-card .tag {
  font-size: 11px;
  background: var(--bg-2);
  color: var(--ink-2);
  padding: 3px 8px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.scenario-card .number {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.scenario-card .title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  color: inherit;
}

.scenario-card .meta {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: auto;
  font-weight: 500;
}

/* ---------- Buttons ---------- */

.btn {
  appearance: none;
  background: var(--accent);
  color: var(--accent-ink);
  border: none;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  line-height: 1.4;
  letter-spacing: 0.01em;
  transition: background 0.1s;
}

.btn:hover { background: var(--accent-2); color: var(--accent-ink); }

.btn:focus-visible {
  outline: 3px solid #ffdd00;
  outline-offset: 0;
}

.btn:disabled {
  background: var(--bg-3);
  color: var(--ink-4);
  cursor: not-allowed;
}

.btn.danger {
  background: var(--bad);
  color: white;
}

.btn.danger:hover { background: #7f1d1d; color: white; }

.btn.ghost {
  background: var(--bg);
  color: var(--ink);
  border: 2px solid var(--ink);
  padding: 9px 20px;
}

.btn.ghost:hover { background: var(--ink); color: white; }

/* ---------- Station page ---------- */

.station-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 2px;
  background: var(--rule);
  padding: 0;
  margin-top: 8px;
}

/* Right column now stacks Patient card on top of Live transcript. The 2px
   flex gap reveals the parent's rule background, matching the hairline
   between the left and right grid columns. */
.station-right-stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.patient-card { padding: 20px 28px; }
.patient-card h3 { margin-top: 0; }
.patient-body-language {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
}

@media (max-width: 980px) {
  .station-grid { grid-template-columns: 1fr; }
}

.panel {
  background: var(--bg);
  padding: 26px 28px;
}

.task-card .field {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--bg-2);
}

.task-card .field:first-child { padding-top: 0; }
.task-card .field:last-child { border-bottom: none; padding-bottom: 0; }

.task-card .field-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  font-weight: 600;
}

.task-card .field-value {
  font-size: 15px;
  color: var(--ink);
}

.controls {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 2px solid var(--ink);
}

.timer {
  font-family: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  margin-left: auto;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.timer.warning { color: var(--warn); }
.timer.critical { color: var(--bad); }

.station-hint {
  color: var(--ink-3);
  font-size: 13px;
  margin-top: 16px;
  line-height: 1.5;
}

/* ---------- Status indicator ---------- */

.status {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: white;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  background: var(--ink-3);
}

.status .dot {
  width: 8px; height: 8px;
  background: white;
  flex-shrink: 0;
}

.status.connecting { background: var(--warn); }
.status.live       { background: var(--good); }
.status.error      { background: var(--bad); }

/* ---------- Transcript ---------- */

.transcript {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 60vh;
  overflow-y: auto;
}

.turn {
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.5;
  word-wrap: break-word;
  background: var(--bg-2);
}

.turn.candidate { background: var(--accent); color: white; }
.turn.candidate .role { color: rgba(255,255,255,0.7); }

.turn.patient { background: var(--bg-2); color: var(--ink); }
.turn.patient .role { color: var(--ink-3); }

.turn.examiner { background: var(--ink); color: white; }
.turn.examiner .role { color: var(--ink-4); }

/* Synthetic transcript line emitted when the findings panel is shown. */
.turn.system {
  background: transparent;
  color: var(--ink-3);
  text-align: center;
  font-size: 12px;
  font-style: italic;
  padding: 8px 14px;
  letter-spacing: 0.02em;
}
.turn.system .role { display: none; }

.turn .role {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
  font-weight: 600;
}

.transcript:empty::after,
.transcript.empty::after {
  content: "Waiting for first turn.";
  color: var(--ink-4);
  font-size: 13px;
  padding: 28px 4px;
  display: block;
  text-align: center;
}

/* ---------- Feedback page ---------- */

.feedback-loading, .feedback-error {
  text-align: center;
  padding: 80px 0;
  color: var(--ink-3);
  font-size: 14px;
}

.feedback-loading::after {
  content: "";
  display: block;
  margin: 16px auto 0;
  width: 32px; height: 32px;
  border: 4px solid var(--bg-3);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.overall-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin: 8px 0 24px;
  background: var(--rule);
  padding: 0;
}

.overall-bar .domain {
  padding: 22px 22px;
  background: var(--bg);
}

.overall-bar .domain h4 {
  margin: 0 0 12px;
  font-size: 11px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.overall-bar .domain .band {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
}

.overall-bar .domain .pct {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

.overall-bar .domain.band-4 { background: var(--good); }
.overall-bar .domain.band-4 h4,
.overall-bar .domain.band-4 .band,
.overall-bar .domain.band-4 .pct { color: white; }

.overall-bar .domain.band-3 { background: var(--bg); }
.overall-bar .domain.band-3 .band { color: var(--good); }

.overall-bar .domain.band-2 { background: var(--warn); }
.overall-bar .domain.band-2 h4,
.overall-bar .domain.band-2 .band,
.overall-bar .domain.band-2 .pct { color: white; }

.overall-bar .domain.band-1 { background: var(--bad); }
.overall-bar .domain.band-1 h4,
.overall-bar .domain.band-1 .band,
.overall-bar .domain.band-1 .pct { color: white; }

.global-rating {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: white;
}

.global-rating.Pass       { background: var(--good); }
.global-rating.Borderline { background: var(--warn); }
.global-rating.Fail       { background: var(--bad); }

.feedback-section {
  background: var(--bg);
  padding: 24px 28px;
  margin-bottom: 2px;
}

.feedback-section h3 {
  margin: 0 0 12px;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 700;
}

.feedback-section ul { padding-left: 20px; margin: 0; }
.feedback-section li { margin-bottom: 6px; }
.feedback-section li:last-child { margin-bottom: 0; }

.rubric-domain {
  background: var(--bg);
  margin-bottom: 2px;
}

.rubric-domain summary {
  cursor: pointer;
  padding: 14px 20px;
  font-weight: 600;
  font-size: 14px;
  list-style: none;
  background: var(--ink);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rubric-domain summary::-webkit-details-marker { display: none; }
.rubric-domain summary::after {
  content: "+";
  font-weight: 400;
  font-size: 18px;
  line-height: 1;
}
.rubric-domain[open] summary::after { content: "−"; }

.rubric-domain .summary-text {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.rubric-domain .summary-text .pct {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-4);
  font-variant-numeric: tabular-nums;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.rubric-item {
  padding: 12px 20px;
  font-size: 13px;
  position: relative;
  padding-left: 44px;
  border-bottom: 1px solid var(--bg-2);
}

.rubric-item:last-child { border-bottom: none; }

/* Solid colour block on the left for state */
.rubric-item::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 14px;
  width: 14px;
  height: 14px;
}

.rubric-item.full::before    { background: var(--good); }
.rubric-item.partial::before { background: var(--warn); }
.rubric-item.missed::before  { background: var(--bad); }

.rubric-item .criterion {
  font-weight: 500;
  color: var(--ink);
}

.rubric-item .criterion .weight {
  color: var(--ink-4);
  font-weight: 500;
  font-size: 11px;
  margin-left: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.rubric-item .evidence {
  color: var(--ink-2);
  font-style: italic;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.45;
  padding-left: 10px;
  border-left: 3px solid var(--bg-3);
}

.rubric-item .note {
  color: var(--ink-3);
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.45;
}

.safety-alert {
  background: var(--bad);
  color: white;
  padding: 16px 20px;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.5;
}

.safety-alert strong { font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 11px; display: block; margin-bottom: 4px; }

.feedback-actions {
  margin-top: 28px;
  display: flex;
  gap: 2px;
}

/* ============================================================
   BUTTON SIZE + VARIANT EXTENSIONS
   ============================================================ */

.btn.sm {
  padding: 8px 14px;
  font-size: 13px;
}

.btn.lg {
  padding: 16px 32px;
  font-size: 16px;
}

.btn.ghost.sm { padding: 6px 12px; border-width: 1px; }

/* ============================================================
   MARKETING - hero
   ============================================================ */

.hero {
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  padding: 96px 24px 80px;
}

.hero-content {
  max-width: var(--container);
  margin: 0 auto;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--bg-3);
  padding: 6px 12px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 24px;
  max-width: 14ch;
}

.hero-lead {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 0 36px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

/* Search-first hero variant (home): no photo, centred column, search as
   the centrepiece. Scoped under .hero-center so practice-partner's
   hero-grid layout is untouched. */
/* Google-style breathing room: the search is the only loud element, so
   the section gets generous symmetric padding. The bottom padding also
   absorbs the trust bar's -28px overlap. */
/* overflow:hidden on .hero-home clips the open search dropdown at the
   section edge, and the trust bar below (position:relative; z-index:2)
   paints over what remains. The centred variant lets the dropdown escape
   and lifts the hero's stacking context above the trust bar. */
/* overflow-x clip (not hidden: hidden creates a scroll container and would
   clip the dropdown vertically too) contains the decor circles that sit at
   right:-180px, while vertical overflow stays visible so the open search
   dropdown can extend past the section into the page below. */
.hero-home.hero-center { padding: 96px 24px 96px; overflow: visible; overflow-x: clip; }
.hero-home.hero-center .hero-inner { position: relative; z-index: 5; }
.hero-quiet-links { margin: 34px 0 0; font-size: 15px; }
.hero-quiet-links a { color: var(--accent); font-weight: 600; }
.hero-quiet-links a:hover { text-decoration: underline; }
.hero-quiet-sep { color: var(--ink-3); margin: 0 12px; }
.hero-center .hero-inner { display: block; }
.hero-center-content {
  max-width: none;
  margin: 0 auto;
  text-align: center;
}
/* .hero-home.hero-center beats the later .hero-home rules (line ~3890)
   that reset margin to `0 0 22px` and would un-centre the blocks. */
.hero-home.hero-center .hero-title { max-width: none; margin: 0 auto 22px; text-wrap: initial; }
.hero-home.hero-center .hero-lead { max-width: none; margin: 0 auto 28px; }
.hero-center .hero-cta { justify-content: center; }
.hero-center .hero-search {
  max-width: none;
  margin: 0 auto 20px;
  text-align: left;
}
.hero-center .hero-search-bar { height: 72px; border-width: 3px; }
.hero-center .hero-search-bar input { font-size: 19px; }
.hero-center .hero-search-bar > svg { width: 24px; height: 24px; margin-left: 20px; }
.hero-center .hero-search-go { font-size: 17px; font-weight: 700; padding: 0 32px; }
.hero-center .hero-search-results { border-width: 3px; border-top: 0; }

.hero-search-box { position: relative; }

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin-top: 14px;
}
.hero-chips-label { font-size: 13px; color: var(--ink-3); }
.hero-chip {
  background: #fff;
  border: 1px solid var(--accent);
  color: var(--accent);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  padding: 7px 14px;
  cursor: pointer;
}
.hero-chip:hover { background: var(--accent); color: #fff; }

.hero-stats-strip {
  display: flex;
  max-width: 720px;
  margin: 0 auto 32px;
  background: #fff;
  border: 1px solid var(--rule);
  text-align: center;
}
.hero-stat { flex: 1; padding: 18px 10px; border-right: 1px solid var(--rule); }
.hero-stat:last-child { border-right: 0; }
.hero-stat b {
  display: block;
  font-size: 26px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.hero-stat span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.hero-center .hero-pill { margin-top: 4px; }
@media (max-width: 700px) {
  .hero-center .hero-search-bar { height: 58px; }
  .hero-center .hero-search-bar input { font-size: 16px; }
  .hero-center .hero-search-go { font-size: 15px; padding: 0 18px; }
  .hero-stats-strip { flex-wrap: wrap; }
  .hero-stat { flex: 1 1 45%; border-bottom: 1px solid var(--rule); }
}

/* Hero station search. Flat: 2px accent border, attached solid button,
   dropdown continues the border. Positioned so the open dropdown overlays
   the CTAs instead of pushing them down. */
.hero-search { position: relative; max-width: 560px; margin: 0 0 18px; }
.hero-search-bar {
  display: flex;
  align-items: center;
  background: #fff;
  border: 2px solid var(--accent);
  height: 56px;
}
.hero-search-bar > svg { flex: 0 0 auto; margin: 0 10px 0 16px; color: var(--accent); }
.hero-search-bar input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 16.5px;
  color: var(--ink);
}
.hero-search-bar input::placeholder { color: var(--ink-3); }
.hero-search-bar input::-webkit-search-cancel-button { display: none; }
.hero-search-kbd {
  flex: 0 0 auto;
  margin-right: 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  border: 1px solid var(--rule);
  background: var(--bg-2);
  padding: 2px 8px;
}
.hero-search-go {
  flex: 0 0 auto;
  height: 100%;
  border: 0;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 0 22px;
  cursor: pointer;
}
.hero-search-go:hover { background: var(--accent-2); }
.hero-search-results {
  position: absolute;
  left: 0; right: 0; top: 100%;
  z-index: 30;
  background: #fff;
  border: 2px solid var(--accent);
  border-top: 0;
}
.hero-search-result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
}
.hero-search-result span:first-child {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hero-search-result.is-active { background: var(--accent); color: #fff; }
.hero-search-tag {
  flex: 0 0 auto;
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--bg-2);
  color: var(--ink-2);
  padding: 3px 8px;
  white-space: nowrap;
}
.hero-search-result.is-active .hero-search-tag { background: #fff; color: var(--accent); }
.hero-search-all {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  border: 0;
  background: var(--bg-2);
  color: var(--accent);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 16px;
  cursor: pointer;
  text-align: left;
}
.hero-search-all:hover { background: var(--accent); color: #fff; }
@media (max-width: 560px) {
  .hero-search-kbd { display: none; }
  .hero-search-bar { height: 52px; }
  .hero-search-go { padding: 0 16px; }
}

.hero-stats {
  font-size: 14px;
  color: var(--ink-3);
  margin: 0;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.hero-stats span { white-space: nowrap; }
.hero-stats .sep { color: var(--ink-4); }

.hero-stats strong {
  color: var(--ink);
  font-weight: 600;
}

/* ============================================================
   MARKETING - section primitives
   ============================================================ */

.section {
  padding: 96px 24px;
  border-bottom: 1px solid var(--rule);
}
.section.tinted { background: var(--bg-2); }
.section-inner { max-width: var(--container); margin: 0 auto; }

.section-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
}

.section-title {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 56px;
}

/* ============================================================
   MARKETING - features grid
   ============================================================ */

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

@media (max-width: 760px) {
  .features-grid { grid-template-columns: 1fr; }
}

.feature {
  background: var(--bg);
  padding: 40px 36px;
}

.feature-num {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  margin-bottom: 20px;
}

.feature-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 12px;
  text-transform: none;
}

.feature p {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

/* ============================================================
   MARKETING - how it works
   ============================================================ */

.how-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.how-list li {
  background: var(--bg);
  padding: 28px 32px;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  align-items: start;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--ink);
  color: white;
  font-weight: 700;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}

.how-list h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin: 6px 0 6px;
  text-transform: none;
  letter-spacing: -0.01em;
}

.how-list p {
  color: var(--ink-2);
  font-size: 15px;
  margin: 0;
  line-height: 1.55;
}

/* ============================================================
   MARKETING - CTA strip (dark)
   ============================================================ */

.cta-strip {
  background: var(--ink);
  color: white;
  padding: 80px 24px;
  text-align: center;
}

.cta-strip h2 {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: white;
  margin: 0 0 12px;
}

.cta-strip p {
  color: var(--ink-4);
  font-size: 17px;
  max-width: 52ch;
  margin: 0 auto 32px;
}

.cta-strip .btn {
  background: white;
  color: var(--ink);
}
.cta-strip .btn:hover { background: var(--bg-3); color: var(--ink); }

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: var(--accent-deep);
  color: #cbd5e1;
  padding: 64px 24px 32px;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .footer-brand-col { grid-column: 1 / -1; }
}

.footer-brand {
  display: inline-block;
  color: white;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.footer-brand:hover { text-decoration: none; color: white; }

.footer-tagline {
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 14px;
  max-width: 48ch;
}

.footer-microtag {
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
  max-width: 48ch;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: white;
  margin: 0 0 16px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 400;
}
.footer-col a:hover { color: white; text-decoration: none; }

.footer-bottom {
  padding-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-copy {
  font-size: 13px;
  color: #94a3b8;
  margin: 0;
}

.footer-disclaimer {
  font-size: 12px;
  color: #64748b;
  line-height: 1.55;
  margin: 0;
}
.footer-disclaimer em { font-style: italic; color: #94a3b8; }

/* ============================================================
   PROSE / SECTION LEAD
   ============================================================ */

.section-lead {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--ink-2);
  margin: -32px 0 56px;
  max-width: 80ch;
  line-height: 1.6;
}

.prose {
  max-width: 64ch;
}
.prose p { color: var(--ink-2); margin: 0 0 18px; font-size: 16px; line-height: 1.7; }
.prose .lead-text { font-size: 19px; color: var(--ink); line-height: 1.55; }

/* ============================================================
   STATION LIBRARY GRID
   ============================================================ */

.library-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-bottom: 32px;
}

@media (max-width: 960px) {
  .library-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .library-grid { grid-template-columns: 1fr; }
}

.library-card {
  background: var(--bg);
  padding: 28px 28px 24px;
}

.library-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 4px;
  text-transform: none;
  letter-spacing: -0.01em;
}

.library-count {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
}

.library-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.library-card li {
  font-size: 14px;
  color: var(--ink-2);
  padding-left: 14px;
  position: relative;
}

.library-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 1px;
  background: var(--ink-4);
}

.library-cta {
  text-align: center;
  margin: 32px 0 0;
}

/* ============================================================
   MARK SCHEME GRID
   ============================================================ */

.mark-scheme-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

@media (max-width: 760px) {
  .mark-scheme-grid { grid-template-columns: 1fr; }
}

.mark-domain {
  background: var(--bg);
  padding: 32px;
}

.mark-domain h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 12px;
  text-transform: none;
  letter-spacing: -0.01em;
}

.mark-domain p {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

.safety-callout {
  margin-top: 24px;
  padding: 24px 28px;
  background: var(--ink);
  color: white;
}

.safety-callout h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fca5a5;
  margin: 0 0 10px;
}

.safety-callout p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #e2e8f0;
}

.safety-callout strong { color: white; }

.band-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 32px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

@media (max-width: 760px) {
  .band-row { grid-template-columns: repeat(2, 1fr); }
}

.band-row .band {
  padding: 14px 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
  background: var(--bg);
}

.band-row .band.band-4 { background: #166534; color: white; }
.band-row .band.band-3 { background: #15803d; color: white; }
.band-row .band.band-2 { background: #b45309; color: white; }
.band-row .band.band-1 { background: #991b1b; color: white; }

/* ============================================================
   COMPARISON TABLE
   ============================================================ */

.compare-wrap {
  overflow-x: auto;
  border: 1px solid var(--rule);
}

.compare {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg);
  font-size: 14px;
  min-width: 720px;
}

.compare th,
.compare td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
}

.compare th:last-child,
.compare td:last-child { border-right: none; }

.compare thead th {
  background: var(--bg-2);
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 2px solid var(--rule-strong);
}

.compare thead th.self {
  background: var(--ink);
  color: white;
}

.compare tbody th {
  font-weight: 600;
  color: var(--ink);
  background: var(--bg-2);
  text-transform: none;
  letter-spacing: 0;
  font-size: 14px;
}

.compare td {
  color: var(--ink-3);
}

.compare td.self {
  background: var(--bg-3);
  color: var(--ink);
  font-weight: 600;
}

.compare tbody tr:last-child th,
.compare tbody tr:last-child td { border-bottom: none; }

/* Mobile: keep the table but shrink fonts/padding so all 5 columns fit.
   Headers wrap to 2 lines if needed; horizontal-scroll fallback only
   triggers on viewports narrower than ~340px. */
@media (max-width: 720px) {
  .compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .compare { table-layout: fixed; }
  .compare th,
  .compare td {
    padding: 8px 6px;
    font-size: 11px;
    line-height: 1.3;
    word-break: normal;
    overflow-wrap: break-word;
  }
  .compare thead th {
    font-size: 9.5px;
    letter-spacing: 0.04em;
    padding: 8px 6px;
    vertical-align: bottom;
  }
  .compare tbody th {
    font-size: 11px;
    padding: 8px 6px;
  }
  /* Row-label column slightly wider, data columns share the rest evenly */
  .compare colgroup { display: none; }
  .compare th:first-child,
  .compare td:first-child { width: 28%; }
}

/* ============================================================
   FAQ - native <details>
   ============================================================ */

.faq-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--rule);
  background: var(--rule);
  gap: 1px;
}

.faq-list details {
  background: var(--bg);
  padding: 0;
}

.faq-list summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  cursor: pointer;
  padding: 22px 28px;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  user-select: none;
}

.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::marker { display: none; content: ""; }

.faq-list summary::after {
  content: "+";
  font-size: 24px;
  font-weight: 400;
  color: var(--ink-3);
  line-height: 1;
  flex-shrink: 0;
}

.faq-list details[open] summary::after { content: "−"; }

.faq-list summary:hover { background: var(--bg-2); }

.faq-list details p {
  margin: 0;
  padding: 0 28px 24px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.65;
}

/* ============================================================
   SPLIT GRID - text left, media right (used in problem section)
   ============================================================ */

.split-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: stretch;
}

@media (max-width: 920px) {
  .split-grid { grid-template-columns: 1fr; gap: 40px; align-items: start; }
}

.split-text .section-title { margin-bottom: 32px; }

.split-media {
  position: relative;
  background: var(--rule);
  overflow: hidden;
  min-height: 360px;
}

@media (max-width: 920px) {
  .split-media { aspect-ratio: 4 / 3; min-height: 0; }
}

.split-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================================
   ASIDE / EDITORIAL CALLOUT — replaces the heavy safety-callout block
   ============================================================ */

.aside {
  border-left: 3px solid var(--ink);
  padding: 6px 0 6px 22px;
  margin: 36px 0 0;
}

.aside p {
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

.aside strong { color: var(--ink); font-weight: 600; }

/* ============================================================
   BANDS LIST — quiet definition list replacing coloured rectangles
   ============================================================ */

.bands-list {
  margin: 36px 0 0;
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 32px;
  row-gap: 10px;
  max-width: 420px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}

.bands-list dt {
  font-weight: 600;
  color: var(--ink);
  font-size: 15px;
}

.bands-list dd {
  margin: 0;
  color: var(--ink-3);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

/* Band-scale info as flowing prose, spans full container width.
   Padding-left matches the aside (3px border + 22px pad) so text x-positions align. */
.band-prose {
  margin: 36px 0 0;
  padding: 0 0 0 25px;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.7;
}
.band-prose strong { color: var(--ink); font-weight: 600; }

/* ============================================================
   BAND-SCALE — clinical-axis style scoring illustration
   Inspired by lab reference range / VAS scale diagrams
   ============================================================ */

.band-scale {
  margin: 40px 0 0;
  padding: 0;
  width: 100%;
}

@media (max-width: 640px) {
  .band-scale-labels { font-size: 11px; }
  .band-scale-axis  { font-size: 10px; }
}

@media (max-width: 420px) {
  .band-scale-labels { font-size: 10px; }
  .band-scale-axis  { font-size: 9px; }
}

.band-scale-labels {
  position: relative;
  height: 18px;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.band-scale-labels span {
  position: absolute;
  transform: translateX(-50%);
  white-space: nowrap;
}

.band-scale-line {
  position: relative;
  height: 1px;
  background: var(--ink);
}

.band-scale-line .tick {
  position: absolute;
  top: 0;
  width: 1px;
  height: 6px;
  background: var(--ink);
  transform: translateX(-50%);
}

.band-scale-line .tick.major { height: 9px; }

.band-scale-axis {
  position: relative;
  height: 18px;
  margin-top: 12px;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-3);
}

.band-scale-axis span {
  position: absolute;
  transform: translateX(-50%);
}

/* The "%" suffix on the first/last labels reads as a percent scale */
.band-scale-axis span:first-child::after,
.band-scale-axis span:last-child::after {
  content: "%";
  margin-left: 1px;
}

/* ============================================================
   RESPONSIVE FIXES — page-wide mobile improvements
   ============================================================ */

/* Alpine x-cloak: hide elements until Alpine is initialised */
[x-cloak] { display: none !important; }

/* Mobile menu toggle button (hidden on desktop) */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
  padding: 6px 10px;
  font-family: inherit;
}
.menu-toggle:hover { color: var(--accent); }
.menu-toggle:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--rule);
  background: var(--bg);
}
.mobile-nav a {
  padding: 16px 24px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid var(--rule);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { background: var(--bg-2); color: var(--ink); }
.mobile-nav-section {
  appearance: none;
  width: 100%;
  background: none;
  border: none;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  text-align: left;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.mobile-nav-sublist { display: flex; flex-direction: column; background: var(--bg-2); }
.mobile-nav-sublist a {
  padding: 12px 24px 12px 36px;
  font-size: 14px;
  font-weight: 500;
}

/* Mobile breakpoints */
@media (max-width: 720px) {
  /* Header: hide desktop nav + all action buttons; show hamburger only.
     Sign-in and Start-free move into the mobile-nav drawer. */
  .primary-nav { display: none; }
  .header-actions .btn { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .header-inner { padding: 12px 16px; gap: 12px; }
  .header-actions { margin-left: auto; }
  .mobile-nav { display: flex; }

  /* Hero: cut vertical padding roughly in half */
  .hero { padding: 56px 20px 48px; }
  .hero-cta .btn { width: auto; }

  /* Sections: tighter vertical padding */
  .section { padding: 56px 20px; }
  .section-title { margin-bottom: 32px; }
  .section-lead  { margin-bottom: 36px; }

  /* CTA strip */
  .cta-strip { padding: 56px 20px; }

  /* Container side padding tighter on mobile */
  .container          { padding: 0 20px; }
  .header-inner       { max-width: none; }
  .section-inner      { padding: 0; }
  .footer-inner       { padding: 0; }
  .site-footer        { padding: 48px 20px 28px; }

  /* Hero stats: stack as one-per-line on phones for readability */
  .hero-stats { gap: 8px; row-gap: 4px; }

  /* Library cards: tighter padding */
  .library-card { padding: 22px 20px 18px; }

  /* Features: tighter padding */
  .feature { padding: 28px 22px; }

  /* How-it-works: tighter step layout */
  .how-list li { padding: 22px 20px; gap: 16px; grid-template-columns: 40px 1fr; }
  .step-num { width: 32px; height: 32px; font-size: 14px; }

  /* FAQ: tighter padding */
  .faq-list summary { padding: 18px 20px; font-size: 16px; }
  .faq-list details p { padding: 0 20px 20px; }

  /* Mark scheme cells: tighter padding */
  .mark-domain { padding: 24px 22px; }
  .aside { margin-top: 28px; padding: 4px 0 4px 18px; }

  /* Split-grid stays single column (already in media query above);
     ensure media height is sensible. */
  .split-grid { gap: 28px; }
}

@media (max-width: 480px) {
  /* Very small phones: even tighter */
  .header-inner       { padding: 10px 14px; gap: 8px; }
  .hero               { padding: 44px 16px 40px; }
  .section            { padding: 44px 16px; }
  .cta-strip          { padding: 44px 16px; }
  .site-footer        { padding: 40px 16px 24px; }
  .container          { padding: 0 16px; }

  /* Hero CTAs full-width on smallest screens */
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; text-align: center; }
}

/* Mobile-nav drawer CTA — last item, styled as a prominent button */
.mobile-nav .mobile-nav-cta {
  background: var(--accent);
  color: white;
  font-weight: 600;
  padding: 18px 24px;
  border-bottom: none;
}
.mobile-nav .mobile-nav-cta:hover { background: var(--accent-2); color: white; }

/* Sign-out is a <form><button> (POST required) — match the row look of <a> items */
.mobile-nav .logout-form { margin: 0; padding: 0; display: block; }
.mobile-nav .logout-form button {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  width: 100%;
  text-align: left;
  padding: 16px 24px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
}
.mobile-nav .logout-form:last-child button { border-bottom: none; }
.mobile-nav .logout-form button:hover { background: var(--bg-2); }

/* ============================================================
   STATION LIBRARY — magazine TOC layout (replaces the card grid)
   ============================================================ */

.library-toc {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ink);
}

.library-entry {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  column-gap: 24px;
  row-gap: 6px;
  align-items: baseline;
  padding: 26px 0;
  border-bottom: 1px solid var(--rule);
}

.library-num {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-4);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.library-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.01em;
  text-transform: none;
}

.library-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.library-list {
  grid-column: 2 / 4;
  margin: 2px 0 0;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.55;
}

@media (max-width: 720px) {
  .library-entry {
    grid-template-columns: 36px 1fr;
    column-gap: 16px;
    padding: 22px 0;
  }
  .library-name { font-size: 18px; }
  .library-count {
    grid-column: 2;
    margin-top: -4px;
    font-size: 11px;
  }
  .library-list {
    grid-column: 2;
    font-size: 14px;
  }
}

/* ============================================================
   LIBRARY TOC — accordion variant (overrides earlier list rules)
   ============================================================ */

.library-toc {
  border-top: 1px solid var(--ink);
}

.library-entry {
  border-bottom: 1px solid var(--rule);
  padding: 0;
  display: block;
}

.library-entry summary {
  display: grid;
  grid-template-columns: 48px 1fr 32px;
  column-gap: 24px;
  align-items: center;
  padding: 22px 0;
  cursor: pointer;
  user-select: none;
  list-style: none;
}

.library-entry summary::-webkit-details-marker { display: none; }
.library-entry summary::marker { display: none; content: ""; }

.library-entry summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  color: var(--ink-3);
  line-height: 1;
  justify-self: end;
  transition: transform 0.15s ease;
}

.library-entry[open] summary::after { content: "−"; }

.library-entry summary:hover .library-name { color: var(--accent); }
.library-entry summary:hover::after { color: var(--ink); }

.library-entry .library-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  text-transform: none;
  transition: color 0.1s;
}

.library-expand {
  padding: 0 32px 24px 72px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.65;
}
.library-expand p { margin: 0; max-width: 80ch; }

@media (max-width: 720px) {
  .library-entry summary {
    grid-template-columns: 36px 1fr 28px;
    column-gap: 14px;
    padding: 18px 0;
  }
  .library-entry .library-name { font-size: 17px; }
  .library-entry summary::after { font-size: 20px; }
  .library-expand { padding: 0 0 18px 50px; font-size: 14px; }
}

/* ============================================================
   PRICING PAGE
   ============================================================ */

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

@media (max-width: 920px) {
  .plans-grid { grid-template-columns: 1fr; }
}

.plan-card {
  position: relative;
  background: var(--bg);
  padding: 40px 32px 36px;
  display: flex;
  flex-direction: column;
}

.plan-card.popular {
  background: var(--bg-2);
  border: 2px solid var(--ink);
  margin: -1px;
  z-index: 1;
}

.plan-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--ink);
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
}

.plan-head { margin-bottom: 24px; }

.plan-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
  text-transform: none;
}

.plan-tagline {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.5;
  margin: 0;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 14px;
}

.plan-amount {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.plan-period {
  font-size: 15px;
  color: var(--ink-3);
  font-weight: 500;
}

.plan-allowance {
  margin: 0 0 24px;
  font-size: 15px;
  color: var(--ink-2);
}
.plan-allowance strong { color: var(--ink); font-weight: 700; }

.plan-allowance-note {
  display: block;
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 2px;
}

.plan-cta { text-align: center; width: 100%; margin-bottom: 28px; }

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--rule);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan-features li {
  font-size: 14px;
  color: var(--ink-2);
  padding-left: 22px;
  position: relative;
  line-height: 1.5;
}

.plan-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 10px;
  height: 1px;
  background: var(--ink);
}

/* --- Annual strip --- */

.annual-strip {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  background: var(--bg);
  border: 1px solid var(--rule);
  padding: 48px;
  align-items: center;
}

@media (max-width: 820px) {
  .annual-strip { grid-template-columns: 1fr; gap: 32px; padding: 32px 28px; }
}

.annual-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}

.annual-title {
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 16px;
  line-height: 1.1;
}

.annual-lead {
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 24px;
  max-width: 56ch;
}

.annual-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.annual-points li {
  font-size: 14px;
  color: var(--ink-2);
  padding-left: 18px;
  position: relative;
}

.annual-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--ink);
  font-weight: 700;
}

.annual-pricebox {
  background: var(--ink);
  color: white;
  padding: 32px 28px;
  text-align: center;
}

.annual-vs {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #94a3b8;
  margin: 0 0 14px;
}

.annual-compare {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
  font-variant-numeric: tabular-nums;
}

.annual-old {
  font-size: 20px;
  color: #64748b;
  text-decoration: line-through;
  font-weight: 500;
}

.annual-new {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: white;
  line-height: 1;
}

.annual-pricebox .btn {
  width: 100%;
  background: white;
  color: var(--ink);
}
.annual-pricebox .btn:hover { background: var(--bg-3); color: var(--ink); }

.annual-fine {
  font-size: 12px;
  color: #94a3b8;
  margin: 16px 0 0;
  line-height: 1.5;
}

/* --- Included list --- */

.included-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 48px;
  row-gap: 18px;
}

@media (max-width: 720px) {
  .included-list { grid-template-columns: 1fr; column-gap: 0; row-gap: 14px; }
}

.included-list li {
  font-size: 15px;
  color: var(--ink-2);
  padding-left: 22px;
  position: relative;
  line-height: 1.6;
}

.included-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 12px;
  height: 1px;
  background: var(--ink);
}

.included-list li strong { color: var(--ink); font-weight: 600; }

/* Mobile tightening for plans */
@media (max-width: 720px) {
  .plan-card { padding: 32px 24px 28px; }
  .plan-card.popular { margin: -1px 0; }
  .plan-amount { font-size: 40px; }
  .annual-title { font-size: clamp(24px, 5vw, 32px); }
  .annual-new { font-size: 36px; }
}

/* ============================================================
   STATIONS INDEX — redesigned to match marketing pages
   Overrides the older .scenario-card flip-on-hover styling.
   ============================================================ */

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  padding: 0;
}

.scenario-card {
  background: var(--bg);
  border-top: 3px solid var(--accent);
  padding: 20px 22px 18px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
  position: relative;
  min-height: 200px;
  transition: background 0.15s;
}

.scenario-card:hover {
  background: var(--bg-2);
  color: inherit;
}

/* The cubicle setting chip - derived from the task card's where_you_are. */
.scenario-card-setting {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--bg-2);
  padding: 4px 8px;
}

.scenario-card:hover .scenario-card-setting { background: var(--bg); }

/* The door-card brief: who the patient is + the task. */
.scenario-card-door {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0;
}

.scenario-card-num {
  display: none;
}

.scenario-card-arrow {
  font-size: 20px;
  font-weight: 400;
  color: var(--ink-4);
  line-height: 1;
  transition: transform 0.15s ease, color 0.15s;
  margin-left: auto;
}

.scenario-card:hover .scenario-card-arrow {
  color: var(--accent);
  transform: translateX(4px);
}

.scenario-card-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
  text-transform: none;
  transition: color 0.15s;
}

.scenario-card:hover .scenario-card-title {
  color: var(--accent);
}

.scenario-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

.scenario-card .tag {
  font-size: 11px;
  background: var(--bg-3);
  color: var(--ink-2);
  padding: 4px 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
}

.scenario-card:hover .tag {
  background: var(--bg);
  color: var(--ink);
}

.scenario-empty {
  padding: 40px 28px;
  background: var(--bg);
  color: var(--ink-3);
  font-size: 14px;
}
.scenario-empty code {
  background: var(--bg-3);
  padding: 2px 6px;
  font-size: 13px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

/* Station browse: compact page header + filter bar + grouped grid */
.station-browse .is-hidden { display: none !important; }

.page-header {
  background: var(--bg);
  padding: 48px 24px 28px;
}
.page-header-title {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 10px;
}
.page-header-lead {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-3);
  margin: 0;
  max-width: none;
}

.station-filterbar {
  padding-top: 20px;
  padding-bottom: 24px;
  background: var(--bg);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.filterbar {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
/* Matches the homepage hero search bar: 3px accent border, accent icon,
   large type. No attached button here - filtering is live as you type. */
.filterbar-search {
  flex: 1 1 360px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  height: 64px;
  background: #fff;
  border: 3px solid var(--accent);
  transition: border-color 120ms ease;
}
.filterbar-search:focus-within { border-color: var(--accent-2); }
.filterbar-search-icon { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; }
.filterbar-search input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 18px;
  color: var(--ink);
  height: 100%;
}
.filterbar-search input::placeholder { color: var(--ink-3); }
.filterbar-search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }

.filterbar-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.filterbar-count strong { color: var(--ink); font-weight: 700; }
.filterbar-clear {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  color: var(--accent);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.filterbar-clear:hover { color: var(--ink); }

.filterbar-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 10px 0;
}
.filterbar-row + .filterbar-row { border-top: 1px dashed var(--rule); }
.filterbar-row-label {
  flex-shrink: 0;
  width: 72px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 4px;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  appearance: none;
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  background: var(--bg);
  border: 1px solid var(--rule);
  color: var(--ink-2);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}
.chip:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.station-empty {
  padding: 80px 0;
  text-align: center;
}
.station-empty h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--ink);
}
.station-empty p {
  color: var(--ink-3);
  margin: 0 0 20px;
}

/* Grouped-by-category station index */
.station-category { padding-top: 40px; padding-bottom: 40px; }
.station-category + .station-category { padding-top: 0; }
.station-browse > .station-category:first-of-type { padding-top: 32px; }

.station-category-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}
.station-category-name {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.station-category-count {
  font-size: 13px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .scenario-card { padding: 24px 22px 22px; min-height: 0; }
  .scenario-card-title { font-size: 18px; }
  .station-category { padding-top: 40px; padding-bottom: 40px; }
  .station-category-name { font-size: 22px; }
  .page-header { padding: 32px 20px 18px; }
  .station-filterbar { padding-top: 16px; padding-bottom: 20px; }
  .filterbar { gap: 12px; }
  .filterbar-search { flex-basis: 100%; padding: 10px 14px; }
  .filterbar-meta { width: 100%; justify-content: space-between; }
  .filterbar-row { flex-direction: column; align-items: stretch; gap: 8px; padding: 12px 0; }
  .filterbar-row-label { width: auto; padding-top: 0; }
  .chip { padding: 6px 12px; font-size: 12px; }
}

/* ============================================================
   STATIONS INDEX — tinted/lift redesign overrides
   ============================================================ */

.scenario-grid {
  background: var(--rule);
  border: 1px solid var(--rule);
}

.scenario-card {
  background: var(--bg-2);
  padding: 28px 26px 24px;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr auto;
  row-gap: 16px;
  min-height: 220px;
  position: relative;
  transition: background 0.18s ease;
}

.scenario-card:hover {
  background: var(--bg);
}

/* Top row: number + duration on opposite ends */
.scenario-card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.scenario-card-num {
  font-size: 38px;
  font-weight: 800;
  color: var(--ink-4);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-transform: none;
  transition: color 0.18s ease;
}

.scenario-card:hover .scenario-card-num {
  color: var(--ink);
}

.scenario-card-duration {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  background: var(--bg);
  padding: 4px 10px;
  font-variant-numeric: tabular-nums;
  transition: background 0.18s, color 0.18s;
}

.scenario-card:hover .scenario-card-duration {
  background: var(--ink);
  color: white;
}

/* Title in the middle row, top-aligned */
.scenario-card-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
  text-transform: none;
  align-self: start;
  transition: color 0.15s;
}

.scenario-card:hover .scenario-card-title {
  color: var(--accent);
}

/* Bottom row: tags */
.scenario-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-self: end;
}

.scenario-card .tag {
  font-size: 11px;
  background: var(--bg);
  color: var(--ink-2);
  padding: 5px 10px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
  border: 1px solid var(--rule);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.scenario-card:hover .tag {
  background: var(--bg-2);
  color: var(--ink);
  border-color: var(--rule-strong);
}

/* Arrow positioned absolutely so it doesn't interfere with grid layout */
.scenario-card-arrow {
  position: absolute;
  bottom: 24px;
  right: 26px;
  font-size: 22px;
  font-weight: 400;
  color: var(--ink-4);
  line-height: 1;
  transition: transform 0.18s ease, color 0.18s ease;
}

.scenario-card:hover .scenario-card-arrow {
  color: var(--ink);
  transform: translateX(4px);
}

@media (max-width: 720px) {
  .scenario-card { padding: 22px 20px 20px; min-height: 180px; row-gap: 14px; }
  .scenario-card-num { font-size: 30px; }
  .scenario-card-title { font-size: 18px; }
  .scenario-card-arrow { bottom: 20px; right: 20px; font-size: 20px; }
}

/* ============================================================
   AUTH - login, signup, password reset, email verify
   Single column card on a tinted bg, flat to match the rest.
   ============================================================ */

body.auth main { background: var(--bg-2, #f8fafc); }

.auth-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 64px 24px 96px;
  min-height: calc(100vh - 200px);
}

.auth-card {
  background: var(--bg);
  border: 1px solid var(--rule);
  width: 100%;
  max-width: 460px;
  padding: 44px 44px 36px;
}

.auth-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 10px;
  line-height: 1.15;
}
.auth-lead {
  color: var(--ink-3);
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 28px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0;
}
.field-label-opt {
  color: var(--ink-3);
  font-weight: 400;
  margin-left: 4px;
}
.field input[type="email"],
.field input[type="text"],
.field input[type="password"] {
  font: inherit;
  font-size: 15px;
  padding: 11px 14px;
  border: 1px solid var(--rule);
  background: var(--bg);
  color: var(--ink);
  outline: none;
  transition: border-color 120ms ease;
}
.field input:focus { border-color: var(--ink); }
.field-error {
  font-size: 12px;
  color: var(--bad, #991b1b);
  margin-top: 2px;
}

.field-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-2);
}
.field-inline input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--ink);
  margin: 0;
}

.btn.block { display: flex; justify-content: center; width: 100%; }

.auth-error {
  padding: 12px 14px;
  border-left: 3px solid var(--bad, #991b1b);
  background: #fef2f2;
  color: var(--bad, #991b1b);
  font-size: 14px;
  margin-bottom: 20px;
}

.auth-fineprint {
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.5;
  margin: 4px 0 0;
}

.auth-foot {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-size: 14px;
  color: var(--ink-3);
  text-align: center;
}
.auth-foot a { color: var(--ink); font-weight: 600; }
.auth-foot a:hover { color: var(--accent); }
.auth-foot-sep { margin: 0 8px; color: var(--ink-3); }

/* Header auth state */
.header-greeting {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  padding: 6px 10px;
}
.header-greeting:hover { color: var(--ink); }
.logout-form {
  display: inline-flex;
  margin: 0;
}
.logout-form button {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

@media (max-width: 720px) {
  .auth-wrap { padding: 32px 16px 56px; }
  .auth-card { padding: 32px 24px 28px; max-width: none; }
  .auth-title { font-size: 24px; }
}

/* ============================================================
   ABOUT PAGE - station-flow process diagram + principles grid
   ============================================================ */

.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.flow-step {
  background: var(--bg);
  padding: 28px 26px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.flow-step-icon {
  width: 40px;
  height: 40px;
  color: var(--accent);
  margin-bottom: 22px;
  display: block;
}
.flow-step-icon svg { width: 100%; height: 100%; display: block; }
.flow-step-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.flow-step-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.005em;
  margin: 0 0 10px;
  line-height: 1.3;
}
.flow-step p {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.55;
  margin: 0;
}

@media (max-width: 880px) {
  .flow-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .flow-steps { grid-template-columns: 1fr; }
  .flow-step { padding: 24px 22px 26px; }
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-top: 36px;
}
.principle {
  border-top: 2px solid var(--ink);
  padding-top: 22px;
}
.principle h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 12px;
  line-height: 1.25;
}
.principle p {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 880px) {
  .principles { grid-template-columns: 1fr; gap: 28px; }
}

/* ============================================================
   DASHBOARD - candidate's logged-in landing page
   Status strip with plan/credit info + recent attempts list.
   Reuses page-header + section from the marketing system.
   ============================================================ */

.status-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 28px;
  border: 1px solid var(--rule);
  background: var(--bg);
}
.status-strip-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.status-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.status-note {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.status-subnote {
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-3);
  line-height: 1.45;
  margin-top: 2px;
}
.status-strip-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

/* Tint the strip by status category */
.status-strip.status-trial_open    { background: #f8fafc; }
.status-strip.status-trial_used    { background: #fef2f2; border-color: #fecaca; }
.status-strip.status-trial_used .status-label { color: #991b1b; }
.status-strip.status-paid_quota    { background: var(--bg); }
.status-strip.status-paid_unlimited,
.status-strip.status-internal      { background: var(--ink); border-color: var(--ink); }
.status-strip.status-paid_unlimited .status-label,
.status-strip.status-internal .status-label { color: rgba(255,255,255,0.6); }
.status-strip.status-paid_unlimited .status-note,
.status-strip.status-internal .status-note  { color: #fff; }
.status-strip.status-paid_unlimited .btn.ghost,
.status-strip.status-internal .btn.ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.4);
  color: #fff;
}
.status-strip.status-paid_unlimited .btn.ghost:hover,
.status-strip.status-internal .btn.ghost:hover {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}

/* Referral promotion strip - sits directly under the status strip on the
   dashboard. Solid dark fill so it reads as a deliberate promo against the
   white status strip above, without competing with the page-header. */
.referral-promo-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 28px;
  margin-top: 12px;
  border: 1px solid var(--ink);
  background: var(--ink);
}
.referral-promo-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.referral-promo-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
.referral-promo-note {
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.005em;
}
.referral-promo-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.referral-promo-strip .btn {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}
.referral-promo-strip .btn:hover {
  background: transparent;
  color: #fff;
}

/* ---------- Referral invite block + feedback-page invite CTA ---------- */
.invite-block { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
@media (max-width: 520px) {
  .invite-block { flex-direction: column; }
  .invite-block .btn { width: 100%; }
}

.invite-cta {
  margin: 32px auto 0;
  max-width: 760px;
  padding: 28px 32px;
  border: 1px solid var(--rule);
  background: var(--bg-2);
}
.invite-cta-title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.invite-cta-lead { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-3); }

/* Attempts list */
.attempts-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.attempts-count {
  font-size: 13px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.attempts-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--rule);
}
.attempt {
  display: grid;
  grid-template-columns: 80px 1fr auto auto auto;
  align-items: center;
  gap: 24px;
  padding: 20px 4px;
  border-bottom: 1px solid var(--rule);
}
.attempt-when {
  display: flex;
  flex-direction: column;
  font-variant-numeric: tabular-nums;
}
.attempt-date {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.attempt-time {
  font-size: 12px;
  color: var(--ink-3);
}
.attempt-station { min-width: 0; }
.attempt-title {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.attempt-meta {
  font-size: 12px;
  color: var(--ink-3);
}

.attempt-bands {
  display: flex;
  gap: 4px;
}
.attempt-band {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: var(--bg-3, #f1f5f9);
  color: var(--ink-3);
  cursor: help;
}
.attempt-band.band-4 { background: #166534; color: #fff; }
.attempt-band.band-3 { background: #15803d; color: #fff; }
.attempt-band.band-2 { background: #b45309; color: #fff; }
.attempt-band.band-1 { background: #991b1b; color: #fff; }

.attempt-status {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  background: var(--bg-3, #f1f5f9);
  color: var(--ink-3);
  letter-spacing: 0.02em;
}
.attempt-status-failed { background: #fef2f2; color: #991b1b; }

.attempt-rating {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 10px;
  background: var(--bg-3, #f1f5f9);
  color: var(--ink-2);
  white-space: nowrap;
}
.attempt-rating-pass       { background: #166534; color: #fff; }
.attempt-rating-borderline { background: #b45309; color: #fff; }
.attempt-rating-fail       { background: #991b1b; color: #fff; }

.attempt-actions a {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.attempt-actions a:hover { color: var(--accent); }

.attempts-empty {
  padding: 60px 28px;
  text-align: center;
  border: 1px solid var(--rule);
  background: var(--bg);
}
.attempts-empty h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--ink);
}
.attempts-empty p {
  max-width: 56ch;
  margin: 0 auto 24px;
  color: var(--ink-3);
  font-size: 15px;
  line-height: 1.6;
}

/* ---------- Dashboard: compact spacing + "start here" card ----------
   The dashboard reuses the marketing .section blocks (96px vertical padding).
   Stacked, that buries the station library far below the fold. Tighten the
   rhythm so a signed-in user can pick a cubicle and start fast. */
body.dashboard .section { padding: 28px 24px; }
body.dashboard .page-header { padding: 36px 24px 4px; }
body.dashboard .section-title { margin-bottom: 12px; }
/* .section-lead carries margin-top:-32px to hug the marketing title's 56px
   bottom margin. The dashboard title is far tighter, so cancel that pull or
   the lead overlaps the heading. */
body.dashboard .section-lead { margin: 0; }
body.dashboard .station-browse > .station-category:first-of-type { padding-top: 4px; }
body.dashboard #library { scroll-margin-top: 80px; }

.start-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 28px 32px;
  border: 1px solid var(--rule);
  background: var(--bg-2);
}
.start-card-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 8px;
}
.start-card-title {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 6px;
}
.start-card-meta { font-size: 13px; color: var(--ink-3); margin: 0 0 12px; }
.start-card-lead {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-3);
  margin: 0;
  max-width: 58ch;
}
.start-card-actions { display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; }
.start-card-actions .btn { white-space: nowrap; justify-content: center; text-align: center; }

@media (max-width: 720px) {
  .start-card { flex-direction: column; align-items: stretch; gap: 20px; }
  .start-card-actions { width: 100%; }
  .start-card-actions .btn { width: 100%; }
}

@media (max-width: 880px) {
  .status-strip { flex-direction: column; align-items: stretch; gap: 16px; }
  .status-strip-actions { width: 100%; }
  .status-strip-actions .btn { flex: 1; justify-content: center; }
  .referral-promo-strip { flex-direction: column; align-items: stretch; gap: 16px; }
  .referral-promo-actions { width: 100%; }
  .referral-promo-actions .btn { flex: 1; justify-content: center; }
  .attempt {
    grid-template-columns: auto 1fr;
    gap: 12px 16px;
  }
  .attempt-when { flex-direction: row; gap: 6px; align-items: baseline; grid-column: 1 / 3; }
  .attempt-station { grid-column: 1 / 3; }
  .attempt-bands { grid-column: 1; }
  .attempt-overall, .attempt-actions { grid-column: 2; justify-self: end; }
}

/* ============================================================
   ATTEMPT-TAG OVERLAYS on station cards (dashboard catalog)
   ============================================================ */
.scenario-card.has-attempt {
  /* Slight visual hint that this card has been attempted before */
  border-color: var(--ink-3);
}
.tag.attempt-tag {
  font-weight: 600;
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.tag.attempt-tag-pass       { background: #166534; color: #fff; border-color: #166534; }
.tag.attempt-tag-borderline { background: #b45309; color: #fff; border-color: #b45309; }
.tag.attempt-tag-fail       { background: #991b1b; color: #fff; border-color: #991b1b; }
.scenario-card:hover .tag.attempt-tag       { background: #fff; color: var(--ink); border-color: var(--ink); }
.scenario-card:hover .tag.attempt-tag-pass       { background: #fff; color: #166534; border-color: #166534; }
.scenario-card:hover .tag.attempt-tag-borderline { background: #fff; color: #b45309; border-color: #b45309; }
.scenario-card:hover .tag.attempt-tag-fail       { background: #fff; color: #991b1b; border-color: #991b1b; }

/* ============================================================
   /account/ - profile + email + password + plan + danger zone
   Two-column card grid on desktop, single column on phone.
   ============================================================ */

.account-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 8px;
}

.account-card {
  background: var(--bg);
  border: 1px solid var(--rule);
  padding: 28px 28px 28px;
  display: flex;
  flex-direction: column;
}
.account-card-head { margin-bottom: 18px; }
.account-card-head h2 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}
.account-card-head p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.5;
}
.account-card .auth-form { gap: 14px; }
.account-card .btn { align-self: flex-start; }
.account-card .field input[type="text"] { padding: 9px 12px; font-size: 14px; }

/* Profile section spans both columns (more fields) */
.account-card:first-child { grid-column: 1 / -1; }

.account-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--rule);
  margin-bottom: 16px;
}
.account-row-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.account-row-meta {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #166534;
}

.account-card-danger {
  border-color: #fecaca;
  background: #fef2f2;
}
.account-card-danger .account-card-head h2 { color: #991b1b; }
.account-card-danger .account-card-head p { color: #7f1d1d; }

.account-actions {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.btn.danger {
  background: #991b1b;
  border-color: #991b1b;
  color: #fff;
}
.btn.danger:hover {
  background: #7f1d1d;
  border-color: #7f1d1d;
  color: #fff;
}

.account-flash {
  padding: 14px 18px;
  border-left: 3px solid var(--ink);
  background: var(--bg-2, #f8fafc);
  font-size: 14px;
  margin-bottom: 16px;
}
.account-flash-success { border-left-color: #166534; }
.account-flash-error   { border-left-color: #991b1b; background: #fef2f2; }
.account-flash-info    { border-left-color: var(--ink); }

.field-help {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 2px;
}

@media (max-width: 880px) {
  .account-grid { grid-template-columns: 1fr; gap: 16px; }
  .account-card:first-child { grid-column: 1; }
  .account-card { padding: 22px 22px; }
}

/* ---------- Condition SEO article pages (/plab-2/conditions/<slug>/) ---------- */

.condition-article {
  max-width: var(--container);
  margin: 0 auto;
  padding: 32px 24px 64px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
}

.condition-breadcrumb {
  font-size: 13px;
  color: var(--ink-3);
  margin-bottom: 24px;
}
.condition-breadcrumb a { color: var(--ink-3); text-decoration: none; }
.condition-breadcrumb a:hover { color: var(--ink); text-decoration: underline; }
.condition-breadcrumb .sep { margin: 0 6px; color: var(--ink-4); }

.condition-header { margin-bottom: 40px; }
.condition-header h1 {
  font-size: 36px;
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin: 0 0 18px;
}
.condition-lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0 0 12px;
}
.condition-meta {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin: 0;
}

.condition-block { margin: 48px 0; }
.condition-block h2 {
  font-size: 24px;
  letter-spacing: -0.005em;
  margin: 0 0 14px;
}
.condition-block > p { margin: 0 0 16px; }

.differential-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  border-top: 1px solid var(--line);
}
.differential-list li {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.dx-name { font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.dx-summary { color: var(--ink-2); font-size: 15px; }

.approach-list {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}
.approach-step {
  padding: 22px 0 26px;
  border-top: 1px solid var(--line);
}
.approach-step h3 {
  font-size: 18px;
  margin: 0 0 8px;
  color: var(--ink);
}
.approach-detail {
  color: var(--ink-2);
  font-size: 15px;
  margin: 0 0 12px;
}
.approach-bullets { margin: 0; padding-left: 22px; }
.approach-bullets li { margin-bottom: 6px; }
.approach-bullets li strong { color: var(--ink); }

.condition-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  background: var(--ink);
  color: #fff;
  margin: 48px 0;
}
.condition-cta h2 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 20px;
}
.condition-cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.55;
  max-width: 440px;
}
.condition-cta .btn {
  background: #fff;
  color: var(--ink);
  white-space: nowrap;
  flex: 0 0 auto;
}
.condition-cta .btn:hover { background: rgba(255, 255, 255, 0.85); }

.pitfall-list { margin: 16px 0 0; padding-left: 22px; }
.pitfall-list li { margin-bottom: 10px; }

.faq-list { margin-top: 16px; }
.faq-item {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
  padding-right: 26px;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 400;
  color: var(--ink-3);
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p {
  margin: 12px 0 0;
  color: var(--ink-2);
  font-size: 15px;
}

.condition-related ul {
  margin: 16px 0 0;
  padding-left: 22px;
}
.condition-related li { margin-bottom: 6px; }

.condition-footer {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-4);
}
.condition-footer p { margin: 0; }

@media (max-width: 720px) {
  .condition-article { padding: 24px 18px 48px; }
  .condition-header h1 { font-size: 28px; }
  .condition-lede { font-size: 16px; }
  .condition-cta { flex-direction: column; align-items: flex-start; padding: 22px; }
}

/* ---------- Examination findings panel (station live view) ---------- */

.findings-panel {
  position: fixed;
  top: 80px;
  right: 24px;
  width: 380px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 120px);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 36px rgba(10, 18, 36, 0.16);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  transform: translateX(calc(100% + 48px));
  transition: transform 220ms ease-out;
}
.findings-panel.is-open { transform: translateX(0); }

.findings-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--ink);
  color: #fff;
}
.findings-panel-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.findings-panel-close {
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}
.findings-panel-close:hover { color: #fff; }

.findings-panel-body {
  overflow-y: auto;
  padding: 4px 20px 18px;
}

.findings-group {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.findings-group:last-child { border-bottom: 0; }
.findings-group-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.findings-group-value {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
}
.findings-empty {
  padding: 18px 0;
  font-size: 13px;
  color: var(--ink-3);
  text-align: center;
}

@media (max-width: 720px) {
  .findings-panel {
    top: auto;
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    max-height: 70vh;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    transform: translateY(100%);
  }
  .findings-panel.is-open { transform: translateY(0); }
}

/* ============================================================
   MARKETING - hero (home variant: split layout with image)
   ============================================================ */

.hero-home {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #eef4fb 0%, #f6f9fd 60%, #ffffff 100%);
  padding: 72px 24px 0;
  border-bottom: 1px solid var(--rule);
}

.hero-home .hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
}

.hero-home .hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: center;
  padding: 16px 0 64px;
}

.hero-home .hero-content {
  max-width: none;
}

.hero-home .hero-title {
  font-size: clamp(36px, 4.6vw, 60px);
  max-width: 16ch;
  margin: 0 0 22px;
}

.hero-home .hero-lead {
  margin: 0 0 32px;
  max-width: 48ch;
}

.hero-home .hero-cta {
  margin-bottom: 0;
}

.hero-media {
  position: relative;
  overflow: hidden;
  background: var(--bg-3);
  aspect-ratio: 16 / 10;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Decorative blue blobs + dot pattern */
.hero-decor {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.hero-decor-tr {
  top: -180px;
  right: -180px;
  width: 540px;
  height: 540px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(30, 58, 138, 0.10), rgba(30, 58, 138, 0) 70%);
}

.hero-decor-bl {
  bottom: -200px;
  left: -160px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle at 60% 40%, rgba(30, 58, 138, 0.08), rgba(30, 58, 138, 0) 70%);
}

.hero-decor-dots {
  top: 88px;
  right: 6%;
  width: 130px;
  height: 130px;
  background-image: radial-gradient(rgba(30, 58, 138, 0.22) 1.4px, transparent 1.4px);
  background-size: 14px 14px;
  opacity: 0.6;
}

/* Stats row */
.hero-home .hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 0;
  padding: 24px 0 28px;
  border-top: 1px solid var(--rule);
  font-size: 14px;
}

.hero-stat {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-stat-icon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(30, 58, 138, 0.10);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-stat-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  color: var(--ink-3);
  font-size: 14px;
}

.hero-stat-text strong {
  color: var(--ink);
  font-weight: 700;
  font-size: 17px;
}

/* Tablet: stack image below text, two-column stats, CTAs sit side-by-side */
@media (max-width: 920px) {
  .hero-home { padding: 56px 24px 0; }
  .hero-home .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 0 0 48px;
  }
  .hero-home .hero-title { max-width: none; }
  .hero-media { aspect-ratio: 16 / 10; }
  .hero-home .hero-stats { grid-template-columns: 1fr 1fr; gap: 20px; }
  .hero-decor-dots { display: none; }
  .hero-decor-tr { width: 380px; height: 380px; top: -140px; right: -140px; }
  .hero-decor-bl { width: 360px; height: 360px; bottom: -160px; left: -120px; }

  /* Force CTAs side-by-side on collapsed grid (overrides base + 480px stack rules) */
  .hero-home .hero-cta {
    flex-direction: row;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 12px;
  }
  .hero-home .hero-cta .btn {
    width: auto;
    flex: 1 1 0;
    padding: 14px 16px;
    font-size: 15px;
    text-align: center;
    white-space: nowrap;
  }
  .hero-home .hero-cta .btn.ghost { padding: 12px 16px; }
}

/* Phone: 3-column stats with icon stacked above text, tighter padding */
@media (max-width: 720px) {
  .hero-home { padding: 40px 20px 0; }
  .hero-home .hero-grid { padding: 0 0 36px; gap: 28px; }
  .hero-home .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 18px 0 22px;
  }
  .hero-stat {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }
  .hero-stat-icon { width: 38px; height: 38px; }
  .hero-stat-icon svg { width: 18px; height: 18px; }
  .hero-stat-text { align-items: center; font-size: 12px; }
  .hero-stat-text strong { font-size: 15px; }
  .hero-home .hero-cta .btn { padding: 12px 12px; font-size: 14px; }
  .hero-home .hero-cta .btn.ghost { padding: 10px 12px; }
}

@media (max-width: 480px) {
  .hero-home { padding: 32px 16px 0; }
  .hero-media { aspect-ratio: 4 / 3; }
  .hero-home .hero-cta { gap: 10px; }
  .hero-home .hero-cta .btn { padding: 11px 10px; font-size: 13px; }
  .hero-home .hero-cta .btn.ghost { padding: 9px 10px; }
  .hero-home .hero-stats { gap: 8px; }
  .hero-stat { gap: 8px; }
  .hero-stat-icon { width: 32px; height: 32px; }
  .hero-stat-icon svg { width: 16px; height: 16px; }
  .hero-stat-text { font-size: 11px; line-height: 1.25; }
  .hero-stat-text strong { font-size: 13px; }
}

/* ============================================================
   HOMEPAGE 2026 REDESIGN
   New sections introduced by the mockup-led rebuild. Anything
   added below must be scoped under its parent so it cannot
   collide with element-level classes elsewhere (the .band-N
   regression in the feedback page was caused by global scoping).
   ============================================================ */

/* Hero — eyebrow above title */
.hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--bg-3);
  padding: 6px 12px;
  margin-bottom: 22px;
}

/* Hero — "First station free" trust pill (replaces the 4.8/5 stars in the mockup) */
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 24px 0 0;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--rule);
  font-size: 14px;
  color: var(--ink-2);
}
.hero-pill strong { color: var(--ink); font-weight: 700; }
.hero-pill-check {
  flex: none;
  width: 22px;
  height: 22px;
  background: var(--good);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Trust bar — four proof points in a flat row of equal cells */
.trust-bar-section {
  padding: 0 24px;
  margin: -28px 0 0;
  position: relative;
  z-index: 2;
}
.trust-bar-inner {
  max-width: var(--container);
  margin: 0 auto;
}
.trust-bar {
  background: var(--bg);
  border: 1px solid var(--rule);
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background-color: var(--rule);
}
@media (max-width: 1100px) {
  .trust-bar { grid-template-columns: repeat(2, 1fr); }
}
.trust-bar-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--bg);
  padding: 28px 32px;
}
.trust-bar-icon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(30, 58, 138, 0.10);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.trust-bar-text h3 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.trust-bar-text p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-3);
}
@media (max-width: 920px) {
  .trust-bar { grid-template-columns: 1fr; }
  .trust-bar-section { margin-top: -20px; }
}

/* Books vs Practice — variant with ticked bullets */
.split-grid-tight { gap: 56px; align-items: center; }
.bullets-checked {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 14px;
}
.bullets-checked li {
  position: relative;
  padding-left: 36px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
}
.bullets-checked li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  background: var(--accent);
}
.bullets-checked li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 9px;
  width: 10px;
  height: 5px;
  border-left: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(-45deg);
}

/* Section title — centered variant */
.section-title-centered { text-align: center; margin-left: auto; margin-right: auto; max-width: 24ch; }

/* 4-card features grid — icon-led variant */
.features-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1024px) {
  .features-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .features-grid-4 { grid-template-columns: 1fr; }
}
.feature-iconed { padding: 36px 28px; text-align: center; }
.feature-iconed .feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: rgba(30, 58, 138, 0.10);
  color: var(--accent);
  margin-bottom: 18px;
}
.feature-iconed .feature-title {
  font-size: 18px;
  margin-bottom: 10px;
}
.feature-iconed p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-3);
}

/* Marking section — left pillars + right example score card */
.marking-split {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 920px) {
  .marking-split { grid-template-columns: 1fr; gap: 40px; }
}
.marking-pillars-col .section-title { text-align: left; margin: 0 0 18px; max-width: none; }
.marking-lead { text-align: left; margin: 0 0 28px; max-width: 48ch; }

.marking-pillars {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 22px;
}
.marking-pillars li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
}
.marking-pillar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--bg);
  border: 1px solid var(--rule);
  color: var(--accent);
}
.marking-pillars h3 {
  margin: 4px 0 6px;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.marking-pillars p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-3);
}

/* Example score card */
.score-card {
  background: var(--bg);
  border: 1px solid var(--rule);
  padding: 28px;
}
.score-card-head { margin-bottom: 22px; }
.score-card-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.score-card-head h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.score-card-rows {
  display: grid;
  gap: 16px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 18px;
}
.score-row {
  display: grid;
  grid-template-columns: 150px 1fr 90px;
  gap: 14px;
  align-items: center;
  font-size: 13px;
}
.score-row-label { color: var(--ink-2); font-weight: 600; }
.score-row-bar {
  position: relative;
  height: 10px;
  background: var(--bg-3);
  overflow: hidden;
}
.score-row-fill {
  position: absolute;
  inset: 0 auto 0 0;
}
.score-row-fill.fill-excellent { background: #166534; }
.score-row-fill.fill-acceptable { background: #15803d; }
.score-row-fill.fill-borderline { background: #b45309; }
.score-row-fill.fill-fail { background: #991b1b; }

.score-row-band {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: right;
}
.score-row-band.band-excellent { color: #166534; }
.score-row-band.band-acceptable { color: #15803d; }
.score-row-band.band-borderline { color: #b45309; }
.score-row-band.band-fail { color: #991b1b; }

.score-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.score-card-overall-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.score-card-overall-band {
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.score-card-overall-band.band-excellent { background: #dcfce7; color: #166534; }
.score-card-overall-band.band-acceptable { background: #ecfdf5; color: #15803d; }
.score-card-overall-band.band-borderline { background: #fef3c7; color: #92400e; }
.score-card-overall-band.band-fail { background: #fee2e2; color: #991b1b; }

.score-card-note {
  margin: 16px 0 0;
  font-size: 12px;
  color: var(--ink-4);
  line-height: 1.5;
}

@media (max-width: 560px) {
  .score-row { grid-template-columns: 1fr; gap: 6px; }
  .score-row-band { text-align: left; }
  .score-card { padding: 22px; }
}

/* Process — horizontal 5-step timeline.
   Cards are sharp-edged with a 1px border (flat design); the dotted
   connector runs behind at icon-row height and is masked by each
   card's white background, so dots only show in the inter-card gaps. */
.process-timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  position: relative;
}
.process-timeline::before {
  content: "";
  position: absolute;
  top: 78px;
  left: 8%;
  right: 8%;
  height: 0;
  border-top: 2px dotted var(--ink-4);
  z-index: 0;
}
.process-step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 24px 18px 24px;
  background: var(--bg);
  border: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.process-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-weight: 700;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  margin-bottom: 18px;
}
.process-step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-2);
  color: var(--accent);
  margin-bottom: 18px;
}
.process-step h4 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.process-step p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-3);
}
@media (max-width: 920px) {
  .process-timeline { grid-template-columns: repeat(2, 1fr); }
  .process-timeline::before { display: none; }
}
@media (max-width: 480px) {
  .process-timeline { grid-template-columns: 1fr; gap: 12px; }
}

/* Comparison — highlighted Plabity column with navy outline.
   Keeps the wrap's existing overflow-x:auto so the table can scroll
   on viewports too narrow even after the shrink-to-fit rule at 720px. */
.compare-highlighted { border: none; }
.compare-highlighted .compare { border: 1px solid var(--rule); }
.compare-highlighted .compare thead th.self {
  background: var(--accent);
  border-top: 3px solid var(--accent);
  border-left: 3px solid var(--accent);
  border-right: 3px solid var(--accent);
}
.compare-highlighted .compare td.self {
  border-left: 3px solid var(--accent);
  border-right: 3px solid var(--accent);
  background: rgba(30, 58, 138, 0.05);
  color: var(--ink);
  font-weight: 600;
}
.compare-highlighted .compare tbody tr:last-child td.self {
  border-bottom: 3px solid var(--accent);
}

/* Mobile: shrink the highlight borders so they don't dominate the
   already-compressed cell content at 11px text. The base mobile rule
   at line ~1323 handles font/padding scaling. */
@media (max-width: 720px) {
  .compare-highlighted .compare thead th.self,
  .compare-highlighted .compare td.self {
    border-left-width: 2px;
    border-right-width: 2px;
  }
  .compare-highlighted .compare thead th.self { border-top-width: 2px; }
  .compare-highlighted .compare tbody tr:last-child td.self { border-bottom-width: 2px; }
}

/* Final CTA — image-left / copy-right navy banner */
.cta-banner {
  background: var(--ink);
  padding: 56px 24px;
}
.cta-banner-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
}
.cta-banner-media {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--ink-2);
}
.cta-banner-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cta-banner-copy h2 {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: white;
  margin: 0 0 12px;
}
.cta-banner-copy p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 17px;
  margin: 0 0 28px;
  max-width: 44ch;
}
.cta-banner-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.cta-banner-actions .btn {
  background: white;
  color: var(--ink);
  border-color: white;
}
.cta-banner-actions .btn:hover {
  background: var(--bg-3);
  color: var(--ink);
}
.cta-banner-actions .btn.ghost.cta-banner-ghost {
  background: transparent;
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
}
.cta-banner-actions .btn.ghost.cta-banner-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: white;
  border-color: rgba(255, 255, 255, 0.6);
}
@media (max-width: 920px) {
  .cta-banner-inner { grid-template-columns: 1fr; gap: 28px; }
  .cta-banner-media { aspect-ratio: 16 / 9; }
}

/* ============================================================
   PILLAR PAGE - /plab-2/ master guide layout
   Flat design system: sharp edges, 1px borders, no shadows.
   ============================================================ */

.pillar-header { padding: 56px 24px 24px; background: var(--bg-2); border-bottom: 1px solid var(--rule); }
.pillar-breadcrumb {
  font-size: 13px;
  color: var(--ink-3);
  margin: 0 0 18px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.pillar-breadcrumb a { color: var(--ink-3); }
.pillar-breadcrumb a:hover { color: var(--accent); }
.pillar-breadcrumb span[aria-hidden] { color: var(--ink-4); }

.pillar-header .page-header-title { max-width: 30ch; margin-bottom: 18px; }
.pillar-header .page-header-lead { max-width: 80ch; font-size: 17px; line-height: 1.6; color: var(--ink-2); }

.pillar-meta {
  margin: 20px 0 0;
  font-size: 13px;
  color: var(--ink-3);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pillar-meta a { color: var(--accent); }
.pillar-meta a:hover { text-decoration: underline; }

.pillar-body { max-width: var(--container); margin: 0 auto; }
.pillar-header .section-inner { max-width: var(--container); }

/* Guide pages (pillar + free-prep): tighten the header-to-body gap (the global
   .section 96px padding leaves a huge void) and let the intro lead fill the
   content width instead of a narrow 70ch column that strands the right half. */
.pillar-header { padding-bottom: 10px; }
.pillar-header .page-header-lead { max-width: none; }
.pillar-section { padding-top: 24px; }

/* Specialty pages: station list + sibling cross-links; plus the /stations/ hub */
.spec-station-list { list-style: none; margin: 8px 0; padding: 0; }
.spec-station-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}
.spec-station-type { font-size: 12px; color: var(--ink-3); flex-shrink: 0; }
.spec-sibling-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 4px 24px;
}
.spec-sibling-list li { padding: 6px 0; }

/* Specialty/skill hub links: SEO internal links to the /plab-2/<slug>-stations/
   pages. Rendered once, at the FOOT of the catalogue (the filter chips at the
   top cover the browsing job), as a compact inline link cloud. */
.spec-hub-section { padding-top: 32px; padding-bottom: 32px; border-top: 1px solid var(--rule); }
.spec-hub-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 14px;
}
.spec-hub {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.spec-hub a {
  display: inline-flex;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--rule);
  color: var(--ink-2);
  text-decoration: none;
  font-size: 13px;
}
.spec-hub a:hover { background: var(--bg-2); color: var(--ink); }
.spec-hub a span { color: var(--ink-3); }

/* Specialty page: topics chips, red flags, skill breakdown, grouped lists */
.spec-topics { list-style: none; margin: 8px 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.spec-topics li {
  border: 1px solid var(--rule);
  background: var(--bg-2);
  padding: 6px 12px;
  font-size: 13px;
  color: var(--ink-2);
}
.spec-redflags, .spec-points { margin: 8px 0 8px; padding-left: 20px; }
.spec-redflags li, .spec-points li { margin-bottom: 6px; line-height: 1.6; color: var(--ink-2); }
.spec-skill-list {
  list-style: none;
  margin: 8px 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2px;
}
.spec-skill-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border: 1px solid var(--rule);
  font-size: 14px;
  color: var(--ink-2);
}
.spec-skill-list li span { color: var(--ink-3); font-weight: 600; }
.spec-group-head {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin: 22px 0 6px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.spec-group-head span { font-size: 12px; font-weight: 600; color: var(--ink-3); }

.pillar-keyfacts {
  background: var(--bg-2);
  border: 1px solid var(--rule);
  padding: 24px 28px;
  margin: 0 0 40px;
}
.pillar-keyfacts h2 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 16px;
}
.pillar-keyfacts dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 24px;
  margin: 0;
}
.pillar-keyfacts dt {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
}
.pillar-keyfacts dd {
  font-size: 14px;
  color: var(--ink);
  margin: 0;
}
@media (max-width: 560px) {
  .pillar-keyfacts { padding: 18px 18px; }
  .pillar-keyfacts dl { grid-template-columns: 1fr; gap: 4px; }
  .pillar-keyfacts dt { margin-top: 8px; }
}

/* Fact tables on pillar/landing pages (fees, dates, attempt rules). Flat:
   solid header band, hairline row rules, no radius or shadow. Wrapped in
   .pillar-table-wrap so wide tables scroll instead of breaking the page. */
.pillar-table-wrap { overflow-x: auto; margin: 0 0 24px; }
.pillar-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.pillar-table th {
  background: var(--accent);
  color: var(--accent-ink);
  text-align: left;
  font-weight: 600;
  padding: 10px 14px;
}
.pillar-table td {
  border-bottom: 1px solid var(--rule);
  padding: 10px 14px;
  color: var(--ink);
  vertical-align: top;
}
.pillar-table caption {
  caption-side: bottom;
  text-align: left;
  font-size: 13px;
  color: var(--ink-3);
  padding: 8px 0 0;
}

.pillar-toc {
  background: var(--bg);
  border: 1px solid var(--rule);
  padding: 24px 28px;
  margin: 0 0 48px;
}
.pillar-toc-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 14px;
}
.pillar-toc ol {
  margin: 0;
  padding-left: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 28px;
  font-size: 14px;
}
.pillar-toc a {
  color: var(--ink);
  text-decoration: none;
}
.pillar-toc a:hover {
  color: var(--accent);
  text-decoration: underline;
}
@media (max-width: 560px) {
  .pillar-toc { padding: 18px; }
  .pillar-toc ol { grid-template-columns: 1fr; }
}

.pillar-body h2 {
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 56px 0 16px;
  scroll-margin-top: 24px;
}
.pillar-body h2:first-of-type { margin-top: 0; }

.pillar-body p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
  margin: 0 0 16px;
}
.pillar-body p strong { color: var(--ink); font-weight: 700; }
.pillar-body p em { font-style: italic; color: var(--ink); }

.pillar-body a:not(.btn) {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.pillar-body a:not(.btn):hover { color: var(--accent-2); }

.pillar-bullets {
  margin: 0 0 20px;
}
.pillar-bullets li {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  margin-bottom: 12px;
}

.pillar-ol {
  margin: 0 0 20px;
  padding-left: 24px;
}
.pillar-ol li {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  margin-bottom: 14px;
  padding-left: 6px;
}
.pillar-ol li::marker {
  font-weight: 700;
  color: var(--accent);
}

/* FAQ inside pillar uses the existing .faq-list but in a narrower flow */
.pillar-body .faq-list { margin: 16px 0 24px; }

/* Library / syllabus card — outer white panel on tinted section, 3-col accordion grid */
.library-card {
  background: var(--bg);
  border: 1px solid var(--rule);
  padding: 48px 56px 40px;
}
.library-card-head { margin-bottom: 36px; }
.library-card-title {
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 8px;
}
.library-card-lead {
  font-size: 15px;
  color: var(--ink-3);
  margin: 0;
}

/* 3-col grid (4 rows, column-major flow) overrides the vertical accordion list */
.library-toc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(4, auto);
  grid-auto-flow: column;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  /* override the inherited border-top: 1px solid var(--ink) from .library-toc */
  border-top-color: var(--rule);
}
.library-toc-grid .library-entry {
  background: var(--bg);
  border-bottom: none;
}
.library-toc-grid .library-entry summary {
  grid-template-columns: 36px 1fr 24px;
  column-gap: 16px;
  padding: 18px 22px;
}
.library-toc-grid .library-entry summary::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--ink-3);
  border-bottom: 2px solid var(--ink-3);
  transform: rotate(45deg);
  transform-origin: 65% 65%;
  transition: transform 0.15s ease;
  align-self: center;
  justify-self: end;
}
.library-toc-grid .library-entry[open] summary::after {
  transform: rotate(225deg);
}
.library-toc-grid .library-entry summary:hover::after {
  border-color: var(--ink);
}
.library-toc-grid .library-entry .library-num {
  font-size: 13px;
  color: var(--ink-4);
}
.library-toc-grid .library-entry .library-name {
  font-size: 15px;
  font-weight: 600;
}
.library-toc-grid .library-entry .library-expand {
  padding: 0 22px 18px 74px;
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.5;
}
.library-toc-grid .library-entry .library-expand p { margin: 0; }

/* Flat tag chips inside expanded accordion content */
.library-tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.library-tags li {
  font-size: 12.5px;
  line-height: 1.2;
  padding: 5px 10px;
  background: var(--bg);
  border: 1px solid var(--rule);
  color: var(--ink-2);
  white-space: nowrap;
}

.library-cta-centered { text-align: center; margin-top: 32px; }

@media (max-width: 920px) {
  .library-card { padding: 32px 24px; }
  .library-toc-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(6, auto); }
}
@media (max-width: 560px) {
  .library-card { padding: 24px 16px; }
  .library-toc-grid { grid-template-columns: 1fr; grid-template-rows: auto; grid-auto-flow: row; }
  .library-toc-grid .library-entry summary { padding: 16px 18px; }
  .library-toc-grid .library-entry .library-expand { padding: 0 18px 14px 60px; }
}

/* ============================================================
   PROGRESS PAGE - /progress/ longitudinal analytics
   All classes namespaced pg-* (see the .band-N collision gotcha).
   Flat design system: solid colours, sharp edges, no shadows.
   ============================================================ */

.progress .section { padding: 28px 0; }
.progress .section-inner { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.progress .page-header { padding: 44px 24px 8px; max-width: var(--container); margin: 0 auto; }
.pg-last-section { padding-bottom: 72px !important; }

.pg-empty { border: 1px solid var(--rule); padding: 48px 40px; text-align: center; }
.pg-empty .section-sub { max-width: 60ch; margin: 8px auto 24px; }

/* readiness strip */
.pg-readiness { display: grid; grid-template-columns: 280px 1fr 1fr 1fr; border: 1px solid var(--rule); }
.pg-readiness > div { padding: 22px 24px; }
.pg-readiness > div + div { border-left: 1px solid var(--rule); }
.pg-readiness-score { background: var(--accent-deep); color: #fff; }
.pg-readiness-score .pg-stat-label { color: #94a3b8; }
.pg-big { font-size: 52px; font-weight: 800; line-height: 1.05; }
.pg-verdict { display: inline-block; margin-top: 8px; color: #fff; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 3px 10px; }
.pg-verdict.good { background: var(--good); }
.pg-verdict.warn { background: var(--warn); }
.pg-verdict.bad { background: var(--bad); }
.pg-note { font-size: 13px; color: #cbd5e1; margin-top: 10px; line-height: 1.45; }
.pg-stat-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-3); }
.pg-stat-value { font-size: 32px; font-weight: 800; margin-top: 4px; }
.pg-stat-delta { font-size: 13px; font-weight: 600; margin-top: 2px; }
.pg-stat-delta.up { color: var(--good); }
.pg-stat-delta.down { color: var(--bad); }
.pg-stat-delta.flat { color: var(--ink-3); }
.pg-stat-note { font-size: 13px; color: var(--ink-3); margin-top: 6px; }
.pg-takeaway { margin-top: 10px; }
.pg-takeaway strong { color: var(--ink-2); }

/* panels */
.pg-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.pg-panel { border: 1px solid var(--rule); background: var(--bg); }
.pg-panel-head { padding: 16px 20px; border-bottom: 1px solid var(--rule); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pg-panel-title { font-size: 15px; font-weight: 800; }
.pg-panel-note { font-size: 12.5px; color: var(--ink-3); }
.pg-panel-body { padding: 20px; }

/* trend chart */
.pg-legend { display: flex; gap: 18px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 10px; flex-wrap: wrap; }
.pg-legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 6px; }
.pg-legend .l-dg::before { background: var(--accent); }
.pg-legend .l-cm::before { background: var(--warn); }
.pg-legend .l-is::before { background: var(--good); }
.pg-chart svg { width: 100%; height: auto; display: block; }

/* consultation metrics */
.pg-metric-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; gap: 12px; flex-wrap: wrap; }
.pg-metric-name { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.pg-metric-val { font-size: 13.5px; font-weight: 700; }
.pg-bar { height: 14px; background: var(--bg-3); margin-bottom: 16px; display: flex; }
.pg-bar .fill { background: var(--accent); }
.pg-bar .fill.alt { background: var(--ink-4); }
.pg-bar .fill.good { background: var(--good); }
.pg-bar .fill.warn { background: var(--warn); }
.pg-split-caption { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--ink-3); margin: -12px 0 16px; }
.pg-kpi-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--rule); }
.pg-kpi { padding: 14px 0 4px; }
.pg-kpi + .pg-kpi { border-left: 1px solid var(--rule); padding-left: 18px; }
.pg-kpi.pg-kpi-row2 { border-top: 1px solid var(--rule); }
.pg-kpi.pg-kpi-row2 + .pg-kpi.pg-kpi-row2 { border-left: 1px solid var(--rule); }
.pg-kpi:nth-child(odd) { border-left: none; padding-left: 0; padding-right: 18px; }
.pg-kpi .pg-stat-value { font-size: 24px; }
.pg-kpi .pg-flag { position: relative; top: -4px; }
.pg-flag { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 2px 8px; }
.pg-flag.good { background: #dcfce7; color: var(--good); }
.pg-flag.warn { background: #fef3c7; color: var(--warn); }
.pg-flag.bad { background: #fee2e2; color: var(--bad); }

/* communication habits */
.pg-habits-grid { grid-template-columns: 1.15fr 1fr; }
.pg-habit-list { list-style: none; margin: 0; padding: 0; }
.pg-habit-list li { display: grid; grid-template-columns: 1fr auto auto; gap: 8px 18px; padding: 14px 0; border-bottom: 1px solid var(--rule); align-items: center; }
.pg-habit-list li:last-child { border-bottom: none; }
.pg-habit-name { font-size: 14px; font-weight: 700; }
.pg-habit-tip { font-size: 12.5px; color: var(--ink-3); font-weight: 400; display: block; }
.pg-habit-rate { font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.pg-habit-rate .pct { display: block; font-size: 11.5px; color: var(--ink-3); font-weight: 600; }
.pg-dots { display: flex; gap: 4px; }
.pg-dot { width: 16px; height: 16px; display: inline-block; flex: 0 0 auto; }
.pg-dot.hit { background: var(--good); }
.pg-dot.miss { background: var(--bad); }
.pg-dot.na { background: var(--bg-3); }
.pg-dots-caption { font-size: 11px; color: var(--ink-4); margin-top: 10px; }
.pg-dots-caption .pg-dot { width: 10px; height: 10px; position: relative; top: 1px; }

.pg-insight { display: flex; gap: 14px; align-items: baseline; background: var(--accent-deep); padding: 16px 20px; margin-top: 18px; }
.pg-insight-mark { flex: 0 0 auto; width: 12px; height: 12px; background: #fbbf24; position: relative; top: 1px; }
.pg-insight p { font-size: 14px; line-height: 1.55; color: #e2e8f0; margin: 0; }
.pg-insight p strong { color: #fff; }

.pg-legend .l-hist::before { background: var(--accent); }
.pg-legend .l-mgmt::before { background: var(--good); }

/* safety watchlist */
.pg-safety-list { list-style: none; margin: 0; padding: 0; }
.pg-safety-list li { display: flex; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.pg-safety-list li:last-child { border-bottom: none; }
.pg-safety-mark { flex: 0 0 auto; width: 12px; height: 12px; background: var(--bad); position: relative; top: 1px; }
.pg-safety-mark.fixed { background: var(--good); }
.pg-safety-text { font-size: 14px; }
.pg-safety-text .where { color: var(--ink-3); font-size: 12.5px; display: block; }
.pg-safety-state { margin-left: auto; flex-shrink: 0; }

/* coverage map */
.pg-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.pg-coverage-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.pg-cov { background: var(--bg); padding: 14px 16px; }
.pg-cov-name { font-size: 13px; font-weight: 700; }
.pg-cov.none .pg-cov-name { color: var(--ink-3); }
.pg-cov-count { font-size: 12px; color: var(--ink-3); margin: 2px 0 8px; }
.pg-cov-bar { height: 8px; background: var(--bg-3); }
.pg-cov-bar .fill { height: 8px; background: var(--accent); }
.pg-cov-zero { font-size: 11px; font-weight: 700; color: var(--bad); text-transform: uppercase; letter-spacing: 0.05em; }

/* recommendations */
.pg-rec-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.pg-rec { background: var(--bg); padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.pg-rec:hover { background: var(--bg-2); }
.pg-rec-why { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--warn); }
.pg-rec-title { font-size: 15px; font-weight: 800; }
.pg-rec-meta { font-size: 12.5px; color: var(--ink-3); }
.pg-rec .btn { margin-top: 10px; align-self: flex-start; }

@media (max-width: 980px) {
  .pg-readiness { grid-template-columns: 1fr 1fr; }
  .pg-readiness > div + div { border-left: none; }
  .pg-readiness > div:nth-child(even) { border-left: 1px solid var(--rule); }
  .pg-readiness > div:nth-child(n+2) { border-top: 1px solid var(--rule); }
  .pg-readiness-score { grid-column: 1 / -1; }
  .pg-grid-2 { grid-template-columns: 1fr; }
  .pg-rec-list { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .pg-readiness { grid-template-columns: 1fr; }
  .pg-readiness > div:nth-child(even) { border-left: none; }
  .pg-kpi-grid { grid-template-columns: 1fr; }
  .pg-kpi + .pg-kpi { border-left: none; padding-left: 0; border-top: 1px solid var(--rule); }
  .pg-safety-list li { flex-wrap: wrap; }
  .pg-safety-state { margin-left: 26px; }
  .pg-habit-list li { grid-template-columns: auto 1fr; }
  .pg-habit-name { grid-column: 1 / -1; }
  .pg-habit-rate { text-align: left; }
  .pg-habit-rate .pct { display: inline; margin-left: 6px; }
}

/* ============================================================
   CONSULTATION STRUCTURE - feedback-page panels (cs-* namespace)
   Phase timeline + ICE/safety-netting checklist. Rendered by
   structureSection() in app.js only when result.structure exists.
   ============================================================ */

.cs-panel { border: 1px solid var(--rule); background: var(--bg); padding: 20px; margin-bottom: 28px; }

.cs-tl-label { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); margin-bottom: 6px; }
.cs-timeline { display: flex; height: 44px; border: 1px solid var(--rule); margin-bottom: 14px; }
.cs-timeline.ref { height: 26px; opacity: 0.85; }
.cs-seg { display: flex; align-items: center; justify-content: center; font-size: 11.5px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; }
.cs-seg.s-open { background: var(--accent-deep); }
.cs-seg.s-hist { background: var(--accent); }
.cs-seg.s-ice { background: #0e7490; }
.cs-seg.s-exam { background: #475569; }
.cs-seg.s-mgmt { background: var(--good); }
.cs-seg.s-net { background: var(--warn); }
.cs-seg.s-close { background: var(--ink-4); }

.cs-key { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--ink-2); margin-bottom: 16px; }
.cs-key span::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 5px; }
.cs-key .k-open::before { background: var(--accent-deep); }
.cs-key .k-hist::before { background: var(--accent); }
.cs-key .k-ice::before { background: #0e7490; }
.cs-key .k-exam::before { background: #475569; }
.cs-key .k-mgmt::before { background: var(--good); }
.cs-key .k-net::before { background: var(--warn); }
.cs-key .k-close::before { background: var(--ink-4); }

.cs-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.cs-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); padding: 8px 10px; border-bottom: 1px solid var(--rule); }
.cs-table td { padding: 9px 10px; border-bottom: 1px solid var(--rule); }
.cs-table tr:last-child td { border-bottom: none; }
.cs-table .num { font-variant-numeric: tabular-nums; font-weight: 700; }

.cs-flag { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 2px 8px; }
.cs-flag.good { background: #dcfce7; color: var(--good); }
.cs-flag.warn { background: #fef3c7; color: var(--warn); }
.cs-flag.bad { background: #fee2e2; color: var(--bad); }

.cs-insight { display: flex; gap: 14px; align-items: baseline; background: var(--accent-deep); padding: 16px 20px; margin-top: 18px; }
.cs-insight-mark { flex: 0 0 auto; width: 12px; height: 12px; background: #fbbf24; position: relative; top: 1px; }
.cs-insight p { font-size: 14px; line-height: 1.55; color: #e2e8f0; margin: 0; }
.cs-insight p strong { color: #fff; }

.cs-ice-list { list-style: none; margin: 0; padding: 0; }
.cs-ice-list li { display: flex; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.cs-ice-list li:last-child { border-bottom: none; }
.cs-mark { flex: 0 0 auto; width: 12px; height: 12px; position: relative; top: 1px; }
.cs-mark.hit { background: var(--good); }
.cs-mark.miss { background: var(--bad); }
.cs-ice-text { font-size: 14px; }
.cs-ice-text .quote { display: block; color: var(--ink-3); font-size: 12.5px; font-style: italic; }
.cs-ice-text .tip { display: block; color: var(--ink-3); font-size: 12.5px; }
.cs-ice-list .cs-flag { margin-left: auto; flex-shrink: 0; }

@media (max-width: 560px) {
  .cs-seg { font-size: 0; }
  .cs-ice-list li { flex-wrap: wrap; }
  .cs-ice-list .cs-flag { margin-left: 26px; }
}

/* ============================================================
   PRACTICE-PARTNER LANDING PAGE - /plab-2/practice-partner/
   (pp-* namespace). Flat design: solid colours, sharp edges.
   ============================================================ */

.pp-inner { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.pp-section { padding: 80px 0; }
.pp-tint { background: var(--bg-2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.pp-h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; letter-spacing: -0.02em; }
.pp-lead { color: var(--ink-3); font-size: 16.5px; margin-top: 10px; max-width: 62ch; }
.pp-body { font-size: 15.5px; color: var(--ink-2); margin-bottom: 14px; line-height: 1.65; }

/* hero */
.pp-hero { padding: 88px 0 72px; }
.pp-hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.pp-kicker { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 14px; }
.pp-h1 { font-size: clamp(36px, 5vw, 58px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.08; }
.pp-hero-sub { color: var(--ink-2); font-size: 18px; margin: 20px 0 28px; max-width: 50ch; }
.pp-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.pp-pill { font-size: 13px; font-weight: 700; color: var(--good); background: #dcfce7; padding: 6px 12px; }
.pp-hero-points { margin-top: 26px; display: flex; gap: 22px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-3); }
.pp-hero-points span::before { content: "\25A0"; color: var(--accent); margin-right: 7px; font-size: 9px; vertical-align: 2px; }

/* room mock illustration */
.pp-mock { border: 1px solid var(--rule); background: var(--bg); }
.pp-mock-bar { background: var(--ink); color: #fff; display: flex; gap: 12px; align-items: center; padding: 10px 14px; font-size: 12px; }
.pp-mock-role { background: var(--accent); padding: 2px 8px; font-weight: 700; }
.pp-mock-timer { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-weight: 700; }
.pp-mock-live { margin-left: auto; color: #86efac; font-weight: 700; }
.pp-mock-live::before { content: "\25CF"; margin-right: 5px; }
.pp-mock-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule); }
.pp-mock-pane { background: var(--bg); padding: 16px; }
.pp-mock-pane h5 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-3); margin: 0 0 10px; }
.pp-mock-pane p { font-size: 12.5px; color: var(--ink-2); margin: 0 0 8px; line-height: 1.5; }
.pp-mock-pane p strong { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-4); }
.pp-mock-check { list-style: none; margin: 0; padding: 0; }
.pp-mock-check li { display: flex; gap: 8px; font-size: 12.5px; color: var(--ink-2); padding: 5px 0; border-bottom: 1px solid var(--rule); align-items: center; }
.pp-mock-check li:last-child { border-bottom: none; }
.pp-mock-check em { color: var(--bad); font-style: normal; font-size: 10.5px; font-weight: 700; }
.pp-box { width: 13px; height: 13px; border: 1.5px solid var(--ink-4); flex-shrink: 0; position: relative; }
.pp-box.on { background: var(--good); border-color: var(--good); }
.pp-box.on::after { content: "\2713"; color: #fff; font-size: 9px; position: absolute; top: -2px; left: 2px; }
.pp-mock-score { margin-top: 12px; }
.pp-mock-scorebar { height: 10px; background: var(--bg-3); }
.pp-mock-scorebar span { display: block; height: 10px; background: var(--accent); }
.pp-mock-scorecap { font-size: 11px; color: var(--ink-3); margin-top: 4px; display: flex; justify-content: space-between; }
.pp-mock-caption { text-align: center; font-size: 12px; color: var(--ink-4); padding: 10px; border-top: 1px solid var(--rule); }

/* steps */
.pp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin-top: 40px; }
.pp-step { background: var(--bg); padding: 28px 26px; }
.pp-step-num { width: 34px; height: 34px; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 15px; margin-bottom: 16px; }
.pp-step h3 { font-size: 17px; font-weight: 800; margin: 0 0 8px; letter-spacing: -0.01em; }
.pp-step p { font-size: 14px; color: var(--ink-3); line-height: 1.6; margin: 0; }
.pp-step p strong { color: var(--ink-2); }

/* why-patient split */
.pp-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.pp-split .pp-h2 { margin-bottom: 14px; }
.pp-quote { background: var(--accent-deep); color: #fff; padding: 32px; }
.pp-quote p { font-size: 17px; line-height: 1.65; color: #e2e8f0; margin: 0; }
.pp-quote p strong { color: #fff; }
.pp-quote-who { margin-top: 16px !important; font-size: 12.5px !important; color: #94a3b8 !important; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }

/* comparison */
.pp-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin-top: 40px; }
.pp-compare-col { background: var(--bg); padding: 28px; }
.pp-compare-col.self { background: var(--accent-deep); }
.pp-compare-col h3 { font-size: 16px; font-weight: 800; margin: 0 0 16px; }
.pp-compare-col.self h3 { color: #fff; }
.pp-compare-col ul { list-style: none; margin: 0; padding: 0; }
.pp-compare-col li { font-size: 14px; padding: 9px 0; border-bottom: 1px solid var(--rule); color: var(--ink-2); }
.pp-compare-col li:last-child { border-bottom: none; }
.pp-compare-col li::before { content: "\2717"; color: var(--bad); font-weight: 700; margin-right: 10px; }
.pp-compare-col.self li { color: #e2e8f0; border-bottom-color: #1e3a5f; }
.pp-compare-col.self li::before { content: "\2713"; color: #86efac; }

/* pairs-with strip */
.pp-pairs { display: flex; gap: 18px; align-items: center; justify-content: space-between; border: 1px solid var(--rule); padding: 24px 28px; flex-wrap: wrap; }
.pp-pairs p { font-size: 15px; color: var(--ink-2); max-width: 60ch; margin: 0; }
.pp-pairs p strong { color: var(--ink); }

/* faq */
.pp-faq { margin-top: 32px; border-top: 1px solid var(--rule); }
.pp-faq details { border-bottom: 1px solid var(--rule); }
.pp-faq summary { cursor: pointer; padding: 18px 4px; font-size: 16px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.pp-faq summary::-webkit-details-marker { display: none; }
.pp-faq summary::after { content: "+"; color: var(--ink-3); font-weight: 400; font-size: 20px; }
.pp-faq details[open] summary::after { content: "\2212"; }
.pp-faq-a { padding: 0 4px 18px; font-size: 15px; color: var(--ink-2); line-height: 1.65; max-width: 75ch; }

/* cta */
.pp-cta { background: var(--ink); padding: 64px 24px; text-align: center; }
.pp-cta h2 { color: #fff; font-size: clamp(26px, 3.5vw, 40px); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 10px; }
.pp-cta p { color: rgba(255,255,255,0.7); font-size: 16.5px; margin: 0 0 26px; }
.pp-cta .btn { background: #fff; color: var(--ink); border-color: #fff; }
.pp-cta .btn:hover { background: var(--bg-3); color: var(--ink); }

@media (max-width: 980px) {
  .pp-hero-grid, .pp-split, .pp-compare { grid-template-columns: 1fr; }
  .pp-steps { grid-template-columns: 1fr; }
  .pp-section { padding: 56px 0; }
  .pp-hero { padding: 56px 0 48px; }
}

/* ==========================================================================
   Soft-radius pass (2026-07-06). The design language stays flat - solid
   colours, hard hierarchy, no shadows - but interactive elements and
   contained panels now carry a small consistent radius (GMC-style).
   Tokens below are the only radii; use them, don't invent per-component
   values. Appended last so equal-specificity earlier rules lose.
   ========================================================================== */
:root {
  --radius: 8px;      /* buttons, inputs, cards, panels */
  --radius-sm: 5px;   /* tags, chips-within-things, small labels */
}

/* Buttons and chip-shaped controls */
.btn { border-radius: var(--radius); }
.chip { border-radius: var(--radius); }
.hero-chip { border-radius: var(--radius); }
.filterbar-clear { border-radius: var(--radius-sm); }

/* Search bars: round the container and clip so the attached solid button
   inherits the rounding. Dropdown continues the shape underneath. */
.hero-search-bar { border-radius: var(--radius); overflow: hidden; }
.hero-search-results { border-radius: 0 0 var(--radius) var(--radius); overflow: hidden; }
.filterbar-search { border-radius: var(--radius); }

/* Small labels and tags */
.tag,
.hero-search-tag,
.hero-search-kbd,
.scenario-card-setting,
.station-category-count,
.hero-eyebrow,
.start-card-eyebrow { border-radius: var(--radius-sm); }

/* Cards and contained panels */
.scenario-card,
.start-card,
.pillar-keyfacts,
.pillar-toc,
.spec-hub a,
.hero-stats-strip,
.trust-bar-item,
.invite-cta,
.condition-cta,
.faq-list details,
.score-card { border-radius: var(--radius); }
.scenario-card { overflow: hidden; } /* keeps the 3px accent top bar inside the curve */

/* Media and form fields */
.hero-media { border-radius: var(--radius); overflow: hidden; }
.auth-form input,
.field input,
.auth-error { border-radius: var(--radius-sm); }

/* Social-proof strip above the header (flag-gated; see marketing.context_
   processors.proof_bar). Gold stars are deliberately plain glyphs - no
   container squares - to stay clear of third-party review-brand trade dress. */
.proof-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 13px;
  padding: 9px 16px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--rule);
  font-size: 13px;
  color: var(--ink-2);
}
.proof-stars { display: inline-flex; gap: 1.5px; }
.proof-stars svg { width: 16px; height: 16px; fill: #f5b50a; }
.proof-strip strong { color: var(--ink); font-weight: 800; font-variant-numeric: tabular-nums; }
.proof-sep { width: 1px; height: 14px; background: var(--rule); }
.proof-link { color: var(--accent); font-weight: 600; white-space: nowrap; }
@media (max-width: 700px) {
  .proof-strip { gap: 8px; font-size: 12px; padding: 8px 10px; }
  .proof-stars svg { width: 13px; height: 13px; }
  .proof-long { display: none; }
}

/* ---------- Admin activity panel (dashboard, staff only) ---------- */
.admin-activity {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--bg-2);
  padding: 20px 22px;
  margin-bottom: 26px;
}
.admin-activity-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.admin-activity-head .section-title { margin: 0; font-size: 20px; }
.admin-activity-tag {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  margin-left: 10px;
  vertical-align: 3px;
}
.admin-activity-totals { font-size: 14px; color: var(--ink-3); }
.admin-health {
  font-size: 14px;
  line-height: 1.5;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--good);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 16px;
}
.admin-health.bad { border-left-color: var(--bad); }
.admin-health-error {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--ink-3);
  word-break: break-word;
}
.admin-table-wrap { overflow-x: auto; }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.admin-table th {
  text-align: left;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 8px 10px;
  border-bottom: 2px solid var(--rule-strong);
  white-space: nowrap;
}
.admin-table td { padding: 8px 10px; border-bottom: 1px solid var(--rule); }
.admin-fail { color: var(--bad); font-weight: 700; }
.admin-activity-note { font-size: 12.5px; color: var(--ink-4); margin: 12px 0 0; }
