/* CodeSpace AI. Dark, calm, precise.
   Design rules: Apple's design principles (apple-design skill) + frontend-ui-engineering.
   Type tightens as it grows, green is an accent not a wash, motion is purposeful and
   always has a reduced-motion equivalent. */

/* ---------- Fonts (self-hosted latin subsets, SIL Open Font License, see assets/fonts) ----------
   Hosted here instead of Google Fonts: no render-blocking request to another server, and no
   visitor data sent to a third party. Inter Tight and Quicksand are variable fonts, one file each. */
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("/assets/fonts/inter-tight-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Quicksand";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("/assets/fonts/quicksand-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/instrument-serif-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;

  --bg: #000;
  --bg-raised: #070908;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-strong: rgba(255, 255, 255, 0.06);
  --hairline: rgba(255, 255, 255, 0.08);
  --hairline-strong: rgba(255, 255, 255, 0.14);

  --text: #f4f6f5;
  --text-2: rgba(244, 246, 245, 0.72);
  --text-3: rgba(244, 246, 245, 0.58);

  --green: #15ff80;
  --green-ink: #03140a;
  --green-soft: rgba(21, 255, 128, 0.12);
  --green-line: rgba(21, 255, 128, 0.32);
  --danger: #ff8a8a;

  --font-display: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-brand: "Quicksand", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-accent: "Instrument Serif", ui-serif, Georgia, "Times New Roman", serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --s-1: 0.25rem;  --s-2: 0.5rem;  --s-3: 0.75rem; --s-4: 1rem;   --s-5: 1.25rem;
  --s-6: 1.5rem;   --s-8: 2rem;    --s-10: 2.5rem; --s-12: 3rem;  --s-16: 4rem;
  --s-20: 5rem;    --s-24: 6rem;

  --section-y: clamp(5rem, 3rem + 8vw, 9.5rem);
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --maxw: 75rem;
  --nav-h: 4rem;

  --r-sm: 0.625rem;
  --r-md: 1rem;
  --r-lg: 1.5rem;
  --r-pill: 999px;

  /* Critically damped feel: fast start, no overshoot. */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.7s;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p, figure { margin: 0; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p, li { text-wrap: pretty; }

::selection { background: var(--green); color: var(--green-ink); }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 0.375rem;
}

.skip {
  position: absolute;
  left: var(--s-4);
  top: -4rem;
  z-index: 100;
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-sm);
  background: var(--green);
  color: var(--green-ink);
  font: 700 0.9375rem/1 var(--font-brand);
  text-decoration: none;
}
.skip:focus { top: var(--s-4); }

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

.container {
  width: min(var(--maxw), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

/* ---------- Type ---------- */
.eyebrow {
  margin: 0 0 var(--s-4);
  font: 600 0.9375rem/1.3 var(--font-brand);
  letter-spacing: 0.01em;
  color: var(--green);
}

.display {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.875rem, 1.6rem + 5.4vw, 6.25rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.125rem, 1.35rem + 3.1vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.1875rem, 1.05rem + 0.5vw, 1.5rem);
  line-height: 1.22;
  letter-spacing: -0.015em;
}

.lead {
  font-size: clamp(1.125rem, 1rem + 0.55vw, 1.375rem);
  line-height: 1.5;
  letter-spacing: -0.006em;
  color: var(--text-2);
}

/* Serif accent: one or two words per headline, never a whole sentence. */
.accent {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--green);
}
.display .accent, .h2 .accent { font-size: 1.04em; }
.keep { white-space: nowrap; } /* short phrases that read wrong when split across lines */

.muted { color: var(--text-2); }

/* ---------- Buttons ---------- */
.btn {
  --h: 3.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: var(--h);
  padding: 0 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font: 700 1rem/1 var(--font-brand);
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 0.1s ease-out,
    background-color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    box-shadow 0.35s var(--ease);
}
/* Feedback on press, not release. */
.btn:active { transform: scale(0.97); }

.btn-primary { background: var(--green); color: var(--green-ink); }
.btn-primary:hover {
  box-shadow: 0 0 0 6px rgba(21, 255, 128, 0.12), 0 12px 40px -12px rgba(21, 255, 128, 0.6);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: var(--hairline-strong);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

.btn .arrow { width: 1.125rem; height: 1.125rem; transition: transform 0.35s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.btn[aria-busy="true"] { opacity: 0.75; cursor: progress; }

/* ---------- Navigation (translucent material) ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  transition: background-color 0.3s var(--ease);
}
/* Scroll edge effect instead of a hard divider. */
.nav::after {
  content: "";
  position: absolute;
  inset: 100% 0 auto 0;
  height: 1.5rem;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), transparent);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}
.nav.is-scrolled {
  background: rgba(0, 0, 0, 0.62);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
}
.nav.is-scrolled::after { opacity: 1; }

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-6);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  font: 700 1.125rem/1 var(--font-brand);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand img { width: 1.75rem; height: 1.75rem; }

