/* AltGuard marketing pages: landing, terms, privacy.
   Separate from styles.css on purpose. styles.css is 50KB because it also
   dresses the owner dashboard and the verification page; serving all of that to
   a first-time visitor meant ~35KB of render-blocking CSS they never use.
   The font faces are duplicated here so these pages load exactly one stylesheet. */

/* ---------- fonts (self-hosted; same faces as styles.css) ---------- */
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/space-grotesk-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; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/space-grotesk-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; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/space-grotesk-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; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/space-grotesk-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/space-grotesk-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/ibm-plex-mono-400-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; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/ibm-plex-mono-500-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; }

/* ---------- tokens ---------- */
:root {
  --bg: #070d17;
  --bg-lift: #0b1322;
  --surface: #0d1626;
  --surface-2: #121e33;
  --border: #1e2d47;
  --border-soft: #172440;
  --text: #e8eef8;
  --muted: #93a4bf;
  --accent: #4da3ff;
  --accent-soft: rgba(77, 163, 255, 0.12);
  --danger: #ff6b81;
  --warning: #ffb648;
  --ok: #4ade9b;
  --ok-soft: rgba(74, 222, 155, 0.12);

  /* Fluid type scale. The ratio tightens on small screens so the headline
     never wraps into four ragged lines on a 375px phone. */
  --step--1: clamp(0.82rem, 0.79rem + 0.13vw, 0.88rem);
  --step-0:  clamp(1rem, 0.96rem + 0.18vw, 1.09rem);
  --step-1:  clamp(1.19rem, 1.11rem + 0.38vw, 1.45rem);
  --step-2:  clamp(1.41rem, 1.27rem + 0.71vw, 1.94rem);
  --step-3:  clamp(1.69rem, 1.44rem + 1.24vw, 2.58rem);
  --step-4:  clamp(2rem, 1.6rem + 2vw, 3.44rem);
  --step-5:  clamp(2.38rem, 1.74rem + 3.2vw, 4.58rem);

  --space-xs: 0.5rem;
  --space-s: 0.875rem;
  --space-m: 1.5rem;
  --space-l: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: clamp(4rem, 2.5rem + 7vw, 8rem);

  --radius: 14px;
  --radius-lg: 22px;
  --container: 1180px;
  --ring: 0 0 0 3px rgba(77, 163, 255, 0.5);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }

h1, h2, h3 { line-height: 1.1; letter-spacing: -0.022em; margin: 0; font-weight: 700; text-wrap: balance; }
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-1); letter-spacing: -0.012em; }
p { margin: 0; text-wrap: pretty; }
code { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 0.9em; background: var(--surface-2); border: 1px solid var(--border-soft); padding: 0.15em 0.45em; border-radius: 6px; color: var(--accent); }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--accent); color: #06101f; padding: 0.75rem 1.25rem; border-radius: 0 0 10px 0; font-weight: 700; z-index: 100; }
.skip-link:focus { left: 0; }

