/* ── Fonts: Figtree (variable, weights 400–800), self-hosted from Google Fonts.
   SIL Open Font License 1.1: assets/fonts/OFL.txt ── */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/assets/fonts/figtree-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/assets/fonts/figtree-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Reset & base ── */

/* ── Reset & base ──
   Direction: exact, sober, a little dry. One ink-tinted neutral ramp, one
   accent (the green of the logo), quiet chrome. Colour and detail go into the
   terminal demo and the sample report, nowhere else. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg-deep:    #101318;
  --bg-dark:    #15181f;  /* page: a soft dark grey, not near-black */
  --bg-mid:     #1c2029;  /* card, band */
  --bg-raised:  #262b35;  /* input, active row, secondary button */
  --bg-light:   #f6f8fa;
  --accent:     #2ea043;  /* logo green: fills */
  --accent-h:   #3fb950;  /* the same green as ink on dark */
  --text:       #e4e7ed;  /* 14.3:1 on the page; softer than near-white */
  --text-2:     #b4bac6;
  --text-muted: #9ba2b1;  /* >= 4.5:1 on every surface, --bg-raised included */
  --border:     rgba(238, 240, 245, .09);
  --border-strong: rgba(238, 240, 245, .16);
  /* Form field outlines: the boundary that identifies a control, >= 3:1. */
  --border-control: #6b7282;
  --link:       var(--accent-h);
  /* Primary action: an off-white from the ramp with dark text. */
  --btn-bg:     #e4e7ed;
  --btn-bg-h:   #ffffff;
  --btn-fg:     #15181f;
  /* Kept for pages that still reference them. */
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --radius:     8px;
  --max-w:      1120px;
}
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent-h); outline-offset: 2px; border-radius: 4px; }
section { padding: 96px 24px; }
.container { max-width: var(--max-w); margin: 0 auto; }
.i { display: block; flex: none; }

/* ── Sticky nav ── */
body > nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(21, 24, 31, .88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 12px 24px; min-height: 60px;
  display: flex; align-items: center; justify-content: space-between;
}
nav .logo { font-weight: 600; font-size: 1.0625rem; color: var(--text); display: inline-flex; align-items: center; }
nav .logo:hover { text-decoration: none; }
nav .logo img { display: block; width: 20px; height: 25px; margin-right: 8px; }
nav .logo span { color: inherit; }
nav .nav-cta {
  display: inline-block; line-height: 34px;
  background: var(--btn-bg); color: var(--btn-fg); font-size: .875rem; font-weight: 500;
  padding: 0 16px; border-radius: var(--radius); border: 0;
  transition: background-color .15s var(--ease);
}
nav .nav-cta:hover { background: var(--btn-bg-h); text-decoration: none; }
/* The label is "Get early access"; narrow phones show just "Early access". */
nav .nav-cta { white-space: nowrap; }
nav .nav-cta::first-letter { text-transform: uppercase; }
nav .nav-link { white-space: nowrap; }
@media (max-width: 420px) {
  nav .hide-narrow { display: none; }
  body > nav { padding-left: 16px; padding-right: 16px; }
  .nav-links { gap: 12px; }
  nav .nav-cta { padding: 0 12px; }
}

/* ── Buttons ── */
.cta-group { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; }
.btn-primary, .btn-accent, .btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: var(--radius);
  font-family: inherit; font-size: .9375rem; font-weight: 500; line-height: 1.2; white-space: nowrap;
  cursor: pointer; text-decoration: none;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease), transform .1s var(--ease);
}
.btn-primary, .btn-accent { background: var(--btn-bg); color: var(--btn-fg); border: 0; }
.btn-primary:hover, .btn-accent:hover { background: var(--btn-bg-h); text-decoration: none; }
.btn-primary:active, .btn-accent:active { transform: scale(.98); }
/* The secondary action is a text link, so the primary button is the only filled target. */
.btn-secondary {
  padding: 0 4px; background: none; border: 0; color: var(--text);
  text-decoration: underline; text-decoration-color: var(--border-strong);
  text-decoration-thickness: 1px; text-underline-offset: 4px;
}
.btn-secondary:hover { text-decoration: underline; text-decoration-color: currentColor; }
.microcopy { font-size: .875rem; color: var(--text-muted); }

