/* ==========================================================================
   Aerial — design system
   Dark, technical, generous spacing, ONE accent colour (signal amber).
   Everything else is a neutral grey scale.
   ========================================================================== */

@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/assets/fonts/jetbrains-mono-var.woff2') format('woff2');
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Neutrals */
  --bg: #0a0d10;
  --bg-raised: #0f1317;
  --surface: #13181d;
  --surface-2: #192026;
  --line: #232b33;
  --line-strong: #33404b;
  --text: #e9eef2;
  --text-2: #a9b4bd;
  --text-3: #7d8994;

  /* The one accent */
  --accent: #ffb020;
  --accent-ink: #1a1200;
  --accent-soft: rgba(255, 176, 32, 0.12);
  --accent-line: rgba(255, 176, 32, 0.38);

  --danger: #ff8a7a; /* form errors only — kept desaturated, used as text */

  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  --radius: 14px;
  --radius-sm: 8px;
  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
  --space-section: clamp(5rem, 11vw, 9rem);

  --header-h: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
main { flex: 1 0 auto; outline: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, figure { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  padding: 0.75rem 1rem; background: var(--accent); color: var(--accent-ink);
  font-weight: 600; border-radius: var(--radius-sm); text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--space-section); }
.section--tight { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section + .section { border-top: 1px solid var(--line); }
.stack > * + * { margin-top: var(--space-3); }

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow--muted { color: var(--text-3); }
.display {
  font-size: clamp(2.25rem, 5.2vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 640;
  text-wrap: balance;
}
.h1 { font-size: clamp(2.2rem, 5vw, 3.75rem); line-height: 1.08; letter-spacing: -0.03em; font-weight: 640; text-wrap: balance; }
.h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); line-height: 1.15; letter-spacing: -0.025em; font-weight: 620; text-wrap: balance; }
.h3 { font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.01em; font-weight: 600; }
.lede { font-size: clamp(1.125rem, 1.6vw, 1.3rem); color: var(--text-2); max-width: 40rem; line-height: 1.6; text-wrap: pretty; }
.muted { color: var(--text-2); }
.mono { font-family: var(--font-mono); font-size: 0.85em; letter-spacing: 0.01em; }
.accent { color: var(--accent); }

.section-head { max-width: 46rem; margin-bottom: var(--space-6); }
.section-head > * + * { margin-top: var(--space-2); }

.prose p + p { margin-top: var(--space-2); }
.prose a { color: var(--accent); text-underline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--surface-2);
  --btn-fg: var(--text);
  --btn-bd: var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 48px; padding: 0.8rem 1.4rem;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid var(--btn-bd); border-radius: 999px;
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none;
  cursor: pointer; white-space: nowrap;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease), color 0.2s var(--ease);
}
.btn:hover { --btn-bd: var(--text-3); }
.btn:active { transform: translateY(1px); }
.btn--primary { --btn-bg: var(--accent); --btn-fg: var(--accent-ink); --btn-bd: var(--accent); }
.btn--primary:hover { --btn-bg: #ffc04d; --btn-bd: #ffc04d; }
.btn--ghost { --btn-bg: transparent; }
.btn--sm { min-height: 40px; padding: 0.55rem 1.05rem; font-size: 0.9375rem; }
.btn--block { width: 100%; }
.btn .arrow { transition: transform 0.2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.45rem;
  color: var(--accent); font-weight: 600; text-decoration: none;
}
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Header / navigation ---------- */
/* The blur lives on a pseudo-element: backdrop-filter on the header itself would make it the
   containing block for the position:fixed mobile menu and shrink the menu to header height. */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease);
}
.site-header::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: rgba(10, 13, 16, 0.78);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  transition: background-color 0.25s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header.is-scrolled::before { background: rgba(10, 13, 16, 0.92); }
body.nav-open .site-header::before { background: var(--bg); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--text); }
.brand__word { font-weight: 680; font-size: 1.2rem; letter-spacing: -0.02em; }
.brand__bar { stroke: var(--accent); }

