/* Self-hosted fonts (SIL OFL 1.1, see /fonts/OFL.txt) — no requests to third-party font services */
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/barlow-semi-condensed-600-latin.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 Semi Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/barlow-semi-condensed-700-latin.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: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-mono-400-latin.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: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/ibm-plex-mono-500-latin.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: "IBM Plex Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/fonts/ibm-plex-sans-variable-latin.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; }

/* Trace Systems — marketing site
   Brand: navy #0a0f22 · orange #E95023 (logo + actions; one orange)
   Type: Barlow Semi Condensed (headings, plant-plate/signage feel that matches the wordmark)
         IBM Plex Sans (body) · IBM Plex Mono (part numbers and data only)
   No prices or AI-kit detail on public pages.
*/

:root {
  color-scheme: light;
  --navy: #0a0f22;
  --coral: #E95023;
  --coral-ink: #C43D14;          /* #E95023 darkened for text on light backgrounds (AA contrast) */

  --bg: #f4f5f8;
  --bg-elev: #ffffff;
  --bg-card: #ffffff;
  --bg-sunk: #eceef3;
  --line: rgba(10, 15, 34, 0.10);
  --line-strong: rgba(10, 15, 34, 0.20);
  --text: #0a0f22;
  --muted: #4f5a6e;
  --muted-soft: #6b7589;
  --accent: var(--coral);
  --accent-text: var(--coral-ink);
  --accent-soft: rgba(255, 90, 77, 0.10);
  --accent-line: rgba(255, 90, 77, 0.45);
  --danger: #c62828;

  /* The demo "bay" stays dark in both themes — it is the one bold element on the page */
  --bay: #0f1530;
  --bay-edge: #1c2446;
  --bay-text: #e8ebf4;
  --bay-muted: #97a0b8;

  --radius-lg: 14px;
  --radius: 10px;
  --radius-sm: 6px;

  --font: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-display: "Barlow Semi Condensed", "Segoe UI Semibold", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, "Courier New", monospace;

  --header-h: 68px;
  --max: 1160px;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
  --section-y: clamp(3.5rem, 8vw, 6rem);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0f22;
  --bg-elev: #111731;
  --bg-card: #111731;
  --bg-sunk: #0d1228;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #eef1f8;
  --muted: #a3acc0;
  --muted-soft: #818aa0;
  --accent-text: #ff7b70;
  --accent-soft: rgba(255, 90, 77, 0.14);
  --accent-line: rgba(255, 90, 77, 0.5);
  --danger: #f87171;
  --bay: #070b1a;
  --bay-edge: #1a2142;
}

