/* ==========================================================================
   BuyerIntent System — Design System
   Dark-first. One accent. One gray family. Semantic heat ramp for score data.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Surfaces — cool blue-tinted neutrals, never pure black */
  --void: #06080c;
  --base: #0a0d13;
  --surface-1: #0f131b;
  --surface-2: #151a24;
  --surface-3: #1c222e;
  --surface-4: #242b39;

  /* Hairlines */
  --line: rgba(255, 255, 255, 0.065);
  --line-mid: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.16);

  /* Text — one ramp, cool-tinted */
  --text-hi: #f3f6fb;
  --text: #bfc8d6;
  /* Every step of this ramp clears 4.5:1 on the darkest surface in the system.
     Dimmer greys read as "decorative" but these carry real labels. */
  --text-mid: #99a2b4;
  --text-low: #777f92;

  /* The single accent. Electric cyan-blue. Used sparingly. */
  --accent: #5cc8f2;
  --accent-hi: #9adcf8;
  --accent-deep: #2a94c2;
  --accent-wash: rgba(92, 200, 242, 0.11);
  --accent-line: rgba(92, 200, 242, 0.28);

  /* Semantic heat ramp — data only, not decoration */
  --heat-hot: #e8a55f;
  --heat-warm: #5cc8f2;
  --heat-nurture: #a2abbd;
  --heat-pass: #7c8598;
  --neg: #e07986;
  --pos: #63c48c;

  /* Tinted shadows — carry the background hue, never flat black */
  --sh-1: 0 1px 2px rgba(3, 6, 12, 0.5);
  --sh-2: 0 4px 12px -4px rgba(3, 6, 12, 0.7);
  --sh-3: 0 20px 50px -20px rgba(3, 6, 14, 0.9);
  --sh-4: 0 40px 90px -40px rgba(2, 5, 12, 1);
  --sh-accent: 0 20px 60px -26px rgba(92, 200, 242, 0.55);

  /* Type */
  --sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Fluid type scale */
  --t-display: clamp(3.1rem, 1.1rem + 8.1vw, 7.2rem);
  --t-h1: clamp(2.5rem, 1.2rem + 5.2vw, 5rem);
  --t-h2: clamp(2rem, 1.2rem + 3.2vw, 3.5rem);
  --t-h3: clamp(1.4rem, 1.1rem + 1.1vw, 1.85rem);
  --t-h4: 1.1rem;
  --t-lede: clamp(1.05rem, 0.98rem + 0.45vw, 1.32rem);
  --t-body: 1.0125rem;
  --t-sm: 0.9rem;
  --t-xs: 0.8rem;
  --t-label: 0.7rem;

  /* Radii — varied, tighter inside, softer outside */
  --r-xs: 6px;
  --r-sm: 9px;
  --r-md: 13px;
  --r-lg: 19px;
  --r-xl: 27px;
  --r-full: 999px;

  /* Rhythm */
  --gut: clamp(20px, 4vw, 34px);
  --shell: 1240px;
  --shell-narrow: 780px;
  --sec-y: clamp(84px, 9vw, 152px);

  /* Motion */
  --e-out: cubic-bezier(0.22, 1, 0.36, 1);
  --e-spring: cubic-bezier(0.34, 1.42, 0.44, 1);
  --e-inout: cubic-bezier(0.65, 0, 0.35, 1);
  --d-fast: 140ms;
  --d-mid: 260ms;
  --d-slow: 620ms;

  /* Layering scale — no arbitrary 9999 */
  --z-under: -1;
  --z-base: 1;
  --z-raised: 10;
  --z-sticky: 100;
  --z-nav: 200;
  --z-grain: 400;
  --z-modal: 800;
}

/* --------------------------------------------------------------------------
   2. Reset + base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
  /* clip, not hidden: contains the ambient glow bleed without turning the root
     into a scroll container (which would break position: sticky descendants). */
  overflow-x: clip;
}

body {
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.62;
  color: var(--text);
  background: var(--void);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis-weight: none;
  overflow-x: clip;
}

body.is-locked {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

::selection {
  background: rgba(92, 200, 242, 0.25);
  color: var(--text-hi);
}

/* Visible focus for keyboard users only */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

.skip-link {
  position: absolute;
  left: 50%;
  top: 8px;
  translate: -50% -180%;
  z-index: calc(var(--z-modal) + 1);
  background: var(--accent);
  color: var(--void);
  font-weight: 600;
  font-size: var(--t-sm);
  padding: 12px 22px;
  border-radius: var(--r-sm);
  transition: translate var(--d-mid) var(--e-out);
}
.skip-link:focus-visible {
  translate: -50% 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
h1,
h2,
h3,
h4 {
  color: var(--text-hi);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.032em;
  text-wrap: balance;
}

h1 {
  font-size: var(--t-h1);
  letter-spacing: -0.042em;
}
h2 {
  font-size: var(--t-h2);
  letter-spacing: -0.036em;
}
h3 {
  font-size: var(--t-h3);
  line-height: 1.18;
  letter-spacing: -0.024em;
}
h4 {
  font-size: var(--t-h4);
  line-height: 1.3;
  letter-spacing: -0.014em;
}

p {
  text-wrap: pretty;
}

/* Editorial italic accent — the one serif moment per section, at most */
.serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.012em;
}

.accent-text {
  color: var(--accent);
}

.lede {
  font-size: var(--t-lede);
  line-height: 1.55;
  color: var(--text-mid);
  max-width: 58ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

/* Tabular figures everywhere numbers matter */
.num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

/* --------------------------------------------------------------------------
   4. Layout primitives
   -------------------------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.shell-narrow {
  width: 100%;
  max-width: var(--shell-narrow);
  margin-inline: auto;
  padding-inline: var(--gut);
}

/* Optically adjusted section padding — bottom slightly heavier */
section {
  position: relative;
  padding-block: var(--sec-y) calc(var(--sec-y) * 1.12);
}

.sec-head {
  max-width: 60ch;
  margin-bottom: clamp(44px, 5vw, 76px);
}
.sec-head p {
  margin-top: 20px;
}

/* Hairline rule that fades at the edges — used between major bands */
.rule {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--line-mid) 18%, var(--line-mid) 82%, transparent);
}

/* --------------------------------------------------------------------------
   5. Atmosphere — grain, glow, mesh
   -------------------------------------------------------------------------- */

/* Fixed film grain. Breaks digital flatness. */
.grain {
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: 0.032;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Ambient radial light. Never a 45-degree linear gradient. */
.glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: var(--z-under);
  filter: blur(20px);
}

