/* MechPilot website. Dark like the app for the hero and the story, light paper for reading and
   tables. Colours from app/renderer/styles/tokens.css (accent #4da3ff, selection #ffb020, ok
   #52c98b), darkened where they sit on paper so that every text pair passes WCAG AA. No web fonts
   (system UI text, a monospace stack for labels and numbers), no scripts, no third parties. */

:root {
  --bg: #0b0e12;
  --chrome: #0d1115;
  --panel: #12171d;
  --raised: #1a2028;
  --line: #27303b;
  --line-strong: #364252;
  --text: #eef2f6;
  --muted: #a7b3bf;
  --dim: #808c99;
  --accent: #4da3ff;
  --link: #6cb4ff;
  --focus: #6cb4ff;
  --ok: #52c98b;
  --warn: #f0a63a;
  --warn-bg: rgba(240, 166, 58, 0.08);
  --warn-line: rgba(240, 166, 58, 0.45);
  --err: #ff5a4f;
  --sel: #ffb020;
  --soon: #ffb020;
  --soon-line: rgba(255, 176, 32, 0.5);
  --us-bg: rgba(77, 163, 255, 0.08);
  --btn-bg: #4da3ff;
  --btn-bg-hover: #6cb4ff;
  --btn-fg: #06111f;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI Variable Text', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --display: 'Inter Display', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI Variable Display', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'Cascadia Mono', 'JetBrains Mono', Consolas, 'Liberation Mono', monospace;
  --radius: 12px;
  --gutter: 24px;
  color-scheme: dark;
}

/* Light paper: the same tokens, redefined. Any element with .light (a section, or main on reading
   pages) and everything in it switches. */
.light {
  --bg: #f4f6f8;
  --chrome: #e9edf1;
  --panel: #ffffff;
  --raised: #eaeef2;
  --line: #d3dae2;
  --line-strong: #b9c3ce;
  --text: #0d1117;
  --muted: #45505c;
  --dim: #5c6773;
  --accent: #0b66c3;
  --link: #0b5fb8;
  --focus: #0b5fb8;
  --ok: #137a48;
  --warn: #8a5300;
  --warn-bg: rgba(138, 83, 0, 0.07);
  --warn-line: rgba(138, 83, 0, 0.35);
  --err: #b42318;
  --soon: #8a5300;
  --soon-line: rgba(138, 83, 0, 0.45);
  --us-bg: rgba(11, 95, 184, 0.07);
  --btn-bg: #0b5fb8;
  --btn-bg-hover: #0a4f99;
  --btn-fg: #ffffff;
  --shadow: 0 24px 60px rgba(13, 17, 23, 0.18), 0 2px 6px rgba(13, 17, 23, 0.08);
  color-scheme: light;
  background: var(--bg);
  color: var(--text);
}
.light.alt {
  --bg: #ffffff;
  --panel: #f4f6f8;
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
@media (min-width: 900px) {
  body {
    font-size: 17px;
  }
}
a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
}
a:hover {
  text-decoration-color: currentColor;
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 3px;
}
img,
svg {
  max-width: 100%;
  height: auto;
}
code,
pre {
  font-family: var(--mono);
  font-size: 0.88em;
}
code {
  background: var(--raised);
  border-radius: 4px;
  padding: 0.1em 0.35em;
  overflow-wrap: anywhere;
}
pre {
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  overflow-x: auto;
  line-height: 1.45;
}
pre code {
  background: none;
  padding: 0;
  overflow-wrap: normal;
}
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: 8px;
  top: -48px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 10;
  font-weight: 650;
  text-decoration: none;
}
.skip:focus {
  top: 8px;
}

/* Layout */
.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
main {
  display: block;
}
.page > .wrap {
  padding-top: 40px;
  padding-bottom: 96px;
}
.narrow {
  max-width: 780px;
}

