/* ============================================================================
   Per-section styling. One block per scene, in page order.
   ========================================================================== */

/* ================================================================== HERO */

.hero {
  position: relative;
  min-block-size: 100svh;
  display: grid;
  align-items: center;
  padding-block: 8rem 4rem;
  overflow: hidden;
  isolation: isolate;
}

/* WebGL aurora sits here; if Three.js never loads, the CSS glows below carry
   the whole backdrop and nothing looks broken. */
.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: -1;
  inline-size: 100%;
  block-size: 100%;
  opacity: 0;
  transition: opacity 1.2s var(--ease-out);
}

.hero__canvas.is-ready {
  opacity: 1;
}

/* The particle field is bright enough to speckle the headline. This sits
   between the canvas and the copy, fading the ground back in under the text
   while leaving the right-hand side of the field fully visible. */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(100deg, var(--bg) 4%, rgb(0 0 0 / 0) 58%),
    linear-gradient(to top, var(--bg) 1%, rgb(0 0 0 / 0) 22%);
}

@media (max-width: 980px) {

  /* Copy is centred over the field on small screens, so the wash has to be
     even rather than side-weighted. */
  .hero__scrim {
    background: radial-gradient(70% 55% at 50% 45%, var(--bg) 20%, rgb(0 0 0 / 0) 78%);
  }
}

.hero__glow--a {
  inset-block-start: -18%;
  inset-inline-start: -12%;
  inline-size: min(62vw, 780px);
  aspect-ratio: 1;
}

.hero__glow--b {
  inset-block-end: -26%;
  inset-inline-end: -14%;
  inline-size: min(58vw, 720px);
  aspect-ratio: 1;
  animation-delay: -8s;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: clamp(2.5rem, 1rem + 6vw, 5rem);
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
}

@media (max-width: 980px) {
  .hero__inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .hero__copy .lead,
  .hero__copy .eyebrow {
    margin-inline: auto;
  }

  .hero__cta,
  .hero__meta {
    justify-content: center;
  }
}

.hero__copy>*+* {
  margin-block-start: 1.5rem;
}

.hero h1 {
  font-size: var(--fs-mega);
  letter-spacing: -0.045em;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.35rem;
  font-size: var(--fs-xs);
  color: var(--ink-faint);
}

.hero__meta li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hero__meta svg {
  inline-size: 0.85rem;
  block-size: 0.85rem;
  color: var(--ok);
}

/* --- the floating icon stack (real app artwork, CSS 3D) --- */

.hero__art {
  position: relative;
  display: grid;
  place-items: center;
  inline-size: 100%;
  aspect-ratio: 1;
  max-inline-size: 460px;
}

@media (min-width: 1700px) {
  .hero__art {
    max-inline-size: 560px;
  }
}

.hero__disc {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  border: 1px solid var(--glass-line);
  background: radial-gradient(circle at 32% 28%, rgb(42 140 251 / 0.22), transparent 62%);
}

.hero__disc--outer {
  inset: 0;
  border-style: dashed;
  opacity: 0.5;
}

.hero__icon {
  position: relative;
  inline-size: min(56%, 240px);
  border-radius: 26%;
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 0.1),
    0 46px 90px -30px rgb(2 64 181 / 0.85);
}

/* Small glass chips orbiting the icon — each positioned by its own modifier. */
.hero__chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--glass-line);
  background: var(--scrim);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: var(--fs-xs);
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow);
}

.hero__chip svg {
  inline-size: 0.9rem;
  block-size: 0.9rem;
  flex: none;
}

.hero__chip--a {
  inset-block-start: 6%;
  inset-inline-end: -2%;
  color: var(--hire-lt);
}

.hero__chip--b {
  inset-block-end: 16%;
  inset-inline-start: -6%;
  color: var(--earn-lt);
}

.hero__chip--c {
  inset-block-end: 2%;
  inset-inline-end: 8%;
  color: var(--money-lt);
}

/* On narrow screens the art is centred and near-full-width, so chips hung off
   its edges would sit on (or past) the viewport edge. Pull them inside. */
