/* VibeProtect marketing site.
   Hand-authored: these pages ship no JavaScript and no CSS framework, so the
   whole site is this one stylesheet.

   Design system, "night shift" (docs/CONTRACT.md):
   - Canvas is a near-black violet; panels are flat with 1px lines. Nothing is
     glassy, nothing lifts on hover, no gradient blobs.
   - Accents have fixed meanings. Lime = safe: primary actions, links, OK,
     verified (used sparingly). Violet = the AI builder's voice: platform
     names, fix prompts, code keywords. Amber = a finding. Red = critical/high
     severity only.
   - Type voices: Space Grotesk for display, JetBrains Mono for anything the
     scanner says (keys, paths, hosts, grades, labels, prices), the system
     sans for prose.
   - Signature motif: the code panel with a scan line (lib/hero.mjs, "cp-"
     rules below). The "// label" eyebrow is the same code voice. */

:root {
  --canvas: #0c0a14;
  --panel: #15121f;
  --panel-2: #1d1930;
  --line: #2a2540;
  --line-strong: #3a3358;
  --text: #ece9f5;
  --muted: #9a93b3;
  --faint: #6b6585;
  --accent: #b8f35a;
  --accent-ink: #14210a;
  --violet: #8b7bff;
  --amber: #ffb547;
  --red: #ff5d6c;

  --accent-soft: rgba(184, 243, 90, 0.12);
  --violet-soft: rgba(139, 123, 255, 0.08);
  --violet-line: rgba(139, 123, 255, 0.42);
  --amber-soft: rgba(255, 181, 71, 0.15);
  --amber-line: rgba(255, 181, 71, 0.5);
  --red-soft: rgba(255, 93, 108, 0.13);
  --red-line: rgba(255, 93, 108, 0.5);

  --radius: 6px;
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font: 16px/1.65 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 560px) { .wrap { padding: 0 16px; } }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

::selection { background: rgba(184, 243, 90, 0.3); color: var(--text); }

a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, label:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.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;
}

.skip {
  position: absolute; left: -9999px;
  background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: var(--radius);
}
.skip:focus { left: 12px; top: 12px; z-index: 100; }

.mono, code, pre, kbd { font-family: var(--font-mono); }
code {
  font-size: 0.88em;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 5px;
  overflow-wrap: anywhere;
}
pre {
  margin: 16px 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.6;
}
pre code { background: none; border: 0; padding: 0; font-size: inherit; overflow-wrap: normal; }

/* --- type --- */