.glow--hero {
  width: min(1100px, 120vw);
  aspect-ratio: 1.5;
  top: -34%;
  right: -14%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(92, 200, 242, 0.14),
    rgba(46, 120, 190, 0.06) 42%,
    transparent 66%
  );
}

.glow--soft {
  width: min(820px, 110vw);
  aspect-ratio: 1.6;
  background: radial-gradient(circle at 50% 50%, rgba(92, 200, 242, 0.08), transparent 64%);
}

/* Faint engineering grid. Masked so it dissolves rather than stops. */
.gridlines {
  position: absolute;
  inset: 0;
  z-index: var(--z-under);
  pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 78px 78px;
  mask-image: radial-gradient(ellipse 80% 62% at 50% 32%, #000 12%, transparent 72%);
  opacity: 0.55;
}

/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text-hi);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: var(--t-sm);
  font-weight: 600;
  letter-spacing: -0.012em;
  padding: 14px 24px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--d-fast) var(--e-out), border-color var(--d-fast) var(--e-out),
    box-shadow var(--d-mid) var(--e-out), color var(--d-fast) var(--e-out);
}

.btn > * {
  position: relative;
  z-index: 1;
}

.btn svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  transition: transform var(--d-mid) var(--e-out);
}

.btn:active {
  transform: scale(0.982);
}

.btn--lg {
  padding: 17px 30px;
  font-size: 0.97rem;
  border-radius: var(--r-md);
}

/* Primary — the accent's main job on the page */
.btn--primary {
  --btn-bg: var(--accent);
  --btn-fg: #04222f;
  box-shadow: var(--sh-accent), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn--primary:hover {
  --btn-bg: var(--accent-hi);
  box-shadow: 0 24px 70px -24px rgba(92, 200, 242, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.btn--primary:hover svg {
  transform: translateX(3px);
}

/* Secondary — glass, 1px inner edge to simulate refraction */
.btn--glass {
  --btn-bg: rgba(255, 255, 255, 0.045);
  border-color: var(--line-mid);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.btn--glass:hover {
  --btn-bg: rgba(255, 255, 255, 0.085);
  border-color: var(--line-strong);
}

/* Tertiary — a text link with a moving underline, not a third button */
.btn--quiet {
  padding-inline: 4px;
  color: var(--text-mid);
  box-shadow: none;
}
.btn--quiet::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 8px;
  height: 1px;
  background: currentColor;
  scale: 0 1;
  transform-origin: left;
  transition: scale var(--d-mid) var(--e-out);
}
.btn--quiet:hover {
  color: var(--text-hi);
}
.btn--quiet:hover::after {
  scale: 1 1;
}

.btn--block {
  width: 100%;
}

/* Magnetic wrapper — JS translates this, CSS eases it home */
.magnet {
  display: inline-flex;
  will-change: transform;
  transition: transform 520ms var(--e-spring);
}
.magnet.is-pulled {
  transition: transform 90ms linear;
}

/* --------------------------------------------------------------------------
   7. Surfaces — cards, glass, spotlight
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.008));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-2);
  overflow: hidden;
}

/* True glass: blur + inner top edge + inner shadow */
.glass {
  background: rgba(16, 20, 28, 0.62);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  border: 1px solid var(--line-mid);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.075), inset 0 -1px 0 rgba(0, 0, 0, 0.35),
    var(--sh-3);
}

/* Border that lights up under the cursor */
.spot {
  position: relative;
  isolation: isolate;
}
.spot::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(
    260px circle at var(--mx, 50%) var(--my, 0%),
    rgba(92, 200, 242, 0.55),
    transparent 70%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--d-mid) var(--e-out);
  pointer-events: none;
  z-index: 2;
}
.spot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    340px circle at var(--mx, 50%) var(--my, 0%),
    rgba(92, 200, 242, 0.055),
    transparent 68%
  );
  opacity: 0;
  transition: opacity var(--d-mid) var(--e-out);
  pointer-events: none;
  z-index: 0;
}
.spot:hover::before,
.spot:hover::after,
.spot:focus-within::before,
.spot:focus-within::after {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   8. Badges + pills
   -------------------------------------------------------------------------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: var(--r-xs);
  border: 1px solid var(--line-mid);
  color: var(--text-mid);
  background: rgba(255, 255, 255, 0.03);
}
.tag--hot {
  color: var(--heat-hot);
  border-color: rgba(255, 180, 84, 0.3);
  background: rgba(255, 180, 84, 0.09);
}
.tag--warm {
  color: var(--heat-warm);
  border-color: var(--accent-line);
  background: var(--accent-wash);
}
.tag--nurture {
  color: var(--heat-nurture);
}
.tag--pass {
  color: var(--heat-pass);
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: 0 0 6px;
}
.dot--live {
  box-shadow: 0 0 0 0 currentColor;
  animation: pulse 2.4s var(--e-out) infinite;
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(95, 208, 139, 0.5);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(95, 208, 139, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(95, 208, 139, 0);
  }
}

/* --------------------------------------------------------------------------
   9. Reveal + stagger
   -------------------------------------------------------------------------- */
.rv {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 780ms var(--e-out), transform 780ms var(--e-out);
  transition-delay: var(--rv-delay, 0ms);
}
.rv.is-in {
  opacity: 1;
  transform: none;
}

.rv-blur {
  opacity: 0;
  filter: blur(9px);
  transform: translateY(16px);
  transition: opacity 900ms var(--e-out), transform 900ms var(--e-out), filter 900ms var(--e-out);
  transition-delay: var(--rv-delay, 0ms);
}
.rv-blur.is-in {
  opacity: 1;
  filter: none;
  transform: none;
}

