:root {
  --sans: "GeneralSans-Variable", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrainsMono-Variable", ui-monospace, Menlo, monospace;
  --ink: #12151c;
  --ink-2: #4a515e;
  --line: #dde1e8;
  --paper: #ffffff;
  --paper-2: #f5f6f8;
  --navy: #141925;
  --navy-2: #1b2130;
  --navy-line: rgba(159, 176, 212, .18);
  --on-navy: #eef1f7;
  --on-navy-2: #a9b4c8;
  --blue: #3358d4;
  --blue-hover: #2847b5;
  --blue-soft: #8fa6f0;
  --wrap: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; font: 400 17px/1.6 var(--sans); color: var(--ink); background: var(--paper);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.dark :focus-visible { outline-color: var(--blue-soft); }
.mono { font-family: var(--mono); font-size: .88em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 20; background: #fff; padding: 8px 12px; }

h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -.02em; text-wrap: balance; }
h2 { font-size: clamp(26px, 3.1vw, 38px); line-height: 1.18; max-width: 30ch; }
h3 { font-size: 19px; line-height: 1.3; letter-spacing: -.01em; }
p { margin: 0 0 1em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 20px;
  background: var(--blue); color: #fff; font: 500 15px var(--sans); text-decoration: none;
  border: 0; border-radius: 2px; cursor: pointer; transition: background-color .15s ease;
}
.btn:hover { background: var(--blue-hover); color: #fff; }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 16px; }
.btn-ghost {
  display: inline-flex; align-items: center; min-height: 52px; padding: 0 4px;
  color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--line);
  text-underline-offset: 6px; text-decoration-thickness: 2px;
}
.btn-ghost:hover { text-decoration-color: var(--blue); color: var(--ink); }
.link { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; padding: 10px 4px; }
.link:hover { color: var(--blue); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .94); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(6px); }
.nav-in { display: flex; align-items: center; gap: 36px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 18px; letter-spacing: -.01em; }
.brand img { border-radius: 2px; }
/* The byline shares the wordmark's baseline. Centering the two boxes set it 2.6px high. */
.brand-name { display: flex; align-items: baseline; gap: 10px; }
.brand-by { font: 400 12px var(--mono); color: var(--ink-2); letter-spacing: .02em; }
.nav nav { display: flex; gap: 26px; }
.nav nav a { color: var(--ink); text-decoration: none; font-size: 15px; padding: 10px 0; }
.nav nav a:hover { color: var(--blue); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 22px; }
@media (max-width: 1020px) { .nav nav { display: none; } }
/* Up to 1058px the byline wrapped onto two lines and pushed the section links onto two lines. */
@media (max-width: 1080px) { .brand-by { display: none; } }
/* Phones keep Sign in in the bar; the pilot button drops its arrow to fit. */
@media (max-width: 520px) {
  .nav-in { gap: 12px; }
  .nav-cta { gap: 6px; }
  .nav-cta .link { padding: 10px 8px; min-height: 44px; display: inline-flex; align-items: center; }
  .nav-cta .btn { padding: 0 14px; min-height: 44px; }
  .nav-cta .btn span { display: none; }
}
@media (max-width: 360px) { .brand span:not(.brand-by) { display: none; } }

/* ---------- hero ---------- */
/* Phones and tablets: headline, then the product demo, then the pitch. The
   sticky header keeps "Request a pilot" in reach while the demo sits above
   the fold. Wide screens: text on the left, demo on the right. */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 104px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "demo" "body"; gap: 32px; }
.hero-head { grid-area: head; }
.hero-demo { grid-area: demo; }
.hero-body { grid-area: body; border-top: 1px solid var(--ink); padding-top: 28px; display: grid; gap: 28px; }
.kind { font: 500 13px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 10px; }
.wordmark { font-size: clamp(60px, 14vw, 132px); font-weight: 300; line-height: .92; letter-spacing: -.05em; margin: 0 0 clamp(20px, 4vw, 36px); margin-left: -.06em; }
.hero h1 { font-size: clamp(26px, 3.3vw, 40px); line-height: 1.16; max-width: 27ch; }
/* The business case: why a hand-built BOM costs weeks, with the estimate open
   to inspection. On phones it sits between the headline and the demo. */