@media (max-width: 640px) {
  .hero__chip {
    font-size: 0.68rem;
    padding: 0.45rem 0.7rem;
  }

  .hero__chip--a {
    inset-inline-end: 4%;
  }

  .hero__chip--b {
    inset-inline-start: 2%;
  }

  .hero__chip--c {
    inset-inline-end: 12%;
  }
}

.hero__scroll {
  position: absolute;
  inset-block-end: 1.75rem;
  inset-inline-start: 50%;
  translate: -50% 0;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.hero__scroll span:last-child {
  inline-size: 1px;
  block-size: 2.25rem;
  background: linear-gradient(var(--ink-faint), transparent);
  animation: bob 2.6s var(--ease-in-out) infinite;
}

/* ================================================================= SPLIT */

.split {
  position: relative;
}

.split__grid {
  display: grid;
  gap: clamp(1rem, 0.5rem + 1.6vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  perspective: 1600px;
}

.panel {
  position: relative;
  display: grid;
  gap: 1.35rem;
  align-content: start;
  padding: clamp(1.75rem, 1rem + 2.4vw, 3rem);
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 80% at 0% 0%, rgb(var(--accent-rgb) / 0.16), transparent 60%),
    var(--surface);
  overflow: hidden;
  transform-style: preserve-3d;
  transition:
    border-color var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out);
}

.panel:hover {
  border-color: rgb(var(--accent-rgb) / 0.5);
  box-shadow: var(--shadow-lg);
}

.panel__art {
  inline-size: clamp(4.5rem, 3rem + 5vw, 7rem);
  filter: drop-shadow(0 18px 34px rgb(0 0 0 / 0.35));
}

.panel__list {
  display: grid;
  gap: 0.75rem;
  font-size: var(--fs-sm);
  color: var(--ink-soft);
}

.panel__list li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}

.panel__list svg {
  inline-size: 1.05rem;
  block-size: 1.05rem;
  flex: none;
  margin-block-start: 0.28em;
  color: var(--accent-lt);
}

.panel__num {
  position: absolute;
  inset-block-start: -0.35em;
  inset-inline-end: 0.35em;
  font-size: 9rem;
  font-weight: 700;
  /* line-height: 1; */
  color: rgb(var(--accent-rgb) / 0.08);
  pointer-events: none;
  user-select: none;
}

/* ========================================================== FLOW (sticky) */

/* The scene is pinned with plain `position: sticky` inside a tall parent —
   no ScrollTrigger pin, no spacer element, nothing that can desync from Lenis.
   Height = one viewport to hold the sticky child + one per step of travel. */
.flow {
  position: relative;
  min-block-size: 560svh;
  /* 1 + 5 steps × ~0.92 viewport of scrub each */
}

.flow__sticky {
  position: sticky;
  inset-block-start: 0;
  min-block-size: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  /* Clears the fixed nav so the scene heading is never tucked underneath it. */
  padding-block: 5.5rem 2.5rem;
}

.flow__stage {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

/* Anchors the absolutely-positioned progress rail. */
.flow__col {
  position: relative;
}

.flow__steps {
  display: grid;
  gap: 0.5rem;
  max-inline-size: 34rem;
}

.flow__step {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 1.1rem;
  align-items: start;
  padding: 0.75rem 1.1rem 0.75rem 0.75rem;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  opacity: 0.38;
  transition:
    opacity var(--dur) var(--ease-out),
    background var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out),
    translate var(--dur) var(--ease-out);
}

.flow__step.is-on {
  opacity: 1;
  background: var(--glass);
  border-color: rgb(var(--accent-rgb) / 0.4);
  translate: 6px 0;
}

/* Only the active step shows its detail. Without this all five bodies together
   are taller than the pinned viewport, and the scene would scroll inside its
   own pin. The 0fr → 1fr grid row is the one height transition that works
   without measuring anything in JS. */
.flow__body {
  grid-column: 2;
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows var(--dur) var(--ease-out),
    opacity var(--dur) var(--ease-out);
}

.flow__body>div {
  overflow: hidden;
  min-block-size: 0;
}

.flow__step.is-on .flow__body {
  grid-template-rows: 1fr;
  opacity: 1;
}

/* Browsers without interpolable grid rows just snap — still correct, and the
   scene never overflows because inactive bodies are still 0fr. */
