/* FireSight marketing site. One stylesheet, no build step.
   Colours follow the app: signal blue #0B6FDC (logo blue #1080F8), night #0F1015.
   Fonts are self-hosted (SIL OFL, licences in assets/fonts). */

@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/schibsted-grotesk-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/schibsted-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/schibsted-grotesk-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/schibsted-grotesk-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/schibsted-grotesk-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  --bg: #f4f6f9;
  --bg-2: #eaeef3;
  --surface: #ffffff;
  --ink: #101826;
  --ink-2: #33415a;
  --muted: #536276;
  --line: #d9e0e9;
  --line-2: #e7ebf1;
  --accent: #0b6fdc;
  --accent-strong: #0858b0;
  --accent-ink: #ffffff;
  --accent-soft: #e3effd;
  --flame: #c2410c;
  --flame-soft: #fdeee4;
  --night: #0f1015;
  --ok: #157a5a;
  --ok-soft: #dff3ea;
  --deny: #b4322a;
  --deny-soft: #fbe6e4;
  --warn: #8f5d06;
  --warn-soft: #fbf0d8;
  --grid: rgba(16, 24, 38, 0.05);
  --shadow: 0 1px 2px rgba(16, 24, 38, 0.06), 0 12px 32px -12px rgba(16, 24, 38, 0.18);
  --focus: #0b6fdc;

  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 12px;
  --radius-s: 7px;
  --gutter: 16px;
  --max: 1180px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0f15;
    --bg-2: #10151d;
    --surface: #151b26;
    --ink: #e8edf5;
    --ink-2: #c3ccda;
    --muted: #9aa7bb;
    --line: #263144;
    --line-2: #1d2635;
    --accent: #4aa3ff;
    --accent-strong: #7cbcff;
    --accent-ink: #06111f;
    --accent-soft: #10284a;
    --flame: #ff8a4c;
    --flame-soft: #3a2116;
    --ok: #4cc9a0;
    --ok-soft: #153a2f;
    --deny: #ff8178;
    --deny-soft: #41201e;
    --warn: #e6b04f;
    --warn-soft: #3a2e15;
    --grid: rgba(232, 237, 245, 0.04);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 40px -16px rgba(0, 0, 0, 0.7);
    --focus: #7cbcff;
    color-scheme: dark;
  }
}

@media (min-width: 720px) { :root { --gutter: 28px; } }
@media (min-width: 1100px) { :root { --gutter: 40px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; color: var(--ink); }
h1 { font-size: clamp(2.3rem, 6.2vw, 4.1rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
code, kbd, .mono { font-family: var(--mono); font-size: 0.88em; }
code { background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 5px; padding: 0.05em 0.35em; overflow-wrap: anywhere; }
ul, ol { padding-left: 1.25em; margin: 0 0 1em; }
li + li { margin-top: 0.35em; }
strong { font-weight: 700; color: var(--ink); }

:focus { outline: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

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

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }

/* ------------------------------------------------------------------ header */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line-2);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; }
.brand:hover { color: var(--ink); }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand span b { color: var(--accent); font-weight: 800; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 12px; border-radius: var(--radius-s);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font: 600 0.95rem var(--font); cursor: pointer;
}
.nav-toggle svg { width: 18px; height: 18px; }
.site-nav { display: none; }
.site-nav.open {
  display: block; position: absolute; left: 0; right: 0; top: 64px;
  background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  padding: 8px var(--gutter) 16px;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav li + li { margin-top: 0; }
.site-nav a { display: block; padding: 12px 4px; color: var(--ink-2); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line-2); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent); }
.site-nav .nav-cta { margin-top: 12px; border: 0; }
.site-nav .nav-cta a { border: 0; }

@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.open { display: block; position: static; background: none; border: 0; box-shadow: none; padding: 0; }
  .site-nav ul { display: flex; align-items: center; gap: 4px; }
  .site-nav a { border: 0; padding: 8px 12px; border-radius: var(--radius-s); font-size: 0.97rem; }
  .site-nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-strong); }
  .site-nav .nav-cta { margin: 0 0 0 10px; }
}

/* ----------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 9px;
  font: 700 1rem var(--font); letter-spacing: -0.005em; text-decoration: none; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { color: var(--ink); border-color: var(--muted); transform: translateY(-1px); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--accent-ink); }
.site-nav .btn-primary { color: var(--accent-ink); padding: 0 16px; min-height: 40px; display: inline-flex; }
.site-nav .btn-primary:hover { color: var(--accent-ink); }
.btn svg { width: 18px; height: 18px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ----------------------------------------------------------------- layout */