.nav__menu { display: flex; align-items: center; gap: var(--space-4); }
.nav__list { display: flex; align-items: center; gap: 0.25rem; }
.nav__link {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.85rem;
  color: var(--text-2); text-decoration: none; font-size: 0.9688rem; font-weight: 500; border-radius: var(--radius-sm);
  transition: color 0.2s var(--ease);
}
.nav__link:hover { color: var(--text); }
.nav__link[aria-current='page'] { color: var(--text); }
.nav__link[aria-current='page']::after {
  content: ''; position: absolute; left: 0.85rem; right: 0.85rem; bottom: 6px; height: 2px; background: var(--accent); border-radius: 2px;
}
.nav__toggle { display: none; }

@media (max-width: 860px) {
  .nav__toggle {
    display: inline-flex; align-items: center; gap: 0.6rem;
    min-height: 44px; padding: 0 0.95rem; margin-right: -0.5rem;
    background: transparent; border: 1px solid var(--line-strong); border-radius: 999px; cursor: pointer;
    font-size: 0.9375rem; font-weight: 500;
  }
  .nav__toggle-box { position: relative; width: 18px; height: 12px; }
  .nav__toggle-box span {
    position: absolute; left: 0; width: 100%; height: 1.75px; background: currentColor; border-radius: 2px;
    transition: transform 0.25s var(--ease), opacity 0.2s var(--ease), top 0.25s var(--ease);
  }
  .nav__toggle-box span:nth-child(1) { top: 0; }
  .nav__toggle-box span:nth-child(2) { top: 5px; }
  .nav__toggle-box span:nth-child(3) { top: 10px; }
  .nav__toggle[aria-expanded='true'] .nav__toggle-box span:nth-child(1) { top: 5px; transform: rotate(45deg); }
  .nav__toggle[aria-expanded='true'] .nav__toggle-box span:nth-child(2) { opacity: 0; }
  .nav__toggle[aria-expanded='true'] .nav__toggle-box span:nth-child(3) { top: 5px; transform: rotate(-45deg); }

  .nav__menu {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: var(--space-4);
    padding: var(--space-4) var(--gutter) calc(var(--space-5) + env(safe-area-inset-bottom));
    background: var(--bg);
    border-top: 1px solid var(--line);
    overflow-y: auto; overscroll-behavior: contain;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0s linear 0.22s;
  }
  .nav__menu.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0s; }
  /* Without JS the toggle cannot work: show the list inline instead of hiding it. */
  .no-js .nav__toggle { display: none; }
  .no-js .nav__menu { position: static; visibility: visible; opacity: 1; transform: none; padding: 0; border: 0; flex-direction: row; background: none; }
  .no-js .nav__list { flex-wrap: wrap; }
  .no-js .nav__cta { display: none; }

  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list li { border-bottom: 1px solid var(--line); }
  .nav__link { min-height: 60px; padding: 0 0.25rem; font-size: 1.375rem; font-weight: 560; color: var(--text); letter-spacing: -0.01em; }
  .nav__link[aria-current='page'] { color: var(--accent); }
  .nav__link[aria-current='page']::after { display: none; }
  .nav__cta { min-height: 52px; font-size: 1.0625rem; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(10,13,16,0.96) 0%, rgba(10,13,16,0.82) 38%, rgba(10,13,16,0.25) 75%, rgba(10,13,16,0.1) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(10,13,16,0) 30%);
}
.hero__inner { padding-block: clamp(5rem, 12vw, 9.5rem) clamp(5rem, 10vw, 8rem); }
.hero__content { max-width: 47rem; }
.hero__content > * + * { margin-top: var(--space-3); }
.hero .display { margin-top: var(--space-3); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; padding-top: var(--space-2); }
.hero__meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; padding-top: var(--space-3); color: var(--text-3); font-family: var(--font-mono); font-size: 0.8rem; }
.hero__meta span { display: inline-flex; align-items: center; gap: 0.5rem; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); flex: none; }

@media (max-width: 720px) {
  .hero::before { background: linear-gradient(0deg, var(--bg) 0%, rgba(10,13,16,0.9) 45%, rgba(10,13,16,0.55) 100%); }
  .hero__media img { object-position: 62% 50%; }
}

