/* Home page composition: hero, Why DealOn, buyers band, AI bento, fees. Components live in components.css. */

/* ================= hero ================= */
.hero.surface-dark {
  position: relative;
  isolation: isolate;
  overflow: clip;
  display: flex;
  flex-direction: column;
  /* Shows only below the drifting aurora, whose own tail is already white there. */
  background: linear-gradient(to bottom, var(--night) 50%, var(--page) 88%);
  --hero-pad: clamp(88px, 11vw, 160px);
  --hero-fade: 200px;
  padding-bottom: calc(var(--hero-pad) + var(--hero-fade));
}
/* The aurora box stops --hero-fade short of the hero, so the image keeps its size while its own pastel tail
   runs past the marquee to white. A mask here would cut that tail into a short wipe. */
.hero .aurora { --aurora-h: 112%; bottom: var(--hero-fade); overflow: visible; }
/* The image alone is too bright under the marquee (white text fell to 3.3:1 at the drift peak),
   so a deep teal band under it keeps 4.5:1, then lets go slowly into the tail. */
.hero .aurora::after {
  content: "";
  position: absolute;
  inset: auto 0 calc(var(--hero-pad) + var(--fs-marquee) * 1.35 - 250px);
  height: 440px;
  background: linear-gradient(rgb(6 30 38 / 0), rgb(6 30 38 / .5) 151px 198px, rgb(6 30 38 / .26) 270px, rgb(6 30 38 / .08) 360px, rgb(6 30 38 / 0));
}
.hero .aurora__layer { inset: 0; }
/* The hero ends on the page white, so the nav turns light over its bottom fade. */
.hero__zone { position: absolute; inset: 0 0 var(--hero-fade); pointer-events: none; }
.hero__zone--tail { inset: auto 0 0; height: var(--hero-fade); }
/* Under lg the hero is tall and narrow, so the band is pinned to the bottom where the marquee runs. */
@media (max-width: 1023px) {
  .hero .aurora {
    --aurora-h: 1000px;
    --aurora-top: calc(100% - 800px);
  }
  /* The narrow image is dimmer under the marquee, so a lighter band holds 4.5:1 and keeps the teal glow. */
  .hero .aurora::after { opacity: .4; }
}
/* The vertical fade, minus soft blobs at the bottom corners where the copy and cards sit (hero-dots.js mirrors it). */
.hero .aurora .dots {
  --corner: rgb(0 0 0 / .85), rgb(0 0 0 / 0) 100%;
  -webkit-mask-image: linear-gradient(to bottom, rgb(0 0 0 / .35), #000 45%, #000 70%, transparent 86%), radial-gradient(62% 80% at 0% 100%, #000 38%, rgb(0 0 0 / 0) 100%), radial-gradient(45% 55% at 100% 100%, var(--corner));
  -webkit-mask-composite: source-out, source-over, source-over;
  mask-image: linear-gradient(to bottom, rgb(0 0 0 / .35), #000 45%, #000 70%, transparent 86%), radial-gradient(62% 80% at 0% 100%, #000 38%, rgb(0 0 0 / 0) 100%), radial-gradient(45% 55% at 100% 100%, var(--corner));
  mask-composite: subtract, add, add;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding-top: calc(var(--nav-h) + max(12px, env(safe-area-inset-top)) + 64px);
}
.hero__head { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.hero__title { color: #fff; max-width: 13em; }
/* Explicit breaks give the concept's pyramid: balance cannot see across the word-mask spans. */
.hero__br { display: none; }

.hero__row { display: grid; gap: 40px; margin-top: 40px; }
.hero__copy { display: flex; flex-direction: column; align-items: flex-start; }
.hero__desc,
.hero__regions {
  max-width: 431px;
  font-size: var(--fs-body);
  line-height: 1.35;
  color: var(--on-night-74);
}
.hero__regions { margin-top: 12px; }
.hero__regions strong { color: #fff; font-weight: 500; }
.hero-region-nowrap { white-space: nowrap; }
.hero__actions { display: flex; flex-direction: column; gap: 12px; width: 100%; margin-top: 32px; }
.hero__actions .btn-split { width: 100%; }
.hero__actions .btn-split__label { flex: 1; }

/* Glass cards. B is the valuation opener, A carries the buyer database figure. */
.hero__cards { display: grid; gap: 16px; }
.hero-card { --glass-fill: var(--glass-10); color: #fff; border-radius: var(--r-card); box-shadow: var(--glass-rim); }
.hero-card::before { opacity: .8; }
.hero-card__label { font-size: 12px; line-height: 1.3; color: rgb(255 255 255 / .88); }
.hero-card--a {
  order: -1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
}
.hero-card__title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.insight-pulse {
  position: relative;
  display: inline-block;
  vertical-align: .28em;
  margin-right: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-teal);
  box-shadow: 0 0 10px rgb(0 229 191 / .6);
}
.insight-pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--brand-teal);
  opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .insight-pulse::after { animation: pulse-ring 2.4s var(--ease-out-quart) infinite; }
}
@keyframes pulse-ring { 0% { opacity: .55; transform: scale(1); } 80%, 100% { opacity: 0; transform: scale(3); } }
.hero-card__stat { display: grid; gap: 6px; }
.hero-card__fig {
  display: flex;
  align-items: flex-start;
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.05em;
}
.hero-card__fig sup { font-size: .63em; line-height: 1; margin-left: .06em; translate: 0 -.08em; }

.hero-card--b {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  min-height: 114px;
  padding: 19px;
  -webkit-tap-highlight-color: transparent;
  transition: transform var(--dur-base) var(--ease-out-quart);
}
.hero-card__go {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  transition: transform var(--dur-mid) var(--ease-out-expo);
}
.hero-card--b .hero-card__label { padding-right: 32px; }
.hero-card__foot { position: relative; display: grid; }
.hero-card__value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
  transition: transform var(--dur-mid) var(--ease-out-expo);
}
.hero-card__cta {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  color: #fff;
  transition: opacity var(--dur-mid) var(--ease-out-quart), transform var(--dur-mid) var(--ease-out-expo);
}
.hero-card--b:active { transform: scale(.98); transition-duration: var(--dur-press); }
/* With a pointer the call to action waits for hover or focus. Touch always shows it. */
@media (hover: hover) and (pointer: fine) {
  .hero-card__cta { position: absolute; left: 0; bottom: 0; margin: 0; opacity: 0; transform: translate3d(0, 6px, 0); }
  .hero-card--b:is(:hover, :focus-visible) .hero-card__value { transform: translate3d(0, -21px, 0); }
  .hero-card--b:is(:hover, :focus-visible) .hero-card__cta { opacity: 1; transform: none; }
  .hero-card--b:hover .hero-card__go { transform: translate(2px, -2px); }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: reduce) {
  .hero-card--b:is(:hover, :focus-visible) .hero-card__value { transform: none; opacity: 0; }
  .hero-card__cta { transform: none; }
}

.hero__marquee { position: relative; z-index: 1; margin-top: clamp(48px, 7.85vw, 113px); }

/* Phones: only card A and the nav keep a backdrop blur (spec 2.4 glass budget). */
@media (max-width: 767px) {
  .hero-card--b,
  .hero .btn-glass {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background-color: rgb(255 255 255 / .16);
  }
  .hero-card--a { -webkit-backdrop-filter: blur(12px) saturate(1.3); backdrop-filter: blur(12px) saturate(1.3); }
}

@media (min-width: 480px) {
  .hero__cards { gap: 20px; }
}
/* Landscape phones: the title reaches the first screen. */
@media (max-width: 1023px) and (max-height: 500px) and (orientation: landscape) {
  .hero__inner { padding-top: calc(var(--nav-h) + max(12px, env(safe-area-inset-top)) + 24px); }
}

@media (min-width: 768px) {
  .hero__head { align-items: center; text-align: center; gap: 30px; }
  .hero__br { display: inline; }
  .hero__title { margin-inline: auto; }
  .hero__row { margin-top: 48px; }
  .hero__copy { align-items: center; text-align: center; }
  .hero__desc, .hero__regions { max-width: 34em; }
  .hero__actions { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 20px; width: auto; margin-top: 36px; }
  .hero__actions .btn-split { width: auto; }
  .hero__actions .btn-split__label { flex: none; }
  .hero__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    width: 100%;
    max-width: 640px;
    margin-inline: auto;
  }
  .hero-card--a { padding: 24px; }
}

@media (min-width: 1024px) {
  /* The glow starts behind the cards as in c0. */
  .hero .aurora { --aurora-top: calc(21.5% - 170px); }
  /* The first screen holds the hero alone, actions near its bottom edge. The marquee starts below the fold. */
  .hero.surface-dark { --hero-pad: 96px; }
  .hero__inner {
    min-height: clamp(720px, 100svh, 1200px);
    padding-top: calc(var(--nav-h) + 32px + clamp(40px, 7svh, 96px));
    padding-bottom: clamp(40px, 9svh, 104px);
  }
  .hero__title { font-size: clamp(3.5rem, 2.2rem + 2.05vw, 4rem); }
  .hero__row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 40px;
    margin-top: auto;
    padding-top: 40px;
  }
  .hero__copy { align-self: start; align-items: flex-start; text-align: left; }
  .hero__marquee { margin-top: 24px; }
  .hero__desc, .hero__regions { max-width: 431px; font-size: var(--fs-sub); }
  .hero__actions { justify-content: flex-start; margin-top: 37px; }
  .hero__cards { grid-template-columns: 300px; max-width: none; margin: 0; }
  .hero-card--a { order: 0; min-height: 322px; padding: 27px; }
  .hero-card__title { font-size: 30px; }
  .hero-card__fig { font-size: 70px; }
}
/* Stacked cards stood ~200px taller than the copy here, so they sit side by side, content sized and bottom aligned as at 1280. */
/* The tighter gaps leave card B room for its label on one line from 1024. */
@media (min-width: 1024px) and (max-width: 1279px) {
  .hero__row { grid-template-columns: auto minmax(0, 1fr); gap: 24px; }
  .hero__copy { align-self: end; }
  .hero__actions { gap: 12px; }
  .hero__cards { grid-template-columns: repeat(2, minmax(0, 300px)); gap: 16px; justify-content: end; align-items: end; }
  .hero-card--b { padding: 16px; }
  .hero-card--a { container-type: inline-size; min-height: 0; padding: 24px; }
  .hero-card__title { font-size: 26px; }
  .hero-card__fig { font-size: min(70px, 27cqi); }
}