section { padding-block: clamp(64px, 9vw, 112px); }
.section-tight { padding-block: clamp(48px, 6vw, 72px); }
.band { background: var(--surface); border-block: 1px solid var(--line-2); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.lede { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 46rem; }
.section-head { max-width: 50rem; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 + .lede, .section-head h2 + p { margin-top: 16px; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

.split { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
.split > *, .grid > * { min-width: 0; }
@media (min-width: 960px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .split.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .split.flip > :first-child { order: 2; }
  .split.even { grid-template-columns: 1fr 1fr; }
  .split.narrow-media { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
}

.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) {
  .grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; min-width: 0;
}
.band .card { background: var(--bg); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-2); font-size: 0.98rem; }
.card .icon {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 16px;
}
.card .icon svg { width: 22px; height: 22px; }
.card .tag { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; display: block; margin-bottom: 10px; }

.checks { list-style: none; padding: 0; }
.checks li { position: relative; padding-left: 28px; }
.checks li::before {
  content: ""; position: absolute; left: 2px; top: 0.5em; width: 14px; height: 8px;
  border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg) translateY(-2px);
}

/* ------------------------------------------------------------------- hero */

.hero { position: relative; padding-top: clamp(48px, 8vw, 96px); padding-bottom: 0; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 75%);
}
.hero h1 { max-width: 14ch; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { margin-top: 24px; }
.hero .btn-row { margin-top: 32px; }
.hero-note { margin-top: 18px; font-size: 0.9rem; color: var(--muted); }
.page-hero { padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(40px, 6vw, 64px); }
.page-hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); max-width: 20ch; }
.page-hero .lede { margin-top: 20px; }

/* trace strip: the hop-by-hop path, as the app shows it */
.trace {
  margin-top: clamp(40px, 6vw, 64px);
  display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px 0;
  font-family: var(--mono); font-size: 0.82rem;
}
.trace .hop {
  position: relative; padding: 10px 14px; border-radius: 9px;
  border: 1px solid var(--line); background: var(--surface); min-width: 0;
}
.trace .hop b { display: block; font-family: var(--font); font-weight: 700; font-size: 0.92rem; color: var(--ink); }
.trace .hop span { color: var(--muted); }
.trace .fw { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: color-mix(in srgb, var(--accent-soft) 70%, var(--surface)); }
.trace .end { border-style: dashed; }
.trace .link { position: relative; width: 28px; align-self: center; height: 2px; background: var(--accent); flex: none; }
.trace .link::after {
  content: ""; position: absolute; right: -1px; top: -4px;
  border-left: 7px solid var(--accent); border-top: 5px solid transparent; border-bottom: 5px solid transparent;
}
.trace .link i {
  position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%;
  background: var(--flame); box-shadow: 0 0 0 3px color-mix(in srgb, var(--flame) 25%, transparent);
  animation: packet 2.4s linear infinite;
}
.trace .link:nth-of-type(4) i { animation-delay: 0.6s; }
.trace .link:nth-of-type(6) i { animation-delay: 1.2s; }
.trace .link:nth-of-type(8) i { animation-delay: 1.8s; }
@keyframes packet { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: 22px; opacity: 0; } }
.trace-caption { margin-top: 12px; font-family: var(--mono); font-size: 0.78rem; color: var(--muted); }
@media (max-width: 719px) {
  .trace { flex-direction: column; gap: 0; }
  .trace .link { width: 2px; height: 20px; margin-left: 22px; }
  .trace .link::after { right: auto; left: -4px; top: auto; bottom: -1px; border-top: 7px solid var(--accent); border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 0; }
  .trace .link i { left: -3px; animation-name: packet-v; }
  @keyframes packet-v { 0% { top: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: 14px; opacity: 0; } }
}

/* ------------------------------------------------------------ screenshots */

.shot {
  margin: 0; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow);
}
.shot .chrome {
  display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px;
  background: var(--bg-2); border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 0.72rem; color: var(--muted);
}
.shot .chrome i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); flex: none; }
.shot .chrome span { margin-left: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shot img { width: 100%; height: auto; }
.shot-caption { margin-top: 12px; font-size: 0.85rem; color: var(--muted); }
.hero-shot { margin-top: clamp(40px, 6vw, 64px); position: relative; }
.hero-shot .shot { border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom: 0; }
.shot-narrow { max-width: 380px; margin-inline: auto; }

/* ---------------------------------------------------------------- problem */

.problems { counter-reset: p; }
.problem { border-top: 2px solid var(--ink); padding-top: 20px; }
.problem .num { font-family: var(--mono); font-size: 0.8rem; color: var(--flame); display: block; margin-bottom: 12px; }
.problem h3 { font-size: 1.25rem; margin-bottom: 10px; }
.problem p { color: var(--ink-2); }

/* ------------------------------------------------------------------ steps */

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; counter-reset: s; }
@media (min-width: 720px) { .steps.cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .steps.cols { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.steps > li { counter-increment: s; margin: 0; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.band .steps > li { background: var(--bg); }
.steps > li::before {
  content: counter(s, decimal-leading-zero); display: block;
  font-family: var(--mono); font-weight: 500; font-size: 0.85rem; color: var(--accent); margin-bottom: 14px;
}
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--ink-2); font-size: 0.98rem; }

.timeline { list-style: none; padding: 0; margin: 0; counter-reset: t; }
.timeline > li { counter-increment: t; position: relative; padding: 0 0 32px 56px; margin: 0; }
.timeline > li::before {
  content: counter(t); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--mono); font-weight: 500; font-size: 0.9rem;
  background: var(--accent-soft); color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
}
.timeline > li::after { content: ""; position: absolute; left: 17px; top: 40px; bottom: 4px; width: 2px; background: var(--line); }
.timeline > li:last-child::after { display: none; }
.timeline h3 { margin: 6px 0 8px; }
.timeline p, .timeline li li { color: var(--ink-2); }

