:root {
  --navy: #14213D;
  --navy-2: #1C2D52;
  --navy-line: #2A3B63;
  --orange: #F26B1D;
  --orange-dark: #C9520F;
  --paper: #F7F5F0;
  --paper-line: #E2DED3;
  --slate: #5B6475;
  --mist: #B8C0D0;
  --white: #FFFFFF;
  --wash: #EEF1F6;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ol { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--orange); color: var(--white);
  font: 600 16px/1 var(--sans);
  padding: 15px 22px; border: 0; border-radius: 6px;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s;
}
.btn:hover { background: var(--orange-dark); }
.btn-small { padding: 10px 16px; font-size: 15px; }
.btn-block { width: 100%; }

/* Nav */
.nav { background: var(--navy); border-bottom: 1px solid var(--navy-line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.wordmark {
  font: 800 21px/1 var(--sans); letter-spacing: -0.01em;
  color: var(--white); text-decoration: none;
}
.wordmark { display: inline-flex; align-items: center; gap: 10px; }
.wordmark b { font-weight: 400; }
.mark { width: 20px; height: 26px; flex-shrink: 0; }

/* Hero */
.hero { background: var(--navy); color: var(--white); padding: 72px 0 88px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.audience { color: var(--mist); font-size: 16px; margin-bottom: 18px; }
h1 { font-weight: 800; font-size: clamp(36px, 5vw, 56px); line-height: 1.08; letter-spacing: -0.02em; }
.h1-lead { display: block; }
.blank {
  display: block; min-height: 2.25em; margin-top: 6px;
  font-weight: 400;
}
#typed {
  border-bottom: 4px solid var(--orange);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.caret {
  display: inline-block; width: 3px; height: 0.9em; margin-left: 4px;
  background: var(--orange); vertical-align: -0.08em;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.lede { color: #D5DAE5; font-size: 19px; max-width: 34em; margin-top: 20px; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 32px; flex-wrap: wrap; }
.link-light { color: var(--white); font-weight: 500; text-underline-offset: 5px; text-decoration-color: var(--mist); }
.link-light:hover { text-decoration-color: var(--orange); }

/* Hero demo */
.demo { position: relative; }
.interview { display: grid; gap: 8px; margin-bottom: -28px; position: relative; z-index: 1; max-width: 300px; }
.qa {
  background: var(--navy-2); border: 1px solid var(--navy-line); border-radius: 8px;
  padding: 9px 13px; font-size: 14px; line-height: 1.4;
  opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s;
}
.qa.on { opacity: 1; transform: none; }
.qa .q { display: block; color: var(--mist); }
.qa .a { display: block; color: var(--white); font-weight: 600; }
.paper {
  background: var(--paper); color: var(--navy);
  border-radius: 4px; margin-left: 56px;
  padding: 52px 32px 28px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45);
  font-family: var(--serif);
}
.paper-kicker { font-size: 14px; color: var(--slate); }
.paper-title { font-size: 22px; font-weight: 600; line-height: 1.25; margin: 4px 0 18px; }
.toc { list-style: none; padding: 0; counter-reset: sec; }
.toc li {
  counter-increment: sec;
  display: flex; align-items: baseline; gap: 12px;
  padding: 9px 0; border-bottom: 1px solid var(--paper-line);
  font-size: 15px; color: #9A9789; transition: color .3s;
}
.toc li::before {
  content: counter(sec) ".";
  font-family: var(--sans); font-size: 13px; width: 16px; flex-shrink: 0;
}
.toc li::after {
  content: ""; margin-left: auto; width: 9px; height: 9px; border-radius: 50%;
  border: 1.5px solid var(--paper-line); flex-shrink: 0; align-self: center;
  transition: background-color .3s, border-color .3s;
}
.toc li.done { color: var(--navy); }
.toc li.done::after { background: var(--orange); border-color: var(--orange); }
.count { color: var(--slate); }
.progress { height: 3px; background: var(--paper-line); margin-top: 18px; }
.progress span { display: block; height: 100%; width: 0; background: var(--orange); transition: width .5s; }
.ready { font-family: var(--sans); font-size: 14px; font-weight: 600; margin-top: 12px; opacity: 0; transition: opacity .4s; }
.ready.on { opacity: 1; }

/* Segments strip */
.segments { border-bottom: 1px solid #E3E7EE; }
.segments-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 32px; padding-top: 22px; padding-bottom: 22px; }
.segments-label { color: var(--slate); font-size: 15px; }
.segments a { font-weight: 600; font-size: 15px; text-decoration: none; }
.segments a:hover { color: var(--orange-dark); }
.segments a[aria-current] { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 3px; text-underline-offset: 8px; }

/* Sections */
.section { padding: 96px 0; }
h2 { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.15; font-weight: 800; letter-spacing: -0.015em; max-width: 18em; }
h3 { font-size: 18px; line-height: 1.3; font-weight: 700; }
.section-lede { color: var(--slate); font-size: 18px; margin-top: 14px; max-width: 30em; }

.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 48px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 3px solid var(--navy); padding-top: 20px; }
.steps li::before { content: counter(step); display: block; font-weight: 800; font-size: 15px; color: var(--orange-dark); margin-bottom: 8px; }
.steps p { color: var(--slate); margin-top: 8px; }

.draft { background: var(--wash); }
.draft-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; }
.contents { list-style: none; padding: 0; counter-reset: c; background: var(--white); border-radius: 4px; padding: 8px 32px; font-family: var(--serif); box-shadow: 0 1px 0 #D9DEE7; }
.contents li { counter-increment: c; display: grid; grid-template-columns: 32px minmax(0, 1fr); padding: 18px 0; border-bottom: 1px solid #E8EBF0; }
.contents li:last-child { border-bottom: 0; }
.contents li::before { content: counter(c) "."; font-family: var(--sans); font-size: 14px; color: var(--slate); padding-top: 3px; grid-row: span 2; }
.contents h3 { font-family: var(--serif); font-weight: 600; font-size: 19px; }
.contents p { color: var(--slate); font-size: 16px; line-height: 1.65; margin-top: 2px; }

.why { padding: 80px 0; }
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.why p { color: var(--slate); margin-top: 8px; }

.pilot { background: var(--navy); color: var(--white); }
.pilot .section-lede { color: #D5DAE5; }
.pilot-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.pilot-form { display: grid; gap: 18px; }
.roles { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.roles legend { font-size: 15px; color: var(--mist); margin-bottom: 10px; padding: 0; }
.role { position: relative; cursor: pointer; }
.role input { position: absolute; opacity: 0; }
.role span {
  display: block; height: 100%;
  border: 1px solid var(--navy-line); background: var(--navy-2); border-radius: 6px;
  padding: 14px 16px; font-size: 14px; line-height: 1.45; color: var(--mist);
  transition: border-color .15s;
}
.role strong { display: block; color: var(--white); font-size: 16px; margin-bottom: 4px; }
.role input:checked + span { border-color: var(--orange); box-shadow: inset 0 0 0 1px var(--orange); }
.role input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 3px; }
.field { display: grid; gap: 6px; font-size: 15px; color: var(--mist); }
.field em { font-style: normal; color: #8E98AD; }
.field input {
  font: 400 17px/1.4 var(--sans); color: var(--navy);
  background: var(--white); border: 1px solid transparent; border-radius: 6px;
  padding: 12px 14px;
}
.field input:focus { outline: 3px solid var(--orange); outline-offset: 0; }
.field input[aria-invalid="true"] { border-color: #FF8A8A; }
.form-msg { font-size: 15px; min-height: 1.5em; }
.form-msg.error { color: #FFB4A8; }
.form-msg.ok { color: var(--white); font-weight: 600; }

.footer { background: var(--navy); color: var(--mist); border-top: 1px solid var(--navy-line); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; padding-bottom: 28px; font-size: 14px; }

/* Responsive */
@media (max-width: 900px) {
  .hero { padding: 48px 0 64px; }
  .hero-grid, .draft-grid, .pilot-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .steps, .why-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .section { padding: 72px 0; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  body { font-size: 16px; }
  .lede { font-size: 17px; }
  .blank { min-height: 3.3em; }
  .paper { margin-left: 20px; padding: 48px 20px 22px; }
  .interview { max-width: 260px; }
  .roles { grid-template-columns: minmax(0, 1fr); }
  .segments-inner { gap: 8px 24px; }
  .segments-label { flex-basis: 100%; }
  .contents { padding: 4px 18px; }
  .hero-actions { gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .caret { animation: none; }
  .qa, .toc li, .progress span, .ready { transition: none; }
}