/* Type */
h1,
h2,
h3 {
  font-family: var(--display);
  color: var(--text);
  text-wrap: balance;
}
h1 {
  font-size: clamp(2rem, 1.35rem + 2.6vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 800;
  margin: 0 0 18px;
}
h2 {
  font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 750;
  margin: 40px 0 12px;
}
h3 {
  font-size: 1.15rem;
  line-height: 1.3;
  font-weight: 700;
  margin: 28px 0 8px;
}
p {
  text-wrap: pretty;
}
.lead {
  font-size: clamp(1.08rem, 1rem + 0.4vw, 1.3rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 760px;
}
.sub {
  color: var(--muted);
  font-size: clamp(1rem, 0.96rem + 0.25vw, 1.15rem);
  max-width: 760px;
  margin: 0;
}
.note,
.small {
  color: var(--muted);
  font-size: 0.875rem;
}
.label,
.eyebrow {
  font: 600 0.78rem/1.4 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--link);
  margin: 0 0 14px;
}
.crumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 0;
  margin: 0 0 24px;
  font-size: 0.875rem;
  color: var(--dim);
}
.crumbs li + li::before {
  content: '/';
  margin: 0 6px 0 2px;
  color: var(--line-strong);
}
.crumbs a {
  color: var(--muted);
}

/* Header */
.top {
  background: var(--chrome);
  border-bottom: 1px solid var(--line);
}
.top-in {
  display: flex;
  align-items: center;
  gap: 12px 28px;
  min-height: 64px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font: 750 1.1rem/1 var(--display);
  letter-spacing: -0.01em;
  text-decoration: none;
  flex: none;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px 20px;
  margin-left: auto;
  font-size: 0.94rem;
}
.main-nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 6px 0;
  white-space: nowrap;
}
.main-nav a:hover {
  color: var(--text);
}
.main-nav a[aria-current='page'] {
  color: var(--text);
  box-shadow: inset 0 -2px 0 var(--accent);
}
.main-nav .lang {
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 3px 9px;
}
.top-dl {
  flex: none;
}

/* Footer */
.foot {
  background: #080a0d;
  border-top: 1px solid var(--line);
  padding: 64px 0 36px;
  color: var(--muted);
  font-size: 0.92rem;
}
.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 2fr);
  gap: 40px;
}
.foot-brand p {
  max-width: 34ch;
  margin: 16px 0 0;
}
.foot-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.foot-h {
  font: 600 0.75rem/1.4 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 0 0 12px;
}
.foot ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.foot a {
  color: var(--muted);
  text-decoration: none;
}
.foot a:hover {
  color: var(--text);
  text-decoration: underline;
}
.foot-base {
  border-top: 1px solid var(--line);
  margin-top: 48px;
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 24px;
  font-size: 0.85rem;
  color: var(--dim);
}
.foot-base p {
  margin: 0;
}

/* Buttons and tags */
.cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin: 28px 0 8px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--text);
  background: transparent;
  font-weight: 650;
  line-height: 1.3;
  text-decoration: none;
}
.btn:hover {
  border-color: var(--link);
  color: var(--text);
}
.btn.primary {
  background: var(--btn-bg);
  border-color: var(--btn-bg);
  color: var(--btn-fg);
}
.btn.primary:hover {
  background: var(--btn-bg-hover);
  border-color: var(--btn-bg-hover);
  color: var(--btn-fg);
}
.btn.lg {
  padding: 14px 26px;
  font-size: 1.05rem;
  border-radius: 12px;
}
.btn.sm {
  padding: 7px 14px;
  font-size: 0.875rem;
  border-radius: 8px;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  vertical-align: middle;
  font: 600 0.75rem/1.5 var(--mono);
  letter-spacing: 0.02em;
  text-transform: none;
  padding: 2px 10px;
  border-radius: 999px;
  margin-left: 8px;
  white-space: nowrap;
}
.tag.ok {
  color: var(--ok);
  border: 1px solid color-mix(in srgb, var(--ok) 50%, transparent);
}
.tag.planned {
  color: var(--warn);
  border: 1px solid var(--warn-line);
}
.tag.soon {
  color: var(--soon);
  border: 1px solid var(--soon-line);
  background: color-mix(in srgb, var(--soon) 8%, transparent);
}
.tag.soon::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.notice {
  background: var(--warn-bg);
  border: 1px solid var(--warn-line);
  border-radius: 10px;
  padding: 14px 18px;
}

