:root {
  --bg: #0f171e;
  --bg-card: #17222c;
  --bg-soft: #1c2935;
  --text: #f4f1ea;
  --muted: #a8b3bd;
  --accent: #e4572e;
  --accent-soft: #f07a56;
  --line: #2a3a48;
  --ok: #6fbf73;
  --warn: #e6b35a;
  --max: 980px;
  --font: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 17px;
}
a { color: var(--accent-soft); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
.wrap { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(15,23,30,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .9rem 0;
}
.brand {
  display: inline-flex; align-items: center; gap: .65rem;
  color: var(--text); font-weight: 650; letter-spacing: .01em;
  text-decoration: none;
}
.brand span.ai { color: var(--accent); }
.brand img { width: 28px; height: 28px; border-radius: 6px; }
.nav-links { display: flex; gap: 1.1rem; align-items: center; flex-wrap: wrap; }
.nav-links a { color: var(--muted); font-size: .92rem; text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .4rem; padding: .7rem 1.05rem; border-radius: 8px;
  border: 1px solid transparent; font-weight: 600; font-size: .95rem;
  text-decoration: none; cursor: pointer;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-soft); text-decoration: none; }
.btn-ghost {
  background: transparent; color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--muted); text-decoration: none; }
.hero { padding: 3.4rem 0 2.2rem; }
.eyebrow {
  color: var(--accent); font-size: .78rem; font-weight: 650;
  letter-spacing: .08em; text-transform: uppercase; margin: 0 0 .8rem;
}
h1, h2, h3 { line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .75rem; }
h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); max-width: 16ch; }
h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); }
h3 { font-size: 1.12rem; }
.lede { color: var(--muted); font-size: 1.08rem; max-width: 58ch; margin: 0 0 1.4rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.2rem; }
.draft-banner {
  background: #3a2a14; color: #f3d7a1; border: 1px solid #6a4d22;
  padding: .65rem 1rem; border-radius: 8px; font-size: .88rem; margin: 1rem 0 0;
}
.grid { display: grid; gap: 1rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 820px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
.card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 12px; padding: 1.15rem 1.2rem;
}
.card strong.label {
  display: block; color: var(--accent); font-size: .75rem;
  letter-spacing: .07em; text-transform: uppercase; margin-bottom: .45rem;
}
.muted { color: var(--muted); }
.section { padding: 2.4rem 0; border-top: 1px solid var(--line); }
.list { margin: 0; padding-left: 1.1rem; color: var(--muted); }
.list li { margin: .35rem 0; }
.mono { font-family: var(--mono); font-size: .92rem; }
.pill {
  display: inline-block; padding: .2rem .55rem; border-radius: 999px;
  background: var(--bg-soft); color: var(--muted); font-size: .75rem;
  border: 1px solid var(--line);
}
.pill.warn { color: var(--warn); border-color: #6a4d22; background: #2a2114; }
.pill.ok { color: var(--ok); border-color: #2f5a36; background: #15241a; }
form { display: grid; gap: .85rem; }
label { display: grid; gap: .35rem; font-size: .9rem; color: var(--muted); }
input, textarea, select {
  width: 100%; padding: .7rem .8rem; border-radius: 8px;
  border: 1px solid var(--line); background: #0c1319; color: var(--text);
  font: inherit;
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 55%, transparent);
  border-color: var(--accent);
}
.site-footer {
  border-top: 1px solid var(--line); padding: 1.6rem 0 2.4rem;
  color: var(--muted); font-size: .88rem;
}
.footer-row {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li {
  display: grid; grid-template-columns: 7.5rem 1fr; gap: .7rem;
  padding: .7rem 0; border-bottom: 1px solid var(--line); align-items: start;
}
.checklist .status { font-family: var(--mono); font-size: .78rem; padding-top: .15rem; }
.note {
  border-left: 3px solid var(--accent); padding: .2rem 0 .2rem .85rem;
  color: var(--muted); margin: 1rem 0;
}

/* 2026-10-05 safe fixes (S1 phone menu, S2 button contrast, S6 footer gate, S7 logo gap). */
.brand .wordmark { white-space: nowrap; }
.btn-primary, .btn-primary:hover { color: #0f171e; }
.btn:focus-visible, .nav-menu > summary:focus-visible, .nav-menu-links a:focus-visible {
  outline: 2px solid var(--text); outline-offset: 2px;
}
.nav { position: relative; }
.nav-menu { display: none; }
.nav-menu > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .55rem;
  min-height: 44px; padding: .55rem .8rem; border: 1px solid var(--line); border-radius: 8px;
  color: var(--text); font-weight: 600; font-size: .95rem;
}
.nav-menu > summary::-webkit-details-marker { display: none; }
.nav-menu > summary::before {
  content: ""; width: 16px; height: 2px; background: currentColor;
  box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
}
.nav-menu[open] > summary { border-color: var(--muted); background: var(--bg-soft); }
.nav-menu-links {
  position: absolute; left: 0; right: 0; top: 100%; margin-top: .35rem;
  display: grid; gap: .15rem; padding: .4rem;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 14px 32px rgba(0,0,0,.45);
}
.nav-menu-links a {
  display: flex; align-items: center; min-height: 44px; padding: .65rem .9rem;
  border-radius: 8px; color: var(--text); text-decoration: none;
}
.nav-menu-links a:hover { background: var(--bg-soft); text-decoration: none; }
.nav-menu-links a[aria-current="page"] { background: var(--bg-soft); color: var(--accent-soft); }
@media (max-width: 820px) {
  .nav-menu { display: block; margin-left: auto; }
}
@media (max-width: 400px) {
  .nav { gap: .6rem; }
  .site-header .btn-primary { padding: .65rem .8rem; }
}
.footer-gate { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.footer-gate p { margin: 0; color: var(--muted); max-width: 70ch; }

/* 2026-10-05 S3 hero sample scorecard, S4 section forms (compare, timeline, accordion). */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 2rem; align-items: center; }
.hero-copy h1 { max-width: 16ch; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: 1.4rem; } }
.scorecard {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 12px;
  padding: 1.05rem 1.1rem; box-shadow: 0 18px 40px rgba(0,0,0,.35);
}
.sc-head { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; }
.sc-title { font-family: var(--mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text); font-weight: 600; }
.sc-meta { color: var(--muted); font-size: .78rem; margin: .7rem 0 .5rem; }
.sc-rows { list-style: none; margin: 0; padding: 0; }
.sc-rows li {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 7.2rem; gap: .7rem; align-items: center;
  padding: .55rem 0; border-top: 1px solid var(--line); font-size: .9rem;
}
.sc-bar { height: 8px; border-radius: 999px; background: var(--bg-soft); overflow: hidden; }
.sc-bar i {
  display: block; height: 100%; border-radius: 999px;
  background: repeating-linear-gradient(135deg, var(--accent) 0 6px, #b8461f 6px 10px);
}
.sc-tag { font-family: var(--mono); font-size: .72rem; color: var(--ok); text-align: right; }
.sc-tag.warn { color: var(--warn); }
.sc-foot { margin: .6rem 0 0; color: var(--muted); font-size: .8rem; }
.compare-wrap { overflow-x: auto; margin-top: 1rem; }
.compare { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 520px; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: .75rem .8rem; border-bottom: 1px solid var(--line); }
.compare thead th { font-family: var(--mono); font-size: .75rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.compare thead th:last-child { color: var(--accent-soft); }
.compare tbody th { color: var(--text); font-weight: 600; width: 8.5rem; }
.compare td { color: var(--muted); }
.compare td:last-child { color: var(--text); background: rgba(228,87,46,.06); }
.timeline { list-style: none; margin: 1rem 0 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 3.6rem; top: .4rem; bottom: .4rem; width: 2px; background: var(--line); }
.timeline li { display: grid; grid-template-columns: 4.4rem 1fr; gap: 1.2rem; padding: .55rem 0; position: relative; }
.timeline li::before {
  content: ""; position: absolute; left: calc(3.6rem - 5px); top: 1rem; width: 12px; height: 12px;
  border-radius: 50%; background: var(--bg); border: 2px solid var(--accent);
}
.tl-week { font-family: var(--mono); font-size: .78rem; color: var(--accent-soft); padding-top: .55rem; text-transform: uppercase; letter-spacing: .06em; }
.timeline h3 { margin: .35rem 0 .3rem; }
.timeline p { margin: 0; }
.accordion { margin-top: 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-card); }
.accordion details + details { border-top: 1px solid var(--line); }
.accordion summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  min-height: 44px; padding: .85rem 1.1rem; font-weight: 600; color: var(--text);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-family: var(--mono); color: var(--accent-soft); font-size: 1.1rem; }
.accordion details[open] summary::after { content: "\2212"; }
.accordion summary:focus-visible { outline: 2px solid var(--text); outline-offset: -2px; border-radius: 12px; }
.accordion details p { margin: 0; padding: 0 1.1rem 1rem; }

/* 2026-10-09 copy v2 additions (same tokens, no new colors). */
.sc-table { width: 100%; border-collapse: collapse; font-size: .84rem; margin-top: .3rem; }
.sc-table th, .sc-table td { text-align: left; vertical-align: top; padding: .48rem .4rem; border-top: 1px solid var(--line); }
.sc-table thead th { font-family: var(--mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; border-top: 0; }
.sc-table tbody th { color: var(--text); font-weight: 600; width: 34%; }
.sc-table td { color: var(--muted); }
.sc-table td.after { color: var(--text); font-family: var(--mono); font-size: .78rem; }
.sc-table thead th.after { color: var(--accent-soft); }
.approval { font-size: .92rem; }
.approval dl { display: grid; grid-template-columns: 8rem 1fr; gap: .45rem .9rem; margin: .8rem 0 0; }
.approval dt { font-family: var(--mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-top: .15rem; }
.approval dd { margin: 0; color: var(--text); }
.approval .ap-actions { display: flex; gap: .5rem; margin-top: .9rem; }
.approval .ap-actions span { font-family: var(--mono); font-size: .78rem; padding: .3rem .7rem; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); }
.approval .ap-actions span.yes { border-color: #2f5a36; color: var(--ok); }
@media (max-width: 520px) { .approval dl { grid-template-columns: 1fr; gap: .15rem; } .approval dd { margin-bottom: .5rem; } }
.flag { display: inline-block; padding: .1rem .45rem; border-radius: 6px; background: #2a2114; color: var(--warn); border: 1px solid #6a4d22; font-size: .8rem; font-family: var(--mono); }
.preview-banner { background: #2a2114; color: var(--warn); border-bottom: 1px solid #6a4d22; font-size: .82rem; text-align: center; padding: .4rem 1rem; }
@media (max-width: 400px) {
  .site-header .btn-primary { white-space: nowrap; font-size: .85rem; padding: .6rem .65rem; }
  .nav-menu > summary { padding: .55rem .6rem; }
}
/* rev 3: phone-friendly tables (stack rows under 600px, no sideways scroll) and source lines. */
.src { color: var(--muted); font-size: .8rem; margin: .6rem 0 0; }
.src a { color: var(--muted); text-decoration: underline; }
.big-quote { border-left: 3px solid var(--accent); padding: .3rem 0 .3rem 1rem; margin: 1rem 0; font-size: 1.12rem; color: var(--text); max-width: 60ch; }
@media (max-width: 600px) {
  .compare-wrap { overflow-x: visible; }
  .compare.stack { min-width: 0; }
  .compare.stack thead { display: none; }
  .compare.stack tr { display: block; border-bottom: 1px solid var(--line); padding: .55rem 0; }
  .compare.stack th, .compare.stack td { display: block; border: 0; padding: .2rem 0; width: auto; }
  .compare.stack td::before { content: attr(data-label); display: block; font-family: var(--mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
  .compare.stack td:last-child { background: transparent; }
}