/* ── Hero ── */
#hero { padding: 96px 24px 112px; text-align: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px;
  font-size: .875rem; font-weight: 500; color: var(--text-2);
}
.hero-eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-h);
}
#hero h1 {
  font-size: clamp(2rem, 4.6vw, 3rem); font-weight: 600; letter-spacing: -.02em;
  line-height: 1.12; color: var(--text); max-width: 800px; margin: 0 auto 20px; text-wrap: balance;
}
#hero p.subheadline {
  font-size: clamp(1rem, 2.2vw, 1.125rem); line-height: 1.6; color: var(--text-2);
  max-width: 600px; margin: 0 auto 32px; text-wrap: pretty;
}
#hero .microcopy { margin-top: 16px; }

/* ── Value prop band ── */
#value-prop {
  background: var(--bg-mid);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 24px;
}
#value-prop p {
  font-size: clamp(1.0625rem, 2.2vw, 1.25rem); font-weight: 500; line-height: 1.5;
  color: var(--text-2); max-width: var(--max-w); margin: 0 auto;
}
#value-prop p a { color: var(--text); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 4px; }
#value-prop p a:hover { text-decoration-color: currentColor; }

/* ── Section heads: left-aligned, sentence case ── */
.section-label {
  display: block; font-size: .875rem; font-weight: 500; color: var(--accent-h); margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.625rem, 3.4vw, 2.25rem); font-weight: 600; letter-spacing: -.015em;
  line-height: 1.2; margin-bottom: 16px; color: var(--text); max-width: 720px; text-wrap: balance;
}
.section-sub {
  max-width: 640px; margin: 0 0 48px;
  color: var(--text-2); font-size: 1.0625rem; text-wrap: pretty;
}
.section-title + :not(.section-sub) { margin-top: 48px; }
.mt-24 { margin-top: 24px; }
.mt-14 { margin-top: 16px; }
.mb-40 { margin-bottom: 40px; }

/* ── Problem: three columns on a rule, no cards ── */
#features { background: var(--bg-dark); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 24px;
}
.problem-list { gap: 40px; }
.problem-list .feature-card { background: none; border: 0; border-top: 1px solid var(--border-strong); border-radius: 0; padding: 24px 0 0; }
.feature-card {
  background: var(--bg-mid); border: 1px solid var(--border); border-radius: 12px;
  padding: 24px;
}
.feature-icon { display: block; margin-bottom: 16px; color: var(--text-2); }
.feature-card h3 { font-size: 1.0625rem; font-weight: 600; line-height: 1.35; margin-bottom: 8px; color: var(--text); }
.feature-card p { font-size: .9375rem; color: var(--text-2); }
.feature-card code { overflow-wrap: anywhere; }

/* ── Sample report: the moment ── */
#sample-report { background: var(--bg-mid); border-top: 1px solid var(--border); }
.report {
  background: var(--bg-dark); border: 1px solid var(--border); border-radius: 14px;
  padding: 24px; margin: 0;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 24px 48px -24px rgba(0, 0, 0, .6);
}
.report-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-bottom: 24px; }
.report-title { font-weight: 600; color: var(--text); font-size: 1.0625rem; }
.report-meta { color: var(--text-muted); font-size: .8125rem; font-family: var(--mono); flex-basis: 100%; order: 3; }
.report-badge { margin-left: auto; color: var(--text-muted); font-size: .8125rem; white-space: nowrap; }
.report-stats {
  list-style: none; display: grid; gap: 1px; margin-bottom: 24px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--border); border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
}
.report-stats li { background: var(--bg-dark); padding: 16px 20px 20px; }
.report-stats strong {
  display: block; font-size: 2rem; font-weight: 500; line-height: 1.15; letter-spacing: -.02em;
  color: var(--text); font-variant-numeric: tabular-nums; margin-bottom: 4px;
}
.report-stats li:nth-child(2) strong { color: var(--accent-h); }
.report-stats span { display: block; font-size: .875rem; line-height: 1.45; color: var(--text-2); }
.report-table-wrap { overflow-x: auto; }
.report-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.report-table th, .report-table td {
  text-align: left; vertical-align: top; padding: 12px; border-bottom: 1px solid var(--border);
}
.report-table tr:last-child td { border-bottom: 0; }
.report-table th { color: var(--text-muted); font-weight: 500; font-size: .8125rem; }
.report-table th:first-child, .report-table td:first-child { padding-left: 0; }
.report-table td { color: var(--text-2); }
.report-table td:first-child { color: var(--text); }
.report-table td:nth-child(2), .report-table th:nth-child(2) { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--mono); color: var(--text); }
.report-table td:last-child { color: var(--text-muted); }
.report-table code { font-size: .8125rem; overflow-wrap: anywhere; }
.report-note { margin-top: 16px; font-size: .8125rem; color: var(--text-muted); max-width: 720px; }
#sample-report .cta-group { justify-content: flex-start; }
@media (max-width: 800px) {
  .report-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .report { padding: 16px; }
  .report-badge { margin-left: 0; order: 4; }
  .report-stats li { padding: 12px 16px 16px; }
  .report-stats strong { font-size: 1.5rem; }
  .report-table td:last-child, .report-table th:last-child { display: none; }
  .report-table td:nth-child(2), .report-table th:nth-child(2) { padding-right: 0; }
}

