/* TerreLenz website. Colors come from the mark (assets/brand/terrelenz.svg):
   the navy tile and the flux-density gradient of the stator tooth. */

:root {
  /* brand */
  --navy-950: #0D121D;
  --navy-900: #121826;
  --navy-800: #1A2336;
  --navy-700: #26324A;
  --flux-1: #E8452C;
  --flux-2: #F08A36;
  --flux-3: #F3CF4A;
  --flux-4: #8CCB74;
  --flux-5: #2FA5B6;
  --flux-6: #2C62AC;
  --flux-7: #2A3C82;
  --flux-gradient: linear-gradient(90deg, var(--flux-1), var(--flux-2) 14%, var(--flux-3) 30%, var(--flux-4) 48%, var(--flux-5) 66%, var(--flux-6) 84%, var(--flux-7));

  /* page (light) */
  --bg: #F6F7FA;
  --bg-tint: #ECEFF5;
  --surface: #FFFFFF;
  --ink: #121826;
  --ink-2: #3A4459;
  --muted: #5E6880;
  --line: #D9DEE8;
  --link: #2C62AC;
  --card-shadow: 0 1px 2px rgba(18, 24, 38, .06), 0 8px 24px rgba(18, 24, 38, .06);

  /* always-dark bands (hero, validation, get) */
  --dk-ink: #EEF1F7;
  --dk-muted: #A5AEC2;
  --dk-line: rgba(255, 255, 255, .12);

  --radius: 14px;
  --wrap: 1180px;
  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F1420;
    --bg-tint: #141B2A;
    --surface: #182033;
    --ink: #E9EDF5;
    --ink-2: #C3CADB;
    --muted: #97A1B8;
    --line: #29334A;
    --link: #6FB6D6;
    --card-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F1420;
  --bg-tint: #141B2A;
  --surface: #182033;
  --ink: #E9EDF5;
  --ink-2: #C3CADB;
  --muted: #97A1B8;
  --line: #29334A;
  --link: #6FB6D6;
  --card-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.015em; }
h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 600; }
h3 { font-size: 19px; font-weight: 600; }
p { margin: 0; }
code, kbd { font-family: var(--mono); font-size: .88em; }
code { background: var(--bg-tint); border: 1px solid var(--line); padding: .05em .35em; border-radius: 5px; }
kbd {
  display: inline-block; padding: 0 .4em; border: 1px solid var(--line); border-bottom-width: 2px;
  border-radius: 5px; background: var(--surface); line-height: 1.5; color: var(--ink);
}
sub, sup { line-height: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; color: #121826; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--flux-3); outline-offset: 3px; border-radius: 4px; }

.eyebrow {
  font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--flux-3); margin-bottom: 14px;
}
.eyebrow--ink { color: var(--flux-6); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .eyebrow--ink { color: var(--flux-5); } }
:root[data-theme="dark"] .eyebrow--ink { color: var(--flux-5); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 22px;
  border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--hot { background: var(--flux-3); color: var(--navy-900); }
.btn--hot:hover { background: #F7DA6A; }
.btn--ghost { color: var(--dk-ink); border-color: rgba(255, 255, 255, .28); }
.btn--ghost:hover { border-color: rgba(255, 255, 255, .6); }
.btn--small { min-height: 36px; padding: 0 16px; font-size: 14px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(18, 24, 38, .82); backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--dk-line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
/* wordmark: clear space about one T-stem width (set by the padding) */
.brand { display: inline-flex; align-items: center; padding: 6px 0; text-decoration: none; }
.nav .brand img { height: 21px; width: auto; }
.footer .brand img { height: 18px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 26px; }
.nav__links a:not(.btn) { color: var(--dk-muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav__links a:not(.btn):hover { color: #fff; }
.nav__links .btn + .btn { margin-left: -14px; }
.nav__toggle { display: none; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }
@media (max-width: 1080px) {
  .nav__toggle { display: block; }
  .nav__links {
    display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy-900); border-bottom: 1px solid var(--dk-line); padding: 8px 16px 16px;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--dk-line); font-size: 16px; }
  .nav__links .btn { margin-top: 14px; justify-content: center; }
  .nav__links .btn + .btn { margin-left: 0; margin-top: 10px; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--dk-ink);
  background:
    radial-gradient(1200px 600px at 78% 40%, rgba(47, 165, 182, .10), transparent 60%),
    linear-gradient(180deg, var(--navy-700) 0%, var(--navy-900) 70%);
  padding: 96px 0 180px;
}
.hero__field {
  position: absolute; inset: 0; width: 100%; height: 100%;
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, .18) 0%, rgba(0, 0, 0, .35) 38%, #000 62%);
          mask-image: linear-gradient(90deg, rgba(0, 0, 0, .18) 0%, rgba(0, 0, 0, .35) 38%, #000 62%);
}
@media (max-width: 860px) {
  .hero__field {
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .2) 45%, rgba(0, 0, 0, .12) 100%);
            mask-image: linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .2) 45%, rgba(0, 0, 0, .12) 100%);
  }
}
.hero__inner { position: relative; max-width: var(--wrap); }
.hero h1 { font-size: clamp(36px, 5.4vw, 64px); font-weight: 600; max-width: 13.5em; letter-spacing: -.025em; }
.hero__pillars { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 24px 0 0; }
.hero__pillars li {
  font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; color: #fff; background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
}
.hero__lede { margin-top: 22px; font-size: clamp(17px, 1.6vw, 20px); color: #C9D0DF; max-width: 36em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 28px 0 0; font-size: 14px; color: var(--dk-muted); }
.hero__facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero__facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--flux-5); }
.hero__inner > * { max-width: 620px; }
.hero__inner > h1 { max-width: 760px; }
@media (max-width: 860px) {
  .hero { padding: 64px 0 140px; }
}