.fn-ref { color: inherit; text-decoration: none; font-size: .55em; vertical-align: super; line-height: 0; margin-left: 1px; }
.fn-ref:hover { color: var(--blue); }
.hero-case { margin-top: 14px; max-width: 60ch; }
.case-how:target summary { text-decoration: underline; text-underline-offset: 3px; }
.case-how { margin-top: 6px; font-size: 14px; color: var(--ink-2); }
.case-how summary {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer;
  color: var(--blue); font-weight: 500; list-style: none;
}
.case-how summary::-webkit-details-marker { display: none; }
.case-how summary::before {
  content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0;
  transform: rotate(-45deg); transition: transform 150ms ease-out;
}
.case-how[open] summary::before { transform: rotate(45deg); }
.case-how summary:hover { text-decoration: underline; text-underline-offset: 3px; }
.case-how table { width: 100%; border-collapse: collapse; margin: 4px 0 12px; font-size: 13.5px; }
.case-how caption { text-align: left; padding: 10px 0 4px; font-weight: 600; color: var(--ink); }
.case-how th, .case-how td { text-align: left; padding: 7px 10px 7px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.case-how thead th { font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.case-how tfoot th, .case-how tfoot td { color: var(--ink); font-weight: 600; border-bottom: 0; }
.case-how .n { text-align: right; padding-right: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.case-how p { margin: 0; line-height: 1.5; }
.lede { font-size: 19px; line-height: 1.55; color: var(--ink-2); margin: 0; max-width: 58ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 18px 26px; align-items: center; }
.hero-signin { flex: 1 0 100%; margin: 0; font-size: 15px; color: var(--ink-2); }
.hero-signin a { font-weight: 500; }
@media (min-width: 720px) and (max-width: 1179px) {
  .hero-body { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: end; gap: 40px; }
  .hero-cta { justify-content: flex-end; }
  .hero-signin { text-align: right; }
}
/* Two columns only from 1180 px: below that the right column is too narrow
   for the window's full layout, and its card would cover content. */
@media (min-width: 1180px) {
  .hero-grid {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    grid-template-rows: auto 1fr;
    grid-template-areas: "head demo" "body demo";
    column-gap: 56px; row-gap: 28px; align-items: start;
  }
  .hero { padding-top: clamp(40px, 4vw, 64px); }
  .hero-demo { align-self: center; }
  .wordmark { font-size: clamp(64px, 6.6vw, 100px); }
  .hero h1 { font-size: clamp(28px, 2.6vw, 38px); max-width: 32ch; }
  .lede { font-size: 18px; }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- hero demo: a simplified Manifest window (hero-demo.js) ----------
   JS only advances data-scene when a step's progress bar finishes; each
   scene's choreography is CSS keyed on that attribute, so leaving a scene
   resets it and entering replays it. */
.hero-demo {
  --e: cubic-bezier(.2, .8, .2, 1);
  --app-accent: #2563a8; --app-accent-subtle: #ecf3f9; --graphite: #1c2127; --rail: #171c21;
  --ok: #176749; --warn: #b45309; --ph: #e4e7ec;
  --scene: 5.2s;
  position: relative; padding: 36px 32px 20px;
  background-color: #f2f4f7; border: 1px solid var(--line);
  background-image: linear-gradient(rgba(18,21,28,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(18,21,28,.045) 1px, transparent 1px);
  background-size: 32px 32px; background-position: -1px -1px;
}
.demo { position: relative; margin: 0 0 60px; container-type: inline-size; }
.dw {
  background: #fff; border-radius: 10px; overflow: hidden; font-size: 13px; line-height: 1.35; color: #171717;
  border: 1px solid rgba(18,21,28,.1);
  box-shadow: 0 1px 2px rgba(18,21,28,.06), 0 28px 60px -24px rgba(18,21,28,.38);
}
.dw-top { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; background: var(--graphite); color: #fff; }
.dw-top img { border-radius: 3px; }
.dw-top b { font-weight: 600; font-size: 13px; }
.dw-org { color: #9fadba; font: 400 11px var(--mono); margin-left: 6px; padding-left: 10px; border-left: 1px solid #37424d; }
.dw-avatar { margin-left: auto; width: 22px; height: 22px; border-radius: 50%; background: #37424d; color: #e7edf2; font: 600 9px var(--sans); font-style: normal; display: grid; place-items: center; }
.dw-body { display: flex; }
.dw-rail { flex: none; width: 150px; background: var(--rail); padding: 12px 10px; display: grid; gap: 8px; align-content: start; }
.dw-rail i { display: block; height: 22px; border-radius: 4px; background: linear-gradient(90deg, rgba(255,255,255,.14) 0 58%, transparent 58%); background-size: 100% 6px; background-repeat: no-repeat; background-position: 10px center; }
.dw-rail i.on { background-color: rgba(255,255,255,.08); }
.dw-main { position: relative; flex: 1; min-width: 0; padding: 14px 18px 18px; }
.dw-steps { list-style: none; margin: 0 0 14px; padding: 0 0 12px; display: flex; gap: 14px; border-bottom: 1px solid rgba(18,21,28,.1); font: 500 10.5px var(--mono); letter-spacing: .05em; text-transform: uppercase; color: #6b7280; }
.dw-steps li { display: flex; align-items: center; gap: 6px; white-space: nowrap; transition: color .2s ease-out; }
.dw-steps li i { font-style: normal; width: 17px; height: 17px; border-radius: 50%; border: 1px solid #b9c0ca; display: grid; place-items: center; font-size: 9.5px; transition: background-color .2s ease-out, border-color .2s ease-out, color .2s ease-out; }
.demo[data-scene="1"] .dw-steps li:nth-child(1), .demo[data-scene="2"] .dw-steps li:nth-child(2),
.demo[data-scene="3"] .dw-steps li:nth-child(3), .demo[data-scene="4"] .dw-steps li:nth-child(4) { color: var(--app-accent); }
.demo[data-scene="1"] .dw-steps li:nth-child(1) i, .demo[data-scene="2"] .dw-steps li:nth-child(2) i,
.demo[data-scene="3"] .dw-steps li:nth-child(3) i, .demo[data-scene="4"] .dw-steps li:nth-child(4) i { background: var(--app-accent); border-color: var(--app-accent); color: #fff; }
.demo[data-scene="2"] .dw-steps li:nth-child(-n+1) i, .demo[data-scene="3"] .dw-steps li:nth-child(-n+2) i,
.demo[data-scene="4"] .dw-steps li:nth-child(-n+3) i { border-color: var(--ok); color: var(--ok); }
.demo[data-scene="2"] .dw-steps li:nth-child(-n+1), .demo[data-scene="3"] .dw-steps li:nth-child(-n+2),
.demo[data-scene="4"] .dw-steps li:nth-child(-n+3) { color: #171717; }

.dw-scenes { position: relative; height: 262px; }
.sc { position: absolute; inset: 0; visibility: hidden; opacity: 0; }
.demo[data-scene="1"] .sc1, .demo[data-scene="2"] .sc2, .demo[data-scene="3"] .sc3, .demo[data-scene="4"] .sc4 { visibility: visible; animation: d-in .28s var(--e) both; }
.sc-h { margin: 0 0 12px; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.sc-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.sc-row .sc-h { margin: 0; }
.ph { display: block; height: 7px; border-radius: 4px; background: var(--ph); }
.w35 { width: 35%; } .w45 { width: 45%; } .w55 { width: 55%; } .w70 { width: 70%; } .w80 { width: 80%; }
.file-ic { flex: none; display: grid; place-items: center; width: 34px; height: 40px; border-radius: 4px; background: #eef1f5; border: 1px solid #d5dae1; font: 600 8.5px var(--mono); color: #4a515e; }
.file-ic.xl { background: #e7f2ec; border-color: #b9d8c6; color: #1f6e43; }
.file-ic.dim { opacity: .55; }
.ui-btn { position: relative; display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 4px; background: var(--app-accent); color: #fff; font-size: 12px; font-weight: 500; white-space: nowrap; }
.ui-btn::after { content: ""; position: absolute; inset: -3px; border-radius: 7px; border: 2px solid var(--app-accent); opacity: 0; }

/* scene 0: the same machine before and after. Two panels hold the totals and
   their parts; the scale underneath draws both on one time axis, where
   2 minutes is a sliver of 98 hours (0.03%, drawn at the 3 px minimum). */
.sc0 { padding: 14px 18px 18px; background: #fff; z-index: 1; }
.demo[data-scene="0"] .sc0 { visibility: visible; animation: d-in .28s var(--e) both; }
.ba { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ba-col { min-width: 0; padding: 10px 12px 11px; border: 1px solid; border-radius: 8px; }
.ba-before { background: #fbf4ec; border-color: #ecd6bd; }
.ba-after { background: #edf6f1; border-color: #c3dfce; }
.ba-tag { margin: 0; font: 500 10px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.ba-before .ba-tag { color: #8a3f08; }
.ba-after .ba-tag { color: var(--ok); }
.ba-big { margin: 4px 0 0; font-size: 26px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; white-space: nowrap; }
.ba-before .ba-big { color: #7c3d0c; }
.ba-after .ba-big { color: #0f5238; }
.ba-sub { margin: 2px 0 8px; font-size: 11.5px; color: #4a515e; }
.ba-rows { list-style: none; margin: 0; padding: 7px 0 0; display: grid; gap: 4px; border-top: 1px solid rgba(18,21,28,.1); }
.ba-rows li { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; color: #4a515e; }
.ba-rows span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ba-rows b { font: 500 11px var(--mono); color: #171717; white-space: nowrap; }
.ba-scale { display: grid; gap: 6px; margin-top: 12px; }
.ba-scale p { display: grid; grid-template-columns: 60px minmax(0, 1fr) 44px; gap: 10px; align-items: center; margin: 0; font-size: 11.5px; color: #4a515e; }
.ba-scale b { justify-self: end; font: 500 11px var(--mono); color: #171717; white-space: nowrap; }
.ba-bar { position: relative; display: block; height: 8px; border-radius: 2px; background: #f1f3f6; }
.ba-bar s { position: absolute; top: 0; bottom: 0; left: 0; width: 100%; border-radius: 2px; background: var(--warn); transform-origin: left; transform: scaleX(0); }
.ba-bar-after s { width: 3px; background: var(--ok); }
.demo[data-scene="0"] .ba-before { animation: d-in .35s var(--e) .25s both; }
.demo[data-scene="0"] .ba-after { animation: d-in .35s var(--e) 1.3s both; }
.demo[data-scene="0"] .ba-before .ba-rows li { animation: d-in .3s var(--e) both; }
.demo[data-scene="0"] .ba-before .ba-rows li:nth-child(1) { animation-delay: .45s; }
.demo[data-scene="0"] .ba-before .ba-rows li:nth-child(2) { animation-delay: .6s; }
.demo[data-scene="0"] .ba-before .ba-rows li:nth-child(3) { animation-delay: .75s; }
.demo[data-scene="0"] .ba-before .ba-rows li:nth-child(4) { animation-delay: .9s; }
.demo[data-scene="0"] .ba-after .ba-rows li { animation: d-in .3s var(--e) both; }
.demo[data-scene="0"] .ba-after .ba-rows li:nth-child(1) { animation-delay: 1.5s; }
.demo[data-scene="0"] .ba-after .ba-rows li:nth-child(2) { animation-delay: 1.65s; }
.demo[data-scene="0"] .ba-after .ba-rows li:nth-child(3) { animation-delay: 1.8s; }
.demo[data-scene="0"] .ba-after .ba-rows li:nth-child(4) { animation-delay: 1.95s; }
.demo[data-scene="0"] .ba-scale p { animation: d-in .3s var(--e) 2.6s both; }
.demo[data-scene="0"] .ba-bar s { animation: d-fill .9s cubic-bezier(.45,0,.2,1) 2.8s both; }
.demo[data-scene="0"] .ba-bar-after s { animation-duration: .3s; animation-delay: 3.8s; }
.demo[data-scene="0"] .co0 { animation: d-pop .4s var(--e) 4.4s both; }

/* scene 1: upload */
.drop { border: 1.5px dashed #b9c0ca; border-radius: 8px; padding: 16px; display: grid; gap: 12px; background: #fafbfc; }
.zip { display: flex; align-items: center; gap: 10px; }
.zip-name { font: 500 12px var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zip-size { margin-left: auto; color: #6b7280; font-size: 12px; }
.prog { height: 6px; border-radius: 3px; background: #e4e7ec; overflow: hidden; }
.prog i { display: block; height: 100%; background: var(--app-accent); transform-origin: left; transform: scaleX(0); }
.dstats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.dstats p { margin: 0; border: 1px solid rgba(18,21,28,.1); border-radius: 6px; padding: 10px 12px; }
.dstats b { display: block; font-size: 22px; font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.dstats span { color: #6b7280; font-size: 11.5px; }
.demo[data-scene="1"] .zip { animation: d-drop .5s var(--e) .25s both; }
.demo[data-scene="1"] .prog i { animation: d-fill 1.3s cubic-bezier(.45,0,.2,1) .8s both; }
.demo[data-scene="1"] .drop { animation: d-done .3s ease-out 2.1s both; }
.demo[data-scene="1"] .dstats p { animation: d-in .4s var(--e) both; }
.demo[data-scene="1"] .dstats p:nth-child(1) { animation-delay: 2.2s; }
.demo[data-scene="1"] .dstats p:nth-child(2) { animation-delay: 2.35s; }
.demo[data-scene="1"] .dstats p:nth-child(3) { animation-delay: 2.5s; }

/* scene 2: validation */
.asm { list-style: none; margin: 0; padding: 0; border: 1px solid rgba(18,21,28,.1); border-radius: 6px; overflow: hidden; }
.asm li { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 12px; }
.asm li + li { border-top: 1px solid rgba(18,21,28,.08); }
.asm .ph { flex: 1; max-width: 45%; }
.asm-name { font: 500 11.5px var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.asm .meta { margin-left: auto; color: #6b7280; font: 400 10.5px var(--mono); white-space: nowrap; }
.cb { flex: none; position: relative; width: 14px; height: 14px; border: 1.5px solid #9aa3ad; border-radius: 3px; background: #fff; }
.cb::after { content: ""; position: absolute; left: 3px; top: 0; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); }
.sc-foot { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.result { display: flex; align-items: center; gap: 7px; font-size: 12px; color: #4a515e; }
.ok-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.demo[data-scene="2"] .asm li { animation: d-in .35s var(--e) both; }
.demo[data-scene="2"] .asm li:nth-child(2) { animation-delay: .08s; }
.demo[data-scene="2"] .asm li:nth-child(3) { animation-delay: .16s; }
.demo[data-scene="2"] .asm li:nth-child(4) { animation-delay: .24s; }
.demo[data-scene="2"] .pick { animation: d-in .35s var(--e) .08s both, d-hl .25s ease-out 1s both; }
.demo[data-scene="2"] .pick .cb { animation: d-cb .2s ease-out 1s both; }
.demo[data-scene="2"] .pick .cb::after { animation: d-tick .25s var(--e) 1.05s both; }
.demo[data-scene="2"] .run { animation: d-press .3s ease-in-out 1.7s both; }
.demo[data-scene="2"] .run::after { animation: d-ring .6s ease-out 1.7s both; }
.demo[data-scene="2"] .result { animation: d-in .35s var(--e) 2.15s both; }

/* scene 3: creation */
.qty { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: #4a515e; }
.qty b { position: relative; display: inline-grid; min-width: 52px; height: 28px; padding: 0 8px; border: 1px solid #b9c0ca; border-radius: 4px; font: 500 12px var(--mono); color: #171717; align-items: center; justify-items: end; }
.qty s, .qty em, .bom s, .bom em { grid-area: 1 / 1; text-decoration: none; font-style: normal; }
.bom { border: 1px solid rgba(18,21,28,.1); border-radius: 6px; overflow: hidden; font-size: 12px; }
.br { display: grid; grid-template-columns: 62px minmax(0, 1fr) 46px 58px; gap: 12px; align-items: center; height: 36px; padding: 0 12px; }
.br + .br { border-top: 1px solid rgba(18,21,28,.08); }
.bh { height: 30px; background: #f6f7f8; font: 600 9.5px var(--mono); letter-spacing: .04em; color: #4a515e; }
.br .code { font: 500 11.5px var(--mono); }
.br .n { display: grid; justify-items: end; font: 400 11.5px var(--mono); font-variant-numeric: tabular-nums; }
.bom em { opacity: 0; }
.demo[data-scene="3"] .br { animation: d-in .35s var(--e) both; }
.demo[data-scene="3"] .br:nth-child(3) { animation-delay: .06s; }
.demo[data-scene="3"] .br:nth-child(4) { animation-delay: .12s; }
.demo[data-scene="3"] .br:nth-child(5) { animation-delay: .18s; }
.demo[data-scene="3"] .qty b { animation: d-focus .3s ease-out .9s both; }
.demo[data-scene="3"] .qty s { animation: d-out .15s ease-out 1.2s both; }
.demo[data-scene="3"] .qty em { animation: d-in .25s var(--e) 1.3s both; }
.demo[data-scene="3"] .bom s { animation: d-out .15s ease-out both; }
.demo[data-scene="3"] .bom em { animation: d-flip .35s var(--e) both; }
.demo[data-scene="3"] .br:nth-child(2) .n s, .demo[data-scene="3"] .br:nth-child(2) .n:nth-child(3) em { animation-delay: 1.6s; }
.demo[data-scene="3"] .br:nth-child(3) .n s, .demo[data-scene="3"] .br:nth-child(3) .n:nth-child(3) em { animation-delay: 1.7s; }
.demo[data-scene="3"] .br:nth-child(4) .n s, .demo[data-scene="3"] .br:nth-child(4) .n:nth-child(3) em { animation-delay: 1.8s; }
.demo[data-scene="3"] .br:nth-child(5) .n s, .demo[data-scene="3"] .br:nth-child(5) .n:nth-child(3) em { animation-delay: 1.9s; }
.demo[data-scene="3"] .br:nth-child(2) .n:nth-child(4) em { animation-delay: 2s; }
.demo[data-scene="3"] .br:nth-child(3) .n:nth-child(4) em { animation-delay: 2.1s; }
.demo[data-scene="3"] .br:nth-child(4) .n:nth-child(4) em { animation-delay: 2.2s; }
.demo[data-scene="3"] .br:nth-child(5) .n:nth-child(4) em { animation-delay: 2.3s; }

/* scene 4: SAP load */
.dl { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid rgba(18,21,28,.1); border-radius: 6px; }
.dl + .dl { margin-top: 8px; }
.dl p { margin: 0; flex: 1; min-width: 0; display: grid; gap: 4px; }
.dl b { font-size: 12.5px; font-weight: 600; }
.dl.main b { font-family: var(--mono); font-weight: 500; font-size: 12px; }
.dl p span { font-size: 11.5px; color: #6b7280; }
.dl.main { border-color: rgba(37,99,168,.35); background: var(--app-accent-subtle); }
.dl.main p span { color: #4a515e; } /* 4.32:1 in the lighter grey on this tint */
.dl-btn { display: inline-grid; }
.dl-btn .a, .dl-btn .b { grid-area: 1 / 1; text-align: center; }
.dl-btn .b { opacity: 0; }
.demo[data-scene="4"] .dl { animation: d-in .35s var(--e) both; }
.demo[data-scene="4"] .dl:nth-child(3) { animation-delay: .08s; }
.demo[data-scene="4"] .dl:nth-child(4) { animation-delay: .16s; }
.demo[data-scene="4"] .dl-btn { animation: d-press .3s ease-in-out 1.2s both, d-okbg .25s ease-out 1.8s both; }
.demo[data-scene="4"] .dl-btn::after { animation: d-ring .6s ease-out 1.2s both; }
.demo[data-scene="4"] .dl-btn .a { animation: d-out .15s ease-out 1.75s both; }
.demo[data-scene="4"] .dl-btn .b { animation: d-in .25s var(--e) 1.8s both; }

/* callouts: one card per moment, hanging below the window's bottom edge so
   it never covers the step's content. .demo's 60 px bottom margin makes the
   room: it collapses with the tabs' 26 px top margin, so 40 would not do. */
.callouts { position: absolute; left: -24px; bottom: -40px; width: 250px; height: 58px; pointer-events: none; }
.co {
  position: absolute; inset: auto 0 0 0; margin: 0; display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; background: #fff; border-radius: 10px; border: 1px solid rgba(18,21,28,.08);
  box-shadow: 0 2px 4px rgba(18,21,28,.06), 0 16px 36px -12px rgba(18,21,28,.35);
  font-size: 12px; line-height: 1.35; color: #4a515e; opacity: 0;
}
.co b { display: block; font-size: 13px; color: #171717; font-weight: 600; }
.co-ic { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 700 13px var(--sans); font-style: normal; color: #fff; }
.co-ic.ok { background: var(--ok); }
.co-ic.warn { background: var(--warn); }
.demo[data-scene="1"] .co1 { animation: d-pop .4s var(--e) 2.8s both; }
.demo[data-scene="2"] .co2a { animation: d-pop .4s var(--e) 2.5s both, d-out .2s ease-out 3.75s forwards; }
.demo[data-scene="2"] .co2b { animation: d-pop .4s var(--e) 3.85s both; }
.demo[data-scene="3"] .co3 { animation: d-pop .4s var(--e) 2.5s both; }
.demo[data-scene="4"] .co4 { animation: d-pop .4s var(--e) 2.2s both; }

/* step tabs under the window: tap to jump, bar shows time left in the step */
.demo-ctl { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) 44px; gap: 8px; margin-top: 26px; align-items: start; }
.hero-demo:not(.is-ready) .demo-ctl { visibility: hidden; }
.demo-tab {
  display: grid; gap: 9px; align-content: start; min-height: 44px; padding: 0 0 6px; background: none; border: 0; cursor: pointer;
  font: 500 13px var(--sans); line-height: 1.25; color: var(--ink-2); text-align: left;
}
/* A small step number over a label that may wrap to two lines; the Before/After
   tab keeps an empty number line so every label starts at the same height. */
.demo-tab .t { display: grid; gap: 3px; }
.demo-tab .t-n { min-height: 1.2em; font: 500 10px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: #5b6270; }
.demo-tab:hover, .demo-tab[aria-pressed="true"] { color: var(--ink); }
.demo-tab .bar { display: block; height: 3px; border-radius: 2px; background: rgba(18,21,28,.12); overflow: hidden; }
.demo-tab .bar i { display: block; height: 100%; background: var(--blue); transform-origin: left; transform: scaleX(0); }
.demo-tab.done .bar i { transform: none; }
.demo-tab[aria-pressed="true"] .bar i { animation: demo-fill var(--scene) linear both; }
/* The business case has more to read than an app step. */
.demo-tab:first-child { --scene: 8.5s; }
.demo-pause { align-self: center; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(18,21,28,.2); background: #fff; color: var(--ink); cursor: pointer; }
.demo-pause:hover { border-color: var(--ink); }
.demo-pause svg { width: 16px; height: 16px; }
.demo-pause .i-play, .hero-demo.is-paused .demo-pause .i-pause { display: none; }
.hero-demo.is-paused .demo-pause .i-play { display: block; }
.hero-demo.is-paused *, .hero-demo.is-paused *::after, .hero-demo.is-offscreen *, .hero-demo.is-offscreen *::after { animation-play-state: paused !important; }

@keyframes d-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes d-drop { from { opacity: 0; transform: translateY(-16px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes d-pop { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes d-out { to { opacity: 0; } }
@keyframes d-flip { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes d-fill { to { transform: scaleX(1); } }
@keyframes demo-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes d-done { to { border-style: solid; border-color: #9cc3b0; background: #f3faf6; } }
@keyframes d-hl { to { background: var(--app-accent-subtle); } }
@keyframes d-cb { to { background: var(--app-accent); border-color: var(--app-accent); } }
@keyframes d-tick { to { transform: rotate(45deg) scale(1); } }
@keyframes d-press { 50% { transform: scale(.94); } }
@keyframes d-ring { from { opacity: .7; transform: scale(.9); } to { opacity: 0; transform: scale(1.25); } }
@keyframes d-focus { to { border-color: var(--app-accent); box-shadow: 0 0 0 3px rgba(37,99,168,.18); } }
@keyframes d-okbg { to { background: var(--ok); } }

/* Very small phones (320 px): the three download cards wrap and meet the card. */
@container (max-width: 300px) {
  .sc4 .dl:nth-child(4) { display: none; }
}
/* Below the two-column layout the stage runs edge to edge, and the card
   hangs under the window, since there is no gutter beside it. */
@media (max-width: 1179px) {
  .hero-demo { margin: 0 -32px; border-left: 0; border-right: 0; padding: 28px 32px 16px; }
  .demo-ctl { max-width: 760px; margin-left: auto; margin-right: auto; }
  .demo { max-width: 760px; margin: 0 auto 60px; }
  .callouts { left: 20px; }
}
/* Two-column hero (window about 520 px): a slimmer rail keeps all four step
   labels on one line. */
@container (min-width: 471px) and (max-width: 600px) {
  .dw-rail { width: 96px; }
  .dw-steps { gap: 10px; }
}
/* Narrow window (phones): no rail, only the current step named, a card that
   sits under the window instead of beside it. */
@container (max-width: 470px) {
  .dw-rail { display: none; }
  .dw-org { display: none; }
  .dw-main { padding: 12px 12px 14px; }
  .dw-steps { gap: 8px; }
  .dw-steps span { display: none; }
  .ba { gap: 8px; }
  .ba-col { padding: 10px 10px 11px; }
  .ba-big { font-size: 23px; }
  .ba-sub { margin-bottom: 0; }
  .ba-rows li { flex-wrap: wrap; column-gap: 6px; row-gap: 0; }
  .ba-rows span { white-space: normal; }
  .ba-scale p { grid-template-columns: 56px minmax(0, 1fr) 40px; gap: 8px; }
  .demo[data-scene="1"] .dw-steps li:nth-child(1) span, .demo[data-scene="2"] .dw-steps li:nth-child(2) span,
  .demo[data-scene="3"] .dw-steps li:nth-child(3) span, .demo[data-scene="4"] .dw-steps li:nth-child(4) span { display: inline; }
  .asm .ph { max-width: 30%; }
  .asm .meta { display: none; }
  .br { grid-template-columns: 54px minmax(0, 1fr) 36px 50px; gap: 8px; padding: 0 10px; }
  .callouts { left: 10px; right: 10px; width: auto; }
}
/* Smallest phones (window under 340 px): totals and scale only. */
@container (max-width: 340px) {
  .ba-big { font-size: 20px; }
  .ba-rows { display: none; }
}
.t-short { display: none; }
@media (max-width: 560px) { .t-long { display: none; } .t-short { display: inline; } }
/* Five labels do not fit under a 288 px window: the tabs become bars only.
   Each keeps its name for assistive tech, and the window names the step. */
@media (max-width: 359px) {
  .demo-tab .t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .demo-tab { align-content: center; padding-bottom: 0; }
}
@media (max-width: 560px) {
  .hero-demo { padding: 24px 16px 12px; }
  .demo-tab { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-demo *, .hero-demo *::after { animation-duration: 1ms !important; animation-delay: 0s !important; }
  .demo-pause { visibility: hidden; }
}

/* ---------- dark bands ---------- */
.dark {
  background-color: var(--navy); color: var(--on-navy); padding: 0 0 clamp(72px, 9vw, 120px);
  background-image: linear-gradient(var(--navy-line) 1px, transparent 1px), linear-gradient(90deg, var(--navy-line) 1px, transparent 1px);
  background-size: 64px 64px; background-position: -1px -1px;
}
.dark h2 { color: #fff; }
.dark p { color: var(--on-navy-2); }
.dark .note { color: #8d99b0; }
#teams { padding-top: clamp(72px, 9vw, 120px); }
.subnav { display: flex; gap: 40px; flex-wrap: wrap; border-bottom: 1px solid var(--navy-line); margin-bottom: clamp(56px, 7vw, 96px); }
.subnav a { color: var(--on-navy); text-decoration: none; font-size: 16px; font-weight: 500; padding: 26px 0 24px; border-bottom: 2px solid transparent; }
.subnav a:hover { border-bottom-color: var(--blue-soft); }
.dark-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.dark-grid h2 { margin-bottom: 24px; }
@media (max-width: 900px) {
  .dark-grid { grid-template-columns: 1fr; }
  .subnav { gap: 24px; flex-wrap: nowrap; overflow-x: auto; margin-bottom: 48px; scrollbar-width: none; }
  .subnav a { white-space: nowrap; padding: 20px 0 18px; }
}
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 32px 0 20px; border-top: 1px solid var(--navy-line); }
.stats div { padding: 18px 0 16px; border-bottom: 1px solid var(--navy-line); }
.stats div:nth-child(odd) { padding-right: 20px; border-right: 1px solid var(--navy-line); }
.stats div:nth-child(even) { padding-left: 24px; }
.stats dt { font: 400 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--on-navy-2); }
.stats dd { margin: 4px 0 0; font-size: 34px; font-weight: 400; letter-spacing: -.02em; color: #fff; font-variant-numeric: tabular-nums; }
.iso-fig { margin: 0; }
.iso { width: 100%; height: auto; }
.iso .iso-num { font: 500 12px var(--mono); fill: var(--blue-soft); letter-spacing: .08em; }
.iso .iso-label { font: 500 15px var(--sans); fill: var(--on-navy); }
.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 48px; border-top: 1px solid var(--navy-line); }
.cols3 > div { padding: 28px 28px 8px 0; }
.cols3 > div + div { padding-left: 28px; border-left: 1px solid var(--navy-line); }
.cols3 h3 { color: #fff; margin-bottom: 10px; }
@media (max-width: 820px) { .cols3 { grid-template-columns: 1fr; } .cols3 > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--navy-line); } }

/* ---------- light bands ---------- */
.band { padding: clamp(72px, 9vw, 128px) 0; }
.band-alt { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-lede { font-size: 18px; color: var(--ink-2); max-width: 62ch; margin: 20px 0 0; }
.note { font-size: 14px; color: var(--ink-2); margin-top: 18px; }

.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.steps li { padding: 22px 24px 8px 0; }
.steps li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.step-n { font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.steps h3 { margin-bottom: 10px; }
.steps p:last-child { color: var(--ink-2); font-size: 16px; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .steps li:nth-child(3) { padding-left: 0; border-left: 0; } .steps li:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } .steps li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } }

figure { margin: 0; }
figcaption { font-size: 14px; color: var(--ink-2); margin-top: 10px; }
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 48px; }
.shots img, .shot-lg img { border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(18, 21, 28, .05), 0 12px 32px -12px rgba(18, 21, 28, .18); }
@media (max-width: 760px) { .shots { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.split h2 { margin-bottom: 24px; }
.split p { color: var(--ink-2); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; border-top: 1px solid var(--line); }
.ticks li { padding: 12px 0 12px 30px; border-bottom: 1px solid var(--line); position: relative; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 18px; width: 12px; height: 7px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg); }

/* ---------- drawn workbook ---------- */
.sheet { margin-top: 44px; border: 1px solid var(--line); background: #fff; overflow-x: auto; }
.sheet-bar { display: flex; gap: 14px; align-items: baseline; padding: 10px 16px; background: #1f6e43; color: #fff; font-size: 13px; }
.sheet-bar span + span { color: #d6eadc; }
.sheet table { border-collapse: collapse; width: 100%; min-width: 900px; font: 400 13px/1.35 var(--mono); }
.sheet th, .sheet td { border: 1px solid #e3e6ea; padding: 8px 10px; text-align: left; white-space: nowrap; }
.sheet th { background: var(--paper-2); font-weight: 600; font-size: 11.5px; letter-spacing: .02em; color: var(--ink); }
.sheet .n { text-align: right; font-variant-numeric: tabular-nums; }
.sheet .gap td { text-align: center; color: var(--ink-2); padding: 2px; }
.sheet-foot { display: flex; gap: 0; margin: 0; border-top: 1px solid var(--line); }
.sheet-foot span { padding: 12px 18px; font: 500 13px var(--mono); color: var(--ink); }
.sheet-foot span + span { border-left: 1px solid var(--line); }

/* ---------- roadmap ---------- */
/* Grouped by status, so what ships today reads apart from what does not:
   each group sits under a coloured rule (solid, solid, dashed), a dot that
   fills as the status matures, and cards whose border follows the same code. */
.road { display: grid; grid-template-columns: 2fr 3fr 3fr; gap: 24px; margin: 48px 0 0; }
.road-g { min-width: 0; border-top: 3px solid var(--road); padding-top: 16px; }
.road-g.is-live { --road: #176749; }
.road-g.is-testing { --road: #b45309; }
.road-g.is-planned { --road: #8b93a1; border-top-style: dashed; }
.road-h { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--road); }
.is-planned .road-h { color: var(--ink-2); }
.road-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--road); }
.is-live .road-dot { background: var(--road); }
.is-testing .road-dot { background: linear-gradient(90deg, var(--road) 50%, transparent 50%); }
.road ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.road li { padding: 16px 16px 12px; border: 1px solid; background: #fff; }
.is-live li { border-color: var(--ink); }
.is-testing li { border-color: #e2c9ad; background: #fffaf4; }
.is-planned li { border: 1px dashed #b9c0cc; background: transparent; }
.road h4 { margin: 0 0 6px; font-size: 17px; font-weight: 500; letter-spacing: -.01em; }
.is-planned h4 { color: var(--ink-2); }
.road li p { margin: 0; font-size: 15px; color: var(--ink-2); }
@media (max-width: 1000px) {
  .road { grid-template-columns: 1fr; gap: 32px; }
  .road ul { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}

/* ---------- pilot ---------- */
.pilot { padding: clamp(72px, 9vw, 128px) 0; background: var(--paper-2); border-top: 1px solid var(--line); }
.pilot .split { align-items: start; }
.needs { padding-left: 22px; margin: 20px 0 0; }
.needs li { padding: 6px 0; color: var(--ink-2); }
.needs strong { color: var(--ink); font-weight: 600; }
.form-card { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--ink); padding: 32px; }
.form-card label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 18px; }
.form-card .opt { font-weight: 400; color: var(--ink-2); }
.form-card input, .form-card textarea {
  display: block; width: 100%; margin-top: 6px; font: 400 16px/1.4 var(--sans); color: var(--ink);
  border: 1px solid #c4cad4; border-radius: 2px; padding: 11px 12px; background: #fff;
}
.form-card input:focus-visible, .form-card textarea:focus-visible { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.form-card textarea { resize: vertical; min-height: 104px; }
.form-card .btn { width: 100%; justify-content: center; margin-top: 4px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } .form-card { padding: 22px; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fine { font-size: 13px; color: var(--ink-2); margin: 14px 0 0; }
.flash { display: none; padding: 14px 16px; margin-bottom: 20px; font-size: 15px; border-left: 3px solid; }
.flash:target { display: block; }
.flash.ok { background: #eaf6ee; border-color: #1f7a45; color: #134d2b; }
.flash.err { background: #fdf0ee; border-color: #b3321f; color: #7c2012; }

/* ---------- footer ---------- */
.foot { background: var(--navy); color: var(--on-navy-2); padding: 40px 0; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; }
.foot .brand { color: #fff; font-size: 16px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.foot nav a { color: var(--on-navy); text-decoration: none; font-size: 15px; padding: 6px 0; }
.foot nav a:hover { color: #fff; text-decoration: underline; }
.foot p { margin: 0 0 0 auto; font-size: 14px; }