/* ── Feature status labels: quiet text with a dot ── */
.status {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 8px;
  font-size: .8125rem; font-weight: 500;
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; }
.status-now { color: var(--text-2); }
.status-now::before { background: var(--accent-h); }
.status-next { color: var(--text-muted); }
.status-next::before { background: transparent; box-shadow: inset 0 0 0 1px var(--text-muted); }

/* ── Roadmap and audience ── */
#benefits { background: var(--bg-mid); border-top: 1px solid var(--border); }
#benefits .feature-card { background: var(--bg-dark); }
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 32px;
}
.benefit-item { display: flex; gap: 16px; align-items: flex-start; }
.benefit-icon {
  flex: none; width: 40px; height: 40px; border-radius: 10px;
  background: var(--bg-mid); border: 1px solid var(--border); color: var(--text-2);
  display: flex; align-items: center; justify-content: center;
}
.benefit-item h3 { font-size: 1rem; font-weight: 600; color: var(--text); margin: 8px 0 4px; }
.benefit-item p { font-size: .9375rem; color: var(--text-2); }

/* ── Assessment request: copy beside the form ── */
#request-access {
  background: var(--bg-mid);
  border-top: 1px solid var(--border);
}
.request-grid { display: grid; gap: 40px; }
@media (min-width: 960px) {
  .request-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: start; }
  .request-copy { position: sticky; top: 112px; }
}
#request-access h2 { font-size: clamp(1.625rem, 3.4vw, 2.25rem); font-weight: 600; letter-spacing: -.015em; line-height: 1.2; color: var(--text); margin-bottom: 16px; }
#request-access p.sub { font-size: 1.0625rem; color: var(--text-2); max-width: 520px; margin: 0 0 24px; }
.perks-list { list-style: none; display: grid; gap: 12px; }
.perks-list li { position: relative; padding-left: 28px; font-size: .9375rem; color: var(--text); }
.perks-list li::before {
  content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 6px;
  border-left: 1.5px solid var(--accent-h); border-bottom: 1.5px solid var(--accent-h);
  transform: rotate(-45deg);
}