h1, h2, h3 { font-family: var(--font-display); color: var(--text); margin: 0; }
h1 {
  font-weight: 700;
  font-size: clamp(40px, 6.2vw, 72px);
  line-height: 1.0;
  letter-spacing: -0.03em;
}
h1.h1-sm { font-size: clamp(34px, 4.6vw, 54px); line-height: 1.05; }
h2 {
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
h3 { font-weight: 500; font-size: 20px; line-height: 1.25; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.lede { font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 60ch; margin: 22px 0 0; }
.lede strong { color: var(--text); font-weight: 600; }

/* The eyebrow speaks in the scanner's voice: a code comment. */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin: 0 0 18px;
}
.eyebrow::before { content: "// "; color: var(--violet); }

.note { color: var(--muted); font-size: 14.5px; }
.lime { color: var(--accent); }
.amber { color: var(--amber); }

/* --- buttons --- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 15px/1 var(--font-sans);
  padding: 13px 20px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #c6f879; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-sm { padding: 9px 14px; font-size: 14px; }
.btn-block { width: 100%; }

/* --- header --- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--canvas);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 14px; padding-bottom: 14px;
}
.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 19px/1 var(--font-display);
  letter-spacing: -0.02em;
  color: var(--text);
}
.wordmark .wm span { color: var(--muted); }
.wordmark::before {
  content: ""; width: 26px; height: 26px; flex: none;
  background: url(/favicon.svg) center / contain no-repeat;
}
.wordmark:hover { text-decoration: none; }

.site-nav { display: flex; align-items: center; gap: 24px; font-size: 14.5px; }
.site-nav > a:not(.btn), .nav-drop > button { color: var(--muted); }
.site-nav a:not(.btn):hover, .nav-drop > button:hover { color: var(--text); text-decoration: none; }
.site-nav a[aria-current="page"], .nav-drop > button.on { color: var(--text); }
.site-nav .btn-primary { color: var(--accent-ink); }

.nav-drop { position: relative; }
.nav-drop > button {
  font: inherit; background: none; border: 0; padding: 6px 0; cursor: pointer;
}
.caret { font-size: 10px; margin-left: 2px; }
.nav-menu {
  position: absolute; top: 100%; left: -14px; min-width: 170px;
  padding: 8px; margin-top: 6px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  display: none;
}
.nav-menu::before { content: ""; position: absolute; top: -8px; left: 0; right: 0; height: 8px; }
.nav-drop:hover .nav-menu, .nav-drop:focus-within .nav-menu { display: grid; }
.nav-menu a {
  display: block; padding: 8px 10px; border-radius: 4px;
  color: var(--text); font-family: var(--font-display); font-weight: 500;
}
.nav-menu a:hover { background: var(--panel-2); text-decoration: none; }
.nav-menu a[aria-current="page"] { color: var(--violet); }

@media (max-width: 860px) {
  .header-inner { flex-wrap: wrap; row-gap: 10px; }
  .site-nav { gap: 16px; flex-wrap: wrap; font-size: 14px; }
  .nav-signin { display: none; }
}
@media (max-width: 560px) {
  .site-nav { width: 100%; justify-content: space-between; gap: 10px; }
  .site-nav > a[href="/mcp"] { display: none; }
}

/* --- sections --- */

section { padding: 96px 0; }
section.tight { padding: 64px 0; }
section.alt { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
section + section.alt, section.alt + section { border-top-color: var(--line); }
@media (max-width: 720px) { section { padding: 64px 0; } }

.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head .lede { margin-top: 16px; }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
section.alt .card { background: var(--canvas); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); margin: 0; font-size: 15px; }
.card p + p { margin-top: 10px; }

.chip {
  display: inline-block;
  font: 500 11px/1 var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  padding: 5px 7px;
}
.chip-violet { color: var(--violet); border-color: var(--violet-line); }
.chip-lime { color: var(--accent); border-color: rgba(184, 243, 90, 0.4); }

/* --- hero --- */

.hero { padding: 80px 0 88px; border-bottom: 1px solid var(--line); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: 56px;
  align-items: center;
}
.hero h1 em { font-style: normal; color: var(--amber); }
.hero .lede { margin-top: 26px; }
.hero-sub { margin-top: 14px; font: 13px/1.5 var(--font-mono); color: var(--faint); }
.hero-sub span { color: var(--muted); }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
}
@media (max-width: 560px) { .hero { padding: 48px 0 56px; } }

/* The paste-your-URL form. */
.url-cta {
  display: flex; align-items: stretch;
  margin-top: 34px; max-width: 540px;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 5px;
}
.url-cta:focus-within { border-color: var(--accent); }
.url-scheme {
  display: flex; align-items: center; padding: 0 0 0 12px;
  font: 14px var(--font-mono); color: var(--faint);
}
.url-cta input {
  flex: 1; min-width: 0;
  background: transparent; border: 0; outline: none;
  font: 15px var(--font-mono); color: var(--text);
  padding: 10px 8px 10px 2px;
}
.url-cta input::placeholder { color: var(--muted); opacity: 0.7; }
.url-cta .btn { padding: 12px 18px; }
@media (max-width: 460px) {
  .url-cta { flex-wrap: wrap; }
  .url-cta input { flex-basis: 60%; }
  .url-cta .btn { width: 100%; margin-top: 5px; }
}

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 30px; }

/* --- the code panel (signature motif) --- */