/* Sections */
.sec {
  padding: clamp(72px, 9vw, 128px) 0;
}
.sec-head {
  max-width: 800px;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.sec h2 {
  font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin: 0 0 18px;
}
.sec h2 .tag {
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  position: relative;
  top: -0.2em;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 32px);
}
.card h3 {
  margin-top: 0;
  font-size: 1.3rem;
}
.card p {
  color: var(--muted);
}
.card.accent {
  border-color: var(--accent);
  box-shadow: inset 0 3px 0 var(--accent);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 8vw, 112px) 0 0;
  background:
    radial-gradient(1100px 560px at 78% -8%, rgba(77, 163, 255, 0.2), transparent 62%),
    radial-gradient(700px 400px at 0% 30%, rgba(255, 176, 32, 0.06), transparent 70%),
    var(--bg);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(108, 180, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108, 180, 255, 0.07) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 85%);
  mask-image: linear-gradient(to bottom, #000 30%, transparent 85%);
  pointer-events: none;
}
.hero > .wrap {
  position: relative;
}
.hero h1 {
  font-size: clamp(2.5rem, 1rem + 6.2vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 800;
  margin: 0 0 28px;
  text-wrap: wrap;
}
.hero-sub h1 {
  font-size: clamp(2.4rem, 1.2rem + 4.4vw, 4.6rem);
  line-height: 1;
  max-width: 18ch;
  text-wrap: balance;
}
.hero h1 .l {
  display: block;
}
.hero h1 .ai {
  color: var(--link);
}
.hero h1 .tag {
  margin: 0.35em 0 0;
  display: flex;
  width: max-content;
  max-width: 100%;
  white-space: normal;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  line-height: 1.4;
}
.hero .lead {
  margin: 0;
}
.promise {
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  font-weight: 650;
  margin: 18px 0 0;
}
.hero .note {
  margin: 14px 0 0;
}
.hero-shot {
  margin: clamp(48px, 7vw, 88px) 0 0;
}
.hero-shot img {
  display: block;
  width: 100%;
  border: 1px solid var(--line-strong);
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  box-shadow: 0 -10px 80px rgba(77, 163, 255, 0.18), var(--shadow);
}
/* A dimension line under the screenshot, like on a drawing. */
.dimline {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0 28px;
  color: var(--dim);
  font: 500 0.78rem/1.4 var(--mono);
  text-align: center;
}
.dimline::before,
.dimline::after {
  content: '';
  flex: 1;
  min-width: 16px;
  height: 11px;
  background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat;
}
.dimline::before {
  border-left: 1px solid currentColor;
}
.dimline::after {
  border-right: 1px solid currentColor;
}
.hero-sub {
  padding-bottom: clamp(56px, 7vw, 96px);
}
.hero-sub .lead {
  margin-top: 0;
}
.hero-sub h2 {
  margin-top: 48px;
}

/* The assistant */
.ai-sec {
  border-top: 1px solid var(--line);
  background:
    radial-gradient(900px 520px at 12% 0%, rgba(77, 163, 255, 0.13), transparent 62%),
    radial-gradient(700px 500px at 100% 100%, rgba(255, 176, 32, 0.07), transparent 65%),
    #0d1117;
}
.ai-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: start;
}
.points {
  list-style: none;
  counter-reset: point;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 28px;
  padding: 0;
  margin: 0;
}
.points li {
  counter-increment: point;
  border-top: 1px solid var(--line-strong);
  padding-top: 16px;
}
.points li::before {
  content: counter(point, decimal-leading-zero);
  font: 600 0.78rem/1 var(--mono);
  color: var(--link);
}
.points h3 {
  margin: 10px 0 6px;
  font-size: 1.12rem;
}
.points p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.mock {
  margin: 0;
}
.mock-win {
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  box-shadow: var(--shadow), 0 0 0 6px rgba(77, 163, 255, 0.05);
  overflow: hidden;
}
.mock-bar {
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0 18px;
  background: var(--chrome);
  border-bottom: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--dim);
}
.mock-bar span {
  padding: 11px 0;
}
.mock-bar .on {
  color: var(--text);
  box-shadow: inset 0 -2px 0 var(--accent);
}
.mock-body {
  padding: clamp(14px, 2.4vw, 22px);
  display: grid;
  gap: 16px;
}
.bubble {
  margin: 0;
  max-width: 44em;
  background: rgba(77, 163, 255, 0.12);
  border: 1px solid rgba(77, 163, 255, 0.4);
  border-radius: 16px 16px 4px 16px;
  padding: 12px 16px;
  color: var(--text);
  line-height: 1.55;
}
.mock .bubble {
  margin-left: auto;
  max-width: 92%;
  font-size: 0.95rem;
}
.bubble .who {
  display: block;
  font: 600 0.7rem/1.4 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--link);
  margin-bottom: 4px;
}
.light .bubble {
  background: rgba(11, 95, 184, 0.07);
  border-color: rgba(11, 95, 184, 0.35);
}
.proposal {
  border: 1px solid var(--accent);
  border-radius: 12px;
  background: rgba(77, 163, 255, 0.04);
  padding: 14px;
  font-size: 0.9rem;
}
.prop-head {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  align-items: baseline;
  margin: 0 0 12px;
  color: var(--muted);
}
.prop-head .kind {
  font: 700 0.72rem/1.4 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--link);
}
.ghost {
  display: block;
  width: 100%;
  background-color: #0b0e12;
  background-image:
    linear-gradient(rgba(108, 180, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108, 180, 255, 0.06) 1px, transparent 1px);
  background-size: 20px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.ghost .g {
  fill: rgba(77, 163, 255, 0.05);
  stroke: #4da3ff;
  stroke-width: 1.6;
  stroke-dasharray: 7 4;
}
.ghost .c {
  fill: none;
  stroke: #808c99;
  stroke-width: 0.8;
  stroke-dasharray: 14 3 2 3;
}
.claims {
  list-style: none;
  padding: 0;
  margin: 12px 0;
  display: grid;
  gap: 8px;
}
.claims li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
}
.src {
  font: 600 0.72rem/1.5 var(--mono);
  padding: 1px 8px;
  border-radius: 999px;
  border: 1px solid currentColor;
  white-space: nowrap;
}
.src.measured {
  color: var(--ok);
}
.src.std {
  color: var(--link);
}
.src.lib {
  color: #c3a6ff;
}
.src.sug {
  color: var(--warn);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 0;
}
.fake-btn {
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  font-weight: 650;
  font-size: 0.85rem;
}
.fake-btn.primary {
  background: var(--btn-bg);
  border-color: var(--btn-bg);
  color: var(--btn-fg);
}
.undo {
  margin-left: auto;
  color: var(--dim);
  font: 500 0.75rem/1.4 var(--mono);
}
.mock figcaption {
  color: var(--dim);
  font-size: 0.82rem;
  margin-top: 14px;
}