.nav-links {
  display: none;
  gap: var(--s-8);
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-links a {
  font: 600 0.9375rem/1 var(--font-brand);
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav .btn { --h: 2.5rem; padding: 0 1.125rem; font-size: 0.9375rem; }

@media (min-width: 900px) { .nav-links { display: flex; } }
/* Smallest phones: keep the logo and the button on one line each. */
@media (max-width: 360px) {
  .nav-inner { gap: var(--s-3); }
  .brand { gap: 0.5rem; font-size: 1rem; }
  .brand img { width: 1.5rem; height: 1.5rem; }
  .nav .btn { padding: 0 0.875rem; font-size: 0.875rem; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section-raised { background: var(--bg-raised); }

.section-head { max-width: 48rem; margin-bottom: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .lead { margin-top: var(--s-5); }
.section-head.center .lead { margin-inline: auto; max-width: 40rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  min-height: min(100svh, 60rem);
  display: grid;
  align-items: center;
  padding: calc(var(--nav-h) + var(--s-12)) 0 var(--s-16);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(34rem 26rem at 72% 52%, rgba(21, 255, 128, 0.2), transparent 62%),
    radial-gradient(18rem 14rem at 74% 50%, rgba(21, 255, 128, 0.28), transparent 70%),
    #000;
}
.brain-canvas { display: block; width: 100%; height: 100%; }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.9) 28%, rgba(0, 0, 0, 0.35) 58%, rgba(0, 0, 0, 0) 78%),
    linear-gradient(0deg, #000 0%, rgba(0, 0, 0, 0) 32%);
  pointer-events: none;
}

.hero-copy { max-width: min(41rem, 54vw); }
.hero .lead { margin-top: var(--s-6); max-width: 34rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-10); }

/* The hero text appears on its own, with no script involved: it is the first thing people see,
   so it must never wait for JavaScript. Short delays keep it quick. */
@keyframes hero-in { from { opacity: 0; transform: translateY(0.75rem); } to { opacity: 1; transform: none; } }
.hero-in { animation: hero-in 0.8s var(--ease) both; }
.hero-in[data-i="1"] { animation-delay: 0.06s; }
.hero-in[data-i="2"] { animation-delay: 0.12s; }
.hero-in[data-i="3"] { animation-delay: 0.18s; }
@media (prefers-reduced-motion: reduce) { .hero-in { animation: none; } }

/* Phones: the brain sits above the copy instead of behind it. */
@media (max-width: 760px) {
  .hero { display: block; min-height: 0; padding: var(--nav-h) 0 var(--s-16); }
  .hero-media {
    position: relative;
    inset: auto;
    z-index: 0;
    height: clamp(15rem, 34svh, 22rem);
    background:
      radial-gradient(60% 70% at 50% 50%, rgba(21, 255, 128, 0.2), transparent 70%),
      #000;
  }
  .hero-media::after { background: linear-gradient(0deg, #000 0%, rgba(0, 0, 0, 0) 28%); }
  .hero-copy { max-width: none; }
}

/* ---------- Problem ---------- */
.problem-grid { display: grid; gap: var(--s-8); }
@media (min-width: 960px) {
  .problem-grid { grid-template-columns: 5fr 7fr; gap: var(--s-16); align-items: start; }
  .problem-grid .section-head { position: sticky; top: calc(var(--nav-h) + 2.5rem); margin-bottom: 0; }
}

.pains { margin: 0; padding: 0; list-style: none; }
.pain {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: var(--s-4);
  padding: var(--s-8) 0;
  border-top: 1px solid var(--hairline);
}
.pain:last-child { border-bottom: 1px solid var(--hairline); }
.pain-num { font: 600 0.9375rem/1.6 var(--font-brand); color: var(--green); }

/* "Knowledge in pieces": separate clusters that never link up (drawn by constellation.js). */
.islands { position: relative; margin-top: var(--s-8); aspect-ratio: 16 / 11; }
.islands canvas { display: block; width: 100%; height: 100%; }
@media (min-width: 960px) { .islands { margin-top: var(--s-10); aspect-ratio: 4 / 3; max-width: 30rem; } }
.pain p { margin-top: var(--s-2); color: var(--text-2); max-width: 36rem; }

/* ---------- Company brain hub ----------
   The core and the team tiles are HTML; constellation.js draws the brain, rings, beams and signals
   on the canvas between them, reading these elements' layout positions. */
.hub {
  --core: clamp(8rem, 17vw, 13.5rem);
  --tile: 3rem;
  --chip-w: clamp(8.5rem, 15vw, 12rem);
  --core-y: 46%;
  position: relative;
  isolation: isolate;
  aspect-ratio: 2 / 1;
  border-radius: var(--r-lg);
  border: 1px solid var(--hairline);
  background:
    radial-gradient(40% 58% at 50% var(--core-y), rgba(21, 255, 128, 0.14), transparent 72%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.005));
  overflow: hidden;
}
/* A fine dot grid that fades out toward the edges. */
.hub::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1.25px);
  background-size: 22px 22px;
  background-position: center;
  -webkit-mask-image: radial-gradient(ellipse 62% 72% at 50% var(--core-y), #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 62% 72% at 50% var(--core-y), #000 25%, transparent 78%);
}
.hub-canvas { position: absolute; inset: 0; z-index: 1; display: block; width: 100%; height: 100%; }
.hub-core {
  position: absolute;
  z-index: 0;
  left: calc(50% - var(--core) / 2);
  top: calc(var(--core-y) - var(--core) / 2);
  width: var(--core);
  height: var(--core);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, rgba(21, 255, 128, 0.18), rgba(3, 8, 5, 0.94) 70%);
  border: 1px solid rgba(21, 255, 128, 0.4);
  box-shadow:
    0 0 0 10px rgba(21, 255, 128, 0.035),
    0 0 90px -8px rgba(21, 255, 128, 0.5),
    inset 0 0 40px rgba(21, 255, 128, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.hub-core-label {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  top: calc(var(--core-y) + var(--core) * 0.22);
  margin: 0;
  text-align: center;
  font: 700 clamp(0.75rem, 0.6rem + 0.35vw, 0.9375rem)/1 var(--font-brand);
  letter-spacing: 0.01em;
  color: var(--text);
  pointer-events: none;
}

.hub-nodes { margin: 0; padding: 0; list-style: none; }
/* Each tile is placed so its icon's centre sits exactly on (--x, --y). */
.hub-node {
  position: absolute;
  z-index: 2;
  width: var(--chip-w);
  left: calc(var(--x) - var(--chip-w) / 2);
  top: calc(var(--y) - var(--tile) / 2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hub-node--leadership { --x: 27%; --y: 15%; }
.hub-node--operations { --x: 73%; --y: 15%; }
.hub-node--sales      { --x: 11%; --y: 46%; }
.hub-node--finance    { --x: 89%; --y: 46%; }
.hub-node--newhires   { --x: 27%; --y: 77%; }
.hub-node--admin      { --x: 73%; --y: 77%; }

.hub-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--tile);
  height: var(--tile);
  border-radius: 0.875rem;
  color: var(--green);
  background: linear-gradient(180deg, rgba(21, 255, 128, 0.16), rgba(21, 255, 128, 0.03)), #070a08;
  border: 1px solid rgba(21, 255, 128, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 12px 28px -12px rgba(0, 0, 0, 0.9);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.hub-icon svg {
  width: 1.375rem;
  height: 1.375rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* Hovering a team, or a signal reaching it, makes its tile glow. */
.hub-node:hover .hub-icon,
.hub-node.is-ping .hub-icon {
  border-color: rgba(21, 255, 128, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0 0 4px rgba(21, 255, 128, 0.1), 0 0 28px -4px rgba(21, 255, 128, 0.6);
}
/* Finance's lock: the rules decide who sees what. */
.hub-lock {
  position: absolute;
  top: -0.45rem;
  right: -0.45rem;
  display: grid;
  place-items: center;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  background: #050806;
  border: 1px solid rgba(21, 255, 128, 0.55);
}
.hub-icon .hub-lock svg { width: 0.7rem; height: 0.7rem; stroke-width: 2.4; }
.hub-role { margin-top: 0.625rem; font: 600 0.9375rem/1.25 var(--font-brand); color: var(--text); }
.hub-sees { margin-top: 0.25rem; font-size: 0.8125rem; line-height: 1.4; color: var(--text-3); }

/* Entrance: the core glows up, then the teams arrive one by one (the beams follow on the canvas). */
.js .hub .hub-core { opacity: 0; transform: scale(0.92); }
.js .hub.is-in .hub-core { opacity: 1; transform: none; transition: opacity 0.9s var(--ease), transform 1s var(--ease); }
.js .hub .hub-core-label { opacity: 0; }
.js .hub.is-in .hub-core-label { opacity: 1; transition: opacity 0.6s var(--ease) 1.1s; }
.js .hub .hub-node { opacity: 0; transform: translateY(8px); }
.js .hub.is-in .hub-node {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(0.2s + var(--i, 0) * 0.08s);
}

/* Phones: a taller stage, the teams in a ring around the core, short labels only. */
@media (max-width: 699px) {
  .hub { aspect-ratio: 4 / 5; --core: clamp(6.25rem, 34vw, 7.5rem); --tile: 2.75rem; --chip-w: 6.5rem; --core-y: 50%; }
  .hub-role { margin-top: 0.5rem; font-size: 0.8125rem; }
  .hub-sees { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .hub-node--leadership { --x: 22%; --y: 13%; }
  .hub-node--operations { --x: 78%; --y: 13%; }
  .hub-node--sales      { --x: 15%; --y: 50%; }
  .hub-node--finance    { --x: 85%; --y: 50%; }
  .hub-node--newhires   { --x: 22%; --y: 86%; }
  .hub-node--admin      { --x: 78%; --y: 86%; }
}
.pillars { display: grid; gap: var(--s-4); margin-top: var(--s-6); }
@media (min-width: 900px) { .pillars { grid-template-columns: repeat(3, 1fr); } }

.card {
  padding: clamp(1.5rem, 1rem + 1.5vw, 2rem);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--hairline);
}
/* Plain body copy inside a card. Classed paragraphs (numbers, labels, tags) keep their own styles. */
.card > p:not([class]) { margin-top: var(--s-3); color: var(--text-2); }

.icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: var(--s-6);
  border-radius: 0.875rem;
  background: var(--green-soft);
  color: var(--green);
}
.icon svg { width: 1.375rem; height: 1.375rem; }

/* ---------- Offer ---------- */
.plans { display: grid; gap: var(--s-4); }
@media (min-width: 960px) { .plans { grid-template-columns: repeat(3, 1fr); } }

.plan { display: flex; flex-direction: column; }
.plan.featured {
  background: linear-gradient(180deg, rgba(21, 255, 128, 0.08), rgba(21, 255, 128, 0.015) 45%, rgba(255, 255, 255, 0.02));
  border-color: var(--green-line);
}
.plan-tag {
  font: 700 0.8125rem/1 var(--font-brand);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
}
.plan .h3 { margin-top: var(--s-4); }

.checklist { display: grid; gap: 0.75rem; margin: var(--s-6) 0 0; padding: var(--s-6) 0 0; list-style: none; border-top: 1px solid var(--hairline); }
.checklist li { display: grid; grid-template-columns: 1.25rem 1fr; gap: 0.75rem; color: var(--text-2); font-size: 1rem; line-height: 1.5; }
.checklist svg { width: 1.125rem; height: 1.125rem; margin-top: 0.2rem; color: var(--green); }

/* Plan illustrations. Each plays once when its card scrolls in; without JS or with reduced motion
   they simply show their finished state. */
.plan-art {
  margin-bottom: var(--s-6);
  border-radius: var(--r-md);
  border: 1px solid var(--hairline);
  background:
    radial-gradient(90% 100% at 50% 0%, rgba(21, 255, 128, 0.07), transparent 70%),
    rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.art { display: block; width: 100%; max-width: 24rem; height: auto; margin-inline: auto; }
.art text { font: 600 13px var(--font-brand); fill: var(--text); }
.art .art-dim { font-size: 12px; fill: var(--text-3); }
.art .art-strong { font-size: 14px; font-weight: 700; }
.art .art-month { font-size: 11px; fill: var(--text-3); }

/* Build: four blocks click into place, then the frame closes around them. */
.art-block rect { fill: rgba(255, 255, 255, 0.05); stroke: rgba(255, 255, 255, 0.14); }
.art-block circle { fill: var(--green); }
.art-frame { fill: none; stroke: var(--green); stroke-opacity: 0.55; stroke-width: 1.5; }
.js .art-block { opacity: 0; transform-box: fill-box; transform-origin: center; }
.js .art-block:nth-of-type(1) { transform: translate(-16px, -12px) scale(0.92); }
.js .art-block:nth-of-type(2) { transform: translate(16px, -12px) scale(0.92); }
.js .art-block:nth-of-type(3) { transform: translate(-16px, 12px) scale(0.92); }
.js .art-block:nth-of-type(4) { transform: translate(16px, 12px) scale(0.92); }
.js .is-in .art-block {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(0.3s + var(--i, 0) * 0.1s);
}
.js .art-block circle { fill: rgba(255, 255, 255, 0.3); }
.js .is-in .art-block circle { fill: var(--green); transition: fill 0.4s var(--ease) calc(1.25s + var(--i, 0) * 0.08s); }
/* 720 is just over the frame's fixed outline length (about 706), so no script has to measure it. */
.js .art-frame { stroke-dasharray: 720; stroke-dashoffset: 720; }
.js .is-in .art-frame { stroke-dashoffset: 0; transition: stroke-dashoffset 1s var(--ease) 0.75s; }

/* Care: the nightly run fills its bar and ticks off each job as it passes. */
.art-moon path { fill: none; stroke: var(--text-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.art-track { fill: rgba(255, 255, 255, 0.1); }
.art-fill { fill: var(--green); }
.art-check circle { fill: var(--green); stroke: var(--green); stroke-width: 1.5; }
.art-check path { fill: none; stroke: var(--green-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.js .art-fill { transform: scaleX(0); transform-box: fill-box; transform-origin: left center; }
.js .is-in .art-fill { transform: none; transition: transform 1.5s cubic-bezier(0.4, 0, 0.2, 1) 0.35s; }
.js .art-check circle { fill: transparent; stroke: rgba(255, 255, 255, 0.25); }
.js .art-check path { stroke-dasharray: 12; stroke-dashoffset: 12; }
.js .art-check text { fill: var(--text-3); }
.js .is-in .art-check circle {
  fill: var(--green);
  stroke: var(--green);
  transition: fill 0.3s var(--ease), stroke 0.3s var(--ease);
  transition-delay: calc(0.75s + var(--i, 0) * 0.45s);
}
.js .is-in .art-check path { stroke-dashoffset: 0; transition: stroke-dashoffset 0.35s var(--ease) calc(0.9s + var(--i, 0) * 0.45s); }
.js .is-in .art-check text { fill: var(--text); transition: fill 0.3s var(--ease) calc(0.75s + var(--i, 0) * 0.45s); }

/* Grow: each month builds on the last, the new part in green. */
.art-axis { stroke: rgba(255, 255, 255, 0.14); stroke-width: 1; }
.art-bar-base { fill: rgba(255, 255, 255, 0.16); }
.art-bar-new { fill: var(--green); }
.js .art-bar { transform: scaleY(0); transform-box: fill-box; transform-origin: center bottom; }
.js .is-in .art-bar { transform: none; transition: transform 0.8s var(--ease) calc(0.3s + var(--i, 0) * 0.12s); }
.js .art-bar-new { opacity: 0; }
.js .is-in .art-bar-new { opacity: 1; transition: opacity 0.4s var(--ease) calc(0.65s + var(--i, 0) * 0.12s); }

.own {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: fit-content;
  max-width: 100%;
  margin: var(--s-8) auto 0;
  padding: var(--s-4) var(--s-6);
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--hairline-strong);
  font: 600 1rem/1.4 var(--font-brand);
  text-align: center;
}
.own svg { width: 1.25rem; height: 1.25rem; color: var(--green); flex: none; }
/* On phones the line wraps, so it reads as a small card rather than a pill. */
@media (max-width: 600px) {
  .own { justify-content: flex-start; border-radius: var(--r-md); text-align: left; }
}

/* ---------- Return calculator ---------- */
.roi { display: grid; gap: var(--s-4); }
@media (min-width: 960px) { .roi { grid-template-columns: 1fr 1fr; } }

.roi-inputs { display: grid; gap: var(--s-8); align-content: center; }

.range-field label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s-4);
  font: 600 1rem/1.3 var(--font-brand);
  margin-bottom: var(--s-4);
}
.range-field output {
  font: 600 1.25rem/1 var(--font-display);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

input[type="range"] {
  --fill: 50%;
  width: 100%;
  height: 1.75rem;
  margin: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  touch-action: pan-y;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 0.375rem;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--green) var(--fill), rgba(255, 255, 255, 0.14) var(--fill));
}
input[type="range"]::-moz-range-track { height: 0.375rem; border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.14); }
input[type="range"]::-moz-range-progress { height: 0.375rem; border-radius: var(--r-pill); background: var(--green); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: -0.5625rem;
  border-radius: 50%;
  background: #fff;
  border: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5), 0 0 0 0 rgba(21, 255, 128, 0.35);
  transition: transform 0.12s ease-out, box-shadow 0.2s var(--ease);
}
input[type="range"]::-moz-range-thumb {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: #fff;
  border: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.12); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5), 0 0 0 8px rgba(21, 255, 128, 0.18); }
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px #000, 0 0 0 5px var(--green); }
input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 3px #000, 0 0 0 5px var(--green); }

.range-scale { display: flex; justify-content: space-between; margin-top: 0.375rem; font-size: 0.8125rem; color: var(--text-3); font-variant-numeric: tabular-nums; }

.roi-output {
  display: grid;
  align-content: center;
  gap: var(--s-8);
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(21, 255, 128, 0.16), transparent 55%),
    var(--bg-raised);
  border-color: var(--green-line);
}
.roi-label { font: 600 0.9375rem/1.3 var(--font-brand); color: var(--text-2); }
.big-num {
  margin-top: var(--s-2);
  font: 600 clamp(3.25rem, 2rem + 4.5vw, 5.75rem)/1 var(--font-display);
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}
.roi-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); padding-top: var(--s-6); border-top: 1px solid var(--hairline); }
.mid-num {
  margin-top: var(--s-2);
  font: 600 clamp(1.625rem, 1.3rem + 1.2vw, 2.25rem)/1 var(--font-display);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--green);
}
.fine { font-size: 0.875rem; line-height: 1.5; color: var(--text-3); }