@supports not (grid-template-rows: 0fr) {
  .flow__body {
    display: none;
  }

  .flow__step.is-on .flow__body {
    display: block;
    opacity: 1;
  }
}

.flow__badge {
  display: grid;
  place-items: center;
  inline-size: 2.15rem;
  block-size: 2.15rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-2);
  /* Poppins, not the mono: JetBrains Mono's dotted zero reads as an 8 at this
     size, so "01" came out looking like "81". */
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
  transition:
    background var(--dur) var(--ease-out),
    color var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out);
}

.flow__step.is-on .flow__badge {
  background: var(--accent);
  border-color: transparent;
  color: #fff;
}

.flow__step h3 {
  font-size: 1.1rem;
  align-self: center;
  min-block-size: 2.15rem;
  /* matches the badge, so titles sit on its centre line */
  display: flex;
  align-items: center;
}

.flow__step p {
  margin-block-start: 0.3rem;
  font-size: var(--fs-sm);
  color: var(--ink-soft);
}

.flow__step .pill {
  margin-block-start: 0.7rem;
}

/* Progress rail down the left edge of the sticky stage. */
.flow__rail {
  position: absolute;
  inset-block: 12%;
  inset-inline-start: calc(var(--gutter) * -0.55);
  inline-size: 2px;
  border-radius: var(--r-pill);
  background: var(--line);
  overflow: hidden;
}

.flow__rail i {
  position: absolute;
  inset-block-start: 0;
  inline-size: 100%;
  block-size: 0%;
  background: linear-gradient(var(--hire), var(--earn));
  border-radius: inherit;
}

.flow__device {
  justify-self: center;
}

@media (max-width: 980px) {

  /* Pinning fights touch scroll on small screens — the scene becomes a plain
     stacked block and scroll-scenes.js skips the scrub entirely. */
  .flow {
    min-block-size: 0;
    padding-block: var(--section-y);
  }

  .flow__sticky {
    position: static;
    min-block-size: 0;
  }

  .flow__stage {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .flow__rail {
    display: none;
  }

  .flow__step {
    opacity: 1;
  }

  .flow__device {
    order: -1;
    margin-block-end: 2.5rem;
  }
}

/* ================================================== APP SCREEN MOCKUPS
   Miniature recreations of real screens, built from the app's own tokens
   (#101828 ink, #667085 muted, #E7EAEE border, 14px radius, Poppins). */

.ui {
  --ui-accent: var(--hire);
  --ui-soft: var(--hire-soft);
  display: grid;
  grid-template-rows: auto 1fr auto;
  block-size: 100%;
  background: #f7faf4;
  font-size: 10.5px;
  line-height: 1.45;
  color: #101828;
}

.ui--earn {
  --ui-accent: var(--earn);
  --ui-soft: var(--earn-soft);
  background: #f6f6fb;
}

.ui__top {
  padding: 34px 14px 10px;
  background: #fff;
  border-block-end: 1px solid #e7eaee;
}

.ui__top strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #101828;
}

.ui__top small {
  color: #667085;
  font-size: 9.5px;
}

.ui__body {
  padding: 10px 12px;
  display: grid;
  gap: 8px;
  align-content: start;
  overflow: hidden;
}

.ui__card {
  display: grid;
  gap: 6px;
  padding: 10px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e7eaee;
  box-shadow: 0 2px 8px rgb(15 23 42 / 0.06);
}

.ui__row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ui__av {
  inline-size: 30px;
  block-size: 30px;
  border-radius: 999px;
  background: var(--ui-soft);
  color: var(--ui-accent);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 11px;
  flex: none;
}

.ui__name {
  font-weight: 600;
  font-size: 11px;
}

.ui__sub {
  color: #667085;
  font-size: 9px;
}

.ui__price {
  margin-inline-start: auto;
  font-weight: 700;
  font-size: 11.5px;
  color: #101828;
  font-variant-numeric: tabular-nums;
}

.ui__chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--ui-soft);
  color: var(--ui-accent);
  font-size: 8.5px;
  font-weight: 600;
}

.ui__chip--ok {
  background: #dcfce7;
  color: #16a34a;
}

.ui__chip--warn {
  background: #fef3c7;
  color: #b45309;
}

.ui__chip--money {
  background: #ffedd5;
  color: #c2410c;
}

