/* Wardhand — Soft Work Papers marketing stylesheet.
   Directly carries the console's visual language: warm quiet desk (#f5f5f2),
   lifted white work-paper sheets (#ffffff), right-hand proof margin with
   hand-drawn marks, ultramarine Wardhand ink (#2b3cf0), and self-hosted
   Schibsted Grotesk + Commit Mono typography. */

@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/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("/assets/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("/assets/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("/assets/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("/assets/fonts/schibsted-grotesk-latin-800-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Commit Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/commit-mono-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Commit Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/commit-mono-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Commit Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/commit-mono-latin-600-normal.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --desk: #f5f5f2;
  --sheet: #ffffff;
  --margin: #fafaf8;
  --ink: #0d0e12;
  --ink-soft: #2b2e38;
  --graphite: #555a63;
  --rule: #e4e4de;
  --rule-soft: color-mix(in srgb, var(--rule) 75%, transparent);
  --hand: #2b3cf0;
  --hand-wash: #e8eaff;
  --proven: #0f7a47;
  --proven-wash: #dcf3e6;
  --exception: #c22a18;
  --exception-wash: #fde6e1;
  --waiting: #8c5a00;
  --waiting-wash: #fdeeb5;
  --code-bg: #111318;
  --code-ink: #eef1f6;
  --code-muted: #9aa1ad;
  --font-ui: "Schibsted Grotesk", system-ui, -apple-system, sans-serif;
  --font-data: "Commit Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --page: 1200px;
  --margin-w: 280px;
  --round: 18px;
  --press: 12px;
  --shadow-sheet:
    0 1px 0 rgb(13 14 18 / 0.025), 0 14px 34px -22px rgb(27 33 78 / 0.2);
  --shadow-lift:
    0 2px 8px rgb(13 14 18 / 0.05), 0 24px 48px -24px rgb(27 33 78 / 0.32);
  --ease: 170ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --desk: #0a0b0e;
  --sheet: #121418;
  --margin: #0e1013;
  --ink: #f4f5f7;
  --ink-soft: #d9dce4;
  --graphite: #9aa1ad;
  --rule: #24272f;
  --rule-soft: color-mix(in srgb, var(--rule) 82%, transparent);
  --hand: #8696ff;
  --hand-wash: #1b2050;
  --proven: #5ad18d;
  --proven-wash: #10301f;
  --exception: #ff8676;
  --exception-wash: #3a1712;
  --waiting: #f0c252;
  --waiting-wash: #3a2f10;
  --code-bg: #0c0e12;
  --code-ink: #eef1f6;
  --code-muted: #9aa1ad;
  --shadow-sheet: 0 0 0 1px rgb(255 255 255 / 0.03), 0 16px 36px -24px rgb(0 0 0 / 0.6);
  --shadow-lift: 0 0 0 1px rgb(255 255 255 / 0.08), 0 24px 52px -24px rgb(0 0 0 / 0.75);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--desk);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--hand);
  outline-offset: 2px;
}

::selection {
  background: var(--hand-wash);
  color: var(--ink);
}

.mono,
code {
  font-family: var(--font-data);
  font-size: 0.875em;
  font-variant-numeric: tabular-nums;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--sheet);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  left: 16px;
}

.wrap {
  width: min(var(--page), calc(100% - 48px));
  margin-inline: auto;
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--desk) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.03em;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  color: var(--hand);
}
.brand-mark svg {
  width: 22px;
  height: 22px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-nav a {
  padding: 7px 13px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--graphite);
  transition: background-color var(--ease), color var(--ease);
}
.site-nav a:hover {
  color: var(--ink);
  background: color-mix(in srgb, var(--ink) 5%, transparent);
}
.site-nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
  background: color-mix(in srgb, var(--ink) 7%, transparent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle {
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--rule-soft);
  background: var(--sheet);
  color: var(--graphite);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color var(--ease), color var(--ease), background-color var(--ease);
}
.theme-toggle:hover {
  color: var(--ink);
  border-color: color-mix(in srgb, var(--ink) 30%, var(--rule));
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--rule-soft);
  background: var(--sheet);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.menu-bars {
  display: grid;
  gap: 5px;
  width: 16px;
}
.menu-bars i {
  display: block;
  height: 1.75px;
  border-radius: 2px;
  background: var(--ink);
}