/* Same team, more capacity. The bars follow the sliders 1:1 (no easing, no lag). */
.capacity { display: grid; gap: var(--s-8); margin-top: var(--s-4); align-items: center; }
@media (min-width: 960px) {
  .capacity { grid-template-columns: 5fr 7fr; column-gap: var(--s-16); }
  .capacity-fine { grid-column: 1 / -1; }
}
.capacity-num {
  margin-top: var(--s-2);
  font: 600 clamp(2.75rem, 1.9rem + 3vw, 4.25rem)/1 var(--font-display);
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--green);
}
.capacity-text { margin-top: var(--s-3); max-width: 28rem; color: var(--text-2); }
.capacity-text strong { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }

.capacity-bars { display: grid; gap: var(--s-6); }
.cap-name { margin-bottom: var(--s-2); font: 600 0.9375rem/1.3 var(--font-brand); color: var(--text-2); }
.is-brain .cap-name { color: var(--text); }
.cap-line { display: flex; align-items: center; gap: var(--s-3); }
/* Sized so the largest gain the slider allows (--cap-max, set by site.js from the slider) fills the row. */
.cap-bar {
  display: flex;
  gap: 3px;
  flex: none;
  width: calc((100% - 4rem) * (1 + var(--cap, 0)) / (1 + var(--cap-max, 0.625)));
  height: 0.875rem;
}
.cap-base { flex: 1 1 0%; border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.22); }
.is-brain .cap-base { border-radius: var(--r-pill) 0 0 var(--r-pill); }
.cap-extra {
  flex: var(--cap, 0) 1 0%;
  border-radius: 0 var(--r-pill) var(--r-pill) 0;
  background: var(--green);
  box-shadow: 0 0 18px rgba(21, 255, 128, 0.45);
}
.cap-val { font: 600 1rem/1 var(--font-display); font-variant-numeric: tabular-nums; color: var(--text-2); }
.is-brain .cap-val { color: var(--green); }