.ui__btn {
  display: grid;
  place-items: center;
  min-block-size: 32px;
  border-radius: 14px;
  background: var(--ui-accent);
  color: #fff;
  font-weight: 700;
  font-size: 11px;
}

.ui__btn--money {
  background: #f97316;
}

.ui__bar {
  block-size: 6px;
  border-radius: 999px;
  background: #e7eaee;
  overflow: hidden;
}

.ui__bar i {
  display: block;
  block-size: 100%;
  border-radius: inherit;
  background: var(--ui-accent);
}

.ui__tabs {
  display: flex;
  justify-content: space-around;
  padding: 8px 6px 12px;
  background: #fff;
  border-block-start: 1px solid #e7eaee;
  border-radius: 20px 20px 0 0;
}

.ui__tab {
  inline-size: 20px;
  block-size: 20px;
  border-radius: 6px;
  background: #e7eaee;
}

.ui__tab.is-on {
  background: var(--ui-accent);
}

/* map + pins, for the "find nearby" screen */
.ui__map {
  position: relative;
  block-size: 118px;
  border-radius: 14px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgb(16 24 40 / 0.055) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(rgb(16 24 40 / 0.055) 1px, transparent 1px) 0 0 / 22px 22px,
    #eef3ec;
  border: 1px solid #e7eaee;
}

.ui__pin {
  position: absolute;
  inline-size: 12px;
  block-size: 12px;
  border-radius: 999px;
  background: var(--ui-accent);
  box-shadow: 0 0 0 4px rgb(255 255 255 / 0.9);
}

.ui__me {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 50%;
  translate: -50% -50%;
  inline-size: 14px;
  block-size: 14px;
  border-radius: 999px;
  background: #2563eb;
  box-shadow: 0 0 0 5px rgb(37 99 235 / 0.2);
}

/* QR block, for the attendance screens */
.ui__qr {
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e7eaee;
}

