:root {
  --ink: #102a43;
  --muted: #526777;
  --teal: #0f766e;
  --teal-dark: #0b5d57;
  --teal-soft: #e8f7f3;
  --sky: #eaf4fb;
  --cream: #fbfaf7;
  --white: #ffffff;
  --line: #dbe5ea;
  --warning: #8a4b08;
  --warning-soft: #fff7e6;
  --danger: #9b1c1c;
  --danger-soft: #fff1f1;
  --shadow: 0 18px 50px rgba(16, 42, 67, .10);
  --radius: 20px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--teal-dark); }
a:hover { color: var(--teal); }
img, svg { max-width: 100%; }
button, input, textarea, select { font: inherit; }
[hidden] { display: none !important; }
:focus-visible {
  outline: 3px solid #f59e0b;
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: white;
  padding: .75rem 1rem;
  z-index: 999;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.container { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }
.narrow { width: min(calc(100% - 2rem), 820px); margin-inline: auto; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--teal-dark);
  font-weight: 760;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .78rem;
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--teal); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 247, .94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(219, 229, 234, .9);
}
.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand { display: inline-flex; width: 225px; flex: 0 0 auto; }
.site-nav { display: flex; align-items: center; gap: .25rem; }
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: .94rem;
  font-weight: 680;
  padding: .58rem .7rem;
  border-radius: 999px;
  white-space: nowrap;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--teal-soft); color: var(--teal-dark); }
.site-nav a.pathway { border: 1px solid var(--line); background: var(--white); }
.site-nav a.pathway[aria-current="page"] { border-color: var(--teal); background: var(--teal); color: white; }
.nav-toggle { display: none; border: 1px solid var(--line); background: white; border-radius: 12px; padding: .55rem .7rem; color: var(--ink); }

.status-bar {
  background: var(--ink);
  color: #e8f7f3;
  font-size: .86rem;
  text-align: center;
  padding: .45rem 1rem;
}
.status-bar strong { color: white; }

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 8vw, 7.5rem) 0 clamp(3.75rem, 7vw, 6.5rem);
  background:
    radial-gradient(circle at 86% 18%, rgba(15,118,110,.13), transparent 27%),
    radial-gradient(circle at 72% 80%, rgba(79,145,188,.14), transparent 23%),
    linear-gradient(180deg, #ffffff 0%, #f7fbfa 100%);
  border-bottom: 1px solid var(--line);
}
.hero::after {
  content: "";
  position: absolute;
  width: 440px;
  height: 440px;
  right: -140px;
  top: -140px;
  border: 1px solid rgba(15,118,110,.18);
  border-radius: 50%;
  box-shadow: 0 0 0 44px rgba(15,118,110,.035), 0 0 0 88px rgba(15,118,110,.025);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.035em; margin-top: 0; }
h1 { font-size: clamp(2.75rem, 6.2vw, 5.35rem); margin-bottom: 1.25rem; max-width: 13ch; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: .6rem; }
.lede { font-size: clamp(1.1rem, 2vw, 1.32rem); color: var(--muted); max-width: 62ch; }
.hero-actions, .button-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.7rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 48px;
  padding: .75rem 1.05rem;
  border-radius: 12px;
  border: 1px solid var(--teal);
  background: var(--teal);
  color: white;
  font-weight: 760;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(15,118,110,.14);
}
.button:hover { background: var(--teal-dark); color: white; }
.button.secondary { background: white; color: var(--teal-dark); box-shadow: none; }
.button.secondary:hover { background: var(--teal-soft); }
.button.ghost { background: transparent; border-color: var(--line); color: var(--ink); box-shadow: none; }
.button.ghost:hover { background: white; }

.radar-card {
  position: relative;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(219,229,234,.95);
  border-radius: 28px;
  padding: 1.2rem;
  box-shadow: var(--shadow);
}
.report-mini { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: white; }
.report-mini-header { display: flex; justify-content: space-between; gap: 1rem; align-items: center; background: var(--ink); color: white; padding: .85rem 1rem; }
.report-mini-header span { font-size: .78rem; opacity: .8; }
.report-mini-body { padding: 1rem; }
.priority { display: grid; grid-template-columns: auto 1fr; gap: .8rem; align-items: start; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.priority:last-child { border-bottom: 0; }
.priority-number { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal-dark); font-weight: 800; }
.priority p { margin: .18rem 0 0; color: var(--muted); font-size: .9rem; }

