/* PhotonHub Lab: a field instrument with a clear, inspectable working surface. */
:root {
  color-scheme: light;
  --bg: #f7f9fb;
  --surface: #fff;
  --surface-2: #eff2f6;
  --hairline: #e3e7ec;
  --control-border: #8a94a6;
  --text: #0d1117;
  --text-2: #5b6572;
  --accent: #00658a;
  --link: #00658a;
  --selection: #b9f3ff;
  --btn: #00d4ff;
  --btn-text: #0d1117;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --panel: var(--surface);
  --panel-line: var(--hairline);
  --panel-text: var(--text);
  --panel-muted: var(--text-2);
  --shadow: 0 16px 40px -28px #18334230;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 88px; }
body.design-lab { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.65 var(--ph-font-text); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, h4, .brand, .btn { font-family: var(--ph-font-heading); }
a { color: var(--link); text-decoration: none; text-underline-offset: .2em; }
a:hover { text-decoration: underline; }
p a, .consent a { text-decoration: underline; }
button, input, textarea, select { font: inherit; }
button, summary, a, input, textarea { -webkit-tap-highlight-color: transparent; }
::selection { background: var(--selection); color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: 1328px; margin-inline: auto; padding-inline: 48px; }
.section { padding: 88px 0; border-bottom: 1px solid var(--hairline); scroll-margin-top: 80px; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 16px; padding: 10px 18px; transform: translateY(-160%); background: var(--btn); color: var(--btn-text); }
.skip-link:focus { transform: none; }
#top:focus { outline: none; }

/* Navigation */
header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--hairline); background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav { display: flex; align-items: center; gap: 24px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-size: 22px; font-weight: 650; letter-spacing: -.055em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand svg { flex-shrink: 0; display: block; }
.brand-tag { margin-left: 7px; border-left: 1px solid var(--control-border); padding-left: 13px; color: var(--text-2); font: 13px/1 var(--mono); letter-spacing: .15em; }
.nav nav { display: flex; align-items: center; gap: 25px; margin-left: auto; }
.nav nav a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-2); font-size: 15px; font-weight: 500; }
.nav nav a:hover { color: var(--text); text-decoration: none; }
.nav .btn { min-height: 44px; padding: 10px 15px; font-size: 15px; }
.menu { display: none; position: relative; flex-shrink: 0; margin: 0; padding: 0; border: 0; background: transparent; }
.menu summary::after { content: none; }