.ui__qrbox {
  inline-size: 96px;
  block-size: 96px;
  border-radius: 10px;
  background:
    conic-gradient(from 0deg at 20% 20%, #101828 0 25%, transparent 0 100%) 0 0 / 24px 24px,
    conic-gradient(from 180deg at 70% 65%, #101828 0 25%, transparent 0 100%) 8px 8px / 18px 18px,
    #fff;
  border: 5px solid #fff;
  outline: 1px solid #e7eaee;
}

/* ====================================================== STATIC FALLBACK
   Applied to <html> by main.js whenever the motion layer will not run:
   prefers-reduced-motion, a blocked CDN, or an unsupported browser.

   This is not cosmetic. The flow and services scenes reserve 560svh and 330svh
   of scroll for their scrub — without it the reader would drag through nine
   viewports of empty page. Collapsing them back to normal blocks is what makes
   the reduced-motion version of this page actually usable. */

.no-motion .flow,
.no-motion .services__pin {
  min-block-size: 0;
}

.no-motion .flow {
  padding-block: var(--section-y);
}

.no-motion .flow__sticky,
.no-motion .services__sticky {
  position: static;
  min-block-size: 0;
  padding-block: 0;
}

.no-motion .flow__stage {
  grid-template-columns: minmax(0, 1fr) auto;
}

.no-motion .flow__step {
  opacity: 1;
}

.no-motion .rail {
  overflow-x: auto;
  scrollbar-width: thin;
}

/* Both QR faces shown side by side, since nothing will flip the card. */
.qr__card--static {
  position: static;
  inline-size: 100%;
  aspect-ratio: auto;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  transform: none;
}

.qr__card--static .qr__face,
.qr__card--static .flip__face--back {
  position: static;
  inset: auto;
  transform: none;
  backface-visibility: visible;
}

.qr__card--static .scanline {
  display: none;
}

/* ============================================================== SERVICES */

.services {
  position: relative;
}

/* Same sticky trick as .flow — the rail is translated horizontally across the
   height of this wrapper. ~330svh gives all 17 cards a comfortable pace. */
.services__pin {
  position: relative;
  min-block-size: 330svh;
}

.services__sticky {
  position: sticky;
  inset-block-start: 0;
  min-block-size: 100svh;
  display: grid;
  align-content: center;
  gap: 2rem;
  overflow: hidden;
}

@media (max-width: 980px) {
  .services__pin {
    min-block-size: 0;
  }

  .services__sticky {
    position: static;
    min-block-size: 0;
  }
}

.rail {
  position: relative;
  inline-size: 100%;
  overflow: hidden;
}

.rail__track {
  display: flex;
  gap: 1rem;
  padding-inline: var(--gutter);
  inline-size: max-content;
  will-change: transform;
}

/* Under 980px the horizontal ScrollTrigger is skipped and the rail becomes a
   native touch-scrollable strip — same markup, no pin. */
@media (max-width: 980px) {
  .rail {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .rail::-webkit-scrollbar {
    display: none;
  }

  .rail__track {
    will-change: auto;
  }

  .svc {
    scroll-snap-align: center;
  }
}

.svc {
  position: relative;
  display: grid;
  align-content: space-between;
  gap: 2.5rem;
  inline-size: clamp(11rem, 8rem + 9vw, 15rem);
  min-block-size: clamp(13rem, 10rem + 8vw, 17rem);
  padding: 1.35rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  transition:
    border-color var(--dur) var(--ease-out),
    translate var(--dur) var(--ease-out);
}

.svc:hover {
  border-color: rgb(var(--accent-rgb) / 0.5);
  translate: 0 -6px;
}

.svc__icon {
  display: grid;
  place-items: center;
  inline-size: 2.75rem;
  block-size: 2.75rem;
  border-radius: var(--r-md);
  background: rgb(var(--accent-rgb) / 0.13);
  color: var(--accent-lt);
}

.svc__icon svg {
  inline-size: 1.35rem;
  block-size: 1.35rem;
}

.svc h3 {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.svc__rate {
  margin-block-start: 0.3rem;
  font-size: var(--fs-xs);
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}

.svc__idx {
  position: absolute;
  inset-block-start: 0.9rem;
  inset-inline-end: 1rem;
  font-size: 0.68rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--ink-faint);
  opacity: 0.7;
}

.rail__hint {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-block-start: 1.75rem;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.rail__hint--narrow {
  display: none;
}

@media (max-width: 980px) {
  .rail__hint--wide {
    display: none;
  }

  .rail__hint--narrow {
    display: inline;
  }
}

/* ==================================================================== QR */

.qr__grid {
  display: grid;
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  align-items: center;
}

@media (max-width: 980px) {
  .qr__grid {
    grid-template-columns: 1fr;
  }
}

.qr__stage {
  display: grid;
  place-items: center;
  perspective: 1600px;
  min-block-size: 22rem;
}

.qr__card {
  position: relative;
  inline-size: min(80vw, 20rem);
  aspect-ratio: 5 / 6;
}

.qr__face {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 1.1rem;
  padding: 1.75rem;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.qr__face--start {
  --accent: var(--hire);
  --accent-lt: var(--hire-lt);
  --accent-rgb: 24 169 87;
}

.qr__face--end {
  --accent: var(--earn);
  --accent-lt: var(--earn-lt);
  --accent-rgb: 109 93 243;
}

.qr__code {
  inline-size: min(48vw, 11rem);
  aspect-ratio: 1;
  border-radius: var(--r-md);
  padding: 0.75rem;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line);
}

.qr__label {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-lt);
}

.qr__face h3 {
  text-align: center;
  font-size: 1.2rem;
}

.qr__face p {
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--ink-soft);
  max-inline-size: 24ch;
}

.qr__flags {
  display: grid;
  gap: 0.75rem;
  margin-block-start: 2rem;
}

.qr__flag {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.4rem 0.9rem;
  padding: 1rem 1.15rem;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface);
}

.qr__flag svg {
  inline-size: 1.15rem;
  block-size: 1.15rem;
  margin-block-start: 0.15rem;
}

.qr__flag strong {
  font-size: var(--fs-sm);
}

.qr__flag p {
  grid-column: 2;
  font-size: var(--fs-xs);
  color: var(--ink-soft);
}

.qr__flag--ok svg {
  color: var(--ok);
}

.qr__flag--warn svg {
  color: var(--warn);
}

.qr__flag--bad svg {
  color: var(--bad);
}

/* ================================================================= MONEY */

.money__grid {
  display: grid;
  gap: clamp(2rem, 1rem + 4vw, 4rem);
  grid-template-columns: minmax(0, 1fr) minmax(min(100%, 21rem), 0.8fr);
  align-items: start;
}

@media (max-width: 980px) {
  .money__grid {
    grid-template-columns: 1fr;
  }
}

/* The single fee figure. Replaces an itemised bill on purpose: the only number
   a customer needs is the platform fee, and a mock receipt invites questions
   about how the rest is composed. */
.feebox {
  position: relative;
  display: grid;
  justify-items: start;
  gap: 0.35rem;
  padding: clamp(1.75rem, 1rem + 2.4vw, 3rem);
  border-radius: var(--r-xl);
  border: 1px solid rgb(249 115 22 / 0.3);
  background:
    radial-gradient(120% 90% at 0% 0%, rgb(249 115 22 / 0.16), transparent 62%),
    var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.feebox__num {
  font-size: clamp(4rem, 2rem + 9vw, 8rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.055em;
  color: var(--money-lt);
}

.feebox__label {
  font-size: var(--fs-h4);
  font-weight: 600;
  color: var(--ink);
}

.feebox__note {
  margin-block-start: 1.1rem;
  padding-block-start: 1.1rem;
  border-block-start: 1px solid var(--line);
  font-size: var(--fs-sm);
  color: var(--ink-soft);
  max-inline-size: 42ch;
}

.money__side {
  display: grid;
  gap: 0.75rem;
}

.outcome {
  display: grid;
  gap: 0.35rem;
  padding: 1.15rem 1.3rem;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface);
  border-inline-start: 3px solid var(--outcome, var(--line-2));
}

.outcome strong {
  font-size: var(--fs-sm);
  color: var(--outcome, var(--ink));
}

.outcome p {
  font-size: var(--fs-xs);
  color: var(--ink-soft);
}

.outcome--ok {
  --outcome: var(--ok);
}

.outcome--warn {
  --outcome: var(--warn);
}

.outcome--bad {
  --outcome: var(--bad);
}

/* ================================================================== CREW */

.crew__grid {
  display: grid;
  gap: clamp(2rem, 1rem + 4vw, 4rem);
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
  align-items: center;
}

@media (max-width: 980px) {
  .crew__grid {
    grid-template-columns: 1fr;
  }
}

.constellation {
  inline-size: 100%;
  block-size: auto;
  overflow: visible;
}

/* The dash length is per-path and measured in JS (crewScene). No dasharray is
   declared here on purpose — without JS the connectors simply draw solid
   rather than staying permanently invisible. */
.constellation .link {
  stroke: rgb(var(--accent-rgb) / 0.55);
  stroke-width: 1.25;
  fill: none;
}

.constellation .node {
  transform-box: fill-box;
  transform-origin: center;
}

/* ================================================================= RADAR */

.radar {
  position: relative;
  display: grid;
  place-items: center;
  inline-size: min(84vw, 26rem);
  aspect-ratio: 1;
  margin-inline: auto;
}

.radar__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  inset: var(--inset, 0);
}

.radar__ring::after {
  content: attr(data-km);
  position: absolute;
  inset-block-start: -0.72em;
  inset-inline-start: 50%;
  translate: -50% 0;
  padding-inline: 0.45rem;
  background: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--ink-faint);
}

