/* Public marketing site. Self-hosted fonts only; no third-party assets (CLAUDE.md).
   Fonts are preloaded and use font-display: optional, so a late font never moves the page.
   Light and dark follow the visitor's system setting. One accent colour. */

@font-face {
  font-family: "Barlow";
  font-weight: 400;
  font-style: normal;
  font-display: optional;
  src: url("fonts/barlow-latin-400-normal.81419bf5abb5.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow";
  font-weight: 600;
  font-style: normal;
  font-display: optional;
  src: url("fonts/barlow-latin-600-normal.a1e2a2d7d4c0.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-weight: 700;
  font-style: normal;
  font-display: optional;
  src: url("fonts/barlow-condensed-latin-700-normal.e1180918b873.woff2") format("woff2");
}

:root {
  color-scheme: light dark;
  /* Colours, fonts and radii come from the shared design tokens (static/tokens.css,
     generated from sims/packages/tokens; docs/DESIGN_SYSTEM.md). These are local names. */
  --bg: var(--ds-bg);
  --surface: var(--ds-surface);
  --surface-2: var(--ds-surface2);
  --ink: var(--ds-fg);
  --muted: var(--ds-muted);
  --line: var(--ds-line);
  --accent: var(--ds-accent);
  --accent-ink: var(--ds-accent-ink);
  --accent-soft: var(--ds-accent-wash);
  --focus: var(--ds-focus);
  --error: var(--ds-danger);
  --ok: var(--ds-ok);
  --shadow: 0 1px 2px rgb(21 25 29 / 6%), 0 12px 40px -12px rgb(21 25 29 / 22%);

  --f-display: var(--ds-font-display);
  --f-body: var(--ds-font-body);
  --wrap: 74rem;
  --gutter: clamp(1rem, 4vw, 2.25rem);
  --section: clamp(3.5rem, 9vw, 7.5rem);
  --radius: var(--ds-radius-lg);
}
@media (prefers-color-scheme: dark) {
  :root {
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 16px 48px -12px rgb(0 0 0 / 60%);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 1rem;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--f-body);
  text-rendering: optimizeLegibility;
}
img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover {
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}
p {
  margin: 0 0 1em;
}

h1,
h2,
h3 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.005em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.75rem, 1.6rem + 4.8vw, 5.4rem);
}
h2 {
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
}
h3 {
  font-size: clamp(1.4rem, 1.2rem + 0.6vw, 1.75rem);
  line-height: 1.1;
}
.eyebrow {
  font: 600 0.82rem/1.3 var(--f-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}
.lede {
  font-size: clamp(1.15rem, 1.05rem + 0.45vw, 1.4rem);
  line-height: 1.5;
  color: var(--muted);
  max-width: 38em;
}
.muted {
  color: var(--muted);
}
.wrap {
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.section {
  padding-block: var(--section);
}
.section + .section {
  border-top: 1px solid var(--line);
}
.section-head {
  max-width: 44rem;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

/* ------------------------------------------------------------ skip link */
.skip {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 100;
  background: var(--ink);
  color: var(--bg);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-weight: 600;
}
.skip:focus {
  top: 1rem;
}

/* ------------------------------------------------------------ wordmark */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font: 700 1.6rem/1 var(--f-display);
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}
/* A spirit level's bubble: a nod to the trades, and swappable with the name. */
.wm-mark {
  position: relative;
  flex: none;
  width: 1.5em;
  height: 0.62em;
  border-radius: 0.31em;
  background: var(--accent);
}
.wm-mark::after {
  content: "";
  position: absolute;
  top: 0.14em;
  bottom: 0.14em;
  left: 50%;
  width: 0.34em;
  margin-left: -0.17em;
  border-radius: 50%;
  background: var(--bg);
}

/* ------------------------------------------------------------ header */
.site-header {
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-block: 1rem;
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.5rem;
}
.site-nav a:not(.btn) {
  font-weight: 600;
  text-decoration: none;
  padding-block: 0.6rem;
  display: inline-block;
}
.site-nav a:not(.btn):hover,
.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
}
@media (max-width: 40rem) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .site-nav .btn {
    display: none; /* The Contact link stays; the button repeats it. */
  }
}
@media (min-width: 40.01rem) {
  .nav-contact {
    display: none;
  }
}

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 3rem;
  padding: 0 1.35rem;
  border-radius: 10px;
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font: 600 1.02rem/1 var(--f-body);
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.15s,
    color 0.15s,
    transform 0.15s;
}
.btn:hover {
  background: var(--surface-2);
}
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover {
  background: color-mix(in srgb, var(--accent) 88%, var(--ink));
}
.btn:active {
  transform: translateY(1px);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: 2rem;
}

