:root {
  color-scheme: light;
  --ink: #151719;
  --paper: #f3f1eb;
  --white: #fff;
  --muted: #62686b;
  --line: #cfd1cd;
  --teal: #007f78;
  --coral: #df5b42;
  --yellow: #e5b63f;
  --night: #19262a;
  --blue: #2d5b9b;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); letter-spacing: 0; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

.site-header { position: relative; z-index: 4; min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 0 4.5vw; color: var(--white); background: var(--ink); border-bottom: 1px solid rgba(255,255,255,.18); }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 800; font-size: 13px; }
.brand span { display: grid; place-items: center; width: 36px; height: 36px; color: var(--ink); background: var(--yellow); }
.site-header nav { display: flex; align-items: center; gap: 24px; font-size: 13px; }
.site-header nav a { text-decoration: none; color: #d8dddc; }
.site-header nav a:hover, .site-header nav a:focus-visible { color: var(--white); }

.hero { position: relative; min-height: 620px; height: calc(100vh - 68px); max-height: 820px; overflow: hidden; color: var(--white); background: var(--night); }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 58% center; }
.hero-shade { position: absolute; inset: 0; background: rgba(9,17,19,.68); }
.hero-content { position: relative; z-index: 1; width: min(1180px, 91vw); margin: 0 auto; padding-top: 12vh; }
.kicker, .section-index { margin: 0 0 18px; color: var(--coral); font: 800 11px/1.3 ui-monospace, SFMono-Regular, Consolas, monospace; }
.hero h1 { max-width: 820px; margin: 0; font: 800 72px/.98 Inter, "Segoe UI", Arial, sans-serif; }
.hero-copy { max-width: 680px; margin: 28px 0 0; color: #e1e5e4; font-size: 19px; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 18px; border: 1px solid transparent; border-radius: 4px; text-decoration: none; cursor: pointer; font-weight: 750; font-size: 13px; }
.button-primary { color: var(--white); background: var(--teal); border-color: var(--teal); }
.button-primary:hover, .button-primary:focus-visible { background: #006d67; }
.button-quiet { color: inherit; background: transparent; border-color: currentColor; }
.button-quiet:hover, .button-quiet:focus-visible { background: rgba(255,255,255,.08); }
.safety-line { margin: 18px 0 0; color: #b8c1c0; font: 700 11px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; }

.status-band { min-height: 122px; display: grid; grid-template-columns: 1.15fr 2fr; align-items: stretch; padding: 0 4.5vw; background: var(--white); border-bottom: 1px solid var(--line); }
.status-intro { display: flex; align-items: center; gap: 14px; padding-right: 34px; border-right: 1px solid var(--line); }
.status-intro strong, .status-intro small { display: block; }
.status-intro small { margin-top: 7px; color: var(--muted); font-size: 11px; }
.live-dot { width: 10px; height: 10px; flex: none; background: var(--coral); border-radius: 50%; box-shadow: 0 0 0 5px rgba(223,91,66,.15); }
.status-band dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.status-band dl div { display: flex; flex-direction: column-reverse; justify-content: center; padding: 20px 22px; border-right: 1px solid var(--line); }
.status-band dl div:last-child { border-right: 0; }
.status-band dt { margin-top: 8px; color: var(--muted); font-size: 11px; line-height: 1.35; }
.status-band dd { margin: 0; font: 800 30px/1 ui-monospace, SFMono-Regular, Consolas, monospace; }

.setup-section, .funnel-section, .value-section { width: min(1180px, 91vw); margin: 0 auto; padding: 100px 0; }
.section-heading { display: grid; grid-template-columns: minmax(260px, 1.2fr) minmax(240px, .8fr); column-gap: 70px; align-items: end; margin-bottom: 38px; }
.section-heading .section-index { grid-column: 1 / -1; }
.section-heading h2 { margin: 0; max-width: 750px; font-size: 42px; line-height: 1.05; }
.section-heading > p:last-child { margin: 0; color: var(--muted); line-height: 1.65; }

.client-tabs { display: flex; gap: 0; overflow-x: auto; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); scrollbar-width: thin; }
.client-tabs button { min-width: max-content; min-height: 52px; padding: 0 19px; color: var(--muted); background: transparent; border: 0; border-right: 1px solid var(--line); cursor: pointer; font-size: 12px; font-weight: 750; }
.client-tabs button[aria-selected="true"] { color: var(--white); background: var(--ink); }
.client-tabs button:focus-visible { outline: 2px solid var(--teal); outline-offset: -3px; }
.setup-workbench { display: grid; grid-template-columns: minmax(270px, .78fr) minmax(0, 1.55fr); min-height: 470px; background: var(--white); border-bottom: 1px solid var(--line); }
.setup-steps { padding: 38px 36px 34px 0; border-right: 1px solid var(--line); }
.compatibility { display: flex; align-items: center; gap: 9px; }
.compatibility span { padding: 5px 8px; color: var(--white); background: var(--teal); font: 800 10px/1 ui-monospace, SFMono-Regular, Consolas, monospace; }
.compatibility small { color: var(--muted); font: 700 10px/1 ui-monospace, SFMono-Regular, Consolas, monospace; }
.setup-steps h3 { margin: 28px 0 12px; font-size: 28px; }
.setup-steps > p { margin: 0; color: var(--muted); line-height: 1.6; }
.setup-steps ol { margin: 28px 0; padding-left: 21px; }
.setup-steps li { margin: 0 0 14px; padding-left: 6px; line-height: 1.5; }
.setup-steps a { color: var(--blue); font-size: 12px; font-weight: 750; }
.config-tool { align-self: stretch; margin: 34px 0 34px 36px; display: flex; flex-direction: column; min-width: 0; color: #e8eceb; background: var(--night); border-radius: 6px; overflow: hidden; }
.tool-header { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 18px 0 22px; border-bottom: 1px solid rgba(255,255,255,.15); }
.tool-header span, .tool-header strong { display: block; }
.tool-header > div > span { color: #8ea09d; font-size: 10px; }
.tool-header strong { margin-top: 4px; font-size: 12px; }
.icon-command { min-height: 36px; display: inline-flex; align-items: center; gap: 7px; padding: 0 10px; color: #dce5e3; background: transparent; border: 1px solid #586967; border-radius: 4px; cursor: pointer; font-size: 11px; }
.config-tool pre { flex: 1; min-height: 240px; margin: 0; padding: 26px 22px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font: 13px/1.7 ui-monospace, SFMono-Regular, Consolas, monospace; }
.tool-actions { display: flex; flex-wrap: wrap; gap: 10px; padding: 0 22px 16px; }
.tool-actions .button-quiet { color: #dce5e3; }
.config-note { margin: 0; padding: 14px 22px 18px; color: #9eafac; border-top: 1px solid rgba(255,255,255,.12); font-size: 11px; line-height: 1.5; }

.first-call { padding: 94px max(4.5vw, calc((100vw - 1180px) / 2)); color: var(--white); background: var(--ink); }
.section-heading.inverse h2 { color: var(--white); }
.section-heading.inverse > p:last-child { color: #aeb8b7; }
.prompt-tool { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 28px 0; border-top: 1px solid #4b5051; border-bottom: 1px solid #4b5051; }
.prompt-number { display: grid; place-items: center; width: 52px; height: 52px; color: var(--ink); background: var(--yellow); font: 800 13px/1 ui-monospace, SFMono-Regular, Consolas, monospace; }
.prompt-tool span { color: #91a09e; font-size: 11px; }
.prompt-tool p { max-width: 760px; margin: 8px 0 0; line-height: 1.6; }
.button-light { color: var(--ink); background: var(--white); border-color: var(--white); }
.proof-next { display: flex; justify-content: space-between; gap: 28px; margin-top: 24px; color: #aeb8b7; font-size: 13px; }
.proof-next a { color: var(--yellow); font-weight: 750; }

.evidence-ladder { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.evidence-step { min-height: 190px; padding: 25px 22px; border-right: 1px solid var(--line); }
.evidence-step:last-child { border-right: 0; }
.evidence-step span { color: var(--muted); font-size: 11px; }
.evidence-step strong { display: block; margin: 18px 0; font: 800 34px/1 ui-monospace, SFMono-Regular, Consolas, monospace; }
.evidence-track { width: 100%; height: 5px; display: block; overflow: hidden; border: 0; background: #dfe1dd; appearance: none; }
.evidence-track::-webkit-progress-bar { background: #dfe1dd; }
.evidence-track::-webkit-progress-value { background: var(--teal); }
.evidence-track::-moz-progress-bar { background: var(--teal); }
.evidence-step small { display: block; margin-top: 15px; color: var(--muted); line-height: 1.45; }
.boundary-note { display: grid; grid-template-columns: .7fr 1.5fr auto; gap: 35px; align-items: start; padding: 30px 0; border-bottom: 1px solid var(--line); }
.boundary-note strong { color: var(--coral); font-size: 12px; }
.boundary-note p { margin: 0; color: var(--muted); line-height: 1.55; }
.boundary-note a { color: var(--blue); font-size: 12px; font-weight: 750; }

.value-section { padding-top: 40px; }
.value-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.value-grid article { min-height: 260px; padding: 26px 22px; border-right: 1px solid var(--line); }
.value-grid article:last-child { border-right: 0; }
.value-grid article > span { color: var(--teal); font: 800 10px/1 ui-monospace, SFMono-Regular, Consolas, monospace; }
.value-grid h3 { margin: 42px 0 14px; font-size: 21px; }
.value-grid p { color: var(--muted); line-height: 1.55; }
.value-grid a { color: var(--blue); font-size: 12px; font-weight: 750; }
.value-grid .paid { color: var(--white); background: var(--night); }
.value-grid .paid > span, .value-grid .paid a { color: var(--yellow); }
.value-grid .paid p { color: #acb9b7; }

.source-section { display: grid; grid-template-columns: .85fr 1.5fr; gap: 70px; padding: 70px max(4.5vw, calc((100vw - 1180px) / 2)); background: var(--white); border-top: 1px solid var(--line); }
.source-section h2 { margin: 0; max-width: 460px; font-size: 28px; line-height: 1.15; }
.source-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.source-links a { min-height: 54px; display: flex; align-items: center; padding: 0 16px; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 12px; font-weight: 700; }
.source-links a:nth-child(odd) { border-right: 1px solid var(--line); }
.source-links a:hover, .source-links a:focus-visible { color: var(--blue); background: #f6f7f5; }

footer { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 4.5vw; color: #b7c0be; background: var(--ink); font-size: 11px; }
footer a { color: var(--yellow); }

@media (max-width: 980px) {
  .hero h1 { font-size: 58px; }
  .status-band { grid-template-columns: 1fr; padding: 0; }
  .status-intro { min-height: 72px; padding: 0 4.5vw; border-right: 0; border-bottom: 1px solid var(--line); }
  .status-band dl div:nth-child(2) { border-right: 0; }
  .status-band dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .status-band dl div { border-bottom: 1px solid var(--line); }
  .section-heading { grid-template-columns: 1fr; gap: 18px; }
  .setup-workbench { grid-template-columns: 1fr; }
  .setup-steps { padding: 34px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .config-tool { margin: 30px 0; }
  .evidence-ladder, .value-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .evidence-step:nth-child(2), .value-grid article:nth-child(2) { border-right: 0; }
  .evidence-step:nth-child(-n+2), .value-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .boundary-note { grid-template-columns: 1fr; gap: 12px; }
}

@media (max-width: 680px) {
  .site-header { min-height: 60px; padding: 0 18px; }
  .site-header nav a:not(:last-child) { display: none; }
  .hero { min-height: 560px; height: calc(100svh - 112px); max-height: 720px; }
  .hero-content { width: calc(100% - 36px); padding-top: 72px; }
  .hero h1 { font-size: 45px; }
  .hero-copy { font-size: 16px; }
  .hero-actions .button { width: 100%; }
  .status-band dl { grid-template-columns: 1fr 1fr; }
  .status-band dl div { min-height: 104px; padding: 16px 14px; }
  .status-band dd { font-size: 25px; }
  .setup-section, .funnel-section, .value-section { width: calc(100% - 36px); padding: 74px 0; }
  .section-heading h2 { font-size: 34px; }
  .client-tabs { width: calc(100% + 36px); margin-left: -18px; padding-left: 18px; }
  .setup-workbench { background: transparent; }
  .config-tool { margin-left: 0; }
  .prompt-tool { grid-template-columns: 52px 1fr; }
  .prompt-tool .button { grid-column: 1 / -1; }
  .proof-next { flex-direction: column; }
  .evidence-ladder, .value-grid { grid-template-columns: 1fr; }
  .evidence-step, .value-grid article { min-height: 170px; border-right: 0; border-bottom: 1px solid var(--line); }
  .evidence-step:last-child, .value-grid article:last-child { border-bottom: 0; }
  .source-section { grid-template-columns: 1fr; gap: 30px; padding: 58px 18px; }
  .source-links { grid-template-columns: 1fr; }
  .source-links a:nth-child(odd) { border-right: 0; }
  footer { min-height: 130px; flex-direction: column; align-items: flex-start; justify-content: center; padding: 24px 18px; }
}

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