/* Agent Control Plane — Mercury-derived tokens, AIUC-style editorial grid */

:root {
  --primary: #5266eb;
  --primary-hover: #4356d6;
  --on-primary: #ffffff;
  --periwinkle: #9cb4e8;
  --canvas: #fbfcfd;
  --surface: #ffffff;
  --surface-tint: #fbfbff;
  --lavender: #edecfb;
  --lavender-2: #e3e2f8;
  --night: #171721;
  --night-raised: #1e1e2a;
  --night-line: #2b2b3a;
  --ink: #28253b;
  --ink-2: #554e7b;
  --on-dark: #ededf3;
  --fog: #c3c3cc;
  --slate: #70707d;
  --rule: #e6e6ee;
  --rule-strong: #d6d6e2;
  --warn: #c2683b;
  --warn-bg: #f7e6dc;

  --f-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --f-mark: "Instrument Serif", Georgia, serif;

  --r-xs: 4px; --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 32px; --r-pill: 40px;
  --frame: 1200px;
  --gutter: 32px;
  --section: 128px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 16px;
  font-weight: 380;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, p, ul, dl, dd, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

.frame { max-width: var(--frame); margin: 0 auto; padding: 0 var(--gutter); position: relative; }

/* ---------- Type ---------- */
.display { font-size: clamp(40px, 5.4vw, 64px); font-weight: 460; line-height: 1.05; letter-spacing: -0.01em; }
.h1 { font-size: clamp(32px, 3.6vw, 44px); font-weight: 460; line-height: 1.12; letter-spacing: 0.002em; }
.h2 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 470; line-height: 1.2; letter-spacing: 0.01em; }
.lead { font-size: clamp(18px, 1.6vw, 21px); font-weight: 360; line-height: 1.5; color: var(--ink-2); }
.body-lg { font-size: 18px; font-weight: 360; line-height: 1.5; color: var(--ink-2); }
.kicker { font-size: 18px; font-weight: 380; color: var(--ink-2); margin-bottom: 14px; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 18px; color: var(--ink-2); margin-bottom: 20px; }
.eyebrow-caps { font-size: 13px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.sq { width: 9px; height: 9px; background: var(--primary); display: inline-block; }
.mono { font-family: var(--f-mono); font-size: 13px; letter-spacing: .02em; color: var(--ink-2); }
.mono-caps { font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.mono-xs { font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; color: var(--slate); }
.mono-xxs { font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); }
.accent { color: var(--primary); }

/* ---------- Wordmark ---------- */
.wordmark { font-family: var(--f-mark); font-size: 34px; line-height: 1; letter-spacing: -0.02em; color: var(--ink); white-space: nowrap; }
.wordmark span { font-style: italic; color: var(--primary); margin: 0 .04em; }
.wordmark-sm { font-size: 26px; }
.wordmark-lg { font-size: 44px; margin-bottom: 18px; }

/* ---------- Buttons (Mercury pills) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 22px; border-radius: var(--r-pill);
  font-size: 16px; font-weight: 440; line-height: 1; white-space: nowrap;
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 6px 18px -8px rgba(82,102,235,.7); }
.btn-primary:hover { background: var(--primary-hover); box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 10px 24px -8px rgba(82,102,235,.8); }
.btn-tint { background: rgba(82,102,235,.1); color: var(--ink); }
.btn-tint:hover { background: rgba(82,102,235,.17); }
.btn-outline { background: rgba(112,115,147,.08); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(112,115,147,.22); }
.btn-outline:hover { background: rgba(112,115,147,.14); }
.btn-ink { background: var(--ink); color: var(--on-dark); }
.btn-ink:hover { background: #1b1929; }
.btn-glass { background: rgba(255,255,255,.55); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(112,115,147,.22); backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255,255,255,.8); }
.btn-small { height: 32px; padding: 0 16px; font-size: 14px; background: rgba(82,102,235,.1); margin-top: 28px; }
.btn-small:hover { background: rgba(82,102,235,.17); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Announcement ---------- */
.announce {
  position: relative; background: var(--lavender); color: var(--ink);
  padding: 14px 56px; text-align: center; font-size: 16px;
}
.announce a { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(40,37,59,.35); }
.announce a:hover { text-decoration-color: var(--primary); color: var(--primary); }
.announce-sep { display: inline-block; width: 1px; height: 18px; background: rgba(40,37,59,.25); vertical-align: middle; margin: 0 16px; }
.announce-close { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; }
.announce-close:hover { background: rgba(82,102,235,.12); }
.announce.gone { display: none; }

/* ---------- Masthead + nav ---------- */
.masthead { border-bottom: 1px solid var(--rule); }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; min-height: 96px; }
.masthead-meta { display: flex; gap: 0; }
.masthead-meta > div { padding: 0 0 0 32px; min-width: 220px; }
.masthead-meta dt { font-size: 13px; color: var(--slate); margin-bottom: 6px; }
.masthead-meta dd { font-size: 16px; color: var(--ink-2); }

