:root {
  --ink: #08090a;
  --muted: #555b65;
  --line: #cfd3d8;
  --soft: #f1f2f4;
  --blue: #246fd8;
  --blue-soft: #eaf2ff;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.5;
}

a { color: var(--blue); text-underline-offset: 3px; }

.nav {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--line);
}

.nav a { font-weight: 700; }
.nav > a:first-child { color: var(--ink); text-decoration: none; }
.nav-links { display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px; }

.main {
  width: min(1080px, calc(100% - 36px));
  margin: 0 auto;
  padding: 70px 0 100px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

h1, h2, h3 { line-height: 1.05; letter-spacing: -.025em; }
h1 { max-width: 980px; margin: 0; font-size: clamp(50px, 7vw, 82px); }
h2 { margin: 76px 0 22px; font-size: clamp(32px, 4vw, 48px); }
h3 { margin: 0 0 10px; font-size: 25px; }

.lede { max-width: 850px; margin: 26px 0 0; color: var(--muted); font-size: 23px; line-height: 1.45; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 34px 0 0; }
.button {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 11px 16px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}
.button.secondary { background: #fff; color: var(--ink); }

.outcome-grid,
.agenda-grid,
.phase-grid,
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  padding: 24px;
  border-top: 3px solid var(--ink);
  background: var(--soft);
}
.card p:last-child { margin-bottom: 0; }

.agenda-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.agenda-item { display: grid; grid-template-columns: 76px 1fr; gap: 14px; padding: 17px 0; border-top: 1px solid var(--line); }
.agenda-item strong { color: var(--blue); }

.notice { margin: 34px 0; padding: 22px; border-left: 4px solid var(--blue); background: var(--blue-soft); }

.metric-grid { margin: 22px 0 10px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.metric { padding: 18px; background: var(--soft); }
.metric strong { display: block; font-size: 30px; }
.metric span { color: var(--muted); font-size: 14px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; min-width: 820px; }
th, td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--ink); color: #fff; font-size: 14px; }
tbody tr:last-child td { border-bottom: 0; }

.bar-pair { min-width: 170px; }
.bar-row { display: grid; grid-template-columns: 18px 1fr 42px; align-items: center; gap: 8px; margin: 5px 0; font-size: 13px; }
.bar-track { height: 8px; background: #e0e2e5; }
.bar-fill { height: 100%; background: #6dcbf4; }
.bar-row.b .bar-fill { background: #3d8dff; }

.worksheet { margin-top: 24px; padding: 24px; border: 1px solid var(--line); }
.worksheet label { display: block; margin: 22px 0 8px; font-weight: 800; }
.worksheet textarea,
.worksheet select,
.worksheet input[type="text"] {
  width: 100%;
  padding: 12px;
  border: 1px solid #9da3aa;
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.worksheet textarea { min-height: 100px; resize: vertical; }
.worksheet button { margin-top: 20px; padding: 11px 16px; border: 0; background: var(--ink); color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.worksheet button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #8bb8ff; outline-offset: 3px; }

.status { min-height: 24px; color: var(--muted); }
details { margin-top: 28px; padding: 18px 20px; border: 1px solid var(--line); background: var(--soft); }
summary { cursor: pointer; font-weight: 800; }

.footer { padding: 22px 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

@media (max-width: 780px) {
  .main { padding-top: 46px; }
  .outcome-grid, .phase-grid, .metric-grid, .agenda-grid { grid-template-columns: 1fr; }
  .nav { align-items: flex-start; }
  .nav-links a:not(:last-child) { display: none; }
}

@media print {
  .nav, .actions, .footer, .copy-button { display: none; }
  .main { width: 100%; padding: 0; }
  h2 { margin-top: 38px; }
  .worksheet { break-inside: avoid; }
}