/* --------------------------------------------------------------------------
   10. Navigation
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: var(--z-nav);
  transition: background var(--d-mid) var(--e-out), border-color var(--d-mid) var(--e-out),
    backdrop-filter var(--d-mid) var(--e-out);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(8, 11, 16, 0.72);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom-color: var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
.brand__mark {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xs);
}
.brand__mark img {
  position: absolute;
  width: 94px;
  max-width: none;
  left: -4px;
  top: -3px;
}
.brand__word {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--text-hi);
  line-height: 1;
}
.brand__word i {
  font-style: normal;
  color: var(--accent);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline-start: auto;
}
.nav__links a {
  position: relative;
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--text-mid);
  padding: 8px 13px;
  border-radius: var(--r-xs);
  transition: color var(--d-fast) var(--e-out), background var(--d-fast) var(--e-out);
}
.nav__links a:hover {
  color: var(--text-hi);
  background: rgba(255, 255, 255, 0.045);
}
/* Current section indicator */
.nav__links a[aria-current="true"] {
  color: var(--text-hi);
}
.nav__links a[aria-current="true"]::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 2px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--accent);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.nav__burger {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-mid);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}
.nav__burger span {
  display: block;
  width: 17px;
  height: 1.5px;
  background: var(--text-hi);
  border-radius: 2px;
  transition: transform var(--d-mid) var(--e-out), opacity var(--d-fast) var(--e-out);
}
.nav__burger span + span {
  margin-top: 4.5px;
}
.nav__burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav__burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav__burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav__sheet {
  display: none;
  border-top: 1px solid var(--line);
  background: rgba(8, 11, 16, 0.94);
  backdrop-filter: blur(20px);
  padding: 14px var(--gut) 26px;
}
.nav__sheet.is-open {
  display: block;
  animation: sheet 320ms var(--e-out);
}
@keyframes sheet {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
}
.nav__sheet a {
  display: block;
  padding: 13px 2px;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--line);
}
.nav__sheet .btn {
  margin-top: 18px;
}

@media (max-width: 900px) {
  .nav__links,
  .nav__actions .btn--glass {
    display: none;
  }
  .nav__burger {
    display: flex;
    flex-direction: column;
  }
}

/* Below this width the primary CTA no longer fits beside the wordmark and the
   burger. The sheet already carries the same action, so drop the duplicate. */
@media (max-width: 560px) {
  .nav__inner {
    gap: 12px;
  }
  .nav__actions .btn {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   11. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(128px, 15vh, 184px) clamp(80px, 9vw, 120px);
  overflow: hidden;
  background: radial-gradient(ellipse 120% 74% at 50% -18%, #0e1620 0%, var(--void) 62%);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(40px, 5vw, 76px);
  align-items: center;
}

.hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: var(--t-xs);
  font-weight: 500;
  color: var(--text-mid);
  padding: 6px 6px 6px 12px;
  border-radius: var(--r-full);
  border: 1px solid var(--line-mid);
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 28px;
}
.hero__pill b {
  color: var(--text-hi);
  font-weight: 600;
}
.hero__pill span {
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-wash);
  border: 1px solid var(--accent-line);
  padding: 4px 9px;
  border-radius: var(--r-full);
}

.hero h1 {
  font-size: var(--t-display);
  line-height: 0.94;
  margin-bottom: 26px;
}
.hero h1 .serif {
  color: var(--accent);
}

.hero__lede {
  margin-bottom: 36px;
  max-width: 47ch;
}

.hero__cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero__meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 30px;
  font-size: var(--t-xs);
  color: var(--text-low);
}
.hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.hero__meta svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
}

/* --- Hero stage: parallax layers ---------------------------------------- */
.stage {
  position: relative;
  min-height: 520px;
  perspective: 1400px;
}

.stage__layer {
  will-change: transform;
  transition: transform 900ms var(--e-out);
}

/* Main console */
.console {
  position: relative;
  z-index: var(--z-raised);
  border-radius: var(--r-xl);
  padding: 22px;
}

.console__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.console__title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-mid);
}
.console__live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pos);
}

/* Score dial */
.dial {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  margin-bottom: 20px;
}
.dial__ring {
  position: relative;
  width: 116px;
  height: 116px;
}
.dial__ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.dial__track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.07);
  stroke-width: 7;
}
.dial__fill {
  fill: none;
  stroke: url(#dialGrad);
  stroke-width: 7;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.1s var(--e-out);
}
.dial__val {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}
.dial__val b {
  display: block;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 2.3rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--text-hi);
}
.dial__val i {
  font-style: normal;
  font-size: var(--t-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-low);
}

.dial__who .name {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.024em;
  color: var(--text-hi);
  margin-bottom: 3px;
}
.dial__who .sub {
  font-size: var(--t-xs);
  color: var(--text-low);
  margin-bottom: 12px;
}

/* Signal bars */
.signals {
  display: grid;
  gap: 9px;
}
.signal {
  display: grid;
  grid-template-columns: 1fr 62px;
  gap: 12px;
  align-items: center;
  font-size: var(--t-xs);
  color: var(--text-mid);
}
.signal__bar {
  height: 4px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.signal__bar i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent));
  width: 0;
  transition: width 1.05s var(--e-out);
  transition-delay: var(--bar-delay, 0ms);
}

/* Ranking queue — reorders via FLIP */
.queue {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.queue__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-low);
  margin-bottom: 11px;
}
.queue__list {
  display: grid;
  gap: 6px;
  list-style: none;
}
.queue__item {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  padding: 9px 11px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.026);
  border: 1px solid transparent;
  font-size: var(--t-xs);
  will-change: transform;
}
.queue__item[data-rank="1"] {
  background: var(--accent-wash);
  border-color: var(--accent-line);
}
.queue__rank {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-low);
}
.queue__item[data-rank="1"] .queue__rank {
  color: var(--accent);
}
.queue__name {
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.queue__score {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--text-hi);
}

/* Floating cards around the console */
.float {
  position: absolute;
  z-index: calc(var(--z-raised) + 2);
  padding: 12px 14px;
  border-radius: var(--r-md);
  font-size: var(--t-xs);
  animation: bob 7s var(--e-inout) infinite;
  will-change: transform;
}
.float--a {
  top: -26px;
  left: -46px;
  animation-delay: -0.9s;
}
.float--b {
  bottom: 44px;
  right: -54px;
  animation-delay: -3.4s;
}
.float--c {
  bottom: -30px;
  left: 8%;
  animation-delay: -5.6s;
}
/* The floating chips are depth cues that live outside the console's bounds.
   Narrow viewports have no room outside those bounds, so they'd sit on top of
   the data they're meant to frame. Drop them rather than reposition them. */
@media (max-width: 780px) {
  .float {
    display: none;
  }
}
@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-11px);
  }
}
.float__k {
  display: block;
  font-size: var(--t-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-low);
  margin-bottom: 3px;
}
.float__v {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text-hi);
}

@media (max-width: 1020px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .stage {
    min-height: 0;
  }
  .float--a {
    left: -12px;
    top: -18px;
  }
  .float--b {
    right: -12px;
  }
  .float--c {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   12. Social proof band
   -------------------------------------------------------------------------- */
.band {
  border-block: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.014), transparent);
  padding-block: 30px;
}
.band__inner {
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 52px);
  flex-wrap: wrap;
  justify-content: space-between;
}
.band__claim {
  font-size: var(--t-sm);
  color: var(--text-mid);
  max-width: 34ch;
}
.band__claim b {
  color: var(--text-hi);
  font-weight: 600;
}
.band__logos {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
  flex-wrap: wrap;
}
.band__logos span {
  font-size: var(--t-sm);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-low);
  transition: color var(--d-mid) var(--e-out);
}
.band__logos span:hover {
  color: var(--text);
}