.nav { position: sticky; top: 0; z-index: 50; background: rgba(251,252,253,.94); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--rule); }
.nav-inner { display: flex; align-items: stretch; height: 72px; }
.nav .wordmark-sm { align-self: center; margin-right: 0; max-width: 0; opacity: 0; overflow: hidden; transition: max-width .45s var(--ease), opacity .3s, margin .45s var(--ease); }
.nav.stuck .wordmark-sm { max-width: 260px; opacity: 1; margin-right: 36px; }
.nav-links { position: relative; display: flex; align-items: center; gap: 4px; }
.nav-links a { font-size: 17px; color: var(--ink-2); padding: 0 12px; height: 100%; display: flex; align-items: center; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-ink { position: absolute; bottom: -1px; height: 2px; left: 0; width: 0; background: var(--primary); transition: transform .45s var(--ease), width .45s var(--ease); }
.nav-cells { margin-left: auto; display: flex; }
.nav-cell { display: flex; align-items: center; padding: 0 32px; min-width: 200px; border-left: 1px solid var(--rule); font-size: 17px; color: var(--ink-2); transition: background .2s, color .2s; }
.nav-cell:hover { background: var(--surface-tint); color: var(--ink); }
.nav-cell-cta { color: var(--primary); }
.nav-cell-cta::after { content: "→"; margin-left: 10px; transition: transform .25s var(--ease); }
.nav-cell-cta:hover::after { transform: translateX(4px); }
.nav-burger { display: none; margin-left: auto; width: 44px; height: 44px; align-self: center; position: relative; }
.nav-burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease); }
.nav-burger span:first-child { top: 18px; } .nav-burger span:last-child { top: 25px; }
.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.mobile-menu { padding: 8px 16px 24px; border-top: 1px solid var(--rule); display: flex; flex-direction: column; }
.mobile-menu[hidden] { display: none; }
.mobile-menu a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 18px; }
.mobile-menu .btn { margin-top: 18px; }

/* ---------- Editorial rails, corners, grid ---------- */
.rails { position: relative; }
.rails::before, .rails::after { content: ""; position: absolute; top: 0; bottom: 0; width: 1px; background: var(--rule); pointer-events: none; z-index: 1; }
.rails::before { left: max(8px, calc(50% - var(--frame)/2 - 24px)); }
.rails::after { right: max(8px, calc(50% - var(--frame)/2 - 24px)); }
.corner { position: absolute; width: 9px; height: 9px; border: 1px solid var(--rule-strong); background: var(--canvas); z-index: 2; top: -5px; }
.corner.tl { left: calc(max(8px, calc(50% - var(--frame)/2 - 24px)) - 4px); }
.corner.tr { right: calc(max(8px, calc(50% - var(--frame)/2 - 24px)) - 4px); }

.gridbg { position: relative; }
.gridbg::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--rule) 1px, transparent 1px), linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 72px 72px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 75% 55%, #000 0%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 80% at 75% 55%, #000 0%, transparent 75%);
  opacity: .9;
}
.gridbg-strong::before { -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }

.section { position: relative; padding: var(--section) 0; }
.section-ruled { border-top: 1px solid var(--rule); }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head .lead { margin-top: 18px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .btn { margin-top: 28px; }
.band { position: relative; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 56px 0 64px; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 96px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; min-height: 600px; }
.hero-copy .lead { margin: 22px 0 32px; max-width: 560px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--rule); }
.hero-facts li { font-size: 14px; color: var(--ink-2); display: flex; align-items: baseline; gap: 8px; }
.hero-facts span { font-family: var(--f-mono); font-size: 13px; color: var(--primary); }
.hero-visual { display: flex; flex-direction: column; align-items: center; perspective: 1200px; }
.plate-caption { margin-top: 28px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); }