.mobile-nav {
  border-top: 1px solid var(--rule-soft);
  background: var(--sheet);
}
.mobile-nav-inner {
  display: grid;
  gap: 4px;
  padding-block: 12px 16px;
}
.mobile-nav a {
  padding: 11px 14px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 500;
  font-size: 15.5px;
}
.mobile-nav a[aria-current="page"] {
  background: var(--hand-wash);
  color: var(--hand);
  font-weight: 600;
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: var(--sheet);
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background-color var(--ease),
    border-color var(--ease),
    color var(--ease),
    box-shadow var(--ease),
    transform var(--ease);
}
.btn:hover {
  border-color: color-mix(in srgb, var(--ink) 35%, var(--rule));
  background: color-mix(in srgb, var(--ink) 3%, var(--sheet));
}
.btn-primary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--sheet);
}
.btn-primary:hover {
  background: color-mix(in srgb, var(--ink) 86%, var(--hand));
  border-color: color-mix(in srgb, var(--ink) 86%, var(--hand));
  color: var(--sheet);
  transform: translateY(-1px);
}
.btn-quiet {
  border-color: transparent;
  background: color-mix(in srgb, var(--ink) 5.5%, transparent);
  color: var(--ink-soft);
  min-height: 36px;
  padding: 6px 14px;
  font-size: 13.5px;
}
.btn-quiet:hover {
  background: var(--ink);
  color: var(--sheet);
  border-color: var(--ink);
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

/* ── Typography & Section Rhythm ────────────────────────────────────────── */
.section {
  padding-block: 56px;
}
.section-tight {
  padding-block: 36px;
}
.section + .section {
  padding-top: 12px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--hand);
  letter-spacing: -0.005em;
  margin-bottom: 14px;
}
.eyebrow svg {
  width: 16px;
  height: 16px;
}

.hero {
  position: relative;
  overflow: clip;
  padding-block: 52px 36px;
}
.hero::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -120px;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--hand) 11%, transparent) 0%,
    color-mix(in srgb, var(--proven) 5%, transparent) 46%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}
.hero > .wrap {
  position: relative;
  z-index: 1;
}
.hero-grid {
  display: grid;
  gap: 28px;
}
.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: 32px 40px;
  align-items: center;
}
.hero-copy {
  display: grid;
  gap: 16px;
  align-content: start;
}
.hero-copy .eyebrow {
  margin-bottom: 0;
}
.page-head-split {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 28px 36px;
  align-items: center;
}
.hero h1,
.page-head h1 {
  font-size: clamp(36px, 4.6vw, 56px);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.04em;
  max-inline-size: 18ch;
  text-wrap: balance;
}
.page-head {
  padding-block: 48px 28px;
  display: grid;
  gap: 14px;
}
.page-head h1 {
  max-inline-size: 22ch;
}
.lede {
  font-size: clamp(17.5px, 1.8vw, 20px);
  line-height: 1.5;
  color: var(--graphite);
  max-inline-size: 62ch;
}
.section-head {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
  max-inline-size: 68ch;
}
.section-head h2 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.032em;
  text-wrap: balance;
}
.section-head p {
  color: var(--graphite);
  font-size: 16.5px;
}

/* ── Soft Work Paper Sheets & Margin Marks ──────────────────────────────── */
.sheet {
  background: var(--sheet);
  border: 1px solid var(--rule-soft);
  border-radius: var(--round);
  box-shadow: var(--shadow-sheet);
  overflow: hidden;
}
.sheet + .sheet {
  margin-top: 22px;
}

.sheet-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--margin-w);
  border-bottom: 1px solid var(--rule-soft);
  background: color-mix(in srgb, var(--margin) 55%, var(--sheet));
}
.sheet-title-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
}
.sheet-title h2 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.tally {
  font-family: var(--font-data);
  font-size: 12px;
  padding: 2px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  color: var(--graphite);
}
.sheet-title-margin {
  padding: 13px 20px;
  border-left: 1px solid var(--rule-soft);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--graphite);
  display: flex;
  align-items: center;
}

.hand-note {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 15px 24px;
  background: color-mix(in srgb, var(--hand-wash) 55%, var(--sheet));
  border-bottom: 1px solid var(--rule-soft);
  color: var(--hand);
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.48;
}
.hand-note svg {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--margin-w);
  border-top: 1px solid var(--rule-soft);
}
.line:first-child {
  border-top: 0;
}
.sheet-title + .line,
.hand-note + .line {
  border-top: 0;
}

.line-main {
  position: relative;
  padding: 20px 24px;
  display: grid;
  gap: 8px;
  align-content: start;
  transition: background-color var(--ease);
}
.sheet > .line:hover > .line-main {
  background: color-mix(in srgb, var(--hand) 2.2%, var(--sheet));
}