/* Small, tactile controls */
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 18px; min-height: 44px; padding: 12px 18px; border: 1px solid transparent; border-radius: 3px; font-size: 17px; font-weight: 600; line-height: 1.3; cursor: pointer; transition: background .16s ease, border-color .16s ease, transform .16s ease; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--btn); color: var(--btn-text); border-color: var(--btn); }
.btn-primary:hover { background: #8aeeff; border-color: #8aeeff; }
.btn-secondary { background: transparent; border-color: var(--control-border); color: var(--text); }
.btn-secondary:hover { background: var(--surface-2); border-color: var(--text-2); }
.btn-soon { background: var(--surface-2); border-color: var(--hairline); color: var(--text-2); cursor: default; }
.btn:disabled { opacity: .65; cursor: wait; }

/* Hero: the simulation is the interface. */
.hero { padding-top: 28px; }
.hero-panel { overflow: hidden; background: var(--panel); border: 1px solid var(--panel-line); border-radius: 5px; color: var(--panel-text); }
.instrument-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 48px; padding: 12px 28px; border-bottom: 1px solid var(--panel-line); color: var(--panel-muted); font: 12px/1.6 var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.instrument-bar > span:first-child { display: flex; align-items: center; gap: 10px; }
.status-dot { display: inline-block; flex-shrink: 0; width: 5px; height: 5px; background: #5fe4fc; border-radius: 50%; box-shadow: 0 0 10px #5fe4fc45; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 26px; padding: 50px 36px 48px; background-image: linear-gradient(color-mix(in srgb, var(--hairline) 40%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--hairline) 40%, transparent) 1px, transparent 1px); background-size: 40px 40px; }
.hero-copy { position: relative; z-index: 1; }
.badge { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--hairline); padding: 5px 8px; border-radius: 2px; color: var(--link); font: 12px/1.4 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.badge::before { content: ''; width: 4px; height: 4px; background: currentColor; }
.hero .badge { color: var(--link); border-color: var(--hairline); background: var(--surface-2); }
h1 { margin: 23px 0 0; max-width: 19ch; font-size: clamp(35px, 3.8vw, 53px); font-weight: 500; letter-spacing: -.055em; line-height: 1.09; }
.sub { max-width: 51ch; margin: 23px 0 0; color: var(--panel-muted); font-size: 17px; line-height: 1.9; }
.sub code { padding: 1px 4px; border: 1px solid var(--panel-line); border-radius: 2px; background: var(--surface-2); color: var(--text); font: .9em var(--mono); white-space: nowrap; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 27px; }
.cta .btn { padding: 12px 14px; font-size: 15px; gap: 14px; }
.hero .btn-secondary { color: var(--panel-text); border-color: var(--control-border); }
.hero .btn-secondary:hover { background: var(--surface-2); border-color: var(--text-2); }
.hero-docs { display: inline-flex; align-items: center; gap: 15px; min-height: 44px; color: var(--link); font-size: 14px; }
.hero-simulation { min-width: 0; margin: 0; border: 1px solid var(--hairline); border-radius: 3px; background: var(--surface); box-shadow: var(--shadow); }
.simulation-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--hairline); color: var(--text-2); font: 12px/1.5 var(--mono); letter-spacing: .07em; }
.simulation-head span:last-child { color: var(--link); }
.simulation-viewport { position: relative; padding: 16px 0; background: var(--bg); }
.simulation-viewport::before, .simulation-viewport::after { content: ''; position: absolute; z-index: 1; width: 9px; height: 9px; border-color: #66828c; pointer-events: none; }
.simulation-viewport::before { top: 10px; left: 10px; border-top: 1px solid; border-left: 1px solid; }
.simulation-viewport::after { right: 10px; bottom: 10px; border-bottom: 1px solid; border-right: 1px solid; }
.hero-simulation picture, .hero-simulation img { display: block; width: 100%; height: auto; }
.viewport-axis { position: absolute; z-index: 1; color: var(--text-2); font: 12px/1.3 var(--mono); letter-spacing: .12em; }
.axis-top { top: 15px; right: 14px; }
.axis-bottom { bottom: 8px; left: 15px; }
.hero-simulation figcaption { border-top: 1px solid var(--hairline); padding: 17px 20px 14px; }
.hero-simulation figcaption > a { display: flex; align-items: center; justify-content: space-between; color: var(--text); font: 500 16px/1.4 var(--ph-font-heading); }
.hero-simulation figcaption a span { color: var(--link); }
.simulation-results { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.simulation-results > div + div { border-left: 1px solid var(--hairline); padding-left: 20px; }
.simulation-results strong { display: block; color: var(--link); font: 400 32px/1.2 var(--ph-font-heading); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.simulation-results > div + div strong { color: var(--text); }
.simulation-results small { font-size: 16px; }
.simulation-results span { display: block; margin-top: 6px; color: var(--text-2); font: 12px/1.5 var(--mono); letter-spacing: .06em; }
.hero-simulation figcaption p { margin: 15px 0 0; color: var(--text-2); font: 12px/1.5 var(--mono); }
.hero-specs { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--panel-line); }
.hero-specs > div { display: flex; align-items: flex-start; flex-direction: column; gap: 4px; padding: 19px 28px; color: var(--text); font-size: 14px; }
.hero-specs > div + div { border-left: 1px solid var(--panel-line); }
.hero-specs .spec-label { color: var(--text-2); font: 12px/1.6 var(--mono); letter-spacing: .08em; }

/* A numbered research notebook below the field preview. */
.section-heading { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; align-items: start; }
.kicker { margin: 5px 0 0; color: var(--text-2); font: 12px/1.7 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.kicker > span { margin-right: 8px; color: var(--accent); }
h2 { margin: 0; max-width: 29ch; font-size: clamp(28px, 3vw, 40px); font-weight: 500; line-height: 1.15; letter-spacing: -.045em; }
.lede { max-width: 65ch; margin: 18px 0 0; color: var(--text-2); font-size: 17px; line-height: 1.9; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 35px; }
.card { position: relative; min-width: 0; padding: 27px; border: 1px solid var(--hairline); border-radius: 3px; background: var(--surface); }
.card h3 { margin: 24px 0 10px; font-size: 22px; line-height: 1.25; font-weight: 500; letter-spacing: -.03em; }
.card p { margin: 0; color: var(--text-2); font-size: 16px; line-height: 1.85; }
.card .icon { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--hairline); color: var(--accent); border-radius: 2px; background: var(--surface-2); }
#product .cards { gap: 0; }
#product .card { padding: 28px 30px 32px; border-radius: 0; }
#product .card + .card { border-left: 0; }
#product .card::after { position: absolute; top: 26px; right: 24px; color: var(--text-2); font: 12px var(--mono); }
#product .card:nth-child(1)::after { content: '/ 01'; }
#product .card:nth-child(2)::after { content: '/ 02'; }
#product .card:nth-child(3)::after { content: '/ 03'; }
.note { display: block; margin: 22px 0 0; padding: 16px 20px; border: 1px solid var(--hairline); border-left: 2px solid var(--accent); border-radius: 2px; color: var(--text-2); background: var(--surface-2); font-size: 14px; line-height: 1.9; }
.note strong { color: var(--text); font-weight: 600; }
#product .note { margin-top: 0; border-top: 0; }

/* Results are data, not decoration. The scroll region never expands the page. */
#examples { background: var(--surface-2); }
.req-table { min-width: 0; margin-top: 36px; border: 1px solid var(--hairline); border-radius: 3px; background: var(--surface); }
.acc-table { width: 100%; overflow-x: auto; scroll-margin-top: 96px; scrollbar-color: var(--control-border) var(--surface-2); }
table { width: 100%; border-collapse: collapse; text-align: left; }
.acc-table table { min-width: 1180px; }
.acc-table caption { padding: 15px 20px; border-bottom: 1px solid var(--hairline); color: var(--text); background: var(--surface); text-align: left; font: 13px/1.6 var(--mono); text-transform: uppercase; letter-spacing: .04em; }
.table-caption-note { float: right; color: var(--text-2); font-size: 12px; text-transform: none; letter-spacing: 0; }
th, td { padding: 15px 18px; border-bottom: 1px solid var(--hairline); vertical-align: top; white-space: nowrap; }
.acc-table th { background: var(--surface-2); color: var(--text-2); font: 13px/1.7 var(--mono); letter-spacing: .05em; text-transform: uppercase; }
.acc-table td { color: var(--text-2); font-size: 15px; }
.acc-table td a { color: var(--text); font-weight: 600; }
.acc-table .ours { background: color-mix(in srgb, var(--accent) 4%, var(--surface)); color: var(--accent); font: 500 15px/1.6 var(--mono); }
.acc-table .src { display: inline; margin-top: 0; color: var(--text-2); font-size: 13px; white-space: nowrap; }
.acc-table tbody:last-child tr:last-child td { border-bottom: 0; }
.acc-table tbody tr:hover td { background: var(--surface-2); }
.acc-hint { margin: 12px 0 0; max-width: 85ch; color: var(--text-2); font-size: 13px; line-height: 1.7; }
.validation-controls { display: flex; align-items: center; gap: 15px; margin-top: 17px; }
.validation-controls .btn { min-height: 44px; padding: 9px 18px; font-size: 14px; }
.example-tools { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 54px; padding-bottom: 17px; border-bottom: 1px solid var(--hairline); }
.example-tools h3 { margin: 0; font-size: 28px; font-weight: 500; letter-spacing: -.04em; }
.example-tools .btn { flex-shrink: 0; padding: 9px 14px; min-height: 44px; font: 13px/1.5 var(--mono); }
.example-tools .btn::before { content: ''; display: inline-block; width: 6px; height: 9px; border-inline: 2px solid currentColor; }
.example-tools + .cards { margin-top: 22px; }
a.card { display: block; color: var(--text); transition: border-color .16s ease, box-shadow .16s ease; }
a.card:hover { text-decoration: none; border-color: var(--accent); box-shadow: var(--shadow); }
a.card:hover h3 { color: var(--link); }
a.ex-card { padding: 0 0 24px; overflow: hidden; }
.ex-card picture { display: block; overflow: hidden; border-bottom: 1px solid var(--hairline); }
.ex-card img { display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: contain; background: var(--surface); }
.ex-card h3 { padding: 0 22px; margin: 21px 0 10px; font-size: 20px; }
.ex-card p { padding: 0 22px; font-size: 16px; }
a.ex-more { display: flex; flex-direction: column; justify-content: center; min-height: 350px; padding: 32px; background-image: linear-gradient(var(--hairline) 1px, transparent 1px), linear-gradient(90deg, var(--hairline) 1px, transparent 1px); background-size: 28px 28px; }
.ex-more h3 { margin: 0 0 16px; font-size: 34px; max-width: 10ch; }
.ex-more p { background: var(--surface); box-shadow: 0 0 12px 9px var(--surface); }
.more-link { display: block; margin-top: 36px; color: var(--link); font: 14px/1.6 var(--mono); }

/* Install, choose an interface, and read the caveats in the same place. */
.dl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 36px; }
.dl-card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; padding: 28px; border: 1px solid var(--hairline); border-radius: 3px; background: var(--surface); }
.dl-card h3 { margin: 0; font-size: 28px; font-weight: 500; letter-spacing: -.04em; line-height: 1.2; }
.dl-card .meta { color: var(--text-2); font-size: 15px; margin: 0 0 12px; }
.dl-card .btn-soon { width: 100%; margin-top: auto; min-height: 44px; font: 13px var(--mono); }
.download-label { margin-bottom: 5px; color: var(--text-2); font: 12px/1.6 var(--mono); letter-spacing: .07em; }
.dl-wide { grid-column: 1/-1; padding: 34px; background: var(--panel); color: var(--panel-text); border-color: var(--panel-line); }
.dl-wide .meta, .dl-wide .dl-text { color: var(--panel-muted); }
.dl-head { display: flex; align-items: center; gap: 18px; width: 100%; flex-wrap: wrap; }
.dl-head h3 { display: flex; align-items: center; gap: 12px; }
.download-arrow { color: var(--link); font-size: 24px; }
.dl-head .badge { margin-left: auto; color: var(--link); background: var(--surface-2); border-color: var(--hairline); }
.cmd { width: 100%; margin: 5px 0 12px; padding: 19px 22px; overflow-x: auto; border: 1px solid var(--control-border); border-radius: 2px; background: var(--surface-2); color: var(--text); font: 20px/1.4 var(--mono); }
.cmd::before { content: '$ '; color: var(--text-2); }
.cmd code { font: inherit; }
.dl-text { max-width: 95ch; margin: 0 0 12px; color: var(--text-2); font-size: 16px; line-height: 1.9; }
.dl-text code, details code, td code { padding: 1px 4px; border: 1px solid var(--hairline); border-radius: 2px; background: var(--surface-2); font: .9em var(--mono); overflow-wrap: anywhere; }
.dl-wide .dl-text code { color: var(--text); background: var(--surface-2); border-color: var(--hairline); }
.dl-links { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; width: 100%; }
.dl-links .btn { min-height: 44px; padding: 10px 14px; font-size: 14px; color: var(--text); border-color: var(--control-border); }
.dl-links .btn:hover { background: var(--surface-2); }
.dl-links > a:not(.btn) { margin-left: auto; color: var(--link); font-size: 14px; }