/* ---------- showcase ---------- */
.showcase { margin-top: -120px; position: relative; z-index: 2; }
.window {
  margin: 0; border-radius: var(--radius); overflow: hidden; background: #1C1C1C;
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 30px 80px rgba(8, 12, 22, .45), 0 0 0 1px rgba(8, 12, 22, .2);
}
.window__bar { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; background: #262626; border-bottom: 1px solid #111; }
.window__title { font-size: 12.5px; color: #BDBDBD; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.window__body { position: relative; aspect-ratio: 16 / 9; background: #1C1C1C; }
.window__body img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: opacity .25s ease; }
.window__body img.is-swapping { opacity: 0; }
.window--flat { box-shadow: var(--card-shadow); }
.window__body--chart { aspect-ratio: auto; background: #2B2B2B; }
.window__body--chart img { height: auto; object-fit: contain; }

.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 18px; }
.shots button {
  text-align: left; font: inherit; cursor: pointer; padding: 14px 16px; border-radius: 12px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); position: relative; overflow: hidden;
  transition: border-color .15s ease, transform .15s ease;
}
.shots button::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--flux-gradient); opacity: 0; transition: opacity .15s ease; }
.shots button:hover { border-color: var(--muted); }
.shots button[aria-selected="true"] { border-color: transparent; box-shadow: var(--card-shadow); }
.shots button[aria-selected="true"]::before { opacity: 1; }
.shots strong { display: block; font-size: 14px; font-weight: 600; }
.shots span { display: block; font-size: 13.5px; color: var(--muted); line-height: 1.45; margin-top: 3px; }
@media (max-width: 860px) { .shots { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .shots span { display: none; } }

/* ---------- proof strip ---------- */
.proof { padding: 72px 0 24px; }
.proof__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.stat { padding: 26px 24px 8px 0; border-right: 1px solid var(--line); margin-right: 24px; }
.stat:last-child { border-right: 0; margin-right: 0; }
.stat__num { display: block; font-family: var(--mono); font-weight: 500; font-size: clamp(30px, 3.4vw, 42px); letter-spacing: -.03em; line-height: 1; }
.stat__num small { font-size: .55em; margin-left: 2px; color: var(--muted); }
.stat__label { display: block; margin-top: 12px; font-size: 14.5px; color: var(--muted); line-height: 1.5; }
@media (max-width: 860px) {
  .proof__grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: 0; margin-right: 0; padding-right: 16px; border-bottom: 1px solid var(--line); padding-bottom: 22px; }
}