/* ---------- How it works ---------- */
.steps { position: relative; display: grid; gap: var(--s-4); margin: 0; padding: 0; list-style: none; }
@media (min-width: 960px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.step { position: relative; }
.step-num {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: var(--s-6);
  border-radius: 50%;
  background: var(--green);
  color: var(--green-ink);
  font: 700 0.9375rem/1 var(--font-brand);
}
.step-when { margin-bottom: var(--s-2); font: 600 0.8125rem/1.2 var(--font-brand); letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-3); }

/* Progress: a green line fills along the top of each step, one after the other, then its number lights up. */
.step::before {
  content: "";
  position: absolute;
  top: -1px;
  left: var(--s-6);
  right: var(--s-6);
  height: 2px;
  border-radius: 2px;
  background: var(--green);
  box-shadow: 0 0 12px rgba(21, 255, 128, 0.55);
  transform-origin: left center;
}
@media (min-width: 960px) { .step { --step-delay: calc(0.35s + var(--i, 0) * 0.4s); } }
.js .step::before { transform: scaleX(0); }
.js .step.is-in::before { transform: none; transition: transform 0.7s var(--ease) var(--step-delay, 0.3s); }
.js .step .step-num { background: transparent; color: var(--text-2); box-shadow: inset 0 0 0 1.5px var(--hairline-strong); }
.js .step.is-in .step-num {
  background: var(--green);
  color: var(--green-ink);
  box-shadow: inset 0 0 0 1.5px var(--green);
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), box-shadow 0.35s var(--ease);
  transition-delay: calc(var(--step-delay, 0.3s) + 0.5s);
}