.line[data-tone="stop"] > .line-main::before,
.line[data-tone="wait"] > .line-main::before,
.line[data-tone="live"] > .line-main::before,
.line[data-hand="wardhand"] > .line-main::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 0;
  width: 4px;
  border-radius: 0 4px 4px 0;
}
.line[data-tone="stop"] > .line-main::before {
  background: var(--exception);
}
.line[data-tone="wait"] > .line-main::before {
  background: var(--waiting);
}
.line[data-tone="live"] > .line-main::before {
  background: var(--proven);
}
.line[data-hand="wardhand"] > .line-main::before {
  background: var(--hand);
}

.line-margin {
  padding: 20px;
  border-left: 1px solid var(--rule-soft);
  background: color-mix(in srgb, var(--margin) 70%, var(--sheet));
  display: grid;
  gap: 8px;
  align-content: start;
}

.row-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
}
.row-title {
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.3;
}
.row-say {
  color: var(--graphite);
  font-size: 15px;
  line-height: 1.55;
  max-inline-size: 68ch;
}
.row-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin-top: 2px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 5.5%, transparent);
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.45;
}
.chip[data-chip="mono"] {
  font-family: var(--font-data);
  font-size: 11.5px;
  background: var(--margin);
  box-shadow: inset 0 0 0 1px var(--rule-soft);
}
.chip[data-chip="hand"] {
  background: var(--hand-wash);
  color: var(--hand);
  font-weight: 600;
}
.chip[data-chip="live"] {
  background: var(--proven-wash);
  color: var(--proven);
  font-weight: 600;
}
.chip[data-chip="stop"] {
  background: var(--exception-wash);
  color: var(--exception);
  font-weight: 600;
}
.chip[data-chip="wait"] {
  background: var(--waiting-wash);
  color: var(--waiting);
  font-weight: 600;
}

.stamp {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}
.stamp[data-tone="live"] {
  background: var(--proven-wash);
  color: var(--proven);
}
.stamp[data-tone="stop"] {
  background: var(--exception-wash);
  color: var(--exception);
}
.stamp[data-tone="wait"] {
  background: var(--waiting-wash);
  color: var(--waiting);
}
.stamp[data-tone="hand"] {
  background: var(--hand-wash);
  color: var(--hand);
}
.stamp[data-tone="quiet"] {
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  color: var(--graphite);
}

/* Margin marks */
.desk-margin-note {
  display: grid;
  gap: 7px;
}
.mark {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-soft);
}
.mark svg {
  flex: none;
  width: 17px;
  height: 17px;
  margin-top: 1px;
  color: var(--graphite);
}
.mark[data-kind="source_log"] svg,
.mark[data-kind="read_back"] svg {
  color: var(--proven);
}
.mark[data-kind="exception"] svg {
  color: var(--exception);
}
.mark[data-kind="wardhand"],
.mark[data-kind="wardhand"] svg {
  color: var(--hand);
}
.mark[data-kind="none"] svg {
  color: var(--waiting);
}
.margin-refs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding-left: 25px;
}
.margin-ref {
  font-family: var(--font-data);
  font-size: 11px;
  line-height: 1.5;
  padding: 0 7px;
  border-radius: 6px;
  background: var(--sheet);
  box-shadow: inset 0 0 0 1px var(--rule);
  color: var(--graphite);
}

/* Drawn meters */
.say-do {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 4px;
}
.say-do-pair {
  display: grid;
  font-size: 12px;
  line-height: 1.3;
  color: var(--graphite);
}
.say-do-pair strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--hand);
}
.say-do-pair[data-side="do"] strong {
  color: var(--exception);
}
.say-do-pair[data-side="holds"] strong {
  color: var(--proven);
}
.say-do-meter {
  position: relative;
  flex: 0 1 180px;
  min-width: 90px;
  height: 8px;
  border-radius: 999px;
  background: var(--hand-wash);
  overflow: hidden;
}
.say-do-meter::before {
  content: "";
  position: absolute;
  inset-block: 0;
  left: 0;
  width: var(--say-do, 15%);
  border-radius: 999px;
  background: var(--exception);
}
.say-do[data-holds="true"] .say-do-meter::before {
  background: var(--proven);
}