/* --------------------------------------------------------------------------
   13. Problem — asymmetric editorial
   -------------------------------------------------------------------------- */
.problem {
  background: var(--base);
}
.problem__lead {
  font-size: clamp(1.6rem, 0.9rem + 2.6vw, 3rem);
  line-height: 1.16;
  letter-spacing: -0.034em;
  color: var(--text-hi);
  max-width: 20ch;
  font-weight: 600;
}
.problem__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
.cost-list {
  display: grid;
  gap: 2px;
  list-style: none;
}
.cost {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 22px;
  align-items: baseline;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.cost:last-child {
  border-bottom: 1px solid var(--line);
}
.cost__n {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.06em;
  padding-top: 6px;
}
.cost h3 {
  margin-bottom: 8px;
}
.cost p {
  font-size: var(--t-sm);
  color: var(--text-mid);
  max-width: 46ch;
}
@media (max-width: 900px) {
  .problem__grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   14. Solution — offset zig-zag, not a 3-card row
   -------------------------------------------------------------------------- */
.solution__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
  padding-block: clamp(36px, 4vw, 60px);
}
.solution__row:nth-child(even) .solution__media {
  order: -1;
}
.solution__row + .solution__row {
  border-top: 1px solid var(--line);
}
.solution__step {
  font-family: var(--mono);
  font-size: var(--t-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.solution__body p {
  margin-top: 16px;
  max-width: 44ch;
  color: var(--text-mid);
}
.solution__media {
  border-radius: var(--r-lg);
  padding: 20px;
  min-height: 230px;
  display: grid;
  align-content: center;
}
@media (max-width: 880px) {
  .solution__row {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .solution__row:nth-child(even) .solution__media {
    order: 0;
  }
}

/* Mini visualisations inside solution media */
.viz-rows {
  display: grid;
  gap: 8px;
}
.viz-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.028);
  font-size: var(--t-xs);
  color: var(--text-mid);
}
.viz-row b {
  font-family: var(--mono);
  font-weight: 600;
  text-align: right;
  color: var(--text-hi);
}
.viz-row--dim {
  opacity: 0.42;
}
.viz-row--hi {
  background: var(--accent-wash);
  border: 1px solid var(--accent-line);
  color: var(--text-hi);
}
.viz-row--hi b {
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   15. Interactive demo
   -------------------------------------------------------------------------- */
.demo {
  background: var(--base);
}
.demo__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 3.4vw, 52px);
  align-items: start;
}
.demo__panel {
  border-radius: var(--r-xl);
  padding: clamp(22px, 2.6vw, 34px);
}

.ctrl + .ctrl {
  margin-top: 24px;
}
.ctrl__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 11px;
}
.ctrl__label {
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--text-hi);
  letter-spacing: -0.016em;
}
.ctrl__hint {
  font-size: var(--t-xs);
  color: var(--text-low);
}
.ctrl__weight {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-low);
  letter-spacing: 0.04em;
}

/* Segmented control — replaces sliders, gives discrete honest answers */
.seg {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 5px;
  padding: 5px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.028);
  border: 1px solid var(--line);
}
.seg button {
  position: relative;
  border: 0;
  background: transparent;
  color: var(--text-mid);
  font-size: var(--t-xs);
  font-weight: 500;
  line-height: 1.25;
  padding: 11px 6px;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: color var(--d-fast) var(--e-out), background var(--d-fast) var(--e-out);
}
.seg button:hover {
  color: var(--text-hi);
  background: rgba(255, 255, 255, 0.045);
}
.seg button[aria-pressed="true"] {
  color: var(--text-hi);
  background: rgba(255, 255, 255, 0.085);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), var(--sh-1);
}
.seg button[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  left: 50%;
  translate: -50% 0;
  bottom: 5px;
  width: 14px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--accent);
}

/* Result readout */
.readout {
  position: sticky;
  top: 96px;
  border-radius: var(--r-xl);
  padding: clamp(24px, 2.6vw, 34px);
  text-align: center;
}
.readout__score {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(4rem, 2rem + 6vw, 6.4rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.06em;
  color: var(--text-hi);
  transition: color var(--d-slow) var(--e-out);
}
.readout__of {
  font-size: var(--t-label);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-low);
  margin-bottom: 20px;
}
.readout__meter {
  position: relative;
  height: 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
  margin-bottom: 8px;
}
.readout__meter i {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 4px;
  width: 0;
  background: currentColor;
  transition: width 620ms var(--e-out), background 620ms var(--e-out);
}
.readout__ticks {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-low);
  margin-bottom: 24px;
}
.readout__verdict {
  padding: 18px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.026);
  text-align: left;
  transition: border-color var(--d-slow) var(--e-out), background var(--d-slow) var(--e-out);
}
.readout__tier {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--t-label);
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.readout__action {
  font-size: var(--t-sm);
  color: var(--text);
  line-height: 1.5;
}
.readout__time {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: var(--t-xs);
  color: var(--text-low);
}
.readout__time b {
  font-family: var(--mono);
  color: var(--text-hi);
  font-weight: 600;
}

@media (max-width: 940px) {
  .demo__grid {
    grid-template-columns: 1fr;
  }
  .readout {
    position: static;
  }
}

/* --------------------------------------------------------------------------
   16. Walkthrough / dashboard
   -------------------------------------------------------------------------- */
.walk__tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.walk__tab {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.024);
  color: var(--text-mid);
  font-size: var(--t-sm);
  font-weight: 500;
  padding: 10px 16px;
  border-radius: var(--r-full);
  cursor: pointer;
  transition: color var(--d-fast) var(--e-out), background var(--d-fast) var(--e-out),
    border-color var(--d-fast) var(--e-out);
}
.walk__tab:hover {
  color: var(--text-hi);
  border-color: var(--line-strong);
}
.walk__tab[aria-selected="true"] {
  color: var(--text-hi);
  background: var(--accent-wash);
  border-color: var(--accent-line);
}
.walk__tab .num {
  font-size: 0.7rem;
  color: var(--text-low);
}
.walk__tab[aria-selected="true"] .num {
  color: var(--accent);
}