/* ---------- Reviews ---------- */
.quotes { display: grid; gap: var(--s-4); }
@media (min-width: 900px) { .quotes { grid-template-columns: 1fr 1fr; } }

.quote { display: flex; flex-direction: column; justify-content: space-between; gap: var(--s-10); margin: 0; }
.quote blockquote { margin: 0; font-size: clamp(1.125rem, 1rem + 0.45vw, 1.3125rem); line-height: 1.55; letter-spacing: -0.008em; color: var(--text); }
.quote blockquote::before {
  content: "\201C";
  display: block;
  height: 2.25rem;
  margin-bottom: var(--s-2);
  font: italic 400 4.5rem/1 var(--font-accent);
  color: var(--green);
}
.quote-person { font: 700 1rem/1.3 var(--font-brand); }
.quote-role { margin-top: 0.125rem; font-size: 0.9375rem; color: var(--text-3); }
.quote-metrics { display: flex; flex-wrap: wrap; gap: var(--s-8); margin-top: var(--s-6); padding-top: var(--s-6); border-top: 1px solid var(--hairline); }
.quote-metrics strong { display: block; font: 600 1.75rem/1 var(--font-display); letter-spacing: -0.03em; color: var(--green); }
.quote-metrics span { display: block; margin-top: 0.375rem; font-size: 0.875rem; color: var(--text-3); }