/* ── Signup form ── */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.signup-form {
  max-width: 640px; margin: 0; text-align: left;
  background: var(--bg-dark); border: 1px solid var(--border); border-radius: 14px; padding: 24px;
}
.signup-fields { display: flex; flex-wrap: nowrap; gap: 12px; }
.signup-input, .signup-select, .signup-textarea {
  width: 100%; min-width: 0;
  background: var(--bg-mid); color: var(--text);
  border: 1px solid var(--border-control); border-radius: var(--radius);
  font-family: inherit;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.signup-input { flex: 1 1 auto; min-height: 44px; padding: 0 14px; font-size: 1rem; }
.signup-input::placeholder { color: var(--text-muted); }
.signup-input:focus, .signup-select:focus, .signup-textarea:focus {
  outline: none; border-color: var(--accent-h);
  box-shadow: 0 0 0 3px rgba(63, 185, 80, .2);
}
.signup-hp { position: absolute; left: -5000px; }
.signup-error { color: #f47067; font-size: .875rem; margin-top: 12px; text-align: left; }
.signup-success { color: var(--accent-h); font-size: .875rem; margin-top: 12px; text-align: left; }
.signup-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px 12px; margin-top: 16px; }
.signup-form label, .signup-form legend { display: block; font-size: .875rem; font-weight: 500; color: var(--text); margin-bottom: 8px; }
.signup-form .optional { font-weight: 400; color: var(--text-muted); }
.signup-select, .signup-textarea { padding: 10px 12px; font-size: .9375rem; }
.signup-select { min-height: 44px; }
.signup-textarea { min-height: 80px; resize: vertical; }
.signup-form fieldset { border: 0; margin-top: 20px; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 8px; }
.signup-form .choice {
  display: flex; gap: 12px; align-items: flex-start; margin: 0;
  font-size: .875rem; font-weight: 400; line-height: 1.45; color: var(--text-2); cursor: pointer;
  background: var(--bg-mid); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px; transition: border-color .15s var(--ease), color .15s var(--ease), background-color .15s var(--ease);
}
.signup-form .choice:hover { border-color: var(--border-strong); }
.signup-form .choice:has(input:checked) { border-color: rgba(63, 185, 80, .5); color: var(--text); background: var(--bg-raised); }

/* Custom select + checkbox, modelled on @tailwindcss/forms */
.signup-select {
  appearance: none; -webkit-appearance: none;
  padding-right: 2.5rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%239ba2b1' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right .6rem center; background-repeat: no-repeat; background-size: 1.4em 1.4em;
}
.signup-select:hover { border-color: var(--text-muted); }
.signup-select option { background: var(--bg-mid); color: var(--text); }
.choice input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; flex-shrink: 0;
  width: 16px; height: 16px; margin-top: 2px;
  border: 1px solid var(--text-muted); border-radius: 4px;
  background-color: var(--bg-dark); background-position: center; background-repeat: no-repeat; background-size: 100% 100%;
  cursor: pointer; transition: background-color .15s var(--ease), border-color .15s var(--ease);
}
.choice input[type="checkbox"]:checked {
  border-color: transparent; background-color: var(--accent);
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
}
.choice input[type="checkbox"]:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--bg-dark), 0 0 0 4px var(--accent-h); }
.signup-actions { margin-top: 24px; }
.signup-actions .btn-accent { width: 100%; }
.consent { font-size: .8125rem; color: var(--text-muted); margin-top: 12px; }

