/* Wardline website
   Type: Geist (self-hosted, SIL OFL) – no external font requests. */

@font-face {
  font-family: "Geist";
  src: url("/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --card: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: #d9d9de;
  --line-soft: #ececf0;
  --accent: #0b7285;
  --accent-hover: #095e6e;
  --accent-soft: color-mix(in srgb, var(--accent) 10%, transparent);

  --crit: #c50f1f;
  --high: #da3b01;
  --med: #9d5d00;
  --low: #0f6cbd;
  --good: #107c10;
  --na: #6e6e73;

  --dark-bg: #000000;
  --dark-card: #161617;
  --dark-text: #f5f5f7;
  --dark-muted: #a1a1a6;
  --dark-line: #2e2e31;

  --nav-bg: rgba(255, 255, 255, 0.76);
  --shadow: 0 40px 100px -30px rgba(10, 40, 50, 0.30), 0 12px 30px -12px rgba(10, 40, 50, 0.12);

  --font: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-alt: #0f0f11;
    --card: #1a1a1c;
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --line: #333336;
    --line-soft: #262628;
    --accent: #4cc2d1;
    --accent-hover: #6acfdc;
    --crit: #f1707b;
    --high: #f4915e;
    --med: #e2b84b;
    --low: #7fb8ee;
    --good: #6cc490;
    --na: #a1a1a6;
    --dark-bg: #000000;
    --dark-card: #1a1a1c;
    --nav-bg: rgba(0, 0, 0, 0.72);
    --shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px #2a2a2d;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 64px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
code { font-family: var(--mono); font-size: 0.88em; letter-spacing: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 999px; font-size: 14px;
}
.skip:focus { top: 10px; }

/* ---------- layout ---------- */
.wrap { width: min(100% - 44px, 980px); margin-inline: auto; }
.wrap-wide { width: min(100% - 44px, 1200px); margin-inline: auto; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

.sect { padding: clamp(88px, 11vw, 168px) 0; }
.sect.alt { background: var(--bg-alt); }
.sect > .wrap + .wrap,
.sect > .wrap + .wrap-wide,
.sect > .wrap-wide + .wrap,
.sect > .wrap-wide + .wrap-wide { margin-top: clamp(48px, 6vw, 80px); }

/* ---------- type ---------- */
h1 {
  font-size: clamp(3.1rem, 1.4rem + 7vw, 7.25rem);
  line-height: 0.98;
  font-weight: 700;
  letter-spacing: -0.052em;
}
h2 {
  font-size: clamp(2.35rem, 1.3rem + 3.9vw, 4.6rem);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.042em;
  max-width: 16ch;
  text-wrap: balance;
}
.center h2 { margin-inline: auto; }
h3 { font-size: 1.5rem; line-height: 1.2; font-weight: 600; letter-spacing: -0.024em; }
.lede {
  margin-top: 24px;
  font-size: clamp(1.13rem, 1rem + 0.45vw, 1.4rem);
  line-height: 1.45;
  color: var(--muted);
  max-width: 640px;
  letter-spacing: -0.016em;
  text-wrap: pretty;
}
.chapter {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.3rem; font-weight: 600; letter-spacing: -0.02em;
  color: var(--accent);
  margin-bottom: 14px;
}
.pill {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0;
  padding: 3px 9px; border-radius: 999px;
  color: var(--accent); background: var(--accent-soft);
}
.note { margin-top: 28px; font-size: 14px; color: var(--muted); max-width: 640px; }
.center.note { margin-inline: auto; }
.sub { font-size: 1.25rem; margin-bottom: 8px; }

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 24px;
  border: 0; border-radius: 999px;
  background: var(--accent); color: #fff;
  font-size: 17px; font-weight: 500; letter-spacing: -0.01em;
  cursor: pointer;
  transition: background-color .2s ease;
}
.btn:hover { background: var(--accent-hover); }
@media (prefers-color-scheme: dark) { .btn { color: #07191c; } }
.btn-sm { min-height: 30px; padding: 0 14px; font-size: 13.5px; }
.btn-quiet { background: var(--accent-soft); color: var(--accent); }
.btn-quiet:hover { background: color-mix(in srgb, var(--accent) 16%, transparent); }
@media (prefers-color-scheme: dark) { .btn-quiet { color: var(--accent); } }
.link { color: var(--accent); font-size: 17px; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
.nav-inner {
  width: min(100% - 32px, 1200px); margin-inline: auto;
  height: 52px; display: flex; align-items: center; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 650; font-size: 18px; letter-spacing: -0.03em; }
.mark { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-linecap: round; flex: none; }
.mark path + path { stroke: var(--text); }
.nav-links { display: flex; gap: 28px; margin-inline: auto; font-size: 13.5px; color: var(--muted); }
.nav-links a { transition: color .15s ease; }
.nav-links a:hover { color: var(--text); }
.nav-end { display: flex; align-items: center; gap: 12px; }
.lang {
  border: 1px solid var(--line); background: transparent; border-radius: 999px;
  min-width: 40px; height: 30px; padding: 0 10px; font-size: 12.5px; font-weight: 600; cursor: pointer; color: var(--muted);
}
.lang:hover { color: var(--text); border-color: var(--muted); }

/* ---------- hero ---------- */
.hero { padding: clamp(64px, 9vw, 120px) 0 clamp(72px, 9vw, 136px); text-align: center; overflow: hidden; }
.hero-product { font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.3rem); font-weight: 600; letter-spacing: -0.02em; margin-bottom: 18px; }
.hero h1 { max-width: 12ch; margin-inline: auto; text-wrap: balance; }
.hero-sub { margin-inline: auto; max-width: 620px; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 28px; margin-top: 36px; }
.hero .wrap-wide { margin-top: clamp(56px, 7vw, 88px); }
.demo-hint { margin-top: 18px; font-size: 14px; color: var(--muted); }

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-copy > :nth-child(2) { animation-delay: .06s; }
  .hero-copy > :nth-child(3) { animation-delay: .12s; }
  .hero-copy > :nth-child(4) { animation-delay: .18s; }
  .device { animation: device 1.3s cubic-bezier(.16, .8, .2, 1) .25s both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes device { from { opacity: 0; transform: translateY(56px) scale(.96); } to { opacity: 1; transform: none; } }

/* ---------- device / portal render ---------- */
.device {
  text-align: left;
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--shadow);
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  overflow: hidden;
}
.device-bar {
  display: flex; align-items: center; gap: 7px;
  height: 40px; padding: 0 16px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line-soft);
}
.device-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.device-url {
  margin-inline: auto; transform: translateX(-24px);
  font-size: 12.5px; color: var(--muted);
  background: var(--card); border-radius: 8px; padding: 3px 14px;
}

/* screenshots */
.device-screen { position: relative; aspect-ratio: 1440 / 900; background: var(--bg-alt); }
.device-screen picture { display: block; }
.device-screen picture[hidden] { display: none; }
.device-screen img { display: block; width: 100%; height: auto; }
@media (prefers-reduced-motion: no-preference) {
  .device-screen picture.is-in img { animation: fade .4s ease both; }
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.gallery-tabs {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 6px;
  margin: 0 auto 28px; padding: 5px; width: fit-content; max-width: 100%;
  border-radius: 999px; background: var(--bg-alt);
}
.gallery-tabs button {
  border: 0; background: transparent; cursor: pointer;
  padding: 8px 18px; border-radius: 999px;
  font-size: 15px; font-weight: 500; color: var(--muted);
  transition: color .15s ease, background-color .15s ease;
}
.gallery-tabs button:hover { color: var(--text); }
.gallery-tabs button[aria-selected="true"] { background: var(--card); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 0 0 1px var(--line-soft); }
.gallery-cap { margin-top: 22px; font-size: 15px; color: var(--muted); min-height: 1.5em; }

.shot { margin: 0; }
.shot figcaption { margin-top: 18px; font-size: 15px; color: var(--muted); text-align: center; max-width: 640px; margin-inline: auto; }
.sect.dark .device { border-color: #2a2a2d; box-shadow: 0 40px 100px -30px rgba(0,0,0,.9); }
.sect.dark .device-bar { background: #1c1c1e; border-color: #2a2a2d; }
.sect.dark .device-bar i { background: #3a3a3c; }
.sect.dark .device-url { background: #2c2c2e; }

/* severity & state pills */
.sev, .state {
  display: inline-block; white-space: nowrap;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0;
  padding: 3px 9px; border-radius: 999px;
}
.sev.crit, .state.bad { color: var(--crit); background: color-mix(in srgb, var(--crit) 12%, transparent); }
.sev.high { color: var(--high); background: color-mix(in srgb, var(--high) 12%, transparent); }
.sev.med, .state.warn { color: var(--med); background: color-mix(in srgb, var(--med) 14%, transparent); }
.sev.low, .state.info { color: var(--low); background: color-mix(in srgb, var(--low) 12%, transparent); }
.sev.good, .state.ok { color: var(--good); background: color-mix(in srgb, var(--good) 12%, transparent); }
.state.na { color: var(--na); background: color-mix(in srgb, var(--na) 12%, transparent); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot.ok { background: var(--good); }
.dot.warn { background: var(--med); }
.dot.bad { background: var(--crit); }

/* ---------- three levels ---------- */
.levels { border-top: 1px solid var(--line); }
.lv-row {
  display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.5fr; gap: 20px;
  align-items: baseline;
  padding: 22px 0; border-bottom: 1px solid var(--line);
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.2rem);
  letter-spacing: -0.015em;
}
.lv-headrow { padding: 18px 0; font-size: 15px; color: var(--muted); }
.lv-headrow b { display: block; color: var(--text); font-weight: 600; font-size: 17px; }
.lv-headrow small { font-size: 13.5px; }
.lv-headrow > :last-child b { color: var(--crit); }
.lv-row > :first-child { font-weight: 500; }
.lv-gap { color: var(--crit); font-weight: 600; }
.lv-gap code { font-weight: 500; }

/* ---------- dark chapter ---------- */
.sect.dark {
  background: var(--dark-bg); color: var(--dark-text);
  --text: var(--dark-text); --muted: var(--dark-muted); --line: var(--dark-line); --line-soft: var(--dark-line);
  --crit: #f1707b; --high: #f4915e; --med: #e2b84b; --low: #7fb8ee; --good: #6cc490; --na: #a1a1a6;
  --accent: #4cc2d1; --accent-soft: rgba(76, 194, 209, .14);
}
@media (prefers-color-scheme: dark) {
  .sect.dark { border-block: 1px solid #1c1c1e; }
}

.sources { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.sources span { font-size: 14.5px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--dark-line); color: var(--dark-muted); }

.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; margin-top: 28px !important; }
.sect > .wrap-wide.bento { margin-top: 28px; }
.tile {
  grid-column: span 2;
  display: flex; flex-direction: column;
  background: var(--dark-card); border-radius: var(--r-lg);
  padding: 34px 34px 32px; min-height: 340px;
}
.tile.t-wide { grid-column: span 4; }
.tile.t-half { grid-column: span 3; }
.tile h3 { font-size: 1.6rem; max-width: 22ch; text-wrap: balance; }
.tile p { margin-top: 10px; color: var(--dark-muted); font-size: 16.5px; max-width: 46ch; }
.tile > div, .tile > ul { margin-top: auto; padding-top: 28px; }

.edr-vis { display: grid; }
.edr-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; padding: 11px 0; border-top: 1px solid var(--dark-line); }
.edr-row code { font-size: 13px; color: var(--dark-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.hist-vis { display: grid; gap: 14px; }
.hist-vis div { display: grid; gap: 6px; font-size: 13px; color: var(--dark-muted); }
.hist-vis i { display: block; height: 8px; border-radius: 4px; background: #4a4a4e; }
.hist-vis i.accent { background: var(--accent); }

.asr-vis li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--dark-line); font-size: 14.5px; }
.m { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.m.block { color: var(--good); background: color-mix(in srgb, var(--good) 14%, transparent); }
.m.audit { color: var(--med); background: color-mix(in srgb, var(--med) 16%, transparent); }
.m.off { color: var(--crit); background: color-mix(in srgb, var(--crit) 14%, transparent); }

.drift-vis { font-size: 13.5px; }
.drift-line { display: flex; gap: 12px; padding: 7px 12px; border-radius: 8px; }
.drift-line code { font-size: 13px; }
.drift-line:has(.minus) { background: color-mix(in srgb, var(--crit) 10%, transparent); }
.drift-line:has(.plus) { background: color-mix(in srgb, var(--good) 10%, transparent); }
.minus { color: var(--crit); font-family: var(--mono); }
.plus { color: var(--good); font-family: var(--mono); }

.unused-vis li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--dark-line); }
.unused-vis code { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; margin-top: 18px; border-top: 1px solid var(--dark-line); }
.more li { padding: 15px 0; border-bottom: 1px solid var(--dark-line); color: var(--dark-text); }

.cov-vis { display: flex; flex-wrap: wrap; gap: 16px 48px; }
.cov-vis b { display: block; font-size: clamp(2.2rem, 1.6rem + 2vw, 3.2rem); font-weight: 650; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.cov-vis span { font-size: 14px; color: var(--dark-muted); }
.cov-vis .gap b { color: var(--crit); }

.platforms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 40px; }
.platforms > div { border-top: 1px solid var(--dark-line); padding-top: 22px; }
.platforms h3 { font-size: 1.5rem; }
.platforms p { margin-top: 8px; color: var(--dark-muted); font-size: 16px; }
.platforms code { color: var(--dark-text); }

/* ---------- combined findings ---------- */
.equation { display: flex; align-items: stretch; justify-content: center; gap: 14px; }
.eq-part {
  flex: 1 1 0; max-width: 320px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  padding: 26px; border-radius: var(--r-md);
  border: 1px solid var(--line); background: var(--card);
}
.eq-part b { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; }
.eq-part .sev { margin-top: auto; }
.eq-dev { font-family: var(--mono); font-size: 12.5px; color: var(--muted); letter-spacing: 0; }
.eq-op { align-self: center; font-size: 2.6rem; font-weight: 300; color: var(--muted); line-height: 1; }
.eq-result { border: 1.5px solid var(--crit); background: color-mix(in srgb, var(--crit) 6%, var(--card)); }

.combos { border-top: 1px solid var(--line); margin-top: 18px; }
.combos li { padding: 18px 0; border-bottom: 1px solid var(--line); font-size: clamp(1.02rem, 0.95rem + 0.3vw, 1.18rem); }

/* ---------- AI agents ---------- */
.agent-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.panel { background: var(--card); border-radius: var(--r-lg); padding: 38px; display: flex; flex-direction: column; }
.panel > p { margin-top: 10px; color: var(--muted); max-width: 44ch; }
.chain, .agent-card { margin-top: 30px; }
.chain { display: flex; flex-direction: column; }
.node {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 12px; align-items: center;
  border: 1px solid var(--line); border-radius: 14px; padding: 13px 16px;
}
.node small { grid-column: 1; font-size: 12px; color: var(--muted); }
.node b { grid-column: 1; font-weight: 600; font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.node .state { grid-column: 2; grid-row: 1 / span 2; }
.node-bad { border-color: var(--crit); }
.link-line { display: block; width: 2px; height: 18px; background: var(--line); margin-left: 30px; }
.agent-card { border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 20px; }
.ac-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; padding-bottom: 12px; }
.ac-head b { font-size: 17px; font-weight: 600; }
.ac-head span { font-family: var(--mono); font-size: 12.5px; color: var(--muted); letter-spacing: 0; }
.agent-card dl > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line-soft); font-size: 14.5px; }
.agent-card dl > .ac-code { border-top: 0; padding-top: 0; }
.ac-code code { display: block; width: 100%; font-size: 12px; color: var(--muted); background: var(--bg-alt); padding: 8px 10px; border-radius: 8px; overflow-x: auto; white-space: nowrap; }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; border-top: 1px solid var(--line); }
.checks li { padding: 16px 0 16px 22px; border-bottom: 1px solid var(--line); position: relative; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 25px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* ---------- access paths ---------- */
.paths {
  display: grid; grid-template-columns: minmax(0, 1fr) 280px; column-gap: 0;
  max-width: 1000px; margin-inline: auto;
}
.path {
  grid-column: 1;
  display: grid; grid-template-columns: 180px minmax(0, 1fr) auto 48px; gap: 16px; align-items: center;
  padding: 14px 0 14px 20px;
  border-top: 1px solid var(--line);
}
.path:first-child { border-top: 0; }
.path::after { content: ""; height: 2px; background: var(--line); margin-right: -2px; }
.who { font-weight: 600; }
.via { color: var(--muted); font-size: 15px; }
.role-target {
  grid-column: 2; grid-row: 1 / span 4;
  display: flex; align-items: center;
  border-left: 2px solid var(--line);
  padding-left: 24px;
}
.role-target span {
  display: inline-grid; gap: 2px; padding: 14px 22px; border-radius: 16px;
  background: var(--accent); color: #fff; letter-spacing: -0.015em;
}
.role-target b { font-weight: 600; font-size: 17px; }
.role-target small { font-size: 13px; opacity: .85; }
@media (prefers-color-scheme: dark) { .role-target span { color: #07191c; } }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 56px; }
.two h3 { font-size: 1.35rem; }
.two p { margin-top: 8px; color: var(--muted); max-width: 42ch; }

/* ---------- governance ---------- */
.gov-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.gov-grid > div { border-top: 1px solid var(--line); padding-top: 22px; }
.gov-grid h3 { font-size: 1.25rem; }
.gov-grid p { margin-top: 8px; color: var(--muted); font-size: 16px; }

/* ---------- trust ---------- */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 56px; }
.facts > div { border-top: 1px solid var(--dark-line); padding-top: 24px; }
.facts h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); letter-spacing: -0.03em; }
.facts p { margin-top: 10px; color: var(--dark-muted); max-width: 40ch; }
.code { background: var(--dark-card); border-radius: var(--r-md); padding: 26px 28px; }
.code pre { margin: 0; overflow-x: auto; font-family: var(--mono); font-size: 14px; line-height: 1.7; color: var(--dark-text); }
.code pre code { font-size: inherit; }
.c-dim { color: #8e8e93; }
.code figcaption { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--dark-line); color: var(--dark-muted); font-size: 14.5px; }
.compliance { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 32px; margin-top: 36px; }
.compliance p { color: var(--dark-muted); max-width: 56ch; }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 880px; }
.plan { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 38px; background: var(--card); }
.plan-main { border: 2px solid var(--accent); }
.plan h3 { font-size: 1.4rem; }
.price { margin-top: 18px; font-size: 3.2rem; font-weight: 700; letter-spacing: -0.045em; line-height: 1; }
.price small { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; color: var(--muted); }
.plan-for { margin-top: 10px; color: var(--muted); }
.plan ul { margin: 26px 0 32px; border-top: 1px solid var(--line-soft); }
.plan li { position: relative; padding: 12px 0 12px 26px; border-bottom: 1px solid var(--line-soft); font-size: 16px; }
.plan li::before {
  content: ""; position: absolute; left: 2px; top: 18px; width: 12px; height: 7px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}
.plan .btn { margin-top: auto; }

/* ---------- start ---------- */
.start-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 40px 72px; align-items: start; }
.steps { counter-reset: step; display: grid; gap: 0; }
.steps li { counter-increment: step; position: relative; padding: 26px 0 26px 60px; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 24px;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 600; font-size: 15px; color: var(--accent); background: var(--accent-soft);
}
.steps h3 { font-size: 1.3rem; }
.steps p { margin-top: 6px; color: var(--muted); max-width: 42ch; }

.form { background: var(--card); border-radius: var(--r-lg); padding: 34px; display: grid; gap: 16px; box-shadow: 0 1px 0 var(--line-soft); }
.form h3 { font-size: 1.5rem; }
.form > p:not(.form-result):not(.form-legal) { color: var(--muted); font-size: 15.5px; margin-top: -8px; }
.form label { display: grid; gap: 6px; font-size: 13.5px; font-weight: 500; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form input, .form select, .form textarea {
  width: 100%; font-size: 16px;
  padding: 11px 14px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--bg);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.form textarea { resize: vertical; min-height: 84px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.form input[aria-invalid="true"] { border-color: var(--crit); }
.form .btn { width: 100%; margin-top: 4px; }
.form .btn[disabled] { opacity: .6; cursor: progress; }
.form-result { font-size: 15px; }
.form-result:empty { display: none; }
.form-result.ok { color: var(--good); }
.form-result.err { color: var(--crit); }
.form-legal { font-size: 13px; color: var(--muted); }
.form-legal a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- footer ---------- */
.foot { background: var(--bg-alt); color: var(--muted); font-size: 13px; padding: 56px 0 28px; border-top: 1px solid var(--line-soft); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.foot-brand .brand { color: var(--text); font-size: 16px; }
.foot-brand p { margin-top: 12px; max-width: 30ch; }
.foot nav { display: flex; flex-direction: column; gap: 9px; }
.foot h4 { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.foot nav a:hover { color: var(--text); }
.foot-base { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: 12px; }

/* ---------- legal & roadmap pages ---------- */
.page { padding: clamp(64px, 8vw, 112px) 0 clamp(80px, 10vw, 140px); }
.page h1 { font-size: clamp(2.6rem, 1.6rem + 4vw, 4.4rem); letter-spacing: -0.045em; }
.page .lede { margin-top: 18px; }
.prose { margin-top: 56px; max-width: 700px; }
.prose h2 { font-size: 1.45rem; letter-spacing: -0.022em; max-width: none; margin-top: 44px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.1rem; margin-top: 24px; }
.prose p, .prose ul { margin-top: 12px; color: var(--text); }
.prose ul { list-style: disc; padding-left: 1.2em; }
.prose li + li { margin-top: 6px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; word-break: break-word; }
.prose .muted { color: var(--muted); font-size: 15px; }
.prose address { font-style: normal; }
[data-lang-block] { display: none; }
html[data-lang="en"] [data-lang-block="en"],
html[data-lang="de"] [data-lang-block="de"] { display: block; }

.roadmap { margin-top: 56px; border-top: 1px solid var(--line); }
.rm-item { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 8px 28px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--line); }
.rm-item time { font-weight: 600; color: var(--muted); }
.rm-item h3 { font-size: 1.25rem; }
.rm-item p { grid-column: 2; color: var(--muted); max-width: 56ch; }
.rm-item .state { grid-column: 3; grid-row: 1; }
.rm-empty { padding: 26px 0; color: var(--muted); }
.page .form { margin-top: 64px; max-width: 560px; background: var(--bg-alt); box-shadow: none; }

/* ---------- responsive ---------- */
@media (max-width: 1060px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile, .tile.t-half { grid-column: span 1; }
  .tile.t-wide { grid-column: span 2; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-end { margin-left: auto; }
  .agent-grid, .two, .facts, .plans, .start-grid, .platforms { grid-template-columns: minmax(0, 1fr); }
  .gov-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { max-width: 520px; }
  .equation { flex-direction: column; align-items: stretch; }
  .eq-part { max-width: none; }
  .eq-op { align-self: center; font-size: 2rem; }
  .paths { grid-template-columns: 1fr; }
  .role-target { grid-column: 1; grid-row: 1; border-left: 0; padding: 0 0 18px; }
  .path { grid-column: 1; grid-template-columns: minmax(0, 1fr) auto; padding-left: 0; gap: 4px 16px; }
  .path:first-of-type { border-top: 1px solid var(--line); }
  .path .who { grid-column: 1; }
  .path .via { grid-column: 1; grid-row: 2; }
  .path .state { grid-column: 2; grid-row: 1 / span 2; }
  .path::after { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .device-url { transform: none; }
  .gallery-tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin-bottom: 20px; }
  .gallery-tabs::-webkit-scrollbar { display: none; }
  .gallery-tabs button { padding: 7px 14px; font-size: 14px; white-space: nowrap; flex: none; }
  .device-screen { aspect-ratio: auto; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
  .device-screen img { width: 880px; max-width: none; }

  .lv-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 12px; padding: 18px 0; }
  .lv-row > :first-child { grid-column: 1 / -1; }
  .lv-headrow > :first-child { display: none; }
  .lv-headrow b { font-size: 15px; }

  .bento { grid-template-columns: 1fr; }
  .tile, .tile.t-wide, .tile.t-half { grid-column: span 1; min-height: 0; padding: 28px 24px; }
  .edr-row { grid-template-columns: 1fr auto auto; }
  .panel, .plan, .form { padding: 26px 22px; }
  .checks, .more, .gov-grid { grid-template-columns: 1fr; }


  .rm-item { grid-template-columns: 1fr auto; }
  .rm-item time { grid-column: 1; }
  .rm-item h3, .rm-item p { grid-column: 1 / -1; }
  .rm-item .state { grid-column: 2; grid-row: 1; }
  .form-row { grid-template-columns: 1fr; }
}

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

.form .hint { display: block; margin-top: .3rem; font-size: .8rem; opacity: .75; }
.form.buy { max-width: 640px; margin: 2rem auto 0; }

/* FAQ */
.wrap.narrow { max-width: 860px; }
.faq { margin-top: 40px; border-top: 1px solid var(--line, rgba(0,0,0,.12)); }
.faq-item { border-bottom: 1px solid var(--line, rgba(0,0,0,.12)); }
.faq-item summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; font-size: 19px; font-weight: 600; line-height: 1.35; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 4px; top: 18px; font-size: 26px; font-weight: 300; color: var(--muted); transition: transform .2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0 0 24px; color: var(--muted); font-size: 17px; line-height: 1.6; max-width: 70ch; }

/* long German words in the three-level table must not widen the page on phones */
.lv-row > * { min-width: 0; overflow-wrap: break-word; hyphens: auto; }
@media (max-width: 640px) { .state { white-space: normal; max-width: 100%; text-align: center; } }