/* ---------- FAQ ---------- */
.faq { max-width: 52rem; margin-inline: auto; border-top: 1px solid var(--hairline); }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-6);
  padding: var(--s-6) 0;
  cursor: pointer;
  list-style: none;
  font: 600 clamp(1.0625rem, 1rem + 0.3vw, 1.25rem)/1.35 var(--font-display);
  letter-spacing: -0.012em;
  touch-action: manipulation;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover .plus { background: rgba(255, 255, 255, 0.1); }
.plus {
  display: grid;
  place-items: center;
  flex: none;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  transition: transform 0.35s var(--ease), background-color 0.2s var(--ease);
}
.plus svg { width: 1rem; height: 1rem; }
.faq details[open] .plus { transform: rotate(45deg); }
.faq .answer { padding: 0 3rem var(--s-6) 0; color: var(--text-2); }
.js .faq details[open] .answer { animation: answer-in 0.4s var(--ease); }
@keyframes answer-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: var(--s-10); }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 5fr 7fr; gap: var(--s-16); align-items: start; } }

.contact-grid .lead { margin-top: var(--s-5); }
.next-steps { display: grid; gap: var(--s-5); margin: var(--s-10) 0 0; padding: 0; list-style: none; counter-reset: next; }
.next-steps li { display: grid; grid-template-columns: 2rem 1fr; gap: var(--s-4); color: var(--text-2); }
.next-steps li::before {
  counter-increment: next;
  content: counter(next);
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1px solid var(--green-line);
  color: var(--green);
  font: 700 0.875rem/1 var(--font-brand);
}
.next-steps strong { display: block; color: var(--text); font-weight: 600; }

