/* Draughtsman sales page and site 404. One stylesheet, no external requests, no inline styles anywhere.
   Brand: Overpass red #e04832 for decoration and large type, #c0392b where text sits on red or red is text on white;
   navy #151e33 (never pure black). Inter for text, JetBrains Mono for labels and code, both self-hosted.
   Motif: a technical drawing sheet. Blueprint grid, figure marks, numbered sections, a title block for a footer,
   and red nodes joined by edges, taken from the mark's compass points. */

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --navy: #151e33;
  --navy-deep: #0f1729;
  --red: #e04832;
  --red-text: #c0392b;
  --red-hover: #a5301f;

  --bg: #ffffff;
  --bg-soft: #f4f6fa;
  --ink: #151e33;
  --ink-soft: #4a5468;
  --line: #d6dae4;
  --line-strong: #b9c0cf;
  --link: #c0392b;
  --link-hover: #8f2a1f;
  --card: #ffffff;
  --shot-edge: rgba(21, 30, 51, 0.14);
  --shadow: 0 1px 2px rgba(21, 30, 51, 0.08), 0 18px 40px -18px rgba(21, 30, 51, 0.28);
  --focus: #151e33;

  /* The always-dark surfaces (hero, agent band, closing, footer). */
  --dk-bg: #151e33;
  --dk-ink: #f2f2f2;
  --dk-soft: #b4bdcf;
  --dk-line: rgba(255, 255, 255, 0.14);
  --dk-grid: rgba(255, 255, 255, 0.045);
  --dk-grid-major: rgba(255, 255, 255, 0.08);
  --dk-accent-text: #ff8a78;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151e33;
    --bg-soft: #1a2440;
    --ink: #f2f2f2;
    --ink-soft: #aab3c5;
    --line: #2e3b56;
    --line-strong: #43527a;
    --link: #ff8a78;
    --link-hover: #ffb3a6;
    --card: #1b2540;
    --shot-edge: rgba(255, 255, 255, 0.12);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 18px 40px -18px rgba(0, 0, 0, 0.6);
    --focus: #f2f2f2;
    --dk-bg: #0e1526;
  }
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss03";
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
code { font-family: var(--mono); font-size: 0.88em; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 4px; padding: 0.05em 0.35em; }
h1, h2, h3 { line-height: 1.12; margin: 0; }
h2 { font-size: clamp(1.85rem, 1.15rem + 2.6vw, 3rem); font-weight: 750; letter-spacing: -0.028em; max-width: 21ch; text-wrap: balance; }
h3 { font-size: 1.125rem; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0; }
main:focus { outline: none; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: calc(860px + 2 * var(--gutter)); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

.skip-link {
  position: absolute; left: 8px; top: -80px; z-index: 100;
  background: var(--red-text); color: #fff; font-weight: 600; text-decoration: none;
  padding: 10px 16px; border-radius: 6px;
}
.skip-link:focus { top: 8px; color: #fff; }

/* ---------- Labels: the sheet's section numbers ---------- */
.label {
  font-family: var(--mono); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 18px; display: flex; align-items: center; gap: 12px;
}
.label .num { color: var(--red-text); font-weight: 700; }
.label .num::after { content: ""; display: inline-block; width: 28px; height: 1px; background: currentColor; vertical-align: middle; margin-left: 12px; }
.label-on-dark { color: var(--dk-soft); }
.label-on-dark .num { color: var(--dk-accent-text); }
@media (prefers-color-scheme: dark) { .label .num { color: var(--dk-accent-text); } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 6px; border: 1px solid transparent;
  font: 600 1rem/1 var(--font); text-decoration: none; white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn-primary { background: var(--red-text); color: #fff; }
.btn-primary:hover { background: var(--red-hover); color: #fff; }
.btn-ghost { color: var(--dk-ink); border-color: rgba(255, 255, 255, 0.38); }
.btn-ghost:hover { color: #fff; border-color: #fff; background: rgba(255, 255, 255, 0.06); }
.btn-small { min-height: 38px; padding: 0 14px; font-size: 0.9rem; background: var(--red-text); color: #fff; }
.btn-small:hover { background: var(--red-hover); color: #fff; }
.btn:focus-visible { outline-color: #fff; }
@media (prefers-reduced-motion: no-preference) { .btn:hover { transform: translateY(-1px); } }
.text-link { color: var(--dk-ink); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.4); }
.text-link:hover { color: #fff; text-decoration-color: #fff; }
.text-link:focus-visible { outline-color: #fff; }

/* ---------- Masthead ---------- */
.masthead {
  position: sticky; top: 0; z-index: 50;
  background: rgba(21, 30, 51, 0.94); border-bottom: 1px solid var(--dk-line);
  -webkit-backdrop-filter: saturate(1.4) blur(8px); backdrop-filter: saturate(1.4) blur(8px);
}
.masthead-inner { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: block; flex: none; border-radius: 4px; }
.brand img { height: 40px; width: auto; }
.brand:focus-visible, .topnav a:focus-visible { outline-color: #fff; }
.topnav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.topnav a:not(.btn) { color: var(--dk-ink); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.topnav a:not(.btn):hover { color: #fff; text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 0.35em; }
@media (max-width: 720px) { .hide-sm { display: none; } .topnav { gap: 14px; } .brand img { height: 32px; } }
@media (max-width: 400px) { .brand img { height: 28px; } .btn-small { padding: 0 10px; font-size: 0.85rem; } }

/* ---------- Hero ---------- */
.hero {
  --cut: clamp(90px, 18vw, 230px);
  color: var(--dk-ink);
  padding-top: clamp(56px, 9vw, 112px);
  background:
    linear-gradient(var(--dk-grid-major) 1px, transparent 1px) 0 0 / 120px 120px,
    linear-gradient(90deg, var(--dk-grid-major) 1px, transparent 1px) 0 0 / 120px 120px,
    linear-gradient(var(--dk-grid) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, var(--dk-grid) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(to bottom, var(--navy) calc(100% - var(--cut)), var(--bg) calc(100% - var(--cut)));
}
@media (prefers-color-scheme: dark) {
  .hero { background:
    linear-gradient(var(--dk-grid-major) 1px, transparent 1px) 0 0 / 120px 120px,
    linear-gradient(90deg, var(--dk-grid-major) 1px, transparent 1px) 0 0 / 120px 120px,
    linear-gradient(var(--dk-grid) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, var(--dk-grid) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(to bottom, var(--navy-deep) calc(100% - var(--cut)), var(--bg) calc(100% - var(--cut))); }
}
.hero h1 {
  font-size: clamp(2.35rem, 1.2rem + 5vw, 4.6rem); font-weight: 780; letter-spacing: -0.035em; line-height: 1.02;
  max-width: 17ch; text-wrap: balance;
}
.hero-lede { margin-top: 26px; max-width: 62ch; font-size: clamp(1.06rem, 1rem + 0.35vw, 1.25rem); color: var(--dk-soft); line-height: 1.6; }
.actions { margin-top: 34px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.proof-strip {
  list-style: none; margin: 44px 0 0; padding: 18px 0 0; border-top: 1px solid var(--dk-line);
  display: flex; flex-wrap: wrap; gap: 10px 28px;
  font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.04em; color: var(--dk-soft);
}
.proof-strip li { display: flex; align-items: center; gap: 10px; }
.proof-strip li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); flex: none; }

.hero-shot-wrap { margin-top: clamp(44px, 6vw, 72px); }
.hero-shot { position: relative; margin: 0; }
.hero-shot img {
  border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 70px -24px rgba(5, 10, 22, 0.75), 0 0 0 8px rgba(255, 255, 255, 0.035);
}
.sheet-marks {
  display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dk-soft);
}
.sheet-marks span:first-child { color: var(--dk-accent-text); }
/* Registration corners on the figure. */
.hero-shot::before, .hero-shot::after {
  content: ""; position: absolute; width: 22px; height: 22px; border: 0 solid var(--red); pointer-events: none;
}
.hero-shot::before { left: -12px; top: 18px; border-left-width: 2px; border-top-width: 2px; }
.hero-shot::after { right: -12px; bottom: -12px; border-right-width: 2px; border-bottom-width: 2px; }

@media (prefers-reduced-motion: no-preference) {
  .hero .label, .hero h1, .hero-lede, .hero .actions, .proof-strip, .hero-shot {
    animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .hero h1 { animation-delay: 0.06s; }
  .hero-lede { animation-delay: 0.14s; }
  .hero .actions { animation-delay: 0.22s; }
  .proof-strip { animation-delay: 0.3s; }
  .hero-shot { animation-delay: 0.38s; animation-duration: 0.9s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 8vw, 104px) 0; }
.section.soft { background: var(--bg-soft); }
.problem { padding-top: clamp(56px, 6vw, 80px); }
.intro { margin-top: 22px; max-width: 64ch; color: var(--ink-soft); font-size: 1.1rem; }
.intro-tight { color: var(--ink-soft); font-size: 1.1rem; }
.more { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 8px 28px; font-weight: 600; }
.more a::after { content: " \2192"; }
.note { font-size: 0.95rem; color: var(--ink-soft); border-left: 3px solid var(--red); padding: 2px 0 2px 14px; }

.split { margin-top: 48px; display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 56px; }
  .split-wide-right { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .split-even { grid-template-columns: 1fr 1fr; }
}
.stack { display: grid; gap: 26px; }
.point h3 { margin-bottom: 8px; }
.point p { color: var(--ink-soft); }

figure { margin: 0; }
.shot img { border-radius: 8px; border: 1px solid var(--shot-edge); box-shadow: var(--shadow); }
.shot figcaption, .diagram-figure figcaption, .terminal figcaption, .code-card figcaption {
  margin-top: 12px; font-size: 0.88rem; color: var(--ink-soft);
}
main { counter-reset: fig 1; }
.shot { counter-increment: fig; }
.shot figcaption::before { content: "Fig. " counter(fig) "  "; white-space: pre; font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em; color: var(--red-text); }
@media (prefers-color-scheme: dark) { .shot figcaption::before { color: var(--dk-accent-text); } }

/* ---------- 01 Problem: three nodes joined by an edge ---------- */
.problem-list { list-style: none; padding: 0; margin: 56px 0 0; display: grid; gap: 40px; position: relative; }
.problem-list li { position: relative; padding-top: 34px; }
.problem-list li::before {
  content: ""; position: absolute; top: 0; left: 0; width: 16px; height: 16px; border-radius: 50%;
  background: var(--red); box-shadow: 0 0 0 5px var(--bg);
}
.problem-list h3 { font-size: 1.3rem; margin-bottom: 10px; }
.problem-list p { color: var(--ink-soft); }
@media (min-width: 860px) {
  .problem-list { grid-template-columns: repeat(3, 1fr); gap: 48px; }
  .problem-list::before {
    content: ""; position: absolute; top: 7px; left: 8px; right: calc((100% - 96px) / 3 - 8px); height: 2px;
    background: repeating-linear-gradient(90deg, var(--line-strong) 0 8px, transparent 8px 14px);
  }
}
@media (max-width: 859px) {
  .problem-list { padding-left: 34px; }
  .problem-list li { padding-top: 0; }
  .problem-list li::before { left: -34px; top: 4px; }
  .problem-list::before {
    content: ""; position: absolute; top: 12px; bottom: 40px; left: 7px; width: 2px;
    background: repeating-linear-gradient(180deg, var(--line-strong) 0 8px, transparent 8px 14px);
  }
}

/* ---------- 02 Answer ---------- */
.terminal {
  margin-top: 48px; background: var(--navy-deep); border-radius: 8px; border: 1px solid var(--shot-edge);
  padding: 22px 24px 18px; max-width: 860px;
}
.terminal pre, .code-card pre { margin: 0; overflow-x: auto; }
.terminal code, .code-card code {
  display: block; background: none; border: 0; padding: 0; color: #e6e9f0;
  font-size: 0.86rem; line-height: 1.65; white-space: pre;
}
.terminal .prompt { color: #ff8a78; }
.terminal figcaption { color: #b4bdcf; border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 12px; margin-top: 16px; }
.terminal figcaption a { color: #ff8a78; }
.terminal pre:focus-visible, .code-card pre:focus-visible { outline-color: #fff; }

/* ---------- Dark bands (03 Agents, closing) ---------- */
.dark-band {
  background-color: var(--dk-bg); color: var(--dk-ink);
  background-image:
    linear-gradient(var(--dk-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--dk-grid) 1px, transparent 1px);
  background-size: 24px 24px;
}
.dark-band .intro { color: var(--dk-soft); }
.dark-band a:not(.btn) { color: var(--dk-accent-text); }
.dark-band a:not(.btn):hover { color: #ffb3a6; }
.dark-band :focus-visible { outline-color: #fff; }
.code-card { background: var(--navy-deep); border: 1px solid var(--dk-line); border-radius: 8px; overflow: hidden; }
.code-head {
  display: flex; justify-content: space-between; padding: 10px 18px; border-bottom: 1px solid var(--dk-line);
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dk-soft);
}
.code-head span:first-child { color: #ff8a78; text-transform: none; letter-spacing: 0.02em; }
.code-card pre { padding: 18px; }
.code-card figcaption { color: var(--dk-soft); margin: 0; padding: 0 18px 18px; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.facts li { padding: 16px 0 16px 28px; border-top: 1px solid var(--dk-line); position: relative; color: var(--dk-soft); }
.facts li:last-child { border-bottom: 1px solid var(--dk-line); }
.facts li::before { content: ""; position: absolute; left: 2px; top: 24px; width: 9px; height: 9px; border-radius: 50%; background: var(--red); }
.facts strong { color: var(--dk-ink); font-weight: 650; }

/* ---------- 04 AI ---------- */
.providers { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--card); }
.providers li { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-top: 1px solid var(--line); }
.providers li:first-child { border-top: 0; }
.pill {
  flex: none; min-width: 66px; text-align: center; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--ink-soft);
}
.pill-local { background: var(--red-text); border-color: var(--red-text); color: #fff; }

/* ---------- 05 Security ---------- */
.ledger { list-style: none; margin: 48px 0 0; padding: 0; display: grid; border-top: 2px solid var(--ink); }
.ledger li { display: grid; grid-template-columns: 112px 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.ledger-k { font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red-text); padding-top: 4px; }
@media (prefers-color-scheme: dark) { .ledger-k { color: var(--dk-accent-text); } .ledger { border-top-color: var(--line-strong); } }
.ledger p { color: var(--ink-soft); }
.ledger strong { color: var(--ink); font-weight: 650; }
@media (min-width: 900px) {
  .ledger { grid-template-columns: 1fr 1fr; column-gap: 56px; }
}
@media (max-width: 480px) { .ledger li { grid-template-columns: 1fr; gap: 6px; } }
.security-lower { margin-top: 56px; }
.optin h3 { margin-bottom: 14px; }
.optin table { width: 100%; border-collapse: collapse; font-size: 0.95rem; background: var(--card); border: 1px solid var(--line); border-radius: 8px; margin-bottom: 20px; }
.optin th, .optin td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.optin thead th { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); font-weight: 500; }
.optin tbody tr:last-child th, .optin tbody tr:last-child td { border-bottom: 0; }
.optin tbody th { font-weight: 600; }
.optin td:last-child { white-space: nowrap; font-family: var(--mono); font-size: 0.82rem; }

/* ---------- 06 IT: a spec sheet ---------- */
.spec-grid { margin-top: 48px; display: grid; border-top: 1px solid var(--line-strong); border-left: 1px solid var(--line-strong); }
.spec { padding: 26px 24px 28px; border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); position: relative; }
.spec h3 { margin-bottom: 10px; }
.spec p { color: var(--ink-soft); font-size: 0.98rem; }
.spec::before {
  content: ""; position: absolute; top: -5px; left: -5px; width: 9px; height: 9px; border-radius: 50%; background: var(--red);
}
@media (min-width: 640px) { .spec-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .spec-grid { grid-template-columns: repeat(3, 1fr); } }
.platforms { margin-top: 28px; color: var(--ink-soft); font-size: 0.98rem; max-width: 80ch; }
.platforms .label { display: inline; margin: 0 10px 0 0; }

/* ---------- 07 How it fits ---------- */
.diagram-figure { margin-top: 44px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: clamp(12px, 3vw, 36px); }
.diagram-figure img { margin: 0 auto; }

/* ---------- 08 Pricing ---------- */
.tiers { margin-top: 48px; display: grid; gap: 20px; align-items: stretch; }
@media (min-width: 900px) { .tiers { grid-template-columns: 1fr 1fr 1.35fr; gap: 24px; } }
.tier { border: 1px solid var(--line-strong); border-radius: 10px; padding: 28px; background: var(--card); display: flex; flex-direction: column; }
.tier-foot { margin-top: auto; padding-top: 28px; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.06em; color: var(--ink-soft); }
.tier-feature .tier-foot { color: var(--dk-soft); }
.tier-feature { background: var(--navy); border-color: var(--navy); color: var(--dk-ink); }
@media (prefers-color-scheme: dark) { .tier-feature { background: var(--navy-deep); border-color: var(--line-strong); } }
.tier-name { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.tier-feature .tier-name { color: var(--dk-accent-text); }
.tier-price { margin-top: 14px; font-size: clamp(2.6rem, 2rem + 2vw, 3.4rem); font-weight: 760; letter-spacing: -0.035em; line-height: 1; }
.tier-who { margin-top: 12px; color: var(--ink-soft); }
.tier-feature .tier-who { color: var(--dk-soft); }
.tier-terms { list-style: none; margin: 0; padding: 4px 0 0; display: grid; gap: 12px; align-content: start; }
.tier-terms li { padding-left: 22px; position: relative; color: var(--ink-soft); }
.tier-terms li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 10px; height: 2px; background: var(--red); }

/* ---------- 09 Status ---------- */
.status-col { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 26px 28px; }
.status-col h3 { margin-bottom: 14px; }
.ticks, .crosses { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks li, .crosses li { position: relative; padding-left: 28px; color: var(--ink-soft); }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 0.36em; width: 7px; height: 12px;
  border: solid var(--red-text); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.crosses li::before, .crosses li::after {
  content: ""; position: absolute; left: 0; top: 0.78em; width: 13px; height: 2px; background: var(--ink-soft); transform: rotate(45deg);
}
.crosses li::after { transform: rotate(-45deg); }
@media (prefers-color-scheme: dark) { .ticks li::before { border-color: var(--dk-accent-text); } }

/* ---------- 10 FAQ ---------- */
.faq-list { margin-top: 40px; border-top: 2px solid var(--ink); }
@media (prefers-color-scheme: dark) { .faq-list { border-top-color: var(--line-strong); } }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  cursor: pointer; list-style: none; padding: 20px 44px 20px 0; position: relative;
  font-weight: 650; font-size: 1.1rem; letter-spacing: -0.01em;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before, .faq-list summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 16px; height: 2px; background: var(--red); transition: transform 0.2s ease;
}
.faq-list summary::after { transform: rotate(90deg); }
.faq-list details[open] summary::after { transform: rotate(0deg); }
.faq-list summary:hover { color: var(--link); }
.faq-list details p { padding: 0 0 22px; color: var(--ink-soft); max-width: 70ch; }
@media (prefers-reduced-motion: reduce) { .faq-list summary::after { transition: none; } }

/* ---------- Closing ---------- */
.closing { padding: clamp(80px, 11vw, 136px) 0; }
.closing-inner { text-align: left; }
.closing h2 { font-size: clamp(2.1rem, 1.2rem + 3.6vw, 3.8rem); max-width: 16ch; }
.closing p { margin-top: 20px; max-width: 56ch; color: var(--dk-soft); font-size: 1.1rem; }
.closing .closing-mail { margin-top: 26px; font-size: 0.98rem; }
.text-link-on-dark { color: var(--dk-ink); }

/* ---------- Footer: the drawing's title block ---------- */
.titleblock { background: var(--dk-bg); color: var(--dk-soft); padding: 0 0 40px; border-top: 1px solid var(--dk-line); }
.tb-grid {
  margin: 0; display: grid; grid-template-columns: 1fr; border: 1px solid var(--dk-line); border-top: 0;
}
.tb-cell { padding: 14px 18px; border-bottom: 1px solid var(--dk-line); }
.tb-cell:last-child { border-bottom: 0; }
.tb-cell dt { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: #8d97ab; margin-bottom: 4px; }
.tb-cell dd { margin: 0; color: var(--dk-ink); font-size: 0.95rem; }
.tb-cell a { color: var(--dk-ink); }
.tb-cell a:hover { color: #fff; }
.tb-cell a:focus-visible { outline-color: #fff; }
.tb-brand img { height: 44px; width: auto; }
@media (min-width: 720px) {
  .tb-grid { grid-template-columns: repeat(3, 1fr); }
  .tb-cell { border-right: 1px solid var(--dk-line); }
  .tb-cell:nth-child(3n) { border-right: 0; }
  .tb-cell:nth-last-child(-n+3) { border-bottom: 0; }
}
@media (min-width: 1100px) {
  .tb-grid { grid-template-columns: 1.3fr 1.15fr 0.95fr 1.1fr 1.55fr 1.45fr; }
  .tb-cell { border-bottom: 0; border-right: 1px solid var(--dk-line); }
  .tb-cell:nth-child(3n) { border-right: 1px solid var(--dk-line); }
  .tb-cell:last-child { border-right: 0; }
  .tb-brand { display: flex; align-items: center; }
}
.tb-note { margin-top: 18px; font-size: 0.85rem; color: #8d97ab; }

/* ---------- 404 ---------- */
.notfound { min-height: calc(100vh - 150px); display: flex; align-items: center; color: var(--dk-ink); padding: 80px 0;
  background-color: var(--navy);
  background-image:
    linear-gradient(var(--dk-grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--dk-grid-major) 1px, transparent 1px),
    linear-gradient(var(--dk-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--dk-grid) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
}
@media (prefers-color-scheme: dark) { .notfound { background-color: var(--navy-deep); } }
.notfound h1 { font-size: clamp(2.2rem, 1.4rem + 4vw, 4rem); font-weight: 780; letter-spacing: -0.035em; max-width: 16ch; }
.notfound p { margin-top: 18px; color: var(--dk-soft); max-width: 52ch; font-size: 1.1rem; }
.notfound .code { font-family: var(--mono); color: var(--dk-accent-text); letter-spacing: 0.1em; font-size: 0.85rem; margin: 0 0 16px; }
@media (prefers-color-scheme: dark) { .diagram-figure { background: #151e33; } }