/* ---------- layout ---------- */
.wrap { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
@media (min-width: 768px) { .wrap { width: min(100% - 4rem, var(--container)); } }

section { padding-block: var(--space-2xl); }
.eyebrow {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 var(--space-s);
}
.lede { color: var(--muted); font-size: var(--step-1); max-width: 62ch; }
/* A class, not a style="" attribute: CSP style-src hashes cannot whitelist
   inline style attributes, so one would be silently blocked in production. */
.lede-spaced { margin-top: var(--space-m); }
.section-head { max-width: 46ch; margin-bottom: var(--space-xl); }
.section-head p { color: var(--muted); margin-top: var(--space-m); font-size: var(--step-1); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.9rem 1.5rem; border-radius: 999px; font-weight: 700; font-size: var(--step-0);
  border: 1px solid transparent; cursor: pointer; text-decoration: none; min-height: 48px;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #06101f; }
.btn-primary:hover { background: #6fb5ff; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); background: var(--accent-soft); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-s); margin-top: var(--space-l); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 13, 23, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-m); min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 700; color: var(--text); font-size: var(--step-0); }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 9px; }
.site-header nav { display: none; gap: var(--space-m); }
.site-header nav a { color: var(--muted); font-size: var(--step--1); font-weight: 500; }
.site-header nav a:hover { color: var(--text); text-decoration: none; }
.header-cta { display: flex; align-items: center; gap: var(--space-s); }
.header-cta .login { display: none; color: var(--muted); font-size: var(--step--1); }
.header-cta .btn { padding: 0.6rem 1.1rem; min-height: 42px; font-size: var(--step--1); }
@media (min-width: 900px) {
  .site-header nav { display: flex; }
  .header-cta .login { display: inline; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(3rem, 1rem + 9vw, 7rem) var(--space-2xl); }
.hero::before {
  content: ""; position: absolute; inset: -30% 0 auto 50%; translate: -50% 0;
  width: min(1100px, 130%); aspect-ratio: 1.6;
  background: radial-gradient(ellipse at center, rgba(77, 163, 255, 0.17), transparent 62%);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; gap: var(--space-xl); }
@media (min-width: 1080px) {
  .hero .wrap { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; }
}

.chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: var(--step--1);
  border: 1px solid var(--border); background: var(--surface); color: var(--muted);
  padding: 0.4rem 0.85rem; border-radius: 999px; margin-bottom: var(--space-m);
}
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.hero h1 em { font-style: normal; color: var(--accent); display: block; }
.hero .lede { margin-top: var(--space-m); }
.assurances { display: flex; flex-wrap: wrap; gap: var(--space-s) var(--space-m); margin: var(--space-l) 0 0; padding: 0; list-style: none; }
.assurances li { color: var(--muted); font-size: var(--step--1); display: flex; align-items: center; gap: 0.45rem; }
.assurances li::before { content: "\2713"; color: var(--ok); font-weight: 700; }

/* ---------- risk preview card ---------- */
.preview { background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-m); display: grid; gap: var(--space-s); box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.85); }
.preview-top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-s); padding-bottom: var(--space-s); border-bottom: 1px solid var(--border-soft); }
.preview-top .who { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: var(--step--1); }
.preview-top img { width: 22px; height: 22px; border-radius: 6px; }
.live { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ok); }
.preview-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-m); }
.preview-row small { display: block; color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; }
.preview-row .member { display: block; font-size: var(--step-1); font-family: "IBM Plex Mono", ui-monospace, monospace; font-weight: 500; }
.preview-row .scope { color: var(--muted); font-size: var(--step--1); }
.score { text-align: right; font-family: "IBM Plex Mono", ui-monospace, monospace; line-height: 1; }
.score strong { font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3rem); color: var(--danger); }
.score span { color: var(--muted); font-size: var(--step--1); }
.signals { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.signals span { font-size: var(--step--1); padding: 0.35rem 0.7rem; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-lift); color: var(--muted); }
.signals .sig-danger { color: var(--danger); border-color: rgba(255, 107, 129, 0.38); }
.signals .sig-warn { color: var(--warning); border-color: rgba(255, 182, 72, 0.32); }
.preview-note { background: var(--bg-lift); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: var(--space-s); }
.preview-note span { display: block; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); margin-bottom: 0.35rem; }
.preview-note p { color: var(--muted); font-size: var(--step--1); }

/* ---------- trust rail ---------- */
.rail { border-block: 1px solid var(--border-soft); background: var(--bg-lift); padding-block: var(--space-l); }
.rail ul { display: grid; gap: var(--space-m); margin: 0; padding: 0; list-style: none; grid-template-columns: 1fr; }
@media (min-width: 620px) { .rail ul { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .rail ul { grid-template-columns: repeat(4, 1fr); } }
.rail strong { display: block; font-size: var(--step-0); margin-bottom: 0.25rem; }
.rail span { color: var(--muted); font-size: var(--step--1); }

/* ---------- grids and cards ---------- */
.grid { display: grid; gap: var(--space-m); grid-template-columns: 1fr; }
@media (min-width: 700px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1080px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-m); }
.card h3 { margin-bottom: var(--space-xs); }
.card p { color: var(--muted); font-size: var(--step--1); }
.card code { display: inline-block; margin-top: var(--space-s); }
.step-no { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 0.74rem; letter-spacing: 0.14em; color: var(--accent); display: block; margin-bottom: var(--space-s); }
.card.featured { border-color: var(--accent); background: linear-gradient(180deg, rgba(77, 163, 255, 0.09), var(--surface)); }
.card .kind { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: var(--space-xs); }
.note { color: var(--muted); font-size: var(--step--1); margin-top: var(--space-m); max-width: 76ch; }
.note strong { color: var(--text); }

/* ---------- split feature ---------- */
.split { display: grid; gap: var(--space-xl); }
@media (min-width: 1000px) { .split { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: var(--space-2xl); } }
.checks { list-style: none; margin: var(--space-l) 0 0; padding: 0; display: grid; gap: var(--space-s); }
.checks li { color: var(--muted); padding-left: 1.75rem; position: relative; }
.checks li::before { content: "\2713"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.checks strong { color: var(--text); }

.evidence { display: grid; gap: var(--space-s); }
.evidence article { display: flex; gap: var(--space-s); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-s) var(--space-m); }
.evidence .num { font-family: "IBM Plex Mono", ui-monospace, monospace; font-weight: 700; width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent); border: 1px solid var(--border); }
.evidence strong { display: block; margin-bottom: 0.15rem; }
.evidence p { color: var(--muted); font-size: var(--step--1); }

