/* Stowsmith landing page. Colours follow the web app: graphite, safety yellow, kraft. */

/* Barlow and Barlow Condensed, self-hosted (SIL Open Font License, fonts/OFL.txt): the Latin subset from Google Fonts. */
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/barlow-400.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow'; font-style: italic; font-weight: 400; font-display: swap; src: url('fonts/barlow-400-italic.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/barlow-500.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/barlow-600.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/barlow-condensed-500.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/barlow-condensed-600.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/barlow-condensed-700.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #1f262d;
  --ink-2: #45505a;
  --muted: #56616b;
  --concrete: #dfe2e5;
  --paper: #f3f4f5;
  --white: #ffffff;
  --line: #d2d7dc;
  --line-dark: #36404a;
  --yellow: #f2c200;
  --yellow-deep: #d9ad00;
  --yellow-soft: #fff3c4;
  --yellow-ink: #4a3a00;
  --kraft: #b58b58;
  --kraft-ink: #7a5a32;
  --ok: #2f8a57;
  --increase: #2f6fd6;
  --impossible: #c83c35;
  --nomd: #7d868e;
  --focus: #1f66d1;

  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Barlow', system-ui, sans-serif;
  --wrap: 1240px;
  --gutter: 32px;
  --r: 6px;

  color-scheme: light;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--paper); overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1; margin: 0; letter-spacing: -0.005em; }
p { margin: 0; }
b { font-weight: 600; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.small { font-size: 14.5px; color: var(--muted); }

.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--yellow); color: var(--ink); padding: 8px 14px; border-radius: var(--r); font-weight: 600; }
.skip:focus { left: 8px; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: var(--r); border: 2px solid transparent;
  font: 600 17px/1 var(--body); text-decoration: none; cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 15px; }