/* ------------------------------------------------------------ hero
   Static by default: copy and a picture of the system with its parts listed. On capable
   desktops home.js swaps the picture for a 3D model that comes apart as you scroll
   (.is-scrubbed makes the section tall; the stage stays put with CSS sticky). */
.hero {
  position: relative;
}
.hero-stage {
  padding-block: clamp(2rem, 5vw, 3.5rem) clamp(2.5rem, 5vw, 4rem);
}
.hero-grid {
  display: grid;
  gap: 2rem 3rem;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}
.hero-title {
  max-width: 15ch;
  font-size: clamp(2.6rem, 1.4rem + 3.6vw, 4.6rem);
}
.hero-title em {
  font-style: normal;
  color: var(--accent);
}
.hero-figure {
  margin: 0;
  position: relative;
}
.hero-scene {
  position: relative;
  aspect-ratio: 5 / 4;
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  background:
    radial-gradient(70% 60% at 60% 45%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%),
    var(--surface-2);
  border: 1px solid var(--line);
}
/* Blueprint grid behind the model: a nod to technical drawings. */
.hero-grid-bg {
  position: absolute;
  inset: -10% 0;
  background-image:
    linear-gradient(color-mix(in srgb, var(--ink) 7%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--ink) 7%, transparent) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(75% 70% at 55% 50%, #000 40%, transparent 85%);
}
.hero-img,
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.hero-canvas {
  opacity: 0;
  transition: opacity var(--ds-dur-slow) var(--ds-ease-standard);
}
.has-3d .hero-canvas {
  opacity: 1;
}
.has-3d .hero-img {
  opacity: 0;
  transition: opacity var(--ds-dur-slow) var(--ds-ease-standard);
}
.hero-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-label {
  position: absolute;
  left: 0;
  top: 0;
  padding: 0.3rem 0.7rem;
  border-radius: var(--ds-radius-pill);
  background: var(--ink);
  color: var(--bg);
  font: 600 0.92rem/1.1 var(--f-body);
  white-space: nowrap;
  box-shadow: 0 6px 18px -6px rgb(0 0 0 / 45%);
}
.hero-label::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  background: inherit;
  transform: rotate(45deg);
  z-index: -1;
}
/* The still picture, taken apart, carries its labels: on phones and tablets, with reduced motion,
   and on a PC that can't run the 3D model. The list below is then for screen readers only. */