.section { padding: clamp(3.75rem, 7vw, 6.5rem) 0; }
.section.white { background: white; }
.section.soft { background: var(--teal-soft); }
.section.sky { background: var(--sky); }
.section-head { max-width: 760px; margin-bottom: 2.25rem; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

.pathway-grid, .card-grid, .feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.card-grid.three, .feature-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.45rem;
  box-shadow: 0 8px 24px rgba(16,42,67,.05);
}
.card p { color: var(--muted); }
.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-weight: 850;
  margin-bottom: 1rem;
}
.pathway-card {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.pathway-card::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  right: -70px;
  bottom: -80px;
  background: var(--teal-soft);
  z-index: 0;
}
.pathway-card > * { position: relative; z-index: 1; }
.pathway-card.professional::after { background: var(--sky); }
.pathway-label { font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-dark); }
.pathway-card h3 { font-size: clamp(1.6rem, 3vw, 2.25rem); max-width: 16ch; }

.check-list, .plain-list { list-style: none; padding: 0; margin: 1.1rem 0 0; }
.check-list li { position: relative; padding-left: 1.75rem; margin: .55rem 0; color: var(--muted); }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--teal); font-weight: 900; }
.plain-list li { padding: .75rem 0; border-bottom: 1px solid var(--line); }
.plain-list li:last-child { border-bottom: 0; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.quote-box { border-left: 4px solid var(--teal); padding: 1rem 0 1rem 1.25rem; font-size: 1.2rem; color: var(--ink); }
.quote-box cite { display: block; font-style: normal; font-size: .9rem; color: var(--muted); margin-top: .75rem; }

.notice {
  border: 1px solid #f0d29d;
  background: var(--warning-soft);
  color: #633407;
  padding: 1rem 1.1rem;
  border-radius: 14px;
}
.notice.danger { border-color: #f3b4b4; background: var(--danger-soft); color: var(--danger); }
.notice strong { color: inherit; }

.page-hero { padding: clamp(3rem, 7vw, 6rem) 0 3.5rem; background: white; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.6rem, 5vw, 4.6rem); max-width: 16ch; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; margin-bottom: 1.5rem; font-size: .9rem; color: var(--muted); }
.breadcrumb a { color: var(--teal-dark); text-decoration: none; }

.kicker-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kicker-strip div { background: white; padding: 1.2rem; text-align: center; }
.kicker-strip strong { display: block; font-size: 1.05rem; }
.kicker-strip span { color: var(--muted); font-size: .88rem; }

.demo-shell { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.demo-shell > * { min-width: 0; }
.demo-sidebar { position: sticky; top: 104px; }
.segmented { display: flex; gap: .4rem; padding: .35rem; background: #edf3f5; border-radius: 14px; }
.segmented button { flex: 1; border: 0; border-radius: 10px; padding: .65rem .7rem; background: transparent; color: var(--muted); font-weight: 760; cursor: pointer; }
.segmented button[aria-selected="true"] { background: white; color: var(--ink); box-shadow: 0 2px 10px rgba(16,42,67,.08); }
.lab-list { width: 100%; border-collapse: collapse; }
.lab-list th, .lab-list td { padding: .72rem .55rem; border-bottom: 1px solid var(--line); text-align: left; font-size: .92rem; }
.lab-list th { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.flag-high, .flag-low { display: inline-flex; border-radius: 999px; padding: .18rem .45rem; font-size: .72rem; font-weight: 800; }
.flag-high { background: #fff0e5; color: #8a3e00; }
.flag-low { background: #eaf4fb; color: #245a7a; }
.flag-normal { color: var(--muted); font-size: .78rem; }
.demo-panel[hidden] { display: none; }
.demo-panel { margin-top: 1rem; }
.report-header { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; margin-bottom: 1.2rem; }
.panel-title { font-size: 2rem; margin-top: .7rem; }
.panel-section-title { margin-top: 1.5rem; }
.demo-profile-note { font-size: .9rem; color: var(--muted); }
.table-scroll { overflow-x: auto; }
.table-scroll:focus-visible { border-radius: 8px; }
.table-scroll .lab-list { min-width: 560px; }
.badge { display: inline-flex; align-items: center; border-radius: 999px; background: var(--teal-soft); color: var(--teal-dark); font-size: .78rem; font-weight: 800; padding: .35rem .6rem; }
.badge.gray { background: #edf3f5; color: var(--muted); }
.evidence-row { display: grid; grid-template-columns: 120px 1fr; gap: .9rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.evidence-row:last-child { border-bottom: 0; }
.evidence-row strong { font-size: .88rem; }
.evidence-row span { color: var(--muted); }

.library-controls { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.filter-button { border: 1px solid var(--line); background: white; color: var(--ink); border-radius: 999px; padding: .55rem .8rem; font-weight: 740; cursor: pointer; }
.filter-button[aria-pressed="true"] { background: var(--teal); color: white; border-color: var(--teal); }
.filter-status { margin: -1rem 0 1.5rem; color: var(--muted); font-size: .9rem; }
.library-card { display: flex; flex-direction: column; }
.library-card .meta { display: flex; flex-wrap: wrap; gap: .5rem; color: var(--muted); font-size: .8rem; margin-bottom: .8rem; }
.library-card .card-footer { margin-top: auto; padding-top: 1rem; }
.collection-card h3 a { color: var(--ink); text-decoration: none; }
.collection-card h3 a:hover { color: var(--teal-dark); text-decoration: underline; }
.collection-card .meta { align-items: center; }
.collection-empty { color: var(--muted); }
.content-meta { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.2rem 0; }
.content-byline { color: var(--muted); }
.content-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.4rem 0; }
.content-video { width: 100%; aspect-ratio: 16 / 9; background: var(--ink); border: 1px solid var(--line); border-radius: 16px; }
.content-embed { width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: 16px; background: var(--ink); }
.content-transcript { white-space: normal; }
.content-transcript p { color: var(--muted); }
.version-table { width: 100%; border-collapse: collapse; }
.version-table th, .version-table td { padding: .75rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.version-table th { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.tag-list { display: flex; flex-wrap: wrap; gap: .45rem; padding: 0; list-style: none; }
.tag-list li { background: #edf3f5; color: var(--muted); border-radius: 999px; padding: .25rem .55rem; font-size: .78rem; }
.preview-banner { background: var(--warning-soft); color: var(--warning); padding: .7rem 1rem; text-align: center; font-weight: 800; }
.status-withdrawn { background: var(--danger-soft); color: var(--danger); }
.status-superseded { background: var(--warning-soft); color: var(--warning); }

.timeline { border-left: 2px solid var(--line); margin-left: .5rem; padding-left: 1.5rem; }
.timeline-item { position: relative; padding-bottom: 1.5rem; }
.timeline-item::before { content: ""; position: absolute; width: 12px; height: 12px; left: -1.93rem; top: .35rem; border-radius: 50%; background: var(--teal); border: 3px solid white; box-shadow: 0 0 0 1px var(--teal); }
.timeline-item p { color: var(--muted); }

.cta-panel { background: var(--ink); color: white; padding: clamp(2rem, 5vw, 4rem); border-radius: 26px; position: relative; overflow: hidden; }
.cta-panel::after { content: ""; position: absolute; width: 260px; height: 260px; right: -80px; top: -100px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; box-shadow: 0 0 0 35px rgba(255,255,255,.035), 0 0 0 70px rgba(255,255,255,.025); }
.cta-panel h2 { max-width: 17ch; }
.cta-panel p { color: #cbd9e4; max-width: 58ch; }
.cta-panel .button.secondary { border-color: white; }
.cta-panel > * { position: relative; z-index: 1; }

.prose h2 { margin-top: 2.2rem; font-size: 1.8rem; }
.prose h3 { margin-top: 1.7rem; }
.prose p, .prose li { color: var(--muted); }
.prose li { margin: .4rem 0; }
.compact-note { font-size: .88rem; margin-top: 1rem; }
.section-spacer { height: 1rem; }

.site-footer { background: #0c2235; color: #c5d4df; padding: 3.5rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 2rem; }
.footer-brand { width: 210px; filter: brightness(0) invert(1); opacity: .95; }
.site-footer h3 { color: white; font-size: 1rem; letter-spacing: 0; }
.site-footer a { color: #dce9f0; text-decoration: none; }
.site-footer a:hover { color: white; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: .45rem 0; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .82rem; }

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; inset: 76px 1rem auto; background: white; border: 1px solid var(--line); border-radius: 18px; padding: .7rem; box-shadow: var(--shadow); flex-direction: column; align-items: stretch; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .75rem .85rem; }
  .hero-grid, .split { grid-template-columns: 1fr; }
  .hero-grid { gap: 2.3rem; }
  .radar-card { max-width: 680px; }
  .card-grid.three, .feature-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kicker-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo-shell { grid-template-columns: 1fr; }
  .demo-sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 650px) {
  .container, .narrow { width: min(calc(100% - 1.25rem), var(--max)); }
  .brand { width: 188px; }
  .header-inner { min-height: 68px; }
  .site-nav { inset: 68px .65rem auto; }
  h1 { font-size: clamp(2.45rem, 13vw, 3.5rem); }
  .pathway-grid, .card-grid, .card-grid.three, .feature-grid, .feature-grid.three { grid-template-columns: 1fr; }
  .kicker-strip { grid-template-columns: 1fr 1fr; }
  .hero-actions .button, .button-row .button { width: 100%; }
  .report-header { flex-direction: column; }
  .evidence-row { grid-template-columns: 1fr; gap: .2rem; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
