:root {
  --ink: #17212b;
  --muted: #5b6875;
  --line: #d7dedf;
  --paper: #fbfcfa;
  --surface: #ffffff;
  --soft: #eef4f0;
  --blue-soft: #eaf2f7;
  --accent: #176b5b;
  --accent-dark: #0e5144;
  --gold: #d4952c;
  --danger: #a43c3c;
  --radius: 14px;
  --shadow: 0 16px 44px rgba(23, 33, 43, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a { color: var(--accent-dark); }
a:hover { color: var(--accent); }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.14; letter-spacing: -0.025em; }
h1 { font-size: clamp(2.65rem, 7vw, 5.7rem); max-width: 950px; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: 1.22rem; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: .7rem 1rem;
  color: white;
  background: var(--ink);
}
.skip-link:focus { top: 1rem; }

.site-header {
  width: min(1240px, calc(100% - 2rem));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
  letter-spacing: -.01em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: white;
  background: var(--accent);
  font-size: .75rem;
  letter-spacing: .03em;
}

nav { display: flex; gap: 1.45rem; align-items: center; }
nav a { color: var(--muted); text-decoration: none; font-size: .93rem; }
nav a[aria-current="page"] { color: var(--ink); font-weight: 700; }

.hero,
.page-hero,
.section,
footer {
  width: min(1240px, calc(100% - 2rem));
  margin-left: auto;
  margin-right: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(290px, .75fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: end;
  padding: clamp(5rem, 11vw, 9.5rem) 0 6rem;
}

.hero-copy h1 { margin-bottom: 1.55rem; }
.lede { color: #3d4d58; font-size: clamp(1.15rem, 2vw, 1.42rem); max-width: 760px; }
.eyebrow { color: var(--accent-dark); font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }

.button-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: .65rem 1.05rem;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 750;
  font-size: .92rem;
}
.button.primary { color: white; background: var(--accent); }
.button.primary:hover { color: white; background: var(--accent-dark); }
.button.secondary { color: var(--ink); background: transparent; border-color: #aab6b4; }
.button.text { padding-left: .4rem; padding-right: .4rem; color: var(--accent-dark); }

.scorecard-preview {
  padding: 1.35rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transform: rotate(1deg);
}
.preview-head { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; font-weight: 750; }
.scorecard-preview dl { margin: 0; }
.scorecard-preview dl div { display: flex; justify-content: space-between; gap: 1rem; padding: .72rem 0; border-top: 1px solid #e7eceb; }
.scorecard-preview dt { color: var(--muted); }
.scorecard-preview dd { margin: 0; font-weight: 800; text-align: right; }
.preview-note { margin: 1rem 0 0; color: var(--muted); font-size: .76rem; }

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: .2rem .55rem;
  border-radius: 999px;
  font-size: .69rem;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge.checked, .badge.live { color: #0b5c49; background: #dff2e9; }
.badge.available { color: #315d7b; background: #e1edf4; }
.badge.reference { color: #755719; background: #f7e9c8; }
.badge.secondary { color: #665a7e; background: #eee7f8; }

.section { padding: 6.4rem 0; border-top: 1px solid var(--line); }
.section.compact { padding-top: 4.8rem; }
.section.tinted { width: 100%; padding-left: max(1rem, calc((100% - 1240px) / 2)); padding-right: max(1rem, calc((100% - 1240px) / 2)); background: var(--soft); }
.section-heading { display: flex; justify-content: space-between; gap: 3rem; align-items: end; margin-bottom: 2.5rem; }
.section-heading > p { max-width: 480px; color: var(--muted); }
.section-heading h2 { margin-bottom: 0; max-width: 800px; }

.answer-grid, .path-grid, .review-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.answer-card, .path-card, .review-grid article {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.answer-card.automatic { border-top: 4px solid var(--accent); }
.answer-card.review { border-top: 4px solid var(--gold); }
ul { padding-left: 1.25rem; }
li + li { margin-top: .45rem; }
.check-list { list-style: none; padding-left: 0; }
.check-list li { position: relative; padding-left: 1.45rem; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 900; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.steps li { margin: 0; padding: 1.2rem; background: rgba(255,255,255,.72); border: 1px solid #cfdbd5; border-radius: 12px; }
.steps li > span { display: grid; place-items: center; width: 31px; height: 31px; margin-bottom: 1rem; color: white; background: var(--accent); border-radius: 50%; font-weight: 800; font-size: .85rem; }
.steps h3 { margin-bottom: .55rem; }
.steps p { margin-bottom: 0; color: var(--muted); font-size: .91rem; }

.outcome-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.outcome-grid article { min-height: 260px; padding: 1.6rem; background: var(--paper); }
.outcome-number { color: var(--accent); font-size: .77rem; font-weight: 800; }
.outcome-grid h3 { margin-top: 4.5rem; }
.outcome-grid p { color: var(--muted); }

.task-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.task-card { padding: 1.6rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.task-card.featured { border-color: #9ec1b7; }
.task-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .78rem; margin-bottom: 2.5rem; }
.task-card p { color: var(--muted); }
.task-meta { margin: 1.5rem 0 0; padding-top: 1rem; border-top: 1px solid #e5e9e8; font-size: .82rem; }
.text-link { white-space: nowrap; font-weight: 700; text-decoration: none; }

.rule-section, .split-explainer, .scorecard-output { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 8vw, 8rem); }
.rule-section > p, .split-explainer > div:last-child, .scorecard-output > ul { color: #3d4d58; font-size: 1.11rem; }

.page-hero { padding: 6rem 0 4.5rem; }
.page-hero.narrow h1 { max-width: 850px; font-size: clamp(2.5rem, 6vw, 4.8rem); }
.page-hero.narrow .lede { max-width: 820px; }

.leaderboard-shell { padding-top: 3rem; }
.controls { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem; }
.controls label { color: var(--muted); font-size: .79rem; font-weight: 750; }
select { display: block; width: 100%; margin-top: .35rem; min-height: 44px; padding: .55rem .7rem; color: var(--ink); background: var(--surface); border: 1px solid #aeb9b8; border-radius: 8px; font: inherit; }
.panel-summary { display: flex; flex-wrap: wrap; gap: .55rem 1.5rem; padding: 1rem 1.2rem; margin: 1rem 0; background: var(--blue-soft); border-radius: 10px; color: #355060; font-size: .9rem; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; min-width: 820px; }
th, td { padding: .9rem 1rem; border-bottom: 1px solid #e2e7e6; text-align: left; vertical-align: top; }
th { color: var(--muted); background: #f2f5f4; font-size: .76rem; letter-spacing: .05em; text-transform: uppercase; }
td:first-child, td:last-child { font-variant-numeric: tabular-nums; }
td:last-child { font-weight: 800; }
tbody tr:last-child td { border-bottom: 0; }
.observer-cell strong { display: block; }
.observer-cell small, .access-cell { color: var(--muted); }
.table-note { color: var(--muted); font-size: .87rem; margin-top: 1rem; }
.error-box { padding: 1rem; color: var(--danger); background: #faeaea; border: 1px solid #e9b7b7; border-radius: 8px; }

.launch-note { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: start; padding: 2rem; margin-top: 1rem; background: var(--blue-soft); border: 0; border-radius: var(--radius); }
.launch-note h2 { font-size: 1.45rem; margin-bottom: .5rem; }
.launch-note p { margin: 0; color: var(--muted); }
.path-card.recommended { border: 2px solid #79ab9c; }
.path-label { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 2rem; color: var(--muted); font-size: .8rem; }
.path-card h3 { font-size: 1.75rem; }
.path-card > p { color: var(--muted); }

.job-flow { list-style: none; padding: 0; margin: 0; }
.job-flow li { display: grid; grid-template-columns: 145px 1fr; gap: 2rem; padding: 1.15rem 0; margin: 0; border-top: 1px solid #cfd9d4; }
.job-flow li > span { font-weight: 850; color: var(--accent-dark); }
.job-flow p { margin: 0; }

footer { display: flex; justify-content: space-between; gap: 2rem; padding: 3rem 0 5rem; border-top: 1px solid var(--line); color: var(--muted); }
footer p { margin: .3rem 0 0; }
.footer-links { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.footer-links a { text-decoration: none; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .scorecard-preview { max-width: 520px; transform: none; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .outcome-grid { grid-template-columns: repeat(2, 1fr); }
  .controls { grid-template-columns: 1fr; }
  .rule-section, .split-explainer, .scorecard-output { grid-template-columns: 1fr; gap: 1rem; }
}

@media (max-width: 680px) {
  .site-header { align-items: flex-start; padding: 1rem 0; }
  .brand > span:last-child { display: none; }
  nav { gap: .75rem; flex-wrap: wrap; justify-content: flex-end; }
  nav a { font-size: .82rem; }
  .hero { padding-top: 4rem; }
  .answer-grid, .path-grid, .review-grid, .task-grid, .outcome-grid, .steps { grid-template-columns: 1fr; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 1rem; }
  .outcome-grid article { min-height: 220px; }
  .job-flow li { grid-template-columns: 1fr; gap: .2rem; }
  .launch-note { grid-template-columns: 1fr; }
  footer { display: block; }
  .footer-links { margin-top: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

