/* Cognitivi / Workboard site. No build step beyond gen.py: edit this file directly. */
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 200 900; font-display: swap; src: url(/assets/fonts/source-serif-4.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 100 700; font-display: swap; src: url(/assets/fonts/ibm-plex-sans.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Tokens (spec 2026-10-29): navy ink, paper, warm paper, hairlines, one accent. Old names are aliases of the new values. */
:root {
  --ink: #0B1F33;
  --paper: #ffffff;
  --warm: #F6F4EF;
  --line: #D9D6CF;
  --line-on-navy: rgba(255, 255, 255, .22);
  --accent: #1D4ED8;
  --accent-ink: #ffffff;
  --muted: #4F5B6B;
  --ink-2: #26364A;
  --ok: #067647;
  --ok-soft: #e6f6ec;
  --warn: #b54708;
  --warn-soft: #fff4e5;
  --fail: #b42318;
  --focus: #1D4ED8;
  --wrap: 1240px;
  --pad: 6vw;
  --section: 96px;
  /* aliases kept for selectors later tasks rewrite */
  --bg: var(--paper);
  --bg-2: var(--warm);
  --surface: var(--paper);
  --sunk: var(--warm);
  --line-strong: #BDB8AE;
  --accent-soft: #e8efff;
  --data: #2a78d6;
  --data-tint: #dce8fa;
  --band: var(--ink);
  --band-2: #122a44;
  --band-ink: #ffffff;
  --band-muted: rgba(255, 255, 255, .72);
  --band-line: var(--line-on-navy);
  --band-accent: #9DB8F5;
  --shadow: none;
  --shadow-lg: none;
  --display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gutter: var(--pad);
  --radius: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
[id] { scroll-margin-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.05rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
p a:not(.btn), dd a, .faq a, li a:not(.btn) { color: var(--accent); }
.band p a:not(.btn), .band li a:not(.btn) { color: var(--band-accent); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 14px; }
.skip:focus { left: 12px; }

h1, h2, h3, h4 { margin: 0; }
h1, h2, .num { font-family: var(--display); font-weight: 600; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.6rem, 5vw, 4.4rem); line-height: 1.05; }
h2 { font-size: clamp(1.9rem, 3vw, 2.8rem); line-height: 1.12; }
h3 { font-family: var(--sans); font-size: 1.18rem; font-weight: 600; line-height: 1.3; letter-spacing: 0; }
h4 { font-size: 1rem; font-weight: 600; letter-spacing: 0; }
p { margin: 0; }
.lede { font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: var(--ink-2); max-width: 42em; line-height: 1.55; }
.muted { color: var(--muted); }
.fine { font-size: 0.88rem; color: var(--muted); }
.eyebrow {
  display: block; font: 500 0.72rem/1 var(--sans); letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 18px;
}
.band .eyebrow, .photo-band .eyebrow { color: var(--band-accent); }
.num { font-variant-numeric: tabular-nums; }
.section { padding: var(--section) 0; }
.section.warm { background: var(--warm); }
.section.navy { background: var(--ink); color: #fff; }
.section.navy .eyebrow, .section.navy .muted, .section.navy small, .section.navy span { color: rgba(255,255,255,.72); }
.rule { border-top: 1px solid var(--line); }
.navy .rule { border-color: var(--line-on-navy); }
.grid-5-7, .grid-4-8 { display: grid; gap: 48px var(--pad); align-items: start; }
.grid-5-7 { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.grid-4-8 { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
code { font: 0.9em var(--mono); background: var(--sunk); padding: 1px 6px; border-radius: 5px; }
.band code { background: var(--band-2); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: var(--section) 0; }
section + section:not(.navy):not(.warm):not(.photo-band):not(.band) { border-top: 1px solid var(--line); }
section.alt { background: var(--warm); }
.head { max-width: 48em; margin-bottom: 52px; }
.head .lede { margin-top: 18px; }
.head.center { margin-left: auto; margin-right: auto; text-align: center; }
.head.center .lede { margin-left: auto; margin-right: auto; }
.head.center .eyebrow { justify-content: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 0; border: 1px solid transparent;
  font: 500 0.95rem/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-solid { background: var(--ink); color: #fff; }
.btn-solid:hover { background: #122a44; }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { background: var(--ink-2); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--warm); }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 1.02rem; }
.band .btn-solid, .plan.dark .btn-solid, .photo-band .btn-solid, .photo-hero .btn-solid, .navy .btn-solid { background: #fff; color: var(--ink); }
.band .btn-solid:hover, .photo-band .btn-solid:hover { background: #fff; }
.band .btn-line, .photo-band .btn-line, .photo-hero .btn-line, .navy .btn-line { color: #fff; border-color: rgba(255,255,255,.7); }
.band .btn-line:hover, .photo-band .btn-line:hover, .photo-hero .btn-line:hover, .navy .btn-line:hover { border-color: #fff; background: rgba(255,255,255,.12); }
.link-arrow { font-weight: 500; text-decoration: none; color: var(--accent); }
.link-arrow::after { content: " \2192"; display: inline-block; transition: transform .15s; }
.link-arrow:hover::after { transform: translateX(3px); }
.band .link-arrow, .photo-band .link-arrow { color: var(--band-accent); }
.acts { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Tags and pills */
.tag {
  display: inline-flex; align-items: center; gap: 6px; font: 600 0.72rem/1 var(--sans); letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 6px 10px; width: max-content;
}
.tag.live { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); background: var(--ok-soft); }
.tag.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.tag.soon { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); background: var(--accent-soft); }
.tag.build { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, transparent); background: var(--warn-soft); }
.band .tag { border-color: var(--band-line); color: var(--band-muted); }
.band .tag.live { color: var(--ok); background: transparent; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 1.08rem/1 var(--display); letter-spacing: -0.01em; }
.brand svg { width: 28px; height: 28px; flex: none; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-size: 0.93rem; font-weight: 500; color: var(--ink-2); padding: 8px 12px; border-radius: 8px; }
.nav-links a:hover { color: var(--ink); text-decoration: underline; }
.nav-links a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; }
.nav-links .has-sub { position: relative; }
.nav-links .has-sub > a::after { content: ""; display: inline-block; margin-left: 6px; border: 4px solid transparent; border-top-color: currentColor; border-bottom: 0; vertical-align: middle; }
.nav-links .sub { display: none; position: absolute; top: 100%; left: 0; min-width: 190px; list-style: none; margin: 0; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); z-index: 30; }
.nav-links .has-sub:hover .sub, .nav-links .has-sub:focus-within .sub { display: block; }
.nav-links .sub a { display: block; }
.nav-acts { display: flex; gap: 10px; align-items: center; }
.nav-acts .btn { min-height: 40px; padding: 0 16px; font-size: 0.9rem; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; font: 500 0.93rem/1 var(--sans); padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 10px; }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 240px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 10px; display: grid; gap: 2px;
}
.menu-panel a { text-decoration: none; padding: 10px 12px; border-radius: 8px; font-weight: 500; }
.menu-panel a.sub { padding-left: 28px; font-weight: 400; }
.menu-panel a:hover { background: var(--bg-2); }
.menu-panel .btn { margin-top: 8px; }

/* Hero */
.hero { padding: 88px 0 72px; border-top: 0; position: relative; overflow: hidden; }
/* .hero-figure and .browser were removed with the screenshot hero (Task 5) */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(900px 420px at 85% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    linear-gradient(180deg, var(--bg-2), var(--bg) 60%);
}
.hero .wrap { position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero h1 { max-width: 12em; }
.hero .lede { margin-top: 22px; }
.hero .acts { margin-top: 32px; }
.hero-note { margin-top: 18px; font-size: 0.92rem; color: var(--muted); }
.hero-note b { color: var(--ink); font-weight: 500; }

/* Stat strip */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 32px; }
.stats > div { padding: 24px 0 8px; border-top: 1px solid var(--line); }
.navy .stats > div { border-color: var(--line-on-navy); }
.stats b { display: block; font: 600 clamp(2rem, 3vw, 2.6rem)/1.05 var(--display); letter-spacing: -0.02em; }
.figures .stats b { font-size: clamp(2.8rem, 5vw, 4.2rem); white-space: nowrap; }
.figures .stats span, .figures .stats small, .figures .sources { color: rgba(255,255,255,.78); }
.figures .sources { margin-top: 36px; }
.figures .sources a { color: #fff; }
.figures .stats sup, .figures .sources sup { color: #9DB8F5; }
.stats span { display: block; margin-top: 8px; color: var(--muted); font-size: 0.93rem; line-height: 1.45; }
.stats small { display: block; margin-top: 12px; font-size: 0.78rem; color: var(--muted); }
.stats sup { font-size: 0.42em; vertical-align: super; margin-left: 3px; color: var(--accent); font-weight: 700; }
.sources sup { color: var(--accent); }
.sources { margin-top: 14px; font-size: 0.78rem; line-height: 1.55; color: var(--muted); display: grid; gap: 4px; }
.sources sup { font-size: 0.9em; vertical-align: baseline; margin-right: 4px; font-weight: 700; }
.sources a { color: inherit; text-decoration: underline; }

/* Homepage demo: the Workboard page and the tray app as mocks. Final state in the markup; demo.js animates the way in. */
.tour-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 36px; align-items: start; }
.tour-grid > * { min-width: 0; }
.tour-col-tray { justify-self: end; width: 100%; max-width: 360px; }
.demo-app, .tray { max-width: 100%; }
.demo-tabs, .demo-filters { min-width: 0; }
.demo-note { margin-top: 12px; }
.demo-app { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; font-size: 0.84rem; color: var(--ink); }
.demo-chrome { display: flex; align-items: center; gap: 12px; padding: 8px 12px; background: #ECEAE4; border-bottom: 1px solid var(--line); }
.demo-dots { display: flex; gap: 6px; }
.demo-dots i { width: 10px; height: 10px; border-radius: 50%; background: #C9C5BC; }
.demo-url { flex: 1; max-width: 360px; margin: 0 auto; text-align: center; background: #fff; border-radius: 6px; font-size: 0.74rem; color: var(--muted); padding: 3px 10px; }
.demo-nav { display: flex; align-items: center; gap: 14px; padding: 6px 14px; border-bottom: 1px solid var(--line); }
.demo-nav > b { font-size: 0.9rem; letter-spacing: -0.01em; }
.demo-tabs { display: flex; gap: 2px; }
.demo-tabs button, .demo-tab-off { font: inherit; font-size: 0.78rem; padding: 8px 8px 6px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); white-space: nowrap; }
.demo-tabs button { cursor: pointer; }
.demo-tabs button:hover { color: var(--ink); }
.demo-tabs button:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.demo-tabs button[aria-selected="true"] { color: var(--ink); border-color: var(--accent); font-weight: 600; }
.demo-tab-off { color: var(--line-strong); }
.demo-needs { margin-left: auto; background: var(--warn-soft); color: var(--warn); font-size: 0.72rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.demo-filters { display: flex; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #FCFBF9; }
.demo-filters span { font-size: 0.72rem; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; color: var(--ink-2); white-space: nowrap; }
.demo-filters .demo-search { margin-left: auto; min-width: 150px; color: var(--muted); border-radius: 6px; }
.demo-screen { padding: 14px; min-height: 452px; background: #F7F6F2; }
.dv-stats, .dv-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.dv-tiles { margin-top: 12px; }
.dv-stat, .dv-tile, .dv-card { background: #fff; border: 1px solid var(--line); padding: 12px 14px; }
.dv-stat small, .dv-tile small { display: block; font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.dv-stat .num, .dv-tile .num { display: block; font-size: 1.5rem; line-height: 1.15; margin-top: 6px; letter-spacing: -0.01em; }
.dv-tile .num { font-size: 1.05rem; }
.dv-stat span, .dv-tile span { display: block; margin-top: 3px; font-size: 0.72rem; color: var(--muted); }
.dv .ok { color: var(--ok); }
.dv .warn { color: var(--warn); }
.dv-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.dv-card + .dv-card, .dv-cols + .dv-card { margin-top: 12px; }
.dv-card h4 { margin: 0 0 8px; display: flex; justify-content: space-between; gap: 10px; align-items: baseline; font: 600 0.68rem/1.3 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.dv-card h4 small { text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 0.7rem; text-align: right; }
.dv-list { list-style: none; margin: 0; padding: 0; }
.dv-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 0.78rem; line-height: 1.35; }
.dv-list li .num { white-space: nowrap; color: var(--ok); font-weight: 600; }
.dv-bar { display: grid; grid-template-columns: 104px minmax(0, 1fr) 52px; align-items: center; gap: 10px; padding: 7px 0; font-size: 0.76rem; border-top: 1px solid var(--line); }
.dv-bar i { display: block; height: 8px; width: var(--to); background: var(--data); }
.dv-bar b { text-align: right; font-weight: 500; }
.dv-plan-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 7px 0; font-size: 0.76rem; }
.dv-plan-row + .dv-plan-row { border-top: 1px solid var(--line); }
.dv-plan-row b { font-weight: 600; }
.dv-plan-row small { grid-column: 1 / -1; color: var(--muted); font-size: 0.68rem; }
.dv-track { grid-column: 1 / -1; height: 8px; background: var(--warm); overflow: hidden; }
.dv-track i { display: block; height: 100%; width: var(--to); background: var(--accent); }
.dv-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; font-size: 0.78rem; color: var(--muted); }
.dv-head > b { font-size: 0.95rem; color: var(--ink); font-weight: 600; }
.dv-head > b.num { font-size: 1.5rem; letter-spacing: -0.01em; }
.dv-pills { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.dv-pills i { font-style: normal; font-size: 0.68rem; padding: 2px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: #fff; }
.dv-pills i.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.dv-find { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dv-find li { display: flex; justify-content: space-between; gap: 14px; background: #fff; border: 1px solid var(--line); padding: 10px 14px; font-size: 0.76rem; line-height: 1.35; }
.dv-find li > div { display: grid; gap: 2px; }
.dv-find li b { font-weight: 600; color: var(--ink); }
.dv-find li span { color: var(--ink-2); }
.dv-find li small { color: var(--muted); font-size: 0.68rem; }
.dv-find li > .num { color: var(--ok); font-weight: 600; font-size: 1rem; white-space: nowrap; }
.dv-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); font-size: 0.74rem; line-height: 1.3; }
.dv-table th { text-align: left; font: 600 0.64rem/1 var(--sans); letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.dv-table td { padding: 8px 10px; border-top: 1px solid var(--line); vertical-align: top; }
.dv-table td b { display: block; font-weight: 600; color: var(--ink); }
.dv-table td small { display: block; color: var(--muted); font-size: 0.66rem; margin-top: 2px; }
.dv-table .r { text-align: right; }
.dv-table u { text-decoration: none; color: var(--accent); }
.dv-table .st { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); margin-right: 6px; vertical-align: 1px; }
.dv-table .st.on { background: var(--ok); }
.dv-ctx { position: relative; width: 112px; height: 6px; margin-top: 4px; background: var(--warm); overflow: hidden; }
.dv-ctx i { display: block; height: 100%; width: var(--to); background: var(--data); }
.dv-ctx.warn i { background: var(--warn); }
.dv-ctx::after { content: ""; position: absolute; left: 66.7%; top: 0; bottom: 0; border-left: 1px solid var(--ink); opacity: .5; }
.dv-needs { margin-bottom: 12px; }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes bar-fill { from { width: 0; } to { width: var(--to); } }
html.js .demo-app:not(.is-live) [data-step] { opacity: 0; }
html.js .demo-app.is-live [data-step] { animation: pop .5s cubic-bezier(.16, .8, .2, 1) both; }
.dv [data-step]:nth-child(2) { animation-delay: .07s; }
.dv [data-step]:nth-child(3) { animation-delay: .14s; }
.dv [data-step]:nth-child(4) { animation-delay: .21s; }
.dv [data-step]:nth-child(5) { animation-delay: .28s; }
.dv [data-step]:nth-child(6) { animation-delay: .35s; }
.dv [data-step]:nth-child(7) { animation-delay: .42s; }
html.js .demo-app.is-live .fill { animation: bar-fill .9s ease-out both; animation-delay: .35s; }
html.js .tray.is-live .fill { animation: bar-fill .9s ease-out both; }

/* Tray app mock: the real panel's palette and type, on a menu bar strip */
.tray { font: 13px/1.35 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: #E9EEF7; box-shadow: var(--shadow); }
.tray-menubar { display: flex; align-items: center; gap: 14px; height: 26px; padding: 0 12px; background: #E8E6E1; color: #1d1d1f; font-size: 12px; border: 1px solid var(--line); border-bottom: 0; white-space: nowrap; }
.tray-apple { width: 11px; height: 11px; border-radius: 50% 50% 45% 45%; background: #1d1d1f; }
.tray-app-name { font-weight: 700; }
.tray-sp { flex: 1; }
.tray-item { background: rgba(0, 0, 0, .09); padding: 1px 7px; border-radius: 4px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tray-glyph { font-size: 8px; color: #555; }
.tray-clock { font-variant-numeric: tabular-nums; }
.tray-panel { background: #0B1F3A; border: 1px solid rgba(255, 255, 255, .08); border-top: 0; }
.tray-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.tray-head b { font-size: 14px; }
.tray-head span { display: flex; gap: 12px; }
.tray-head u { text-decoration: none; color: #8D9BB3; font-size: 12px; }
.tray-sec { padding: 10px 14px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.tray-h { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: #8D9BB3; font-weight: 600; }
.tray-h small { margin-left: auto; text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 11px; color: #5B6B86; }
.tray-ring { position: relative; width: 28px; height: 28px; flex: none; }
.tray-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); display: block; }
.tray-ring circle { fill: none; stroke-width: 3; }
.tray-ring .trk { stroke: rgba(255, 255, 255, .12); }
.tray-ring .arc { stroke: #2251FF; stroke-dasharray: 100; stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.tray-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 9px; font-weight: 600; letter-spacing: 0; color: #E9EEF7; }
.tray-bar { display: grid; grid-template-columns: 1fr auto auto; gap: 3px 8px; align-items: baseline; padding: 5px 0; }
.tray-bar span { font-size: 12.5px; }
.tray-bar small { color: #5B6B86; font-size: 11px; }
.tray-bar b { font-size: 12.5px; font-variant-numeric: tabular-nums; }
.tray .track { grid-column: 1 / -1; height: 6px; background: rgba(255, 255, 255, .08); border-radius: 3px; overflow: hidden; }
.tray .track i { display: block; height: 100%; width: var(--to); background: #2251FF; border-radius: 3px; }
.spark { display: grid; grid-template-columns: 86px minmax(0, 1fr) 64px; gap: 8px; align-items: center; padding: 3px 0; }
.spark .k { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: #8D9BB3; white-space: nowrap; }
.spark .k i { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.spark svg { width: 100%; height: 19px; display: block; }
.spark .area { opacity: .16; }
.spark .line { fill: none; stroke-width: 1.5; }
.spark b { text-align: right; font-size: 11.5px; font-weight: 500; font-variant-numeric: tabular-nums; }
.tray-facts { margin-top: 8px; display: grid; gap: 3px; font-size: 11.5px; color: #8D9BB3; }
.tray-facts b { color: #E9EEF7; font-weight: 600; font-variant-numeric: tabular-nums; }
.tray-find { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; font-size: 12.5px; }
.tray-find b { color: #7EE2A8; white-space: nowrap; font-weight: 600; font-variant-numeric: tabular-nums; }
.tray-app { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 12.5px; }
.tray-app small { margin-left: auto; color: #5B6B86; font-size: 11px; }
.tray .dot { width: 7px; height: 7px; border-radius: 50%; background: #5B6B86; display: inline-block; flex: none; transition: background .4s; }
.tray .dot.on { background: #7EE2A8; }
.tray-foot { display: flex; align-items: center; gap: 8px; padding: 9px 14px; font-size: 11.5px; color: #8D9BB3; }

/* Downloads: one button per system, placeholders until the signed builds ship */
.dl-grid { display: grid; gap: 14px; }
.dl { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: 2px 18px; align-items: center; width: 100%; text-align: left; padding: 18px 22px; background: var(--paper); border: 1px solid var(--line); font: inherit; color: var(--ink); cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.dl:hover { border-color: var(--ink); box-shadow: var(--shadow); }
.dl:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.dl > .dl-ico { grid-column: 1; grid-row: 1 / 3; width: 48px; height: 48px; display: grid; place-items: center; background: var(--warm); color: var(--ink); }
.dl > b { grid-column: 2; grid-row: 1; font-size: 1.12rem; font-weight: 600; letter-spacing: -0.01em; }
.dl > span { grid-column: 2; grid-row: 2; font-size: 0.88rem; color: var(--muted); }
.dl em { grid-column: 3; grid-row: 1 / 3; display: inline-flex; align-items: center; gap: 8px; font-style: normal; font-weight: 600; color: var(--accent); white-space: nowrap; }
.dl em .ico { width: 18px; height: 18px; }
.dl.is-soon em { color: var(--muted); }
.dl-note { margin-top: 16px; }

@media (max-width: 1040px) {
  .tour-grid { grid-template-columns: 1fr; }
  .tour-col-tray { justify-self: start; }
  .dv-stats, .dv-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .demo-nav { flex-wrap: wrap; gap: 8px 14px; }
  .demo-tabs { flex: 1 1 100%; order: 3; overflow-x: auto; }
  .demo-filters { overflow-x: auto; }
  .demo-filters .demo-search { min-width: 90px; }
  .demo-screen { min-height: 0; padding: 12px; }
  .dv-cols { grid-template-columns: 1fr; }
  .dv-head > b.num { font-size: 1.25rem; }
  .tour-col-tray { max-width: none; }
  .tray-menubar .tray-glyph, .tray-menubar > span:nth-child(3), .tray-menubar > span:nth-child(4), .tray-menubar > span:nth-child(5) { display: none; }
  .dl { grid-template-columns: 48px minmax(0, 1fr); padding: 16px 18px; }
  .dl em { grid-column: 1 / -1; grid-row: 3; margin-top: 10px; }
}

/* Motion: one fade-up per section, only when motion.js has run (html.js-motion) */
html.js-motion .motion:not(.is-in) { opacity: 0; transform: translateY(12px); }
.motion { transition: opacity .4s ease-out, transform .4s ease-out; }
a.photo img, .photo-link img { transition: transform .6s ease-out; }
a.photo:hover img, .photo-link:hover img { transform: scale(1.03); }

/* Cards */
.cards { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  border-top: 1px solid var(--line); padding: 20px 0 8px;
  display: flex; flex-direction: column; gap: 14px;
}
.card p, .card li { color: var(--ink-2); font-size: 0.98rem; }
.card ul { margin: 0; padding-left: 18px; display: grid; gap: 8px; }
.card .acts { margin-top: auto; padding-top: 6px; }
.card .ico { width: 24px; height: 24px; color: var(--accent); }
.band .card, .navy .card { border-color: var(--line-on-navy); }
.band .card p, .band .card li { color: var(--band-muted); }
.ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico-box { width: 28px; height: 28px; color: var(--ink); display: grid; place-items: center; }
.band .ico-box { background: color-mix(in srgb, var(--band-accent) 18%, transparent); color: var(--band-accent); }

/* Split and feature rows */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.split .lede { margin-top: 18px; }
.col h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.col ul { margin: 0; padding: 0; list-style: none; }
.col li { padding: 12px 0; border-top: 1px solid var(--line); color: var(--ink-2); }
.col li b { color: var(--ink); font-weight: 600; }
.band .col li { border-color: var(--band-line); color: var(--band-muted); }
.band .col li b { color: var(--band-ink); }
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1.6fr); gap: 24px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.row .n { font: 500 0.95rem/1.6 var(--mono); color: var(--accent); }
.row p { color: var(--ink-2); }
.band .row { border-color: var(--band-line); }
.band .row p { color: var(--band-muted); }

/* Dark bands */
.band { background: var(--band); color: var(--band-ink); border-top: 0 !important; }
.band .lede { color: var(--band-muted); }
.band h2, .band h3 { color: var(--band-ink); }
.band .muted { color: var(--band-muted); }

/* Photo bands and cards */
.photo-band, .photo-hero {
  position: relative; overflow: hidden; background: var(--band); color: #fff; --focus: #8db1ff; border-top: 0 !important;
}
.photo-band > picture, .photo-hero > picture, .photo-band > picture img, .photo-hero > picture img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.photo-band::after, .photo-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(6, 9, 16, .92) 0%, rgba(6, 9, 16, .78) 45%, rgba(6, 9, 16, .45) 100%);
}
.photo-hero::after { background: linear-gradient(90deg, rgba(11, 31, 51, .9) 0%, rgba(11, 31, 51, .8) 50%, rgba(11, 31, 51, .5) 100%), linear-gradient(to top, rgba(11, 31, 51, .6), transparent 50%); }
.photo-band::after { background: linear-gradient(180deg, rgba(11, 31, 51, .55), rgba(11, 31, 51, .7)); }
.photo-band .wrap, .photo-hero .wrap { position: relative; z-index: 1; width: 100%; }
.photo-band .lede, .photo-hero .lede { color: rgba(255, 255, 255, .86); }
.photo-band h2, .photo-hero h1, .photo-hero h2 { color: #fff; }
.photo-hero { padding: 140px 0 64px; min-height: var(--h, 70vh); display: flex; flex-direction: column; justify-content: flex-end; }
.photo-hero-in { position: relative; z-index: 1; width: 100%; }
.photo-hero .eyebrow, .photo-hero .hero-note, .photo-hero .hero-note b { color: rgba(255,255,255,.82); }
.photo-hero .lede { max-width: 40rem; margin-top: 22px; }
.photo-hero .acts { margin-top: 32px; }
.photo-hero .hero-note { margin-top: 18px; }
.photo-band { padding: 96px 0; min-height: var(--h, 40vh); display: flex; align-items: center; }
.photo-band .pull { position: relative; z-index: 1; color: #fff; font: 600 clamp(1.5rem, 2.6vw, 2.2rem)/1.25 var(--display); max-width: 30em; }
.credits { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.78rem; color: var(--muted); }
.credits a { color: inherit; }
.photo-band .story { max-width: 44em; }
.photo-card { padding: 0; overflow: hidden; gap: 0; }
.photo-card > picture img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.photo-card .card-body { padding: 20px 0 0; display: flex; flex-direction: column; gap: 14px; flex: 1; }

/* Story block ($50M) */
.story-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 56px; align-items: center; }
.ledger { border-top: 1px solid rgba(255, 255, 255, .3); padding: 8px 0; backdrop-filter: blur(6px); }
.ledger div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; padding: 14px 24px; border-top: 1px solid rgba(255, 255, 255, .12); align-items: baseline; }
.ledger div:first-child { border-top: 0; }
.ledger dt { color: rgba(255, 255, 255, .78); font-size: 0.95rem; }
.ledger dd { margin: 0; font: 600 1.15rem/1.2 var(--display); letter-spacing: -0.01em; text-align: right; }
.ledger div.total { background: rgba(255, 255, 255, .06); }
.ledger div.total dd { font-size: 1.5rem; color: #9ff0bb; }
.ledger small { display: block; padding: 10px 24px 8px; color: rgba(255, 255, 255, .62); font-size: 0.8rem; }

/* Token chart */
.tokens { display: grid; gap: 14px; }
.tokens .bar { display: flex; height: 28px; border-radius: 8px; overflow: hidden; gap: 2px; background: transparent; }
.tokens .bar i { display: block; height: 100%; background: var(--sunk); }
.tokens .bar i.main { background: var(--data); }
.tokens .legend { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tokens .legend div { padding: 14px 0 0; border-top: 1px solid var(--line); }
.tokens .legend b { display: block; font: 600 1.3rem/1.1 var(--display); letter-spacing: -0.02em; }
.tokens .legend span { display: block; color: var(--muted); font-size: 0.86rem; margin-top: 4px; }
.tokens .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--sunk); margin-right: 6px; border: 1px solid var(--line-strong); }
.tokens .legend div.main i { background: var(--data); border-color: var(--data); }
.formula { font: 500 1.05rem/1.4 var(--mono); padding: 18px 22px; border: 1px dashed var(--line-strong); border-radius: 10px; color: var(--ink-2); background: var(--bg-2); }

/* Table */
.table-wrap { overflow-x: auto; }
table.data.surfaces td { font-size: 0.9rem; }
table.data { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
table.data th, table.data td { text-align: left; padding: 14px 18px; border-top: 1px solid var(--line); vertical-align: top; }
table.data thead th { border-top: 0; font: 600 0.74rem/1 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); background: var(--bg-2); }
table.data tbody th { font-weight: 600; white-space: nowrap; }
table.data td.r, table.data th.r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.data td { color: var(--ink-2); }
table.data .y { color: var(--ok); font-weight: 600; }
table.data .p { color: var(--muted); }

/* Product crops and lightbox */
.crops { display: grid; gap: 36px; }
.crop { margin: 0; border-top: 1px solid var(--line); padding-top: 18px; }
.crop img { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
.crop figcaption { margin-top: 12px; font-size: 0.92rem; color: var(--ink-2); line-height: 1.5; }
.crop-full { display: inline-block; margin-top: 8px; font-size: 0.86rem; color: var(--accent); }
.tabs-list { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 14px; font-size: 0.93rem; color: var(--ink-2); }
.tabs-list li { border-top: 1px solid var(--line); padding-top: 12px; }
.tabs-list b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 4px; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 92vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(11, 31, 51, .82); }
.lightbox img { display: block; max-width: 92vw; max-height: 92vh; width: auto; height: auto; background: #fff; }
.lightbox-close { position: fixed; top: 16px; right: 20px; width: 44px; height: 44px; border: 0; background: #fff; color: var(--ink); font-size: 1.6rem; cursor: pointer; }

/* Flow diagram */
.flow { display: grid; grid-template-columns: minmax(0, 1.2fr) auto minmax(0, 1fr) auto minmax(0, 1fr); gap: 0; align-items: center; }
.flow-box { border: 1px solid var(--band-line); padding: 16px 18px; display: flex; align-items: center; gap: 12px; font-size: 0.95rem; }
.flow-box .ico { color: var(--band-accent); }
.flow-box b { display: block; font-weight: 600; }
.flow-box span { display: block; color: var(--band-muted); font-size: 0.88rem; }
.flow-hosts { display: grid; gap: 10px; }
.flow-note { font-size: 0.86rem; color: var(--band-muted); margin-top: 6px; }
.flow-link { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0 18px; font: 500 0.76rem/1 var(--mono); color: var(--band-muted); text-align: center; }
.flow-link i { display: block; width: 56px; height: 2px; background: linear-gradient(90deg, var(--band-line), var(--band-accent)); }
.flow-main { flex-direction: column; align-items: flex-start; padding: 22px; }
.flow-end { flex-direction: column; align-items: flex-start; padding: 22px; border-color: var(--band-accent); }

/* Steps */
.steps { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--line); counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 16px 0 16px 48px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 16px; font: 500 0.9rem/1.6 var(--mono); color: var(--accent); }
.steps li b { color: var(--ink); font-weight: 600; display: block; }
.band .steps li { border-color: var(--band-line); color: var(--band-muted); }
.band .steps li b { color: var(--band-ink); }
.band .steps { border-color: var(--band-line); }

/* Product cards */
.products { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.product { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 12px; text-decoration: none; transition: box-shadow .2s, transform .2s, border-color .2s; }
.product:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--line-strong); }
.product h3 { font-size: 1.08rem; color: var(--ink); }
.product p { color: var(--ink-2); font-size: 0.92rem; line-height: 1.5; }
.product .link-arrow { margin-top: auto; font-size: 0.92rem; }
.product-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 56px 0; border-top: 1px solid var(--line); }
.product-hero:first-of-type { border-top: 0; }
.product-hero figure.photo { margin: 0; overflow: hidden; aspect-ratio: 4 / 3; background: var(--sunk); }
.product-hero figure.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-hero ul { margin: 18px 0 0; padding-left: 18px; color: var(--ink-2); display: grid; gap: 8px; }
.product-hero .lede { font-size: 1.08rem; }
.product-hero .lede + .lede { margin-top: 14px; }

/* FAQ and concerns */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 20px 0; font: 600 1.08rem/1.35 var(--display); letter-spacing: -0.01em; list-style: none; display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.4rem/1 var(--sans); color: var(--muted); flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq p { padding: 0 0 22px; color: var(--ink-2); max-width: 60em; }
.faq p + p { margin-top: -10px; }

/* Pricing */
.plans { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--pad); align-items: stretch; }
.plan { border-top: 2px solid var(--ink); padding: 28px 0 8px; display: flex; flex-direction: column; gap: 18px; }
.plan.dark { border-top-color: var(--accent); }
.plan.dark .btn-solid { background: var(--ink); color: #fff; }
.plan.dark .btn-line { color: var(--ink); border-color: var(--ink); }
.plan.dark > p, .plan.dark li, .plan.dark .amount small { color: var(--muted); }
.plan h3 { font-size: 1.6rem; }
.plan > p { color: var(--muted); }
.plan.dark > p { color: var(--band-muted); }
.amount { font: 600 3.2rem/1 var(--display); letter-spacing: -0.03em; }
.amount small { font: 400 1rem/1 var(--sans); color: var(--muted); letter-spacing: 0; }
.plan.dark .amount small { color: var(--band-muted); }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.plan li { padding-left: 26px; position: relative; color: var(--ink-2); }
.plan.dark li { color: var(--ink-2); }
.plan li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 14px; border-radius: 50%; background: var(--ok-soft); border: 1px solid var(--ok); }
.plan li::after { content: ""; position: absolute; left: 4px; top: 11px; width: 6px; height: 3px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.why { padding: 28px 0 8px; border-top: 1px solid var(--line); }
.why h3 { margin-bottom: 12px; }
.why ul { margin: 16px 0; padding-left: 18px; color: var(--ink-2); }
.why li + li { margin-top: 8px; }
.seats { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.seats-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.seats label { font-weight: 600; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); overflow: hidden; }
.stepper button { border: 0; background: transparent; width: 40px; height: 40px; font-size: 1.2rem; cursor: pointer; color: var(--ink); }
.stepper button:disabled { color: var(--line-strong); cursor: default; }
.stepper input { width: 72px; height: 40px; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); text-align: center; font: 600 1.05rem var(--sans); background: transparent; color: var(--ink); -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.total { margin-top: 12px; font: 600 1.15rem/1.3 var(--display); }
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; margin: 0; }
.price-grid > div { padding: 20px 0 8px; border-top: 1px solid var(--line); }
.price-grid dt { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.price-grid dd { margin: 6px 0 0; }
.price-grid dd.num { font: 600 2rem/1.1 var(--display); letter-spacing: -0.02em; }
.price-grid dd:not(.num) { color: var(--muted); font-size: 0.9rem; }

/* ROI calculator */
.calc { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 24px; }
.calc-in { border-top: 1px solid var(--line); padding: 28px 0; display: grid; gap: 20px; align-content: start; }
.calc-in label { display: grid; gap: 8px; font-weight: 600; font-size: 0.95rem; }
.calc-in label span { font-weight: 400; color: var(--muted); font-size: 0.86rem; }
.calc-in input[type="number"], .calc-in select { height: 46px; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; padding: 0 2px; background: transparent; font: 500 1.05rem var(--sans); color: var(--ink); width: 100%; }
.calc-in input[type="range"] { width: 100%; accent-color: var(--accent); }
.calc-out { border-top: 2px solid var(--ink); padding: 28px 0; display: grid; gap: 0; align-content: start; }
.calc-out div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); align-items: baseline; }
.calc-out div:first-child { border-top: 0; padding-top: 0; }
.calc-out span { color: var(--muted); font-size: 0.95rem; }
.calc-out b { font: 600 1.4rem/1.1 var(--display); letter-spacing: -0.01em; text-align: right; font-variant-numeric: tabular-nums; }
.calc-out div.hl b { font-size: 2.4rem; color: var(--ok); }
.calc-out small { display: block; color: var(--muted); font-size: 0.8rem; margin-top: 16px; line-height: 1.5; }

/* Forms */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; border-top: 1px solid var(--line); padding: 32px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 0.93rem; }
.field label span { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line-strong); border-radius: 10px; padding: 12px 14px; font: 400 1rem var(--sans);
  background: var(--bg); color: var(--ink);
}
.field textarea { resize: vertical; min-height: 120px; }
.form .acts { grid-column: 1 / -1; align-items: center; }
.form .check { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; color: var(--ink-2); }
.form .check input { margin-top: 4px; }
.alert { grid-column: 1 / -1; padding: 14px 16px; border-radius: 10px; font-size: 0.95rem; }
.alert.ok { background: var(--ok-soft); color: var(--ok); }
.alert.err { background: var(--warn-soft); color: var(--warn); }
.contact-grid, .demo-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.demo-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
.demo-sub { font: 600 0.78rem/1 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 40px; }
.demo-sub + .steps { margin-top: 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.aside { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.aside dl { margin: 0; }
.aside dt { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-top: 24px; }
.aside dt:first-child { margin-top: 0; }
.aside dd { margin: 6px 0 0; font-size: 1.02rem; }

/* Legal pages */
.legal-body { max-width: 46em; }
.legal-body h2 { font-size: 1.4rem; margin-top: 40px; }
.legal-body p, .legal-body li { color: var(--ink-2); margin-top: 12px; }
.legal-body ul { padding-left: 20px; }

/* Close CTA */
.close { background: var(--band); color: var(--band-ink); text-align: center; }
.close h2 { max-width: 20em; margin: 0 auto; }
.close .lede { margin: 20px auto 0; }
.close .acts { justify-content: center; margin-top: 32px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 36px; font-size: 0.93rem; background: var(--bg-2); }
.foot { display: grid; gap: 32px; grid-template-columns: minmax(0, 1.6fr) repeat(5, minmax(0, 1fr)); }
.foot h2 { font: 600 0.76rem/1 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li + li { margin-top: 10px; }
.foot a { text-decoration: none; color: var(--ink-2); }
.foot a:hover { text-decoration: underline; color: var(--ink); }
.foot address { font-style: normal; color: var(--muted); margin-top: 16px; }
.foot .note { color: var(--muted); margin-top: 12px; max-width: 28em; font-size: 0.88rem; }
.legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.88rem; }

/* Error page */
.err-page { min-height: 60vh; display: flex; align-items: center; }
.err-page .code { font: 400 1rem var(--mono); color: var(--muted); }

/* Page hero (inner pages) */
.page-hero { padding: 84px 0 64px; border-top: 0; background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.page-hero .lede { margin-top: 22px; }
.page-hero .acts { margin-top: 30px; }
.tight-top { padding-top: 0; border-top: 0 !important; }

@media (max-width: 1040px) {
  .nav-links, .nav-acts { display: none; }
  .menu { display: block; }
  .hero-grid, .story-grid, .product-hero { grid-template-columns: 1fr; }
  .hero h1 { max-width: none; }
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards.three, .cards.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot > div:first-child { grid-column: 1 / -1; }
  .contact-grid, .demo-grid, .calc { grid-template-columns: 1fr; gap: 40px; }
  .flow { grid-template-columns: 1fr; }
  .flow-link { flex-direction: row; justify-content: center; padding: 10px 0; }
  .flow-link i { width: 2px; height: 28px; }
  .tokens .legend { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .panel-top { grid-template-columns: 1fr; }
  .panel { padding: 20px; }
  :root { --pad: 20px; }
  .grid-5-7, .grid-4-8 { grid-template-columns: 1fr; gap: 28px; }
  body { font-size: 16px; }
  :root { --section: 64px; }
  .hero { padding: 56px 0 48px; }
  .page-hero { padding: 56px 0 40px; }
  .photo-hero { padding: 110px 0 32px; min-height: 0; }
  .photo-band { padding: 72px 0; }
  .head { margin-bottom: 36px; }
  .row { grid-template-columns: 1fr; gap: 8px; padding: 24px 0; }
  .cards, .cards.three, .cards.four, .split, .plans, .products { grid-template-columns: 1fr; }
  .card, .plan { padding: 24px; }
  .stats { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .price-grid > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .form { grid-template-columns: 1fr; padding: 22px; }
  .foot { grid-template-columns: 1fr 1fr; }
  .amount { font-size: 2.6rem; }
  .acts .btn { flex: 1 1 auto; }
      .ledger div { grid-template-columns: 1fr; gap: 4px; }
  .ledger dd { text-align: left; }
  .photo-band::after { background: rgba(6, 9, 16, .82); }
}

@media (prefers-reduced-motion: reduce) {
  html.js .demo-app:not(.is-live) [data-step] { opacity: 1; }
  html.js .demo-app.is-live [data-step], html.js .demo-app.is-live .fill, html.js .tray.is-live .fill, .demo-app [data-step], .tray .arc, .tray .dot, .dl { transition: none; animation: none; }
  .motion { transition: none; }
  a.photo img, .photo-link img { transition: none; }
}

.pane { border-top: 2px solid var(--ink); padding-top: 20px; min-width: 0; }
.pane h3 { font-size: 1rem; margin-bottom: 12px; }
.pane .mono { font: 0.86rem/1.8 var(--mono); color: var(--ink-2); overflow-wrap: anywhere; }
.pane .mono code { color: var(--accent); background: var(--accent-soft); }
.path { display: grid; }
.path .kv { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: baseline; padding: 18px 20px; border: 1px solid var(--line); background: var(--paper); }
.path .kv b { font-weight: 600; }
.path .kv span { color: var(--muted); font-size: 0.9rem; text-align: right; }
.path .arrow { width: 2px; height: 26px; margin: 0 auto; background: var(--line-strong); }
.path .aside { margin-top: 28px; border-style: dashed; grid-template-columns: 1fr; gap: 4px; }
.path .aside span { text-align: left; }
.facts { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--line); }
.facts li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; color: var(--ink-2); line-height: 1.5; }
.facts li b { display: block; color: var(--ink); font-weight: 600; }
.band .facts, .band .facts li { border-color: var(--band-line); }
.band .facts li { color: var(--band-muted); }
.band .facts li b { color: var(--band-ink); }
@media (max-width: 760px) {
  .path .kv { grid-template-columns: 1fr; gap: 4px; }
  .path .kv span { text-align: left; }
}