.radar__sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgb(var(--accent-rgb) / 0.3), transparent 22%);
  mask-image: radial-gradient(circle, transparent 12%, #000 13%);
  -webkit-mask-image: radial-gradient(circle, transparent 12%, #000 13%);
  animation: radar-sweep 5.5s linear infinite;
}

.radar__me {
  position: relative;
  z-index: 2;
  inline-size: 3.25rem;
  block-size: 3.25rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 8px rgb(var(--accent-rgb) / 0.14);
}

.radar__me svg {
  inline-size: 1.3rem;
  block-size: 1.3rem;
}

.radar__blip {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  inline-size: 2.1rem;
  block-size: 2.1rem;
  border-radius: 50%;
  border: 1px solid var(--glass-line);
  background: var(--surface);
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--ink);
  box-shadow: var(--shadow);
  /* --x / --y are percentages set inline per blip. */
  inset-inline-start: var(--x);
  inset-block-start: var(--y);
  translate: -50% -50%;
}

/* ================================================================= TRUST */

/* Shared two-column scene layout, used wherever a visual sits beside copy. */
.two-col {
  display: grid;
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr));
  align-items: center;
}


.gauges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: clamp(1rem, 0.5rem + 1.5vw, 2rem);
}

.gauge {
  display: grid;
  justify-items: center;
  gap: 0.85rem;
  text-align: center;
}