.code-panel {
  --cp-lh: 27px;
  --cp-dur: 8s;
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  font: 12.5px/1 var(--font-mono);
  overflow: hidden;
  min-width: 0;
}
.cp-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11.5px;
}
.cp-file { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-pub { color: var(--faint); white-space: nowrap; }
.cp-pub::before {
  content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 7px;
  border: 1px solid var(--faint); border-radius: 50%; vertical-align: 1px;
}

.cp-body { position: relative; padding: 14px 0; }
.cp-code {
  position: relative;
  list-style: none; margin: 0; padding: 0;
  counter-reset: ln;
}
.cp-code li {
  position: relative;
  height: var(--cp-lh); line-height: var(--cp-lh);
  padding: 0 14px 0 50px;
  white-space: pre; overflow: hidden;
  color: #7a7396;
  counter-increment: ln;
}
.cp-code li::before {
  content: counter(ln);
  position: absolute; left: 0; width: 34px; text-align: right;
  color: #4a4463;
}
.tk-s { color: #bdb6d3; }
.tk-k { color: var(--violet); }

/* The final, "found it" state is the base style, so reduced motion (no
   animation at all) still shows the whole story. */
.cp-hit {
  background: var(--amber-soft);
  color: var(--amber);
  box-shadow: inset 0 0 0 1px var(--amber-line);
  border-radius: 3px;
  padding: 2px 1px;
}
.cp-hit .tk-s, .cp-hit .tk-k { color: inherit; }
.cp-tag {
  position: absolute; right: 10px; top: 50%;
  transform: translateY(-50%);
  height: 20px; line-height: 18px;
  padding: 0 7px;
  font-size: 10.5px; letter-spacing: 0.02em;
  color: var(--amber);
  background: var(--canvas);
  border: 1px solid var(--amber-line);
  border-radius: 3px;
}
.cp-scan {
  position: absolute; left: 0; right: 0; top: 100%;
  height: 2px;
  background: var(--accent);
  opacity: 0;
  pointer-events: none;
}
/* The band the line leaves behind it: flat, faint, lime. */
.cp-scan::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 46px;
  background: linear-gradient(to top, rgba(184, 243, 90, 0.11), rgba(184, 243, 90, 0));
}

.cp-readout {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.cp-target { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-dot { width: 7px; height: 7px; background: var(--accent); border-radius: 1px; flex: none; }
.cp-status { display: grid; justify-items: end; white-space: nowrap; }
.cp-s { grid-area: 1 / 1; opacity: 0; }
.cp-s1, .cp-s2 { color: var(--amber); }
.cp-s3 { opacity: 1; color: var(--text); }
.cp-s3 b { color: var(--amber); font-weight: 600; }

@media (prefers-reduced-motion: no-preference) {
  .cp-scan { animation: cp-scan var(--cp-dur) linear infinite both; }
  .cp-tag-1 { animation: cp-tag-1 var(--cp-dur) linear infinite both; }
  .cp-tag-2 { animation: cp-tag-2 var(--cp-dur) linear infinite both; }
  .cp-hit-1 { animation: cp-mark-1 var(--cp-dur) linear infinite both; }
  .cp-hit-2 { animation: cp-mark-2 var(--cp-dur) linear infinite both; }
  .cp-s0 { animation: cp-s0 var(--cp-dur) linear infinite both; }
  .cp-s1 { animation: cp-s1 var(--cp-dur) linear infinite both; }
  .cp-s2 { animation: cp-s2 var(--cp-dur) linear infinite both; }
  .cp-s3 { animation: cp-s3 var(--cp-dur) linear infinite both; }
  .cp-dot { animation: cp-dot var(--cp-dur) steps(1) infinite both; }
}

/* Timings. The sweep covers 10 lines between 0% and 60%, so line i (0-based)
   is reached at 60 * (i + 0.5) / 10 percent: line 3 at 21%, line 7 at 45%.
   Keep in step with CP_LINES and the hit lines in lib/hero.mjs. */
@keyframes cp-scan {
  0% { top: 0; opacity: 0; }
  2% { opacity: 1; }
  60% { top: 100%; opacity: 1; }
  64%, 100% { top: 100%; opacity: 0; }
}
@keyframes cp-tag-1 {
  0%, 20.5% { opacity: 0; }
  22.5%, 94% { opacity: 1; }
  98%, 100% { opacity: 0; }
}
@keyframes cp-tag-2 {
  0%, 44.5% { opacity: 0; }
  46.5%, 94% { opacity: 1; }
  98%, 100% { opacity: 0; }
}
@keyframes cp-s0 { 0%, 21% { opacity: 1; } 21.5%, 97.5% { opacity: 0; } 98%, 100% { opacity: 1; } }
@keyframes cp-s1 { 0%, 21% { opacity: 0; } 21.5%, 45% { opacity: 1; } 45.5%, 100% { opacity: 0; } }
@keyframes cp-s2 { 0%, 45% { opacity: 0; } 45.5%, 61% { opacity: 1; } 61.5%, 100% { opacity: 0; } }
@keyframes cp-s3 { 0%, 61% { opacity: 0; } 61.5%, 97% { opacity: 1; } 97.5%, 100% { opacity: 0; } }
@keyframes cp-dot { 0% { background: var(--violet); } 62% { background: var(--accent); } 98% { background: var(--violet); } }

/* The mark keeps its text visible; only its amber treatment comes and goes. */
@keyframes cp-mark-1 {
  0%, 20.5% { background-color: transparent; color: #bdb6d3; box-shadow: inset 0 0 0 1px transparent; }
  22.5%, 94% { background-color: var(--amber-soft); color: var(--amber); box-shadow: inset 0 0 0 1px var(--amber-line); }
  98%, 100% { background-color: transparent; color: #bdb6d3; box-shadow: inset 0 0 0 1px transparent; }
}
@keyframes cp-mark-2 {
  0%, 44.5% { background-color: transparent; color: #bdb6d3; box-shadow: inset 0 0 0 1px transparent; }
  46.5%, 94% { background-color: var(--amber-soft); color: var(--amber); box-shadow: inset 0 0 0 1px var(--amber-line); }
  98%, 100% { background-color: transparent; color: #bdb6d3; box-shadow: inset 0 0 0 1px transparent; }
}

@media (max-width: 560px) {
  .code-panel { --cp-lh: 24px; font-size: 11px; }
  .cp-code li { padding-left: 38px; }
  .cp-code li::before { width: 24px; }
  .cp-pub { display: none; }
  /* No room beside the code: the amber highlight carries the finding alone. */
  .cp-tag { display: none; }
}

/* --- platform strip --- */

.platform-strip { padding: 34px 0; border-bottom: 1px solid var(--line); }
.platform-strip .wrap { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.strip-label { font: 12px var(--font-mono); color: var(--faint); white-space: nowrap; }
.strip-list {
  display: flex; flex-wrap: wrap; gap: 0; list-style: none; margin: 0; padding: 0;
  border-left: 1px solid var(--line);
}
.strip-list li {
  font: 500 19px/1 var(--font-display);
  letter-spacing: -0.01em;
  color: var(--muted);
  padding: 6px 20px;
  border-right: 1px solid var(--line);
}
.strip-list a { color: inherit; }
.strip-list a:hover { color: var(--violet); text-decoration: none; }
@media (max-width: 560px) {
  .strip-list li { font-size: 16px; padding: 6px 12px; }
}

/* --- "what we find" --- */

.finds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.find { background: var(--canvas); padding: 26px 24px 24px; display: flex; flex-direction: column; gap: 10px; }
.find h3 { font-size: 21px; }
.find p { color: var(--muted); font-size: 15px; margin: 0; }
.find-tech { font: 12px/1.4 var(--font-mono); color: var(--faint); margin-top: auto; padding-top: 6px; }
.find-tech::before { content: "= "; color: var(--violet); }
.find-more { background: var(--panel); justify-content: center; }
.find-more a { font-family: var(--font-display); font-size: 19px; font-weight: 500; }
.finds-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .finds { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .finds { grid-template-columns: 1fr; } }

/* --- finding card + fix prompt --- */

.fix-demo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr);
  align-items: stretch;
}
.finding-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
}
section.alt .finding-card { background: var(--canvas); }
.finding-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.finding-id { font: 12px var(--font-mono); color: var(--faint); overflow-wrap: anywhere; }
.finding-card h3 { font-size: 22px; margin-bottom: 8px; }
.finding-card > p { color: var(--muted); font-size: 15px; }
.evidence {
  margin: 16px 0 0; padding: 12px 14px;
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: 4px;
  font: 12.5px/1.6 var(--font-mono);
}
section.alt .evidence { background: var(--panel); }
.evidence div { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 10px; }
.evidence dt { color: var(--faint); }
.evidence dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
.finding-note { margin: 12px 0 0; font-size: 13.5px; color: var(--faint); }

.fix-arrow { position: relative; display: flex; align-items: center; justify-content: center; }
.fix-arrow::before {
  content: ""; position: absolute; left: 0; right: 6px; top: 50%;
  border-top: 1px dashed var(--violet-line);
}
.fix-arrow::after {
  content: ""; position: absolute; right: 2px; top: calc(50% - 4px);
  border: 4px solid transparent; border-left: 6px solid var(--violet);
}
.fix-arrow span {
  position: relative; z-index: 1;
  font: 10px var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--violet); background: var(--canvas); padding: 3px 4px;
  writing-mode: vertical-rl; transform: rotate(180deg);
}
section.alt .fix-arrow span { background: var(--panel); }

.prompt-box {
  border: 1px solid var(--violet-line);
  background: var(--violet-soft);
  border-radius: var(--radius);
  display: flex; flex-direction: column;
}
.prompt-head {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--violet-line);
}
.prompt-label {
  font: 600 12px var(--font-mono); letter-spacing: 0.03em; color: var(--violet);
}
.prompt-label::before { content: "> "; }
.prompt-hint { font: 11px var(--font-mono); color: var(--faint); }
.prompt-foot {
  margin-top: auto; padding: 12px 16px;
  border-top: 1px dashed var(--violet-line);
  font: 11.5px var(--font-mono); color: var(--faint);
}
.prompt-foot::before { content: "\21BB  "; color: var(--accent); }
.prompt-text {
  margin: 0; padding: 16px;
  font: 13.5px/1.7 var(--font-mono);
  color: var(--text);
  /* No JavaScript, so no copy button: one click selects the whole prompt. */
  -webkit-user-select: all; user-select: all;
  cursor: text;
}

@media (max-width: 860px) {
  .fix-demo { grid-template-columns: 1fr; }
  .fix-arrow { height: 54px; }
  .fix-arrow::before { left: 50%; right: auto; top: 0; bottom: 6px; border-top: 0; border-left: 1px dashed var(--violet-line); }
  .fix-arrow::after { right: auto; left: calc(50% - 4px); top: auto; bottom: 0; border: 4px solid transparent; border-top: 6px solid var(--violet); }
  .fix-arrow span { writing-mode: horizontal-tb; transform: none; }
}

/* --- severity --- */

.sev {
  display: inline-block;
  font: 600 10.5px/1 var(--font-mono);
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 5px 7px; border-radius: 3px;
  border: 1px solid var(--line-strong); color: var(--muted);
}
.sev-critical, .sev-high { color: var(--red); border-color: var(--red-line); background: var(--red-soft); }
.sev-medium, .sev-low { color: var(--amber); border-color: var(--amber-line); background: var(--amber-soft); }
.sev-low { background: transparent; }

/* --- how it works --- */

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.steps li {
  border-top: 1px solid var(--line-strong);
  padding-top: 20px;
  display: flex; flex-direction: column; gap: 10px;
}
.step-n { font: 600 13px var(--font-mono); color: var(--accent); }
.steps h3 { font-size: 20px; }
.steps p { color: var(--muted); font-size: 15px; margin: 0; }
.step-sample {
  margin-top: auto;
  font: 12px/1.5 var(--font-mono);
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 8px 10px;
  overflow-wrap: anywhere;
}
section.alt .step-sample { background: var(--canvas); }
.step-sample.violet { color: var(--violet); border-color: var(--violet-line); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* --- ownership --- */

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } }
.split p { color: var(--muted); }
.split p strong { color: var(--text); font-weight: 600; }

.proofs { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
section.alt .proofs { background: var(--canvas); }
.proof { padding: 18px 20px; border-top: 1px solid var(--line); }
.proof:first-child { border-top: 0; }
.proof-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin-bottom: 6px; }
.proof-head strong { font: 500 17px var(--font-display); }
.proof-head span { font: 11px var(--font-mono); color: var(--faint); text-transform: uppercase; letter-spacing: 0.05em; }
.proof code { display: block; margin-top: 6px; padding: 8px 10px; background: var(--canvas); white-space: pre-wrap; overflow-wrap: anywhere; }
section.alt .proof code { background: var(--panel); }
.proof p { margin: 0; color: var(--muted); font-size: 14.5px; }

.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; color: var(--muted); }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 0.55em;
  width: 10px; height: 5px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.ticks li strong { color: var(--text); font-weight: 600; }

/* --- pricing --- */

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 480px; } }
.plan {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
  display: flex; flex-direction: column;
}
section.alt .plan { background: var(--canvas); }
.plan.featured { border-color: rgba(184, 243, 90, 0.55); }
.plan-badge {
  position: absolute; top: -11px; left: 22px;
  font: 600 10.5px/1 var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em;
  background: var(--accent); color: var(--accent-ink);
  padding: 5px 8px; border-radius: 3px;
}
.plan h3 { font-size: 22px; font-weight: 700; }
.price { display: flex; align-items: baseline; gap: 4px; margin-top: 14px; font-family: var(--font-mono); }
.price .amount { font-size: 42px; font-weight: 600; letter-spacing: -0.03em; color: var(--text); }
.price .per { font-size: 13px; color: var(--muted); }
.price-sub { min-height: 1.5em; font: 12px var(--font-mono); color: var(--faint); margin-top: 4px; }
.plan .blurb { color: var(--muted); font-size: 15px; margin: 14px 0 0; }
.plan .features { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 9px; font-size: 14.5px; }
.plan .features li { position: relative; padding-left: 22px; }
.plan .features li::before {
  content: ""; position: absolute; left: 1px; top: 0.55em;
  width: 9px; height: 4px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.plan .btn { margin-top: auto; }
.plan .features { margin-bottom: 24px; }

/* Pure-CSS monthly/yearly switch: two sets of cards, one radio pair, no JS. */
input[name="term"] { position: absolute; opacity: 0; pointer-events: none; }
.term-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 36px 0 28px; }
.segmented { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 3px; }
.term-switch label {
  padding: 8px 16px; border-radius: 4px;
  font: 500 13px var(--font-mono); color: var(--muted); cursor: pointer;
}
.term-switch label:hover { color: var(--text); }
#term-month:checked ~ .term-switch label[for="term-month"],
#term-year:checked ~ .term-switch label[for="term-year"] { background: var(--panel-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }
#term-month:focus-visible ~ .term-switch label[for="term-month"],
#term-year:focus-visible ~ .term-switch label[for="term-year"] { outline: 2px solid var(--accent); outline-offset: 2px; }
#term-month:checked ~ .plans[data-term="year"],
#term-year:checked ~ .plans[data-term="month"] { display: none; }
.savings { font: 12px var(--font-mono); color: var(--accent); }