/* The plate — a brushed "register" object (Mercury lavender + indigo) */
.plate {
  --rx: 0deg; --ry: 0deg;
  position: relative; width: 340px; aspect-ratio: 4 / 5.1; border-radius: 22px; padding: 18px;
  display: flex; flex-direction: column;
  background:
    repeating-linear-gradient(100deg, rgba(255,255,255,.0) 0 2px, rgba(255,255,255,.18) 2px 3px),
    linear-gradient(155deg, #f4f4fd 0%, #d9dbf5 38%, #eceefc 58%, #c9cdf0 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.9), inset 0 0 0 7px rgba(82,102,235,.05), inset 0 0 0 8px rgba(255,255,255,.7),
    0 1px 1px rgba(40,37,59,.06), 0 18px 30px -10px rgba(40,37,59,.18), 0 50px 90px -30px rgba(82,102,235,.45);
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform .6s var(--ease);
  animation: float 7s ease-in-out infinite;
  color: #5b5f8c;
}
@keyframes float { 0%,100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.plate-shine { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.65) 46%, transparent 60%); background-size: 250% 100%; animation: shine 6s ease-in-out infinite; mix-blend-mode: soft-light; }
@keyframes shine { 0% { background-position: 120% 0; } 60%,100% { background-position: -60% 0; } }
.plate-top, .plate-foot { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: .06em; text-shadow: 0 1px 0 rgba(255,255,255,.8); }
.plate-top { padding: 9px 12px; border-radius: 8px; box-shadow: inset 0 0 0 1.5px rgba(91,95,140,.35), 0 1px 0 rgba(255,255,255,.8); }
.plate-mark { flex: 1; display: grid; place-items: center; padding: 10px 0; }
.plate-mark svg { width: 46%; overflow: visible; filter: drop-shadow(0 1px 0 rgba(255,255,255,.9)); }
.pm-ring { fill: none; stroke: #6b70a3; stroke-width: 2.4; }
.pm-ring-2 { stroke-width: 1.2; stroke-dasharray: 3 5; animation: spin 40s linear infinite; transform-origin: 60px 60px; }
.pm-axis { stroke: #6b70a3; stroke-width: 1.2; }
.pm-core { fill: var(--primary); }
.pm-orbit { transform-origin: 60px 60px; animation: spin 9s linear infinite; }
.pm-orbit-2 { animation-duration: 15s; animation-direction: reverse; }
.pm-dot { fill: var(--primary); }
@keyframes spin { to { transform: rotate(360deg); } }
.plate-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(91,95,140,.22); border-radius: 8px; overflow: hidden; margin-bottom: 12px; }
.plate-stats > div { background: rgba(244,244,253,.75); padding: 9px 12px; display: flex; flex-direction: column; gap: 3px; }
.ps-label { font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.ps-val { font-size: 22px; font-weight: 480; color: var(--ink); font-variant-numeric: tabular-nums; }
.ps-val small { font-size: 13px; color: var(--slate); font-weight: 400; }
.ps-warn { color: var(--warn); }
.plate-foot { padding: 0 2px 8px; border-bottom: 2px solid rgba(91,95,140,.45); margin-bottom: 8px; }
.plate-title { font-family: var(--f-mono); font-weight: 500; font-size: 38px; letter-spacing: .16em; text-align: center; color: #8a8eb8; text-shadow: 0 1px 0 rgba(255,255,255,.9), 0 -1px 0 rgba(60,60,110,.25); }

/* ---------- Triggers strip ---------- */
.band-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.band-head .kicker { margin: 0; }
.pager { display: flex; gap: 4px; }
.pager i { width: 10px; height: 10px; background: var(--fog); transition: background .3s; }
.pager i.on { background: var(--ink); }
.triggers { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 24px) / 4); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.triggers::-webkit-scrollbar { display: none; }
.trigger { scroll-snap-align: start; padding: 4px 0; }
.trigger-ico { width: 72px; height: 72px; border-radius: var(--r-md); background: var(--lavender); display: grid; place-items: center; margin-bottom: 18px; transition: background .3s, transform .4s var(--ease); }
.trigger:hover .trigger-ico { background: var(--lavender-2); transform: translateY(-3px); }
.trigger-ico svg { width: 40px; height: 40px; fill: none; stroke: var(--ink-2); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.trigger-ico .fill { fill: var(--primary); stroke: none; }
.trigger-ico .inv { stroke: #fff; stroke-width: 1.6; }
.trigger .mono { font-size: 12px; margin-bottom: 6px; }
.trigger h3 { font-size: 19px; font-weight: 470; margin-bottom: 6px; }
.trigger p:last-child { font-size: 15px; color: var(--ink-2); line-height: 1.45; }

/* ---------- Labels (tab-like markers) ---------- */
.labels, .tabs { display: flex; flex-wrap: wrap; gap: 28px; }
.label-item, .tab { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; color: var(--ink-2); transition: color .2s; }
.label-item i, .tab i { width: 10px; height: 10px; border: 1px solid var(--fog); transition: background .3s, border-color .3s; }
.label-item.active, .tab.active, .tab:hover { color: var(--ink); }
.label-item.active i, .tab.active i { background: var(--primary); border-color: var(--primary); }

/* ---------- Showcase (dark register mockup) ---------- */
.showcase { margin-top: 32px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--surface); position: relative; }
.showcase::after { content: ""; position: absolute; left: 0; width: 22%; top: -1px; height: 2px; background: var(--primary); }
.showcase-inner { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; padding-top: 40px; padding-bottom: 40px; align-items: stretch; }
.mock {
  border-radius: var(--r-md); overflow: hidden; background: var(--night); color: var(--on-dark);
  box-shadow: 0 30px 60px -30px rgba(23,23,33,.5), 0 0 0 1px rgba(23,23,33,.04);
  position: relative;
}
.mock::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(600px 220px at 85% -10%, rgba(82,102,235,.35), transparent 70%); }
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--night-line); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a3a4c; }
.mock-bar span { margin-left: 10px; font-family: var(--f-mono); font-size: 11px; color: var(--slate); }
.mock-body { display: grid; grid-template-columns: 196px 1fr; min-height: 380px; }
.mock-side { border-right: 1px solid var(--night-line); padding: 16px 0; }
.mock-eyebrow { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--fog); padding: 0 16px 12px; }
.mock-eyebrow b { color: var(--on-dark); font-weight: 500; margin-left: 4px; }
.ms-item { display: grid; grid-template-columns: 12px 1fr auto; gap: 10px; align-items: start; padding: 11px 16px; font-size: 13px; transition: background .3s; }
.ms-item.hl { background: var(--night-raised); }
.ms-item b { display: block; font-weight: 450; color: var(--on-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-item small { color: var(--slate); font-size: 12px; }
.ms-item em { font-style: normal; color: var(--slate); font-size: 11px; font-family: var(--f-mono); }
.ms-dot { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--periwinkle); margin-top: 5px; }
.ms-dot.warn { background: #e0895d; border-color: #e0895d; box-shadow: 0 0 0 0 rgba(224,137,93,.6); animation: ping 2.4s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(224,137,93,.55); } 80%,100% { box-shadow: 0 0 0 7px rgba(224,137,93,0); } }
.mock-main { padding: 16px 20px; display: flex; flex-direction: column; min-width: 0; }
.mock-main-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.mock-main-head p { font-size: 14px; color: var(--on-dark); }
.mock-main-head p:first-child span { color: var(--slate); margin-left: 4px; font-family: var(--f-mono); font-size: 12px; }
.mock-total { font-size: 24px !important; font-weight: 460; font-variant-numeric: tabular-nums; }
.mock-total small { font-size: 12px; color: var(--slate); font-weight: 400; }
.reg { width: 100%; border-collapse: collapse; font-size: 12px; }
.section-tight-bottom { padding-bottom: 0; }
.section-tight-bottom .showcase { border-bottom: 0; }
.reg th { font-family: var(--f-mono); font-weight: 400; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--night-line); }
.reg td { padding: 10px 5px; border-bottom: 1px solid var(--night-line); color: #cfd0dc; white-space: nowrap; }
.reg td:first-child { color: var(--on-dark); font-family: var(--f-mono); font-size: 11.5px; }
.reg .num { text-align: right; font-variant-numeric: tabular-nums; }
.reg tbody tr { transition: background .4s; }
.reg tbody tr.hl { background: rgba(82,102,235,.16); }
.tag-warn { font-family: var(--f-mono); font-size: 10.5px; color: #f0a37d; background: rgba(224,137,93,.14); padding: 2px 7px; border-radius: 4px; }
.mock-note { margin-top: auto; padding-top: 12px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #4b4b5e; }

.showcase-copy { display: flex; flex-direction: column; padding: 8px 0; }
.showcase-copy .sub { color: var(--ink-2); font-size: 18px; margin: 14px 0 22px; }
.quote { font-size: clamp(20px, 1.9vw, 24px); font-weight: 420; line-height: 1.35; text-indent: -.45em; max-width: 460px; }
.cite { margin-top: 12px; font-size: 12.5px; }
.ticks { margin: 28px 0 32px; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: baseline; color: var(--ink-2); }
.ticks li::before { content: ""; width: 8px; height: 8px; background: var(--primary); flex: none; translate: 0 -1px; }
.showcase-copy .btn { align-self: flex-start; margin-top: auto; }

/* ---------- Controls (radial + accordion) ---------- */
.controls { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.fig { position: sticky; top: 104px; border: 1px solid var(--rule-strong); padding: 6px; background: var(--surface); border-radius: 2px; }
.fig-head { border: 1px solid var(--rule); border-bottom: 0; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.fig-head .mono { font-size: 11px; color: var(--slate); }
.fig-body { border: 1px solid var(--rule); background: var(--surface-tint); position: relative; }
.radial { width: 100%; height: auto; }
.rg-grid { stroke: #ececf3; stroke-width: 1; }
.rg-orbit { fill: none; stroke: #d9d9e6; stroke-width: 1; }
.rg-orbit-2 { stroke-dasharray: 2 4; }
.rg-pulse { fill: var(--primary); opacity: .8; }
.rg-center { fill: #fff; stroke: var(--ink); stroke-width: 1; }
.rg-center-in { fill: #fff; stroke: var(--ink); stroke-width: .6; }
.rg-word { font-family: var(--f-mark); font-size: 26px; text-anchor: middle; fill: var(--ink); }
.rg-sub { font-family: var(--f-mono); font-size: 9px; letter-spacing: .2em; text-anchor: middle; fill: var(--slate); }
.rg-node { cursor: pointer; }
.rg-node circle { fill: #fff; stroke: var(--rule-strong); stroke-width: 1; transition: fill .3s, stroke .3s; }
.rg-node text { font-family: var(--f-mono); font-size: 12px; text-anchor: middle; fill: var(--ink); }
.rg-node .rg-lab { font-size: 10.5px; letter-spacing: .12em; fill: var(--slate); transition: fill .3s; }
.rg-node.on circle, .rg-node:hover circle { fill: var(--lavender-2); stroke: var(--primary); }
.rg-node.on .rg-lab { fill: var(--ink); }
.fig-ref { position: absolute; left: 50%; bottom: 0; translate: -50% 0; border: 1px solid var(--rule); border-bottom: 0; background: #fff; padding: 8px 22px; }
.fig-ref::before { content: ""; position: absolute; left: 50%; bottom: 100%; width: 1px; height: 34px; background: var(--primary); }
.fig-ref .mono-caps { font-size: 10px; }
.fig-foot { border: 1px solid var(--rule); border-top: 0; padding: 12px; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 18px; font-size: 10.5px; color: var(--ink-2); }

.controls-copy .lead { margin: 18px 0 40px; }
.acc-item { border-bottom: 1px solid var(--rule-strong); }
.acc-btn { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 24px 0; text-align: left; font-size: 24px; font-weight: 450; letter-spacing: .005em; }
.acc-btn i { font-style: normal; width: 36px; height: 36px; display: grid; place-items: center; background: var(--ink); color: #fff; font-size: 14px; border-radius: 2px; transition: background .3s, transform .4s var(--ease); flex: none; }
.acc-item.open .acc-btn i { background: var(--primary); transform: rotate(90deg); }
.acc-btn:hover i { background: var(--primary); }
.acc-panel > p { color: var(--ink-2); font-size: 17px; line-height: 1.55; max-width: 560px; }
.acc-panel { display: block; max-height: 0; overflow: hidden; transition: max-height .5s var(--ease); }
.acc-item.open .acc-panel { max-height: 320px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 26px; }
.chips span { font-family: var(--f-mono); font-size: 12px; padding: 5px 10px; background: var(--lavender); color: var(--ink-2); border-radius: 4px; }

/* ---------- Use cases / graph ---------- */
.tabs-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-bottom: 28px; }
.graph-stage { border-top: 1px solid var(--rule); padding: 120px 0 80px; overflow: hidden; }
.hexmark { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 4px; z-index: 1; animation: drift 9s ease-in-out infinite; }
.hexmark b { width: 22px; height: 24px; background: var(--ink); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); position: relative; }
.hexmark b::after { content: ""; position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px; border-radius: 50%; background: #fff; }
.hexmark small { font-family: var(--f-mono); font-size: 10px; color: var(--slate); }
@keyframes drift { 0%,100% { translate: 0 0; } 50% { translate: 8px -6px; } }
.gpanel { position: relative; z-index: 2; max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: 1fr 340px; grid-template-rows: auto 1fr; background: var(--surface); border: 1px solid var(--rule-strong); box-shadow: 0 30px 80px -40px rgba(40,37,59,.35); }
.gpanel-head { padding: 18px 22px; border-bottom: 1px solid var(--rule-strong); border-right: 1px solid var(--rule-strong); }
.gpanel-head .mono-caps { font-size: 14px; }
.gpanel-side-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--rule-strong); color: var(--ink); }
.gpanel-side-head .mono-caps { font-size: 13px; }
.pill-flag { margin-left: auto; font-family: var(--f-mono); font-size: 12px; padding: 4px 8px; background: var(--warn-bg); color: var(--warn); transition: background .3s, color .3s; white-space: nowrap; }
.pill-flag.ok { background: var(--lavender); color: var(--primary); }
.gpanel-canvas { position: relative; border-right: 1px solid var(--rule-strong); background: radial-gradient(ellipse at 50% 50%, #f1f1fd 0%, #e6e7fa 60%, #dfe0f7 100%); min-height: 340px; display: grid; place-items: center; padding: 24px; }
.gpanel-side { padding: 18px 20px 24px; position: relative; }
.gpanel-side::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: repeating-linear-gradient(-45deg, var(--lavender-2) 0 2px, transparent 2px 5px); }
.ctl-group { font-size: 13px; color: var(--slate); margin: 14px 0 8px; }
.ctl { font-family: var(--f-mono); font-size: 12.5px; padding: 6px 8px; margin-bottom: 6px; background: var(--warn-bg); color: var(--warn); display: flex; align-items: center; gap: 8px; transition: background .4s, color .4s; }
.ctl::before { content: "✕"; font-size: 10px; }
.ctl.ok { background: var(--lavender); color: var(--ink); }
.ctl.ok::before { content: "✓"; color: var(--primary); }
.gsvg { width: 100%; height: auto; }
.g-link { fill: none; stroke: #a9acd6; stroke-width: 1.4; stroke-dasharray: 5 5; animation: dash 1.4s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -20; } }
.g-box rect { fill: rgba(255,255,255,.85); stroke: #c4c6e6; }
.g-box text { font-family: var(--f-mono); font-size: 12px; text-anchor: middle; fill: var(--ink-2); }
.g-core rect { fill: #fff; stroke: var(--primary); }
.g-diamond { fill: none; stroke: var(--primary); stroke-width: 1.4; transform-origin: 50px 50px; animation: spin 18s linear infinite; }
.g-dot { fill: var(--ink); }
.g-owner rect { fill: var(--warn-bg); stroke: #e7b79c; transition: fill .4s, stroke .4s; }
.g-owner text { fill: var(--warn); }
.g-owner.ok rect { fill: var(--lavender); stroke: var(--periwinkle); }
.g-owner.ok text { fill: var(--primary); }
.g-cap { font-family: var(--f-sans); font-size: 13px; text-anchor: middle; fill: var(--ink-2); }
.gpanel.swap .gsvg, .gpanel.swap .gpanel-side { opacity: 0; transform: translateY(6px); }
.gsvg, .gpanel-side { transition: opacity .35s, transform .35s var(--ease); }

/* ---------- Process ---------- */
.stepper { position: relative; display: grid; grid-template-columns: repeat(4, 1fr) auto; align-items: end; gap: 0; margin-bottom: 64px; }
.stepper-track { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--rule-strong); }
.stepper-fill { position: absolute; left: 0; top: 0; height: 2px; width: 0; background: var(--primary); transition: width .6s var(--ease); translate: 0 -.5px; }
.step { text-align: left; padding-bottom: 22px; position: relative; font-family: var(--f-mono); font-size: 14px; letter-spacing: .04em; color: var(--slate); transition: color .3s; }
.step span { display: block; }
.step i { position: absolute; left: 4px; bottom: -6px; width: 12px; height: 12px; background: var(--canvas); border: 1px solid var(--fog); transition: background .3s, border-color .3s; z-index: 1; }
.step.done i, .step.active i { background: var(--primary); border-color: var(--primary); }
.step.active, .step:hover { color: var(--ink); }
.stepper-cta { margin-bottom: 14px; }
.process { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.schematic { border: 1px solid var(--rule-strong); background: #f4f4f8; padding: 6px; }
.schem-head { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--rule); background: var(--surface-tint); }
.schem-head > div { padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.schem-head > div + div { border-left: 1px solid var(--rule); }
.schem-head .mono-caps { font-size: 11px; }
.schem-body { position: relative; border: 1px solid var(--rule); border-top: 0; padding: 48px 20px 20px 48px; background: var(--surface-tint); }
.schem-tag { position: absolute; top: 14px; left: 48px; background: #ebebf2; padding: 3px 8px; font-size: 10.5px; color: var(--ink-2); }
.schem-yaxis { position: absolute; left: 14px; top: 50%; transform: translateY(-50%) rotate(-90deg); background: #ebebf2; padding: 3px 8px; font-size: 10.5px; color: var(--ink-2); }
.heat { display: grid; grid-template-columns: repeat(16, 1fr); gap: 5px; }
.heat i { aspect-ratio: 1; background: #d9d9e3; transition: background .5s var(--ease), transform .5s var(--ease); }
.heat i.l1 { background: #c6c8e8; }
.heat i.l2 { background: var(--periwinkle); }
.heat i.l3 { background: var(--primary); }
.heat i.hot { background: #eab49a; }
.heat i.off { background: #ececf2; }
.schem-legend { margin-top: 18px; display: flex; align-items: center; gap: 6px; }
.schem-legend i { display: inline-block; width: 10px; height: 10px; background: #d9d9e3; }
.schem-legend i.hot { background: #eab49a; }
.process-copy { position: relative; min-height: 360px; }
.pstep { position: absolute; inset: 0 0 auto 0; opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity .45s, transform .55s var(--ease); padding-top: 32px; }
.pstep.active { position: relative; opacity: 1; pointer-events: auto; transform: none; }
.pstep .body-lg { margin: 16px 0 26px; max-width: 520px; color: var(--ink); }
.sq-list { display: grid; gap: 14px; }
.sq-list li { display: flex; gap: 14px; align-items: center; }
.sq-list li::before { content: ""; width: 9px; height: 9px; background: var(--fog); flex: none; }
.sq-list li:first-child::before { background: var(--primary); }
.mono-list li { font-family: var(--f-mono); font-size: 14px; color: var(--ink-2); letter-spacing: .02em; }

/* ---------- Trust / crosswalk ---------- */
.center { text-align: center; }
.cross { position: relative; display: grid; grid-template-columns: 280px 1fr; align-items: center; gap: 0; margin-top: 64px; min-height: 380px; }
.plate-sm { width: 240px; animation-duration: 8s; justify-self: center; }
.plate-sm .plate-title { font-size: 26px; }
.cross-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.cl { fill: none; stroke: var(--primary); stroke-width: 1.2; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s var(--ease); opacity: .7; }
.cross.in .cl { stroke-dashoffset: 0; }
.providers { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; align-self: end; padding-bottom: 10px; padding-left: 40px; }
.providers li { display: flex; flex-direction: column; align-items: center; gap: 14px; position: relative; opacity: 0; transform: translateY(14px); transition: opacity .6s, transform .7s var(--ease); }
.providers li::before { content: ""; position: absolute; top: -34px; width: 9px; height: 9px; border: 1px solid var(--primary); background: var(--canvas); }
.cross.in .providers li { opacity: 1; transform: none; }
.cross.in .providers li:nth-child(2) { transition-delay: .12s; }
.cross.in .providers li:nth-child(3) { transition-delay: .24s; }
.cross.in .providers li:nth-child(4) { transition-delay: .36s; }
.cross.in .providers li:nth-child(5) { transition-delay: .48s; }
.pv { width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #8c8fa8, #5c5f78 70%); box-shadow: inset 0 0 0 6px rgba(255,255,255,.12), 0 14px 30px -14px rgba(40,37,59,.5); transition: transform .4s var(--ease), background .4s; }
.providers li:hover .pv { transform: translateY(-4px); background: radial-gradient(circle at 35% 30%, #8e9cf5, var(--primary) 70%); }
.pv svg { width: 60%; fill: none; }
.pv circle { stroke: rgba(255,255,255,.25); stroke-width: 1.5; }
.pv .o { stroke: #fff; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }

/* ---------- Pricing (Mercury pricing card) ---------- */
.pricing { max-width: 1080px; margin: 0 auto; background: var(--surface-tint); border-radius: var(--r-md); box-shadow: 0 1px 2px rgba(40,37,59,.04), 0 12px 40px -18px rgba(40,37,59,.16); padding: 8px; border: 1px solid var(--rule); }
.pricing-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px 18px; }
.pricing-note { font-size: 14px; color: var(--slate); }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tier { position: relative; background: var(--surface); border-radius: var(--r-sm); padding: 32px 28px; display: flex; flex-direction: column; text-align: left; border: 1px solid var(--rule); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.tier:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(40,37,59,.25); }
.tier-featured { background: var(--night); color: var(--on-dark); border-color: var(--night); }
.tier-featured::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(420px 220px at 80% 0%, rgba(82,102,235,.4), transparent 70%); }
.tier-featured .accent { color: var(--periwinkle); }
.tier-featured .tier-desc, .tier-featured .feat li { color: var(--fog); }
.tier-featured .price small { color: var(--fog); }
.tier-badge { position: absolute; top: -12px; left: 50%; translate: -50% 0; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 5px 12px; border-radius: var(--r-pill); background: var(--primary); color: var(--on-primary); white-space: nowrap; z-index: 1; }
.price { font-size: 40px; font-weight: 460; margin: 18px 0 10px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.price small { font-size: 15px; font-weight: 380; color: var(--slate); letter-spacing: 0; }
.tier-desc { color: var(--ink-2); font-size: 15.5px; line-height: 1.5; min-height: 140px; }
.tier .btn { margin: 24px 0 26px; width: 100%; }
.tier-featured .btn-primary { box-shadow: 0 10px 30px -10px rgba(82,102,235,.9); }
.feat { display: grid; gap: 12px; border-top: 1px solid var(--rule); padding-top: 22px; position: relative; }
.tier-featured .feat { border-color: var(--night-line); }
.feat li { display: flex; gap: 10px; font-size: 14.5px; color: var(--ink-2); line-height: 1.4; }
.feat li::before { content: "✓"; color: var(--primary); font-size: 13px; flex: none; translate: 0 1px; }
.tier-featured .feat li::before { color: var(--periwinkle); }
.feat b { font-weight: 500; color: var(--ink); }

/* ---------- Teams (wordmark strip) ---------- */
.logos { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule-strong); }
.logos li { display: grid; place-items: center; height: 140px; border-left: 1px solid var(--rule); position: relative; transition: background .3s; }
.logos li:first-child { border-left: 0; }
.logos li::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -1px; height: 2px; background: var(--primary); transition: right .5s var(--ease); }
.logos li:hover { background: var(--surface); }
.logos li:hover::after { right: 0; }
.lg { color: #8a8a99; font-size: 26px; line-height: 1; white-space: nowrap; transition: color .3s; }
.logos li:hover .lg { color: var(--ink); }
.lg-povio { font-weight: 600; letter-spacing: -.04em; font-size: 34px; }
.lg-renoto { font-weight: 450; letter-spacing: -.02em; }
.lg-renoto b { font-weight: 300; margin-left: 4px; font-size: .8em; }
.lg-beksson { font-family: var(--f-mono); font-weight: 500; letter-spacing: .14em; font-size: 22px; }
.lg-rewo { font-family: var(--f-mark); font-size: 38px; letter-spacing: .04em; }
.lg-povio b { font-weight: 400; font-size: .5em; letter-spacing: .06em; margin-left: 5px; text-transform: uppercase; }
.lg-rwa { font-weight: 650; letter-spacing: -.02em; }
.lg-rwa b { font-weight: 350; }
.lg-veritas { font-family: var(--f-mark); font-size: 30px; letter-spacing: .18em; }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.5fr; gap: 72px; }
.faq details { border-bottom: 1px solid var(--rule-strong); }
.faq details:first-child { border-top: 1px solid var(--rule-strong); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; font-size: 18px; font-weight: 440; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 10px; height: 10px; border-right: 1.4px solid var(--ink-2); border-bottom: 1.4px solid var(--ink-2); transform: rotate(45deg) translate(-3px, -3px); transition: transform .35s var(--ease); flex: none; }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq details p { color: var(--ink-2); font-size: 16.5px; line-height: 1.6; padding: 0 40px 24px 0; animation: fadein .4s var(--ease); }
@keyframes fadein { from { opacity: 0; transform: translateY(-4px); } }

/* ---------- CTA ---------- */
.cta { position: relative; border-top: 1px solid var(--rule); overflow: hidden; min-height: 680px; padding: 120px 0 0; }
.cta-inner { position: relative; z-index: 2; }
.cta .h1 { max-width: 640px; }
.cta .lead { margin: 18px 0 32px; max-width: 520px; }
.cta-mail { margin-top: 22px; font-size: 13px; }
.cta-mail a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.cta-glow { position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, var(--canvas) 0%, var(--canvas) 30%, #f1f2fd 60%, #e2e5fb 100%); }
.cta-glow i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .75; }
.cta-glow i:nth-child(1) { width: 70%; height: 70%; left: 20%; bottom: -35%; background: #9aa8f3; animation: glow1 16s ease-in-out infinite; }
.cta-glow i:nth-child(2) { width: 45%; height: 55%; left: -5%; bottom: -25%; background: #c3cdf6; animation: glow2 20s ease-in-out infinite; }
.cta-glow i:nth-child(3) { width: 40%; height: 50%; right: -8%; bottom: -15%; background: #b6b0f2; animation: glow3 18s ease-in-out infinite; }
@keyframes glow1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-6%, -8%) scale(1.08); } }
@keyframes glow2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(10%, -6%); } }
@keyframes glow3 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-12%, -10%); } }

/* ---------- Footer (Mercury night) ---------- */
.footer { background: var(--night); color: var(--on-dark); padding: 72px 0 40px; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; }
.footer-big { font-family: var(--f-mono); font-weight: 400; font-size: clamp(24px, 3vw, 40px); letter-spacing: .08em; text-transform: uppercase; color: #8e8ea3; line-height: 1.1; }
.footer-loc { display: flex; align-items: center; gap: 32px; margin-top: 32px; color: var(--fog); flex-wrap: wrap; }
.footer-loc .mono-caps { color: var(--on-dark); font-size: 14px; }
.footer-loc .mono-xs { color: var(--fog); margin-top: 4px; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.footer-cols > div { display: flex; flex-direction: column; gap: 14px; }
.footer-h { font-family: var(--f-mono); font-size: 13px; color: var(--slate); margin-bottom: 6px; }
.footer-cols a { font-family: var(--f-mono); font-size: 14px; color: var(--on-dark); transition: color .2s; }
.footer-cols a:hover { color: var(--periwinkle); }
.footer-bar { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--frame) - 2 * var(--gutter)); margin: 56px auto 0; padding: 24px 0 0; border-top: 1px solid var(--night-line); }
.footer-bar p { font-family: var(--f-mono); font-size: 12.5px; color: var(--slate); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .reg th:nth-child(2), .reg td:nth-child(2) { display: none; }
  .nav-cell { min-width: 0; padding: 0 22px; }
  .masthead-meta > div { min-width: 0; }
  .triggers { grid-auto-columns: calc((100% - 2 * 24px) / 3); }
  .gpanel { grid-template-columns: 1fr 290px; }
}
@media (max-width: 960px) {
  :root { --section: 96px; --gutter: 24px; }
  .nav-links, .nav-cells { display: none; }
  .nav-burger { display: block; }
  .nav .wordmark-sm { max-width: 260px; opacity: 1; }
  .masthead-meta { display: none; }
  .logos { grid-template-columns: repeat(3, 1fr); }
  .logos li:nth-child(4) { border-left: 0; }
  .logos li:nth-child(n+4) { border-top: 1px solid var(--rule); }
  .hero-inner, .showcase-inner, .controls, .process, .faq-wrap, .footer-inner { grid-template-columns: 1fr; }
  .hero-inner { min-height: 0; gap: 64px; }
  .fig { position: relative; top: 0; max-width: 520px; }
  .controls { gap: 48px; }
  .cross { grid-template-columns: 1fr; gap: 56px; }
  .cross-lines { display: none; }
  .providers { padding-left: 0; }
  .providers li::before { display: none; }
  .gpanel { grid-template-columns: 1fr; }
  .gpanel-head, .gpanel-canvas { border-right: 0; }
  .gpanel-side-head { border-top: 1px solid var(--rule-strong); grid-row: 3; }
  .gpanel-side { grid-row: 4; }
  .tier-desc { min-height: 0; }
  .tiers { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; --section: 80px; }
  .announce { padding: 12px 48px 12px 16px; font-size: 14px; text-align: left; }
  .announce-sep { display: none; }
  .announce a { display: inline-block; }
  .masthead-inner { min-height: 72px; }
  .wordmark { font-size: 26px; }
  .masthead { display: none; }
  .hero { padding: 48px 0 72px; }
  .hero-facts { gap: 10px 20px; margin-top: 36px; }
  .plate { width: min(300px, 82vw); }
  .triggers { grid-auto-columns: 78%; }
  .mock-body { grid-template-columns: 1fr; }
  .mock-side { border-right: 0; border-bottom: 1px solid var(--night-line); }
  .reg th:nth-child(2), .reg td:nth-child(2), .reg th:nth-child(3), .reg td:nth-child(3) { display: none; }
  .labels, .tabs { gap: 16px; }
  .label-item, .tab { font-size: 16px; }
  .graph-stage { padding: 56px 0 48px; }
  .hexmark { display: none; }
  .gpanel-canvas { min-height: 0; padding: 12px; }
  .stepper { grid-template-columns: repeat(4, 1fr); }
  .stepper-cta { display: none; }
  .step { font-size: 11px; letter-spacing: 0; }
  .providers { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
  .pv { width: 80px; height: 80px; }
  .logos { grid-template-columns: repeat(2, 1fr); }
  .logos li { height: 104px; border-left: 1px solid var(--rule) !important; border-top: 1px solid var(--rule); }
  .logos li:nth-child(odd) { border-left: 0 !important; }
  .logos li:nth-child(-n+2) { border-top: 0; }
  .lg { font-size: 24px; }
  .acc-btn { font-size: 20px; }
  .cta { min-height: 560px; padding-top: 80px; }
  .wordmark-lg { font-size: 34px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .heat { gap: 3px; }
  .schem-body { padding: 44px 12px 14px 40px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