.hero-pins {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: none;
}
.hero-pin {
  translate: -50% -100%;
  font-size: clamp(0.72rem, 2.6vw, 0.92rem);
  padding: 0.25rem 0.55rem;
}
/* Near an edge, the label sits to one side of its point so it stays inside the picture. */
.hero-pin.is-right {
  translate: -82% -100%;
}
.hero-pin.is-right::after {
  left: 82%;
}
.hero-pin.is-left {
  translate: -18% -100%;
}
.hero-pin.is-left::after {
  left: 18%;
}
@media (max-width: 61.99rem), (prefers-reduced-motion: reduce) {
  .hero-pins {
    display: block;
  }
  .hero-parts {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}
.is-static .hero-pins {
  display: block;
}
.has-3d .hero-pins {
  display: none;
}
/* Phones (with motion): the model as separate pictures, put together, that move apart as you
   scroll (transform and opacity only); the labels arrive once it is apart. */
.hero-layers {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  will-change: transform;
}
.is-layered .hero-img {
  opacity: 0;
}
.is-layered .hero-hint {
  display: block;
}
.hero-caption {
  margin-top: 1rem;
}
.hero-parts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.hero-parts li {
  padding: 0.3rem 0.75rem;
  border-radius: var(--ds-radius-pill);
  border: 1.5px solid var(--line);
  background: var(--surface);
  font-size: 0.95rem;
  font-weight: 600;
}
.hero-hint {
  display: none;
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}
.hero-hint span:not(.is-current) {
  display: none;
}
/* With the 3D model the labels sit on the model, so the list is for screen readers only. */
.has-3d .hero-parts {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.has-3d .hero-hint {
  display: block;
}
.hero-hint::before {
  content: "↓ ";
  color: var(--accent);
}
@media (min-width: 62rem) {
  .hero-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  }
  /* Fills the screen below the header, so making the hero tall later never moves anything
     that's on screen (no layout shift). */
  .hero-stage {
    min-height: 100svh;
    display: flex;
    align-items: center;
  }
  .hero-stage > .wrap {
    flex: 1;
  }
  .hero.is-scrubbed {
    height: 250vh;
  }
  .hero.is-scrubbed .hero-stage {
    position: sticky;
    top: 0;
    height: 100svh;
  }
}

/* Headline words arrive one by one (CSS only: no JavaScript needed, none with reduced motion). */
@media (prefers-reduced-motion: no-preference) {
  .hero-title .w {
    display: inline-block;
    animation: word-in 0.7s var(--ds-ease-emphasised) both;
  }
  .hero-title .w2 { animation-delay: 70ms; }
  .hero-title .w3 { animation-delay: 140ms; }
  .hero-title .w4 { animation-delay: 210ms; }
  .hero-title .w5 { animation-delay: 280ms; }
  .hero-title .w6 { animation-delay: 350ms; }
  .hero-title .w7 { animation-delay: 420ms; }
  .hero-title .w8 { animation-delay: 520ms; }
  .hero-title .w9 { animation-delay: 600ms; }
}
@keyframes word-in {
  from {
    opacity: 0;
    transform: translateY(0.45em);
  }
}

/* ------------------------------------------------------------ how it works
   Static: two cards, each with its picture. On desktops home.js adds .is-pinned: the section
   grows tall, its content stays on screen (CSS sticky) and the stages play in turn. */
.how {
  border-top: 1px solid var(--line);
  padding-block: var(--section);
}
.how-body {
  position: relative;
}
.how-track {
  display: none;
}
.how-stages {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2.5rem;
}
.how-stage {
  display: grid;
  gap: 1rem;
}
.how-art {
  margin: 0;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 1rem;
}
.how-svg {
  width: 100%;
  height: auto;
}
.how-num {
  display: block;
  font: 700 1rem/1 var(--f-display);
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.how-text h3 {
  margin-bottom: 0.4rem;
}
.how-text h3 .status {
  vertical-align: middle;
  margin-left: 0.4rem;
  font-size: 0.8rem;
}
.how-text p {
  color: var(--muted);
  margin: 0;
  max-width: 34rem;
}
@media (min-width: 40rem) and (max-width: 61.99rem) {
  .how-stage {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 1.5rem;
  }
}
@media (min-width: 62rem) {
  .how-stages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
  }
  .how.is-pinned {
    height: 240vh;
    padding-block: 0;
  }
  .how.is-pinned .how-sticky {
    position: sticky;
    top: 0;
    height: 100svh;
    display: flex;
    align-items: center;
    padding-block: 2rem;
  }
  .how.is-pinned .section-head {
    margin-bottom: 2rem;
  }
  .how.is-pinned .section-head .lede {
    font-size: 1.1rem;
  }
  .how.is-pinned .how-sticky > .wrap {
    flex: 1;
  }
  .how.is-pinned .how-body {
    display: grid;
    grid-template-columns: 0.4rem minmax(0, 5fr) minmax(0, 7fr);
    gap: 0 2.5rem;
    min-height: min(56vh, 30rem);
  }
  .how.is-pinned .how-track {
    display: block;
    position: relative;
    border-radius: 999px;
    background: var(--line);
    overflow: hidden;
  }
  .how.is-pinned .how-bar {
    position: absolute;
    inset: 0;
    background: var(--accent);
    transform-origin: top;
    transform: scaleY(0);
  }
  .how.is-pinned .how-stages {
    grid-column: 2 / 4;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 1.75rem 2.5rem;
    position: relative;
    align-content: center;
  }
  .how.is-pinned .how-stage {
    grid-column: 1;
    display: block;
    position: static;
  }
  .how.is-pinned .how-art {
    position: absolute;
    top: 50%;
    right: 0;
    width: calc(58.33% - 1.25rem);
    margin-top: calc(-0.4 * min(56vh, 30rem));
  }
  .how.is-pinned .how-text {
    padding-left: 1rem;
    border-left: 3px solid transparent;
    transition: border-color var(--ds-dur-base) var(--ds-ease-standard);
  }
  .how.is-pinned .is-active .how-text {
    border-left-color: var(--accent);
  }
  .how.is-pinned .how-stage:not(.is-active) .how-num {
    color: var(--muted);
  }
}

/* Illustration colours (the pictures follow light and dark). */
.ha-floor { fill: var(--line); }
.ha-stand { fill: color-mix(in srgb, var(--ink) 35%, var(--bg)); }
.ha-frame { fill: #1d242a; }
.ha-screen { fill: #0e1216; }
.ha-panel { fill: #f4f1ec; }
.ha-text { fill: #15191d; }
.ha-text-dim { fill: #8b949b; }
.ha-appliance { fill: #e9ebe6; }
.ha-pipe { stroke: #d9895a; stroke-width: 6; stroke-linecap: round; fill: none; }
.ha-accent { fill: #f4a46c; }
.ha-cold { fill: #6cb6ff; }
.ha-dock { fill: #2e3840; }
.ha-person { fill: color-mix(in srgb, var(--ink) 75%, var(--bg)); }
.ha-arm { stroke: color-mix(in srgb, var(--ink) 75%, var(--bg)); stroke-width: 12; stroke-linecap: round; fill: none; }
.ha-heads circle { fill: color-mix(in srgb, var(--ink) 45%, var(--bg)); }
.ha-card { fill: #f4f1ec; }
.ha-ink { fill: #15191d; }
.ha-ink-dim { fill: #8b949b; }
.ha-option { fill: #ffffff; stroke: #c9ced2; stroke-width: 2; }
.ha-option-right { stroke: #c2410c; stroke-width: 3; fill: #fbe6da; }
.ha-tick { stroke: #c2410c; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.ha-hand { stroke: color-mix(in srgb, var(--ink) 45%, var(--bg)); stroke-width: 10; stroke-linecap: round; }
.ha-hand-dot { fill: color-mix(in srgb, var(--ink) 45%, var(--bg)); }

/* ------------------------------------------------------------ text roll (links and buttons)
   The label rolls up to an identical copy on hover and focus. Transform only; none with
   reduced motion. The copy is aria-hidden, so the accessible name is unchanged. */
.roll {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  height: 1.25em;
  line-height: 1.25;
}
.roll-in {
  display: flex;
  flex-direction: column;
}
@media (prefers-reduced-motion: no-preference) {
  .roll-in {
    transition: transform var(--ds-dur-base) var(--ds-ease-standard);
  }
  a:hover .roll-in,
  a:focus-visible .roll-in,
  button:hover .roll-in {
    transform: translateY(-50%);
  }
}

/* ------------------------------------------------------------ parallax decorations */
.features-section,
.cta-box {
  position: relative;
  overflow: hidden;
}
.features-section > .wrap,
.cta-box > :not(.deco) {
  position: relative;
}
.deco {
  position: absolute;
  pointer-events: none;
}
/* A copper pipe run with a bend and two collars (SVG in the template). */
.deco-a {
  right: -3rem;
  top: 2rem;
  width: min(30rem, 60vw);
  color: color-mix(in srgb, var(--accent) 18%, transparent);
}
.deco-a svg {
  width: 100%;
  height: auto;
}
.deco-b {
  right: -4rem;
  bottom: -5rem;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  border: 18px solid color-mix(in srgb, var(--accent) 30%, transparent);
}

/* ------------------------------------------------------------ demo */
.demo-section {
  padding-block: var(--section);
  border-top: 1px solid var(--line);
}
.demo-layout {
  display: grid;
  gap: 1.5rem 2.5rem;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 62rem) {
  .demo-layout {
    grid-template-columns: minmax(0, 1fr) 17rem;
    align-items: start;
  }
}
.demo-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  background: #0e1216;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
@media (max-width: 40rem) {
  .demo-frame {
    aspect-ratio: 4 / 5;
  }
}
.demo-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.demo-start {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  border: 0;
  background: linear-gradient(180deg, rgb(14 18 22 / 0%) 35%, rgb(14 18 22 / 72%));
  color: #fff;
  font: 600 1.15rem/1.2 var(--f-body);
  cursor: pointer;
}
.demo-start-icon {
  display: grid;
  place-items: center;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background: #f4a46c;
  color: #1a0f07;
  box-shadow: 0 8px 30px rgb(0 0 0 / 35%);
  transition: transform 0.2s;
}
.demo-start:hover .demo-start-icon {
  transform: scale(1.06);
}
.demo-start-text {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgb(14 18 22 / 70%);
}
.demo-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 3;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  background: #f4a46c;
  color: #1a0f07;
  font: 700 0.85rem/1 var(--f-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  pointer-events: none;
}
.demo-mount {
  position: absolute;
  inset: 0;
  z-index: 1; /* its own stacking context, so the Demo label (z-index 3) stays on top */
}
.demo-note {
  font-size: 0.98rem;
  color: var(--muted);
}
.demo-note strong {
  color: var(--ink);
}
.demo-note .btn {
  margin-top: 0.5rem;
}

/* ------------------------------------------------------------ steps, features */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2rem 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  border-top: 3px solid var(--ink);
  padding-top: 1.25rem;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font: 700 1rem/1 var(--f-display);
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.9rem;
}
.steps p,
.features p {
  color: var(--muted);
  margin: 0;
}
.features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2.25rem 2.5rem;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 40rem) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 62rem) {
  .features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.features li {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--ds-shadow-sm);
}
.features h3 {
  font-size: 1.45rem;
  margin-bottom: 0.4rem;
}
.feature-num {
  display: block;
  font: 700 0.95rem/1 var(--f-display);
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* ------------------------------------------------------------ courses */
.courses {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.courses li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 1.35rem;
  border-bottom: 1px solid var(--line);
}
.courses h3 {
  margin: 0;
}
/* The course that's available now stands out; the rest follow as "coming". */
.courses .course-available {
  position: relative;
  padding-inline: min(1.25rem, var(--gutter));
  margin-inline: calc(-1 * min(1.25rem, var(--gutter)));
  border-radius: var(--radius);
  background: var(--accent-soft);
  border-bottom-color: transparent;
}
.courses .detail {
  color: var(--muted);
  flex: 1 1 18rem;
  margin: 0;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font: 600 0.88rem/1.1 var(--f-body);
  border: 1.5px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
}
.status::before {
  content: "";
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  border: 1.5px solid currentColor;
}
.status-available {
  border-color: var(--accent);
  color: var(--ink);
  background: var(--accent-soft);
}
.status-available::before {
  background: var(--accent);
  border-color: var(--accent);
}

/* ------------------------------------------------------------ call to action */
.cta {
  text-align: left;
}
.cta-box {
  background: var(--ink);
  color: var(--bg);
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(2rem, 6vw, 4.5rem);
}
.cta-box .lede {
  color: color-mix(in srgb, var(--bg) 78%, var(--ink));
}
.cta-box .btn-primary {
  border-color: var(--accent);
}
@media (prefers-color-scheme: dark) {
  .cta-box {
    background: var(--surface-2);
    color: var(--ink);
  }
  .cta-box .lede {
    color: var(--muted);
  }
}

/* ------------------------------------------------------------ simulator gallery */
.page-head {
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(1.5rem, 3vw, 2.5rem);
}
.gallery {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2.5rem 2rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr));
}
.sim-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.sim-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.sim-card h3 {
  margin: 0.25rem 0 0;
}
.sim-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0;
}
.sim-card p {
  margin: 0;
}
.sim-card .demo-link {
  font-weight: 600;
}
.gallery-group + .gallery-group {
  margin-top: var(--section);
}

/* ------------------------------------------------------------ prose pages */
.prose {
  max-width: 44rem;
}
.prose h2 {
  font-size: clamp(1.7rem, 1.4rem + 1.2vw, 2.35rem);
  margin-top: 2.5em;
}
.prose h3 {
  margin-top: 1.8em;
}
.prose ul {
  padding-left: 1.25rem;
}
.prose li {
  margin-bottom: 0.4em;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.98rem;
}
.prose th,
.prose td {
  text-align: left;
  vertical-align: top;
  padding: 0.65rem 0.75rem 0.65rem 0;
  border-bottom: 1px solid var(--line);
}
.prose th {
  font-weight: 600;
}
.prose code {
  font-size: 0.95em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: var(--surface-2);
  overflow-wrap: anywhere;
}
.table-scroll {
  overflow-x: auto;
}
.draft-banner {
  border: 2px dashed var(--accent);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  background: var(--accent-soft);
}
.draft-banner p {
  margin: 0;
}
.on-this-page {
  border-left: 3px solid var(--line);
  padding-left: 1rem;
  margin: 2rem 0;
}
.on-this-page ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}

/* ------------------------------------------------------------ forms */
.form {
  max-width: 40rem;
}
.field {
  margin-bottom: 1.5rem;
}
.field label,
.field legend {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.field .hint {
  display: block;
  color: var(--muted);
  font-size: 0.95rem;
  margin: -0.15rem 0 0.5rem;
}
.field input[type="text"],
.field input[type="email"],
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 2px solid color-mix(in srgb, var(--ink) 55%, var(--bg));
  border-radius: 8px;
  padding: 0.7rem 0.8rem;
  min-height: 3rem;
}
.field textarea {
  min-height: 9rem;
  resize: vertical;
}
.field fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}
.checks {
  display: grid;
  gap: 0.25rem;
}
.check {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 2.75rem;
  font-weight: 400;
}
.check input {
  width: 1.35rem;
  height: 1.35rem;
  accent-color: var(--accent);
  margin: 0;
}
.field.has-error input,
.field.has-error textarea {
  border-color: var(--error);
}
.field-error {
  display: block;
  color: var(--error);
  font-weight: 600;
  margin: 0 0 0.4rem;
}
.error-summary {
  border: 3px solid var(--error);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}
.error-summary h2 {
  font-size: 1.6rem;
  margin: 0 0 0.5rem;
}
.error-summary ul {
  margin: 0;
  padding-left: 1.2rem;
}
.error-summary a {
  color: var(--error);
  font-weight: 600;
}
/* Spam trap: off-screen, out of the tab order and hidden from assistive technology. */
.hp {
  position: absolute !important;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.contact-layout {
  display: grid;
  gap: 2rem 4rem;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 62rem) {
  .contact-layout {
    grid-template-columns: minmax(0, 40rem) minmax(0, 1fr);
  }
}
.aside-box {
  border-top: 3px solid var(--ink);
  padding-top: 1.25rem;
  color: var(--muted);
}
.aside-box h2 {
  font-size: 1.5rem;
  color: var(--ink);
}
.confirm {
  border-left: 6px solid var(--ok);
  padding: 0.25rem 0 0.25rem 1.25rem;
  max-width: 40rem;
}

/* ------------------------------------------------------------ footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 3rem 2.5rem;
  margin-top: var(--section);
  font-size: 0.98rem;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}
.site-footer h2 {
  font: 600 0.82rem/1.3 var(--f-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.75rem;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer li a {
  display: inline-block;
  padding-block: 0.3rem;
}
.footer-base {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

/* ------------------------------------------------------------ motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.footer-tag {
  margin-top: 1rem;
  max-width: 18rem;
}
.sim-placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  border: 1px dashed var(--line);
  background: var(--surface-2);
  color: var(--muted);
  font-weight: 600;
}

/* ------------------------------------------------------------ 404 */
.error-page {
  padding-block: clamp(3rem, 9vw, 7rem);
}
.error-code {
  display: flex;
  align-items: center;
  gap: 0.1em;
  margin: 0 0 1rem;
  font: 700 clamp(5rem, 3rem + 10vw, 10rem) / 1 var(--f-display);
  color: var(--accent);
}
/* The 0 is a valve handwheel, turned off. */
.error-valve {
  position: relative;
  width: 0.62em;
  height: 0.62em;
  border-radius: 50%;
  border: 0.1em solid currentColor;
}
.error-valve::before,
.error-valve::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.08em;
  height: 0.5em;
  margin: -0.25em 0 0 -0.04em;
  background: currentColor;
  border-radius: 0.04em;
}
.error-valve::after {
  transform: rotate(90deg);
}
@media (prefers-color-scheme: dark) {
  /* Keep the whiteboard and phones distinct from the dark card behind them. */
  .ha-frame,
  .ha-phone {
    fill: #4a5661;
  }
}