.page-hero { position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero__inner { padding-block: clamp(4.5rem, 10vw, 8rem) clamp(3.5rem, 8vw, 6rem); display: grid; gap: var(--space-5); align-items: center; }
.page-hero__inner > div > * + * { margin-top: var(--space-3); }
.page-hero__art { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); aspect-ratio: 4 / 3; }
.page-hero__art img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) {
  .page-hero__inner--split { grid-template-columns: 1.1fr 0.9fr; gap: var(--space-6); }
}
.grid-bg::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 20% 0%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse 70% 80% at 20% 0%, #000 0%, transparent 70%);
  opacity: 0.55;
}

/* ---------- Proof points ---------- */
.proof { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 820px) { .proof { grid-template-columns: repeat(3, 1fr); } }
.proof__item { background: var(--bg-raised); padding: clamp(2rem, 4vw, 3rem); display: flex; flex-direction: column; gap: var(--space-2); }
.proof__value { font-size: clamp(3rem, 6vw, 4.5rem); font-weight: 620; line-height: 1; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.proof__value small { font-size: 0.45em; letter-spacing: -0.02em; color: var(--accent); margin-left: 0.1em; font-weight: 600; }
.proof__label { font-weight: 600; font-size: 1.0625rem; }
.proof__note { color: var(--text-2); font-size: 0.9688rem; }
.proof__src { margin-top: auto; padding-top: var(--space-2); color: var(--text-3); font-family: var(--font-mono); font-size: 0.75rem; }
.footnote { margin-top: var(--space-3); color: var(--text-3); font-size: 0.875rem; max-width: 52rem; }

/* ---------- Cards / features ---------- */
.cards { display: grid; gap: var(--space-3); }
@media (min-width: 720px) { .cards--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem); display: flex; flex-direction: column; gap: var(--space-2);
}
.card .h3 { margin-top: var(--space-1); }
.card p { color: var(--text-2); }
.icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line-strong); color: var(--accent); background: var(--surface); }
.icon svg { width: 20px; height: 20px; }

.split { display: grid; gap: var(--space-5); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: var(--space-6); } .split--flip > :first-child { order: 2; } }
.split__media { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; background: var(--surface); }
.split__media img { width: 100%; height: 100%; object-fit: cover; }

.checklist { display: grid; gap: 0.85rem; }
.checklist li { display: grid; grid-template-columns: 20px 1fr; gap: 0.85rem; color: var(--text-2); }
.checklist li::before {
  content: ''; width: 20px; height: 20px; margin-top: 0.2em; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.5L14 7.5' fill='none' stroke='%23ffb020' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.checklist strong { color: var(--text); font-weight: 600; }

.logos { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); align-items: center; color: var(--text-3); font-family: var(--font-mono); font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- Loop steps (Platform) ---------- */
.loop-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: var(--space-4); }
.loop-nav a {
  display: inline-flex; align-items: center; gap: 0.55rem; min-height: 44px; padding: 0 1rem;
  border: 1px solid var(--line-strong); border-radius: 999px; text-decoration: none; color: var(--text-2);
  font-family: var(--font-mono); font-size: 0.8125rem; transition: border-color .2s var(--ease), color .2s var(--ease);
}
.loop-nav a:hover { color: var(--text); border-color: var(--accent-line); }
.loop-nav b { color: var(--accent); font-weight: 600; }

.steps { counter-reset: step; display: grid; gap: var(--space-3); }
.step {
  position: relative; display: grid; gap: var(--space-4);
  background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.75rem, 4vw, 3.25rem);
  scroll-margin-top: calc(var(--header-h) + 1.5rem);
}
@media (min-width: 960px) { .step { grid-template-columns: 0.9fr 1.1fr; gap: var(--space-6); align-items: start; } }
.step__head > * + * { margin-top: var(--space-2); }
.step__num {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-family: var(--font-mono); font-size: 0.8125rem; color: var(--accent); letter-spacing: 0.1em; text-transform: uppercase;
}
.step__num span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--accent-line); background: var(--accent-soft); font-weight: 600; letter-spacing: 0; }
.step__body { display: grid; gap: var(--space-3); }
.step__out {
  display: grid; gap: 0.35rem; padding: 1rem 1.15rem; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px dashed var(--line-strong); font-size: 0.9375rem;
}
.step__out dt { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.step__out dd { margin: 0; color: var(--text); }

.loop-diagram { width: 100%; max-width: 420px; margin-inline: auto; color: var(--text-3); }
.loop-diagram text { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; fill: var(--text-2); }
.loop-diagram .ring { stroke: var(--line-strong); }
.loop-diagram .node { fill: var(--bg-raised); stroke: var(--accent); }
.loop-diagram .node-num { fill: var(--accent); font-size: 13px; letter-spacing: 0; font-weight: 600; }
.loop-diagram .arc { stroke: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .loop-diagram .orbit { transform-origin: 210px 210px; animation: orbit 14s linear infinite; }
}
@keyframes orbit { to { transform: rotate(360deg); } }

/* ---------- Spec table (Fleet) ---------- */
.table-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2); margin-bottom: var(--space-3); }
.table-hint { color: var(--text-3); font-family: var(--font-mono); font-size: 0.8rem; }
.segmented { display: inline-flex; padding: 4px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--bg-raised); }
.segmented button {
  min-height: 38px; padding: 0 1rem; border: 0; border-radius: 999px; background: transparent; color: var(--text-2);
  font-size: 0.875rem; font-weight: 500; cursor: pointer;
}
.segmented button[aria-pressed='true'] { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }

.table-wrap {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-raised);
  overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
  scrollbar-color: var(--line-strong) transparent;
}
.table-wrap:focus-visible { outline-offset: 2px; }
.spec { width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 0; font-size: 0.9688rem; }
.spec caption { text-align: left; padding: 1.25rem 1.5rem; color: var(--text-2); font-size: 0.9rem; border-bottom: 1px solid var(--line); }
.spec th, .spec td { padding: 1rem 1.5rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.spec tbody tr:last-child > * { border-bottom: 0; }
.spec thead th { position: sticky; top: 0; background: var(--surface); vertical-align: bottom; padding-top: 1.5rem; padding-bottom: 1.25rem; }
.spec thead th:first-child, .spec tbody th { position: sticky; left: 0; z-index: 1; background: var(--bg-raised); }
.spec thead th:first-child { z-index: 2; background: var(--surface); }
.spec tbody th { font-weight: 500; color: var(--text-2); width: 14rem; box-shadow: inset -1px 0 0 var(--line); }
.spec thead th:first-child { box-shadow: inset -1px 0 0 var(--line); }
.spec td { font-variant-numeric: tabular-nums; color: var(--text); }
/* Group rows span all columns; the label inside sticks to the left edge while the table scrolls. */
.spec tr.group th { position: static; padding-top: 1.5rem; padding-bottom: 0.6rem; background: var(--bg-raised); color: var(--accent); font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; box-shadow: none; }
.spec tr.group th > span { position: sticky; left: 1.5rem; display: inline-block; }
.spec tbody tr:not(.group):hover > * { background: var(--surface); }
.model-name { display: block; font-size: 1.125rem; font-weight: 620; letter-spacing: -0.01em; color: var(--text); }
.model-role { display: block; margin-top: 0.25rem; font-weight: 400; font-size: 0.85rem; color: var(--text-3); }
.tag { display: inline-block; margin-top: 0.6rem; padding: 0.15rem 0.55rem; border-radius: 999px; border: 1px solid var(--accent-line); color: var(--accent); font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.06em; font-weight: 500; }
.unit { color: var(--text-3); font-size: 0.85em; }

/* Narrow screens: the first column (spec name) stays pinned while models scroll. */
@media (max-width: 640px) {
  .spec { min-width: 640px; font-size: 0.9063rem; }
  .spec th, .spec td { padding: 0.85rem 1rem; }
  .spec tbody th { width: 8.5rem; min-width: 8.5rem; max-width: 8.5rem; }
  .spec tr.group th > span { left: 1rem; }
}
/* Card view: same data, stacked per model. Driven by table.js on phones, or the toggle. */
.spec-cards { display: grid; gap: var(--space-3); }
@media (min-width: 720px) { .spec-cards { grid-template-columns: repeat(2, 1fr); } }
.spec-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-raised); overflow: hidden; }
.spec-card__head { padding: 1.25rem 1.25rem 1rem; background: var(--surface); border-bottom: 1px solid var(--line); }
.spec-card dl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
.spec-card dt, .spec-card dd { padding: 0.75rem 1.25rem; border-bottom: 1px solid var(--line); font-size: 0.9375rem; }
.spec-card dt { color: var(--text-2); }
.spec-card dd { margin: 0; font-variant-numeric: tabular-nums; }
.spec-card dt.group { grid-column: 1 / -1; padding-top: 1.1rem; padding-bottom: 0.5rem; color: var(--accent); font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; }
.spec-card dl > :nth-last-child(-n + 2) { border-bottom: 0; }
[hidden] { display: none !important; }