/* ── Summary Ledger Cards ───────────────────────────────────────────────── */
.ledger-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.ledger-card {
  display: grid;
  gap: 7px;
  align-content: start;
  padding: 18px 20px;
  border: 1px solid var(--rule-soft);
  border-radius: var(--round);
  background: var(--sheet);
  box-shadow: var(--shadow-sheet);
  text-decoration: none;
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
a.ledger-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
  border-color: color-mix(in srgb, var(--hand) 40%, var(--rule));
}
.ledger-card-val {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.ledger-card[data-tone="hand"] .ledger-card-val {
  color: var(--hand);
}
.ledger-card[data-tone="live"] .ledger-card-val {
  color: var(--proven);
}
.ledger-card-label {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
}
.ledger-card-copy {
  font-size: 13.5px;
  line-height: 1.48;
  color: var(--graphite);
}

/* ── Real Product Screen Frame & Lightbox ───────────────────────────────── */
.screen-frame {
  display: grid;
  gap: 10px;
}
.screen-zoom {
  display: block;
  width: 100%;
  padding: 0;
  text-align: left;
  background: var(--sheet);
  border: 1px solid var(--rule-soft);
  border-radius: var(--round);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
  cursor: zoom-in;
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.screen-zoom:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--hand) 40%, var(--rule));
}
.screen-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--rule-soft);
  background: var(--margin);
  font-size: 12.5px;
  color: var(--graphite);
}
.chrome-dots {
  display: inline-flex;
  gap: 6px;
}
.chrome-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--graphite) 32%, transparent);
}
.chrome-label {
  font-family: var(--font-data);
  font-size: 11.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chrome-hint {
  font-size: 12px;
  font-weight: 600;
  color: var(--hand);
}
.screen-zoom img {
  width: 100%;
  height: auto;
  background: #f5f5f2;
}
.screen-caption {
  font-size: 13.5px;
  color: var(--graphite);
  padding-inline: 4px;
}

.lightbox {
  width: min(1320px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: var(--round);
  background: var(--sheet);
  color: var(--ink);
  box-shadow: 0 28px 80px rgb(0 0 0 / 0.45);
}
.lightbox::backdrop {
  background: rgb(10 11 14 / 0.72);
  backdrop-filter: blur(4px);
}
.lightbox-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--rule-soft);
  background: var(--margin);
}
.lightbox-cap {
  font-size: 14px;
  color: var(--graphite);
}
.lightbox-body {
  overflow: auto;
  max-height: calc(100dvh - 104px);
  padding: 16px;
  background: var(--desk);
}
.lightbox-body img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--rule-soft);
}

/* ── Walkthrough Video Stage ────────────────────────────────────────────── */
.video-stage {
  background: var(--sheet);
  border: 1px solid var(--rule-soft);
  border-radius: var(--round);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}
.video-stage-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 15px 22px;
  border-bottom: 1px solid var(--rule-soft);
  background: var(--margin);
}
.video-stage-head h2 {
  font-size: 16px;
  font-weight: 700;
}
.video-wrap {
  background: #0d0e12;
  aspect-ratio: 16 / 9;
}
.video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.video-stage-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  padding: 14px 22px;
  border-top: 1px solid var(--rule-soft);
  font-size: 14px;
  color: var(--graphite);
}

/* ── Product Tour Tabs & Layout ─────────────────────────────────────────── */
.tour-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: sticky;
  top: 72px;
  z-index: 20;
  padding: 10px 14px;
  margin-bottom: 24px;
  border-radius: var(--round);
  background: color-mix(in srgb, var(--sheet) 92%, transparent);
  backdrop-filter: blur(10px);
  border: 1px solid var(--rule-soft);
  box-shadow: var(--shadow-sheet);
}
.tour-tab {
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--rule-soft);
  background: transparent;
  color: var(--graphite);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--ease), color var(--ease), border-color var(--ease);
}
.tour-tab:hover {
  color: var(--ink);
  border-color: color-mix(in srgb, var(--ink) 30%, var(--rule));
}
.tour-tab[aria-current="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--sheet);
}

.tour-block {
  display: grid;
  gap: 20px;
  padding-block: 24px 40px;
  border-bottom: 1px solid var(--rule-soft);
}
.tour-block:last-of-type {
  border-bottom: 0;
}
.tour-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 28px;
  align-items: start;
}
.tour-copy {
  display: grid;
  gap: 14px;
}
.tour-copy h2 {
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
}
.tour-copy p {
  color: var(--graphite);
}
.fact-list {
  display: grid;
  gap: 10px;
}
.fact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--ink-soft);
}
.fact-list svg {
  flex: none;
  width: 17px;
  height: 17px;
  margin-top: 3px;
  color: var(--hand);
}