/* ── Footer ── */
footer {
  background: var(--bg-deep); border-top: 1px solid var(--border);
  padding: 32px 24px; text-align: center;
  font-size: .875rem; color: var(--text-muted);
}
footer .footer-links { margin-bottom: 12px; display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
footer .footer-links a { color: var(--text-muted); }
footer .footer-links a:hover { color: var(--text); }

/* ── Inline code ── */
code { font-family: var(--mono); font-size: .86em; background: rgba(238, 240, 245, .08); padding: 1px 5px; border-radius: 4px; font-variant-ligatures: none; }
/* Long expressions in prose wrap instead of widening the page on phones. */
.page :not(pre) > code { overflow-wrap: anywhere; }
pre code { background: none; padding: 0; }

/* ── Simple content pages (privacy, 404, thanks) ── */
.page { max-width: 760px; margin: 0 auto; padding: 64px 24px 80px; }
.page h1 { font-size: clamp(1.75rem, 4vw, 2.25rem); font-weight: 600; letter-spacing: -.015em; line-height: 1.2; color: var(--text); margin-bottom: 8px; }
.page h2 { font-size: 1.25rem; font-weight: 600; color: var(--text); margin: 32px 0 12px; }
.page p, .page li { color: var(--text-2); margin-bottom: 12px; }
.page ul { padding-left: 20px; }
.page .updated { font-size: .875rem; }

/* ── How it works ── */
#how-it-works { background: var(--bg-dark); border-top: 1px solid var(--border); }
.steps {
  list-style: none; display: grid; gap: 40px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}
.steps li { border-top: 1px solid var(--border-strong); padding-top: 20px; }
.step-num {
  display: block; margin-bottom: 12px;
  font-family: var(--mono); font-size: .8125rem; color: var(--accent-h); font-variant-numeric: tabular-nums;
}
.steps h3 { font-size: 1.0625rem; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.steps p { font-size: .9375rem; color: var(--text-2); }

/* ── Who it's for ── */
#audience { background: var(--bg-dark); border-top: 1px solid var(--border); }

/* ── FAQ: question list on the left-aligned column ── */
#faq { border-top: 1px solid var(--border); }
.faq-list { max-width: 800px; text-align: left; border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  cursor: pointer; font-weight: 500; color: var(--text); font-size: 1.0625rem; line-height: 1.4;
  list-style: none; display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 20px 0;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: none; font-family: var(--mono); color: var(--text-muted); font-weight: 400; }
.faq-item[open] summary::after { content: "−"; }
.faq-item summary:hover::after { color: var(--text); }
.faq-item p { margin: -4px 0 20px; color: var(--text-2); font-size: .9375rem; line-height: 1.65; max-width: 680px; }

/* ── Nav links ── */
/* Docs sits at the right edge, so it doesn't jump while the home page CTA is hidden */
.nav-links { display: flex; flex-direction: row-reverse; align-items: center; gap: 20px; }
.nav-links .nav-link { color: var(--text-2); font-size: .875rem; font-weight: 500; }
.nav-links .nav-link:hover { color: var(--text); text-decoration: none; }
.nav-links .nav-link[aria-current="page"] { color: var(--text); }

/* ── Site footer (columns) ── */
.site-footer { text-align: left; padding: 56px 24px 32px; }
.footer-grid {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; gap: 32px 24px;
  grid-template-columns: minmax(0, 1.4fr) repeat(5, minmax(0, 1fr));
}
.footer-brand .logo { font-weight: 600; font-size: 1.0625rem; color: var(--text); display: inline-flex; align-items: center; }
.footer-brand .logo:hover { text-decoration: none; }
.footer-brand .logo img { display: block; width: 20px; height: 25px; margin-right: 8px; }
.footer-brand .logo span { color: inherit; }
.footer-brand p { margin-top: 12px; max-width: 300px; }
.footer-heading { color: var(--text); font-weight: 500; font-size: .875rem; margin-bottom: 12px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--text-muted); }
.footer-col a:hover { color: var(--text); text-decoration: none; }
.footer-bottom {
  max-width: var(--max-w); margin: 32px auto 0; padding-top: 20px;
  border-top: 1px solid var(--border);
}
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── Responsive ── */
@media (max-width: 640px) {
  section { padding: 64px 16px; }
  #hero { padding: 56px 16px 72px; }
  .btn-primary, .btn-accent { width: 100%; }
  .cta-group { flex-direction: column; align-items: stretch; }
  .signup-fields { flex-direction: column; }
  .signup-form { padding: 16px; }
  .section-sub { margin-bottom: 32px; }
}

/* ── Long-form pages (docs, comparisons) ── */
.page-wide { max-width: 920px; }
.page .lead { font-size: 1.08rem; color: var(--text); }
.page h3 { font-size: 1.0625rem; font-weight: 600; color: var(--text); margin: 24px 0 8px; }
.page ol { padding-left: 22px; }
.page li > ul, .page li > ol { margin-top: 6px; }
.page strong { color: var(--text); font-weight: 600; }
.page pre {
  background: var(--bg-mid); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px; margin: 0 0 14px; overflow-x: auto; font-size: .86rem; line-height: 1.5;
}
.page pre code { font-size: inherit; color: var(--text); }
.breadcrumbs { font-size: .85rem; color: var(--text-muted); margin-bottom: 18px; }
.breadcrumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li { margin: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--border); }
.tldr {
  background: var(--bg-mid); border: 1px solid var(--border); border-left: 3px solid var(--accent-h);
  border-radius: var(--radius); padding: 16px 18px; margin: 24px 0;
}
.tldr p:last-child, .tldr ul:last-child { margin-bottom: 0; }
.callout {
  background: var(--bg-mid); border: 1px solid var(--border-strong);
  border-radius: var(--radius); padding: 12px 16px; margin: 0 0 14px;
}
.callout-warning { background: rgba(210,153,34,.08); border-color: rgba(210,153,34,.45); }
.callout p:last-child { margin-bottom: 0; }