.pricing-teaser { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); }
.pricing-teaser > div { padding: 24px; border-left: 1px solid var(--line); }
.pricing-teaser > div:first-child { border-left: 0; }
.pricing-teaser .price { margin-top: 8px; }
.pricing-teaser .price .amount { font-size: 34px; }
.pricing-teaser p { color: var(--muted); font-size: 14.5px; margin: 10px 0 0; }
@media (max-width: 760px) {
  .pricing-teaser { grid-template-columns: 1fr; }
  .pricing-teaser > div { border-left: 0; border-top: 1px solid var(--line); }
  .pricing-teaser > div:first-child { border-top: 0; }
}

/* --- tables --- */

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td, tr:last-child th { border-bottom: 0; }
thead th {
  font: 600 11.5px var(--font-mono); text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--muted); background: var(--panel); white-space: nowrap;
}
tbody th { font-weight: 600; white-space: nowrap; }
td.yes { color: var(--accent); font-family: var(--font-mono); font-size: 13px; }
td.no { color: var(--faint); font-family: var(--font-mono); font-size: 13px; }
td.val { font-family: var(--font-mono); font-size: 13px; }

/* --- checks reference --- */

.check-index { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.check-index a {
  font: 12px var(--font-mono); color: var(--muted);
  border: 1px solid var(--line); border-radius: 3px; padding: 6px 9px;
}
.check-index a:hover { color: var(--text); border-color: var(--line-strong); text-decoration: none; }
.check-group { padding-top: 56px; scroll-margin-top: 80px; }
.check-group-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 32px; margin-bottom: 22px; }
.check-group-head h2 { font-size: clamp(24px, 2.8vw, 32px); }
.check-group-head .module { display: block; font: 12px var(--font-mono); color: var(--faint); margin-bottom: 10px; }
.check-group-head p { color: var(--muted); margin: 0; font-size: 15px; }
@media (max-width: 800px) { .check-group-head { grid-template-columns: 1fr; gap: 12px; } }
.check-list { border: 1px solid var(--line); border-radius: var(--radius); }
.check-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) minmax(0, 0.8fr); gap: 20px; padding: 18px 20px; border-top: 1px solid var(--line); }
.check-row:first-child { border-top: 0; }
.check-row h3 { font-size: 17px; margin-bottom: 4px; }
.check-row p { margin: 0; color: var(--muted); font-size: 14.5px; }
.check-ids { font: 11.5px/1.7 var(--font-mono); color: var(--faint); overflow-wrap: anywhere; }
@media (max-width: 800px) { .check-row { grid-template-columns: 1fr; gap: 8px; } }