/* ── Code / CLI Proof Blocks ────────────────────────────────────────────── */
.code-card {
  border-radius: var(--round);
  background: var(--code-bg);
  color: var(--code-ink);
  border: 1px solid color-mix(in srgb, var(--rule) 50%, #262a34);
  overflow: hidden;
  box-shadow: var(--shadow-sheet);
}
.code-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
  font-family: var(--font-data);
  font-size: 12px;
  color: var(--code-muted);
}
.copy-btn {
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid rgb(255 255 255 / 0.16);
  background: rgb(255 255 255 / 0.06);
  color: var(--code-ink);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.copy-btn:hover {
  background: rgb(255 255 255 / 0.14);
}
.code-card pre {
  margin: 0;
  padding: 16px 18px;
  overflow-x: auto;
  font-family: var(--font-data);
  font-size: 13px;
  line-height: 1.65;
}
.code-ok {
  color: #5ad18d;
}
.code-bad {
  color: #ff8676;
}
.code-dim {
  color: #9aa1ad;
}

/* ── Tables (Pricing, Boundary, Sign-in) ────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
}
.paper-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
.paper-table th,
.paper-table td {
  padding: 14px 20px;
  text-align: left;
  border-top: 1px solid var(--rule-soft);
  vertical-align: top;
}
.paper-table thead th {
  border-top: 0;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--graphite);
  background: color-mix(in srgb, var(--margin) 75%, var(--sheet));
}
.paper-table tr.table-total td {
  font-weight: 700;
  background: color-mix(in srgb, var(--hand-wash) 25%, var(--sheet));
}
.num {
  font-family: var(--font-data);
  white-space: nowrap;
}

/* ── Grids & Columns ────────────────────────────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.three-col {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.info-card {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 22px 24px;
  border-radius: var(--round);
  background: var(--sheet);
  border: 1px solid var(--rule-soft);
  box-shadow: var(--shadow-sheet);
}
.info-card h3 {
  font-size: 17.5px;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.info-card p {
  font-size: 14.5px;
  color: var(--graphite);
}

/* ── Forms (/demo/) ─────────────────────────────────────────────────────── */
.demo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 24px;
  align-items: start;
}
.form-sheet {
  padding: 26px;
  display: grid;
  gap: 18px;
}
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.field {
  display: grid;
  gap: 6px;
}
.field label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 10px 13px;
  border-radius: var(--press);
  border: 1px solid var(--rule);
  background: var(--margin);
  color: var(--ink);
  font-size: 15px;
  transition: border-color var(--ease), background-color var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--hand);
  background: var(--sheet);
}
.field textarea {
  min-height: 96px;
  resize: vertical;
}
.field-hint {
  font-size: 12.5px;
  color: var(--graphite);
}
.form-status {
  padding: 14px 16px;
  border-radius: var(--press);
  border: 1px solid color-mix(in srgb, var(--hand) 35%, var(--rule));
  background: color-mix(in srgb, var(--hand-wash) 55%, var(--sheet));
  color: var(--ink);
  font-size: 14px;
  display: grid;
  gap: 8px;
}
.form-status[hidden] {
  display: none;
}

/* ── Closing CTA Band ───────────────────────────────────────────────────── */
.cta-band {
  position: relative;
  overflow: hidden;
  margin-block: 24px 64px;
  padding: 36px 38px;
  border-radius: 24px;
  background: var(--sheet);
  border: 1px solid var(--rule-soft);
  box-shadow: var(--shadow-sheet);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
}
.cta-band::before,
.cta-band::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.cta-band::before {
  width: 340px;
  height: 340px;
  right: -110px;
  top: -150px;
  border: 1px solid color-mix(in srgb, var(--hand) 22%, transparent);
  background: radial-gradient(circle, color-mix(in srgb, var(--hand) 8%, transparent) 0%, transparent 70%);
}
.cta-band::after {
  width: 210px;
  height: 210px;
  right: -45px;
  top: -85px;
  border: 1px dashed color-mix(in srgb, var(--proven) 28%, transparent);
}
.cta-band > * {
  position: relative;
  z-index: 1;
}
.cta-band h2 {
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.cta-band p {
  margin-top: 6px;
  color: var(--graphite);
  max-inline-size: 56ch;
}

/* ── Video Stage Title & Dot ────────────────────────────────────────────── */
.video-stage-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.video-stage-head h3 {
  font-size: 16px;
  font-weight: 700;
}
.video-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--hand);
  box-shadow: 0 0 0 4px var(--hand-wash);
}