/* ---------- pricing ---------- */
.plans { display: grid; gap: var(--space-m); grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 760px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1120px) { .plans { grid-template-columns: repeat(4, 1fr); } }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-m); display: flex; flex-direction: column; gap: var(--space-s); }
.plan.featured { border-color: var(--accent); background: linear-gradient(180deg, rgba(77, 163, 255, 0.09), var(--surface)); position: relative; }
.plan .tag { position: absolute; top: -11px; left: var(--space-m); background: var(--accent); color: #06101f; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.25rem 0.65rem; border-radius: 999px; }
.plan .name { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: var(--step--1); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.plan .price { font-size: var(--step-3); font-weight: 700; line-height: 1; }
.plan .price small { font-size: var(--step--1); font-weight: 400; color: var(--muted); letter-spacing: 0; }
.plan .blurb { color: var(--muted); font-size: var(--step--1); }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; font-size: var(--step--1); color: var(--muted); }
.plan ul li { padding-left: 1.4rem; position: relative; }
.plan ul li::before { content: "\2713"; position: absolute; left: 0; color: var(--accent); }

/* ---------- faq ---------- */
.faq { display: grid; gap: var(--space-s); max-width: 900px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq summary { cursor: pointer; padding: var(--space-s) var(--space-m); font-weight: 700; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--space-s); min-height: 56px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; flex: 0 0 auto; }
.faq details[open] summary::after { content: "\2212"; }
.faq details[open] summary { border-bottom: 1px solid var(--border-soft); }
.faq details p { padding: var(--space-s) var(--space-m) var(--space-m); color: var(--muted); }

/* ---------- final cta ---------- */
.final .wrap { background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-xl) var(--space-m); text-align: center; }
.final .eyebrow { margin-inline: auto; }
.final .lede { margin-inline: auto; margin-top: var(--space-m); }
.final .btn-row { justify-content: center; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border-soft); background: var(--bg-lift); padding-block: var(--space-xl); }
.site-footer .wrap { display: grid; gap: var(--space-m); }
@media (min-width: 780px) { .site-footer .wrap { grid-template-columns: 1fr auto; align-items: center; } }
.site-footer p { color: var(--muted); font-size: var(--step--1); margin-top: 0.5rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: var(--space-m); }
.site-footer nav a { color: var(--muted); font-size: var(--step--1); }
.site-footer nav a:hover { color: var(--text); }

/* ---------- legal pages ---------- */
.legal { padding-block: var(--space-xl); }
.legal .wrap { max-width: 760px; }
.legal h1 { margin-bottom: var(--space-s); }
.legal h2 { font-size: var(--step-2); margin-top: var(--space-xl); margin-bottom: var(--space-s); }
.legal p, .legal li { color: var(--muted); }
.legal p + p { margin-top: var(--space-s); }
.legal ul { padding-left: 1.25rem; display: grid; gap: 0.5rem; margin: var(--space-s) 0 0; }
.legal .updated { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: var(--step--1); color: var(--accent); margin-bottom: var(--space-m); }
.legal .callout { background: var(--surface); border: 1px solid var(--accent); border-left-width: 3px; border-radius: var(--radius); padding: var(--space-m); margin-top: var(--space-l); }
.legal .callout strong { display: block; color: var(--text); margin-bottom: 0.4rem; }

/* ---------- /thanks ---------- */
.success-mark {
  width: 56px; height: 56px; display: grid; place-items: center;
  border-radius: 50%; background: var(--ok-soft);
  border: 1px solid rgba(74, 222, 155, 0.4); color: var(--ok);
  font-size: 1.6rem; line-height: 1; margin-bottom: var(--space-m);
}
.steps { list-style: none; counter-reset: step; margin: var(--space-l) 0 0; padding: 0; display: grid; gap: var(--space-m); }
.steps li { counter-increment: step; position: relative; padding-left: 3rem; color: var(--muted); }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -0.15rem;
  width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 10px; background: var(--accent-soft); border: 1px solid var(--border);
  color: var(--accent); font-family: "IBM Plex Mono", ui-monospace, monospace; font-weight: 700; font-size: var(--step--1);
}
.steps strong { display: block; color: var(--text); margin-bottom: 0.2rem; }
.reference { margin-top: var(--space-l); font-size: var(--step--1); color: var(--muted); }
.reference code { overflow-wrap: anywhere; }