/* ----------------------------------------------------------------- tables */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 0.96rem; }
th, td { text-align: left; vertical-align: top; padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
th { font-size: 0.78rem; font-family: var(--mono); font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); background: var(--bg-2); }
tr:last-child td { border-bottom: 0; }
td:first-child { white-space: nowrap; font-weight: 700; }
td { color: var(--ink-2); }
@media (max-width: 560px) {
  .stack-table thead { display: none; }
  .stack-table tr { display: block; padding: 14px 16px; border-bottom: 1px solid var(--line-2); }
  .stack-table tr:last-child { border-bottom: 0; }
  .stack-table td { display: block; padding: 0; border: 0; white-space: normal; }
  .stack-table td + td { margin-top: 6px; }
}

.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px;
  font-size: 0.82rem; font-weight: 700; white-space: nowrap; font-family: var(--font);
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.deny { background: var(--deny-soft); color: var(--deny); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.info { background: var(--accent-soft); color: var(--accent-strong); }
.pill.mute { background: var(--bg-2); color: var(--muted); }
.pill.ok { background: var(--ok-soft); color: var(--ok); }

/* ------------------------------------------------------------- deploy cols */

.deploy-col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.band .deploy-col { background: var(--bg); }
.deploy-col h3 { margin-bottom: 4px; }
.deploy-col .sub { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); margin-bottom: 20px; display: block; }
.seq { list-style: none; padding: 0; margin: 0; }
.seq li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 10px 0; margin: 0; border-top: 1px dashed var(--line); color: var(--ink-2); }
.seq li:first-child { border-top: 0; }
.seq li > span:first-child { font-family: var(--mono); font-size: 0.8rem; color: var(--accent); padding-top: 2px; }
.seq .state { font-family: var(--mono); font-size: 0.78rem; padding: 1px 7px; border-radius: 5px; margin-left: 4px; white-space: nowrap; }
.state.off { background: var(--bg-2); color: var(--muted); }
.state.on { background: var(--ok-soft); color: var(--ok); }

.callout {
  border-left: 3px solid var(--flame); background: var(--flame-soft);
  padding: 16px 20px; border-radius: 0 var(--radius-s) var(--radius-s) 0; color: var(--ink);
}
.callout.blue { border-left-color: var(--accent); background: var(--accent-soft); }