.models { display: grid; gap: var(--space-3); }
@media (min-width: 640px) { .models { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .models { grid-template-columns: repeat(4, 1fr); } }
.model { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-raised); overflow: hidden; display: flex; flex-direction: column; }
.model__art { aspect-ratio: 4 / 3; background: var(--surface); border-bottom: 1px solid var(--line); }
.model__art img { width: 100%; height: 100%; object-fit: cover; }
.model__body { padding: 1.5rem; display: grid; gap: 0.6rem; }
.model__body p { color: var(--text-2); font-size: 0.9688rem; }
.model__kpi { display: flex; gap: 1.25rem; padding-top: 0.5rem; font-family: var(--font-mono); font-size: 0.8125rem; color: var(--text-3); }
.model__kpi b { display: block; color: var(--text); font-family: var(--font-sans); font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }

/* ---------- Pricing ---------- */
.plans { display: grid; gap: var(--space-3); align-items: stretch; }
@media (min-width: 980px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { position: relative; display: flex; flex-direction: column; gap: var(--space-3); padding: clamp(1.75rem, 3vw, 2.5rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-raised); }
.plan--featured { border-color: var(--accent-line); background: linear-gradient(180deg, rgba(255,176,32,0.07), rgba(255,176,32,0) 45%), var(--bg-raised); }
.plan__badge { position: absolute; top: -0.8rem; left: clamp(1.75rem, 3vw, 2.5rem); padding: 0.2rem 0.7rem; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.plan__name { font-size: 1.375rem; font-weight: 620; letter-spacing: -0.015em; }
.plan__for { color: var(--text-2); font-size: 0.9688rem; min-height: 3.2em; }
.plan__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.4rem; padding-block: var(--space-1); border-block: 1px solid var(--line); padding: 1.25rem 0; }
.plan__amount { font-size: clamp(2.25rem, 4vw, 2.9rem); font-weight: 640; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.plan__per { color: var(--text-3); font-size: 0.9rem; }
.plan__terms { width: 100%; color: var(--text-3); font-family: var(--font-mono); font-size: 0.75rem; margin-top: 0.35rem; }
.plan .checklist { font-size: 0.9688rem; }
.plan .btn { margin-top: auto; }

.faq { display: grid; gap: 0; border-top: 1px solid var(--line); max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  min-height: 64px; padding: 1.15rem 0; cursor: pointer; list-style: none;
  font-weight: 560; font-size: 1.0938rem; letter-spacing: -0.005em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-strong);
  background:
    linear-gradient(var(--accent), var(--accent)) center / 11px 1.75px no-repeat,
    linear-gradient(var(--accent), var(--accent)) center / 1.75px 11px no-repeat;
  transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--accent); }
.faq__a { padding: 0 3rem 1.5rem 0; color: var(--text-2); }
.faq__a p + p { margin-top: 0.75rem; }