/* Features: three pillars with real screenshots */
.switch {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: -16px 0 40px;
  font-size: 0.875rem;
  color: var(--muted);
}
.switch label {
  cursor: pointer;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 3px 14px;
  color: var(--muted);
}
#shot-dark:checked ~ .switch label[for='shot-dark'],
#shot-light:checked ~ .switch label[for='shot-light'] {
  color: var(--btn-fg);
  background: var(--btn-bg);
  border-color: var(--btn-bg);
}
#shot-dark:focus-visible ~ .switch label[for='shot-dark'],
#shot-light:focus-visible ~ .switch label[for='shot-light'] {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.shot {
  margin: 0;
}
.shot img {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--raised);
}
.t-light,
#shot-light:checked ~ .pillars .t-dark {
  display: none !important;
}
#shot-light:checked ~ .pillars .t-light {
  display: block !important;
}
.pillars {
  display: grid;
  gap: clamp(72px, 9vw, 128px);
}
.pillar {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
}
.pillar:nth-child(even) .pillar-text {
  order: 2;
}
.pillar .label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 0;
}
.pillar h3 {
  font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.35rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 800;
  margin: 0 0 16px;
}
.pillar-text > p {
  color: var(--muted);
}
.pillar .next {
  margin-top: 18px;
}
.pillar .next .tag {
  margin-left: 0;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
}
.chips > * {
  font: 500 0.85rem/1.4 var(--mono);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px 10px;
}
.chips a {
  text-decoration: none;
}
.chips a:hover {
  border-color: var(--link);
}
.glyphs {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 92px), 1fr));
  gap: 8px;
}
.glyphs li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 4px 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
  hyphens: auto;
}
.glyphs svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--text);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.glyphs .g-acc {
  stroke: var(--link);
}
.glyphs .g-pt {
  fill: var(--sel-ink, #b26b00);
  stroke: none;
}
.glyphs .g-axis {
  stroke: var(--dim);
  stroke-width: 1;
  stroke-dasharray: 5 2 1 2;
}
.tree {
  margin: 24px 0 0;
  max-width: 440px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px 10px;
  font-size: 0.9rem;
}
.tree-h {
  margin: 0 0 8px;
  font: 600 0.72rem/1.4 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}
.tree ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.tree li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0 7px 26px;
}
.tree li:first-child {
  padding-left: 0;
}
.tree li + li::before {
  content: '';
  position: absolute;
  left: 8px;
  top: -6px;
  width: 12px;
  height: 25px;
  border-left: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  border-bottom-left-radius: 4px;
}
.tree svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: var(--link);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tree .k {
  font: 600 0.68rem/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim);
  min-width: 7.5em;
}