/* ---------- sections ---------- */
.section { padding: 104px 0; }
.section--tint { background: var(--bg-tint); }
.section__head { max-width: 720px; margin-bottom: 52px; }
.section__head p:not(.eyebrow) { margin-top: 16px; font-size: 18px; color: var(--ink-2); }
@media (max-width: 600px) { .section { padding: 72px 0; } .section__head { margin-bottom: 36px; } }

/* cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--card-shadow);
}
.card h3 { margin-top: 18px; }
.card p { margin-top: 10px; color: var(--ink-2); font-size: 15.5px; }
.card__icon {
  width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(160deg, var(--navy-700), var(--navy-900));
}
.card__icon svg { width: 26px; height: 26px; fill: none; stroke: var(--flux-3); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card:nth-child(2) .card__icon svg { stroke: var(--flux-4); }
.card:nth-child(3) .card__icon svg { stroke: var(--flux-2); }
.card:nth-child(4) .card__icon svg { stroke: var(--flux-5); }
.card:nth-child(5) .card__icon svg { stroke: var(--flux-1); }
.card:nth-child(6) .card__icon svg { stroke: #7FA6E0; }
.cards--license { grid-template-columns: repeat(4, 1fr); }
.cards--license .card { padding: 24px; }
@media (max-width: 1100px) { .cards--license { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } .card { padding: 22px; } }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding-top: 22px; border-top: 2px solid var(--line); }
.step::before { content: ""; position: absolute; top: -2px; left: 0; width: 56px; height: 2px; background: var(--flux-gradient); }
.step__n { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.step h3 { margin-top: 8px; }
.step p { margin-top: 10px; color: var(--ink-2); font-size: 15.5px; }
.step .step__note { margin-top: 8px; font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* split */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; }
.split__text h2 { margin-bottom: 18px; }
.split__text > p:not(.eyebrow) { color: var(--ink-2); font-size: 17.5px; }
.split--code { grid-template-columns: 5fr 6fr; }
@media (max-width: 960px) { .split, .split--code { grid-template-columns: 1fr; gap: 40px; } }

.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 28px; color: var(--ink-2); font-size: 16px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 14px; height: 8px;
  border-left: 2px solid var(--flux-5); border-bottom: 2px solid var(--flux-5); transform: rotate(-45deg) translateY(-3px);
}
.ticks strong { color: var(--ink); font-weight: 600; }