/* Invitation form */
#request { background: var(--surface-2); }
#request > .wrap { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1fr); align-items: start; column-gap: 80px; }
#request .section-heading { display: block; position: sticky; top: 112px; }
#request .kicker { margin: 0 0 25px; }
#request h2 { max-width: 10ch; font-size: clamp(36px, 4vw, 52px); }
#request .lede { max-width: 34ch; font-size: 16px; }
.form-grid { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 21px 18px; min-width: 0; margin: 0; padding: 30px; border: 1px solid var(--hairline); border-radius: 3px; background: var(--surface); }
.form-grid .full { grid-column: 1/-1; }
.field { min-width: 0; }
.field label, .platform-field legend { display: block; margin: 0 0 8px; color: var(--text); font-size: 15px; font-weight: 600; }
.field input[type='text'], .field input[type='email'], .field textarea { display: block; width: 100%; padding: 11px 12px; border: 1px solid var(--control-border); border-radius: 2px; background: var(--surface); color: var(--text); font-size: 16px; line-height: 1.5; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.field textarea { min-height: 135px; resize: vertical; }
.field textarea::placeholder { color: var(--text-2); font-size: 14px; opacity: .85; }
.field-help { display: block; margin-top: 7px; color: var(--text-2); font-size: 14px; line-height: 1.6; }
.platform-field { min-width: 0; padding: 0; margin: 0; border: 0; }
.platform-field legend { padding: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.checks label { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; }
.checks input, .consent input { flex-shrink: 0; width: 15px; height: 15px; accent-color: var(--accent); }
.consent { display: flex; align-items: flex-start; gap: 9px; color: var(--text-2); font-size: 14px; line-height: 1.8; }
.consent input { margin: 3px 0 0; }
.consent span { min-width: 0; }
#submit-btn { width: 100%; justify-content: space-between; font-size: 16px; }
#submit-btn::after { content: '↗'; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status, .fallback { padding: 14px; border: 1px solid var(--hairline); background: var(--surface-2); color: var(--text-2); font-size: 15px; overflow-wrap: anywhere; }
.form-status.success { color: var(--text); border-color: var(--accent); }
.fallback pre { white-space: pre-wrap; overflow-wrap: anywhere; font: 14px/1.7 var(--mono); }
#request noscript { grid-column: 2; }

/* FAQ and colophon */
#faq .wrap { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1fr); align-items: start; gap: 80px; }
#faq .section-heading { display: block; }
#faq .kicker { margin: 0 0 25px; }
#faq h2 { max-width: 10ch; }
.faq { min-width: 0; border-top: 1px solid var(--text); }
details { padding: 0; border-bottom: 1px solid var(--hairline); }
summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; padding: 22px 0; list-style: none; font-family: var(--ph-font-heading); font-weight: 500; font-size: 19px; line-height: 1.4; letter-spacing: -.02em; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; flex-shrink: 0; font: 22px/1 var(--mono); color: var(--accent); }
details[open] summary::after { content: '−'; }
details p { max-width: 65ch; margin: 0 28px 24px 0; color: var(--text-2); font-size: 16px; line-height: 1.9; }
footer { padding: 40px 0 52px; color: var(--text-2); font-size: 13px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 25px; }
.foot-links a { color: var(--text); }
.legal { max-width: 120ch; margin: 22px 0 0; color: var(--text-2); font-size: 12px; line-height: 1.9; }

@media (min-width: 1400px) {
  .hero-grid { padding-block: 64px; }
  h1 { font-size: 60px; }
}
@media (max-width: 1100px) {
  .wrap { padding-inline: 32px; }
  .nav nav { gap: 18px; }
  .brand-tag { display: none; }
  .hero-grid { padding: 35px 26px; gap: 22px; }
  h1 { font-size: 46px; }
  .cta .hero-docs { width: 100%; }
  .section-heading { grid-template-columns: 160px minmax(0, 1fr); }
  #request > .wrap, #faq .wrap { column-gap: 40px; grid-template-columns: minmax(0, .65fr) minmax(0, 1fr); }
  .form-grid { padding: 24px; }
  .card { padding: 24px; }
}
@media (max-width: 880px) {
  .nav { height: 66px; }
  .nav nav { gap: 14px; }
  .nav nav a:not(.btn) { font-size: 14px; }
  .hero { padding-top: 20px; }
  .hero-grid { grid-template-columns: 1fr; padding: 38px; gap: 36px; }
  .hero-copy { max-width: 600px; }
  h1 { max-width: 23ch; font-size: clamp(38px, 6vw, 52px); }
  .sub { max-width: 65ch; font-size: 17px; }
  .cta .hero-docs { width: auto; margin-left: 6px; }
  .hero-simulation { width: 100%; max-width: 650px; margin-inline: auto; }
  .simulation-viewport { padding: 10px 0; }
  .simulation-results strong { font-size: 34px; }
  .hero-specs > div { padding: 17px 20px; }
  .section { padding: 64px 0; }
  .section-heading { grid-template-columns: 140px minmax(0, 1fr); gap: 20px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #product .cards { grid-template-columns: 1fr; }
  #product .card { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 0 20px; padding: 25px; }
  #product .card + .card { border-left: 1px solid var(--hairline); border-top: 0; }
  #product .card .icon { grid-row: 1/3; }
  #product .card h3 { margin: 0 0 8px; padding-right: 26px; }
  #product .card::after { top: 29px; }
  #request > .wrap, #faq .wrap { grid-template-columns: 1fr; gap: 30px; }
  #request .section-heading, #faq .section-heading { display: grid; position: static; grid-template-columns: 140px minmax(0, 1fr); gap: 20px; }
  #request .kicker, #faq .kicker { margin-top: 5px; }
  #request h2, #faq h2 { max-width: 24ch; font-size: 40px; }
  #request .lede { max-width: 65ch; }
  #request noscript { grid-column: 1; }
}
@media (max-width: 880px) {
  .nav nav a.hide-sm { display: none; }
  .nav { gap: 14px; }
  .menu { display: block; }
  .menu summary { display: flex; align-items: center; justify-content: center; min-height: 44px; width: 44px; padding: 0; border: 1px solid var(--hairline); border-radius: 2px; background: var(--surface); }
  .menu summary::after, .menu[open] summary::after { content: none; }
  .menu-panel { position: absolute; z-index: 30; right: 0; top: 48px; display: flex; flex-direction: column; width: 220px; padding: 8px; border: 1px solid var(--hairline); border-radius: 3px; background: var(--surface); box-shadow: 0 10px 30px #0002; }
  .menu-panel a { padding: 11px 12px; color: var(--text); font-size: 16px; }
  .menu-panel a:hover { text-decoration: none; background: var(--surface-2); }
  .instrument-kind { display: none; }
  .hero-specs > div { padding: 15px; font-size: 13px; }
  .hero-specs .spec-label { font-size: 12px; }
  .section-heading, #request .section-heading, #faq .section-heading { display: block; }
  .kicker, #request .kicker, #faq .kicker { margin: 0 0 19px; }
  .table-caption-note { display: none; }
  .ex-card h3 { padding-inline: 18px; font-size: 19px; }
  .ex-card p { padding-inline: 18px; }
  .dl-wide { padding: 28px; }
  .dl-links > a:not(.btn) { width: 100%; margin: 6px 0 0; }
}
@media (max-width: 520px) {
  .wrap { padding-inline: 20px; }
  .nav { height: 64px; gap: 8px; }
  .brand { font-size: 20px; gap: 8px; }
  .nav .btn { min-height: 44px; padding-inline: 11px; font-size: 14px; }
  .hero { padding-top: 14px; }
  .hero > .wrap { padding-inline: 12px; }
  .instrument-bar { padding: 12px 19px; font-size: 12px; min-height: 44px; letter-spacing: .05em; }
  .hero-grid { gap: 30px; padding: 29px 18px 20px; background-size: 30px 30px; }
  h1 { font-size: clamp(32px, 8.8vw, 44px); letter-spacing: -.05em; margin-top: 20px; }
  .hero .badge { font-size: 12px; }
  .sub { margin-top: 18px; font-size: 16px; line-height: 1.85; }
  .cta { gap: 9px; margin-top: 22px; }
  .cta .btn { min-height: 44px; padding: 11px 12px; font-size: 14px; }
  .cta .hero-docs { min-height: 44px; margin-left: 0; font-size: 13px; }
  .simulation-head { padding: 10px 11px; font-size: 12px; }
  .hero-simulation figcaption { padding: 15px; }
  .hero-simulation figcaption > a { font-size: 16px; }
  .simulation-results strong { font-size: 32px; }
  .simulation-results > div + div { padding-left: 14px; }
  .simulation-results span { font-size: 11px; }
  .hero-simulation figcaption p { font-size: 12px; }
  .viewport-axis { font-size: 11px; }
  .hero-specs { grid-template-columns: 1fr; }
  .hero-specs > div { flex-direction: column; align-items: flex-start; gap: 6px; padding: 13px 18px; font-size: 14px; }
  .hero-specs > div + div { border-left: 0; border-top: 1px solid var(--panel-line); }
  .hero-specs .spec-label { font-size: 12px; }
  .section { padding: 50px 0; }
  h2, #request h2, #faq h2 { font-size: 36px; }
  .lede { font-size: 16px; line-height: 1.9; }
  .cards { grid-template-columns: 1fr; gap: 18px; margin-top: 28px; }
  #product .card { display: block; padding: 24px; }
  #product .card h3 { margin-top: 20px; padding-right: 0; font-size: 22px; }
  .card p { font-size: 16px; }
  .note { padding: 16px; font-size: 13px; }
  .req-table { margin-top: 28px; }
  .acc-table caption { padding: 14px 16px; }
  .example-tools { margin-top: 40px; gap: 12px; }
  .example-tools h3 { max-width: 13ch; font-size: 26px; line-height: 1.2; }
  .example-tools .btn { padding: 10px; gap: 8px; font-size: 12px; }
  .ex-card h3 { padding-inline: 22px; font-size: 24px; margin-top: 22px; }
  .ex-card p { padding-inline: 22px; font-size: 16px; }
  a.ex-more { min-height: 300px; padding: 28px; }
  .ex-more h3 { font-size: 38px; }
  .dl-grid { grid-template-columns: 1fr; margin-top: 28px; }
  .dl-card { padding: 24px; }
  .dl-wide { padding: 23px 20px; }
  .dl-head { gap: 12px; }
  .dl-card h3 { font-size: 28px; }
  .dl-head .badge { padding: 4px 6px; font-size: 12px; }
  .dl-card .meta { font-size: 14px; }
  .dl-text { font-size: 16px; }
  .cmd { padding: 17px 13px; font-size: 17px; }
  .dl-links { gap: 9px; }
  .dl-links .btn { font-size: 13px; padding: 9px 10px; }
  .form-grid { padding: 24px 19px; grid-template-columns: 1fr; gap: 20px; }
  .field label, .platform-field legend { font-size: 15px; }
  .field-help { font-size: 13px; }
  .checks label { font-size: 14px; }
  .consent { font-size: 13px; }
  .faq summary { font-size: 20px; }
  details p { font-size: 15px; margin-right: 0; }
  footer { padding-top: 28px; }
  .foot { gap: 18px; }
  .legal { font-size: 12px; }
}
@media (max-width: 359px) {
  .wrap { padding-inline: 16px; }
  .nav { gap: 6px; }
  .brand { gap: 6px; font-size: 16px; }
  .brand svg { width: 24px; height: 24px; }
  .nav .btn { padding-inline: 8px; font-size: 13px; }
  .menu summary { width: 44px; }
  .hero-grid { padding-inline: 15px; }
  .cta .btn { padding-inline: 9px; font-size: 13px; }
  .simulation-results strong { font-size: 28px; }
  .simulation-results span { letter-spacing: 0; }
  .hero-specs > div { padding-inline: 15px; font-size: 12px; }
  .dl-head .badge { margin-left: 0; }
}
@media (prefers-color-scheme: dark) {
  :root { color-scheme: dark; --bg: #10171d; --surface: #141e26; --surface-2: #0d141a; --hairline: #2b3a44; --control-border: #6b7585; --text: #e1edf2; --text-2: #a0b3be; --accent: #63d9ef; --link: #76deef; --selection: #185064; --shadow: 0 16px 40px -28px #0009; }
  .hero { padding-bottom: 0; }
  .acc-table .ours { background: #122c36; }
  .card .icon { background: #152b34; }
  a.ex-more { background-color: var(--surface); background-image: linear-gradient(#29404c45 1px, transparent 1px), linear-gradient(90deg, #29404c45 1px, transparent 1px); }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (prefers-reduced-motion: reduce) { .btn, a.card { transition: none; } }