/* sign-in chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 24px; }
.chips li { margin: 0; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; font-size: 0.92rem; background: var(--surface); }

/* code sample */
.term {
  background: var(--night); color: #d6deea; border-radius: var(--radius); padding: 18px 20px;
  font-family: var(--mono); font-size: 0.85rem; line-height: 1.7; overflow-x: auto; border: 1px solid #222838;
}
.term .c { color: #7d8aa0; }
.term .k { color: #7cbcff; }

/* --------------------------------------------------------------- diagram */

.diagram { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(16px, 3vw, 32px); }
.diagram svg { width: 100%; height: auto; }
.diagram .d-wide { display: none; }
@media (min-width: 1000px) { .diagram .d-wide { display: block; } .diagram .d-tall { display: none; } }
.d-tall { max-width: 360px; margin-inline: auto; }
.diagram text { font-family: var(--font); fill: var(--ink); }
.diagram .t-mono { font-family: var(--mono); }
.diagram .t-muted { fill: var(--muted); }
.diagram .t-accent { fill: var(--accent); }
.diagram .t-flame { fill: var(--flame); }
.diagram .n-fw { fill: var(--accent-soft); stroke: var(--accent); }
.diagram .n-end { fill: var(--bg); stroke: var(--muted); stroke-dasharray: 5 4; }
.diagram .n-step { fill: var(--bg); stroke: var(--line); }
.diagram .n-hit { fill: var(--surface); stroke: var(--accent); stroke-width: 1.5; }
.diagram .wire { stroke: var(--accent); stroke-width: 2.5; fill: none; }
.diagram .wire-soft { stroke: var(--line); stroke-width: 1.5; fill: none; stroke-dasharray: 4 4; }
.diagram .arrow { fill: var(--accent); }
.diagram .dot { fill: var(--flame); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 16px; font-size: 0.88rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--accent); background: var(--accent-soft); }
.legend i.end { border: 1.5px dashed var(--muted); background: var(--bg); }
.legend i.hit { background: var(--surface); }

/* ------------------------------------------------------------------- CTA */

.cta {
  position: relative; overflow: hidden; border-radius: 18px; padding: clamp(32px, 6vw, 64px);
  background: var(--night); color: #e8edf5; isolation: isolate;
}
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.6;
  background:
    radial-gradient(farthest-corner at 85% 15%, rgba(16, 128, 248, 0.32), rgba(16, 128, 248, 0) 60%),
    radial-gradient(farthest-corner at 70% 110%, rgba(255, 122, 40, 0.16), rgba(255, 122, 40, 0) 50%);
}
.cta h2 { color: #fff; max-width: 18ch; }
.cta p { color: #c3ccda; max-width: 40rem; margin-top: 16px; }
.cta .btn-row { margin-top: 28px; }
.cta .btn { background: transparent; border-color: #3a4558; color: #fff; }
.cta .btn:hover { border-color: #8794a8; color: #fff; }
.cta .btn-primary { background: #1080f8; border-color: #1080f8; color: #fff; }
.cta .btn-primary:hover { background: #3d9bff; border-color: #3d9bff; color: #06111f; }
.cta .emblem { display: none; }
@media (min-width: 900px) {
  .cta { display: grid; grid-template-columns: 1fr 220px; align-items: center; gap: 40px; }
  .cta .emblem { display: block; width: 220px; height: 220px; -webkit-mask-image: radial-gradient(circle, #000 58%, transparent 71%); mask-image: radial-gradient(circle, #000 58%, transparent 71%); }
}

/* ------------------------------------------------------------------ forms */

.form { display: grid; gap: 18px; }
@media (min-width: 640px) { .form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .field legend { font-weight: 700; font-size: 0.95rem; }
.field .hint { font-size: 0.85rem; color: var(--muted); }
input, select, textarea {
  width: 100%; font: 400 1rem var(--font); color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 11px 13px; min-height: 46px;
}
textarea { min-height: 140px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--accent); }
.form-status { font-size: 0.95rem; }
.form-status:empty { display: none; }
.form-status.error { color: var(--deny); }
.form-status.ok { color: var(--ok); }

/* ----------------------------------------------------------------- footer */

.site-footer { border-top: 1px solid var(--line); padding-block: 48px 40px; background: var(--surface); margin-top: 0; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer h2 { font-size: 0.8rem; font-family: var(--mono); font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0 0 8px; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.site-footer .tagline { color: var(--muted); margin-top: 10px; font-size: 0.95rem; }
.legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line-2); font-size: 0.85rem; color: var(--muted); display: grid; gap: 8px; }

/* ------------------------------------------------------------------ misc */

.kicker-list { display: grid; gap: 28px; }
@media (min-width: 760px) { .kicker-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 56px; } }
.kicker-list h3 { margin-bottom: 8px; display: flex; align-items: baseline; gap: 10px; }
.kicker-list h3 .mono { font-size: 0.78rem; color: var(--accent); font-weight: 500; }
.kicker-list p, .kicker-list li { color: var(--ink-2); }

.toc { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 28px 0 0; }
.toc li { margin: 0; }
.toc a { display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink-2); font-size: 0.9rem; font-weight: 600; background: var(--surface); }
.toc a:hover { border-color: var(--accent); color: var(--accent); }

.feature-block { padding-block: clamp(40px, 6vw, 64px); border-top: 1px solid var(--line-2); scroll-margin-top: 80px; }
.feature-block:first-of-type { border-top: 0; }
.feature-block h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 14px; }
.feature-block .lede { margin-bottom: 24px; }

.not-found { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.not-found .code { font-family: var(--mono); color: var(--accent); font-size: 0.95rem; margin-bottom: 12px; display: block; }
.not-found img { width: 96px; height: 96px; border-radius: 20px; margin: 0 auto 24px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .trace .link i { display: none; }
}

/* contact form: spam trap, hidden from people and assistive tech */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status .btn { margin-top: 10px; }

/* guides: how-to videos */
.guides .guide { display: grid; gap: 10px; align-content: start; }
.guides video { width: 100%; height: auto; aspect-ratio: 16 / 10; border-radius: calc(var(--radius) - 4px); background: #0f1015; border: 1px solid var(--line); display: block; }
.guides h3 { margin: 6px 0 0; }