.walk__stage {
  border-radius: var(--r-xl);
  padding: clamp(14px, 1.6vw, 20px);
  min-height: 460px;
}
.walk__caption {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.walk__caption h3 {
  margin-bottom: 7px;
}
.walk__caption p {
  font-size: var(--t-sm);
  color: var(--text-mid);
  max-width: 62ch;
}

/* Panel switching */
.panel {
  display: none;
}
.panel.is-active {
  display: block;
  animation: panelIn 460ms var(--e-out);
}
@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

/* Skeleton loading */
.skel {
  border-radius: var(--r-sm);
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.04) 25%,
    rgba(255, 255, 255, 0.085) 37%,
    rgba(255, 255, 255, 0.04) 63%
  );
  background-size: 400% 100%;
  animation: shimmer 1.3s var(--e-inout) infinite;
}
@keyframes shimmer {
  to {
    background-position: -135% 0;
  }
}
.skel-stack {
  display: grid;
  gap: 12px;
  padding: 22px;
}

/* --- Dashboard chrome --------------------------------------------------- */
.dash {
  display: grid;
  grid-template-columns: 216px minmax(0, 1fr);
  gap: 1px;
  background: var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  min-height: 430px;
}
.dash__rail {
  background: var(--surface-1);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.dash__railhead {
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-low);
  padding: 6px 10px 12px;
}
.dash__nav {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--r-sm);
  font-size: var(--t-xs);
  color: var(--text-mid);
  cursor: default;
}
.dash__nav svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  opacity: 0.8;
}
.dash__nav.is-on {
  background: rgba(255, 255, 255, 0.055);
  color: var(--text-hi);
}
.dash__nav.is-on svg {
  color: var(--accent);
  opacity: 1;
}
.dash__nav span.count {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-low);
}
.dash__main {
  background: var(--surface-1);
  padding: 18px;
  display: grid;
  gap: 14px;
  align-content: start;
}
.dash__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.dash__filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.chip {
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: var(--r-full);
  border: 1px solid var(--line);
  color: var(--text-low);
  background: transparent;
  cursor: pointer;
  transition: color var(--d-fast) var(--e-out), border-color var(--d-fast) var(--e-out);
}
.chip:hover {
  color: var(--text);
  border-color: var(--line-strong);
}
.chip.is-on {
  color: var(--accent);
  border-color: var(--accent-line);
  background: var(--accent-wash);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(126px, 1fr));
  gap: 10px;
}
.stat {
  padding: 13px 14px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.028);
  border: 1px solid var(--line);
}
.stat__k {
  font-size: var(--t-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-low);
  margin-bottom: 7px;
}
.stat__v {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  color: var(--text-hi);
  line-height: 1;
}
.stat__d {
  font-size: 0.72rem;
  margin-top: 6px;
  color: var(--text-low);
}
.stat__d.up {
  color: var(--pos);
}

.dash__split {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 12px;
}
.pane {
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
  padding: 14px;
}
.pane__h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-low);
  margin-bottom: 12px;
}

/* Lead rows */
.lead {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  padding: 9px 8px;
  border-radius: var(--r-sm);
  transition: background var(--d-fast) var(--e-out);
}
.lead + .lead {
  border-top: 1px solid var(--line);
}
.lead:hover {
  background: rgba(255, 255, 255, 0.035);
}
.avatar {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-content: center;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-hi);
  background: var(--surface-3);
  border: 1px solid var(--line-mid);
}
/* The middle cell has to be a real block container with min-width: 0, otherwise
   the name and meta lines never shrink below their text width and the ellipsis
   below never engages — they just get clipped by whichever ancestor hides
   overflow. This is the grid min-content floor, not a spacing choice. */
.lead__who {
  display: grid;
  min-width: 0;
}
.lead__name {
  display: block;
  min-width: 0;
  font-size: var(--t-xs);
  font-weight: 500;
  color: var(--text-hi);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lead__meta {
  display: block;
  min-width: 0;
  font-size: 0.72rem;
  color: var(--text-low);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lead__score {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.92rem;
  font-weight: 700;
  text-align: right;
}

/* Timeline */
.tl {
  display: grid;
  gap: 0;
  list-style: none;
}
.tl li {
  position: relative;
  padding: 0 0 16px 22px;
  border-left: 1px solid var(--line);
  font-size: var(--t-xs);
  color: var(--text-mid);
}
.tl li:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}
.tl li::before {
  content: "";
  position: absolute;
  left: -4.5px;
  top: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--surface-3);
  border: 1.5px solid var(--line-strong);
}
.tl li.is-key::before {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-wash);
}
.tl b {
  display: block;
  color: var(--text-hi);
  font-weight: 500;
  margin-bottom: 2px;
}
.tl time {
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--text-low);
}

/* AI recommendation */
.rec {
  border-radius: var(--r-md);
  border: 1px solid var(--accent-line);
  background: var(--accent-wash);
  padding: 13px 14px;
}
.rec__h {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--t-label);
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.rec p {
  font-size: var(--t-xs);
  color: var(--text);
  line-height: 1.5;
}
.rec__acts {
  display: flex;
  gap: 7px;
  margin-top: 11px;
  flex-wrap: wrap;
}
.mini {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: var(--r-xs);
  border: 1px solid var(--line-mid);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-hi);
  cursor: pointer;
  transition: background var(--d-fast) var(--e-out);
}
.mini:hover {
  background: rgba(255, 255, 255, 0.1);
}
.mini--solid {
  background: var(--accent);
  border-color: transparent;
  color: #04222f;
}
.mini--solid:hover {
  background: var(--accent-hi);
}

/* Tasks */
.task {
  display: grid;
  grid-template-columns: 15px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  font-size: var(--t-xs);
  color: var(--text);
}
.task + .task {
  border-top: 1px solid var(--line);
}
.task__box {
  width: 15px;
  height: 15px;
  border-radius: 4px;
  border: 1.5px solid var(--line-strong);
}
.task__box.is-done {
  background: var(--accent);
  border-color: var(--accent);
}
.task.is-done .task__t {
  color: var(--text-low);
  text-decoration: line-through;
}
.task__due {
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--text-low);
}
.task__due.due-now {
  color: var(--heat-hot);
}

/* Charts */
.chart {
  width: 100%;
  height: 118px;
  overflow: visible;
}
.chart__area {
  fill: url(#areaGrad);
  opacity: 0;
  transition: opacity 900ms var(--e-out) 380ms;
}
.chart__line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
}
.is-active .chart__line {
  animation: draw 1.5s var(--e-out) forwards;
}
.is-active .chart__area {
  opacity: 1;
}
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}
.chart__grid line {
  stroke: var(--line);
  stroke-width: 1;
}
.chart__lbl {
  font-family: var(--mono);
  font-size: 7.5px;
  fill: var(--text-low);
}