.btn-primary { background: var(--yellow); color: #231c00; }
.btn-primary:hover { background: var(--yellow-deep); }
.nav-cta { gap: 0; } /* the &nbsp; before "on your data" is the only space */
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: #303a44; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* ---------------------------------------------------------------- nav */
.nav { position: sticky; top: 0; z-index: 20; background: var(--ink); color: #eef1f3; border-bottom: 3px solid var(--yellow); }
.nav-in { display: flex; align-items: center; gap: 32px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 600 23px/1 var(--display); letter-spacing: 0.01em; text-decoration: none; }
.brand svg { width: 28px; height: 28px; fill: var(--kraft); }
.brand .c1 { fill: var(--yellow); }
.brand .c2 { fill: #d9a441; }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 15px; }
.nav-links a { color: #c3cad1; text-decoration: none; padding: 6px 0; }
.nav-links a:hover { color: var(--white); }
.nav-toggle { display: none; align-items: center; gap: 7px; margin-left: auto; min-height: 40px; padding: 0 12px; border: 1px solid #45505a; border-radius: var(--r); background: transparent; color: #eef1f3; font: 500 15px var(--body); cursor: pointer; }
.nav-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.nav-toggle[aria-expanded='true'] { background: #2c343c; }

/* ---------------------------------------------------------------- hero */
.hero { background: var(--concrete); padding: 56px 0 40px; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; align-items: center; }
.hero h1 {
  font-size: clamp(62px, 8.4vw, 124px);
  line-height: 0.88;
  font-weight: 700;
  letter-spacing: -0.015em;
  max-width: 6.2em;
}
.lede { margin-top: 28px; font-size: 19.5px; line-height: 1.5; color: var(--ink-2); max-width: 31em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.for { margin-top: 22px; font-size: 15px; color: var(--muted); }

.hero-stage { margin: 0; position: relative; }
#hero-canvas { display: block; width: 100%; height: min(62vh, 600px); min-height: 380px; }

.readout {
  display: grid; grid-template-columns: auto 1fr; gap: 10px 28px; align-items: center;
  margin-top: 4px; padding: 14px 18px; background: var(--white); border-radius: var(--r);
  border-left: 4px solid var(--yellow);
}
.ro-main { display: flex; flex-direction: column; gap: 6px; }
.ro-count { font-family: var(--display); font-size: 20px; color: var(--ink-2); white-space: nowrap; }
.ro-count b { font-size: 46px; line-height: 0.9; color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.badge { display: inline-flex; align-items: center; gap: 5px; align-self: flex-start; background: var(--ink); color: var(--white); font-size: 13px; font-weight: 600; padding: 3px 8px 3px 6px; border-radius: 4px; }
.badge svg { width: 13px; height: 13px; fill: none; stroke: var(--yellow); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ro-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 6px 18px; margin: 0; }
.ro-facts dt { font-size: 13px; color: var(--muted); }
.ro-facts dd { margin: 0; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }

.cases { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
@media (pointer: coarse) {
  .cases .case { min-height: 44px; padding: 10px 16px; }
}
.case {
  border: 1px solid #c4cad0; background: transparent; border-radius: 999px; padding: 6px 14px;
  font: 500 14.5px/1.2 var(--body); color: var(--ink-2); cursor: pointer;
}
.case:hover { border-color: var(--ink-2); color: var(--ink); }
.case[aria-pressed='true'] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.case span { color: var(--muted); font-variant-numeric: tabular-nums; margin-left: 4px; }
.case[aria-pressed='true'] span { color: inherit; opacity: 0.75; }

/* ---------------------------------------------------------------- section shared */
section { padding: 104px 0; }
.sec-head { max-width: 720px; margin-bottom: 56px; }
.sec-head h2, .md h2, .orders h2, .integrate h2, .trial h2 { font-size: clamp(40px, 5vw, 64px); }
.sec-head p { margin-top: 18px; font-size: 19px; color: var(--ink-2); }

/* ---------------------------------------------------------------- use cases */
.uses { background: var(--paper); }
.use-group { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; border-top: 2px solid var(--ink); padding-top: 22px; margin-top: 28px; }
.group { font-size: 26px; color: var(--kraft-ink); }
.use-list { list-style: none; margin: 0; padding: 0; }
.use { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) minmax(0, 5fr); gap: 32px; padding: 0 0 26px; }
.use + .use { border-top: 1px solid var(--line); padding-top: 24px; }
.use h4 { font-size: 27px; line-height: 1.05; }
.use p { font-size: 16.5px; color: var(--ink-2); }
.use .ex { font-size: 15.5px; color: var(--ink); background: var(--white); border-radius: var(--r); padding: 12px 14px; align-self: start; border-left: 3px solid var(--kraft); }

/* ---------------------------------------------------------------- places */
.places { background: var(--paper); padding-top: 0; }
.places-in { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.places figure { margin: 0; }
.places img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; background: var(--concrete); }
.places figcaption { margin-top: 14px; }
.places h3 { font-size: 26px; }
.places p { margin-top: 6px; font-size: 16px; color: var(--ink-2); }

/* ---------------------------------------------------------------- master data */
.md { background: var(--white); }
.md-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.md-copy > p { margin-top: 20px; color: var(--ink-2); max-width: 32em; }
.md-copy > .small { margin-top: 18px; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: 6px; width: 14px; height: 8px; border-left: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(-45deg); }

.md-table { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); }
.md-table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.md-table th { text-align: left; font-weight: 600; font-size: 13.5px; color: var(--muted); padding: 12px 14px; background: var(--paper); border-bottom: 1px solid var(--line); white-space: nowrap; }
.md-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.md-table tr:last-child td { border-bottom: 0; }
.md-table .n { text-align: right; font-variant-numeric: tabular-nums; }
.md-table td.n { font-size: 17px; font-weight: 600; }
.md-table .name { font-weight: 600; }
.md-table .meta { display: block; color: var(--muted); font-size: 13.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.md-table td:first-child { min-width: 210px; }
.md-table .note { display: block; color: var(--ink-2); font-size: 13.5px; margin-top: 4px; }
.status { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; white-space: nowrap; }
.status::before { content: ''; width: 9px; height: 9px; background: var(--c); }
.st-OK { --c: var(--ok); }
.st-OK::before { border-radius: 50%; }
.st-CAN_INCREASE { --c: var(--increase); }
.st-CAN_INCREASE::before { border-radius: 2px; }
.st-IMPOSSIBLE { --c: var(--impossible); }
.st-IMPOSSIBLE::before { transform: rotate(45deg); width: 8px; height: 8px; }
.st-NO_MASTER_DATA { --c: var(--nomd); color: var(--ink-2); }
.st-NO_MASTER_DATA::before { border-radius: 50%; }

/* ---------------------------------------------------------------- orders */
.orders { background: var(--concrete); }
.orders-in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: center; }
.order-stage { margin: 0; position: relative; }
#order-canvas { display: block; width: 100%; height: 520px; }
.replay { position: absolute; right: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid #c4cad0; background: var(--white); border-radius: 999px; padding: 6px 14px 6px 10px; font: 500 14px var(--body); color: var(--ink-2); cursor: pointer; }
.replay:hover { border-color: var(--ink-2); color: var(--ink); }
.replay svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.orders-copy > p { margin-top: 20px; color: var(--ink-2); }
.orders-copy > .small { margin-top: 22px; }
.orders-copy > .order-proven { margin-top: 12px; }
.order-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 28px 0 0; background: var(--line); border-radius: var(--r); overflow: hidden; }
.order-facts div { background: var(--white); padding: 12px 14px; }
.order-facts dt { font-size: 13.5px; color: var(--muted); }
.order-facts dd { margin: 2px 0 0; font: 600 26px/1.1 var(--display); font-variant-numeric: tabular-nums; }
.legend { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; font-size: 14.5px; }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend i { width: 12px; height: 12px; border-radius: 2px; background: var(--c); flex: none; }
.legend span { color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- app */
.app { background: var(--paper); }
.tabs { display: inline-flex; gap: 2px; background: var(--concrete); padding: 3px; border-radius: 8px; margin-bottom: 18px; }
.tabs button { border: 0; background: transparent; padding: 7px 16px; border-radius: 6px; cursor: pointer; font: 500 15px var(--body); color: var(--ink-2); }
.tabs button[aria-selected='true'] { background: var(--ink); color: var(--white); }
.frame { border-radius: 10px; overflow: hidden; background: var(--ink); box-shadow: 0 30px 60px -30px rgba(31, 38, 45, 0.45); }
.frame-bar { display: flex; gap: 7px; padding: 11px 14px; }
.frame-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3d4852; }

/* ---------------------------------------------------------------- proof */
.proof { background: var(--ink); color: #e7ebee; }
.proof .sec-head p { color: #b7c0c8; }
.proof h3 { font-size: 30px; color: var(--white); }
.proof-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; }
.figure-block > p { margin-top: 12px; color: #b7c0c8; font-size: 16.5px; }
.figure-block > .small { color: #8f9aa4; margin-top: 16px; }
.figures { margin: 24px 0 0; display: grid; gap: 0; }
.figures div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line-dark); }
.figures dt { color: #c9d0d6; }
.figures dd { margin: 0; font: 700 44px/1 var(--display); color: var(--yellow); font-variant-numeric: tabular-nums; }

.chart { margin-top: 22px; position: relative; }
.bar-row { display: grid; grid-template-columns: 170px minmax(0, 1fr) 72px; align-items: center; gap: 12px; padding: 5px 0; border-radius: 4px; }
.bar-row:hover { background: rgba(255, 255, 255, 0.04); }
.bar-label { font-size: 14.5px; color: #c9d0d6; line-height: 1.2; }
.bar-label small { display: block; font-size: 12.5px; color: #8f9aa4; }
.bar-track { position: relative; height: 18px; }
.bar { position: absolute; left: 0; top: 3px; height: 12px; border-radius: 0 4px 4px 0; background: #6b7782; transform-origin: left; }
.bar-row.ours .bar { background: var(--yellow); }
.bar-row.ours .bar-label { color: var(--white); font-weight: 600; }
.bar-val { font-size: 14.5px; text-align: right; font-variant-numeric: tabular-nums; color: #c9d0d6; }
.bar-row.ours .bar-val { color: var(--white); font-weight: 600; }
.chart-axis { display: grid; grid-template-columns: 170px minmax(0, 1fr) 72px; gap: 12px; margin-top: 4px; font-size: 12.5px; color: #8f9aa4; }
.chart-axis .ticks-row { position: relative; height: 16px; border-top: 1px solid var(--line-dark); }
.chart-axis .ticks-row span { position: absolute; top: 2px; transform: translateX(-50%); font-variant-numeric: tabular-nums; }
.chart-tip { position: absolute; z-index: 3; pointer-events: none; background: var(--white); color: var(--ink); font-size: 13.5px; line-height: 1.35; padding: 8px 10px; border-radius: 6px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3); white-space: nowrap; }
.chart-tip b { display: block; }
.chart.animate .bar { animation: grow 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: calc(var(--i) * 60ms); }
@keyframes grow { from { transform: scaleX(0); } }

/* ---------------------------------------------------------------- questions */
.faq { background: var(--paper); }
.qa-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; border-top: 2px solid var(--ink); }
.qa { padding: 22px 0 24px; border-bottom: 1px solid var(--line); }
.qa h3 { font-size: 25px; line-height: 1.1; }
.qa p { margin-top: 10px; font-size: 16.5px; color: var(--ink-2); }

/* ---------------------------------------------------------------- integrate */
.integrate { background: var(--white); }
.integrate-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.int-copy > p { margin-top: 20px; color: var(--ink-2); }
.ways { margin: 26px 0 0; display: grid; gap: 0; }
.ways div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.ways dt { font: 600 21px/1.2 var(--display); }
.ways dd { margin: 0; color: var(--ink-2); font-size: 16px; }
.code { background: var(--ink); border-radius: 10px; padding: 14px; min-width: 0; }
.tabs-dark { background: #2b343d; margin-bottom: 6px; }
.tabs-dark button { color: #b7c0c8; }
.tabs-dark button[aria-selected='true'] { background: var(--yellow); color: #231c00; }
.code pre { margin: 0; padding: 14px 8px 8px; overflow-x: auto; color: #e7ebee; font: 14px/1.65 ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace; }
.code .c { color: #8f9aa4; }
.code .k { color: #f2c200; }
.code .s { color: #9fd3a8; }
.code .n { color: #f0b37e; }
.code .ok { color: #7dd3a0; }
.code .inc { color: #8db8ff; }
.code .bad { color: #ff8f87; }

/* ---------------------------------------------------------------- trial */
.trial { background: var(--yellow); position: relative; }
.trial::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 14px;
  background: repeating-linear-gradient(-45deg, var(--ink) 0 14px, var(--yellow) 14px 28px);
}
.trial-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.trial-copy > p { margin-top: 20px; font-size: 19px; color: #2b2400; max-width: 28em; }
.steps { margin: 32px 0 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 18px; }
.steps li { counter-increment: step; position: relative; padding-left: 52px; color: #2b2400; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -2px; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ink); color: var(--yellow); font: 700 20px/1 var(--display);
}
.steps b { color: var(--ink); }

.form { background: var(--white); border-radius: 10px; padding: 32px; display: grid; gap: 18px; box-shadow: 0 30px 60px -36px rgba(60, 45, 0, 0.6); position: relative; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > span, .field legend { font-size: 14.5px; font-weight: 600; color: var(--ink); padding: 0; }
.field i { font-style: normal; font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: 400 16px/1.4 var(--body); color: var(--ink); background: var(--paper);
  border: 1px solid #c4cad0; border-radius: var(--r); padding: 11px 12px; min-height: 46px;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: var(--white); border-color: var(--ink-2); box-shadow: 0 0 0 3px rgba(31, 102, 209, 0.2); }
.field [aria-invalid='true'] { border-color: var(--impossible); background: #fff6f5; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; gap: 7px; border: 1px solid #c4cad0; border-radius: 999px; padding: 7px 14px 7px 11px; font-size: 15px; color: var(--ink-2); background: var(--white); }
.choice span::before { content: ''; width: 14px; height: 14px; border: 1.5px solid #9aa3ab; border-radius: 3px; background: var(--white); }
.choice input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--white); }
.choice input:checked + span::before { border-color: var(--yellow); background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%231f262d' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.choice input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.consent input[aria-invalid='true'] { outline: 2px solid var(--impossible); outline-offset: 2px; }
.form-error { color: var(--impossible); font-weight: 600; font-size: 15px; }
.form .btn-dark { justify-self: start; min-width: 200px; }
.form .form-note { margin-top: -6px; max-width: 34em; }
.form-done { position: absolute; inset: 0; background: var(--white); border-radius: 10px; padding: 32px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.form-done h3 { font-size: 40px; }
.form-done p { color: var(--ink-2); max-width: 30em; }

/* ---------------------------------------------------------------- footer */
.foot { background: var(--ink); color: #b7c0c8; padding: 40px 0; font-size: 15px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; }
.foot .brand { color: #eef1f3; }
.foot a { color: #eef1f3; }
.foot .copy { margin-left: auto; }
.legal { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 28px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line-dark); font-size: 13.5px; color: #8f9aa4; }
.legal dl { display: flex; flex-wrap: wrap; gap: 6px 24px; margin: 0; }
.legal dl div { display: flex; gap: 6px; }
.legal dd { margin: 0; color: #c9d0d6; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .nav-in { position: relative; gap: 12px; }
  .nav-toggle { display: inline-flex; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; gap: 0; position: absolute; top: 63px; left: 0; right: 0;
    margin: 0; padding: 8px var(--gutter) 14px; background: var(--ink); border-bottom: 3px solid var(--yellow);
  }
  .nav-links.open a { padding: 12px 0; font-size: 17px; color: #eef1f3; border-top: 1px solid #36404a; }
  .nav-links.open a:first-child { border-top: 0; }
  .hero-in, .md-in, .orders-in, .proof-grid, .integrate-in, .trial-in { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero h1 { max-width: none; }
  .use { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .use h4 { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .places-in { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 720px) {
  :root { --gutter: 16px; font-size: 16px; }
  .nav-cta { white-space: nowrap; }
  section { padding: 72px 0; }
  .hero { padding: 36px 0 32px; }
  #hero-canvas { height: 430px; min-height: 0; }
  .md-table thead { display: none; }
  .md-table table, .md-table tbody, .md-table tr, .md-table td { display: block; }
  .md-table tr { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); padding: 12px 14px; gap: 6px 12px; }
  .md-table tr:last-child { border-bottom: 0; }
  .md-table td { padding: 0; border: 0; }
  .md-table td:first-child, .md-table td:last-child { grid-column: 1 / -1; min-width: 0; }
  .md-table td.n { text-align: left; }
  .md-table td.n::before { content: attr(data-label); display: block; font-size: 13px; font-weight: 400; color: var(--muted); }
  #order-canvas { height: 360px; }
  .readout { grid-template-columns: minmax(0, 1fr); }
  .ro-facts { grid-template-columns: 1fr 1fr; }
  .use-group { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .use { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .row2 { grid-template-columns: minmax(0, 1fr); }
  .form { padding: 22px 18px; }
  .bar-row, .chart-axis { grid-template-columns: 112px minmax(0, 1fr) 46px; gap: 8px; }
  .ways div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .legend { grid-template-columns: minmax(0, 1fr); }
  .qa-list { grid-template-columns: minmax(0, 1fr); }
  .foot .copy { margin-left: 0; }
}
/* Without JavaScript the canvases show their text fallback: the same engine answers, as plain text. */
@media (scripting: none) {
  #hero-canvas, #order-canvas { height: auto; min-height: 0; }
  #hero-canvas ul, #order-canvas p { margin: 12px 0 0; color: var(--ink-2); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .chart.animate .bar { animation: none; }
}
@media (max-width: 440px) {
  .nav-cta .long, .nav-toggle-text { display: none; }
  .nav-toggle { padding: 0 10px; }
}

/* Honeypot for the trial form: off screen for people, still filled in by bots. */
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