.gauge__ring {
  position: relative;
  inline-size: 8.5rem;
  block-size: 8.5rem;
}

.gauge__ring svg {
  inline-size: 100%;
  block-size: 100%;
  rotate: -90deg;
}

.gauge__track {
  fill: none;
  stroke: var(--line);
  stroke-width: 8;
}

.gauge__value {
  fill: none;
  stroke: var(--accent-lt);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 289.03;
  /* 2πr, r = 46 */
  stroke-dashoffset: 289.03;
}

.gauge__num {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  font-size: 1.6rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

.gauge h3 {
  font-size: var(--fs-h4);
}

.gauge p {
  font-size: var(--fs-xs);
  color: var(--ink-soft);
  max-inline-size: 24ch;
}

.trust__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-block-start: clamp(2.5rem, 1.5rem + 3vw, 4rem);
}

/* ============================================================== LANGUAGES */

/* A short interstitial between two heavy sections — full section rhythm on
   both sides would leave it stranded in dead space. */
.lang {
  text-align: center;
  padding-block: calc(var(--section-y) * 0.55);
}

.lang__line {
  display: inline-flex;
  align-items: baseline;
  gap: 0.15rem;
  min-block-size: 2.6em;
  /* holds the tallest script so the layout never jumps */
  font-size: var(--fs-h2);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  text-wrap: balance;
}

/* Poppins covers Latin and Devanagari but not Tamil or Malayalam; the Noto
   families are loaded alongside it and picked up here by fallback order. */
.lang__line [data-lang-out] {
  font-family: 'Poppins', 'Noto Sans Tamil', 'Noto Sans Malayalam', 'Nirmala UI', sans-serif;
}

.lang__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-block-start: 2.25rem;
}

.lang__list button {
  padding: 0.5rem 1.1rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-soft);
  transition:
    color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    background var(--dur-fast) var(--ease-out);
}

.lang__list button.is-on,
.lang__list button:hover {
  color: var(--accent-lt);
  border-color: rgb(var(--accent-rgb) / 0.5);
  background: rgb(var(--accent-rgb) / 0.1);
}

/* =================================================================== CTA */

.cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.cta__inner {
  position: relative;
  display: grid;
  gap: clamp(2rem, 1rem + 4vw, 4rem);
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: clamp(2.25rem, 1rem + 5vw, 4.5rem);
  border-radius: var(--r-2xl);
  border: 1px solid var(--glass-line);
  background:
    radial-gradient(90% 120% at 8% 0%, rgb(24 169 87 / 0.2), transparent 55%),
    radial-gradient(90% 120% at 92% 100%, rgb(109 93 243 / 0.22), transparent 55%),
    var(--surface);
  overflow: hidden;
}

@media (max-width: 900px) {
  .cta__inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .cta__inner .lead {
    margin-inline: auto;
  }

  .cta__actions {
    justify-content: center;
  }
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-block-start: 2rem;
}

.cta__splash {
  inline-size: min(38vw, 230px);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--glass-line);
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 1.15rem;
  border-radius: var(--r-md);
  border: 1px solid var(--glass-line);
  background: var(--glass);
  transition:
    border-color var(--dur-fast) var(--ease-out),
    background var(--dur-fast) var(--ease-out);
}

.store-btn:hover {
  border-color: var(--line-2);
  background: var(--glass-2);
}

.store-btn svg {
  inline-size: 1.5rem;
  block-size: 1.5rem;
  flex: none;
}

.store-btn span {
  display: grid;
  line-height: 1.2;
  text-align: start;
}

.store-btn small {
  font-size: 0.62rem;
  color: var(--ink-faint);
}

.store-btn b {
  font-size: 0.92rem;
  font-weight: 600;
}