/* Why MechPilot */
.why {
  background:
    linear-gradient(90deg, rgba(77, 163, 255, 0.07), transparent 40%),
    var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(24px, 4vw, 64px);
}
.big {
  font-size: clamp(1.2rem, 1rem + 0.9vw, 1.65rem);
  line-height: 1.45;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0;
}
.stats {
  list-style: none;
  padding: 0;
  margin: 48px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.stats li {
  border-top: 1px solid var(--line-strong);
  padding-top: 16px;
  color: var(--muted);
  font-size: 0.92rem;
}
.stats strong {
  display: block;
  font: 800 clamp(2.2rem, 1.4rem + 2.6vw, 3.4rem)/1 var(--display);
  letter-spacing: -0.04em;
  color: var(--link);
  margin-bottom: 10px;
}

/* Your files */
.facts-grid {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 14px;
}
.facts-grid li {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: 10px;
  padding: 18px 18px 16px;
}
.facts-grid h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}
.facts-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Download */
.dl-sec {
  background:
    radial-gradient(900px 420px at 50% 120%, rgba(77, 163, 255, 0.22), transparent 70%),
    #0d1117;
  border-top: 1px solid var(--line);
}
.downloads {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 14px;
  margin: 24px 0 12px;
}
.dl {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 20px 22px;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
}
.dl:hover {
  border-color: var(--link);
}
.dl strong {
  font: 750 1.3rem/1.2 var(--display);
  letter-spacing: -0.015em;
}
.dl span {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Two cards */
.duo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 20px;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.94rem;
}
caption {
  text-align: left;
  padding: 8px 12px;
  color: var(--muted);
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
thead th {
  background: var(--raised);
  color: var(--muted);
  font-weight: 650;
  font-size: 0.85rem;
  white-space: nowrap;
}
tbody tr:last-child > * {
  border-bottom: 0;
}
tbody tr:hover {
  background: color-mix(in srgb, var(--accent) 5%, transparent);
}
tbody th {
  font-weight: 600;
}
table.num thead th {
  text-align: right;
}
table.num td,
table.num tbody th {
  font-family: var(--mono);
  font-size: 0.875rem;
  text-align: right;
  white-space: nowrap;
}
table.num-3 td:nth-child(3),
table.num-last td:nth-child(5) {
  font-family: var(--mono);
  text-align: right;
}
table.dense th,
table.dense td {
  padding: 5px 8px;
  font-size: 0.8125rem;
}
.matrix td {
  white-space: nowrap;
}
.compare td {
  white-space: normal;
  min-width: 7.5em;
}
.compare tbody th {
  min-width: 13em;
}
.matrix .yes {
  color: var(--ok);
  font-weight: 600;
}
.matrix .no {
  color: var(--dim);
}
.matrix .planned {
  color: var(--warn);
  font-weight: 600;
}
.matrix .unknown {
  color: var(--dim);
  text-align: center;
}
.compare th.us,
.compare td:nth-child(2) {
  background: var(--us-bg);
}
.compare thead th.us {
  color: var(--text);
}

/* Demo page */
.demo-video {
  margin: clamp(32px, 5vw, 56px) 0 0;
}
.demo-video video {
  display: block;
  width: 100%;
  height: auto;
  background: #000;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: 0 -10px 80px rgba(77, 163, 255, 0.16), var(--shadow);
}
.demo-video figcaption {
  margin-top: 12px;
  color: var(--dim);
  font-size: 0.85rem;
}
.recording {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: clamp(32px, 5vw, 48px) 0 0;
  padding: clamp(20px, 4vw, 40px);
  aspect-ratio: 16 / 10;
  max-height: 420px;
  width: 100%;
  justify-content: center;
  text-align: left;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  background:
    linear-gradient(rgba(108, 180, 255, 0.05) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(108, 180, 255, 0.05) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--panel);
  color: var(--muted);
}
.recording span:last-child {
  max-width: 46ch;
}
.rec {
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--err);
  box-shadow: 0 0 0 5px rgba(255, 90, 79, 0.18);
}
.toc-h {
  margin: 48px 0 0;
  font: 600 0.78rem/1.4 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--link);
}
.toc-h + .gate {
  margin-top: 12px;
}
.step-toc {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 10px;
  counter-reset: none;
}
.step-toc a {
  display: flex;
  gap: 10px;
  align-items: baseline;
  height: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(18, 23, 29, 0.7);
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  line-height: 1.35;
}
.step-toc a:hover {
  border-color: var(--link);
}
.step-toc span {
  font: 700 0.78rem/1 var(--mono);
  color: var(--link);
}
.gate {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  max-width: 760px;
  margin: 24px 0 0;
  padding: 14px 18px;
  border: 1px solid var(--soon-line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--soon) 6%, transparent);
  color: var(--text);
}
.gate .tag {
  margin: 0;
}
.prep-sec {
  padding: 0 0 clamp(56px, 7vw, 88px);
}
.prep {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 32px);
  max-width: 860px;
}
.prep h2 {
  margin: 0 0 8px;
  font-size: 1.3rem;
}
.prep ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}
.prep li + li {
  margin-top: 6px;
}
.step {
  padding: clamp(64px, 8vw, 112px) 0;
  border-top: 1px solid var(--line);
}
.step.alt {
  background: #0d1117;
}
.step-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
}
.step-num {
  margin: 0 0 8px;
  font: 800 clamp(3.5rem, 2.4rem + 4vw, 6rem)/0.9 var(--display);
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent);
}
.step h2 {
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 800;
  margin: 0 0 18px;
}
.step h2 .label {
  display: block;
  margin-bottom: 8px;
}
.step-text p,
.step-text li {
  color: var(--muted);
}
.step-text strong {
  color: var(--text);
}
.step-text .bubble {
  margin: 18px 0;
  color: var(--text);
}
.step-text ul {
  padding-left: 20px;
}
.step .shot {
  position: sticky;
  top: 24px;
}
.try {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(77, 163, 255, 0.18), transparent 70%),
    var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  padding: clamp(24px, 5vw, 56px);
}
.try h2 {
  margin-top: 0;
}
.try > p:not(.cta):not(.bubble) {
  color: var(--muted);
  font-size: 1.08rem;
}
.try .bubble {
  margin: 20px 0;
}
.try-sec {
  border-top: 1px solid var(--line);
}