.form-panel { background: rgba(255, 255, 255, 0.04); border-color: var(--hairline-strong); }

.form-grid { display: grid; gap: var(--s-5); }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }

.field label, .fieldset-title { display: block; margin-bottom: 0.5rem; font: 600 0.9375rem/1.3 var(--font-brand); }
.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 1rem;
  border-radius: var(--r-md);
  border: 1px solid var(--hairline-strong);
  background: rgba(0, 0, 0, 0.55);
  color: var(--text);
  font: 400 1rem/1.45 var(--font-body);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { min-height: 8.5rem; resize: vertical; }
.field select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f4f6f5' stroke-opacity='0.6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.125rem;
  cursor: pointer;
}
.field select:invalid { color: rgba(244, 246, 245, 0.38); } /* "Choose a range" reads as a placeholder */
.field select option { background: #0b0d0c; color: var(--text); }
.field input::placeholder, .field textarea::placeholder { color: rgba(244, 246, 245, 0.38); }
.field input:focus,
.field textarea:focus,
.field select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(21, 255, 128, 0.15); }
.field.is-invalid input,
.field.is-invalid textarea,
.field.is-invalid select { border-color: var(--danger); }
.field.is-invalid input:focus,
.field.is-invalid textarea:focus,
.field.is-invalid select:focus { box-shadow: 0 0 0 4px rgba(255, 138, 138, 0.18); }
/* Styled dropdown for mouse users, built from the native <select> by site.js. */
.field select.is-enhanced { display: none; }
.combo-wrap { position: relative; }
.combo {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 2.75rem 0.75rem 1rem;
  border-radius: var(--r-md);
  border: 1px solid var(--hairline-strong);
  background: rgba(0, 0, 0, 0.55);
  color: var(--text);
  font: 400 1rem/1.45 var(--font-body);
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.combo.is-empty { color: rgba(244, 246, 245, 0.38); }
.combo:focus,
.combo[aria-expanded="true"] { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(21, 255, 128, 0.15); }
.field.is-invalid .combo { border-color: var(--danger); }
.field.is-invalid .combo:focus { box-shadow: 0 0 0 4px rgba(255, 138, 138, 0.18); }
.combo-chevron {
  position: absolute;
  top: 50%;
  right: 1rem;
  width: 1.125rem;
  height: 1.125rem;
  margin-top: -0.5625rem;
  fill: none;
  stroke: rgba(244, 246, 245, 0.6);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s var(--ease);
}
.combo[aria-expanded="true"] .combo-chevron { transform: rotate(180deg); }

/* The open list: a dark glass panel that grows out of the field it belongs to. */
.combo-list {
  position: absolute;
  z-index: 30;
  top: calc(100% + 0.375rem);
  left: 0;
  right: 0;
  max-height: 20rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.375rem;
  border-radius: var(--r-md);
  border: 1px solid var(--hairline-strong);
  background: rgba(16, 19, 17, 0.94);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  box-shadow: 0 24px 60px -16px rgba(0, 0, 0, 0.85), 0 2px 8px rgba(0, 0, 0, 0.4);
  transform-origin: top center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.98);
  transition: opacity 0.14s ease-out, transform 0.22s var(--ease), visibility 0s linear 0.22s;
}
.combo-wrap.drop-up .combo-list { top: auto; bottom: calc(100% + 0.375rem); transform-origin: bottom center; transform: translateY(6px) scale(0.98); }
.combo-wrap.is-open .combo-list {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.14s ease-out, transform 0.22s var(--ease), visibility 0s;
}
.combo-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: 0.625rem 0.75rem;
  border-radius: 0.625rem;
  color: var(--text-2);
  font: 500 0.9375rem/1.35 var(--font-body);
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}
.combo-option.is-active { background: rgba(255, 255, 255, 0.08); color: var(--text); }
.combo-option:active { background: rgba(255, 255, 255, 0.12); }
.combo-option.is-chosen { color: var(--text); font-weight: 600; }
.combo-tick {
  flex: none;
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: var(--green);
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
}
.combo-option.is-chosen .combo-tick { opacity: 1; }