/* —— Base —— */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-synthesis: none;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
::selection { background: var(--coral); color: #fff; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: -0.01em; text-wrap: balance; }
p { text-wrap: pretty; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -48px; z-index: 200;
  background: var(--navy); color: #fff; padding: 0.5rem 0.8rem; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 0.75rem; }

.wrap {
  width: min(var(--max), 100%);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
/* legacy alias used by inner pages */
.section-inner { width: min(var(--max), 100%); margin-inline: auto; padding-inline: var(--gutter); }

/* —— Header —— */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: var(--header-h);
  width: min(var(--max), 100%);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
/* Fallback when a page has no .site-header__inner wrapper */
.site-header:not(:has(.site-header__inner)) {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: var(--header-h);
  padding-inline: var(--gutter);
  width: min(var(--max), 100%);
  margin-inline: auto;
  box-sizing: border-box;
}
.brand { display: inline-flex; text-decoration: none; }
.brand__logo { height: 38px; width: auto; max-width: 200px; object-fit: contain; }
img[hidden] { display: none !important; }

.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav a {
  color: var(--muted); font-size: 0.95rem; font-weight: 500;
  text-decoration: none; padding: 0.45rem 0.7rem; border-radius: var(--radius-sm);
}
.nav a:hover { color: var(--text); background: var(--accent-soft); }
.nav a[aria-current="page"] { color: var(--text); }
.nav .nav__cta {
  margin-left: 0.5rem; padding: 0.5rem 1rem;
  background: var(--coral); color: #fff; font-weight: 600; border-radius: var(--radius-sm);
}
.nav .nav__cta:hover { background: #C8431A; color: #fff; }

.theme-toggle, .nav-toggle {
  font: inherit; font-size: 0.85rem; font-weight: 600;
  height: 2.4rem; padding: 0 0.8rem;
  border-radius: var(--radius-sm); border: 1px solid var(--line-strong);
  background: transparent; color: var(--text); cursor: pointer;
}
.theme-toggle { width: 2.4rem; padding: 0; display: grid; place-items: center; }
.theme-toggle:hover, .nav-toggle:hover { border-color: var(--text); }
.theme-toggle__icon {
  width: 0.9rem; height: 0.9rem; border-radius: 50%;
  background: var(--text);
  box-shadow: inset -0.3rem -0.1rem 0 0 var(--bg);
}
html[data-theme="dark"] .theme-toggle__icon { box-shadow: none; background: #f5d76e; }
.nav-toggle { display: none; }

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav {
    display: none; position: absolute;
    top: calc(var(--header-h) - 4px); right: var(--gutter);
    flex-direction: column; align-items: stretch; gap: 0.15rem;
    min-width: 230px; padding: 0.5rem;
    background: var(--bg-elev); border: 1px solid var(--line-strong);
    border-radius: var(--radius); box-shadow: 0 16px 40px rgba(10, 15, 34, 0.18);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.7rem 0.8rem; }
  .nav .nav__cta { margin: 0.35rem 0 0; text-align: center; }
}

/* —— Buttons —— */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 2.9rem; padding: 0.7rem 1.3rem;
  border-radius: var(--radius-sm); border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none !important; cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn--primary { background: var(--coral); color: #fff; }
.btn--primary:hover { background: #C8431A; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--text); }

.reply-note { margin: 0.75rem 0 0; font-size: 0.9rem; color: var(--muted); }
/* legacy name kept for inner pages */
.cta-promise { margin: 0.75rem 0 0; font-size: 0.9rem; color: var(--muted); }

/* —— Hero —— */
.hero {
  padding-top: clamp(2.25rem, 6vw, 4rem);
  padding-inline: var(--gutter);
  width: min(var(--max), 100%);
  margin-inline: auto;
  box-sizing: border-box;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
}
.hero h1 {
  margin: 0;
  font-size: clamp(2.5rem, 6.2vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
}
.hero__sub { margin: 0 0 1.4rem; font-size: 1.1rem; color: var(--muted); max-width: 32rem; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem; }
.hero__actions .link-quiet { color: var(--text); font-weight: 500; }

/* —— Demo bay —— */
.bay {
  margin-top: clamp(2rem, 5vw, 3rem);
  background: var(--bay);
  color: var(--bay-text);
  border-radius: var(--radius-lg);
  padding: 0.6rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 0.6rem;
  box-shadow: 0 30px 60px -30px rgba(10, 15, 34, 0.55);
}
.viewer-shell {
  position: relative;
  border-radius: var(--radius);
  background: #131a38;
  overflow: hidden;
  min-height: 460px;
  aspect-ratio: 16 / 10.5;
}
.viewer-viewport { position: absolute; inset: 0; }
#viewer { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
#viewer:active { cursor: grabbing; }
.demo-chrome {
  position: absolute; inset: 0.75rem 0.75rem auto 0.75rem; z-index: 3;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 0.5rem;
  pointer-events: none;
}
.demo-chrome > * { pointer-events: auto; }
.demo-badge {
  padding: 0.3rem 0.55rem;
  border-radius: var(--radius-sm);
  background: rgba(7, 11, 26, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--bay-muted);
  font-size: 0.75rem; line-height: 1.3;
}
.demo__controls { display: flex; gap: 0.4rem; flex-shrink: 0; }
.demo__controls .btn { min-height: 2.3rem; padding: 0.4rem 0.85rem; font-size: 0.88rem; }
.demo__controls .btn--ghost { color: var(--bay-text); border-color: rgba(255, 255, 255, 0.22); background: rgba(7, 11, 26, 0.55); }
.demo__controls .btn--ghost:hover { border-color: #fff; }
.demo__controls .btn[aria-pressed="true"] { background: #fff; color: var(--navy); }
.viewer-status {
  position: absolute; left: 0.75rem; bottom: 0.75rem; z-index: 3;
  padding: 0.25rem 0.5rem; border-radius: var(--radius-sm);
  background: rgba(7, 11, 26, 0.7); border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--bay-muted); font-size: 0.72rem; font-family: var(--mono);
  pointer-events: none;
}
.viewer-status.is-error { color: #ff8a80; }

/* Parts sheet: reads like a page from a parts book */
.parts-panel {
  display: flex; flex-direction: column; gap: 0.6rem;
  min-height: 0; max-height: 100%;
  background: var(--bg-card); color: var(--text);
  border-radius: var(--radius);
  padding: 0.9rem;
  overflow: hidden;
}
.bay > .parts-panel { height: 0; min-height: 100%; } /* match viewer height on desktop */
.parts-panel__head { display: grid; gap: 0.15rem; }
.parts-panel__title { margin: 0; font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; }
.parts-panel__sample { margin: 0 0 0.45rem; font-size: 0.82rem; color: var(--muted); }
.parts-search input {
  width: 100%; padding: 0.55rem 0.7rem;
  border-radius: var(--radius-sm); border: 1px solid var(--line-strong);
  background: var(--bg); color: var(--text);
  font: inherit; font-size: 0.92rem;
}
.parts-search input:focus { outline: 2px solid var(--coral); outline-offset: 0; border-color: transparent; }
.parts-list {
  list-style: none; margin: 0; padding: 0;
  overflow: auto; flex: 1 1 auto; min-height: 0;
  border-top: 1px solid var(--line);
  overscroll-behavior: contain;
}
.parts-list__item {
  display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 0.75rem;
  width: 100%; text-align: left;
  padding: 0.5rem 0.25rem 0.5rem 0.5rem;
  border: 0; border-bottom: 1px solid var(--line);
  background: transparent; color: var(--text);
  font: inherit; cursor: pointer;
}
.parts-list__item:hover { background: var(--accent-soft); }
.parts-list__item.is-active { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--coral); }
.parts-list__title { font-weight: 500; font-size: 0.88rem; }
.parts-list__no { font-size: 0.72rem; color: var(--muted); font-family: var(--mono); white-space: nowrap; }
.part-detail { border-top: 2px solid var(--text); padding-top: 0.6rem; padding-bottom: 0.15rem; flex-shrink: 0; }
.part-detail__label { margin: 0; font-size: 0.78rem; color: var(--muted); }
.part-detail__title { margin: 0.15rem 0 0.1rem; font-size: 1.15rem; }
.part-detail__no { margin: 0; font-family: var(--mono); font-size: 0.85rem; color: var(--text); }
.part-detail__hint { margin: 0.4rem 0 0; font-size: 0.8rem; color: var(--muted); }
.parts-empty { margin: 0; font-size: 0.88rem; color: var(--muted); }


.bay-footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem;
  margin-top: 1rem;
  font-size: 0.9rem; color: var(--muted);
}
.bay-footer p { margin: 0; flex: 1 1 22rem; max-width: 34rem; }
.bay-footer strong { color: var(--text); font-weight: 600; }

/* —— Sections —— */
.section { padding-block: var(--section-y); }
.section + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 44rem; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.section-title { margin: 0 0 0.6rem; font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
.section-head p, .lede { margin: 0; color: var(--muted); font-size: 1.05rem; max-width: 40rem; }

/* —— Products: a stepped stack, because each level genuinely includes the one below —— */
.levels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 0;
  border-bottom: 2px solid var(--text);
}
.level {
  position: relative;
  padding: 1.25rem 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-bottom: 0;
  display: flex; flex-direction: column;
}
.level + .level { border-left: 0; }
.level:nth-child(1) { min-height: 15rem; }
.level:nth-child(2) { min-height: 18rem; }
.level:nth-child(3) { min-height: 21rem; background: var(--navy); color: #eef1f8; border-color: var(--navy); }
.level__step { margin: 0 0 auto; padding-bottom: 1.25rem; font-size: 0.85rem; color: var(--muted); }
.level:nth-child(3) .level__step { color: #a3acc0; }
.level h3 { margin: 0 0 0.5rem; font-size: 1.6rem; }
.level p { margin: 0; font-size: 0.95rem; color: var(--muted); }
.level:nth-child(3) p { color: #c4cbdb; }
.level__includes { margin-top: 0.9rem !important; font-size: 0.85rem !important; font-weight: 500; color: var(--text) !important; }
.level:nth-child(3) .level__includes { color: #fff !important; }
.level__link { margin-top: 1rem; font-size: 0.92rem; font-weight: 600; }
.level:nth-child(3) .level__link { color: #ff8a80; }

.addon {
  margin-top: 1rem;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem 2rem; align-items: center;
  padding: 1.25rem 1.4rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
}
.addon h3 { margin: 0 0 0.35rem; font-size: 1.45rem; }
.addon p { margin: 0; color: var(--muted); max-width: 46rem; }
.levels-note { margin: 1.5rem 0 0; color: var(--muted); max-width: 46rem; font-size: 0.95rem; }

/* —— Diagnostic Assistant (fault mock) —— */
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.points { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1.1rem; }
.points li { padding-left: 1.1rem; border-left: 2px solid var(--line-strong); }
.points strong { display: block; font-weight: 600; margin-bottom: 0.15rem; }
.points span { color: var(--muted); font-size: 0.97rem; }

.fault-mock {
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--line);
  overflow: hidden;
}
.fault-mock__bar {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.82rem; color: var(--muted);
}
.fault-mock__bar strong { color: var(--text); font-weight: 600; }
.fault-mock__body { display: flex; flex-direction: column; gap: 0.8rem; padding: 1.1rem; }
.fault-mock__row { display: flex; flex-direction: column; max-width: 88%; }
.fault-mock__row--tech { align-self: flex-end; align-items: flex-end; }
.fault-mock__who { font-size: 0.75rem; color: var(--muted-soft); margin: 0 0.2rem 0.2rem; }
.fault-mock__row p { margin: 0; padding: 0.7rem 0.9rem; border-radius: var(--radius); font-size: 0.93rem; line-height: 1.5; }
.fault-mock__row--tech p { background: var(--navy); color: #eef1f8; border-bottom-right-radius: 3px; }
html[data-theme="dark"] .fault-mock__row--tech p { background: #26305a; }
.fault-mock__row--ai p { background: var(--bg-sunk); color: var(--text); border-bottom-left-radius: 3px; }
.fault-mock__row--ai .ref { font-family: var(--mono); font-size: 0.85em; }

/* —— Private by design: navy band —— */
.private {
  background: var(--navy);
  color: #eef1f8;
  padding-block: var(--section-y);
}
html[data-theme="dark"] .private { background: #060a18; border-block: 1px solid var(--line); }
.private .section-title { color: #fff; }
.private .section-head p { color: #b4bccd; }
.private__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2.5rem); }
.private__grid h3 { margin: 0 0 0.4rem; font-size: 1.35rem; color: #fff; }
.private__grid p { margin: 0; color: #b4bccd; font-size: 0.97rem; }
.private__grid > div { padding-top: 1rem; border-top: 2px solid var(--coral); }

/* —— Sectors —— */
.sectors { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.sector-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.sector-list li {
  display: grid; grid-template-columns: 11rem 1fr; gap: 1.25rem;
  padding: 1rem 0; border-bottom: 1px solid var(--line-strong);
}
.sector-list strong { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; line-height: 1.2; }
.sector-list span { color: var(--muted); font-size: 0.97rem; }
.sector-list li:first-child strong::after { content: " (where we started)"; font-family: var(--font); font-size: 0.8rem; font-weight: 400; color: var(--muted); display: block; margin-top: 0.15rem; }

/* —— Closing CTA —— */
.closing { padding-block: var(--section-y); border-top: 1px solid var(--line); }
.closing__inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2rem 4rem; align-items: end; }
.closing h2 { margin: 0; font-size: clamp(2rem, 4.2vw, 3.2rem); }
.closing p { margin: 0 0 1.25rem; color: var(--muted); }

/* —— Footer —— */
.site-footer { border-top: 1px solid var(--line); padding-block: 2.5rem 3rem; color: var(--muted); font-size: 0.88rem; background: var(--bg-sunk); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 1.5rem 3rem; align-items: start; }
.footer-logo { height: 34px; width: auto; max-width: 190px; object-fit: contain; margin-bottom: 0.9rem; }
.site-footer p { margin: 0 0 0.35rem; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.footer-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.footer-veteran { color: var(--text); font-weight: 500; }
.footer-legal { font-size: 0.8rem; line-height: 1.5; }

/* —— Inner pages —— */
.page { padding: clamp(2.25rem, 5vw, 4rem) 0 clamp(3.5rem, 7vw, 5.5rem); min-height: calc(100vh - var(--header-h) - 14rem); }
.page-inner--narrow { max-width: calc(44rem + 2 * var(--gutter)); margin-inline: 0; }
@media (min-width: 1161px) { .page-inner--narrow { margin-inline: auto; max-width: var(--max); } .page-inner--narrow > * { max-width: 44rem; } }
.eyebrow { margin: 0 0 0.5rem; font-size: 0.95rem; font-weight: 500; color: var(--accent-text); }
.page-title { margin: 0 0 1rem; font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1; }
.lede--page { margin: 0 0 2.25rem; font-size: 1.1rem; }

.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.about-copy h2 { margin: 2.25rem 0 0.5rem; font-size: 1.6rem; }
.about-copy h2:first-child { margin-top: 0; }
.about-copy p { margin: 0 0 0.9rem; color: var(--muted); max-width: 40rem; }
.about-copy .btn { margin-top: 0.75rem; }
.about-photo { margin: 0; position: sticky; top: calc(var(--header-h) + 1.5rem); }
.about-photo img { width: 100%; border-radius: var(--radius); object-fit: cover; aspect-ratio: 3 / 4; }
.about-photo figcaption { margin-top: 0.6rem; font-size: 0.85rem; color: var(--muted); }
.boundary-block { border-left: 3px solid var(--coral); padding-left: 1rem; }

.legal-meta { margin: 0 0 2rem; font-size: 0.88rem; color: var(--muted-soft); }
.legal-body { max-width: 44rem; }
.legal-body h2 { margin: 2rem 0 0.5rem; font-size: 1.4rem; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p { margin: 0 0 0.9rem; color: var(--muted); }

/* Contact */
.contact-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-field { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.92rem; font-weight: 600; }
.form-field .optional { font-weight: 400; color: var(--muted); }
.form-field input, .form-field textarea, .form-field select {
  font: inherit; font-weight: 400; font-size: 1rem;
  padding: 0.7rem 0.8rem; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); background: var(--bg-elev); color: var(--text); width: 100%;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: 2px solid var(--coral); outline-offset: 0; border-color: transparent; }
.form-field textarea { resize: vertical; min-height: 8rem; }
.form-note { margin: 0; font-size: 0.9rem; color: var(--muted); }
.form-privacy-note { margin: 0; font-size: 0.85rem; color: var(--muted-soft); line-height: 1.5; }
.contact-form .btn { align-self: flex-start; }
.form-success { margin: 0 0 1.5rem; padding: 1rem 1.2rem; border-radius: var(--radius); border-left: 3px solid var(--coral); background: var(--bg-card); }
.form-success p { margin: 0; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.next-steps { padding: 1.4rem; border-radius: var(--radius); background: var(--bg-card); border: 1px solid var(--line); }
.next-steps h2 { margin: 0 0 0.9rem; font-size: 1.4rem; }
.next-steps ol { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.7rem; color: var(--muted); font-size: 0.95rem; }
.next-steps li::marker { color: var(--text); font-weight: 600; }

.link-quiet { color: var(--muted); font-weight: 600; }

/* —— Responsive —— */
@media (max-width: 960px) {
  .bay { grid-template-columns: 1fr; }
  .bay > .parts-panel { height: auto; min-height: 0; max-height: min(36rem, 78dvh); overflow-y: auto; }
  .parts-list { min-height: 0; flex: 1 1 auto; }
  .viewer-shell { min-height: 0; aspect-ratio: 4 / 3; }
  .split, .sectors, .closing__inner, .contact-layout { grid-template-columns: 1fr; }
  .private__grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .hero__grid { grid-template-columns: 1fr; align-items: start; }
  .levels { grid-template-columns: 1fr; border-bottom: 0; }
  .level, .level:nth-child(n) { min-height: 0; border: 1px solid var(--line); border-radius: var(--radius); }
  .level:nth-child(3) { border-color: var(--navy); }
  .level + .level { margin-top: 0.6rem; border-left: 1px solid var(--line); }
  .level__step { margin-bottom: 0; padding-bottom: 0.6rem; }
  .addon { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { position: static; max-width: 260px; order: -1; }
  .sector-list li { grid-template-columns: 1fr; gap: 0.25rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .fault-mock__row { max-width: 94%; }
}
@media (max-width: 560px) {
  .bay { padding: 0.4rem; margin-inline: 0; }
  .viewer-shell { aspect-ratio: 1 / 1; }
  .demo-chrome { flex-direction: column-reverse; align-items: stretch; }
  .demo__controls { justify-content: flex-end; }
  .demo-badge { align-self: flex-start; }
  .hero__actions .btn { width: 100%; }
  .hero__actions .link-quiet { width: 100%; text-align: center; }
  .bay > .parts-panel { max-height: min(34rem, 75dvh); overflow-y: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* refinements */
.closing__inner { align-items: center; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }

/* —— Brand gradient rule (carried over from the print material) ——
   Coral fading to nothing. Used sparingly: top of the header, top of the footer, and under the Diagnostic Assistant panel. */
:root { --brand-rule: linear-gradient(90deg, #E95023 0%, #ff7a1a 30%, rgba(255, 165, 61, .9) 65%, rgba(255, 190, 110, 0) 100%); }
.site-header::before, .site-footer::before {
  content: ""; display: block; height: 3px; background: var(--brand-rule);
}
.site-footer { position: relative; padding-top: 0; }
.site-footer::before { margin-bottom: 2.5rem; }
.addon { border: 0; border-radius: 0; padding: 1.4rem 0 0; position: relative; }
.addon::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--brand-rule); }
.footer-logo { height: 52px; max-width: 220px; }

/* —— Sample parts catalogue (Parts Catalogue Look-Up) —— */
.book {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column;
  background: var(--bay); color: #111;
  padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px);
}
.book .book__page { background: #fff; width: min(1400px, 100%); margin: 0 auto; }
.book[hidden] { display: none; }
.book__bar {
  display: flex; justify-content: space-between; align-items: center; gap: 0.75rem;
  padding: 0.55rem 0.65rem;
  background: var(--bay); border-bottom: 1px solid var(--bay-edge);
}
.book__bar .btn { min-height: 2.2rem; padding: 0.35rem 0.8rem; font-size: 0.85rem; color: var(--bay-text); border-color: rgba(255,255,255,.25); }
.book__bar .btn::before { content: "\2190"; margin-right: 0.1rem; }
.book__bar .btn:hover { border-color: #fff; }
.book__tabs { display: flex; gap: 0.25rem; }
.book__tabs button {
  font: inherit; font-size: 0.85rem; font-weight: 500; cursor: pointer;
  padding: 0.35rem 0.75rem; border-radius: var(--radius-sm);
  border: 1px solid transparent; background: transparent; color: var(--bay-muted);
}
.book__tabs button[aria-selected="true"] { background: #fff; color: var(--navy); }
.book__page { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; padding: 0.6rem 0.9rem 0.8rem; position: relative; }
.book__page[hidden] { display: none; }
.book__title { margin: 0 0 0.25rem; font-family: "Liberation Sans", Arial, sans-serif; font-size: 0.95rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; }
.book__title span { margin-right: 0.6rem; }
.book__svgwrap { flex: 1 1 auto; min-height: 0; }
#book-svg { width: 100%; height: 100%; display: block; pointer-events: none; }
#book-svg text { font-family: "Liberation Sans", Arial, sans-serif; font-size: 24px; fill: #111; pointer-events: none; }
#book-svg .leader { stroke: #111; stroke-width: 1.6; }
#book-svg .leader--hidden { stroke-dasharray: 5 4; }
#book-svg .dot { fill: #111; }
#book-svg .ring { fill: none; stroke: transparent; stroke-width: 4; pointer-events: none; }
#book-svg .book__item.is-selected .ring { stroke: var(--coral); }
#book-svg .book__item.is-selected .leader { stroke: var(--coral); stroke-width: 2.4; }
#book-svg .book__item.is-selected .dot { fill: var(--coral); }
.book__callout {
  position: absolute; left: 0.9rem; bottom: 0.8rem; margin: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.6rem;
  padding: 0.45rem 0.6rem; border-radius: var(--radius-sm);
  background: var(--navy); color: #eef1f8; font-size: 0.85rem;
}
.book__callout .pn { font-family: var(--mono); font-size: 0.8rem; }
.book__next { font: inherit; font-size: 0.8rem; font-weight: 600; cursor: pointer; padding: 0.25rem 0.55rem; border-radius: 4px; border: 0; background: var(--coral); color: #fff; }
.book__tablewrap { flex: 1 1 auto; min-height: 0; overflow: auto; border-top: 2px solid #111; }
.book__table { width: 100%; border-collapse: collapse; font-family: "Liberation Serif", "Times New Roman", serif; font-size: 0.95rem; }
.book__table th { position: sticky; top: 0; background: #fff; text-align: left; font-weight: 400; padding: 0.35rem 0.6rem; border-bottom: 2px solid #111; }
.book__table td { padding: 0.32rem 0.6rem; border-bottom: 1px solid #ddd; }
.book__table td:first-child, .book__table th:first-child, .book__table td:last-child, .book__table th:last-child { text-align: center; width: 3.5rem; }
.book__table .pn { font-family: var(--mono); font-size: 0.85rem; white-space: nowrap; }
.book__table tr.is-selected td { background: #fff4f2; box-shadow: inset 0 2px 0 var(--coral), inset 0 -2px 0 var(--coral); font-weight: 600; }
.book__table tr.is-selected td:first-child { box-shadow: inset 2px 2px 0 var(--coral), inset 0 -2px 0 var(--coral); }
.book__table tr.is-selected td:last-child { box-shadow: inset -2px 2px 0 var(--coral), inset 0 -2px 0 var(--coral); }
.part-detail__book { margin-top: 0.6rem; min-height: 2.2rem; padding: 0.35rem 0.8rem; font-size: 0.85rem; width: 100%; flex-shrink: 0; }
.book__page--list .book__tablewrap { max-width: 900px; }
.book__page--list .book__title { max-width: 900px; }
@media (max-width: 760px) {
  .book__svgwrap { overflow: auto; -webkit-overflow-scrolling: touch; }
  #book-svg { width: 1000px; max-width: none; height: auto; }
  .book__callout { right: 0.9rem; font-size: 0.8rem; }
  .book__tabs button { padding: 0.35rem 0.55rem; }
}

/* —— Demo coming soon placeholder (3D demo temporarily on hold) —— */
.demo-soon {
  margin-top: clamp(2rem, 5vw, 3rem);
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--bay);
  color: var(--bay-text);
  border-radius: var(--radius-lg);
  padding: 0.6rem;
  box-shadow: 0 30px 60px -30px rgba(10, 15, 34, 0.55);
}
.demo-soon__inner {
  position: relative;
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse at 50% 120%, rgba(233, 80, 35, 0.18), transparent 60%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 40px),
    #131a38;
  min-height: 360px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 0.9rem;
  padding: clamp(2rem, 6vw, 4rem) clamp(1.25rem, 5vw, 3rem);
}
.demo-soon__badge {
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-sm);
  background: rgba(7, 11, 26, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--bay-muted);
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase;
}
.demo-soon__title {
  margin: 0;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1; letter-spacing: -0.01em;
  color: #fff;
}
.demo-soon__title::after {
  content: ""; display: block; width: 3rem; height: 4px; margin: 0.8rem auto 0;
  background: var(--coral); border-radius: 2px;
}
.demo-soon__body { margin: 0; max-width: 34rem; color: var(--bay-muted); font-size: 1.05rem; }
.demo-soon .btn { margin-top: 0.4rem; }
@media (max-width: 640px) {
  .demo-soon { padding: 0.4rem; }
  .demo-soon__inner { min-height: 300px; }
  .demo-soon .btn { width: 100%; }
}

/* —— Parts book v2: multi-figure, two-way with the 3D view (06/10/2026) —— */
.book__bar { flex-wrap: wrap; }
.book__figsel select {
  font: inherit; font-size: 0.85rem; max-width: min(26rem, 60vw);
  padding: 0.35rem 0.6rem; border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,.25); background: var(--bay); color: var(--bay-text);
}
.book__figsel select:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }
.book__figsel select[hidden] { display: none; }
.book__sample {
  margin: 0; padding: 0.3rem 0.9rem; text-align: center;
  font-family: var(--mono); font-size: 0.72rem; color: var(--bay-muted); background: var(--bay);
}
/* Balloons and lines are now clickable (they select the part in 3D) */
#book-svg { pointer-events: auto; }
#book-svg .book__item { cursor: pointer; }
#book-svg .book__item .ring { pointer-events: all; fill: rgba(255,255,255,0); }
#book-svg .book__item:hover .ring { stroke: rgba(10,15,34,.28); }
#book-svg .book__item:focus { outline: none; }
#book-svg .book__item:focus-visible .ring { stroke: var(--coral); stroke-dasharray: 6 4; }
#book-svg .book__item.is-selected:focus-visible .ring { stroke-dasharray: none; }
.book__table tbody tr { cursor: pointer; }
.book__table tbody tr:hover td { background: #f6f7fa; }
.book__table tbody tr:focus-visible { outline: 2px solid var(--coral); outline-offset: -2px; }
@media (max-width: 760px) {
  .book__figsel { order: 3; flex-basis: 100%; }
  .book__figsel select { max-width: 100%; width: 100%; }
}

/* —— Demo guide —— */
html { scroll-behavior: smooth; }
.try-guide { margin-top: clamp(2rem, 5vw, 3rem); scroll-margin-top: 5rem; }
.try-guide + .bay { margin-top: 0.9rem; }
.try-guide__title { margin: 0 0 0.6rem; font-size: 1.15rem; }
.try-guide__steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.6rem; }
.try-guide__steps li { counter-increment: step; position: relative; padding-left: 2.15rem; min-height: 1.6rem; font-size: 0.95rem; line-height: 1.4; }
.try-guide__steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--coral); color: #fff; font-weight: 700; font-size: 0.85rem; display: grid; place-items: center; }
.try-guide__note { margin: 0.7rem 0 0; font-size: 0.85rem; color: var(--muted); }
@media (max-width: 960px) { .try-guide__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .try-guide__steps { grid-template-columns: 1fr; gap: 0.45rem; }
  .hero__actions .btn--demo { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* —— Founder —— */
.why__body { max-width: 44rem; }
.why__body p { margin: 0 0 1rem; font-size: 1.05rem; line-height: 1.6; }
.why__body .why__signoff { margin-top: 1.4rem; font-size: 0.9rem; color: var(--muted); }

/* —— FAQ —— */
.faq__list { max-width: 44rem; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.95rem 0; font-weight: 700; font-size: 1.02rem; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; flex-shrink: 0; font-weight: 600; font-size: 1.3rem; line-height: 1; color: var(--coral-ink); }
.faq__item[open] summary::after { content: "−"; }
.faq__item summary:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }
.faq__item p { margin: 0 0 1rem; color: var(--muted); line-height: 1.6; max-width: 40rem; }
.faq--page { margin-top: clamp(2.5rem, 6vw, 3.5rem); }
.faq--page .section-title { font-size: clamp(1.5rem, 3vw, 2rem); }

.demo__controls .btn[hidden] { display: none; }
@media (max-width: 560px) {
  .demo__controls { gap: 0.3rem; }
  .demo__controls .btn { white-space: nowrap; padding: 0.4rem 0.6rem; font-size: 0.82rem; }
}

/* —— Selected part card —— */
.parts-panel.has-selection .parts-panel__head,
.parts-panel.has-selection .parts-list,
.parts-panel.has-selection .parts-empty { display: none; }
.parts-panel .part-detail { border-top: 0; padding-top: 0; }
.part-detail__top { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.5rem; }
.part-detail__close { border: 1px solid var(--line-strong); background: transparent; color: var(--text); border-radius: var(--radius-sm); padding: 0.25rem 0.55rem; font: inherit; font-size: 0.8rem; cursor: pointer; }
.part-detail__close:hover { border-color: var(--text); }
.part-detail__thumb { border: 1px solid var(--line); border-radius: var(--radius); background: #f4f5fb; display: grid; place-items: center; margin-bottom: 0.6rem; aspect-ratio: 1 / 1; max-height: 200px; overflow: hidden; }
.part-detail__thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.part-detail__fits { margin: 0.3rem 0 0; font-size: 0.82rem; color: var(--muted); }
.part-detail .part-detail__book { margin: 0.7rem 0; }
@media (max-width: 560px) {
  .part-detail__thumb { width: 120px; height: 120px; max-height: none; float: left; margin: 0 0.75rem 0.4rem 0; }
  .part-detail__book { clear: both; }
}
.parts-panel.has-selection { overflow-y: auto; }

/* —— Full-width viewer with overlays (matches Diagnostic Assistant layout) —— */
.bay.bay--full { display: block; padding: 0.5rem; }
.bay--full .viewer-shell { aspect-ratio: auto; height: clamp(460px, 70vh, 760px); min-height: 0; }
.bay--full .demo-left { position: absolute; top: 0.75rem; left: 0.75rem; z-index: 4; display: flex; flex-direction: column; align-items: flex-start; gap: 0.45rem; width: min(320px, calc(100% - 1.5rem)); }
.bay--full .demo__controls { position: absolute; top: 0.75rem; right: 0.75rem; z-index: 4; }
.parts-pop { width: 100%; background: #fff; border-radius: var(--radius); box-shadow: 0 10px 30px -12px rgba(10, 15, 34, 0.45); border: 1px solid rgba(10, 15, 34, 0.08); overflow: hidden; color: #0a0f22; }
.parts-pop__search { display: block; }
.parts-pop__search input { width: 100%; box-sizing: border-box; border: 0; padding: 0.65rem 0.8rem; font: inherit; font-size: 0.9rem; background: transparent; color: inherit; }
.parts-pop__search input:focus { outline: 2px solid var(--coral); outline-offset: -2px; border-radius: var(--radius); }
.parts-pop__drop { border-top: 1px solid rgba(10, 15, 34, 0.1); max-height: min(340px, calc(70vh - 7rem)); overflow-y: auto; }
.parts-pop__sample { margin: 0; padding: 0.45rem 0.8rem; font-size: 0.75rem; color: #5b6275; }
.parts-pop .parts-list { margin: 0; padding: 0 0.3rem 0.3rem; min-height: 0; overflow: visible; }
.parts-pop .parts-empty { margin: 0; padding: 0.4rem 0.8rem 0.7rem; font-size: 0.85rem; color: #5b6275; }

.part-card { position: absolute; z-index: 5; top: 3.9rem; right: 0.75rem; bottom: 0.75rem; width: 300px; max-height: calc(100% - 4.65rem); height: max-content; box-sizing: border-box; overflow-y: auto; background: #fff; color: #0a0f22; border-radius: var(--radius-lg); box-shadow: 0 18px 40px -16px rgba(10, 15, 34, 0.5); border: 1px solid rgba(10, 15, 34, 0.08); padding: 0.75rem; }
.part-card[hidden] { display: none; }
.part-card__close { position: absolute; top: 0.45rem; right: 0.45rem; z-index: 1; width: 2rem; height: 2rem; border-radius: 50%; border: 1px solid rgba(10, 15, 34, 0.15); background: #fff; color: #0a0f22; font-size: 1.2rem; line-height: 1; cursor: pointer; }
.part-card__close:hover { border-color: #0a0f22; }
.part-card__thumb { border: 1px solid rgba(10, 15, 34, 0.1); border-radius: var(--radius); background: #f4f5fb; aspect-ratio: 4 / 3; overflow: hidden; display: grid; place-items: center; }
.part-card__thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.part-card__title { margin: 0.7rem 0 0.15rem; font-size: 1.1rem; line-height: 1.25; color: #0a0f22; }
.part-card__no { margin: 0; font-family: var(--mono); font-size: 1rem; color: #0a0f22; }
.part-card__fits { margin: 0.35rem 0 0; font-size: 0.82rem; color: #5b6275; }
.part-card__note { margin: 0.4rem 0 0; font-size: 0.85rem; color: #3b4255; line-height: 1.45; }
.part-card__note:empty { display: none; }
.part-card__book { width: 100%; margin: 0.7rem 0 0; min-height: 2.3rem; font-size: 0.88rem; color: #0a0f22; border-color: rgba(10, 15, 34, 0.25); }

@media (max-width: 560px) {
  .bay--full .viewer-shell { height: clamp(380px, 60vh, 560px); aspect-ratio: auto; }
  .bay--full .demo-left { top: 3.4rem; left: 0.5rem; width: calc(100% - 1rem); }
  .bay--full .demo__controls { top: 0.5rem; right: 0.5rem; left: 0.5rem; justify-content: flex-end; }
  .bay--full .demo-badge { font-size: 0.68rem; }
  .parts-pop__drop { max-height: calc(60vh - 9rem); }
  .part-card { top: auto; left: 0; right: 0; bottom: 0; width: auto; max-height: 55%; border-radius: var(--radius-lg) var(--radius-lg) var(--radius) var(--radius); animation: sheet-up 0.22s ease-out; display: grid; grid-template-columns: 120px 1fr; gap: 0 0.75rem; align-content: start; }
  .part-card__thumb { width: 120px; height: 120px; aspect-ratio: 1 / 1; }
  .part-card__title { margin-top: 0; padding-right: 2rem; }
  .part-card__body { min-width: 0; }
  .part-card__book { grid-column: 1 / -1; }
}
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .part-card { animation: none; } }

/* —— Pricing —— */
.pricing__intro { margin: 0 0 1.2rem; color: var(--muted); max-width: 44rem; }
.price-table { width: 100%; max-width: 56rem; border-collapse: collapse; font-size: 0.95rem; }
.price-table th, .price-table td { text-align: left; padding: 0.8rem 0.75rem 0.8rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table thead th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); font-weight: 600; border-bottom-color: var(--line-strong); }
.price-table tbody th { font-weight: 700; white-space: nowrap; }
.price-table td { color: var(--muted); }
.price-table .price-table__price { color: var(--text); font-weight: 700; white-space: nowrap; text-align: right; padding-right: 0; }
.price-table thead th:last-child { text-align: right; padding-right: 0; }
.pricing__tiers, .pricing__builds { margin: 0.9rem 0 0; font-size: 0.92rem; max-width: 56rem; }
.pricing__tiers { color: var(--muted); }
.pricing__pilot { margin-top: 1.4rem; max-width: 56rem; box-sizing: border-box; border: 1px solid var(--line-strong); border-left: 3px solid var(--text); border-radius: var(--radius); padding: 1rem 1.1rem; }
.pricing__pilot p { margin: 0 0 0.5rem; }
.pricing__pilot-price { font-weight: 700; font-size: 1.05rem; }
.pricing__note { margin: 1rem 0 0; font-size: 0.85rem; color: var(--muted); max-width: 56rem; }
@media (max-width: 640px) {
  .price-table thead { display: none; }
  .price-table, .price-table tbody, .price-table tr, .price-table th, .price-table td { display: block; width: auto; }
  .price-table tr { border: 1px solid var(--line); border-radius: var(--radius); padding: 0.8rem 0.9rem; margin-bottom: 0.6rem; }
  .price-table th, .price-table td { border: 0; padding: 0.1rem 0; white-space: normal; }
  .price-table .price-table__price { text-align: left; margin-top: 0.35rem; }
}

/* —— Lead prompts —— */
.hero__email { margin: 0.4rem 0 0; font-size: 0.9rem; }
.hero__email a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.hero__cred { margin: 1.1rem 0 0; padding-left: 0.75rem; border-left: 3px solid var(--line-strong); font-size: 0.95rem; max-width: 34rem; }
.hero__early { margin: 0.5rem 0 0; font-size: 0.88rem; color: var(--muted); max-width: 34rem; }
.soft-cta { margin: 1.2rem 0 0; font-size: 0.95rem; color: var(--muted); }
.soft-cta a { color: var(--text); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

.demo-prompt { position: absolute; z-index: 6; left: 0.75rem; bottom: 3rem; width: min(300px, calc(100% - 1.5rem)); box-sizing: border-box; background: #fff; color: #0a0f22; border-radius: var(--radius-lg); box-shadow: 0 18px 40px -16px rgba(10, 15, 34, 0.5); border: 1px solid rgba(10, 15, 34, 0.08); padding: 0.9rem 0.9rem 0.8rem; animation: sheet-up 0.22s ease-out; }
.demo-prompt[hidden] { display: none; }
.demo-prompt__close { position: absolute; top: 0.35rem; right: 0.35rem; width: 1.9rem; height: 1.9rem; border-radius: 50%; border: 1px solid rgba(10, 15, 34, 0.15); background: #fff; color: #0a0f22; font-size: 1.1rem; line-height: 1; cursor: pointer; }
.demo-prompt__title { margin: 0 2rem 0.6rem 0; font-weight: 700; font-size: 0.98rem; line-height: 1.3; }
.demo-prompt__mins { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.65rem; font-size: 0.8rem; color: #5b6275; }
.demo-prompt__mins input { width: 4.5rem; flex-shrink: 0; padding: 0.35rem 0.45rem; border: 1px solid rgba(10, 15, 34, 0.25); border-radius: var(--radius-sm); font: inherit; font-size: 0.85rem; color: #0a0f22; background: #fff; }
.demo-prompt__go { width: 100%; box-sizing: border-box; justify-content: center; min-height: 2.3rem; font-size: 0.88rem; color: #fff !important; background: #0a0f22 !important; border-color: #0a0f22 !important; }
.demo-prompt__email { display: block; margin-top: 0.5rem; font-size: 0.8rem; color: #0a0f22; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 560px) {
  .demo-prompt { left: 0; right: 0; bottom: 0; width: auto; border-radius: var(--radius-lg) var(--radius-lg) var(--radius) var(--radius); }
}

.process { margin-top: clamp(1.5rem, 4vw, 2.25rem); }
.process__title { margin: 0 0 0.7rem; font-size: 1.15rem; }
.process__steps { list-style: none; margin: 0; padding: 0; counter-reset: pstep; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; }
.process__steps li { counter-increment: pstep; position: relative; border: 1px solid var(--line); border-radius: var(--radius); padding: 0.85rem 0.9rem 0.85rem 3rem; font-size: 0.95rem; line-height: 1.4; }
.process__steps li::before { content: counter(pstep); position: absolute; left: 0.85rem; top: 0.8rem; width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 2px solid var(--text); font-weight: 700; font-size: 0.85rem; display: grid; place-items: center; }
@media (max-width: 760px) { .process__steps { grid-template-columns: 1fr; } }

.time-check__intro, .time-check__note { color: var(--muted); max-width: 44rem; }
.time-check__intro { margin: 0 0 1rem; }
.time-check__note { margin: 0.6rem 0 0; font-size: 0.85rem; }
.time-check__form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; max-width: 56rem; }
.time-check__out { margin-top: 1rem; max-width: 56rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.time-check__out p { margin: 0; border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 0.8rem 0.9rem; display: flex; flex-direction: column; gap: 0.25rem; }
.time-check__label { font-size: 0.82rem; color: var(--muted); }
.time-check__out strong { font-size: 1.4rem; }
@media (max-width: 640px) { .time-check__form, .time-check__out { grid-template-columns: 1fr; } }

.sticky-cta { position: fixed; z-index: 50; left: 0.75rem; right: 0.75rem; bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px)); display: flex; justify-content: center; align-items: center; min-height: 3rem; border-radius: var(--radius); background: var(--coral); color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 10px 30px -10px rgba(10, 15, 34, 0.6); }
.sticky-cta[hidden] { display: none; }
@media (min-width: 769px) { .sticky-cta { display: none !important; } }

/* —— Navy secondary button + pilot callout —— */
.btn--navy { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn--navy:hover { opacity: 0.9; }
.time-check__cta { margin-top: 1.4rem; }
.pilot-callout { margin-top: 1rem; max-width: 56rem; box-sizing: border-box; border: 1px solid var(--line-strong); border-left: 3px solid var(--text); border-radius: var(--radius); padding: 0.9rem 1.1rem; }
.pilot-callout__title { margin: 0 0 0.35rem; font-size: 1.1rem; }
.pilot-callout p { margin: 0; font-size: 0.95rem; }
.pilot-callout__links { margin-top: 0.55rem !important; }
.pilot-callout__links a { color: var(--text); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.pilot-callout__links .pilot-callout__small { font-weight: 400; font-size: 0.88rem; color: var(--muted); }
@media (max-width: 560px) { .time-check__cta .btn { width: 100%; justify-content: center; box-sizing: border-box; } }

/* —— Diagnostic Assistant: service desk triage —— */
.triage__label { display: inline-block; margin: 0 0 0.6rem; padding: 0.2rem 0.55rem; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 0.78rem; font-weight: 600; color: var(--muted); }
.triage__intro { margin: 0 0 1.2rem; max-width: 44rem; color: var(--muted); }
.triage__sub { margin: 1.3rem 0 0.6rem; font-size: 1.1rem; }
.triage__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.6rem; max-width: 64rem; }
.triage__item { border: 1px solid var(--line); border-radius: var(--radius); padding: 0.85rem 0.9rem; }
.triage__item h4 { margin: 0 0 0.3rem; font-size: 0.98rem; }
.triage__item p { margin: 0; font-size: 0.9rem; color: var(--muted); line-height: 1.45; }
.triage__benefits { margin: 0; padding-left: 1.1rem; max-width: 44rem; display: grid; gap: 0.3rem; font-size: 0.95rem; }
.triage__safety-text { margin: 1.3rem 0 0; max-width: 44rem; font-size: 0.95rem; color: var(--muted); }
.triage__notice { margin: 0.9rem 0 0; max-width: 44rem; box-sizing: border-box; padding: 0.8rem 1rem; border-left: 3px solid var(--text); border-radius: var(--radius-sm); background: var(--bg-sunk); font-weight: 600; font-size: 0.95rem; }
.triage__part { margin: 0.9rem 0 0; max-width: 44rem; font-size: 0.9rem; color: var(--muted); }
@media (max-width: 960px) { .triage__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .triage__grid { grid-template-columns: 1fr; } }