.bars {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 7px;
  align-items: end;
  height: 108px;
}
.bar {
  position: relative;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  height: 0;
  transition: height 780ms var(--e-out);
  transition-delay: var(--bar-delay, 0ms);
  opacity: 0.85;
}
.bar--dim {
  background: linear-gradient(180deg, var(--surface-4), var(--surface-3));
}
.bar-labels {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 7px;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--text-low);
  text-align: center;
}

/* Notifications + team activity */
.notif {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
  padding: 9px 0;
  font-size: var(--t-xs);
  color: var(--text-mid);
}
.notif + .notif {
  border-top: 1px solid var(--line);
}
.notif b {
  color: var(--text-hi);
  font-weight: 500;
}
.notif time {
  display: block;
  font-family: var(--mono);
  font-size: 0.64rem;
  color: var(--text-low);
  margin-top: 3px;
}

@media (max-width: 860px) {
  .dash {
    grid-template-columns: 1fr;
  }
  .dash__rail {
    display: none;
  }
  .dash__split {
    grid-template-columns: 1fr;
  }
  .walk__stage {
    min-height: 0;
  }
}

/* --------------------------------------------------------------------------
   17. Features — asymmetric bento
   -------------------------------------------------------------------------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.bento > * {
  border-radius: var(--r-lg);
  padding: clamp(22px, 2.4vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bento .span-4 {
  grid-column: span 4;
}
.bento .span-3 {
  grid-column: span 3;
}
.bento .span-2 {
  grid-column: span 2;
}
.feat__ic {
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  display: grid;
  place-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-mid);
  color: var(--accent);
  margin-bottom: 4px;
}
.feat__ic svg {
  width: 18px;
  height: 18px;
}
.bento h3 {
  font-size: 1.14rem;
}
.bento p {
  font-size: var(--t-sm);
  color: var(--text-mid);
  max-width: 42ch;
}
.bento .grow {
  margin-top: auto;
  padding-top: 14px;
}
@media (max-width: 940px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento .span-4,
  .bento .span-3,
  .bento .span-2 {
    grid-column: span 2;
  }
}
@media (max-width: 560px) {
  .bento {
    grid-template-columns: 1fr;
  }
  .bento .span-4,
  .bento .span-3,
  .bento .span-2 {
    grid-column: span 1;
  }
}

/* --------------------------------------------------------------------------
   18. Why it works
   -------------------------------------------------------------------------- */
.why {
  background: var(--base);
}
.why__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
  gap: clamp(28px, 3vw, 48px);
}
.why__item {
  padding-top: 24px;
  border-top: 1px solid var(--line-mid);
}
.why__n {
  font-family: var(--mono);
  font-size: var(--t-label);
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 14px;
}
.why__item h3 {
  font-size: 1.16rem;
  margin-bottom: 10px;
}
.why__item p {
  font-size: var(--t-sm);
  color: var(--text-mid);
}

/* --------------------------------------------------------------------------
   19. Comparison
   -------------------------------------------------------------------------- */
.compare {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface-1);
}
.compare__cell {
  padding: 17px clamp(14px, 1.8vw, 24px);
  border-bottom: 1px solid var(--line);
  font-size: var(--t-sm);
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 62px;
}
.compare__row:last-child .compare__cell {
  border-bottom: 0;
}
.compare__cell--head {
  min-height: 84px;
  align-items: flex-end;
  padding-bottom: 16px;
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-low);
  background: rgba(255, 255, 255, 0.016);
}
.compare__cell--label {
  color: var(--text-hi);
  font-weight: 500;
}
.compare__col-hi {
  background: linear-gradient(180deg, rgba(92, 200, 242, 0.075), rgba(92, 200, 242, 0.022));
  box-shadow: inset 1px 0 0 var(--accent-line), inset -1px 0 0 var(--accent-line);
}
.compare__cell--head.compare__col-hi {
  color: var(--accent);
  box-shadow: inset 1px 0 0 var(--accent-line), inset -1px 0 0 var(--accent-line),
    inset 0 2px 0 var(--accent);
}
.compare__cell svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
}
.ico-no {
  color: var(--neg);
}
.ico-yes {
  color: var(--accent);
}
.compare__row {
  display: contents;
}
@media (max-width: 760px) {
  .compare {
    grid-template-columns: minmax(0, 1fr) 74px 74px;
    font-size: var(--t-xs);
  }
  .compare__cell {
    padding: 13px 10px;
    min-height: 56px;
  }
  .compare__cell span.txt {
    display: none;
  }
  .compare__cell--label span.txt {
    display: inline;
  }
}

/* --------------------------------------------------------------------------
   20. Founding pilot (replaces fabricated testimonials)
   -------------------------------------------------------------------------- */
.pilot__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: clamp(32px, 4vw, 68px);
  align-items: start;
}
.pledge {
  display: grid;
  gap: 2px;
  list-style: none;
}
.pledge li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 14px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  font-size: var(--t-sm);
  color: var(--text-mid);
}
.pledge li:last-child {
  border-bottom: 1px solid var(--line);
}
.pledge b {
  display: block;
  color: var(--text-hi);
  font-weight: 600;
  font-size: var(--t-body);
  letter-spacing: -0.018em;
  margin-bottom: 5px;
}
.pledge svg {
  width: 17px;
  height: 17px;
  color: var(--accent);
  margin-top: 3px;
}

.seats {
  border-radius: var(--r-xl);
  padding: clamp(26px, 3vw, 38px);
  position: sticky;
  top: 96px;
}
.seats__n {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}
.seats__n b {
  font-family: var(--mono);
  font-size: 3.6rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.06em;
  color: var(--text-hi);
}
.seats__n span {
  font-size: var(--t-sm);
  color: var(--text-low);
}
.seats__bar {
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
  margin: 18px 0 10px;
}
.seats__bar i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent));
  width: 0;
  transition: width 1.2s var(--e-out);
}
.seats p {
  font-size: var(--t-xs);
  color: var(--text-low);
}
.seats .btn {
  margin-top: 22px;
}
.honest {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  border: 1px dashed var(--line-strong);
  font-size: var(--t-xs);
  color: var(--text-mid);
  line-height: 1.55;
}
.honest b {
  color: var(--text-hi);
  font-weight: 600;
}
@media (max-width: 900px) {
  .pilot__grid {
    grid-template-columns: 1fr;
  }
  .seats {
    position: static;
  }
}

/* --------------------------------------------------------------------------
   21. ROI calculator
   -------------------------------------------------------------------------- */