/* For companies */
.offer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 20px;
}
.offer .icon {
  width: 44px;
  height: 44px;
  fill: none;
  stroke: var(--link);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 18px;
}
.offer h3 {
  font-size: 1.35rem;
}
.offer p {
  margin: 0;
}
.checks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  max-width: 900px;
}
.checks li {
  position: relative;
  padding: 18px 20px 18px 56px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 1.02rem;
}
.checks li::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 22px;
  width: 16px;
  height: 9px;
  border-left: 2.5px solid var(--ok);
  border-bottom: 2.5px solid var(--ok);
  transform: rotate(-45deg);
}
.checks .tag,
.gate .tag,
.pillar .tag {
  white-space: normal;
}
.checks .tag {
  margin-left: 4px;
}
.contact {
  background:
    radial-gradient(800px 400px at 50% 120%, rgba(77, 163, 255, 0.22), transparent 70%),
    #0d1117;
}
.contact-box {
  max-width: 860px;
}

/* Docs, guides, standards (on light paper) */
.cards {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
}
.cards li {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
}
.cards li:hover {
  border-color: var(--line-strong);
}
.cards a {
  font-weight: 650;
  display: block;
  text-decoration: none;
  font-size: 1.05rem;
}
.cards span {
  color: var(--muted);
  font-size: 0.94rem;
}
.doc-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 48px;
}
.doc-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  position: sticky;
  top: 20px;
}
.doc-nav a {
  display: block;
  padding: 7px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.94rem;
  text-decoration: none;
}
.doc-nav a:hover {
  color: var(--text);
}
.doc-nav a[aria-current='page'] {
  background: var(--panel);
  color: var(--text);
  box-shadow: inset 2px 0 0 var(--accent);
}
.prose {
  max-width: 800px;
}
.prose h2 {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  margin-top: 44px;
}
.prose li {
  margin: 4px 0;
}
.edit {
  margin-top: 48px;
  font-size: 0.875rem;
}
.std h1 {
  max-width: 900px;
}
.sym {
  font-size: 22px;
  line-height: 1;
}
dl.facts {
  display: grid;
  grid-template-columns: minmax(140px, max-content) 1fr;
  gap: 8px 20px;
}
dl.facts dt {
  font-weight: 600;
}
dl.facts dd {
  margin: 0;
  color: var(--muted);
}
.sources {
  margin-top: 48px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 24px 16px;
}
.sources h2 {
  font-size: 1.2rem;
}
.sources dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 20px;
  font-size: 0.94rem;
}
.sources dt {
  font-weight: 600;
}
.sources dd {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.sources ul {
  margin: 0;
  padding-left: 18px;
}

/* Figures in the guides (inline SVG) */
.figs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 16px;
  margin: 24px 0;
}
.figs figcaption {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.875rem;
}
.fig {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.fig-title {
  fill: var(--text);
  font: 600 20px var(--font);
  text-anchor: middle;
}
.fig-text {
  fill: var(--text);
  font: 17px var(--font);
  text-anchor: middle;
}
.fig-box {
  fill: var(--raised);
  stroke: var(--accent);
  stroke-width: 1.5;
}
.fig-line {
  fill: none;
  stroke: var(--text);
  stroke-width: 2;
}
.fig-centre {
  fill: none;
  stroke: var(--muted);
  stroke-width: 1;
  stroke-dasharray: 12 3 2 3;
}

/* Motion: only small hover lifts and the marching preview, and none at all on request. */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
  .btn,
  .dl,
  .step-toc a,
  .chips > * {
    transition:
      border-color 0.15s ease,
      background-color 0.15s ease,
      transform 0.15s ease;
  }
  .btn:hover,
  .dl:hover {
    transform: translateY(-1px);
  }
  .ghost .g {
    animation: march 1.4s linear infinite;
  }
  .tag.soon::before,
  .rec {
    animation: pulse 2.4s ease-in-out infinite;
  }
  @keyframes march {
    to {
      stroke-dashoffset: -22;
    }
  }
  @keyframes pulse {
    50% {
      opacity: 0.35;
    }
  }
}