/* Short laptops tighten the gaps, never the type, so the actions stay in the first screen. */
@media (min-width: 1024px) and (max-height: 760px) {
  .hero__inner { padding-top: calc(var(--nav-h) + 32px + 24px); padding-bottom: 32px; }
  .hero__head { gap: 16px; }
  .hero__row { padding-top: 24px; }
  .hero__actions { margin-top: 24px; }
}
@media (min-width: 1024px) and (max-height: 500px) {
  .hero.surface-dark { min-height: 0; }
}

@media (min-width: 1280px) {
  .hero__row { grid-template-columns: minmax(500px, 5fr) 7fr; }
  .hero__copy { align-self: end; }
  .hero__cards {
    grid-template-columns: 300px 300px;
    justify-content: end;
    align-items: end;
  }
}
@media (min-width: 1440px) {
  .hero__cards { grid-template-columns: 319px 320px; }
}
@media (min-width: 1680px) {
  .hero__title { font-size: var(--fs-display); }
}

/* ================= stats ================= */
.stats-band.section { padding-top: clamp(8px, 2vw, 24px); }

/* ================= Why DealOn ================= */
/* Two light sections back to back would stack 2x --section-y of white. */
.stats-band + .why { padding-top: calc(var(--section-y) * .5); }
.why__aside .t-lead + .t-lead { margin-top: .9em; }
@media (min-width: 1024px) {
  /* The lead starts just under the h2's first line (chip 46, gap 30), so the stagger tracks the heading, not the viewport. */
  .why__aside { align-self: start; padding-top: calc(46px + 30px + var(--fs-h2) * .97 + 12px); }
}