/* ---------- validation (always dark) ---------- */
.section--dark {
  background:
    radial-gradient(900px 400px at 10% 0%, rgba(44, 98, 172, .18), transparent 60%),
    var(--navy-900);
  color: var(--dk-ink);
}
.section--dark .section__head p:not(.eyebrow) { color: #C9D0DF; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip {
  font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; padding: 7px 14px; border-radius: 999px;
  background: transparent; color: var(--dk-muted); border: 1px solid var(--dk-line);
}
.chip:hover { color: #fff; border-color: rgba(255, 255, 255, .3); }
.chip[aria-pressed="true"] { background: #fff; color: var(--navy-900); border-color: #fff; }
.ledger { border: 1px solid var(--dk-line); border-radius: var(--radius); overflow-x: auto; background: rgba(255, 255, 255, .02); }
.ledger table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 640px; }
.ledger th {
  text-align: left; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  color: var(--dk-muted); padding: 14px 18px; border-bottom: 1px solid var(--dk-line);
}
.ledger td { padding: 13px 18px; border-bottom: 1px solid rgba(255, 255, 255, .06); color: #D7DCE7; vertical-align: top; }
.ledger td:first-child { color: #fff; }
.ledger tr:last-child td { border-bottom: 0; }
.ledger tr.is-hidden { display: none; }
.ledger .num { text-align: right; white-space: nowrap; font-family: var(--mono); }
.ledger td.num { color: var(--flux-4); font-weight: 500; }
@media (max-width: 640px) {
  /* rows become two-line entries so the error stays in view */
  .ledger { overflow: visible; }
  .ledger table { min-width: 0; }
  .ledger thead { display: none; }
  .ledger tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; padding: 14px 16px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
  .ledger tr:last-child { border-bottom: 0; }
  .ledger tr.is-hidden { display: none; }
  .ledger td { padding: 0; border: 0; }
  .ledger td:nth-child(1) { grid-column: 1; grid-row: 1; }
  .ledger td:nth-child(4) { grid-column: 2; grid-row: 1; }
  .ledger td:nth-child(2), .ledger td:nth-child(3) { grid-column: 1 / -1; font-size: 13.5px; color: var(--dk-muted); }
  .ledger td:nth-child(2)::before { content: "vs "; }
}
.footnote { margin-top: 16px; font-size: 13.5px; color: var(--dk-muted); max-width: 820px; }
.footnote--inline { margin: 0; }

/* ---------- code ---------- */
.code { margin: 0; border-radius: var(--radius); overflow: hidden; background: #111724; border: 1px solid #222B3E; box-shadow: var(--card-shadow); }
.code__bar { height: 36px; display: flex; align-items: center; padding: 0 16px; border-bottom: 1px solid #222B3E; font-family: var(--mono); font-size: 12.5px; color: #8A94AA; }
.code__bar::before { content: ""; width: 34px; height: 3px; border-radius: 2px; background: var(--flux-gradient); margin-right: 12px; }
.code pre { margin: 0; padding: 20px; overflow-x: auto; font-family: var(--mono); font-size: 14px; line-height: 1.7; color: #DCE2EE; }
.code code { background: none; border: 0; padding: 0; font-size: inherit; }
.code .c { color: #6F7B94; }
.code .s { color: var(--flux-4); }
.code .n { color: var(--flux-2); }
.code .k { color: #7FB8F0; }

.code__prompt {
  display: flex; gap: 12px; align-items: baseline; padding: 14px 16px; border-bottom: 1px solid #222B3E;
  background: #161E2E; color: #DCE2EE; font-size: 14.5px; line-height: 1.5;
}
.code__who {
  flex: none; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--navy-900); background: var(--flux-3); padding: 2px 7px; border-radius: 4px;
}

/* ---------- team ---------- */
.team { padding-top: 72px; }
.team__grid { display: grid; grid-template-columns: 4fr 8fr; gap: 56px; align-items: start; }
.team__stat { padding-top: 34px; }
.team__num {
  display: block; font-family: var(--mono); font-weight: 500; font-size: clamp(72px, 10vw, 128px); line-height: .9; letter-spacing: -.05em;
  background: var(--flux-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.team__unit { display: block; margin-top: 12px; font-size: 16px; color: var(--muted); }
.team__text h2 { margin-bottom: 16px; }
.team__text > p:not(.eyebrow) { color: var(--ink-2); font-size: 17.5px; max-width: 40em; }.team__facts { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.team__facts li { border-top: 2px solid var(--line); padding-top: 12px; display: grid; gap: 4px; }
.team__facts strong { font-weight: 600; }
.team__facts span { font-size: 14.5px; color: var(--muted); line-height: 1.45; }
@media (max-width: 860px) {
  .team__grid { grid-template-columns: 1fr; gap: 16px; }
  .team__stat { padding-top: 0; }
  .team__facts { grid-template-columns: 1fr; }
}

/* ---------- reports ---------- */
.split--report { grid-template-columns: 5fr 6fr; }
.report-shot { margin: 0; min-width: 0; }
.report-shot img { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--card-shadow); }
.report-shot figcaption { margin-top: 10px; font-size: 13.5px; color: var(--muted); }
@media (max-width: 960px) { .split--report { grid-template-columns: 1fr; } }

/* ---------- deployment ---------- */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.facts p { margin-top: 10px; color: var(--ink-2); font-size: 15.5px; }
@media (max-width: 860px) { .facts { grid-template-columns: 1fr; gap: 26px; } }

/* ---------- get ---------- */
.get {
  color: var(--dk-ink); padding: 96px 0;
  background:
    radial-gradient(700px 360px at 85% 100%, rgba(232, 69, 44, .16), transparent 65%),
    radial-gradient(700px 360px at 10% 0%, rgba(47, 165, 182, .16), transparent 65%),
    var(--navy-900);
  border-top: 1px solid var(--dk-line);
}
.get__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.get h2 { font-size: clamp(30px, 3.8vw, 44px); }
.get p { margin-top: 16px; color: #C9D0DF; font-size: 18px; max-width: 40em; }
.get .get__note { font-size: 14.5px; color: var(--dk-muted); margin-top: 20px; }
.get p a { color: #9FD8E2; }
.get__contacts { list-style: none; margin: 20px 0 0; padding: 18px 0 0; border-top: 1px solid var(--dk-line); display: grid; gap: 8px; font-size: 15px; }
.get__contacts li { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.get__contacts span { color: var(--dk-muted); min-width: 9.5em; }
.get__contacts a { color: #9FD8E2; overflow-wrap: anywhere; }
.get__lockup { width: 100%; max-width: 480px; height: auto; padding: 24px 0; }
@media (max-width: 860px) { .get__inner { grid-template-columns: 1fr; gap: 28px; } .get__lockup { max-width: 340px; padding: 0; } }

/* ---------- engineering notes (index) ---------- */
.notes .card p { font-size: 15px; }
.notes .card__fig { display: block; margin-top: 14px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.notes .card__fig b { font-weight: 500; color: var(--flux-6); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .notes .card__fig b { color: var(--flux-4); } }
:root[data-theme="dark"] .notes .card__fig b { color: var(--flux-4); }
.section__more { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn--ink { color: var(--ink); border-color: var(--line); background: var(--surface); }
.btn--ink:hover { border-color: var(--muted); }
.section--dark .section__more { margin-top: 28px; }

/* ---------- validation page ---------- */
.page-head {
  position: relative; overflow: hidden;
  color: var(--dk-ink); padding: 72px 0 64px;
  background:
    radial-gradient(900px 400px at 85% 10%, rgba(47, 165, 182, .14), transparent 60%),
    linear-gradient(180deg, var(--navy-700) 0%, var(--navy-900) 80%);
}
.page-head__inner { position: relative; }
.page-head h1 { font-size: clamp(34px, 4.6vw, 54px); font-weight: 600; letter-spacing: -.025em; max-width: 14em; }
.page-head .hero__lede { max-width: 44em; }
.page-head .hero__facts { margin-top: 24px; }
.crumb { font-size: 14px; color: var(--dk-muted); margin-bottom: 20px; }
.crumb a { color: var(--dk-muted); }
.crumb a:hover { color: #fff; }

.prose { max-width: 760px; color: var(--ink-2); font-size: 17px; }
.prose p + p { margin-top: 14px; }
.prose strong { color: var(--ink); }

.method { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 48px; margin-top: 48px; }
.method--flush { margin-top: 0; }
.method > div { border-top: 2px solid var(--line); padding-top: 16px; position: relative; }
.method > div::before { content: ""; position: absolute; top: -2px; left: 0; width: 48px; height: 2px; background: var(--flux-gradient); }
.method p { margin-top: 8px; color: var(--ink-2); font-size: 15.5px; }
.method .fig { display: block; margin-top: 10px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
@media (max-width: 760px) { .method { grid-template-columns: 1fr; gap: 26px; } }

.ledger-group + .ledger-group { margin-top: 44px; }
.ledger-group h3 { margin-bottom: 6px; }
.ledger-group > p { color: var(--ink-2); font-size: 15.5px; max-width: 760px; margin-bottom: 16px; }
.ledger--light { border-color: var(--line); background: var(--surface); box-shadow: var(--card-shadow); }
.ledger--light th { color: var(--muted); border-color: var(--line); }
.ledger--light td { color: var(--ink-2); border-color: var(--line); }
.ledger--light td:first-child { color: var(--ink); }
.ledger--light td.num { color: #1F7A5A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ledger--light td.num { color: var(--flux-4); } }
:root[data-theme="dark"] .ledger--light td.num { color: var(--flux-4); }
.ledger--light td.num.soft { color: var(--muted); font-weight: 400; }
.ledger--light .num { white-space: normal; }
.ledger--light td.num { min-width: 9em; max-width: 18em; }
@media (max-width: 640px) {
  .ledger--light tr { border-color: var(--line); }
  .ledger--light td:nth-child(2), .ledger--light td:nth-child(3) { color: var(--muted); }
  .ledger--light td.num { min-width: 0; max-width: 45vw; }
}
.footnote--light { color: var(--muted); }

.limits { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 40px; }
.limits li { position: relative; padding-left: 24px; color: var(--ink-2); font-size: 15.5px; }
.limits li::before { content: ""; position: absolute; left: 0; top: .7em; width: 12px; height: 2px; background: var(--flux-2); }
.limits strong { color: var(--ink); }
@media (max-width: 760px) { .limits { grid-template-columns: 1fr; } }

.faq { max-width: 820px; }
.faq details { border-top: 1px solid var(--line); padding: 16px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--muted); flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; color: var(--ink-2); font-size: 15.5px; }
.faq details p + p { margin-top: 8px; }

/* ---------- field-line bands ---------- */
.field-hint { display: none; }
@media (hover: hover) and (pointer: fine) {
  .field-hint { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-family: var(--mono); font-size: 12.5px; color: var(--dk-muted); }
  .field-hint::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: rgba(70, 82, 106, .9); border: 1px solid rgba(255, 255, 255, .45); }
  .hero { cursor: crosshair; }
  .hero a, .hero button { cursor: pointer; }
}
.get { position: relative; overflow: hidden; }
.get .hero__field {
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .1), rgba(0, 0, 0, .55) 70%, rgba(0, 0, 0, .7));
          mask-image: linear-gradient(180deg, rgba(0, 0, 0, .1), rgba(0, 0, 0, .55) 70%, rgba(0, 0, 0, .7));
}
.get__inner { position: relative; }

/* ---------- validation page: the "instrument" look, squared and dense like the app's panels ---------- */
:root[data-page="validation"] {
  --bg: #0A0E16; --bg-tint: #0E141F; --surface: #101725;
  --ink: #E6EAF2; --ink-2: #B9C1D1; --muted: #8791A7; --line: #222C40; --link: #62C4D4;
  --radius: 3px; --card-shadow: none;
  color-scheme: dark;
}
[data-page="validation"] body {
  background: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1.2px) 0 0 / 18px 18px, var(--bg);
}
[data-page="validation"] h1, [data-page="validation"] h2 { font-family: "IBM Plex Sans Condensed", var(--font); letter-spacing: -.01em; }
[data-page="validation"] .page-head h1 { font-size: clamp(38px, 5vw, 60px); }
[data-page="validation"] .nav { background: rgba(10, 14, 22, .92); }
[data-page="validation"] .page-head { background: transparent; border-bottom: 1px solid var(--line); }
[data-page="validation"] .btn, [data-page="validation"] kbd { border-radius: 3px; }
[data-page="validation"] .btn--hot { background: var(--flux-5); color: #06121A; }
[data-page="validation"] .btn--hot:hover { background: #45BCCB; }
[data-page="validation"] .btn--ghost { color: var(--ink); border-color: rgba(255, 255, 255, .25); }
[data-page="validation"] .eyebrow, [data-page="validation"] .eyebrow--ink { color: var(--flux-5); }
[data-page="validation"] .eyebrow::before { content: "\25B8 "; }
[data-page="validation"] .hero__facts li::before { background: var(--flux-5); }
[data-page="validation"] .section--tint { background: rgba(14, 20, 31, .7); }
[data-page="validation"] .ledger--light { border-radius: 3px; box-shadow: none; }
[data-page="validation"] .ledger--light td.num { color: var(--flux-5); }
[data-page="validation"] .ledger--light td.num.soft { color: var(--muted); }
[data-page="validation"] .ledger-group h3 {
  font-family: var(--mono); font-weight: 500; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink);
  display: flex; align-items: center; gap: 12px;
}
[data-page="validation"] .ledger-group h3::before { content: ""; width: 34px; height: 3px; border-radius: 2px; background: var(--flux-gradient); }
[data-page="validation"] .method > div, [data-page="validation"] .faq details, [data-page="validation"] .faq details:last-child { border-color: var(--line); }
[data-page="validation"] .method .fig, [data-page="validation"] .notes .card__fig { color: var(--flux-5); }
[data-page="validation"] .limits li::before { background: var(--flux-2); }
[data-page="validation"] .get { background: #070A10; border-top-color: var(--line); }
[data-page="validation"] .footer { background: #05080D; }
[data-page="validation"] .prose strong, [data-page="validation"] .limits strong { color: #fff; }

/* ---------- footer ---------- */
.footer { background: var(--navy-950); color: var(--dk-muted); padding: 36px 0 44px; font-size: 13.5px; }
.footer__inner { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: start; }
.footer p { max-width: 720px; line-height: 1.6; }
.footer a { color: var(--dk-ink); }
.footer .footer__contact { margin-top: 10px; }
.footer__links { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer__links a { color: var(--dk-muted); text-decoration: none; }
.footer__links a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 700px) { .footer__inner { grid-template-columns: 1fr; gap: 16px; } }

/* ---------- design services ---------- */
.services__grid { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
.services__grid .steps { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
.services__lede { color: var(--ink-2); font-size: 17.5px; margin-top: 18px; }
.services__cta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.services__cta .btn--ink { border-color: var(--ink); }
.services__note { font-size: 14px; color: var(--muted); }
@media (max-width: 960px) { .services__grid { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 560px) { .services__grid .steps { grid-template-columns: 1fr; } }

/* ---------- privacy notice ---------- */
.legal { max-width: 820px; color: var(--ink-2); font-size: 16.5px; }
.legal h2 { font-size: clamp(24px, 2.6vw, 30px); color: var(--ink); margin-top: 56px; scroll-margin-top: 80px; }
.legal h3 { color: var(--ink); margin-top: 28px; }
.legal p, .legal ul { margin-top: 12px; }
.legal ul { padding-left: 22px; display: grid; gap: 6px; }
.legal strong { color: var(--ink); }
.legal .legal__meta { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.legal__toc { margin-top: 28px; padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.legal__toc ol { margin: 8px 0 0; padding-left: 20px; columns: 2; column-gap: 32px; font-size: 15px; }
@media (max-width: 600px) { .legal__toc ol { columns: 1; } }
.legal__table { margin-top: 16px; border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; background: var(--surface); }
.legal__table table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 620px; }
.legal__table th, .legal__table td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal__table thead th { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.legal__table tr:last-child td { border-bottom: 0; }
.legal__table code { font-size: .85em; white-space: nowrap; }

/* features.html: the capability tables (light), their marks and the area index */
[data-page="features"] .page-head { background: transparent; border-bottom: 1px solid var(--line); }
.cap { border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; background: var(--surface); }
.cap table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 640px; }
.cap th { text-align: left; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 12px 16px; border-bottom: 1px solid var(--line); }
.cap td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
.cap td:first-child { color: var(--ink); font-weight: 600; width: 22%; }
.cap td.cap__c { width: 2.5em; padding-left: 8px; padding-right: 8px; text-align: center; }
.cap tr:last-child td { border-bottom: 0; }
.cap__mark { font-style: normal; font-weight: 400; font-size: 15px; }
.cap__mark--yes { color: var(--flux-2, #1b7f5a); }
.cap__mark--part { color: #b07000; }
.cap__mark--no { color: var(--muted); }
.cap__legend { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 14.5px; color: var(--ink-2); }
.cap__legend .cap__mark { margin-right: 6px; }
.cap__toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.cap__toc a { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; text-decoration: none; color: var(--ink); background: var(--surface); }
.cap__toc a:hover { border-color: var(--muted); }
#how.section { padding-top: 40px; padding-bottom: 8px; }
@media (max-width: 640px) {
  .cap { overflow: visible; }
  .cap table { min-width: 0; }
  .cap thead { display: none; }
  .cap tr { display: grid; grid-template-columns: 2.5em 1fr; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .cap td { padding: 0; border: 0; }
  .cap td:first-child { grid-column: 2; width: auto; }
  .cap td.cap__c { grid-column: 1; grid-row: 1 / span 2; text-align: left; }
  .cap td:last-child { grid-column: 2; margin-top: 4px; font-size: 14.5px; }
}
.legal__todo { background: rgba(243, 207, 74, .25); padding: 0 .25em; border-radius: 3px; color: var(--ink); }

/* a button that looks like a link */
.linkish { font: inherit; color: var(--link); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* ---------- cookie consent (assets/js/consent.js) ---------- */
/* "Reject all" and "Accept all" share one style on purpose: neither may be
   more prominent than the other. */
.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 720px; margin: 0 auto;
  display: flex; gap: 20px; align-items: center; padding: 18px 20px; border-radius: 14px;
  background: var(--navy-900); color: var(--dk-ink); border: 1px solid var(--dk-line);
  box-shadow: 0 18px 48px rgba(8, 12, 22, .5); font-size: 14.5px; line-height: 1.5;
}
.consent[hidden] { display: none; }
.consent__title { font-size: 16px; margin-bottom: 4px; }
.consent a, .consent-dialog a { color: #9FD8E2; }
.consent__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; flex: none; }
.consent__btn {
  font: inherit; font-weight: 600; cursor: pointer; min-height: 40px; padding: 0 18px; border-radius: 999px;
  border: 1px solid #fff; background: #fff; color: var(--navy-900);
}
.consent__btn:hover { background: #E6EAF2; }
.consent__btn--save { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.consent__btn--save:hover { background: rgba(255, 255, 255, .08); }
.consent__link { font: inherit; cursor: pointer; background: none; border: 0; padding: 0 6px; color: #9FD8E2; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 700px) {
  .consent { flex-direction: column; align-items: stretch; }
  .consent__actions .consent__btn { flex: 1; }
}
.consent-dialog {
  width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border-radius: 14px;
  border: 1px solid var(--dk-line); background: var(--navy-900); color: var(--dk-ink);
  box-shadow: 0 30px 80px rgba(8, 12, 22, .6); font-size: 14.5px; line-height: 1.5;
}
.consent-dialog::backdrop { background: rgba(8, 12, 22, .6); }
.consent-dialog__form { padding: 26px 24px 22px; }
.consent-dialog h2 { font-size: 22px; }
.consent-dialog__lede { margin-top: 8px; color: var(--dk-muted); }
.consent-row { display: flex; gap: 18px; align-items: flex-start; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--dk-line); }
.consent-row:first-of-type { margin-top: 12px; border-top: 1px solid var(--dk-line); }
.consent-row h3 { font-size: 15.5px; }
.consent-row p { margin-top: 4px; color: var(--dk-muted); font-size: 14px; }
.consent-row input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--flux-5); }
.consent-gpc { color: var(--flux-3) !important; }
.consent-dialog .consent__actions { margin-top: 20px; }
.footer__links button { font: inherit; color: var(--dk-muted); background: none; border: 0; padding: 0; cursor: pointer; }
.footer__links button:hover { color: #fff; text-decoration: underline; }
.footer__links li[hidden] { display: none; }