/* ---------- Contact form ---------- */
.contact-grid { display: grid; gap: var(--space-5); }
@media (min-width: 980px) { .contact-grid { grid-template-columns: 1.25fr 0.75fr; gap: var(--space-6); align-items: start; } }
.form-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-raised); padding: clamp(1.5rem, 4vw, 2.75rem); }
.notice {
  display: grid; grid-template-columns: 22px 1fr; gap: 0.85rem; align-items: start;
  padding: 1rem 1.15rem; margin-bottom: var(--space-4);
  border: 1px solid var(--accent-line); border-radius: var(--radius-sm); background: var(--accent-soft);
  font-size: 0.9688rem; color: var(--text);
}
.notice svg { width: 22px; height: 22px; color: var(--accent); margin-top: 0.1em; }
.notice strong { font-weight: 620; }
.form { display: grid; gap: var(--space-3); }
.form__row { display: grid; gap: var(--space-3); }
@media (min-width: 640px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.5rem; }
.field label, .field legend { font-weight: 560; font-size: 0.9375rem; padding: 0; }
.field .opt { color: var(--text-3); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 0.75rem 0.95rem;
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  font-size: 1rem; /* >=16px prevents iOS zoom on focus */
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 2.5rem;
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23a9b4bd' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") right 1rem center / 12px no-repeat;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--text-3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field [aria-invalid='true'] { border-color: var(--danger); }
.field__error { color: var(--danger); font-size: 0.875rem; min-height: 0; }
.field__error:empty { display: none; }
.field__hint { color: var(--text-3); font-size: 0.85rem; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; min-height: 0; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--bg); color: var(--text-2); font-size: 0.9375rem; pointer-events: none;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.chip input:checked + span { background: var(--accent-soft); border-color: var(--accent); color: var(--text); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form__foot { display: grid; gap: var(--space-2); padding-top: var(--space-1); }
@media (min-width: 640px) { .form__foot { grid-template-columns: auto 1fr; align-items: center; gap: var(--space-3); } }
.form__fine { color: var(--text-3); font-size: 0.875rem; }
.form-status {
  margin-top: var(--space-3); padding: 1.15rem 1.25rem; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); background: var(--surface); font-size: 0.9688rem;
}
.form-status:empty { display: none; }
.form-status > * + * { margin-top: 0.75rem; }
.form-status--error { border-color: var(--danger); }
.form-status h3 { font-size: 1.0625rem; font-weight: 620; }
.form-status pre {
  margin: 0; max-height: 220px; overflow: auto; white-space: pre-wrap; word-break: break-word;
  padding: 0.85rem 1rem; border-radius: var(--radius-sm); background: var(--bg); border: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 0.8125rem; color: var(--text-2);
}
.form-status__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.aside-list { display: grid; gap: var(--space-4); }
.aside-list > div > * + * { margin-top: 0.5rem; }
.aside-list a { color: var(--accent); text-underline-offset: 3px; overflow-wrap: anywhere; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; isolation: isolate; overflow: hidden;
  border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px);
  padding: clamp(2.5rem, 6vw, 4.5rem); display: grid; gap: var(--space-4); align-items: center; background: var(--bg-raised);
}
.cta-band__art { position: absolute; inset: 0; z-index: -2; }
.cta-band__art img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.cta-band::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(15,19,23,0.97) 0%, rgba(15,19,23,0.85) 50%, rgba(15,19,23,0.4) 100%); }
.cta-band > div > * + * { margin-top: var(--space-2); }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1fr auto; } }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-raised); padding-top: var(--space-6); padding-bottom: calc(var(--space-4) + env(safe-area-inset-bottom)); }
.site-footer__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); padding-bottom: var(--space-5); border-bottom: 1px solid var(--line); }
.site-footer__cta-text { font-size: clamp(1.25rem, 2.4vw, 1.625rem); font-weight: 560; letter-spacing: -0.02em; max-width: 34rem; line-height: 1.3; text-wrap: balance; }
.site-footer__grid { display: grid; gap: var(--space-5); padding-block: var(--space-5); }
@media (min-width: 760px) { .site-footer__grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer__brand > * + * { margin-top: var(--space-2); }
.site-footer__brand p { max-width: 22rem; font-size: 0.9688rem; }
.site-footer__col h2 { margin-bottom: var(--space-2); }
.site-footer__col ul { list-style: none; padding: 0; display: grid; gap: 0.15rem; }
.site-footer__col a { display: inline-flex; align-items: center; min-height: 40px; color: var(--text-2); text-decoration: none; font-size: 0.9688rem; overflow-wrap: anywhere; }
.site-footer__col a:hover { color: var(--accent); }
.site-footer__base { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); justify-content: space-between; padding-top: var(--space-3); border-top: 1px solid var(--line); color: var(--text-3); font-size: 0.85rem; }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: grid; align-content: center; gap: var(--space-3); }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

@media print {
  .site-header, .site-footer, .hero__media, .cta-band { display: none; }
  body { background: #fff; color: #000; }
}

/* ---------- Small utilities (no inline styles: CSP style-src 'self') ---------- */
.after-cards { margin-top: var(--space-4); }
.loop-diagram .orbit-dot { fill: var(--accent); }
.loop-diagram .center-label { fill: var(--text-3); }