/* Tables */
.table-wrap { position: relative; overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--border); border-radius: var(--radius); }
.page table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.page th, .page td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); color: var(--text-2); }
.page thead th { background: var(--bg-mid); color: var(--text); font-weight: 600; }
.page tbody th { color: var(--text); font-weight: 500; }
.page tbody tr:last-child th, .page tbody tr:last-child td { border-bottom: 0; }
/* Comparison tables: Lucide icons, SecureCI column highlighted */
.icon { display: inline-block; vertical-align: -4px; flex-shrink: 0; }
.icon.yes { color: var(--accent-h); }
.icon.no { color: #f47067; }
.icon.partial { color: #d29922; }
.page .compare-table td { white-space: normal; }
.page .compare-table .col-us { background: rgba(238,240,245,.03); color: var(--text); }
.page .compare-table thead .col-us { background: var(--bg-raised); color: var(--text); }
/* Compliance mapping: icon-only fit column and its legend */
.page .compare-table .fit { width: 56px; text-align: center; white-space: nowrap; }
.fit-legend { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0 0 18px; color: var(--text-muted); font-size: .88rem; }

/* CTA box */
.cta-box {
  background: var(--bg-mid);
  border: 1px solid var(--border); border-radius: 12px; padding: 24px; margin: 36px 0;
}
.cta-box h2 { margin-top: 0; }
.cta-box .cta-group { justify-content: flex-start; margin-top: 6px; }
.cta-box .cta-note { margin: 14px 0 0; font-size: .92rem; }

/* Docs layout, theme and code blocks: docs.css (loaded only by docs.html) */
@media (max-width: 640px) {
  .page { padding: 48px 16px 64px; }
  .nav-links { gap: 12px; }
  nav .nav-cta { padding: 7px 12px; }
}

/* ── Walkthrough video player (assets/video-dialog.js). A modal: centred,
   enters with opacity and a short rise, leaves faster than it came. ── */
.video-dialog {
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  width: min(1120px, calc(100vw - 32px));
  max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
  margin: auto; /* the global reset zeroes margins; modal dialogs centre with auto */
  padding: 0; border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
  background: var(--bg-deep); color: var(--text);
  box-shadow: 0 40px 80px -20px rgba(1,4,9,.9);
}
.video-dialog.is-tall { width: min(440px, calc(100vw - 24px)); }
.video-dialog::backdrop { background: rgba(1,4,9,.8); }
.video-dialog-head {
  display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 18px;
  background: var(--bg-mid); border-bottom: 1px solid var(--border);
}
.video-dialog-title { margin: 0; font-size: .9375rem; font-weight: 600; line-height: 1.3; }
.video-dialog-meta { color: var(--text-muted); font-size: .8rem; }
.video-dialog-close {
  flex: none; margin-left: auto; display: inline-grid; place-items: center; width: 40px; height: 40px;
  border: 1px solid var(--border); border-radius: 8px; background: var(--bg-raised); color: var(--text); cursor: pointer;
  transition: background-color .15s ease, scale .15s var(--ease-out);
}
.video-dialog-close:active { scale: .96; }
.video-dialog-close:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--bg-dark), 0 0 0 4px var(--accent-h); }
@media (hover: hover) and (pointer: fine) { .video-dialog-close:hover { background: #2e3440; } }
.video-dialog-player {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000;
  max-height: calc(100vh - 90px); max-height: calc(100dvh - 90px);
}
.video-dialog.is-tall .video-dialog-player { aspect-ratio: 9 / 16; }
@media (max-width: 520px) { .video-dialog-meta { display: none; } }
/* Fades for everyone (also under reduced motion); the rise only with motion. */
.video-dialog, .video-dialog::backdrop {
  transition: opacity .15s ease, overlay .15s allow-discrete, display .15s allow-discrete;
}
.video-dialog:not([open]), .video-dialog:not([open])::backdrop { opacity: 0; }
@starting-style {
  .video-dialog[open], .video-dialog[open]::backdrop { opacity: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .video-dialog {
    transition: opacity .22s var(--ease-out), transform .22s var(--ease-out), overlay .22s allow-discrete, display .22s allow-discrete;
  }
  .video-dialog:not([open]) { transform: translateY(6px) scale(.98); transition-duration: .15s; }
  @starting-style {
    .video-dialog[open] { transform: translateY(12px) scale(.97); }
  }
}

/* ── Landing v2: GitHub App early access ──────────────────────────────────
   Built on the tokens above: neutral ink, one green accent, quiet chrome.
   Everything here is static HTML and CSS (no inline styles: see _headers). */
@media (max-width: 860px) { nav .hide-mobile { display: none; } }

/* Hero: copy beside the organisation overview card */
.hero-grid { display: grid; gap: 48px; }
#hero .hero-alt { margin-top: 8px; }
@media (min-width: 1080px) {
  #hero { text-align: left; padding: 96px 32px 112px; }
  #hero .hero-grid { max-width: 1200px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
  #hero h1 { margin: 0 0 20px; max-width: none; font-size: clamp(2.25rem, 3.2vw, 2.875rem); }
  #hero p.subheadline { margin: 0 0 32px; max-width: 34em; }
  #hero .cta-group { justify-content: flex-start; }
}

.org-card {
  width: 100%; max-width: 640px; margin: 0 auto; text-align: left;
  background: var(--bg-mid); border: 1px solid var(--border-strong); border-radius: 14px;
  padding: 20px; box-shadow: 0 32px 64px -32px rgba(1, 4, 9, .85);
}
@media (min-width: 1080px) { .org-card { max-width: none; margin: 0; } }
.org-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.org-card-kicker { font-family: var(--mono); font-size: .75rem; color: var(--text-muted); letter-spacing: .02em; }
.org-card-title { font-size: 1.125rem; font-weight: 600; color: var(--text); }
.org-card-badge, .pr-mock-badge {
  flex: none; font-size: .75rem; color: var(--text-muted); white-space: nowrap;
  border: 1px solid var(--border); border-radius: 999px; padding: 2px 10px;
}
.org-kpis { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin-bottom: 16px; }
.org-kpis li { background: var(--bg-dark); padding: 12px 14px; }
.org-kpis strong { display: block; font-size: 1.5rem; font-weight: 600; line-height: 1.2; color: var(--text); font-variant-numeric: tabular-nums; }
.org-kpis span { display: block; font-size: .75rem; line-height: 1.35; color: var(--text-muted); margin-top: 2px; }
.org-kpis .kpi-warn strong { color: #d29922; }
.org-kpis .kpi-bad strong { color: #f85149; }
.org-findings-wrap { overflow-x: auto; }
.org-findings { width: 100%; border-collapse: collapse; font-size: .8125rem; }
.org-findings caption { text-align: left; font-weight: 600; color: var(--text); font-size: .875rem; margin-bottom: 8px; }
.org-findings th, .org-findings td { text-align: left; padding: 8px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
.org-findings th { color: var(--text-muted); font-weight: 500; font-size: .75rem; }
.org-findings th:first-child, .org-findings td:first-child { padding-left: 0; }
.org-findings tr:last-child td { border-bottom: 0; }
.org-findings td { color: var(--text-2); }
.org-findings td:nth-child(2) { color: var(--text); }
.org-findings td:nth-child(3), .org-findings th:nth-child(3) { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--text); }
.org-findings code { font-size: .75rem; overflow-wrap: anywhere; }
.org-card-foot { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding: 10px 12px; border-radius: 8px; background: rgba(46, 160, 67, .08); color: var(--text-2); font-size: .8125rem; }
.org-card-foot svg { color: var(--accent-h); }
@media (max-width: 640px) {
  .org-card { padding: 16px; }
  .org-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .org-findings .col-fix { display: none; }
}

/* Severity pills, shared by the hero card and the PR illustration */
.sev { display: inline-block; font-size: .6875rem; font-weight: 600; line-height: 1; padding: 4px 7px; border-radius: 999px; white-space: nowrap; letter-spacing: .02em; }
.sev-high { color: #ff9b94; background: rgba(248, 81, 73, .14); }
.sev-med { color: #e3b341; background: rgba(210, 153, 34, .14); }
.sev-low { color: #79c0ff; background: rgba(56, 139, 253, .14); }

/* Persona strip */
#audience { padding: 32px 24px; background: var(--bg-mid); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.persona-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.persona-label { font-size: .8125rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.persona-list { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 32px; }
.persona-list li { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 500; }
.persona-list svg { color: var(--accent-h); }

/* Catch it in the PR */
#pr-checks { background: var(--bg-mid); border-top: 1px solid var(--border); }
.pr-grid { display: grid; gap: 40px; }
@media (min-width: 1000px) { .pr-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: 56px; } }
.pr-points { list-style: none; display: grid; gap: 12px; margin-bottom: 20px; }
.pr-points li { color: var(--text-2); font-size: .9375rem; }
.pr-points .status { display: flex; margin: 0 0 2px; }
.pr-links { font-size: .875rem; color: var(--text-muted); }
.pr-mock { background: var(--bg-dark); border: 1px solid var(--border-strong); border-radius: 14px; overflow: hidden; }
.pr-mock-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: var(--bg-deep); border-bottom: 1px solid var(--border); }
.pr-mock-repo { font-family: var(--mono); font-size: .75rem; color: var(--text-muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-mock-body { padding: 16px; }
.pr-mock-title { font-weight: 600; color: var(--text); }
.pr-mock-file { margin: 4px 0 12px; font-size: .8125rem; }
.pr-comment { border: 1px solid var(--border); border-radius: 10px; padding: 14px; background: var(--bg-mid); }
.pr-comment-head { font-size: .875rem; color: var(--text-2); margin-bottom: 10px; }
.pr-bot { font-weight: 600; color: var(--text); margin-right: 4px; }
.pr-findings { list-style: none; display: grid; gap: 8px; }
.pr-findings li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; align-items: baseline; font-size: .8125rem; color: var(--text-2); }
.pr-findings .sev { justify-self: start; }
.pr-findings code { overflow-wrap: anywhere; font-size: .75rem; }
.pr-fix-label { margin: 14px 0 6px; font-size: .8125rem; color: var(--text-muted); }
.pr-diff { margin: 0; padding: 10px 12px; border-radius: 8px; background: var(--bg-deep); overflow-x: auto; font: 400 .75rem/1.6 var(--mono); }
.pr-diff span { display: block; white-space: pre; }
.d-del { color: #ff7b72; }
.d-add { color: #56d364; }

/* How it works: the permissions card in step 02 */
.section-label .status { margin-left: 10px; text-transform: none; letter-spacing: 0; }
.perm-card { border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; background: var(--bg-mid); }
.perm-head { font-size: .8125rem; color: var(--text-muted); margin-bottom: 8px; }
.perm-card ul { list-style: none; display: grid; gap: 6px; margin-bottom: 10px; }
.perm-card li { display: flex; justify-content: space-between; gap: 12px; font-size: .875rem; color: var(--text); }
.perm-card li span { color: var(--accent-h); font-family: var(--mono); font-size: .8125rem; }
.steps .perm-card p.perm-note { font-size: .8125rem; color: var(--text-muted); }
.steps-alt { margin-top: 40px; max-width: 760px; color: var(--text-2); font-size: .9375rem; border-left: 2px solid var(--accent); padding-left: 16px; }

/* Comparison */
#compare { background: var(--bg-dark); border-top: 1px solid var(--border); }
.compare-wrap { overflow-x: auto; }
.compare-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .875rem; }
.compare-table th, .compare-table td { text-align: left; padding: 12px; border-bottom: 1px solid var(--border); vertical-align: top; color: var(--text-2); }
.compare-table thead th { color: var(--text-muted); font-weight: 500; font-size: .8125rem; }
.compare-table thead a { color: var(--text-2); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.compare-table tbody th { color: var(--text); font-weight: 500; }
.compare-table th:first-child { padding-left: 0; }
.compare-table .col-us { background: rgba(46, 160, 67, .07); color: var(--text); }
.compare-table thead .col-us { color: var(--accent-h); }
.compare-note { margin-top: 16px; font-size: .8125rem; color: var(--text-muted); max-width: 720px; }

/* Built on the open-source CLI */
#cli { background: var(--bg-mid); border-top: 1px solid var(--border); }
.cli-band { display: grid; gap: 32px; }
@media (min-width: 1000px) { .cli-band { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 56px; } }
.cli-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.cli-links .btn-secondary { min-height: 36px; }
.cli-install { margin: 0; padding: 16px 18px; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--bg-deep); overflow-x: auto; font: 400 .8125rem/1.8 var(--mono); color: var(--text); }
.cli-install .ps { color: var(--accent-h); user-select: none; }

/* Security & data handling */
#security { background: var(--bg-dark); border-top: 1px solid var(--border); }

/* Request form: intent choice */
.signup-form fieldset.intent { margin: 0 0 20px; }
.choice input[type="radio"] {
  appearance: none; flex: none; width: 16px; height: 16px; margin: 0; border-radius: 50%;
  border: 1px solid var(--text-muted); background: var(--bg-dark); cursor: pointer;
}
.choice input[type="radio"]:checked { border: 5px solid var(--accent-h); }
.choice input[type="radio"]:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--bg-dark), 0 0 0 4px var(--accent-h); }
.demo-watch {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 4px;
  border-radius: 8px; background: none;
  font-size: .875rem; font-weight: 500; color: var(--text);
  transition: background-color .15s ease, border-color .15s ease, scale .15s var(--ease);
}
.demo-watch svg { color: var(--accent-h); }
.demo-watch:active { scale: .96; }
.demo-watch:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--bg-dark), 0 0 0 4px var(--accent-h); }
@media (hover: hover) and (pointer: fine) {
  .demo-watch:hover { text-decoration: underline; text-underline-offset: 3px; }
}

