:root {
  --paper: #f7f8f5;
  --surface: #ffffff;
  --ink: #0b1739;
  --ink-soft: #45506c;
  --muted: #70798d;
  --line: #d9dee8;
  --line-dark: #bac3d2;
  --blue: #245cf5;
  --blue-soft: #edf2ff;
  --green: #168b6a;
  --green-soft: #ebf8f3;
  --amber: #a86108;
  --amber-soft: #fff6e7;
  --red: #b13a4a;
  --red-soft: #fff0f2;
  --sidebar: 244px;
  --shadow: 0 18px 50px rgba(11, 23, 57, 0.07);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 28px;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(30, 55, 100, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 55, 100, 0.025) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  width: var(--sidebar);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  background: #fcfdfb;
  border-right: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 12px;
  background: var(--blue);
  color: white;
  font-weight: 800;
  letter-spacing: -0.05em;
  box-shadow: 0 8px 20px rgba(36, 92, 245, 0.24);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 16px;
  letter-spacing: -0.02em;
}

.brand small {
  margin-top: 1px;
  color: var(--muted);
  font-size: 11px;
}

.sidebar nav {
  margin: 42px -8px 0;
  display: grid;
  gap: 3px;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 42px;
  padding: 10px 10px;
  border-radius: 9px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
}

