/* Shared components. Anatomy: BUILD-SPEC 2.4. Hover lives only inside (hover: hover) and (pointer: fine). */

@property --pa { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --pgrow { syntax: "<number>"; inherits: true; initial-value: 1; }
@property --hl { syntax: "<number>"; inherits: true; initial-value: 1; }

@keyframes spin { to { rotate: 360deg; } }

/* ================= buttons ================= */
.btn {
  --btn-h: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--btn-h);
  min-width: 44px;
  padding-inline: 28px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color var(--dur-fast) var(--ease-out-quart),
    border-color var(--dur-fast) var(--ease-out-quart),
    color var(--dur-fast) var(--ease-out-quart),
    transform var(--dur-base) var(--ease-out-quart),
    translate var(--dur-mid) var(--ease-out-expo);
}
.btn.is-magnet { transition-property: background-color, border-color, color, transform; }
.btn i { font-size: 18px; line-height: 1; }
.btn:active { transform: scale(.97); transition-duration: var(--dur-press); }

.btn-glass {
  position: relative;
  isolation: isolate;
  background: var(--glass-10);
  color: #fff;
  box-shadow: var(--glass-rim);
  -webkit-backdrop-filter: blur(4px) saturate(1.3);
  backdrop-filter: blur(4px) saturate(1.3);
}
.btn-glass::before { opacity: .8; transition: opacity var(--dur-fast) var(--ease-out-quart); }
.btn-dark { background: var(--btn-dark); color: #fff; }
.btn-line { background: transparent; border-color: var(--line); color: var(--ink); }
.surface-dark .btn-line { border-color: rgb(255 255 255 / .18); color: #fff; }

@media (hover: hover) and (pointer: fine) {
  .btn-glass:hover { background: var(--glass-16); }
  .btn-glass:hover::before { opacity: 1; }
  .btn-dark:hover { background: #3a3a3c; }
  .btn-line:hover { background: var(--surface-1); border-color: rgb(17 23 44 / .16); }
  .surface-dark .btn-line:hover { background: var(--glass-08); border-color: rgb(255 255 255 / .3); }
}

/* Split primary: label pill plus arrow circle, one link. Two <i> in the circle enable the arrow swap. */
.btn-split {
  --btn-h: 52px;
  display: flex;
  width: 100%;
  align-items: center;
  border-radius: var(--r-pill);
  color: var(--ink);
  font-size: var(--fs-small);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition: transform var(--dur-base) var(--ease-out-quart), translate var(--dur-mid) var(--ease-out-expo);
}
.btn-split.is-magnet { transition: transform var(--dur-base) var(--ease-out-quart); }
.btn-split__label {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--btn-h);
  padding-inline: 28px;
  border-radius: var(--r-pill);
  background: #fff;
  border: 1px solid transparent;
}
.btn-split__circle {
  position: relative;
  z-index: 1;
  flex: none;
  display: grid;
  place-items: center;
  width: var(--btn-h);
  height: var(--btn-h);
  margin-left: -6px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid transparent;
  overflow: clip;
  transition: transform var(--dur-mid) var(--ease-out-expo);
}
.btn-split__circle i {
  grid-area: 1 / 1;
  font-size: 18px;
  line-height: 1;
  transition: transform var(--dur-mid) var(--ease-out-expo);
}
.btn-split__circle i + i { transform: translateX(calc(-1 * var(--btn-h))); }
.btn-split:active { transform: scale(.97); transition-duration: var(--dur-press); }
.surface-light .btn-split__label,
.surface-light .btn-split__circle { background: var(--btn-dark); color: #fff; }
@media (min-width: 480px) {
  .btn-split { display: inline-flex; width: auto; }
  .btn-split__label { flex: none; }
}
@media (min-width: 1024px) {
  .btn, .btn-split { --btn-h: 56px; }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .btn-split:hover .btn-split__circle { transform: translateX(4px); }
  .btn-split:hover .btn-split__circle i:first-child:not(:only-child) { transform: translateX(var(--btn-h)); }
  .btn-split:hover .btn-split__circle i + i { transform: none; }
}

/* ================= glass ================= */
/* Thick-glass edge shared by the nav, chips and glass buttons, matching the hero card lens:
   specular top left, a fainter catch bottom right, soft inner light. */
:root { --glass-rim: inset 0 1px 0 rgb(255 255 255 / .2), inset 1.5px 1.5px 1px -1px rgb(255 255 255 / .5), inset -1.5px -1.5px 1px -1px rgb(255 255 255 / .16), inset 0 -8px 16px -10px rgb(0 0 0 / .28), inset 0 0 16px rgb(255 255 255 / .05); }
/* A soft light under the cursor on glass controls. header.js feeds --mx and --my. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  :is(.btn-glass, .nav:not([data-theme="light"]) .nav-auth--solid):hover {
    background-image: radial-gradient(90px circle at var(--mx, 50%) var(--my, 0%), rgb(255 255 255 / .07), transparent 70%);
  }
}
.glass {
  --glass-fill: var(--glass-09);
  position: relative;
  isolation: isolate;
  background-color: var(--glass-fill);
  border-radius: var(--r-card);
  -webkit-backdrop-filter: blur(4px) saturate(1.3);
  backdrop-filter: blur(4px) saturate(1.3);
}
/* 1px rim brightest top-left and bottom-right, the -45deg light of the Figma glass effect */
.glass::before,
.btn-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgb(255 255 255 / .55), rgb(255 255 255 / .1) 30%, rgb(255 255 255 / .04) 60%, rgb(255 255 255 / .35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .glass, .btn-glass { background-image: linear-gradient(rgb(255 255 255 / .1), rgb(255 255 255 / .1)); }
}

/* ================= chip ================= */
.chip {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding-inline: 16px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  background: var(--surface-1);
  color: var(--ink-chip);
  font-family: var(--font-display);
  font-size: var(--fs-chip);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.027em;
  white-space: nowrap;
  width: fit-content;
}
.chip--dark {
  background: var(--glass-16);
  /* 60% white fell under 4.5:1 where a grid dot sits behind a letter. */
  color: var(--on-night-74);
  box-shadow: var(--glass-rim);
  -webkit-backdrop-filter: blur(6px) saturate(1.3);
  backdrop-filter: blur(6px) saturate(1.3);
}
.chip--glow { background: var(--glass-46); color: var(--ink-chip); }
.chip--sm { height: 32px; padding-inline: 12px; font-size: var(--fs-micro); }
.chip__seg { display: inline-flex; align-items: center; }
.chip__seg + .chip__seg::before {
  content: "";
  width: 4px;
  height: 4px;
  margin-inline: 10px;
  border-radius: 50%;
  background: currentColor;
  opacity: .7;
}
/* Section eyebrows are quiet text labels; only the small tags keep a pill. */
.chip:not(.chip--sm) {
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  color: var(--ink-muted);
  font-weight: 500;
}
.chip--dark:not(.chip--sm) { color: var(--on-night-60); }

/* ================= dots ================= */
.dots {
  --dot: rgb(255 255 255 / .2);
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, var(--dot) var(--dot-r), transparent 1.4px);
  background-size: var(--dot-pitch) var(--dot-pitch);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000);
  mask-image: linear-gradient(to bottom, transparent, #000);
}
.dots--radial {
  -webkit-mask-image: radial-gradient(closest-side, #000, transparent);
  mask-image: radial-gradient(closest-side, #000, transparent);
}
.dots--flat { -webkit-mask-image: none; mask-image: none; }

/* ================= aurora ================= */
.aurora {
  --aurora-w: 200vw;
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: clip;
  pointer-events: none;
}
.aurora__layer { position: absolute; inset: -8% 0; }
.aurora__img {
  position: absolute;
  top: var(--aurora-top, 0px);
  left: 50%;
  width: var(--aurora-w);
  max-width: none;
  height: var(--aurora-h, 100%);
  margin-left: calc(var(--aurora-w) / -2);
  object-fit: fill;
  will-change: transform;
}
.aurora .dots {
  -webkit-mask-image: var(--dots-mask, linear-gradient(to bottom, rgb(0 0 0 / .25), #000 55%, #000 80%, transparent));
  mask-image: var(--dots-mask, linear-gradient(to bottom, rgb(0 0 0 / .25), #000 55%, #000 80%, transparent));
}
/* Never narrower than the viewport plus drift room: past 2400px a cap would expose the section colour at the corners. */
@media (min-width: 1024px) {
  .aurora { --aurora-w: max(min(134vw, 2400px), 100vw + 160px); }
}
@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  .aurora__img { animation: aurora-drift 36s var(--ease-sine) infinite alternate; }
}
@keyframes aurora-drift {
  from { transform: translate3d(-3%, 0, 0) scale(1); }
  to { transform: translate3d(3%, -4%, 0) scale(1.08); }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .aurora__layer {
      animation: aurora-par linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 100%;
    }
  }
}
@keyframes aurora-par {
  from { transform: translate3d(0, -6%, 0); }
  to { transform: translate3d(0, 6%, 0); }
}

/* ================= progress pill =================
   Segments sit at --k, the active index is --pa (fractional while scroll-linked).
   Position and fill are derived from --pa, so the pill animates without any width change. */
.pill {
  --n: 2;
  --pill-gap: 5px;
  position: relative;
  flex: none;
  width: calc(24px + var(--n) * 6px + (var(--n) - 1) * var(--pill-gap) + 28px);
  height: 30px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  transition:
    --pa var(--dur-mid) var(--ease-out-expo),
    --pgrow 500ms var(--ease-out-expo),
    --hl 500ms var(--ease-out-expo);
}
.pill__seg {
  --d: min(1, max(var(--k) - var(--pa), var(--pa) - var(--k)));
  --t: calc((1 - var(--d)) * var(--pgrow));
  position: absolute;
  top: 12px;
  left: 12px;
  width: 34px;
  height: 6px;
  --c: color-mix(in srgb, var(--night) calc((1 - var(--d)) * var(--hl) * 100%), var(--dot-inactive));
  transform: translateX(calc(var(--k) * (6px + var(--pill-gap)) + clamp(0, var(--k) - var(--pa), 1) * 28px * var(--pgrow) + (1 - var(--pgrow)) * 14px));
}
/* The fill is clipped on a pseudo-element: clip-path on the button itself would also clip its hit area. */
.pill__seg::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 3px;
  background: var(--c);
  clip-path: inset(0 calc((1 - var(--t)) * 28px) 0 0 round 3px);
}
/* --pa and --pgrow slide and grow the segments, so only the colour eases. */
@media (prefers-reduced-motion: reduce) {
  .pill { transition: --hl 500ms var(--ease-out-expo); }
}

/* ================= section head ================= */
.section-head {
  display: grid;
  gap: 24px;
  margin-bottom: var(--block-gap);
}
.section-head__main { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.section-head__main .t-h2 { max-width: min(16ch, 11.6em); }
.section-head__aside { max-width: 658px; }
@media (min-width: 1024px) {
  .section-head { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 20px; }
  .section-head__main { grid-column: 1 / 7; gap: 30px; }
  .section-head__aside { grid-column: 7 / 13; align-self: end; }
  .section-head--top .section-head__aside { align-self: start; padding-top: 76px; }
}

/* ================= split visual (who-is-buying fee card) ================= */
.split__visual {
  position: relative;
  order: -1;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
}
.split__visual::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--panel); }
.split__visual .dots { z-index: -1; --dot: rgb(247 249 253 / .67); -webkit-mask-image: linear-gradient(to bottom, rgb(0 0 0 / .45), #000); mask-image: linear-gradient(to bottom, rgb(0 0 0 / .45), #000); }
@container (min-width: 560px) {
  .split__visual { order: 0; flex: 1; aspect-ratio: auto; }
}
.split__visual--fee {
  --panel:
    radial-gradient(70% 55% at 8% 0%, #aeaaf0 10%, rgb(174 170 240 / 0) 100%),
    radial-gradient(70% 60% at 100% 4%, #99d7e8 10%, rgb(153 215 232 / 0) 100%),
    radial-gradient(85% 45% at 92% 100%, #e3f6f4 0%, rgb(227 246 244 / 0) 100%),
    radial-gradient(70% 40% at 20% 100%, #c6e0f2 0%, rgb(198 224 242 / 0) 100%),
    linear-gradient(180deg, #9fb9ee 0%, #8dc5e9 48%, #b4dbef 78%, #d8eff2 100%);
}

/* Card lift: shadow is a pseudo-element so only opacity animates */
.lift { position: relative; transition: transform var(--dur-base) var(--ease-out-quart); }
.lift::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  box-shadow: var(--shadow-lift);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out-quart);
  pointer-events: none;
}
.lift .lift__media { transition: transform var(--dur-reveal) var(--ease-out-expo); }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .lift:hover { transform: translateY(-4px); }
  .lift:hover::after { opacity: 1; }
  .lift:hover .lift__media { transform: scale(1.03); }
}

/* ================= stats strip ================= */
.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 16px;
  padding: 0;
  list-style: none;
}
/* Each cell spans a value row and a label row of the strip, so labels share a line even when one value wraps. */
.stats__cell {
  display: grid;
  grid-row: span 2;
  grid-template-rows: subgrid;
  row-gap: 10px;
  padding-left: 16px;
  border-left: 0.5px solid var(--hairline);
}
/* Wraps between number and unit only when it must, such as under user text spacing. */
.stats__value {
  font-size: clamp(24px, 14.5vw - 22.4px, 32px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: var(--track-sans);
  color: var(--ink-2);
}
.stats__value--text { font-size: var(--fs-title); font-weight: 400; line-height: 1.1; }
.stats__label { font-size: var(--fs-small); line-height: 1.3; color: var(--ink-body); }
@media (min-width: 480px) {
  .stats__cell { padding-left: 24px; }
  .stats__value { font-size: calc(var(--fs-stat) * .7); }
}
@media (min-width: 1024px) {
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
  .stats__value--text { font-size: var(--fs-title); }
}

/* ================= marquee ================= */
.marquee {
  --marquee-gap: 30px;
  --marquee-dot: 5px;
  display: flex;
  align-items: center;
  height: calc(var(--fs-marquee) * 2.7);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  color: #fff;
  font-size: var(--fs-marquee);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.marquee__track {
  display: flex;
  flex: none;
  align-items: center;
  gap: var(--marquee-gap);
  margin: 0;
  padding: 0 var(--marquee-gap) 0 0;
  list-style: none;
  white-space: nowrap;
  will-change: transform;
  animation: marquee var(--marquee-dur, 40s) linear infinite;
}
.marquee__track > li { display: flex; align-items: center; gap: var(--marquee-gap); }
.marquee__track > li::after {
  content: "";
  flex: none;
  width: var(--marquee-dot);
  height: var(--marquee-dot);
  border-radius: 50%;
  background: rgb(255 255 255 / .15);
}
@keyframes marquee { to { transform: translate3d(-100%, 0, 0); } }
@media (min-width: 768px) {
  .marquee { --marquee-dot: 7px; }
  .marquee__track { animation-duration: var(--marquee-dur, 56s); }
}
.marquee:not(.is-js):hover .marquee__track,
.marquee:not(.is-js):focus-within .marquee__track,
.is-paused .marquee__track,
.marquee.is-paused .marquee__track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .marquee { justify-content: center; }
  .marquee__track { animation: none; }
  .marquee__track[aria-hidden="true"] { display: none; }
}

/* ================= orbit =================
   Sizes are in cqi of the orbit box so one markup serves 1038px down to 640px.
   Bubbles sit on their ring with cos()/sin() and counter-rotate so glyphs stay upright. */
.orbit {
  --orbit-size: max(760px, 110vw);
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--orbit-size);
  aspect-ratio: 1;
  margin: calc(var(--orbit-size) / -2) 0 0 calc(var(--orbit-size) / -2);
  container-type: inline-size;
  pointer-events: none;
}
/* A band that cuts the orbit sets --orbit-edge (the cut's distance from the orbit's top and bottom). A page-colour fade
   then covers the cut so bubbles melt out instead of being sliced. A paint, not a mask: WebKit clips a mask to the box and
   the glow overhangs it. Unset, the gradient is invalid and nothing paints. */
.orbit:not(.orbit--dark)::after {
  content: "";
  position: absolute;
  inset: 0 -50vw;
  /* Eased stops: a straight ramp ends on a kink that reads as a line on the night page. */
  --fade: linear-gradient(var(--page) var(--orbit-edge),
    color-mix(in srgb, var(--page) 84.4%, transparent) calc(var(--orbit-edge) + 3%), color-mix(in srgb, var(--page) 50%, transparent) calc(var(--orbit-edge) + 6%),
    color-mix(in srgb, var(--page) 15.6%, transparent) calc(var(--orbit-edge) + 9%), transparent calc(var(--orbit-edge) + 12%) calc(88% - var(--orbit-edge)),
    color-mix(in srgb, var(--page) 15.6%, transparent) calc(91% - var(--orbit-edge)), color-mix(in srgb, var(--page) 50%, transparent) calc(94% - var(--orbit-edge)),
    color-mix(in srgb, var(--page) 84.4%, transparent) calc(97% - var(--orbit-edge)), var(--page) calc(100% - var(--orbit-edge)));
  background: var(--fade);
  pointer-events: none;
}
@media (min-width: 768px) { .orbit { --orbit-size: min(900px, 110vw); } }
@media (min-width: 1024px) { .orbit { --orbit-size: min(1038px, 72vw); } }
.orbit__glow {
  position: absolute;
  /* Wider than tall, so the cyan fills the band side to side as in the concept. */
  inset: -40% -80%;
  background: radial-gradient(closest-side,
    rgb(150 220 238 / .62) 0%,
    rgb(178 228 242 / .5) 22%,
    rgb(205 236 246 / .36) 44%,
    rgb(228 244 250 / .2) 66%,
    rgb(244 250 252 / 0) 100%);
  /* The band clips the glow, so it fades out vertically before the shortest band edge (about 26% to 74% here). */
  -webkit-mask-image: linear-gradient(transparent 29%, #000 42%, #000 58%, transparent 71%);
  mask-image: linear-gradient(transparent 29%, #000 42%, #000 58%, transparent 71%);
}
/* Copy on the glow needs a touch more ink than --ink-muted to hold 4.5:1. */
.orbit ~ * .t-sub { color: rgb(17 23 44 / .66); }
.orbit__ring {
  position: absolute;
  inset: 0;
  margin: auto;
  border-radius: 50%;
  width: var(--ring);
  height: var(--ring);
  background: radial-gradient(closest-side, rgb(255 255 255 / 0) 62%, rgb(255 255 255 / .5) 100%);
  box-shadow: inset 0 0 0 2px #fff;
}
.orbit__ring--1 { --ring: 100%; --dur: 80s; }
.orbit__ring--2 { --ring: 92.3%; --dur: 120s; background: none; box-shadow: inset 0 0 0 .88px rgb(255 255 255 / .55); }
.orbit__ring--3 { --ring: 79.6%; --dur: 120s; }
.orbit__ring--4 { --ring: 53.2%; --dur: 160s; }
.orbit__bubble {
  --size: 8cqi;
  position: absolute;
  width: var(--size);
  height: var(--size);
  left: calc(50% + cos(var(--ang)) * 50% - var(--size) / 2);
  top: calc(50% + sin(var(--ang)) * 50% - var(--size) / 2);
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: calc(var(--size) * .4);
  background:
    radial-gradient(circle at 72% 24%, rgb(255 255 255 / .95), rgb(255 255 255 / 0) 42%),
    radial-gradient(circle at 34% 72%, rgb(196 222 234 / .55), rgb(232 245 250 / .2) 70%);
  box-shadow:
    inset 0 0 18px rgb(255 255 255 / .35),
    inset -3px 4px 10px rgb(255 255 255 / .7),
    inset 4px -6px 14px rgb(30 70 100 / .07),
    0 12px 26px rgb(40 90 120 / .07);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}
.orbit__bubble i { filter: drop-shadow(0 2px 6px rgb(40 90 120 / .16)); }
/* Only the small ring bubbles blur, which keeps any orbit view within four backdrop-filter surfaces. */
.orbit__bubble--far { filter: blur(2px); }
.orbit__bubble--far, .orbit__bubble--md { -webkit-backdrop-filter: none; backdrop-filter: none; }
.orbit__bubble--md, .orbit__bubble--lg { display: none; }
/* On phones the copy covers the inner ring, so only ring 3, which clears the copy box, carries bubbles. */
@media (max-width: 767px) {
  .orbit:not(.orbit--dark) .orbit__ring--4 .orbit__bubble { display: none; }
  .orbit__ring--3 .orbit__bubble--md { display: grid; }
}
@media (min-width: 768px) { .orbit__bubble--md { display: grid; } }
@media (min-width: 1024px) { .orbit__bubble--lg { display: grid; } }

@media (prefers-reduced-motion: no-preference) {
  .orbit__ring { animation: spin var(--dur) linear infinite; }
  .orbit__ring--2, .orbit__ring--3 { animation-direction: reverse; }
  .orbit__bubble { animation: spin var(--dur) linear infinite reverse; }
  .orbit__ring--3 .orbit__bubble { animation-direction: normal; }
  html.motion .orbit[data-entry] .orbit__ring { opacity: 0; scale: .9; }
  html.motion .orbit[data-entry] .orbit__bubble { opacity: 0; scale: .6; }
  html.motion .orbit[data-entry].is-in .orbit__ring,
  html.motion .is-active .orbit[data-entry] .orbit__ring,
  html.motion .is-in .orbit[data-entry] .orbit__ring {
    opacity: 1;
    scale: 1;
    transition: opacity var(--dur-media) var(--ease-out-expo), scale var(--dur-media) var(--ease-out-expo);
  }
  html.motion .orbit[data-entry].is-in .orbit__bubble,
  html.motion .is-active .orbit[data-entry] .orbit__bubble,
  html.motion .is-in .orbit[data-entry] .orbit__bubble {
    opacity: 1;
    scale: 1;
    transition: opacity 600ms var(--ease-out-expo), scale 600ms var(--ease-out-expo);
    transition-delay: calc(500ms + var(--bi, 0) * 60ms);
  }
  .orbit .orbit__ring--4 { transition-delay: 0ms !important; }
  .orbit .orbit__ring--3 { transition-delay: 120ms !important; }
  .orbit .orbit__ring--2 { transition-delay: 240ms !important; }
  .orbit .orbit__ring--1 { transition-delay: 360ms !important; }
}
.is-paused .orbit__ring, .is-paused .orbit__bubble, .orbit.is-paused .orbit__ring, .orbit.is-paused .orbit__bubble,
.is-paused .rv-orbit__core i { animation-play-state: paused; }

/* Dark skin (Four reasons row 2) */
.orbit--dark .orbit__glow { display: none; }
.orbit--dark .orbit__ring { background: none; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .1); }
.orbit--dark .orbit__ring--4 { box-shadow: inset 0 0 0 .52px rgb(255 255 255 / .26); }
.orbit--dark .orbit__ring--2 { box-shadow: inset 0 0 0 1px rgb(255 255 255 / .05); }
.orbit--dark .orbit__bubble {
  color: rgb(255 255 255 / .42);
  background: radial-gradient(circle at 70% 25%, rgb(255 255 255 / .12), rgb(255 255 255 / .03) 60%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .08), inset -2px 3px 8px rgb(255 255 255 / .06), 0 10px 24px rgb(0 0 0 / .25);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.orbit--dark .orbit__bubble i { filter: none; }

/* ================= scrolly ================= */
/* Narrow pinned widths wrap the copy onto more lines, so the stage grows as the window shrinks (492 at 1024, 456 from 1280) to stay as tall as the tallest row.
   Short windows cap it so the pinned stage starts below the nav pill. */
.scrolly { --stage-h: min(clamp(456px, 636px - 14.06vw, 492px), 100svh - 2 * (var(--nav-h) + 32px)); position: relative; }
.scrolly__rows {
  display: grid;
  gap: calc(var(--block-gap) * 1.5);
  margin: 0;
  padding: 0;
  list-style: none;
}
.scrolly__row { display: flex; flex-direction: column; gap: 24px; }
.scrolly__text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}
.scrolly__top { display: flex; flex-direction: column; gap: 10px; }
.scrolly__top .t-body { max-width: 595px; }
.scrolly__bottom { display: flex; flex-direction: column; gap: 7px; }
.scrolly__list { display: grid; gap: 10px; padding: 0; list-style: none; }
.scrolly__list li { display: flex; gap: 10px; align-items: baseline; }
.scrolly__list i { flex: none; color: var(--ink-2); font-size: .9em; translate: 0 .1em; }
.scrolly__visual {
  position: relative;
  border-radius: var(--r-card);
  overflow: hidden;
  isolation: isolate;
}
.scrolly__visual--inline { order: -1; aspect-ratio: 10 / 7; }
.scrolly__visual > .rv { position: absolute; inset: 0; }
.scrolly__stage { display: none; }
.scrolly__end { margin-top: var(--block-gap); }
@media (min-width: 768px) {
  .scrolly__text { position: relative; padding-left: 35px; }
  .scrolly__text::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    border-left: 0.5px solid var(--hairline);
  }
}
/* Short laptop windows and landscape phones do not pin, so each row sets its own visual beside the text rather than a screen-tall one above it. */
@media (min-width: 1024px) and (height < 700px), (min-width: 640px) and (max-height: 500px) and (orientation: landscape) {
  .scrolly__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
    column-gap: clamp(24px, 3.4vw, 49px);
    align-items: center;
  }
  .scrolly__visual--inline { order: 1; }
}

@media (min-width: 1024px) and (min-height: 700px) {
  .scrolly {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
    column-gap: clamp(24px, 3.4vw, 49px);
    align-items: start;
  }
  /* Row text matches the stage height, so a row centred in the viewport lines up with the visual exactly.
     The gap is row padding, so the centre line the observer watches always falls inside a row. */
  .scrolly { --row-gap: clamp(106px, 22svh, 220px); }
  .scrolly__rows { gap: 0; }
  .scrolly__row { padding-block: calc(var(--row-gap) / 2); }
  .scrolly__row:first-child { padding-top: 0; }
  .scrolly__row:last-child { padding-bottom: 0; }
  .scrolly__row > .scrolly__visual--inline { display: none; }
  .scrolly__text { flex: 1; min-height: var(--stage-h); }
  .scrolly__row :is(.t-title-row, .t-stat, .t-body, .t-stat-label, .scrolly__list, .scrolly__list i) { transition: color var(--dur-mid) var(--ease-in-out); }
  /* Inactive rows dim by colour, not opacity, so titles and body copy keep 4.5:1 and stats 3:1. */
  .scrolly.is-live .scrolly__row:not(.is-active):not(:focus-within) :is(.t-stat, .scrolly__list i) { color: #8c8c90; }
  .scrolly.is-live .scrolly__row:not(.is-active):not(:focus-within) :is(.t-title-row, .t-body, .t-stat-label, .scrolly__list) { color: #757579; }
  .scrolly__stage > .scrolly__visual:not(.is-active) * { animation-play-state: paused; }

  .scrolly__text::after {
    content: "";
    position: absolute;
    left: -0.5px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--ink-2);
    transform-origin: top;
    transform: scaleY(0);
    transition: transform 700ms var(--ease-out-expo);
  }
  .scrolly__row.is-active .scrolly__text::after { transform: scaleY(1); }

  .scrolly__stage {
    display: grid;
    position: sticky;
    top: calc(50svh - var(--stage-h) / 2);
    height: var(--stage-h);
  }
  .scrolly__stage > .scrolly__visual {
    grid-area: 1 / 1;
    opacity: 0;
    transition: opacity 500ms var(--ease-in-out);
  }
  .scrolly__stage > .scrolly__visual.is-active {
    opacity: 1;
    transition: opacity 700ms var(--ease-out-expo) 100ms;
  }
  /* Without JS or IntersectionObserver nothing moves the stage, so the rows stack with their own visuals. */
  .scrolly:not(.is-live) { display: block; }
  .scrolly:not(.is-live) .scrolly__stage { display: none; }
  .scrolly:not(.is-live) .scrolly__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
    column-gap: clamp(24px, 3.4vw, 49px);
    align-items: center;
  }
  .scrolly:not(.is-live) .scrolly__row > .scrolly__visual--inline { display: block; order: 1; }
}
@supports (animation-timeline: view()) {
  @media (min-width: 1024px) and (min-height: 700px) and (prefers-reduced-motion: no-preference) {
    .scrolly__text::after {
      transition: none;
      animation: rule-fill linear both;
      animation-timeline: view();
      animation-range: contain 0% contain 100%;
    }
  }
}
@keyframes rule-fill { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@media (min-width: 1024px) and (min-height: 700px) and (prefers-reduced-motion: reduce) {
  .scrolly__stage > .scrolly__visual,
  .scrolly__stage > .scrolly__visual.is-active { transform: none; transition: opacity 200ms var(--ease-in-out); }
  .scrolly__text::after { transition: none; }
}

/* ================= row visuals =================
   Drawn for 654 x 456 and scaled in cqi. Choreography plays when the stage visual is .is-active
   or the inline visual is revealed (.is-in). */
.rv { container-type: inline-size; overflow: hidden; border-radius: inherit; isolation: isolate; }
.rv-laptop { background: var(--surface-2); }
.rv-laptop .dots { --dot: rgb(0 0 0 / .23); -webkit-mask-image: linear-gradient(to bottom, #000 40%, rgb(0 0 0 / .4)); mask-image: linear-gradient(to bottom, #000 40%, rgb(0 0 0 / .4)); }
.rv-laptop__device { position: absolute; left: 4.74%; bottom: 0; width: 90.52%; }
.rv-laptop__device img { width: 100%; }
.rv-laptop__device::after {
  content: "";
  position: absolute;
  left: 44.1%;
  top: 58.6%;
  width: 29.2%;
  height: 3.6%;
  border-radius: 99px;
  box-shadow: 0 0 0 2px rgb(0 229 191 / .55), 0 0 18px 4px rgb(0 229 191 / .45);
  opacity: 0;
}

.rv-orbit { background: var(--night-card); }
.rv-orbit .dots { --dot: rgb(247 249 253 / .16); }
.rv-orbit .orbit { --orbit-size: 86cqi; }
.rv-orbit .orbit__ring--1 { --ring: 172%; }
.rv-orbit .orbit__ring--2 { --ring: 128%; }
.rv-orbit .orbit__ring--3 { --ring: 100%; }
.rv-orbit .orbit__ring--4 { --ring: 57.6%; }
.rv-orbit__core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18.65cqi;
  aspect-ratio: 1;
  translate: -50% -50%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--glass-05);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .1), inset 0 1px 0 rgb(255 255 255 / .12), 0 18px 40px rgb(0 0 0 / .35);
  color: #fff;
  font-size: 6.73cqi;
}

/* One branded glow, from the bottom right corner only, so the bright screen still reads against night. */
.rv-fees { background: radial-gradient(70% 60% at 10% 100%, rgb(255 255 255 / .1), rgb(255 255 255 / 0) 70%), radial-gradient(55% 65% at 104% 104%, rgb(124 92 252 / .44), rgb(124 92 252 / 0) 72%), radial-gradient(38% 42% at 80% 108%, rgb(0 229 191 / .24), rgb(0 229 191 / 0) 72%), var(--night); }
/* The stage runs from 10:7 to square, so the device sizes by both axes. The display spans 31.1% to 98.8% of the image
   width, so left centres it in the panel; top pins its top right corner (1.02% down) 6cqh from the top. */
.rv-fees { container-type: size; --w: min(160cqh, 111cqw); }
.rv-fees__device { position: absolute; left: calc(50cqw - var(--w) * .649); top: calc(6cqh - var(--w) * .0102); width: var(--w); max-width: none; }

/* The window keeps its top left corner inside and bleeds off the right and bottom; the phone always bleeds off the bottom. */
/* Steps 2 and 3 move to lighter brand grounds, lavender then teal, each with one soft corner light. */
.rv-match { background: radial-gradient(70% 70% at 100% 100%, rgb(124 92 252 / .22), rgb(124 92 252 / 0) 70%), linear-gradient(160deg, #e6e2fb, #f4f2fd 55%, #fdfcff); }
.rv-phone { background: radial-gradient(70% 70% at 100% 100%, rgb(0 185 173 / .2), rgb(0 185 173 / 0) 70%), linear-gradient(160deg, #d6f1ed, #eaf8f3 55%, #f8fdfb); }
.rv-match, .rv-phone { container-type: size; }
/* Step 3 shows the senior team: a documentary desk photo, the advisors' faces stacked in the middle.
   The phone stays in the markup (hidden) for another view. */
.rv[hidden] { display: none; }
.rv-team { container-type: size; background: var(--night-photo-base, #2a2630); }
.rv-team__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 40%; filter: blur(10px); scale: 1.08; }
.rv-team::after { content: ""; position: absolute; inset: 0; background: rgb(0 0 0 / .22); }
.rv-team__stack { --av: clamp(68px, 19cqmin, 132px); position: absolute; z-index: 1; left: 50%; top: 50%; translate: -50% -50%; display: flex; align-items: center; width: max-content; }
.rv-team__stack img { position: relative; flex: none; width: var(--av); height: var(--av); border-radius: 50%; object-fit: cover; box-shadow: -10px 0 22px -6px rgb(0 0 0 / .45), 0 14px 28px -12px rgb(0 0 0 / .5); }
/* Each face overlaps the one before it, so the stack reads left to right with the right one on top. */
.rv-team__stack img + img { margin-left: calc(var(--av) * -.24); }
.rv-match__win { position: absolute; left: 8cqw; top: 9cqh; width: min(110cqw, 150cqh); max-width: none; overflow: hidden; container-type: inline-size; border-radius: 1.4cqw; box-shadow: 0 0 0 1px rgb(40 30 100 / .06), 0 30px 60px -24px rgb(40 30 100 / .35); }
/* One screenshot in three slices (row 1, the AI second opinion, the rest), so the opinion can open like the app's row. */
.rvm { --y: 0; --h: 26.25; display: block; position: relative; overflow: hidden; height: calc(var(--h) * 1cqw); }
.rvm img { position: absolute; left: 0; top: calc(var(--y) * -1cqw); width: 100%; max-width: none; }
.rvm--x { --y: 26.25; --h: 24.1875; }
.rvm--b { --y: 50.4375; --h: 61.25; }
/* The bezel is the owner's flat iPhone; the screen is live HTML so it stays sharp at any size. The glass, measured
   on the bezel PNG: 81px in, 70px down, 1548 x 3349 on a 1710 wide device, a 220px corner. It bleeds 1px under the
   bezel. The screen is laid out in iPhone 17 Pro Max points: one --u is 1/440 of its width. */
@font-face { font-family: "Outfit"; font-weight: 100 900; font-display: swap; src: url("../assets/fonts/outfit-variable.woff2") format("woff2"); }
.rv-phone__dev { position: absolute; left: 50%; top: 8cqh; translate: -50% 0; width: 64cqh; container-type: inline-size; filter: drop-shadow(0 24px 36px rgb(10 60 60 / .3)); }
.rv-phone__bezel { display: block; width: 100%; max-width: none; }
.rp {
  --u: calc(90.526cqw / 440);
  position: absolute; left: calc(4.737cqw - 1px); top: calc(4.094cqw - 1px);
  width: calc(90.526cqw + 2px); height: calc(195.85cqw + 2px);
  border-radius: calc(12.865cqw + 1px); overflow: hidden;
  background: #fafcff; color: #11172c; font-family: Outfit, var(--font-sans); font-size: calc(17 * var(--u)); line-height: 1.25;
}
.rp b { font-weight: 500; }
.rp small { display: block; color: #8690ad; font-size: calc(15 * var(--u)); }
/* Status bar: the Dynamic Island's centre line; time centred in the left ear, the icons in the right. */
.rp__isl { position: absolute; left: calc(157.33 * var(--u)); top: calc(14 * var(--u)); width: calc(125.33 * var(--u)); height: calc(36.67 * var(--u)); border-radius: 99px; background: #000; }
.rp__sb { position: relative; height: calc(62 * var(--u)); }
.rp__sb b, .rp__sb span { position: absolute; top: calc(32.3 * var(--u)); translate: -50% -50%; }
.rp__sb b { left: calc(80 * var(--u)); font-size: calc(20 * var(--u)); font-weight: 600; letter-spacing: -.01em; }
.rp__sb span { left: calc(361 * var(--u)); display: flex; align-items: center; gap: calc(7 * var(--u)); }
.rp__sb svg { height: calc(14 * var(--u)); fill: currentColor; }
.rp__sig { width: calc(21 * var(--u)); }
.rp__wifi { width: calc(19.25 * var(--u)); }
.rp__bat { width: calc(31.5 * var(--u)); }
.rp__nav { display: flex; justify-content: space-between; align-items: center; height: calc(52 * var(--u)); padding: 0 calc(20 * var(--u)); }
.rp__nav img { width: calc(96 * var(--u)); height: auto; }
.rp__nav svg { width: calc(26 * var(--u)); height: calc(26 * var(--u)); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.rp .rp__t { display: block; margin: calc(14 * var(--u)) calc(20 * var(--u)) calc(14 * var(--u)); font-size: calc(22 * var(--u)); font-weight: 600; letter-spacing: -.02em; }
.rp__card { display: grid; gap: calc(12 * var(--u)); margin: 0 calc(16 * var(--u)); padding: calc(20 * var(--u)); border: 1px solid #dfe2e7; border-radius: calc(16 * var(--u)); background: #fff; }
.rp__adv { display: flex; align-items: center; gap: calc(16 * var(--u)); margin-bottom: calc(6 * var(--u)); }
.rp__adv b { display: block; font-size: calc(22 * var(--u)); font-weight: 600; letter-spacing: -.01em; }
.rp__adv small { font-size: calc(17 * var(--u)); }
.rp__av { flex: none; width: calc(60 * var(--u)); aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: #d9ebe6; }
.rp__av img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rp__box { display: grid; gap: calc(3 * var(--u)); padding: calc(14 * var(--u)) calc(16 * var(--u)); border-radius: calc(12 * var(--u)); background: #f6f8fc; }
.rp__btn { display: grid; place-items: center; height: calc(50 * var(--u)); border: 1px solid #dfe2e7; border-radius: 99px; background: #fff; font-size: calc(17 * var(--u)); font-weight: 500; }
.rp__btn--p { margin-top: calc(8 * var(--u)); border-color: #00b9ad; background: #00b9ad; color: #f6f8fc; }

.rv-notify { background: var(--surface-2); isolation: isolate; }
.rv-notify::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 70% at 0% 0%, #f5b3cd 0%, rgb(245 179 205 / 0) 100%),
    radial-gradient(55% 65% at 52% 0%, #b6b6f0 0%, rgb(182 182 240 / 0) 100%),
    radial-gradient(60% 80% at 100% 10%, #9fdbe6 0%, rgb(159 219 230 / 0) 100%),
    radial-gradient(60% 55% at 100% 100%, #a8e0e8 0%, rgb(168 224 232 / 0) 100%),
    radial-gradient(70% 60% at 0% 100%, #f3eef3 0%, rgb(243 238 243 / 0) 100%),
    linear-gradient(180deg, #c8c3ef, #dfe1f3);
}
.rv-notify .dots { --dot: rgb(247 249 253 / .5); }
.rv-notify__card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 82cqi;
  translate: -50% -50%;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 3.6cqi;
  padding: 4.2cqi 4.2cqi 4.2cqi 4cqi;
  border-radius: 5.3cqi;
  background: rgb(255 255 255 / .42);
  -webkit-backdrop-filter: blur(10px) saturate(1.4);
  backdrop-filter: blur(10px) saturate(1.4);
  box-shadow: var(--shadow-notif), inset 0 0 0 1px rgb(255 255 255 / .55);
}
.rv-notify__icon { width: 11.55cqi; aspect-ratio: 1; filter: drop-shadow(0 4px 11px rgb(17 18 47 / .11)); }
.rv-notify__icon img { width: 100%; }
.rv-notify__body { display: grid; gap: 1.2cqi; font-family: var(--font-display); min-width: 0; }
.rv-notify__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.rv-notify__app { font-weight: 600; font-size: max(12px, 2.8cqi); color: #08090c; }
.rv-notify__time { font-size: max(12px, 2.47cqi); color: #5f606c; }
.rv-notify__msg { font-size: max(12px, 2.8cqi); line-height: 1.24; letter-spacing: -0.013em; color: #282934; text-wrap: balance; }

/* End marker for the sell process */
.rv-done {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 22px 12px 12px;
  border-radius: var(--r-pill);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
  font-family: var(--font-display);
  font-size: var(--fs-sub);
  letter-spacing: var(--track-lead);
  color: var(--ink);
}
.rv-done__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-brand-tight);
  background-size: 160% 160%;
  color: #fff;
  font-size: 24px;
  box-shadow: var(--shadow-icon);
}

/* choreography */
@media (prefers-reduced-motion: no-preference) {
  html.motion .rv-laptop__device { transform: translate3d(0, 24px, 0); transition: transform 900ms var(--ease-out-expo); }
  html.motion :is(.is-active, .is-in) > .rv-laptop .rv-laptop__device { transform: none; }
  html.motion :is(.is-active, .is-in) > .rv-laptop .rv-laptop__device::after { animation: pay-pulse 1200ms var(--ease-in-out) 600ms 1 both; }

  .rv-orbit__core i { animation: breathe 4s var(--ease-sine) infinite alternate; }

  html.motion :is(.rv-fees__device, .rv-match__win, .rv-phone__dev) { opacity: 0; transition: opacity 700ms var(--ease-out-expo); }
  html.motion :is(.is-active, .is-in) > .rv :is(.rv-fees__device, .rv-match__win, .rv-phone__dev) { opacity: 1; transition-delay: 150ms; }

  /* Animates in only: leaving the step resets the faces at once, out of sight under the outgoing visual. */
  html.motion .rv-team__stack img { opacity: 0; translate: 12px 0; }
  html.motion :is(.is-active, .is-in) > .rv-team .rv-team__stack img { opacity: 1; translate: none; transition: opacity 400ms var(--ease-out-quart), translate 600ms var(--ease-out-expo); transition-delay: calc(250ms + var(--k, 0) * 70ms); }
  /* The top face (right) lands first and each lands under the one before, so nothing slides over a face. */
  .rv-team__stack img:nth-child(1) { --k: 4; }
  .rv-team__stack img:nth-child(2) { --k: 3; }
  .rv-team__stack img:nth-child(3) { --k: 2; }
  .rv-team__stack img:nth-child(4) { --k: 1; }
  html.motion .rvm--x { height: 0; transition: height 900ms var(--ease-in-out); }
  html.motion :is(.is-active, .is-in) > .rv-match .rvm--x { height: calc(var(--h) * 1cqw); transition-delay: 900ms; }
  html.motion .rv-notify__card { opacity: 0; transform: translate3d(0, -24px, 0); transition: opacity 700ms var(--ease-out-expo), transform 700ms var(--ease-out-expo); }
  html.motion :is(.is-active, .is-in) > .rv-notify .rv-notify__card { opacity: 1; transform: none; transition-delay: 150ms; }
  html.motion .rv-notify__icon img { transition: rotate var(--dur-media) var(--ease-out-expo); }
  html.motion :is(.is-active, .is-in) > .rv-notify .rv-notify__icon img { rotate: 360deg; transition-delay: 250ms; }
}
@keyframes pay-pulse { 0%, 100% { opacity: 0; } 45% { opacity: .6; } }
@keyframes breathe { from { scale: 1; } to { scale: 1.06; } }

/* ================= dark card ================= */
.dcard {
  container-type: inline-size;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: var(--card-pad);
  border-radius: var(--r-card);
  background: var(--night-card-2);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.dcard .t-title { color: #fff; }
.dcard .t-body { color: var(--on-night-55); }

/* ================= matching table ================= */
/* Mirrors the buyer results table in the DealOn dashboard (MatchProgressPage, AiScore ScoreBar). */
.mtable-wrap {
  width: 100%;
  border: 1px solid var(--table-border);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 2px rgb(0 0 0 / .08), 0 18px 40px -12px rgb(0 0 0 / .45);
  container-type: inline-size;
}
.mtable {
  width: 100%;
  border-collapse: collapse;
  color: #11172c;
  font-family: Outfit, var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.mtable th, .mtable td { padding: 10px 12px; white-space: nowrap; }
.mtable th:first-child, .mtable td:first-child { text-align: left; }
.mtable th { background: #f6f8fc; color: #11172c; font-size: 13px; font-weight: 500; border-bottom: 1px solid var(--table-border); }
.mtable td { position: relative; }
.mtable tbody tr + tr td { border-top: 1px solid #eef0f4; }
.mtable__co, .mtable__sub { display: block; }
.mtable__sub { color: #8690ad; font-size: 12px; line-height: 16px; }
.mtable__num { font-weight: 500; }
.mtable__score { display: inline-flex; align-items: center; gap: 10px; }
.mtable__bar { position: relative; width: 52px; height: 6px; border-radius: 999px; background: #eef0f4; overflow: hidden; }
.mtable__bar::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #00c853; transform: scaleX(var(--v)); transform-origin: left; }
.mtable__pct { color: #8690ad; font-size: 12px; line-height: 16px; }
.mtable__pill { display: inline-block; padding: 1px 8px; border: 1px solid #bfe9cc; border-radius: 6px; background: #effaf2; color: #14833b; font-size: 12px; line-height: 18px; font-weight: 500; }
.mtable__pill--c { border-color: #b9e6e1; background: #eefaf8; color: #0f7a70; }
/* The top match carries the accent, as the selected row does in the dashboard. */
.mtable tbody tr:first-child td:first-child::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: #00c853; }
.mtable col:nth-child(1) { width: 38%; }
.mtable col:nth-child(2) { width: 26%; }
.mtable col:nth-child(3) { width: 16%; }
.mtable col:nth-child(4) { width: 20%; }
@container (max-width: 459px) {
  .mtable .mtable__opt { display: none; }
  .mtable col:nth-child(1) { width: 52%; }
  .mtable col:nth-child(3) { width: 22%; }
  .mtable col:nth-child(4) { width: 26%; }
  .mtable th, .mtable td { padding-inline: 8px; }
  .mtable th:first-child, .mtable td:first-child { padding-left: 12px; }
}
@media (prefers-reduced-motion: no-preference) {
  html.motion .mtable tbody tr { opacity: 0; transform: translate3d(-8px, 0, 0); transition: opacity 500ms var(--ease-out-expo), transform 500ms var(--ease-out-expo); transition-delay: calc(200ms + var(--ri, 0) * var(--stagger-list)); }
  html.motion .is-in .mtable tbody tr { opacity: 1; transform: none; }
  .mtable tbody tr:nth-child(2) { --ri: 1; }
  .mtable tbody tr:nth-child(3) { --ri: 2; }
  html.motion .mtable__bar::after { transform: scaleX(.6); transition: transform 1000ms var(--ease-out-expo) calc(200ms + var(--ri, 0) * 40ms); }
  html.motion .is-in .mtable__bar::after { transform: scaleX(var(--v)); }
  html.motion .mtable tbody tr:first-child td:first-child::before { transform: scaleY(0); transform-origin: top; transition: transform 800ms var(--ease-out-expo) 1300ms; }
  html.motion .is-in .mtable tbody tr:first-child td:first-child::before { transform: none; }
}

/* ================= accordion ================= */
.faq-list { border-top: 1px solid rgb(17 23 44 / .1); }
.faq-item { border-bottom: 1px solid rgb(17 23 44 / .1); }
.faq-item > h3 { margin: 0; }
.faq-q {
  display: flex;
  width: 100%;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 20px;
  text-align: left;
  font-size: var(--fs-title-row);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.005em;
  color: var(--ink-2);
}
.faq-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-1);
  font-size: 16px;
  color: var(--ink);
  transition: transform var(--dur-mid) var(--ease-out-expo), background-color var(--dur-fast) var(--ease-out-quart);
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a { overflow: hidden; transition: height 300ms var(--ease-out-expo); }
html.js .faq-item:not(.open) .faq-a { height: 0; }
.faq-a p {
  max-width: var(--measure);
  padding-bottom: 24px;
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--ink-body);
}
@media (hover: hover) and (pointer: fine) {
  .faq-q:hover .faq-icon { background: var(--surface-2); }
}

/* ================= final CTA ================= */
/* --lip-h matches the AI gate, so light meets night over the same distance as it does into AI.
   --bleed carries the aurora past the bottom edge over the footer's top padding, so there is no seam. */
.final-cta {
  --lip-h: calc(clamp(560px, 70vw, 1040px) * .3);
  --bleed: clamp(120px, 12vw, 200px);
  position: relative;
  z-index: 1;
  isolation: isolate;
  overflow-x: clip;
  padding-block: calc(var(--lip-h) + var(--section-y) * .25) calc(var(--section-y) * .6);
  text-align: center;
}
.final-cta::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  height: var(--lip-h);
  background:
    linear-gradient(transparent 72%, var(--night)),
    var(--aurora-lip, url("../assets/aurora-lower.webp")) 50% 0 / var(--lip-w) 100% no-repeat;
  pointer-events: none;
}
.final-cta__lip {
  position: absolute; top: 0; left: 50%; z-index: -2;
  width: var(--lip-w); max-width: none; height: var(--lip-h); translate: -50% 0; pointer-events: none;
}
/* aurora.js draws the glow live in the canvas, so the lip keeps only its fade to night. */
.final-cta:has(> .final-cta__lip)::before { background: linear-gradient(transparent 72%, var(--night)); }
/* Nav theme zones (markup in the page): light over the white part of the lip, dark for the rest. */
.final-cta__zone { position: absolute; inset: 0 0 auto; height: calc(var(--lip-h) * .5); pointer-events: none; }
.final-cta__zone--dark { inset: calc(var(--lip-h) * .5) 0 0; height: auto; }
/* The hero aurora rises from the bottom edge and runs on into the footer, where the mask closes it on night. */
.final-cta .aurora {
  --aurora-top: 30%;
  --aurora-h: 100%;
  bottom: calc(-1 * var(--bleed));
  /* Smoothstep stops: a linear ramp ends on a kink that reads as a line across the footer. */
  --m: linear-gradient(to bottom, transparent var(--lip-h), #000 calc(var(--lip-h) + 60px), #000 calc(100% - var(--bleed)),
    rgb(0 0 0 / .957) calc(100% - var(--bleed) * .875), rgb(0 0 0 / .844) calc(100% - var(--bleed) * .75),
    rgb(0 0 0 / .684) calc(100% - var(--bleed) * .625), rgb(0 0 0 / .5) calc(100% - var(--bleed) * .5),
    rgb(0 0 0 / .316) calc(100% - var(--bleed) * .375), rgb(0 0 0 / .156) calc(100% - var(--bleed) * .25),
    rgb(0 0 0 / .043) calc(100% - var(--bleed) * .125), transparent);
  --dots-mask: linear-gradient(to bottom, rgb(0 0 0 / .25), #000 55%, #000 calc(100% - var(--bleed) * 3),
    rgb(0 0 0 / .844) calc(100% - var(--bleed) * 2.25), rgb(0 0 0 / .5) calc(100% - var(--bleed) * 1.5),
    rgb(0 0 0 / .156) calc(100% - var(--bleed) * .75), transparent);
  -webkit-mask-image: var(--m);
  mask-image: var(--m);
}
.final-cta .aurora__layer { inset: 0; animation: none; }
.final-cta__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.final-cta .t-h2 { max-width: 14ch; margin-top: 24px; }
.final-cta__sub { max-width: var(--measure-lead); margin-top: 24px; color: var(--on-night-74); }
.final-cta__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  width: 100%;
  margin-top: 40px;
}
.final-cta__note { margin-top: 28px; font-size: var(--fs-small); color: var(--on-night-60); text-wrap: balance; }
/* Three actions only fit one row from 768. Between, a centred column avoids a two plus one wrap. */
@media (min-width: 480px) and (max-width: 767px) {
  .final-cta__actions { width: min(100%, 360px); }
  .final-cta__actions .btn-split__label { flex: 1; }
}
@media (min-width: 768px) {
  .final-cta__actions { flex-direction: row; flex-wrap: wrap; justify-content: center; width: auto; }
}

/* ================= count-up ================= */
.count { display: inline-block; font-variant-numeric: tabular-nums; }
.count__vis { display: inline-block; text-align: right; }

/* ================= sticky column =================
   For a section head beside a long column. Sticks inside its own grid row, so it releases
   at the end of the section, and the offset clears the condensed nav. */
@media (min-width: 1024px) and (min-height: 700px) {
  .sticky-col { position: sticky; top: calc(var(--nav-h) + 48px); align-self: start; }
}