/* ================= buyers band ================= */
/* The band reaches --reach into the padding of its neighbours (margin out, padding in, so the page is no longer) and sits
   above them, so the orbit runs further. It fades to transparent at its edges: a fade painted in page colour would end
   on a line in Safari, which draws the orbit layer a level off the page. Clicks pass through to the neighbours. */
.buyers {
  --reach: calc(var(--section-y) * .8);
  --edge: linear-gradient(transparent, rgb(0 0 0 / .156) calc(var(--reach) * .4), rgb(0 0 0 / .5) calc(var(--reach) * .8),
    rgb(0 0 0 / .844) calc(var(--reach) * 1.2), #000 calc(var(--reach) * 1.6) calc(100% - var(--reach) * 1.6),
    rgb(0 0 0 / .844) calc(100% - var(--reach) * 1.2), rgb(0 0 0 / .5) calc(100% - var(--reach) * .8), rgb(0 0 0 / .156) calc(100% - var(--reach) * .4), transparent);
  position: relative;
  z-index: 1;
  isolation: isolate;
  overflow: clip;
  display: grid;
  place-items: center;
  min-height: calc(560px + var(--reach) * 2);
  margin-block: calc(-1 * var(--reach));
  padding-block: calc(var(--section-y) + var(--reach));
  text-align: center;
  pointer-events: none;
  -webkit-mask-image: var(--edge);
  mask-image: var(--edge);
}
.buyers .orbit { z-index: -1; }
/* The band no longer cuts the glow early, so it can run as far as the band fades. */
.buyers .orbit__glow { -webkit-mask-image: linear-gradient(transparent 22%, #000 40%, #000 60%, transparent 78%); mask-image: linear-gradient(transparent 22%, #000 40%, #000 60%, transparent 78%); }
.buyers__inner { display: flex; flex-direction: column; align-items: center; pointer-events: auto; }
.buyers__title { max-width: 12ch; margin-top: 24px; }
.buyers__sub { max-width: 542px; margin-top: 24px; }
.buyers__cta { margin-top: 32px; min-width: 220px; }
/* From 430 the copy is as wide as the inner ring, so the ring grows past the viewport and only its arcs pass above and below. */
@media (min-width: 430px) and (max-width: 767px) {
  .buyers .orbit { --orbit-size: max(760px, (100vw + 80px) / .532); }
}
@media (min-width: 768px) {
  .buyers { height: calc(clamp(600px, 61.5vw, 886px) + var(--reach) * 2); padding-block: var(--reach); }
  .buyers__title { max-width: none; }
  .buyers__sub { margin-top: 31px; }
  .buyers__cta { margin-top: 36px; }
}

/* ================= Four reasons ================= */
.scrolly__num { font-variant-numeric: tabular-nums; color: var(--ink-muted); }
/* Pinned, the laptop shot only lives in the aria-hidden stage, so row 1 carries its description. */
.scrolly__alt { display: none; }
@media (min-width: 1024px) and (min-height: 700px) {
  .scrolly__alt { display: block; }
}

/* ================= section heads ================= */
@media (min-width: 1024px) {
  .home-head { margin-bottom: clamp(64px, 6.9vw, 100px); }
}

/* ================= AI =================
   The lower aurora enters and leaves the dark band. Each gate is a spacer the band bleeds into,
   split into a light and a dark nav zone so the nav turns where the colour does. Band height is --band. */
.ai-gate { --band: clamp(560px, 70vw, 1040px); display: grid; grid-template-rows: 88fr 12fr; height: calc(var(--band) * .3); }
/* Measured: the band only reads dark in the last 12% of the gate at every width, so a 50/50 split flipped the nav early. */
.ai-gate--out { grid-template-rows: 12fr 88fr; }
.ai {
  --band: clamp(560px, 70vw, 1040px);
  padding-top: calc(var(--band) * .3);
  padding-bottom: calc(var(--section-y) + var(--band) * .12);
}
.ai__band {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 0;
  height: calc(var(--band) * .66);
  overflow: clip;
  pointer-events: none;
}
.ai__band :is(img, canvas) {
  position: absolute;
  left: 50%;
  width: max(200vw, 100vw + 160px);
  max-width: none;
  height: var(--band);
  translate: -50% 0;
  object-fit: fill;
}
.ai__band .dots {
  --dot: rgb(255 255 255 / .16);
  -webkit-mask-image: linear-gradient(to bottom, transparent 20%, #000 60%, transparent);
  mask-image: linear-gradient(to bottom, transparent 20%, #000 60%, transparent);
}
.ai__band--in { top: calc(var(--band) * -.3); }
.ai__band--in :is(img, canvas) { top: 0; }
/* The exit mirrors the entry, so the source's own light tail is never shown. */
.ai__band--out { bottom: calc(var(--band) * -.3); }
.ai__band--out :is(img, canvas) { bottom: 0; transform: scale(-1, -1); }
.ai__band--out .dots { transform: scaleY(-1); }
@media (min-width: 1024px) {
  .ai__band :is(img, canvas) { width: max(min(134vw, 2400px), 100vw + 160px); }
}
.ai__inner { position: relative; z-index: 1; }
.ai .t-lead.ai__lead { color: #fff; }

.bento { display: grid; gap: var(--gap-card); }
.bento__card { min-height: 300px; }
.bento .t-body { max-width: 34ch; }

/* Intelligent Matching */
.match { justify-content: space-between; min-height: 480px; background: radial-gradient(110% 85% at 100% 100%, rgb(124 92 252 / .2), rgb(124 92 252 / .17) 12%, rgb(124 92 252 / .12) 26%, rgb(124 92 252 / .07) 42%, rgb(124 92 252 / .03) 60%, rgb(124 92 252 / .01) 78%, rgb(124 92 252 / 0)), radial-gradient(60% 45% at 100% 100%, rgb(255 107 157 / .12), rgb(255 107 157 / .07) 30%, rgb(255 107 157 / .025) 60%, rgb(255 107 157 / 0)), radial-gradient(80% 60% at 0% 0%, rgb(0 229 191 / .08), rgb(0 229 191 / .05) 25%, rgb(0 229 191 / .02) 55%, rgb(0 229 191 / 0)), var(--night-card-2); }
.match .t-body { color: rgb(255 255 255 / .74); }
/* match-net.js draws the field between the title and the copy and places the tokens. */
.match__wave { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.match__wave canvas { display: block; width: 100%; height: 100%; }
.match__net { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.match__net canvas { display: block; width: 100%; height: 100%; }
.match__net .match__seed, .match__top { position: absolute; left: 0; top: 0; }
.match__seed { --tok: clamp(30px, 8cqi, 44px); translate: -50% -50%; }
.match__seed::after { content: ""; width: 34%; aspect-ratio: 1; border-radius: 50%; background: #fff; }
.match__top { --tok: clamp(20px, 5cqi, 28px); display: flex; align-items: center; gap: 8px; translate: calc(var(--tok) / -2) -50%; }
.match__top.is-flip { flex-direction: row-reverse; translate: calc(var(--tok) / 2 - 100%) -50%; }
/* The light card's violet drop shadow reads as a glow on the dark card. */
.match__net .vz-tok { box-shadow: 0 0 0 max(2px, calc(var(--tok) * .085)) rgb(255 255 255 / .94), inset 0 -3px 6px -1px rgb(70 20 110 / .35); }
.match__net:not(.is-on) .vz-tok { opacity: 0; scale: .3; }
.match__net:not(.is-on) .vz-score { opacity: 0; translate: -6px 0; }
.match__net:not(.is-on) .is-flip .vz-score { translate: 6px 0; }
@media (prefers-reduced-motion: no-preference) {
  .match__seed { transition: opacity 200ms, scale 600ms cubic-bezier(.34, 1.56, .64, 1); }
  .match__top .vz-tok { transition: opacity 200ms var(--d), scale 600ms cubic-bezier(.34, 1.56, .64, 1) var(--d); }
  .match__top .vz-score { transition: opacity 400ms var(--ease-out-quart) calc(var(--d) + 150ms), translate 700ms var(--ease-out-expo) calc(var(--d) + 150ms); }
}

/* Predictive Valuation */
/* The glow follows the orb box (--ox, --oy, --ow), so a container only moves the orb. */
.pv { --ox: 57.3cqi; --oy: 5.5cqi; --ow: 64cqi; justify-content: space-between; background: var(--night-card-2); }
.pv > .t-title, .pv > .t-body { position: relative; z-index: 1; }
/* Keeps 32px of air before the orb. */
.pv > .t-body { max-width: min(34ch, var(--ox) - .1 * var(--ow) - var(--card-pad) - 32px); }
.pv__art { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
/* globe.js draws the dotted globe into this canvas. */
.pv__orb {
  position: absolute;
  left: calc(var(--ox) - .1 * var(--ow));
  top: var(--card-pad);
  width: calc(1.2 * var(--ow));
  aspect-ratio: 1;
}
/* Narrow cards put the orb in flow between title and body, so it clears a title of any length and keeps the top padding.
   It hangs off the right edge, where the card clips it. */
@container (max-width: 459px) {
  .pv__art { --ow: min(80cqi, 280px); position: relative; inset: auto; order: 1; flex: none; height: var(--ow); margin: 4px calc(-1 * var(--card-pad)) auto 0; }
  .pv__orb { left: calc(100cqi + var(--card-pad) - .7 * var(--ow)); top: 0; width: var(--ow); }
  .pv > .t-body { order: 2; max-width: none; }
}

/* Deal Velocity Optimiser */
/* A row of equal stage cards steps through a fixed slot on the text column, under the day figure. vel.js moves the
   track and sets --vel-a (reached) and --vel-dim. The defaults are the signed frame for reduced motion and no-JS. */
.vel { background: var(--night-card-2); }
.vel > .t-body { max-width: none; margin-bottom: 20px; }
/* Whole cards fill the text column with equal gaps. Neighbours may peek into the card padding and slide under its
   rounded border. 100cqi is the column. */
.vel__stage {
  --vel-n: 2;
  --vel-gap: 16px;
  --vel-tw: calc((100cqi - (var(--vel-n) - 1) * var(--vel-gap)) / var(--vel-n));
  --vel-pitch: calc(var(--vel-tw) + var(--vel-gap));
  flex: none;
  margin: 0 calc(-1 * var(--card-pad));
}
@container (max-width: 279px) { .vel__stage { --vel-n: 1; } }
/* The card's anchor figure, set like the hero card's 100,000+. */
.vel__day {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: auto 0 0;
  color: var(--on-night-55);
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
}
.vel__day b {
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(40px, 11.5cqi, 72px);
  font-weight: 300;
  line-height: .9;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}
.vel__track {
  display: flex;
  gap: var(--vel-gap);
  margin: 0;
  padding: 0 var(--card-pad);
  list-style: none;
  transform: translateX(calc(var(--vel-pitch) * -7));
}
.vel__tile {
  --vel-a: 1; --vel-dim: 1;
  position: relative;
  display: flex;
  flex: none;
  align-items: center;
  gap: 12px;
  width: var(--vel-tw);
  min-height: clamp(64px, 12.5cqi, 84px);
  padding: 10px 14px 10px 12px;
  border-radius: 16px;
  background: linear-gradient(160deg, rgb(255 255 255 / .1), rgb(255 255 255 / .03)) #2d2b2e;
  box-shadow: var(--glass-rim), 0 10px 24px -12px rgb(0 0 0 / .6);
}
.vel__tile::before, .vel__tile::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
.vel__tile::before {
  padding: 1px;
  background: linear-gradient(135deg, rgb(255 255 255 / .4), rgb(255 255 255 / .08) 30%, rgb(255 255 255 / .03) 60%, rgb(255 255 255 / .22));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
/* The focus highlight: a brand-gradient rim over a faint tint, faded in by opacity alone. */
.vel__tile::after {
  border: 1.5px solid transparent;
  background: linear-gradient(120deg, rgb(0 229 191 / .12), rgb(124 92 252 / .16)) padding-box, linear-gradient(#302e33, #2a282c) padding-box, linear-gradient(120deg, #00e5bf, #7c5cfc) border-box;
  opacity: var(--vel-a);
}
.vel__ico {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  flex: none;
  width: clamp(34px, 6.4cqi, 42px);
  aspect-ratio: 1;
  border-radius: 11px;
  color: #fff;
  font-size: clamp(18px, 3.4cqi, 22px);
  opacity: var(--vel-dim);
}
/* The chip and its lit gradient give way to the round check badge as Signing turns into SPA signed (--vel-f). */
.vel__ico::before, .vel__ico::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.vel__ico::before { background: rgb(255 255 255 / .08); opacity: calc(1 - var(--vel-f, 0)); }
.vel__ico::after { background: linear-gradient(135deg, #00e5bf, #7c5cfc); opacity: calc(var(--vel-a) * (1 - var(--vel-f, 0))); }
.vel__ico i { position: relative; z-index: 1; }
.vel__badge { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; border-radius: 50%; background: rgb(255 255 255 / .22); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .4); }
/* SPA signed fills the whole card with the brand gradient, above the dark lit layer, so it is the one filled card. */
.vel__fill {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background: linear-gradient(120deg, var(--brand-teal), var(--brand-violet) 55%, var(--brand-pink));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .3);
  opacity: var(--vel-f);
}
.vel__tile--end small .vel__then { color: rgb(255 255 255 / .88); }
.vel__badge svg { width: 80%; height: 80%; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.vel__tile--end { --vel-f: 1; }
.vel__now { opacity: calc(1 - var(--vel-f)); }
.vel__then { opacity: var(--vel-f); }
.vel__txt b, .vel__txt small { display: grid; }
.vel__txt b > *, .vel__txt small > * { grid-area: 1 / 1; }
.vel__txt { position: relative; z-index: 1; display: grid; min-width: 0; opacity: var(--vel-dim); white-space: nowrap; }
.vel__txt b { color: #fff; font-size: clamp(14px, 2.6cqi, 16px); font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
.vel__txt small { color: var(--on-night-60); font-size: 12px; line-height: 16px; white-space: normal; }
/* Where a card is too narrow for icon and label side by side, the icon stacks on top and the detail may wrap. */
@container (min-width: 280px) and (max-width: 379px) {
  .vel__tile { flex-direction: column; align-items: flex-start; gap: 10px; padding: 12px; }
  .vel__txt { white-space: normal; }
  .vel__txt b { font-size: 14px; }
}

@media (prefers-reduced-motion: no-preference) {
  html.js .pv__orb { opacity: 0; scale: .92; transition: opacity var(--dur-media) var(--ease-out-expo) 200ms, scale var(--dur-media) var(--ease-out-expo) 200ms; }
  html.js .is-in .pv__orb { opacity: 1; scale: 1; }
}

@media (max-width: 767px) { .vel { min-height: 340px; } }
@media (min-width: 768px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .match { grid-column: 1 / -1; min-height: 520px; }
  .pv, .vel { min-height: 340px; }
}
@media (min-width: 1024px) {
  .bento {
    column-gap: 24px;
    row-gap: 20px;
    grid-template-rows: repeat(2, minmax(clamp(300px, 25.4vw, 366px), 1fr));
  }
  .match { grid-column: 1; grid-row: 1 / span 2; min-height: 0; }
  .pv, .vel { min-height: 0; }
}

/* ================= fees ================= */
/* Five live blurs in the orbit band otherwise: the small heartbeat bubble reads the same without its own. */
.buyers .orbit__bubble--md { -webkit-backdrop-filter: none; backdrop-filter: none; }
.fees__wrap { display: grid; gap: var(--block-gap); }
@media (min-width: 768px) { .fees__wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 6vw, 120px); } }
/* On the section head's 12 columns, so the panel starts under the lead above it. */
@media (min-width: 1024px) {
  .fees__wrap { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 20px; }
  .fees__text { grid-column: 1 / 6; }
  .fees__field { grid-column: 7 / 13; }
}
.fees__text { display: grid; gap: 16px; justify-items: start; align-content: center; }
.fees__text .t-body { max-width: 46ch; }
.fees__text strong { color: var(--ink-2); font-weight: 600; }
.fees__switch {
  position: relative;
  display: inline-flex;
  margin-top: 16px;
  padding: 4px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
}
/* Without fees.js the buttons would do nothing, and the readout already shows the DealOn figure. */
.fees__switch:not(.is-live) { display: none; }
.fees__switch::before {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: var(--w, 0px);
  border-radius: var(--r-pill);
  background: #fff;
  box-shadow: inset 0 0 0 1px rgb(17 23 44 / .5), 0 1px 2px rgb(17 23 44 / .08), 0 4px 14px rgb(17 23 44 / .08);
  transform: translateX(var(--x, 0px));
  transition: transform 480ms var(--ease-out-expo), width 480ms var(--ease-out-expo);
}
.fees__switch button {
  position: relative;
  min-height: 44px;
  padding: 10px clamp(14px, 3.4vw, 20px);
  border-radius: var(--r-pill);
  font-size: var(--fs-small);
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink-muted-strong);
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease-out-quart), transform var(--dur-press) var(--ease-out-quart);
}
.fees__switch button[aria-pressed="true"] { color: var(--ink); }
.fees__switch button:active { transform: scale(.96); }
.fees__switch button:focus-visible { outline-offset: 1px; }
@media (hover: hover) and (pointer: fine) { .fees__switch button:hover { color: var(--ink); } }
.fees__readout { display: grid; gap: 8px; margin-top: 8px; }
.fees__num {
  font-family: var(--font-display);
  font-size: var(--fs-stat);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.fees__cap { max-width: 32ch; font-size: var(--fs-body); line-height: 1.35; color: var(--ink-body); }

.fees__field { width: 100%; max-width: 520px; margin: 0; padding: var(--card-pad); border-radius: var(--r-card); background: var(--surface-1); }
@media (min-width: 768px) { .fees__field { max-width: none; } }
.fees__cells { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: clamp(6px, 1vw, 14px); }
.fees__cells span {
  aspect-ratio: 1;
  border-radius: 50%;
  background: #e6e4ea;
  transform: scale(.84);
  transition: background-color 360ms var(--ease-out-quart), transform 560ms cubic-bezier(.34, 1.56, .64, 1);
  /* --d is row plus column, so the cost floods out from the DealOn dot and drains back into it. */
  transition-delay: calc((18 - var(--d)) * 14ms);
}
[data-mode="typical"] .fees__cells span { background: #3d3a52; transform: none; transition-delay: calc(var(--d) * 26ms); }
.fees__cells span:first-child { position: relative; background: var(--gradient-brand-light); transform: none; box-shadow: 0 6px 18px rgb(124 92 252 / .32); }
[data-mode="typical"] .fees__cells span:first-child { background: #3d3a52; box-shadow: none; }
.fees__cells span:first-child::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1.5px solid rgb(124 92 252 / .45);
  transition: opacity var(--dur-base) var(--ease-out-quart);
}
[data-mode="typical"] .fees__cells span:first-child::after { opacity: 0; animation: none; }
@media (prefers-reduced-motion: no-preference) {
  .fees__cells span:first-child::after { animation: fees-ping 2.4s var(--ease-out-quart) infinite; }
}
@keyframes fees-ping { from { transform: scale(.75); opacity: 1; } 70%, to { transform: scale(1.7); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .fees__cells span, [data-mode="typical"] .fees__cells span { transition: background-color 200ms linear; transform: none; }
  .fees__switch::before { transition: none; }
}

/* hero-glass.js draws the refracting lens itself, so the CSS backdrop would only cost a second blur. */
.hero-card.is-lens { -webkit-backdrop-filter: none; backdrop-filter: none; background: none; }
.hero-card__glass { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; border-radius: inherit; pointer-events: none; }
/* Card B gives under a press and springs back, and the lens redraws through the squish. */
@media (prefers-reduced-motion: no-preference) {
  .hero-card--b { transition: transform 700ms linear(0, .25 7%, .86 20%, 1.08 30%, 1.11 35%, 1.04 47%, .98 58%, 1.004 75%, 1); }
  .hero-card--b:active { transform: scale(.965, .95); transition: transform 140ms var(--ease-out-quart); }
}