/* ── Hero & Loop Orbital Panes ──────────────────────────────────────────── */
.orbit-pane {
  display: grid;
  border-radius: 24px;
  background: var(--sheet);
  border: 1px solid var(--rule-soft);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
  background-image: radial-gradient(color-mix(in srgb, var(--ink) 7%, transparent) 1px, transparent 1px);
  background-size: 20px 20px;
}
.orbit-pane-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--rule-soft);
  background: color-mix(in srgb, var(--margin) 88%, var(--sheet));
}
.orbit-pill-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.orbit-pill-live i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--proven);
  box-shadow: 0 0 0 3px var(--proven-wash);
}
.orbit-pill-meta {
  font-size: 11.5px;
  color: var(--graphite);
}
.orbit-canvas {
  padding: 10px 14px 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.orbit-canvas svg {
  width: 100%;
  height: auto;
  display: block;
}
.orbit-pane-foot {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--rule-soft);
  background: color-mix(in srgb, var(--margin) 75%, var(--sheet));
}
.orbit-mini-card {
  display: grid;
  gap: 6px;
  padding: 10px 13px;
  border-radius: 14px;
  background: var(--sheet);
  border: 1px solid var(--rule-soft);
}
.orbit-mini-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--graphite);
}
.orbit-mini-bad {
  font-family: var(--font-data);
  font-size: 12px;
  color: var(--exception);
}
.orbit-mini-ok {
  font-family: var(--font-data);
  font-size: 12px;
  color: var(--proven);
}
.orbit-mini-bar {
  height: 6px;
  border-radius: 999px;
  background: var(--hand-wash);
  overflow: hidden;
}
.orbit-mini-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--exception);
}
.orbit-mini-sub {
  font-size: 11px;
  color: var(--graphite);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Obsidian Architectural Contrast Showcase (Home) ────────────────────── */
.obsidian-band {
  position: relative;
  overflow: hidden;
  margin-block: 40px 28px;
  padding-block: 68px;
  background: #0d1018;
  color: #f4f6fb;
  border-top: 1px solid rgb(255 255 255 / 0.08);
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
}
.obsidian-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.obsidian-glow-a {
  width: 580px;
  height: 580px;
  top: -240px;
  left: -120px;
  background: radial-gradient(circle, rgb(43 60 240 / 0.24) 0%, transparent 68%);
}
.obsidian-glow-b {
  width: 520px;
  height: 520px;
  bottom: -240px;
  right: -100px;
  background: radial-gradient(circle, rgb(90 209 141 / 0.16) 0%, transparent 68%);
}
.obsidian-inner {
  position: relative;
  z-index: 1;
}
.obsidian-head {
  display: grid;
  gap: 12px;
  max-inline-size: 66ch;
  margin-bottom: 32px;
}
.obsidian-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: #93a3ff;
}
.obsidian-eyebrow svg {
  width: 16px;
  height: 16px;
}
.obsidian-head h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -0.035em;
  text-wrap: balance;
  color: #ffffff;
}
.obsidian-head p {
  color: #a6b0c3;
  font-size: 16.5px;
}
.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.bento-pane {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 24px 26px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.045), rgb(255 255 255 / 0.02));
  border: 1px solid rgb(255 255 255 / 0.1);
  box-shadow: 0 24px 48px -28px rgb(0 0 0 / 0.7);
}
.bento-pane-wide {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  grid-template-rows: auto auto auto 1fr;
  column-gap: 28px;
  align-items: center;
}
.bento-pane-wide .bento-art {
  grid-column: 2;
  grid-row: 1 / span 4;
}
.bento-pane-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
}
.bento-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.bento-tag-hand {
  background: rgb(134 150 255 / 0.16);
  color: #aebaff;
}
.bento-tag-live {
  background: rgb(90 209 141 / 0.14);
  color: #6ce09e;
}
.bento-meta {
  font-size: 11.5px;
  color: #8f9bb2;
}
.bento-pane h3 {
  font-size: clamp(20px, 2.1vw, 24px);
  font-weight: 750;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: #ffffff;
}
.bento-pane p {
  font-size: 14.5px;
  line-height: 1.55;
  color: #a8b2c6;
}
.bento-art {
  border-radius: 16px;
  background: rgb(11 14 22 / 0.85);
  border: 1px solid rgb(255 255 255 / 0.08);
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bento-art svg {
  width: 100%;
  height: auto;
  display: block;
}
.bento-pane-foot {
  margin-top: 2px;
}
.obsidian-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #aebaff;
  text-decoration: none;
}
.obsidian-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* ── Drawn Visual Art Panes (Product, How It Works, Security, Install, Pricing) ── */
.art-pane {
  display: grid;
  border-radius: 22px;
  background: var(--sheet);
  border: 1px solid var(--rule-soft);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}