/* Medium screens */
@media (max-width: 1080px) {
  .ai-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .mock {
    max-width: 640px;
  }
}
@media (max-width: 960px) {
  .pillar,
  .step-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .pillar:nth-child(even) .pillar-text {
    order: 0;
  }
  .step .shot {
    position: static;
  }
  .why-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .doc-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .doc-nav ul {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }
  .foot-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* The header on narrow screens: logo and Download on one row, the links in a strip that
   scrolls sideways on its own (the page itself never scrolls sideways). */
@media (max-width: 860px) {
  .top-in {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0 12px;
    padding-top: 12px;
  }
  .main-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 6px calc(-1 * var(--gutter)) 0;
    padding: 0 var(--gutter);
    overflow-x: auto;
    scrollbar-width: none;
    gap: 18px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - 28px), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - 28px), transparent);
  }
  .main-nav::-webkit-scrollbar {
    display: none;
  }
  .main-nav a {
    padding: 10px 0 12px;
  }
  .main-nav a:focus-visible {
    outline-offset: -2px;
  }
  .main-nav .lang {
    padding: 3px 9px;
    margin-right: 28px;
  }
}

/* Small screens */
@media (max-width: 640px) {
  :root {
    --gutter: 16px;
  }
  .points,
  .stats {
    grid-template-columns: minmax(0, 1fr);
  }
  .stats {
    gap: 20px;
  }
  .foot-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .btn.lg {
    padding: 13px 20px;
  }
  .cta .btn.lg {
    flex: 1 1 auto;
  }
  .hero-shot img {
    border-radius: 10px 10px 0 0;
  }
  .undo {
    margin-left: 0;
    width: 100%;
  }
  .sources,
  .prep {
    padding-left: 16px;
    padding-right: 16px;
  }
  dl.facts,
  .sources dl {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
  dl.facts dd,
  .sources dd {
    margin-bottom: 10px;
  }
  .compare tbody th {
    min-width: 10em;
  }
}