.nav-link span {
  width: 21px;
  color: #8b94a6;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.nav-link:hover,
.nav-link.active {
  background: var(--blue-soft);
  color: var(--blue);
}

.nav-link.active::before {
  content: "";
  position: absolute;
  left: -10px;
  width: 3px;
  height: 22px;
  border-radius: 99px;
  background: var(--blue);
}

.nav-link.active span {
  color: var(--blue);
}

.sidebar-foot {
  margin-top: auto;
  padding: 15px 12px;
  display: grid;
  grid-template-columns: 8px 1fr;
  gap: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 11px;
}

.sidebar-foot small {
  grid-column: 2;
  color: var(--muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px var(--green-soft);
}

.mobile-header {
  display: none;
}

main {
  width: calc(100% - var(--sidebar));
  margin-left: var(--sidebar);
  overflow: hidden;
}

.report-section {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
  padding: 92px 0;
  border-bottom: 1px solid var(--line);
}

.hero {
  min-height: 680px;
  padding-top: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.compact-top {
  padding-top: 68px;
}

.eyebrow-row,
.hero-grid,
.phase-heading,
.section-heading,
.section-subheading {
  position: relative;
}

.eyebrow-row {
  padding-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.eyebrow,
.section-kicker,
.verdict {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow span {
  padding: 0 8px;
  color: var(--blue);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.button,
.copy-button {
  min-height: 40px;
  padding: 9px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line-dark);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.button:hover,
.copy-button:hover {
  transform: translateY(-1px);
  border-color: var(--blue);
  box-shadow: 0 8px 24px rgba(11, 23, 57, 0.08);
}

.button:focus-visible,
.copy-button:focus-visible,
.menu-button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(36, 92, 245, 0.3);
  outline-offset: 3px;
}

.button-primary {
  border-color: var(--blue);
  background: var(--blue);
  color: white;
}

.hero-grid {
  padding: 52px 0 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 64px;
  align-items: start;
}

.verdict {
  margin-bottom: 15px;
  color: var(--green);
}

h1,
h2,
h3,
h4,
p {
  text-wrap: pretty;
}

h1 {
  max-width: 850px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(50px, 6vw, 82px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.99;
}

.hero-copy {
  max-width: 810px;
  margin: 30px 0 0;
  color: var(--ink-soft);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.55;
}

.decision-card {
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.decision-card div {
  min-height: 51px;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}

.decision-card div:last-child {
  border-bottom: 0;
}

.decision-card span {
  color: var(--muted);
  font-size: 11px;
}

.decision-card strong {
  text-align: right;
  font-size: 12px;
}

.green {
  color: var(--green);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 42px;
}

.section-kicker {
  margin-bottom: 11px;
  color: var(--blue);
}

.section-heading h2,
.phase-heading h2,
.closing h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.section-heading > p:last-child,
.phase-heading p,
.section-subheading p {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 17px;
}

.architecture {
  min-height: 390px;
  padding: 28px;
  display: grid;
  grid-template-columns: 1.05fr 86px 1.25fr 86px 1.4fr;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line-dark);
  border-radius: 18px;
  background:
    linear-gradient(rgba(36, 92, 245, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 92, 245, 0.035) 1px, transparent 1px),
    rgba(255, 255, 255, 0.86);
  background-size: 20px 20px;
  box-shadow: var(--shadow);
}

.arch-lane {
  position: relative;
  display: grid;
  gap: 12px;
}

.arch-label {
  position: absolute;
  top: -34px;
  left: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.arch-node {
  min-height: 112px;
  padding: 16px;
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  column-gap: 12px;
  border: 1px solid var(--line-dark);
  border-radius: 13px;
  background: var(--surface);
}

.arch-node strong,
.arch-node small {
  grid-column: 2;
}

.arch-node strong {
  align-self: end;
  font-size: 14px;
  line-height: 1.2;
}

.arch-node small {
  align-self: start;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.node-icon {
  grid-row: 1 / 3;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #eef0f5;
  color: var(--ink);
  font-size: 11px;
  font-weight: 850;
}

.accent-blue {
  border-color: rgba(36, 92, 245, 0.55);
  box-shadow: 0 0 0 3px rgba(36, 92, 245, 0.05);
}

.accent-blue .node-icon {
  background: var(--blue-soft);
  color: var(--blue);
}

.accent-green .node-icon,
.accent-mint .node-icon {
  background: var(--green-soft);
  color: var(--green);
}

.arch-arrow {
  display: grid;
  place-items: center;
}

.arch-arrow span {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  text-align: center;
}

.arch-arrow i {
  position: relative;
  width: 58px;
  height: 1px;
  background: var(--ink-soft);
}

.arch-arrow i::after {
  content: "";
  position: absolute;
  top: -3px;
  right: 0;
  width: 7px;
  height: 7px;
  border-top: 1px solid var(--ink-soft);
  border-right: 1px solid var(--ink-soft);
  transform: rotate(45deg);
}

.tools-lane .arch-node {
  min-height: 72px;
  padding: 10px 12px;
}

.tools-lane .node-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.decision-strip {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.decision-strip article,
.three-up article,
.research-card,
.identity-grid article,
.data-model article,
.test-grid article,
.model-choice article,
.credit-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.84);
}

.decision-strip article {
  padding: 18px;
}

.decision-strip span,
.stack-row > span,
.credit-card > span {
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.decision-strip h3,
.three-up h3,
.identity-grid h3,
.data-model h3,
.test-grid h3,
.model-choice h3,
.credit-card h3,
.research-card h3,
.section-subheading h3,
.setup-column h3,
.cost-assumptions h3,
.open-items h3,
.assumptions h3 {
  margin: 6px 0 0;
  font-size: 16px;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.decision-strip p,
.three-up p,
.identity-grid p,
.test-grid p,
.model-choice p,
.credit-card p {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.55;
}

.plain-language {
  margin-top: 36px;
  padding: 22px 24px;
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 24px;
  align-items: start;
  border-left: 3px solid var(--green);
  background: var(--green-soft);
}

.plain-number {
  color: var(--green);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.plain-language p {
  margin: 0;
  font-size: 15px;
}

.phase-heading {
  margin-bottom: 46px;
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 32px;
  align-items: start;
}

.phase-number {
  width: fit-content;
  margin-top: 7px;
  padding: 6px 9px;
  border-radius: 6px;
  background: var(--blue);
  color: white;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.phase-heading h2 {
  max-width: 880px;
}

.requirements-summary {
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
}

.requirements-summary div {
  min-height: 92px;
  padding: 16px 18px;
  display: grid;
  place-content: center start;
  border-right: 1px solid var(--line);
}

.requirements-summary div:last-child {
  border-right: 0;
}

.requirements-summary strong,
.requirements-summary span {
  display: block;
}

.requirements-summary strong {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1;
}

.requirements-summary span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 12px 40px rgba(11, 23, 57, 0.04);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 13px 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th:last-child,
td:last-child {
  border-right: 0;
}

tbody tr:last-child td {
  border-bottom: 0;
}

th {
  background: #f0f2f6;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

td {
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.48;
}

.ledger td:first-child {
  width: 52px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 850;
}

.ledger td:nth-child(2) {
  width: 22%;
  color: var(--ink);
  font-weight: 700;
}

.ledger td:nth-child(4) {
  width: 22%;
}

.callout {
  margin-top: 28px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-left-width: 4px;
  border-radius: 10px;
}

.callout strong {
  display: block;
  margin-bottom: 5px;
  font-size: 13px;
}

.callout p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.callout a {
  display: inline-block;
  margin-top: 9px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 750;
}

.callout.warning {
  border-left-color: var(--amber);
  background: var(--amber-soft);
}

.callout.important {
  border-left-color: var(--blue);
  background: var(--blue-soft);
}

.callout.neutral {
  border-left-color: var(--green);
  background: var(--green-soft);
}

.evidence-legend {
  margin: -18px 0 20px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 10px;
}

.fact-tag,
.decision-tag {
  display: inline-flex;
  width: fit-content;
  margin-right: 5px;
  padding: 3px 6px;
  border-radius: 5px;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  vertical-align: 1px;
}

.fact-tag {
  background: #eef0f4;
  color: var(--ink-soft);
}

.decision-tag {
  background: var(--blue-soft);
  color: var(--blue);
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.research-card {
  padding: 22px;
}

.research-card.span-2 {
  grid-column: 1 / -1;
}

.card-top {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.option-index {
  color: #9aa2b2;
  font-size: 10px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.recommend-badge,
.reject-badge {
  padding: 4px 7px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.recommend-badge {
  background: var(--green-soft);
  color: var(--green);
}

.reject-badge {
  background: var(--red-soft);
  color: var(--red);
}

.research-card h3 {
  margin: 0 0 13px;
  font-size: 19px;
}

.research-card > p {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.research-card code,
.identity-grid code,
.memory-row code {
  padding: 2px 5px;
  border-radius: 5px;
  background: #eef0f4;
  color: #2f3a55;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88em;
}

.tradeoff {
  margin-top: 14px;
  padding: 11px 12px;
  border-radius: 8px;
  background: #f2f3f6;
  color: var(--ink-soft);
  font-size: 11px;
}

.source-row {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.source-row a {
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--blue);
  font-size: 9px;
  font-weight: 750;
  text-decoration: none;
}

.source-row a:hover {
  border-color: var(--blue);
}

.pattern-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.pattern-grid > div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8f9fb;
}

.pattern-grid h4 {
  margin: 0 0 8px;
  font-size: 12px;
}

.pattern-grid ul,
.data-model ul,
.assumptions ul {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-soft);
  font-size: 11px;
}

.pattern-grid li,
.data-model li,
.assumptions li {
  margin: 5px 0;
}

.section-subheading {
  margin: 52px 0 20px;
}

.section-subheading h3 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
}

.section-subheading p {
  margin-top: 5px;
  font-size: 13px;
}

.comparison-table td:first-child {
  color: var(--ink);
}

.recommended-row td {
  background: var(--green-soft);
}

.three-up,
.identity-grid,
.data-model,
.test-grid,
.model-choice,
.credit-grid {
  display: grid;
  gap: 14px;
}

.three-up {
  margin-top: 28px;
  grid-template-columns: repeat(3, 1fr);
}

.three-up article {
  padding: 20px;
}

.three-up p {
  font-size: 12px;
}

.stack-table {
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
}

.stack-row {
  min-height: 80px;
  padding: 15px 17px;
  display: grid;
  grid-template-columns: 155px 260px 1fr;
  gap: 20px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.stack-row:last-child {
  border-bottom: 0;
}

.stack-row strong {
  font-size: 14px;
}

.stack-row p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.sequence-panel {
  margin-top: 38px;
  padding: 1px 26px 10px;
  border: 1px solid var(--line-dark);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
}

.sequence-panel .section-subheading {
  margin-top: 28px;
}

.sequence-list {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  list-style: none;
}

.sequence-list li {
  min-height: 114px;
  padding: 17px 20px 17px 0;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 13px;
  border-top: 1px solid var(--line);
}

.sequence-list li:nth-child(odd) {
  margin-right: 22px;
  border-right: 1px solid var(--line);
}

.sequence-list li:nth-child(even) {
  padding-left: 22px;
}

.sequence-list li > span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 9px;
  font-weight: 850;
}

.sequence-list strong {
  font-size: 13px;
}

.sequence-list p {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
}

.identity-grid {
  grid-template-columns: repeat(4, 1fr);
}

.identity-grid article {
  position: relative;
  padding: 20px;
  overflow: hidden;
}

.identity-grid article > span {
  position: absolute;
  top: -18px;
  right: 5px;
  color: rgba(36, 92, 245, 0.07);
  font-family: var(--serif);
  font-size: 82px;
  font-weight: 700;
  line-height: 1;
}

.identity-grid h3 {
  position: relative;
  margin-top: 0;
}

.identity-grid p {
  position: relative;
}

.memory-map {
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
}

.mcp-contract {
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
}

.mcp-contract > div {
  min-height: 76px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 150px 245px 1fr;
  gap: 18px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.mcp-contract > div:last-child {
  border-bottom: 0;
}

.mcp-contract span {
  color: var(--blue);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mcp-contract strong {
  font-size: 13px;
}

.mcp-contract p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
}

.mcp-contract code {
  padding: 2px 5px;
  border-radius: 5px;
  background: #eef0f4;
  color: #2f3a55;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88em;
}

.memory-row {
  min-height: 67px;
  padding: 13px 16px;
  display: grid;
  grid-template-columns: 130px 310px 1fr;
  gap: 18px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.memory-row:last-child {
  border-bottom: 0;
}

.memory-key {
  font-size: 12px;
  font-weight: 750;
}

.memory-row code {
  width: fit-content;
  color: var(--blue);
}

.memory-row p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
}

.data-model {
  margin-top: 16px;
  grid-template-columns: repeat(3, 1fr);
}

.data-model article {
  padding: 20px;
}

.data-model h3 {
  margin: 0 0 10px;
}

.setup-columns {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 16px;
}

.setup-column {
  padding: 24px;
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  background: var(--surface);
}

.setup-column h3 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 500;
}

.setup-column ol {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  list-style: none;
}

.setup-column li {
  padding: 14px 0;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 11px;
  border-top: 1px solid var(--line);
}

.setup-column li > span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 9px;
  font-weight: 850;
}

.setup-column li p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.day-in-life {
  margin-top: 24px;
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  background: var(--ink);
  color: white;
}

.day-in-life div {
  padding: 20px 22px;
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.day-in-life div:last-child {
  border-bottom: 0;
}

.day-in-life span {
  color: #80a1ff;
  font-family: var(--serif);
  font-size: 18px;
}

.day-in-life p {
  margin: 0;
  color: #c8d0e5;
  font-size: 12px;
}

.day-in-life strong {
  color: white;
  font-size: 13px;
}

.credit-grid {
  grid-template-columns: 1.35fr 1fr 1fr;
}

.credit-card {
  padding: 24px;
}

.credit-card.primary-credit {
  border-color: rgba(36, 92, 245, 0.5);
  background: var(--blue-soft);
}

.credit-card h3 {
  margin-top: 5px;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 500;
}

.credit-card p {
  font-size: 12px;
}

.cost-assumptions {
  margin-top: 16px;
  padding: 24px;
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  background: var(--surface);
}

.cost-assumptions h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 500;
}

.cost-assumptions > p {
  margin: 7px 0 20px;
  color: var(--ink-soft);
  font-size: 12px;
}

.cost-assumptions > small {
  display: block;
  margin-top: 17px;
  color: var(--muted);
  font-size: 10px;
}

.cost-bars {
  display: grid;
  gap: 13px;
}

.cost-bars div {
  position: relative;
  min-height: 34px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 20px;
}

.cost-bars span,
.cost-bars strong {
  position: relative;
  z-index: 1;
  font-size: 11px;
}

.cost-bars i {
  position: absolute;
  inset: 25px auto auto 0;
  width: var(--bar);
  height: 5px;
  border-radius: 99px;
  background: var(--blue);
}

.cost-bars div:nth-child(2) i {
  background: var(--green);
}

.cost-bars div:nth-child(3) i {
  background: var(--ink);
}

.model-choice {
  margin-top: 16px;
  grid-template-columns: repeat(3, 1fr);
}

.model-choice article {
  padding: 20px;
}

.model-choice h3 {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.model-choice strong {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
}

.model-choice a {
  display: inline-block;
  margin-top: 10px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 750;
}

.test-grid {
  grid-template-columns: repeat(4, 1fr);
}

.test-grid article {
  min-height: 196px;
  padding: 18px;
}

.test-number {
  color: var(--blue);
  font-size: 10px;
  font-weight: 850;
}

.test-grid h3 {
  margin-top: 18px;
}

.open-items,
.assumptions {
  margin-top: 24px;
  padding: 24px;
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  background: var(--surface);
}

.open-items h3,
.assumptions h3 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
}

.open-items > div {
  padding: 13px 0;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  border-top: 1px solid var(--line);
}

.open-items span {
  font-size: 12px;
  font-weight: 750;
}

.open-items p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.assumptions {
  background: var(--amber-soft);
}

.assumptions ul {
  font-size: 12px;
}

.source-groups {
  display: grid;
  gap: 12px;
}

.source-groups details {
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
}

.source-groups summary {
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
  list-style: none;
}

.source-groups summary::-webkit-details-marker {
  display: none;
}

.source-groups summary span {
  color: var(--muted);
  font-size: 10px;
}

.source-groups details[open] summary {
  border-bottom: 1px solid var(--line);
}

.source-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.source-list a {
  min-height: 72px;
  padding: 14px 18px;
  display: block;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.source-list a:nth-child(even) {
  border-right: 0;
}

.source-list a:hover {
  background: var(--blue-soft);
}

.source-list strong,
.source-list span {
  display: block;
}

.source-list strong {
  color: var(--blue);
  font-size: 11px;
}

.source-list span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.closing {
  min-height: 470px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
  border-bottom: 0;
}

.closing > div {
  max-width: 830px;
}

.closing p:not(.section-kicker) {
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-size: 17px;
}

.copy-large {
  min-width: 210px;
  min-height: 54px;
  border-color: var(--blue);
  color: var(--blue);
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  transform: translateY(30px);
  padding: 12px 16px;
  border-radius: 9px;
  background: var(--ink);
  color: white;
  font-size: 11px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 1180px) {
  :root {
    --sidebar: 210px;
  }

  .architecture {
    grid-template-columns: 1fr 50px 1.2fr 50px 1.2fr;
    padding: 25px 18px;
  }

  .arch-arrow i {
    width: 36px;
  }

  .identity-grid,
  .test-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .decision-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 920px) {
  .sidebar {
    width: 280px;
    transform: translateX(-102%);
    transition: transform 180ms ease;
  }

  body.menu-open .sidebar {
    transform: translateX(0);
    box-shadow: 30px 0 70px rgba(11, 23, 57, 0.16);
  }

  .mobile-header {
    position: sticky;
    top: 0;
    z-index: 19;
    height: 66px;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    background: rgba(252, 253, 251, 0.94);
    backdrop-filter: blur(14px);
  }

  .mobile-header .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    font-size: 11px;
  }

  .menu-button {
    padding: 8px 12px;
    border: 1px solid var(--line-dark);
    border-radius: 8px;
    background: white;
    color: var(--ink);
    font-size: 11px;
    font-weight: 750;
  }

  main {
    width: 100%;
    margin-left: 0;
  }

  .report-section {
    width: min(100% - 36px, 760px);
    padding: 72px 0;
  }

  .hero {
    min-height: auto;
    padding-top: 46px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .decision-card {
    max-width: 480px;
  }

  .architecture {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 48px 22px 24px;
  }

  .arch-arrow {
    min-height: 45px;
  }

  .arch-arrow i {
    width: 1px;
    height: 35px;
  }

  .arch-arrow i::after {
    top: auto;
    right: -3px;
    bottom: 0;
    transform: rotate(135deg);
  }

  .arch-label {
    top: -25px;
  }

  .tools-lane {
    grid-template-columns: repeat(2, 1fr);
  }

  .phase-heading {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .phase-number {
    margin-top: 0;
  }

  .stack-row {
    grid-template-columns: 130px 220px 1fr;
    gap: 14px;
  }

  .setup-columns,
  .credit-grid {
    grid-template-columns: 1fr;
  }

  .credit-grid {
    grid-template-columns: 1fr 1fr;
  }

  .primary-credit {
    grid-column: 1 / -1;
  }

  .memory-row {
    grid-template-columns: 120px 1fr;
  }

  .mcp-contract > div {
    grid-template-columns: 130px 210px 1fr;
  }

  .memory-row p {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 14px;
  }

  .report-section {
    width: calc(100% - 28px);
    padding: 58px 0;
  }

  .hero {
    padding-top: 32px;
  }

  .eyebrow-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions > * {
    flex: 1;
  }

  h1 {
    font-size: 45px;
  }

  .hero-grid {
    padding-top: 36px;
  }

  .hero-copy {
    font-size: 16px;
  }

  .section-heading h2,
  .phase-heading h2,
  .closing h2 {
    font-size: 37px;
  }

  .decision-strip,
  .research-grid,
  .three-up,
  .identity-grid,
  .data-model,
  .model-choice,
  .test-grid,
  .credit-grid,
  .source-list {
    grid-template-columns: 1fr;
  }

  .research-card.span-2,
  .primary-credit {
    grid-column: auto;
  }

  .plain-language {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .requirements-summary {
    grid-template-columns: 1fr 1fr;
  }

  .requirements-summary div:nth-child(2) {
    border-right: 0;
  }

  .requirements-summary div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .pattern-grid,
  .sequence-list {
    grid-template-columns: 1fr;
  }

  .sequence-list li,
  .sequence-list li:nth-child(odd),
  .sequence-list li:nth-child(even) {
    margin: 0;
    padding: 15px 0;
    border-right: 0;
  }

  .stack-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .stack-row > span {
    margin-bottom: 3px;
  }

  .memory-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .mcp-contract > div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .memory-row p {
    grid-column: auto;
  }

  .tools-lane {
    grid-template-columns: 1fr;
  }

  .open-items > div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .day-in-life div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .source-list a,
  .source-list a:nth-child(even) {
    border-right: 0;
  }

  .closing {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .copy-large {
    width: 100%;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