.roi {
  background: var(--base);
}
.roi__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(28px, 3.4vw, 56px);
  align-items: center;
}
.roi__inputs {
  border-radius: var(--r-xl);
  padding: clamp(24px, 2.6vw, 34px);
}
.rin + .rin {
  margin-top: 22px;
}
.rin__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.rin label {
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--text);
}
.rin output {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-hi);
}

/* Range input, restyled both engines */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 26px;
  background: transparent;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 5px;
  border-radius: 3px;
  background: linear-gradient(
    90deg,
    var(--accent) 0 var(--pct, 50%),
    rgba(255, 255, 255, 0.08) var(--pct, 50%) 100%
  );
}
input[type="range"]::-moz-range-track {
  height: 5px;
  border-radius: 3px;
  background: linear-gradient(
    90deg,
    var(--accent) 0 var(--pct, 50%),
    rgba(255, 255, 255, 0.08) var(--pct, 50%) 100%
  );
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 17px;
  height: 17px;
  margin-top: -6px;
  border-radius: 50%;
  background: var(--text-hi);
  border: 3px solid var(--accent-deep);
  box-shadow: 0 2px 10px rgba(3, 6, 12, 0.7);
  transition: transform var(--d-fast) var(--e-out);
}
input[type="range"]::-moz-range-thumb {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--text-hi);
  border: 3px solid var(--accent-deep);
  box-shadow: 0 2px 10px rgba(3, 6, 12, 0.7);
}
input[type="range"]:hover::-webkit-slider-thumb,
input[type="range"]:active::-webkit-slider-thumb {
  transform: scale(1.14);
}

/* Touch devices get a taller hit area than the visual track needs. The track
   and thumb stay the same size; only the grabbable box grows. */
@media (pointer: coarse) {
  input[type="range"] {
    height: 44px;
  }
  input[type="range"]::-webkit-slider-thumb {
    margin-top: -6px;
  }
  .chip {
    padding: 11px 14px;
  }
}

.roi__out {
  display: grid;
  gap: 12px;
}
.roi__big {
  border-radius: var(--r-xl);
  padding: clamp(24px, 2.8vw, 36px);
}
.roi__k {
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-low);
  margin-bottom: 12px;
}
.roi__v {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(2.6rem, 1.4rem + 3.6vw, 4.2rem);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.055em;
  color: var(--accent);
}
.roi__sub {
  font-size: var(--t-sm);
  color: var(--text-mid);
  margin-top: 12px;
  max-width: 44ch;
}
.roi__pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.roi__mini {
  border-radius: var(--r-lg);
  padding: 20px;
}
.roi__mini .v {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  color: var(--text-hi);
  line-height: 1;
}
.roi__note {
  font-size: var(--t-xs);
  color: var(--text-low);
  line-height: 1.55;
  padding: 13px 15px;
  border-radius: var(--r-md);
  border: 1px dashed var(--line-strong);
}
@media (max-width: 900px) {
  .roi__grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 460px) {
  .roi__pair {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   22. Pricing
   -------------------------------------------------------------------------- */
.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 940px;
  margin-inline: auto;
  align-items: stretch;
}
.plan {
  position: relative;
  display: grid;
  /* Fixed-height header rows keep feature lists starting at the same Y */
  grid-template-rows: auto auto auto 1fr auto;
  border-radius: var(--r-xl);
  padding: clamp(26px, 2.8vw, 36px);
  transition: transform var(--d-mid) var(--e-out), box-shadow var(--d-mid) var(--e-out),
    border-color var(--d-mid) var(--e-out);
}
.plan:hover {
  transform: translateY(-3px);
}
.plan--hi {
  border-color: var(--accent-line);
  box-shadow: var(--sh-4), 0 0 0 1px var(--accent-line), 0 40px 100px -50px rgba(92, 200, 242, 0.5);
  background: linear-gradient(180deg, rgba(92, 200, 242, 0.055), rgba(255, 255, 255, 0.01) 44%);
}
.plan__flag {
  position: absolute;
  top: 0;
  right: clamp(26px, 2.8vw, 36px);
  translate: 0 -50%;
  font-size: var(--t-label);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #04222f;
  background: var(--accent);
  padding: 6px 12px;
  border-radius: var(--r-xs);
  box-shadow: var(--sh-accent);
}
.plan__name {
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: -0.028em;
  color: var(--text-hi);
  margin-bottom: 8px;
}
.plan__for {
  font-size: var(--t-sm);
  color: var(--text-mid);
  min-height: 3.2em;
  max-width: 34ch;
}
.plan__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin: 24px 0 4px;
  min-height: 58px;
}
.plan__amt {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.06em;
  color: var(--text-hi);
}
.plan__per {
  font-size: var(--t-sm);
  color: var(--text-low);
}
.plan__terms {
  font-size: var(--t-xs);
  color: var(--text-low);
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.plan__list {
  list-style: none;
  display: grid;
  gap: 12px;
  align-content: start;
  margin-bottom: 28px;
}
.plan__list li {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 11px;
  font-size: var(--t-sm);
  color: var(--text);
  line-height: 1.45;
}
.plan__list svg {
  width: 15px;
  height: 15px;
  color: var(--accent);
  margin-top: 4px;
}
.plan__list li.inherit {
  color: var(--text-mid);
  font-weight: 500;
  padding-bottom: 4px;
}
/* CTA pinned to the bottom so both buttons form one line */
.plan__cta {
  align-self: end;
}
.plan__fine {
  font-size: var(--t-xs);
  color: var(--text-low);
  text-align: center;
  margin-top: 12px;
}
@media (max-width: 820px) {
  .plans {
    grid-template-columns: 1fr;
    /* Stacked plans span the container so their edges line up with the
       section heading instead of floating in a narrower centred column. */
    max-width: none;
  }
  .plan__flag {
    right: 50%;
    translate: 50% -50%;
  }
}

.guarantee {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 940px;
  margin: 20px auto 0;
  padding: 20px 24px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
}
.guarantee svg {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  color: var(--accent);
}
.guarantee p {
  font-size: var(--t-sm);
  color: var(--text-mid);
}
.guarantee b {
  color: var(--text-hi);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   23. FAQ — two-column index, not a stacked accordion
   -------------------------------------------------------------------------- */
.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(30px, 4vw, 70px);
  align-items: start;
}
.faq__aside {
  position: sticky;
  top: 104px;
}
.faq__aside p {
  font-size: var(--t-sm);
  color: var(--text-mid);
  margin-top: 16px;
  max-width: 32ch;
}
.faq__list {
  display: grid;
}
.qa {
  border-top: 1px solid var(--line);
}
.qa:last-child {
  border-bottom: 1px solid var(--line);
}
.qa__q {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
  background: none;
  border: 0;
  padding: 24px 0;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.022em;
  color: var(--text-hi);
  cursor: pointer;
  transition: color var(--d-fast) var(--e-out);
}
.qa__q:hover {
  color: var(--accent);
}
.qa__sign {
  position: relative;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin-top: 6px;
}
.qa__sign::before,
.qa__sign::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto 0;
  height: 1.5px;
  border-radius: 2px;
  background: var(--text-mid);
  transition: transform var(--d-mid) var(--e-out), background var(--d-fast) var(--e-out);
}
.qa__sign::after {
  transform: rotate(90deg);
}
.qa__q[aria-expanded="true"] .qa__sign::before {
  background: var(--accent);
}
.qa__q[aria-expanded="true"] .qa__sign::after {
  transform: rotate(0deg);
  background: var(--accent);
}
.qa__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 380ms var(--e-out);
}
.qa__a > div {
  overflow: hidden;
}
.qa__a p {
  font-size: var(--t-sm);
  color: var(--text-mid);
  max-width: 62ch;
  padding-bottom: 26px;
}
.qa.is-open .qa__a {
  grid-template-rows: 1fr;
}
@media (max-width: 860px) {
  .faq__grid {
    grid-template-columns: 1fr;
  }
  .faq__aside {
    position: static;
  }
}