.art-pane-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--rule-soft);
  background: var(--margin);
  font-size: 12.5px;
  color: var(--graphite);
}
.art-pane-split {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 20px 24px;
  align-items: center;
  padding: 22px;
}
.art-dial-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}
.art-dial-wrap svg {
  width: 100%;
  max-width: 220px;
  height: auto;
  display: block;
}
.art-stack {
  display: grid;
  gap: 14px;
}
.art-mini-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.art-mini-row strong {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}
.art-mini-row span {
  display: block;
  margin-top: 2px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--graphite);
}
.art-dot {
  flex: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  margin-top: 5px;
}
.art-step-circle {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-data);
  font-size: 12.5px;
  font-weight: 700;
  background: var(--hand-wash);
  color: var(--hand);
}
.art-step-circle[data-tone="live"] {
  background: var(--proven-wash);
  color: var(--proven);
}
.art-svg-box {
  padding: 16px 18px 8px;
  background-image: radial-gradient(color-mix(in srgb, var(--ink) 6%, transparent) 1px, transparent 1px);
  background-size: 18px 18px;
}
.art-svg-box svg {
  width: 100%;
  height: auto;
  display: block;
}
.art-sample-rows {
  display: grid;
  gap: 10px;
  padding: 14px 18px 18px;
  border-top: 1px solid var(--rule-soft);
  background: color-mix(in srgb, var(--margin) 70%, var(--sheet));
}
.art-sample-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  padding: 11px 14px;
  border-radius: 14px;
  background: var(--sheet);
  border: 1px solid var(--rule-soft);
  border-left: 4px solid var(--hand);
}
.art-sample-row[data-tone="stop"] {
  border-left-color: var(--exception);
}
.art-sample-row strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.art-sample-row span {
  display: block;
  font-size: 12.5px;
  color: var(--graphite);
}
.art-pane-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 13px 18px;
  border-top: 1px solid var(--rule-soft);
  background: var(--margin);
}

/* Decision & Blast-Radius Workbench (/how-it-works/) */
.decision-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 18px;
  padding: 22px;
}
.decision-left,
.decision-right {
  display: grid;
  gap: 14px;
  align-content: start;
}
.decision-card,
.decision-radar,
.decision-path {
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--margin);
  border: 1px solid var(--rule-soft);
  display: grid;
  gap: 10px;
}
.decision-radar svg {
  width: 100%;
  max-width: 280px;
  height: auto;
  display: block;
}
.decision-path {
  background: var(--sheet);
  border-left: 4px solid var(--hand);
}
.decision-path[data-tone="live"] {
  border-left-color: var(--proven);
}
.decision-path p {
  font-size: 14px;
  color: var(--graphite);
  line-height: 1.5;
}
.decision-seal {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 16px;
  border-radius: 14px;
  background: var(--proven-wash);
  color: var(--proven);
  font-size: 13.5px;
  line-height: 1.45;
}
.decision-seal svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

/* VPC Containment Diagram (/security/) */
.boundary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.85fr);
  gap: 20px;
  padding: 20px 22px;
  align-items: center;
}
.boundary-svg-wrap {
  border-radius: 16px;
  background: var(--margin);
  border: 1px solid var(--rule-soft);
  padding: 10px;
}
.boundary-svg-wrap svg {
  width: 100%;
  height: auto;
  display: block;
}
.boundary-gate {
  display: grid;
  gap: 12px;
}
.boundary-gate-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--margin);
  border: 1px solid var(--rule-soft);
}
.boundary-circle {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-data);
  font-size: 11px;
  font-weight: 700;
  background: var(--proven-wash);
  color: var(--proven);
}
.boundary-gate-item[data-tone="hand"] .boundary-circle {
  background: var(--hand-wash);
  color: var(--hand);
}
.boundary-gate-item[data-tone="wait"] .boundary-circle {
  background: var(--waiting-wash);
  color: var(--waiting);
}
.boundary-gate-item strong {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
}
.boundary-gate-item span {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--graphite);
}

/* Cost Ring Legend (/pricing/) */
.cost-legend {
  display: grid;
  gap: 10px;
}
.cost-legend-row {
  display: grid;
  grid-template-columns: 11px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-soft);
}
.cost-legend-row .art-dot {
  margin-top: 0;
}
.cost-legend-row strong {
  font-size: 13.5px;
  color: var(--ink);
}
.cost-legend-note {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--rule-soft);
  font-size: 13px;
  color: var(--graphite);
}

/* Pilot 60-min Clock (/demo/) */
.pilot-clock {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 22px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--rule-soft);
  background: color-mix(in srgb, var(--margin) 72%, var(--sheet));
}
.pilot-clock svg {
  flex: none;
  width: 126px;
  height: 126px;
}
.pilot-clock-legend {
  display: grid;
  gap: 7px;
  font-size: 13.5px;
  color: var(--graphite);
}
.pilot-clock-legend > div {
  display: flex;
  align-items: center;
  gap: 9px;
}
.pilot-clock-legend .art-dot {
  margin-top: 0;
}
.pilot-clock-legend strong {
  color: var(--ink);
}