.field-hint { margin-top: 0.375rem; font-size: 0.8125rem; line-height: 1.5; color: var(--text-3); }
.field.is-invalid .field-hint { display: none; }
.field-error { display: none; margin-top: 0.375rem; font-size: 0.875rem; color: var(--danger); }
.field.is-invalid .field-error { display: block; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.consents { border: 0; margin: 0; padding: 0; display: grid; gap: var(--s-4); }
.consent { display: grid; grid-template-columns: 1.125rem 1fr; gap: 0.75rem; align-items: start; font-size: 0.8125rem; line-height: 1.55; color: var(--text-3); cursor: pointer; }
.consent input { width: 1.125rem; height: 1.125rem; margin: 0.15rem 0 0; accent-color: var(--green); cursor: pointer; }

.disclosure {
  padding: var(--s-4);
  border-radius: var(--r-md);
  border: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--text-3);
}
.disclosure a { color: var(--text-2); }
.disclosure a:hover { color: var(--text); }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4); }
.form-actions .btn { width: 100%; }
@media (min-width: 640px) { .form-actions .btn { width: auto; } }

.form-status { font-size: 0.9375rem; line-height: 1.5; }
.form-status.is-error { color: var(--danger); }

.form-success { text-align: center; padding: var(--s-10) var(--s-4); }
.form-success .icon { margin: 0 auto var(--s-6); width: 3.5rem; height: 3.5rem; border-radius: 50%; }
.form-success .icon svg { width: 1.75rem; height: 1.75rem; }
.form-success p { margin-top: var(--s-3); color: var(--text-2); }

/* ---------- Footer ---------- */
.footer { padding: var(--s-12) 0 var(--s-16); border-top: 1px solid var(--hairline); color: var(--text-3); font-size: 0.9375rem; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-8); }
.footer-tagline { margin-top: var(--s-3); }
.footer nav { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6); }
.footer nav a { color: var(--text-2); text-decoration: none; transition: color 0.2s var(--ease); }
.footer nav a:hover { color: var(--text); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-4); margin-top: var(--s-10); padding-top: var(--s-6); border-top: 1px solid var(--hairline); }

/* ---------- Legal pages ---------- */
.legal { max-width: 46rem; margin-inline: auto; padding: calc(var(--nav-h) + var(--s-16)) 0 var(--s-24); }
.legal h1 { font: 600 clamp(2.25rem, 1.6rem + 2.4vw, 3.25rem)/1.05 var(--font-display); letter-spacing: -0.035em; }
.legal h1 + p { margin-top: var(--s-3); color: var(--text-3); }
.legal section { margin-top: var(--s-10); }
.legal h2 { font: 600 1.375rem/1.3 var(--font-display); letter-spacing: -0.015em; margin-bottom: var(--s-3); }
.legal p, .legal li { color: var(--text-2); }
.legal p + p, .legal p + ul, .legal ul + p { margin-top: var(--s-3); }
.legal ul { margin: var(--s-3) 0 0; padding-left: 1.25rem; display: grid; gap: 0.375rem; }
.legal a { color: var(--green); }
.legal strong { color: var(--text); }

/* ---------- Scroll reveal (only when JS runs) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Accessibility preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { transform: none; transition: opacity 0.3s ease; }
  .js .hub .hub-core, .js .hub .hub-core-label, .js .hub .hub-node { opacity: 1 !important; transform: none !important; transition: none !important; }
  .js .faq details[open] .answer { animation: none; }
  .btn, .plus, .btn .arrow { transition: none; }
  .combo-list, .combo-wrap.drop-up .combo-list { transform: none; }
  .combo-chevron { transition: none; }
  /* Illustrations and step progress: show the finished state, no movement. */
  .js .art-block, .js .art-fill, .js .art-bar { opacity: 1 !important; transform: none !important; transition: none !important; }
  .js .art-frame, .js .art-check path { stroke-dashoffset: 0 !important; transition: none !important; }
  .js .art-block circle, .js .art-check circle { fill: var(--green) !important; stroke: var(--green) !important; transition: none !important; }
  .js .art-check text { fill: var(--text) !important; transition: none !important; }
  .js .art-bar-new { opacity: 1 !important; transition: none !important; }
  .js .step::before { transform: none !important; transition: none !important; }
  .js .step .step-num { background: var(--green) !important; color: var(--green-ink) !important; box-shadow: none !important; transition: none !important; }
}

@media (prefers-reduced-transparency: reduce) {
  .nav.is-scrolled { background: #000; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .combo-list { background: #101311; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

@media (prefers-contrast: more) {
  :root {
    --surface: #0c0e0d;
    --hairline: rgba(255, 255, 255, 0.35);
    --hairline-strong: rgba(255, 255, 255, 0.5);
    --text-2: #e8eae9;
    --text-3: #d2d5d3;
  }
  .nav.is-scrolled { background: #000; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