/* --- FAQ --- */

.faq { border-top: 1px solid var(--line); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 20px 36px 20px 0; position: relative;
  font: 500 18px/1.4 var(--font-display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 18px;
  font: 400 20px var(--font-mono); color: var(--muted);
}
.faq details[open] summary::after { content: "\2212"; color: var(--accent); }
.faq-a { padding: 0 0 22px; color: var(--muted); max-width: 70ch; }
.faq-a p { margin: 0; }

/* --- final CTA band --- */

.cta-band { text-align: left; }
.cta-band .url-cta { margin-top: 28px; }

/* --- prose pages (legal, docs-like pages) --- */

.prose { max-width: 760px; }
.prose h2 { font-size: 26px; margin: 48px 0 14px; }
.prose h3 { font-size: 19px; margin: 30px 0 10px; }
.prose p, .prose li { color: #cfcae0; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 1em; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--text); }

.legal { max-width: 760px; }
.legal h1 { font-size: clamp(34px, 4.5vw, 48px); }
.legal .updated { font: 12.5px var(--font-mono); color: var(--faint); margin-top: 14px; }
.legal section { padding: 0; }
.legal h2 { font-size: 21px; margin: 40px 0 12px; }
.legal p, .legal li { color: #cfcae0; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 8px; }

/* --- page heads --- */

.page-head { padding: 72px 0 56px; border-bottom: 1px solid var(--line); }
.page-head .lede { max-width: 66ch; }
@media (max-width: 560px) { .page-head { padding: 48px 0 40px; } }

.platform-name { color: var(--violet); }

/* --- forms (support) --- */

.support-page { max-width: 720px; }
.support-form { display: grid; gap: 18px; margin-top: 32px; }
.field-row { display: grid; gap: 18px; }
@media (min-width: 620px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 7px; }
.field > span { font-size: 14px; font-weight: 600; color: var(--text); }
.support-form input, .support-form select, .support-form textarea {
  width: 100%;
  font: inherit; color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 11px 13px;
}
.support-form textarea { resize: vertical; min-height: 150px; line-height: 1.6; }
.support-form ::placeholder { color: var(--faint); }
.support-form input:focus-visible, .support-form select:focus-visible, .support-form textarea:focus-visible {
  outline: none; border-color: var(--accent);
}
.support-form button { justify-self: start; }
.support-form button:disabled { opacity: 0.55; cursor: default; }
/* Honeypot. Off-screen rather than display:none: some bots skip hidden
   inputs, almost none check where an element sits. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; font-size: 14px; color: var(--muted); min-height: 1.2em; }
.form-status.ok { color: var(--accent); }
.form-status.bad { color: var(--red); }
.form-note { margin: 0; font-size: 13.5px; color: var(--faint); }
.support-aside { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.support-aside h2 { font-size: 22px; margin-bottom: 12px; }
.support-aside p { color: var(--muted); }

/* --- footer --- */

.site-footer { border-top: 1px solid var(--line); padding: 56px 0 28px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.footer-brand { max-width: 300px; }
.footer-brand p { color: var(--muted); font-size: 14px; margin-top: 14px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 56px; }
.footer-cols > div { display: grid; gap: 9px; align-content: start; font-size: 14px; }
.footer-cols a { color: var(--muted); }
.footer-cols a:hover { color: var(--text); text-decoration: none; }
.footer-label { font: 11px var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--faint); margin-bottom: 4px; }
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--faint);
}
.footer-base .mono { font-size: 12px; }
.footer-base .mono::before { content: "// "; color: var(--violet); }
@media (max-width: 560px) { .footer-cols { gap: 32px; } }

/* Code is shown as typed: no "=>" turning into an arrow. Last in the file
   because the font shorthands above reset font-variant-ligatures. */
.mono, code, pre, kbd, .code-panel, .code-panel *, .url-cta, .url-cta *, .prompt-text, .evidence, .step-sample,
.check-ids, .finding-id, .price, .sev, .chip {
  font-variant-ligatures: none;
  font-feature-settings: "calt" 0, "liga" 0;
}