/* --------------------------------------------------------------------------
   24. Final CTA
   -------------------------------------------------------------------------- */
.final {
  position: relative;
  overflow: hidden;
  text-align: center;
  background: radial-gradient(ellipse 90% 100% at 50% 108%, #0f1a24 0%, var(--void) 60%);
  border-top: 1px solid var(--line);
}
.final h2 {
  font-size: var(--t-h1);
  margin-bottom: 22px;
}
.final .lede {
  margin-inline: auto;
  margin-bottom: 38px;
}
.final__cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.final__fine {
  margin-top: 26px;
  font-size: var(--t-xs);
  color: var(--text-low);
}

/* --------------------------------------------------------------------------
   25. Footer
   -------------------------------------------------------------------------- */
.foot {
  border-top: 1px solid var(--line);
  background: var(--base);
  padding-block: clamp(54px, 6vw, 78px) 34px;
}
.foot__top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(26px, 4vw, 56px);
  padding-bottom: 44px;
}
.foot__blurb {
  font-size: var(--t-sm);
  color: var(--text-low);
  max-width: 34ch;
  margin-top: 16px;
}
.foot__col h4 {
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-low);
  margin-bottom: 16px;
}
.foot__col a {
  display: block;
  font-size: var(--t-sm);
  color: var(--text-mid);
  padding-block: 6px;
  transition: color var(--d-fast) var(--e-out);
}
.foot__col a:hover {
  color: var(--text-hi);
}
.foot__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: var(--t-xs);
  color: var(--text-low);
}
.foot__marks {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
@media (max-width: 800px) {
  .foot__top {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 500px) {
  .foot__top {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   26. Modal
   -------------------------------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(4, 7, 12, 0.76);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--d-mid) var(--e-out), visibility var(--d-mid);
}
.modal.is-open {
  opacity: 1;
  visibility: visible;
}
.modal__box {
  width: 100%;
  max-width: 468px;
  max-height: min(90dvh, 760px);
  overflow-y: auto;
  border-radius: var(--r-xl);
  padding: 34px;
  background: var(--surface-1);
  border: 1px solid var(--line-mid);
  box-shadow: var(--sh-4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: translateY(16px) scale(0.985);
  transition: transform 340ms var(--e-spring);
}
.modal.is-open .modal__box {
  transform: none;
}
.modal__x {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  display: grid;
  place-content: center;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-mid);
  cursor: pointer;
  transition: color var(--d-fast) var(--e-out), background var(--d-fast) var(--e-out);
}
.modal__x:hover {
  color: var(--text-hi);
  background: rgba(255, 255, 255, 0.09);
}
.modal__box {
  position: relative;
}
.modal h3 {
  font-size: 1.55rem;
  margin-bottom: 9px;
}
.modal__sub {
  font-size: var(--t-sm);
  color: var(--text-mid);
  margin-bottom: 24px;
}

.field {
  margin-bottom: 15px;
}
.field label {
  display: block;
  font-size: var(--t-xs);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 7px;
}
.field label .req {
  color: var(--accent);
}
.field input,
.field select {
  width: 100%;
  font-size: var(--t-sm);
  padding: 12px 13px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-mid);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-hi);
  transition: border-color var(--d-fast) var(--e-out), box-shadow var(--d-fast) var(--e-out),
    background var(--d-fast) var(--e-out);
}
.field input::placeholder {
  color: var(--text-low);
}
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent-line);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 3px var(--accent-wash);
}
.field select option {
  background: var(--surface-2);
  color: var(--text-hi);
}
.field.is-bad input,
.field.is-bad select {
  border-color: var(--neg);
}
.field__err {
  display: none;
  font-size: 0.74rem;
  color: var(--neg);
  margin-top: 6px;
}
.field.is-bad .field__err {
  display: block;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 460px) {
  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .modal__box {
    padding: 28px 20px;
  }
}

.form-note {
  text-align: center;
  font-size: var(--t-xs);
  color: var(--text-low);
  margin-top: 14px;
}
.form-alert {
  display: none;
  font-size: var(--t-xs);
  color: var(--neg);
  background: rgba(242, 112, 126, 0.09);
  border: 1px solid rgba(242, 112, 126, 0.28);
  border-radius: var(--r-sm);
  padding: 11px 13px;
  margin-bottom: 14px;
}
.form-alert.is-on {
  display: block;
}

.done {
  text-align: center;
  padding-block: 12px;
}
.done__tick {
  width: 58px;
  height: 58px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: grid;
  place-content: center;
  background: var(--accent-wash);
  border: 1px solid var(--accent-line);
  color: var(--accent);
}
.view {
  display: none;
}
.view.is-on {
  display: block;
}

/* Button busy state */
.btn.is-busy {
  pointer-events: none;
  opacity: 0.72;
}
.btn.is-busy::after {
  content: "";
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-top-color: transparent;
  animation: spin 620ms linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* --------------------------------------------------------------------------
   27. Reduced motion — respect it completely
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .rv,
  .rv-blur {
    opacity: 1;
    transform: none;
    filter: none;
  }
  .float {
    animation: none;
  }
  .chart__line {
    stroke-dashoffset: 0;
  }
  .chart__area {
    opacity: 1;
  }
  .magnet {
    transform: none !important;
  }
}