/* Circular Scope & Legend Medallions */
.scope-emblem {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--hand-wash);
  color: var(--hand);
  margin-bottom: 2px;
}
.scope-emblem[data-tone="live"] {
  background: var(--proven-wash);
  color: var(--proven);
}
.scope-emblem[data-tone="wait"] {
  background: var(--waiting-wash);
  color: var(--waiting);
}
.scope-emblem svg {
  width: 19px;
  height: 19px;
}
.legend-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--round);
  background: var(--sheet);
  border: 1px solid var(--rule-soft);
  box-shadow: var(--shadow-sheet);
}
.legend-orb {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--margin);
  border: 1px solid var(--rule-soft);
  color: var(--graphite);
}
.legend-orb[data-kind="source_log"],
.legend-orb[data-kind="read_back"] {
  background: var(--proven-wash);
  border-color: transparent;
  color: var(--proven);
}
.legend-orb[data-kind="wardhand"] {
  background: var(--hand-wash);
  border-color: transparent;
  color: var(--hand);
}
.legend-orb[data-kind="exception"] {
  background: var(--exception-wash);
  border-color: transparent;
  color: var(--exception);
}
.legend-orb[data-kind="none"] {
  background: var(--waiting-wash);
  border-color: transparent;
  color: var(--waiting);
}
.legend-orb svg {
  width: 17px;
  height: 17px;
}
.legend-card strong {
  font-size: 14px;
  font-weight: 650;
  color: var(--ink-soft);
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--rule-soft);
  background: var(--sheet);
  padding-block: 44px 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 0.8fr));
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--rule-soft);
}
.footer-tagline {
  margin-top: 12px;
  font-size: 14.5px;
  color: var(--graphite);
  max-inline-size: 42ch;
}
.footer-maker {
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--ink-soft);
}
.footer-col h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--graphite);
  margin-bottom: 12px;
}
.footer-col ul {
  display: grid;
  gap: 8px;
}
.footer-col a {
  font-size: 14px;
  text-decoration: none;
  color: var(--ink-soft);
}
.footer-col a:hover {
  color: var(--hand);
  text-decoration: underline;
}
.footer-bottom {
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: 13px;
  color: var(--graphite);
}

/* ── Responsive Breakpoints ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  :root {
    --margin-w: 230px;
  }
  .hero-split,
  .page-head-split,
  .tour-split,
  .demo-layout,
  .boundary-grid,
  .decision-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .bento-pane-wide {
    grid-template-columns: minmax(0, 1fr);
  }
  .bento-pane-wide .bento-art {
    grid-column: 1;
    grid-row: auto;
  }
  .three-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .site-nav,
  .header-cta {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .sheet-title,
  .line {
    grid-template-columns: minmax(0, 1fr);
  }
  .sheet-title-margin {
    display: none;
  }
  .line-margin {
    border-left: 0;
    border-top: 1px solid var(--rule-soft);
    padding: 13px 20px;
  }
  .two-col,
  .three-col,
  .field-grid,
  .bento-grid,
  .art-pane-split {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .wrap {
    width: min(var(--page), calc(100% - 28px));
  }
  .hero {
    padding-block: 32px 24px;
  }
  .page-head {
    padding-block: 32px 20px;
  }
  .section {
    padding-block: 36px;
  }
  .obsidian-band {
    padding-block: 44px;
  }
  .bento-pane {
    padding: 18px;
  }
  .orbit-pane-foot {
    grid-template-columns: minmax(0, 1fr);
  }
  .line-main,
  .sheet-title-left,
  .hand-note,
  .form-sheet,
  .cta-band,
  .art-pane-split,
  .decision-grid,
  .boundary-grid,
  .pilot-clock {
    padding-inline: 16px;
  }
  .paper-table th,
  .paper-table td {
    padding: 11px 12px;
    font-size: 13.5px;
  }
  .tour-tabs {
    top: 68px;
    padding: 8px;
    gap: 6px;
  }
  .tour-tab {
    font-size: 13px;
    padding: 7px 12px;
  }
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .say-do {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 12px;
  }
  .say-do-meter {
    grid-column: 1 / -1;
    order: 3;
    width: 100%;
    min-width: 0;
  }
  .say-do-pair[data-side="do"],
  .say-do-pair[data-side="holds"] {
    text-align: right;
  }
}

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