:root {
  color-scheme: light;
  --canvas: #fff;
  --wash: #f5f6f8;
  --wash-strong: #eceef2;
  --ink: #111318;
  --body: #414750;
  --muted: #656d78;
  --line: #d9dde3;
  --line-dark: #bcc2ca;
  --blue: #287df2;
  --mint: #48c993;
  --amber: #f4b93f;
  --focus: #006ee6;
  --device: #26292e;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --page: min(1180px, calc(100% - 48px));
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--canvas); overflow-x: hidden; }
body { margin: 0; background: var(--canvas); color: var(--ink); line-height: 1.55; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
section[tabindex="-1"]:focus { outline: none; }
h1, h2, h3, p { text-wrap: pretty; }
h1, h2 { text-wrap: balance; }

.skip { position: fixed; z-index: 30; top: 12px; left: 12px; padding: 12px 16px; background: var(--ink); color: #fff; border-radius: 8px; transform: translateY(-160%); }
.skip:focus { transform: none; }
.topbar, main, footer { width: var(--page); margin-inline: auto; }

.topbar { height: 76px; display: flex; align-items: center; gap: clamp(20px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 760; letter-spacing: -.025em; text-decoration: none; }
.brand i { width: 8px; height: 28px; display: block; border-radius: 3px; background: linear-gradient(to top, var(--blue) 0 64%, #d5d9df 64%); }
nav { display: flex; gap: 28px; margin-right: auto; }
nav a { color: var(--muted); font-size: .86rem; font-weight: 600; text-decoration: none; transition: color .18s; }
nav a:hover { color: var(--ink); }
.mini-cta, .button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 18px; border-radius: 8px; background: var(--ink); color: #fff; font-size: .85rem; font-weight: 750; text-decoration: none; transition: background .2s, transform .2s var(--ease); }
.mini-cta:hover, .button:hover { background: #2d3036; transform: translateY(-1px); }
.mini-cta:active, .button:active { transform: translateY(0); }
[aria-disabled="true"] { cursor: not-allowed; opacity: .55; }

.hero { min-height: 680px; display: grid; grid-template-columns: minmax(0, .86fr) minmax(480px, 1.14fr); align-items: center; gap: clamp(44px, 7vw, 92px); padding: clamp(72px, 9vw, 116px) 0; }
.hero-copy { position: relative; z-index: 1; }
.status, .section-label { margin: 0 0 18px; color: var(--muted); font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.status { display: flex; align-items: center; gap: 10px; }
.status span { width: 9px; height: 9px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 5px rgba(72, 201, 147, .12); }
h1 { max-width: 10ch; margin: 0; font-size: clamp(3.3rem, 6vw, 5.1rem); line-height: .98; letter-spacing: -.04em; }
.hero-lede { max-width: 52ch; margin: 26px 0 30px; color: var(--body); font-size: clamp(1.04rem, 1.45vw, 1.2rem); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; }
.marketplace { min-width: min(100%, 352px); min-height: 70px; display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; background: #090a0c; color: #fff; text-decoration: none; transition: transform .24s var(--ease), background .2s; }
.marketplace:hover { background: #25272c; transform: translateY(-2px); }
.marketplace:active { transform: translateY(0); }
.market-icon { width: 44px; height: 44px; display: grid; grid-template-columns: repeat(2, 9px); grid-template-rows: repeat(2, 9px); place-content: center; gap: 3px; border-radius: 8px; background: #fff; }
.market-icon i { display: block; border-radius: 2px; background: #111318; }
.marketplace > span:nth-child(2) { display: flex; flex-direction: column; margin-right: auto; }
.marketplace small { color: #c9cdd3; font-size: .65rem; line-height: 1.15; }
.marketplace strong { font-size: .98rem; letter-spacing: -.01em; }
.marketplace b { padding-left: 12px; border-left: 1px solid #41444b; font-size: 1rem; }
.text-link { min-height: 44px; display: inline-flex; align-items: center; gap: 7px; color: var(--ink); font-weight: 700; text-underline-offset: 5px; }
.fineprint { margin: 14px 0 0; color: var(--muted); font-size: .76rem; }

.product-stage { min-width: 0; margin: 0; }
.device { position: relative; width: 100%; max-width: 650px; margin-inline: auto; animation: device-in .8s var(--ease) both; }
.device-shell { width: 100%; height: auto; display: block; }
.device-screen { position: absolute; inset: 21.95% 11.95% 18.1%; display: grid; grid-template-columns: repeat(5, 1fr); grid-template-rows: repeat(3, 1fr); column-gap: 2.95%; row-gap: 5.05%; }
.device-screen span { min-width: 0; min-height: 0; margin: 4.4%; display: block; overflow: hidden; border-radius: 15%; background: #090b0e; }
.device-screen img { width: 100%; height: 100%; display: block; border-radius: 15%; object-fit: cover; }
.product-stage figcaption { margin: 25px auto 0; color: var(--muted); font-size: .74rem; text-align: center; }
@keyframes device-in { from { opacity: .35; transform: translateY(18px) scale(.985); } }

.outcome-strip { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.outcome-strip article { min-height: 112px; display: flex; align-items: center; gap: 17px; padding: 24px clamp(16px, 3vw, 34px); }
.outcome-strip article + article { border-left: 1px solid var(--line); }
.outcome-dot { width: 12px; height: 40px; flex: 0 0 auto; border-radius: 6px; background: var(--blue); }
.outcome-dot.amber { background: var(--amber); }
.outcome-dot.mint { background: var(--mint); }
.outcome-strip h2 { margin: 0; font-size: 1rem; letter-spacing: -.015em; }
.outcome-strip p { margin: 2px 0 0; color: var(--muted); font-size: .85rem; }

.product-keys, .dictation, .setup, .value, .technical, .signals, .faq { padding: clamp(82px, 10vw, 132px) 0; }
.section-heading { max-width: 760px; margin-bottom: clamp(46px, 6vw, 76px); }
.section-heading h2, .agent-intro h2, .value h2, .technical h2, .signals h2, .faq h2, .troubleshooting h2 { margin: 0; font-size: clamp(2.35rem, 4.5vw, 4rem); line-height: 1.02; letter-spacing: -.04em; }
.section-heading > p:last-child, .agent-intro > p:last-child, .technical > div:first-child > p:last-child, .signals > div > p { max-width: 64ch; color: var(--body); }
.target-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; gap: 16px; margin: 0 0 48px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--wash); }
.target-flow article { display: grid; grid-template-columns: 38px 1fr; gap: 13px; padding: 14px; border-radius: 12px; background: #fff; }
.target-flow article b { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; font-size: .78rem; }
.target-flow article div { display: flex; flex-direction: column; }
.target-flow article strong { margin-bottom: 4px; font-size: .92rem; }
.target-flow article span { color: var(--muted); font-size: .78rem; }
.target-flow > i { align-self: center; color: var(--blue); font-style: normal; font-size: 1.35rem; }
.key-showcase { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.key-showcase article { min-width: 0; padding: 28px 24px 30px; border-bottom: 1px solid var(--line); }
.key-showcase article + article { border-left: 1px solid var(--line); }
.key-showcase article:nth-child(4n + 1) { border-left: 0; }
.key-showcase img { width: 84px; height: 84px; display: block; margin-bottom: 28px; border-radius: 18px; background: #0d1014; box-shadow: 0 4px 7px rgba(12, 15, 20, .22); object-fit: cover; }
.key-showcase h3 { margin: 0 0 8px; font-size: 1.25rem; }
.key-showcase p { margin: 0; color: var(--body); font-size: .92rem; }

.dictation { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, .9fr) minmax(390px, 1.1fr); gap: clamp(46px, 8vw, 104px); border-top: 1px solid var(--line); }
.dictation::before { content: ""; position: absolute; z-index: -1; inset: 42px calc((100vw - 100%) / -2); background: linear-gradient(120deg, #111318 0 58%, #171d25 100%); }
.dictation-copy { color: #fff; }
.dictation-copy h2 { margin: 0; font-size: clamp(2.5rem, 4.8vw, 4.2rem); line-height: 1; letter-spacing: -.045em; }
.dictation-copy > p:not(.section-label) { color: #b8bfc9; }
.dictation-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 30px 0 24px; background: #343a44; border: 1px solid #343a44; }
.dictation-options span { display: flex; flex-direction: column; padding: 20px; background: #191d24; }
.dictation-options b { color: #fff; font-size: .92rem; }
.dictation-options small { margin-top: 5px; color: #9fa7b3; line-height: 1.45; }
.dictation-note { font-size: .78rem; }
.voice-flow { align-self: center; margin: 0; padding: 0; list-style: none; border-block: 1px solid #343a44; color: #fff; }
.voice-flow li { display: grid; grid-template-columns: 54px 1fr; gap: 18px; padding: 22px 8px; border-bottom: 1px solid #343a44; }
.voice-flow li:last-child { border-bottom: 0; }
.voice-flow b { color: var(--mint); font: 800 .72rem "SFMono-Regular", Consolas, monospace; }
.voice-flow span { display: flex; flex-direction: column; }
.voice-flow strong { font-size: 1.03rem; }
.voice-flow small { margin-top: 4px; color: #9fa7b3; }

.agents { width: 100vw; margin-left: calc((100vw - 100%) / -2); display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: clamp(48px, 8vw, 110px); padding: clamp(72px, 8vw, 104px) max(calc((100vw - 1180px) / 2), 24px); background: var(--wash); border-block: 1px solid var(--line); }
.agent-intro > p:last-child { margin-top: 20px; }
.agent-list { display: grid; grid-template-columns: repeat(2, 1fr); align-content: center; }
.agent-list button { min-height: 70px; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); font: 700 .98rem inherit; text-align: left; cursor: pointer; transition: background .18s; }
.agent-list button:hover, .agent-list button.is-selected { background: #fff; }
.agent-list i { width: 9px; height: 30px; border-radius: 5px; background: #d05a39; }
.agent-list button:nth-child(2) i { background: #138a78; }
.agent-list button:nth-child(3) i { background: #7758d6; }
.agent-list button:nth-child(4) i { background: #316be4; }
.agent-list button:nth-child(5) i { background: #aa710f; }
.agent-list button:nth-child(6) i { background: #c44469; }
.compatibility-wrap { grid-column: 1 / -1; min-width: 0; margin-top: 14px; }
.compatibility-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 16px; }
.compatibility-heading strong { font-size: 1.1rem; }
.compatibility-heading span, .compatibility-note { color: var(--muted); font-size: .76rem; }
.compatibility-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 18px 48px rgba(25, 34, 47, .06); }
.compatibility-scroll:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.compatibility-scroll table { width: 100%; min-width: 1040px; border-collapse: collapse; font-size: .78rem; }
.compatibility-scroll th, .compatibility-scroll td { padding: 13px 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compatibility-scroll thead th { background: var(--ink); color: #fff; font-size: .7rem; letter-spacing: .04em; text-transform: uppercase; }
.compatibility-scroll tbody th { width: 190px; background: #f0f2f5; color: var(--ink); }
.compatibility-scroll tr:last-child th, .compatibility-scroll tr:last-child td { border-bottom: 0; }
.compatibility-scroll th:last-child, .compatibility-scroll td:last-child { border-right: 0; }
.compatibility-note { max-width: 106ch; margin: 15px 0 0; }

.context-note { display: inline-block; margin-top: 18px; padding: 12px 14px; border-radius: 8px; background: #e9f2ff; color: #164b85; font-weight: 650; }
.onboarding { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.onboarding li { display: grid; grid-template-columns: 74px 1fr; gap: 20px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.onboarding b { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; }
.onboarding h3 { margin: 3px 0 7px; font-size: 1.3rem; }
.onboarding p { max-width: 72ch; margin: 0; color: var(--body); }
.setup-actions { display: flex; align-items: center; gap: 18px; margin-top: 28px; }
.setup-actions > a:not(.button) { min-height: 44px; display: inline-flex; align-items: center; color: var(--body); font-weight: 650; text-underline-offset: 4px; }

.codex-direct-control { margin-top: 40px; padding-top: 36px; border-top: 1px solid var(--line); }
.codex-direct-control h3 { margin: 4px 0 12px; font-size: 1.3rem; letter-spacing: -.015em; }
.restart-notice, .windows-note, #codex-control-offline { color: var(--muted); font-size: .82rem; }
.codex-control-panel { margin-top: 22px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--wash); }
.codex-control-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.codex-control-panel button { min-height: 44px; padding: 0 16px; border: 1px solid var(--line-dark); border-radius: 8px; background: #fff; color: var(--ink); font: 700 .82rem inherit; cursor: pointer; transition: background .18s, border-color .18s; }
.codex-control-panel button:hover { background: var(--wash-strong); }
.codex-control-panel label { display: inline-block; margin-bottom: 4px; font-weight: 650; }
.codex-control-panel input { min-height: 44px; width: min(100%, 360px); margin-top: 6px; padding: 0 12px; border: 1px solid var(--line-dark); border-radius: 8px; background: #fff; font: inherit; }
#codex-control-status { margin: 0; font-weight: 650; }
.codex-control-troubleshoot { margin-top: 14px; }
.codex-control-troubleshoot summary { cursor: pointer; font-weight: 650; font-size: .82rem; color: var(--muted); }
.codex-control-troubleshoot[open] summary { margin-bottom: 12px; }
.codex-control-actions small { align-self: center; color: var(--muted); font-size: .78rem; max-width: 42ch; }

.value { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, .72fr); gap: clamp(42px, 8vw, 100px); border-top: 1px solid var(--line); }
.value-copy > p:last-child { max-width: 58ch; color: var(--body); }
.price-card { align-self: start; display: flex; flex-direction: column; padding: 34px; border-radius: 20px; background: var(--ink); color: #fff; box-shadow: 0 24px 60px rgba(17, 19, 24, .18); }
.price-card small { color: #aeb4bd; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.price-card strong { margin: 5px 0 0; font-size: clamp(3.3rem, 7vw, 5.4rem); line-height: 1; letter-spacing: -.055em; }
.price-card span { margin: 8px 0 26px; color: #c9cdd3; }
.price-card .button { background: #fff; color: var(--ink); }
.price-card .button:hover { background: #eef1f5; }
.value-points { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value-points article { padding-top: 18px; border-top: 2px solid var(--ink); }
.value-points strong { font-size: .95rem; }
.value-points p { margin: 8px 0 0; color: var(--body); font-size: .88rem; }

.technical { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(42px, 8vw, 100px); border-block: 1px solid var(--line); }
.technical-details details, .questions details, .troubleshooting details { border-top: 1px solid var(--line); }
.technical-details details:last-child, .questions details:last-child, .troubleshooting details:last-child { border-bottom: 1px solid var(--line); }
summary { position: relative; min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 34px 17px 0; font-weight: 730; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 5px; color: var(--muted); font-size: 1.25rem; font-weight: 400; transition: transform .22s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
summary span { margin-left: auto; color: var(--muted); font-size: .72rem; font-weight: 650; text-transform: uppercase; letter-spacing: .07em; }
.detail-body { padding: 2px 0 24px; color: var(--body); }
.detail-body p { max-width: 70ch; margin: 0; }
.terminal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.terminal-grid p { display: flex; flex-direction: column; padding: 14px; background: var(--wash); border-radius: 8px; }
.terminal-grid span { color: var(--muted); font-size: .82rem; }

.signals { position: relative; }
.signals::before { content: ""; position: absolute; z-index: -1; inset: 38px calc((100vw - 100%) / -2) auto; height: 440px; background: linear-gradient(135deg, #f5f8fc 0%, #eef3f7 65%, #f7f5ef 100%); border-block: 1px solid var(--line); }
.signal-hero { min-height: 440px; display: grid; grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr); align-items: center; gap: clamp(46px, 8vw, 104px); }
.signal-hero > div:first-child > p:not(.section-label) { max-width: 58ch; color: var(--body); font-size: 1.03rem; }
.states { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.states span { padding: 6px 9px; border-radius: 99px; background: var(--wash-strong); color: #3b424c; font: 700 .7rem "SFMono-Regular", Consolas, monospace; }
.routing-bench { position: relative; min-width: 0; padding: clamp(24px, 4vw, 40px); border: 1px solid #242831; border-radius: 18px; background: #111318; color: #fff; box-shadow: 0 24px 60px rgba(27, 34, 44, .17); overflow: hidden; }
.routing-bench::after { content: ""; position: absolute; width: 170px; height: 170px; top: -96px; right: -70px; border-radius: 50%; background: rgba(40, 125, 242, .22); filter: blur(1px); }
.routing-command { display: grid; grid-template-columns: 1fr auto; align-items: center; margin-bottom: 27px; padding-bottom: 20px; border-bottom: 1px solid #333740; }
.routing-command small { grid-column: 1 / -1; color: #8f97a3; font-size: .67rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.routing-command code { margin-top: 5px; color: #b7d5ff; font-size: .9rem; }
.routing-command span { grid-row: 2; grid-column: 2; color: var(--mint); font-size: 1.3rem; }
.routing-keys { display: flex; gap: 18px; }
.routing-key { width: 116px; aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid #393e47; border-radius: 18px; background: #080a0d; box-shadow: inset 0 0 0 6px #171a1f; }
.routing-key i { width: 10px; height: 35px; margin-bottom: 8px; border-radius: 5px; background: #3a4049; }
.routing-key.is-live { border-color: #316eaa; box-shadow: inset 0 0 0 6px #171a1f, 0 0 30px rgba(40, 125, 242, .2); }
.routing-key.is-live i { background: var(--blue); box-shadow: 0 0 15px rgba(40, 125, 242, .65); }
.routing-key strong { font-size: .74rem; letter-spacing: .06em; }
.routing-key small { color: #848c97; font: 500 .62rem "SFMono-Regular", Consolas, monospace; }
.routing-bench > p { margin: 24px 0 0; color: #aeb4bd; font-size: .79rem; }
.routing-bench > p strong { color: #fff; }
.signal-steps { display: grid; grid-template-columns: repeat(3, 1fr); margin: 54px 0 72px; padding: 0; list-style: none; border-block: 1px solid var(--line); }
.signal-steps li { min-width: 0; display: grid; grid-template-columns: 48px 1fr; gap: 17px; padding: 27px 25px; }
.signal-steps li + li { border-left: 1px solid var(--line); }
.signal-steps b { color: var(--blue); font: 800 .72rem "SFMono-Regular", Consolas, monospace; }
.signal-steps h3 { margin: -3px 0 5px; font-size: 1rem; }
.signal-steps p { margin: 0; color: var(--body); font-size: .84rem; }
.signal-workbench { display: grid; grid-template-columns: minmax(250px, .64fr) minmax(0, 1.36fr); border: 1px solid var(--line-dark); border-radius: 16px; background: #fff; box-shadow: 0 18px 50px rgba(25, 34, 47, .08); overflow: hidden; }
.recipe-controls { padding: clamp(28px, 4vw, 42px); background: var(--wash); border-right: 1px solid var(--line); }
.recipe-controls h3 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.65rem); line-height: 1.04; letter-spacing: -.035em; }
.recipe-controls > div:first-child > p:last-child { color: var(--body); font-size: .88rem; }
.signal-agent-tabs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; margin-top: 28px; }
.signal-agent-tabs button, .os-tabs button { min-height: 43px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--body); font: 700 .78rem inherit; cursor: pointer; transition: color .18s, border-color .18s, background .18s; }
.signal-agent-tabs button:hover, .os-tabs button:hover { border-color: var(--line-dark); color: var(--ink); }
.signal-agent-tabs button[aria-selected="true"], .os-tabs button[aria-selected="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.recipe-panel { min-width: 0; padding: clamp(24px, 4vw, 42px); }
.recipe-meta { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: 16px; }
.recipe-meta > div:first-child { min-width: 0; display: flex; flex-direction: column; }
.recipe-meta small { margin-bottom: 3px; color: var(--muted); font-size: .65rem; font-weight: 780; letter-spacing: .08em; text-transform: uppercase; }
.recipe-meta strong { overflow-wrap: anywhere; font: 650 .78rem "SFMono-Regular", Consolas, monospace; }
.os-tabs { flex: 0 0 auto; display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--wash); }
.os-tabs button { min-height: 38px; padding-inline: 12px; border-color: transparent; background: transparent; }
.recipe-instruction { margin: 0 0 14px; padding: 12px 14px; border: 1px solid #cbdcf2; border-radius: 9px; background: #f0f6ff; color: #244b78; font-size: .78rem; }
.recipe-instruction code { color: #153c6c; }
.recipe-codebox pre { min-height: 328px; max-height: 430px; }
.recipe-note { margin: 17px 0 0; padding-left: 13px; border-left: 3px solid var(--amber); color: var(--body); font-size: .82rem; }
.recipe-note strong { color: var(--ink); }
.raw-signal-reference { margin-top: 32px; border-block: 1px solid var(--line); }
.raw-signal-reference > summary { min-height: 66px; }
.raw-signal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding: 6px 0 28px; }
.codebox { min-width: 0; overflow: hidden; border-radius: 12px; background: #111318; color: #eef1f5; }
.codebox > div { display: flex; align-items: center; justify-content: space-between; padding: 11px 12px 11px 18px; border-bottom: 1px solid #30343a; color: #aeb4bd; font-size: .74rem; }
.codebox button { min-width: 64px; min-height: 40px; padding: 0 12px; border: 1px solid #474c55; border-radius: 7px; background: #22262c; color: #fff; cursor: pointer; }
.codebox button:hover { background: #30353d; }
.codebox pre { margin: 0; padding: 22px; overflow: auto; font: 500 .82rem/1.65 "SFMono-Regular", Consolas, monospace; }
.codebox > p { margin: 0; padding: 0 22px 22px; color: #aeb4bd; font-size: .8rem; }
code { font-family: "SFMono-Regular", Consolas, monospace; font-size: .9em; }

.faq { display: grid; grid-template-columns: .65fr 1.35fr; gap: clamp(42px, 8vw, 100px); border-top: 1px solid var(--line); }
.questions p { max-width: 66ch; margin: 0 0 22px; color: var(--body); }
.troubleshooting { width: 100vw; margin-left: calc((100vw - 100%) / -2); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(42px, 8vw, 100px); padding: clamp(70px, 8vw, 102px) max(calc((100vw - 1180px) / 2), 24px); background: var(--wash); border-block: 1px solid var(--line); }
.troubleshooting p { color: var(--body); }
.troubleshooting ol { margin: 0; padding-left: 22px; }
.troubleshooting li { padding: 5px; }
.troubleshooting a { font-weight: 750; text-underline-offset: 4px; }

footer { min-height: 148px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; color: var(--muted); font-size: .78rem; }
footer p { margin-right: auto; }
footer > a:not(.brand) { text-underline-offset: 4px; }
.toast { position: fixed; z-index: 20; right: 16px; bottom: 16px; padding: 11px 15px; border-radius: 8px; background: var(--ink); color: #fff; transform: translateY(150%); transition: transform .28s var(--ease); }
.toast.show { transform: none; }

/* Terms of Use — restrained editorial layout, aligned with the product site. */
.legal-page { background: linear-gradient(180deg, #fff 0 38%, #f7f8fa 38% 100%); }
.legal-topbar { position: relative; z-index: 2; background: rgba(255, 255, 255, .94); }
.legal-shell { padding-bottom: clamp(70px, 9vw, 120px); }
.legal-hero { min-height: 500px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); align-items: center; gap: clamp(48px, 9vw, 120px); padding: clamp(76px, 10vw, 132px) 0; }
.legal-hero h1 { max-width: none; font-size: clamp(3.8rem, 8vw, 7rem); }
.legal-lede { max-width: 66ch; margin: 28px 0 0; color: var(--body); font-size: clamp(1.02rem, 1.4vw, 1.18rem); }
.legal-meta { border-block: 1px solid var(--line-dark); }
.legal-meta span { min-height: 70px; display: grid; grid-template-columns: 1fr 1.15fr; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); }
.legal-meta span:last-child { border-bottom: 0; }
.legal-meta small { color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.legal-meta strong, .legal-meta a { font-size: .87rem; font-weight: 750; overflow-wrap: anywhere; }
.legal-meta a { text-underline-offset: 4px; }
.legal-summary { width: 100vw; margin-left: calc((100vw - 100%) / -2); display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(42px, 8vw, 100px); padding: clamp(62px, 8vw, 92px) max(calc((100vw - 1180px) / 2), 24px); background: var(--ink); color: #fff; }
.legal-summary h2 { max-width: 9ch; margin: 0; font-size: clamp(2.7rem, 5vw, 4.6rem); line-height: .98; letter-spacing: -.045em; }
.legal-summary ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid #343a44; }
.legal-summary li { position: relative; padding: 17px 8px 17px 36px; border-bottom: 1px solid #343a44; color: #d8dce2; }
.legal-summary li::before { content: "✓"; position: absolute; left: 7px; color: var(--mint); font-weight: 900; }
.legal-summary > p { grid-column: 2; margin: -54px 0 0; color: #8f97a3; font-size: .75rem; }
.legal-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(52px, 9vw, 120px); padding-top: clamp(72px, 9vw, 118px); }
.legal-toc { position: sticky; top: 28px; align-self: start; display: flex; flex-direction: column; padding: 20px 0; border-block: 1px solid var(--line-dark); }
.legal-toc strong { margin-bottom: 12px; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.legal-toc a { padding: 5px 0; color: var(--muted); font-size: .75rem; text-decoration: none; transition: color .18s, transform .18s; }
.legal-toc a:hover { color: var(--ink); transform: translateX(3px); }
.legal-copy { min-width: 0; }
.legal-copy > section { scroll-margin-top: 30px; display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 24px; padding: 0 0 clamp(50px, 7vw, 78px); margin-bottom: clamp(50px, 7vw, 78px); border-bottom: 1px solid var(--line); }
.legal-number { padding-top: 8px; color: var(--blue); font: 800 .72rem "SFMono-Regular", Consolas, monospace; }
.legal-copy h2 { margin: 0 0 22px; font-size: clamp(1.85rem, 3vw, 2.8rem); line-height: 1.05; letter-spacing: -.035em; }
.legal-copy p { max-width: 74ch; margin: 0 0 17px; color: var(--body); }
.legal-copy p:last-child { margin-bottom: 0; }
.legal-copy a { font-weight: 720; text-underline-offset: 4px; }
.legal-callout { max-width: 74ch; margin-top: 26px; padding: 24px 26px; border-left: 4px solid var(--blue); background: #edf4fd; }
.legal-callout strong { display: block; margin-bottom: 6px; }
.legal-callout p { color: #274766; }
.legal-fineprint { padding: 16px 18px; border: 1px solid #e4c36c; background: #fff8e5; font-size: .82rem; }
.legal-footer { border-top: 1px solid var(--line); }

.action-shell { max-width: 620px; padding: clamp(64px, 9vw, 108px) 0 clamp(80px, 10vw, 140px); }
.action-shell h1 { font-size: clamp(2.3rem, 5vw, 3.4rem); letter-spacing: -.04em; margin: 0 0 14px; }
.action-shell .legal-lede { max-width: none; margin: 0 0 34px; }
.action-card { padding: 30px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.action-card + .action-card { margin-top: 20px; }
.field { display: block; margin-bottom: 18px; }
.field span { display: block; margin-bottom: 6px; font-size: .75rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
.field input { min-height: 44px; width: 100%; padding: 0 14px; border: 1px solid var(--line-dark); border-radius: 8px; background: #fff; font: inherit; }
.action-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.action-buttons .button { cursor: pointer; border: 0; font-family: inherit; }
.form-status { margin: 16px 0 0; font-size: .86rem; font-weight: 650; min-height: 1.2em; }
.form-status[data-state="error"] { color: #c0392b; }
.form-status[data-state="ok"] { color: #1a8754; }
.install-steps { counter-reset: step; list-style: none; margin: 0; padding: 0; }
.install-steps li { position: relative; padding: 0 0 26px 40px; border-left: 2px solid var(--line); margin-left: 6px; }
.install-steps li:last-child { border-color: transparent; padding-bottom: 0; }
.install-steps li::before { counter-increment: step; content: counter(step); position: absolute; left: -13px; top: -1px; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--ink); color: #fff; font-size: .76rem; font-weight: 800; }
.install-steps h3 { margin: 0 0 6px; font-size: 1.04rem; }
.install-steps p { margin: 0; color: var(--body); max-width: 60ch; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { max-width: 700px; }
  .product-stage { width: min(100%, 660px); }
  .target-flow { grid-template-columns: 1fr; }
  .target-flow > i { transform: rotate(90deg); justify-self: center; }
  .key-showcase { grid-template-columns: repeat(2, 1fr); }
  .key-showcase article:nth-child(odd) { border-left: 0; }
  .key-showcase article:nth-child(even) { border-left: 1px solid var(--line); }
  .dictation, .agents, .value, .technical, .faq, .troubleshooting { grid-template-columns: 1fr; }
  .value-points { grid-column: 1; }
  .signal-hero, .signal-workbench { grid-template-columns: 1fr; }
  .signal-hero { padding-top: 80px; }
  .signals::before { height: 690px; }
  .recipe-controls { border-right: 0; border-bottom: 1px solid var(--line); }
  .raw-signal-grid { grid-template-columns: 1fr; }
  .legal-hero, .legal-summary { grid-template-columns: 1fr; }
  .legal-summary h2 { max-width: 12ch; }
  .legal-summary > p { grid-column: 1; margin: 0; }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 22px; }
  .legal-toc strong { grid-column: 1 / -1; }
  .legal-topbar nav { display: none; }
}

@media (max-width: 680px) {
  :root { --page: min(100% - 28px, 1180px); }
  nav { display: none; }
  .topbar { height: 68px; }
  .mini-cta { padding-inline: 14px; }
  .hero { padding: 58px 0 72px; gap: 52px; }
  h1 { font-size: clamp(3rem, 15vw, 4.2rem); }
  .marketplace { width: 100%; min-width: 0; }
  .text-link { width: 100%; }
  .device { width: calc(100% + 8px); margin-left: -4px; }
  .outcome-strip { grid-template-columns: 1fr; }
  .outcome-strip article { min-height: 88px; }
  .outcome-strip article + article { border-left: 0; border-top: 1px solid var(--line); }
  .key-showcase { grid-template-columns: 1fr; }
  .key-showcase article { display: grid; grid-template-columns: 74px 1fr; gap: 18px; padding-inline: 0; }
  .key-showcase article + article { border-left: 0; }
  .dictation-options { grid-template-columns: 1fr; }
  .key-showcase img { width: 74px; height: 74px; margin: 0; border-radius: 15px; }
  .agent-list { grid-template-columns: 1fr; }
  .onboarding li { grid-template-columns: 54px 1fr; }
  .setup-actions { align-items: flex-start; flex-direction: column; }
  .circuit { align-items: flex-start; flex-direction: column; }
  .circuit i { transform: rotate(90deg); }
  .value-points, .terminal-grid { grid-template-columns: 1fr; }
  .compatibility-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
  summary span { display: none; }
  .signals::before { inset: 0 calc((100vw - 100%) / -2) auto; height: 720px; }
  .signal-hero { padding-top: 40px; }
  .routing-bench { border-radius: 13px; }
  .routing-key { width: 96px; border-radius: 15px; }
  .signal-steps { grid-template-columns: 1fr; margin-block: 44px 56px; }
  .signal-steps li { padding-inline: 8px; }
  .signal-steps li + li { border-left: 0; border-top: 1px solid var(--line); }
  .signal-workbench { margin-inline: -7px; }
  .signal-agent-tabs { display: flex; margin-inline: -28px; padding-inline: 28px; overflow-x: auto; scrollbar-width: thin; }
  .signal-agent-tabs button { flex: 0 0 auto; padding-inline: 14px; }
  .recipe-meta { align-items: stretch; flex-direction: column; }
  .os-tabs { width: 100%; }
  .os-tabs button { flex: 1; }
  .recipe-codebox pre { min-height: 300px; }
  .codebox pre { font-size: .74rem; }
  footer { padding: 28px 0; align-items: flex-start; flex-direction: column; gap: 9px; }
  footer p { margin: 0; }
  .legal-page { background: #fff; }
  .legal-hero { min-height: 0; padding-block: 64px 74px; }
  .legal-hero h1 { font-size: clamp(3.2rem, 17vw, 4.6rem); }
  .legal-meta span { grid-template-columns: 1fr; gap: 3px; padding: 13px 0; }
  .legal-summary { padding-inline: 22px; }
  .legal-toc { grid-template-columns: 1fr; }
  .legal-copy > section { grid-template-columns: 38px minmax(0, 1fr); gap: 10px; }
  .legal-callout { padding: 20px; }
}

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

@media (prefers-contrast: more) {
  :root { --body: #252930; --muted: #343a42; --line: #777e88; }
  .device, .codebox { outline: 2px solid #000; }
}
