/* ==========================================================================
   Sections, in page order. Pointer-driven values (--mx, --my) are set on each
   [data-scope] element by interactions.js and stay 0 for touch, keyboard and
   reduced motion, so every layout below is complete without them.
   ========================================================================== */

/* ---- Hero ------------------------------------------------------------------- */

.hero {
  position: relative;
  padding: calc(var(--header-h) + 12px + clamp(28px, 4vw, 56px)) 0 clamp(16px, 2vw, 32px);
}

.hero__inner {
  display: grid;
  gap: 28px 40px;
  align-items: start;
}

/* Two lines that each fit on one row ("A way to charge." is about 7.3em wide) */
.hero__line {
  display: block;
}

.hero__lead {
  max-width: 31em;
}

.hero .search {
  margin-top: 32px;
}

.hero__visual {
  margin-top: 12px;
}

.hero__host {
  margin-top: 20px;
  color: var(--ink-3);
  font-size: var(--fs-small);
}

.hero__stage {
  position: relative;
  perspective: 1600px;
}

.map {
  position: relative;
  height: 600px;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--map-land);
  box-shadow: var(--shadow-3), inset 0 0 0 1px rgba(11, 33, 52, 0.06);
  container-type: size;
  transform: rotateY(calc(var(--mx, 0) * 6deg)) rotateX(calc(var(--my, 0) * -5deg));
  touch-action: manipulation;
  cursor: crosshair;
}

.map__layer {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100cqw, 113.52cqh); /* viewBox is 840 x 740 */
  aspect-ratio: 840 / 740;
  transform: translate(-50%, -50%);
}

.map__base {
  width: 100%;
  height: 100%;
}

.map__land { fill: var(--map-land); }
.map__streets { opacity: 0.85; }
#map-streets path { fill: none; stroke: var(--map-street); stroke-width: 2.2; }
.map__water { fill: var(--map-water); }
.map__park { fill: var(--map-park); }
.map__airport { fill: var(--map-airport); }

.map__river {
  fill: none;
  stroke: var(--map-water);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.map__road {
  fill: none;
  stroke: var(--map-road);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.map__road--major {
  stroke: var(--map-major);
  stroke-width: 8;
}

.map__labels text {
  fill: var(--map-label);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  text-anchor: middle;
  paint-order: stroke;
  stroke: rgba(231, 237, 242, 0.92);
  stroke-width: 4px;
  stroke-linejoin: round;
}

.map__labels .is-city {
  fill: var(--ink);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.map__labels .is-sea {
  fill: #4F79A8;
  stroke: none;
  font-size: 14px;
  letter-spacing: 0.3em;
}

/* Pins */

.map__pins {
  position: absolute;
  inset: 0;
}

.pin {
  --pin-c: var(--electric);
  --ps: 1;
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 1;
  display: flex;
  align-items: center;
  height: 28px;
  padding: 0 6px;
  border-radius: var(--r-chip);
  background: var(--pin-c);
  color: #fff;
  box-shadow: 0 0 0 2px #fff, 0 6px 12px -6px rgba(11, 33, 52, 0.7);
  transform: translate(-50%, -50%) scale(var(--ps));
  transition: transform var(--medium) var(--ease), opacity var(--medium) var(--ease),
    box-shadow var(--medium) var(--ease);
}

.pin .icon {
  width: 16px;
  height: 16px;
  stroke-width: 2.2;
}

.pin__kw {
  max-width: 0;
  overflow: hidden;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  padding-top: 2px;
  transition: max-width var(--medium) var(--ease), padding var(--medium) var(--ease);
}

.pin--fast { --pin-c: var(--current); }
.pin--flash { --pin-c: var(--flash); color: var(--ink); }

.pin.is-in-use::after {
  content: "";
  position: absolute;
  top: -4px;
  right: -4px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 2px #fff;
}

.pin.is-unavailable {
  background: #fff;
  color: var(--ink-3);
  box-shadow: inset 0 0 0 1.5px var(--muted-pin), 0 6px 12px -8px rgba(11, 33, 52, 0.6);
}

.map.has-radar .pin {
  opacity: 0.5;
}

.map.has-radar .pin.is-near {
  --ps: 1.1;
  z-index: 2;
  opacity: 1;
}

.pin.is-nearest .pin__kw {
  max-width: 64px;
  padding: 2px 3px 0 4px;
}

.map.has-radar .pin.is-nearest,
.map .pin.is-nearest {
  --ps: 1.22;
  z-index: 3;
  opacity: 1;
  box-shadow: 0 0 0 2px #fff, 0 0 0 7px color-mix(in srgb, var(--pin-c) 38%, transparent),
    0 10px 20px -8px rgba(11, 33, 52, 0.7);
}

.map.is-intro .pin {
  animation: pin-in 520ms var(--ease) both;
  animation-delay: calc(var(--i) * 45ms + 150ms);
}

@keyframes pin-in {
  from {
    opacity: 0;
    transform: translate(-50%, -20%) scale(0.3);
  }
}

/* Search radius (lives on the map, so it tilts with it) */

.radar {
  --r: 80px;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--medium) var(--ease);
}

.map.has-radar .radar {
  opacity: 1;
}

.radar__ring {
  position: absolute;
  top: calc(-1 * var(--r));
  left: calc(-1 * var(--r));
  width: calc(var(--r) * 2);
  height: calc(var(--r) * 2);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.06) 0%, rgba(37, 99, 235, 0.14) 62%, rgba(37, 99, 235, 0.22) 100%);
  box-shadow: inset 0 0 0 2px rgba(37, 99, 235, 0.6);
}

.radar__dot {
  position: absolute;
  top: -8px;
  left: -8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--electric);
  box-shadow: 0 0 0 4px #fff, 0 6px 14px rgba(11, 33, 52, 0.45);
}

.radar__label {
  position: absolute;
  top: calc(var(--r) + 8px);
  left: 0;
  padding: 6px 10px 4px;
  border-radius: var(--r-chip);
  background: rgba(255, 255, 255, 0.92);
  color: var(--electric-hover);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  transform: translateX(-50%);
}

/* Map furniture */

.map__tag {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 5;
}

.map__legend {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  max-width: calc(100% - 32px);
  padding: 10px 14px 8px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-1);
  color: var(--ink-2);
  font-size: var(--fs-tiny);
  font-weight: 700;
}

.map__legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.map__legend .icon {
  width: 15px;
  height: 15px;
  margin-top: -2px;
}

/* Nearest-charger card */

.near-card {
  position: absolute;
  z-index: 6;
  width: 248px;
  padding: 16px 16px 14px;
  border-radius: var(--r-md);
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-3);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--medium) var(--ease);
}

.near-card.is-visible {
  opacity: 1;
}

.near-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 700;
}

.near-card__title {
  margin-top: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.near-card__kind {
  color: var(--ink-3);
  font-size: var(--fs-tiny);
  font-weight: 600;
}

.near-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.near-card__facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.near-card__facts dt {
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 600;
}

.near-card__facts dd {
  font-size: var(--fs-small);
  font-weight: 800;
}

.near-card__status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: var(--fs-tiny);
  font-weight: 700;
}

.near-card__status .dot {
  background: #16A34A;
}

.near-card[data-status="in-use"] .near-card__status .dot { background: var(--amber); }
.near-card[data-status="unavailable"] .near-card__status .dot { background: var(--muted-pin); }

.near-card.is-empty .near-card__body {
  display: none;
}

.near-card__empty {
  display: none;
  margin-top: 8px;
  font-size: var(--fs-small);
  font-weight: 700;
}

.near-card.is-empty .near-card__empty {
  display: block;
}

.hero__hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--ink-3);
  font-size: var(--fs-tiny);
  font-weight: 600;
}

.hero__hint .icon {
  width: 16px;
  height: 16px;
  margin-top: -2px;
}

.hint-touch {
  display: none;
}

@media (hover: none), (pointer: coarse) {
  .hint-mouse { display: none; }
  .hint-touch { display: inline; }
}

/* Small screens: the card sits on the map like the app's bottom sheet */
@media (max-width: 1079px) {
  .map {
    height: clamp(440px, 118vw, 600px);
  }

  .near-card {
    top: auto !important;
    left: 12px !important;
    right: 12px;
    bottom: 12px;
    width: auto;
    padding: 14px 16px 12px;
    transform: none !important;
  }

  .near-card__top {
    position: absolute;
    top: 12px;
    right: 14px;
  }

  .near-card__top [data-f="count"],
  .near-card__status {
    display: none;
  }

  .near-card__title {
    margin-top: 0;
    padding-right: 84px;
    font-size: 1.125rem;
  }

  .near-card__chips {
    margin-top: 8px;
  }

  .near-card__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 20px;
    margin-top: 10px;
    padding-top: 10px;
  }

  .near-card__facts div {
    display: flex;
    align-items: baseline;
    gap: 6px;
  }

  .near-card__empty {
    margin-top: 0;
    padding-right: 84px;
  }

  .map__legend {
    top: 14px;
    right: 14px;
    bottom: auto;
    left: auto;
    flex-wrap: nowrap;
    padding: 8px 12px 6px;
  }

  .map__legend .legend-kind {
    display: none !important;
  }
}

@media (max-width: 559px) {
  /* The card carries the "Example" label here, so the map tag can go */
  .map__tag {
    display: none;
  }

  .map__legend {
    left: 14px;
    right: auto;
  }
}

@media (min-width: 1080px) {
  .hero__inner {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-areas:
      "title title"
      "copy visual";
    column-gap: 56px;
    row-gap: 36px;
  }

  .hero__title {
    grid-area: title;
  }

  /* The second line steps across to sit above the map */
  .hero__line + .hero__line {
    padding-left: calc((100% - 56px) * 5 / 12 + 56px);
  }

  .hero__copy {
    grid-area: copy;
    padding-top: 8px;
  }

  .hero__visual {
    grid-area: visual;
    margin-top: 0;
  }

  .map {
    height: clamp(460px, calc(100svh - 360px), 620px);
  }

  .near-card {
    top: 0;
    left: 0;
  }
}

/* ---- Section headings ------------------------------------------------------- */

.section-head {
  display: grid;
  gap: 20px;
  max-width: 760px;
}

/* ---- Drivers: steps and phone ---------------------------------------------- */

.drivers__grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

.drivers .lead {
  margin-top: 20px;
}

.steps {
  display: grid;
  gap: 6px;
  margin-top: 36px;
}

.step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  width: 100%;
  padding: 18px 20px 16px 16px;
  border: 0;
  border-radius: var(--r-md);
  background: transparent;
  text-align: left;
  transition: background-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}

.step:hover {
  background: rgba(255, 255, 255, 0.7);
}

.step[aria-pressed="true"] {
  background: #fff;
  box-shadow: var(--shadow-1);
}

.step__num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding-top: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 800;
  transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease);
}

.step[aria-pressed="true"] .step__num {
  background: var(--electric);
  color: #fff;
  box-shadow: none;
}

.step__title {
  display: block;
  margin-top: 2px;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.step__text {
  display: block;
  margin-top: 4px;
  color: var(--ink-3);
  font-size: 1rem;
  line-height: 1.5;
}

.step[aria-pressed="true"] .step__text {
  color: var(--ink-2);
}

.drivers__stage {
  --glow: var(--electric-tint);
  position: relative;
  display: grid;
  place-items: center;
  padding: 24px 0 8px;
  container-type: inline-size;
}

.drivers__stage[data-active="charge"] { --glow: var(--flash-tint); }
.drivers__stage[data-active="pay"] { --glow: #E3F4E1; }

/* Phone on the left, notes in a column beside it. The notes only touch the
   phone's frame, so they never cover the app screen. */
.phone-group {
  position: relative;
  display: grid;
  grid-template-columns: 300px minmax(0, 236px);
  perspective: 1400px;
}

.drivers__glow {
  position: absolute;
  top: 50%;
  left: 150px; /* centre of the phone */
  width: min(560px, 120cqw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow) 0%, rgba(243, 246, 248, 0) 68%);
  transform: translate(-50%, -50%);
  transition: background 600ms var(--ease);
  pointer-events: none;
}

.phone-group .phone {
  transform: rotateY(calc(var(--mx, 0) * 14deg)) rotateX(calc(var(--my, 0) * -10deg));
}

.phone-notes {
  position: relative;
  z-index: 2;
  margin-left: -6px; /* overlaps the 10px frame, not the screen */
}

.note-slot {
  position: absolute;
  left: 0;
  display: grid;
  max-width: 100%;
}

.note-slot--a { top: 12%; }
.note-slot--b { top: 43%; left: 28px; max-width: calc(100% - 28px); }
.note-slot--c { top: 72%; left: 12px; max-width: calc(100% - 12px); }

.note-slot .float-chip {
  position: relative;
  grid-area: 1 / 1;
  justify-self: start;
  align-self: center;
  white-space: normal;
  opacity: 0;
  transform: translateY(10px) scale(0.96);
  transition: opacity var(--medium) var(--ease), transform var(--medium) var(--ease);
}

.drivers__stage[data-active="explore"] .float-chip[data-for="explore"],
.drivers__stage[data-active="book"] .float-chip[data-for="book"],
.drivers__stage[data-active="charge"] .float-chip[data-for="charge"],
.drivers__stage[data-active="pay"] .float-chip[data-for="pay"] {
  opacity: 1;
  transform: none;
}

/* Not enough room beside the phone: show the phone on its own */
@container (max-width: 499px) {
  .phone-group {
    grid-template-columns: 300px;
  }

  .phone-notes {
    display: none;
  }
}

.stage-note {
  position: relative;
  margin-top: 28px;
  max-width: 30em;
  margin-inline: auto;
  color: var(--ink-3);
  font-size: var(--fs-tiny);
  text-align: center;
}

@media (min-width: 1024px) {
  .drivers__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 64px;
  }
}

/* App screens inside the phone (illustrative, hidden from screen readers) */

.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 46px 14px 14px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 320ms var(--ease), transform 320ms var(--ease), visibility 0s 320ms;
}

[data-active="explore"] .screen--explore,
[data-active="book"] .screen--book,
[data-active="charge"] .screen--charge,
[data-active="pay"] .screen--pay {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}

.app-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.app-bar .icon {
  width: 18px;
  height: 18px;
}

.app-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  padding: 4px 8px 2px;
  border-radius: var(--r-chip);
  background: var(--flash-tint);
  color: var(--flash-ink);
  font-size: 10px;
  font-weight: 800;
}

.app-live .dot {
  width: 6px;
  height: 6px;
  background: #65A30D;
}

.app-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 2px 12px 0;
  border-radius: var(--r-chip);
  background: #fff;
  box-shadow: var(--shadow-1);
  color: var(--ink-3);
  font-weight: 600;
}

.app-search .icon {
  width: 15px;
  height: 15px;
  color: var(--electric);
}

.app-chips {
  display: flex;
  gap: 5px;
}

.app-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 2px 9px 0;
  border-radius: var(--r-chip);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
}

.app-chip .dot {
  width: 7px;
  height: 7px;
}

.app-chip.is-on {
  background: var(--ink);
  color: #fff;
  box-shadow: none;
}

.app-map {
  position: relative;
  flex: none;
  aspect-ratio: 260 / 300; /* matches its viewBox, so pins line up */
  overflow: hidden;
  border-radius: 18px;
  background: var(--map-land);
}

.app-map svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.app-pin {
  position: absolute;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--electric);
  color: #fff;
  box-shadow: 0 0 0 2px #fff, 0 4px 8px -4px rgba(11, 33, 52, 0.6);
  transform: translate(-50%, -50%);
}

.app-pin .icon {
  width: 12px;
  height: 12px;
  stroke-width: 2.4;
}

.app-pin--flash {
  background: var(--flash);
  color: var(--ink);
}

.app-pin--fast {
  background: var(--current);
}

.app-pin.is-selected {
  width: 30px;
  height: 30px;
  box-shadow: 0 0 0 2px #fff, 0 0 0 6px rgba(163, 230, 53, 0.45), 0 6px 12px -4px rgba(11, 33, 52, 0.6);
}

.app-me {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--electric);
  box-shadow: 0 0 0 3px #fff, 0 0 0 12px rgba(37, 99, 235, 0.18);
  transform: translate(-50%, -50%);
}

.app-card {
  padding: 12px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-2);
}

.app-card__title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.app-card__sub {
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 600;
}

.app-card .app-chips {
  margin-top: 8px;
}

.app-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  font-size: 11.5px;
}

.app-row strong {
  font-size: 13px;
}

.app-ok {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #15803D;
  font-weight: 700;
}

.app-ok .icon {
  width: 13px;
  height: 13px;
  stroke-width: 2.6;
}

.app-btn {
  display: grid;
  place-items: center;
  height: 40px;
  margin-top: auto;
  padding-top: 2px;
  border-radius: var(--r-chip);
  background: var(--electric);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.app-card .app-btn {
  margin-top: 10px;
  height: 34px;
}

.app-btn--stop {
  background: #fff;
  color: #B42318;
  box-shadow: inset 0 0 0 1.5px #F1B5AE;
}

.app-dates {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.app-date {
  display: grid;
  justify-items: center;
  padding: 7px 0 5px;
  border-radius: 12px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-3);
}

.app-date b {
  color: var(--ink);
  font-size: 15px;
}

.app-date.is-on {
  background: var(--ink);
  box-shadow: none;
  color: rgba(255, 255, 255, 0.75);
}

.app-date.is-on b {
  color: #fff;
}

.app-times {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.app-time {
  display: grid;
  place-items: center;
  height: 30px;
  padding-top: 2px;
  border-radius: 10px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 11px;
  font-weight: 700;
}

.app-time.is-on {
  background: var(--electric-tint);
  box-shadow: inset 0 0 0 1.5px var(--electric);
  color: var(--electric-hover);
}

.app-time.is-off {
  color: var(--line-strong);
  text-decoration: line-through;
}

.app-note {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-3);
  font-size: 10.5px;
  font-weight: 600;
}

.app-note .icon {
  width: 13px;
  height: 13px;
}

.app-note--card {
  margin-top: 8px;
}

.app-ring {
  position: relative;
  width: 168px;
  margin: 6px auto 0;
  aspect-ratio: 1;
}

.app-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.app-ring circle {
  fill: none;
  stroke-width: 12;
}

.app-ring .track { stroke: var(--surface-2); }
.app-ring .fill { stroke: var(--electric); stroke-linecap: round; }

.app-ring__value {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.app-ring__value small {
  display: block;
  margin-top: 4px;
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
}

.app-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.app-stat {
  padding: 8px 8px 6px;
  border-radius: 12px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}

.app-stat span {
  display: block;
  color: var(--ink-3);
  font-size: 9.5px;
  font-weight: 700;
}

.app-stat b {
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
}

.app-done {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-top: 10px;
  text-align: center;
}

.app-done__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #DCFCE7;
  color: #15803D;
}

.app-done__icon .icon {
  width: 28px;
  height: 28px;
  stroke-width: 2.6;
}

.app-done b {
  font-size: 17px;
  letter-spacing: -0.01em;
}

.app-receipt .app-row {
  margin-top: 0;
  padding: 8px 0 6px;
  border-bottom: 1px dashed var(--line);
}

.app-receipt .app-row:last-child {
  border-bottom: 0;
}

.app-receipt .app-row--total strong {
  font-size: 15px;
}

/* ---- Live session (dark panel) ---------------------------------------------- */

.session {
  --accent: #5B8DF6;
  margin-inline: clamp(8px, 1.5vw, 24px);
  border-radius: var(--r-xl);
  background: var(--night);
  color: var(--on-night-2);
}

.session[data-mode="flash"] {
  --accent: var(--flash);
}

.session .h2 {
  color: #fff;
}

.session__grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

.session__copy p {
  margin-top: 20px;
  max-width: 30em;
}

.session .segmented {
  margin-top: 32px;
}

.session__control {
  margin-top: 28px;
  max-width: 420px;
}

.session__control label {
  display: block;
  margin-bottom: 6px;
  color: #fff;
  font-size: var(--fs-small);
  font-weight: 700;
}

.session__ends {
  display: flex;
  justify-content: space-between;
  color: var(--on-night-2);
  font-size: 12px;
  font-weight: 600;
}

.session__note {
  margin-top: 24px;
  max-width: 34em;
  font-size: var(--fs-tiny);
  line-height: 1.55;
}

.session__viz {
  display: grid;
  gap: 32px;
  padding: clamp(20px, 3vw, 36px);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px var(--night-line);
}

@media (hover: hover) and (pointer: fine) {
  .session__viz {
    cursor: ew-resize;
  }
}

.session__top {
  display: grid;
  gap: 28px;
  align-items: center;
}

.gauge {
  position: relative;
  width: min(260px, 100%);
  aspect-ratio: 1;
  margin-inline: auto;
}

.gauge svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  transform: rotate(-90deg);
}

.gauge circle {
  fill: none;
  stroke-width: 14;
}

.gauge .track { stroke: rgba(255, 255, 255, 0.09); }

.gauge .fill {
  stroke: var(--accent);
  stroke-linecap: round;
  filter: drop-shadow(0 0 12px color-mix(in srgb, var(--accent) 55%, transparent));
}

.gauge__center {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}

.gauge__value {
  color: #fff;
  font-size: clamp(3rem, 2.2rem + 3vw, 4.25rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.gauge__unit {
  margin-top: 6px;
  font-size: var(--fs-small);
  font-weight: 700;
}

.session__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
}

.session__stats dt {
  font-size: var(--fs-tiny);
  font-weight: 700;
}

.session__stats dd {
  margin-top: 2px;
  color: #fff;
  font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.session__stats dd.is-quiet {
  color: var(--on-night-2);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
}

.curve {
  width: 100%;
  height: auto;
  overflow: visible;
}

.curve__grid line {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1;
}

.curve__area {
  fill: color-mix(in srgb, var(--accent) 18%, transparent);
}

.curve__line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linejoin: round;
}

.curve__cursor {
  stroke: rgba(255, 255, 255, 0.35);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
}

.curve__dot {
  fill: #fff;
  stroke: var(--accent);
  stroke-width: 4;
}

.curve text {
  fill: var(--on-night-2);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
}

@media (min-width: 640px) {
  .session__top {
    grid-template-columns: auto 1fr;
  }

  .gauge {
    width: 240px;
  }
}

@media (min-width: 1024px) {
  .session__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 64px;
  }
}

/* ---- Speeds ----------------------------------------------------------------- */

.scale {
  position: relative;
  margin-top: 48px;
  padding-bottom: 30px;
}

.scale__bar {
  display: flex;
  height: 14px;
  overflow: hidden;
  border-radius: var(--r-chip);
}

.scale__zone {
  height: 100%;
  transition: filter var(--fast) var(--ease), transform var(--medium) var(--ease);
}

.scale__zone--slow { width: 53%; background: var(--electric); }
.scale__zone--fast { width: 26%; background: var(--current); }
.scale__zone--flash { width: 21%; background: var(--flash); }

.speeds:has(.speed--slow:hover) .scale__zone:not(.scale__zone--slow),
.speeds:has(.speed--fast:hover) .scale__zone:not(.scale__zone--fast),
.speeds:has(.speed--flash:hover) .scale__zone:not(.scale__zone--flash) {
  filter: saturate(0.2) opacity(0.35);
}

.scale__ticks {
  position: absolute;
  inset: 22px 0 auto;
  height: 20px;
}

.scale__ticks span {
  position: absolute;
  left: var(--at);
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  transform: translateX(-50%);
}

.scale__ticks span:first-child { transform: none; }
.scale__ticks span:last-child { transform: translateX(-100%); }

.speeds__grid {
  display: grid;
  gap: 32px;
  margin-top: 32px;
}

.speed h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.speed__range {
  margin-top: 6px;
  color: var(--ink);
  font-weight: 700;
}

.speed p:last-child {
  margin-top: 8px;
  color: var(--ink-3);
}

.connectors {
  display: grid;
  gap: 16px;
  margin-top: 48px;
  padding: 24px 28px;
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-1);
}

.connectors p {
  color: var(--ink);
  font-weight: 700;
}

.connectors ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.connectors .chip {
  min-height: 34px;
  padding-inline: 14px;
  font-size: var(--fs-small);
}

@media (min-width: 900px) {
  .speeds__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }

  .connectors {
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 24px;
  }

  .connectors ul {
    justify-content: flex-end;
  }
}

@media (max-width: 559px) {
  .scale__ticks span.is-minor {
    display: none;
  }
}

/* ---- Hosts ------------------------------------------------------------------ */

.hosts__grid {
  display: grid;
  gap: 56px;
  align-items: center;
}

.hosts__visual {
  position: relative;
  min-height: clamp(420px, 90vw, 600px);
}

.hosts__photo {
  position: absolute;
  inset: 0 6% 0 0;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--surface-2);
  box-shadow: var(--shadow-3);
}

.hosts__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  scale: 1.08;
}

.hosts__visual .float-card {
  position: absolute;
  z-index: 2;
  padding: 16px 18px 14px;
  border-radius: var(--r-md);
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-3);
}

.float-card__label {
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 700;
}

.float-card__title {
  margin-top: 2px;
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.float-card__actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.mini-btn {
  display: inline-grid;
  place-items: center;
  height: 34px;
  padding: 2px 14px 0;
  border-radius: var(--r-chip);
  background: var(--surface-2);
  font-size: 13px;
  font-weight: 800;
}

.mini-btn--primary {
  background: var(--electric);
  color: #fff;
}

.float-card--request {
  left: -2%;
  bottom: 10%;
  width: 270px;
}

.float-card--note {
  display: flex;
  align-items: center;
  gap: 12px;
}

.float-card--note .icon {
  width: 36px;
  height: 36px;
  padding: 8px;
  border-radius: 50%;
  background: var(--flash-tint);
  color: var(--flash-ink);
  stroke-width: 2.4;
}

.float-card--approved {
  top: 8%;
  right: 0;
}

.float-card--payout {
  right: 3%;
  bottom: 30%;
}

.float-card--payout .icon {
  background: var(--electric-tint);
  color: var(--electric-hover);
}

.hosts .lead {
  margin-top: 20px;
}

.host-steps {
  display: grid;
  gap: 2px;
  margin-top: 32px;
  counter-reset: host;
}

.host-steps li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  align-items: start;
  padding: 10px 0;
  color: var(--ink);
  font-weight: 600;
  counter-increment: host;
}

.host-steps li::before {
  content: counter(host);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding-top: 3px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
}

.host-steps li span {
  padding-top: 6px;
}

.hosts .check-list {
  margin-top: 28px;
}

.hosts__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 36px;
}

.hosts .fine {
  margin-top: 20px;
  max-width: 34em;
}

@media (max-width: 559px) {
  .float-card--approved,
  .float-card--payout {
    display: none;
  }

  .float-card--request {
    left: 12px;
    bottom: 12px;
  }

  .hosts__photo {
    inset: 0;
  }
}

@media (min-width: 1024px) {
  .hosts__grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
    gap: 80px;
    align-items: stretch;
  }
}

/* ---- Businesses --------------------------------------------------------------- */

.biz-grid {
  display: grid;
  gap: 20px;
  margin-top: 48px;
}

.biz-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-1);
}

.biz-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-2);
}

.biz-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  scale: 1.12;
  translate: calc(var(--mx, 0) * -16px) calc(var(--my, 0) * -12px);
}

.biz-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 24px 24px 26px;
}

.biz-card__body p {
  color: var(--ink-3);
}

.biz-card__body .link {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 8px;
}

.biz-features {
  margin-top: 40px;
}

@media (min-width: 760px) {
  .biz-grid {
    grid-template-columns: 1fr 1fr;
  }

  .biz-card--lead {
    grid-column: 1 / -1;
  }

  .biz-features {
    grid-template-columns: 1fr 1fr;
    column-gap: 40px;
  }
}

@media (min-width: 1024px) {
  .biz-grid {
    grid-template-columns: 7fr 5fr;
    grid-template-rows: auto auto;
  }

  .biz-card--lead {
    grid-column: auto;
    grid-row: span 2;
  }

  .biz-card--lead .biz-card__media {
    flex: 1;
    aspect-ratio: auto;
    min-height: 360px;
  }

  .biz-card--lead .biz-card__body {
    flex: none;
  }
}

/* ---- Rewards -------------------------------------------------------------------- */

.rewards__panel {
  display: grid;
  gap: 48px;
  align-items: center;
  padding: clamp(28px, 5vw, 72px);
  border-radius: var(--r-xl);
  background: var(--flash-tint);
}

.rewards .lead {
  margin-top: 20px;
}

.rewards .check-list {
  margin-top: 28px;
}

.rewards .check-list .icon {
  background: #fff;
}

.invite-wrap {
  display: grid;
  place-items: center;
  perspective: 1100px;
}

.invite {
  position: relative;
  width: min(380px, 100%);
  aspect-ratio: 1.6;
  padding: 24px;
  overflow: hidden;
  border-radius: 26px;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-3);
  transform: rotateY(calc(var(--mx, 0) * 14deg)) rotateX(calc(var(--my, 0) * -12deg));
}

.invite::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at calc(50% + var(--mx, 0) * 70%) calc(30% + var(--my, 0) * 70%),
    rgba(255, 255, 255, 0.22),
    rgba(255, 255, 255, 0) 50%
  );
  pointer-events: none;
}

.invite__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.invite__top img {
  width: 40px;
  height: 40px;
}

.invite__tag {
  padding: 4px 10px 2px;
  border-radius: var(--r-chip);
  background: rgba(255, 255, 255, 0.14);
  font-size: 12px;
  font-weight: 700;
}

.invite__label {
  margin-top: 22px;
  color: var(--on-night-2);
  font-size: var(--fs-tiny);
  font-weight: 700;
}

.invite__code {
  margin-top: 2px;
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.invite__actions {
  position: absolute;
  right: 24px;
  bottom: 22px;
  left: 24px;
  display: flex;
  gap: 8px;
}

.invite__actions span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 2px 14px 0;
  border-radius: var(--r-chip);
  background: rgba(255, 255, 255, 0.12);
  font-size: 13px;
  font-weight: 700;
}

.invite__actions span:first-child {
  background: var(--flash);
  color: var(--ink);
}

.invite__actions .icon {
  width: 15px;
  height: 15px;
  margin-top: -2px;
}

@media (min-width: 960px) {
  .rewards__panel {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 64px;
  }
}

/* ---- FAQ ------------------------------------------------------------------------ */

.faq__grid {
  display: grid;
  gap: 40px;
}

.faq__aside p {
  margin-top: 20px;
  max-width: 24em;
}

.faq__aside .btn {
  margin-top: 28px;
}

@media (min-width: 1024px) {
  .faq__grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 80px;
  }

  .faq__aside {
    position: sticky;
    top: calc(var(--header-h) + 40px);
    align-self: start;
  }
}

/* ---- Closing call to action --------------------------------------------------------- */

.cta {
  padding-bottom: var(--section-y);
}

.cta__panel {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 7vw, 104px) clamp(24px, 6vw, 88px);
  border-radius: var(--r-xl);
  background: radial-gradient(
      640px circle at calc(50% + var(--mx, 0) * 50%) calc(50% + var(--my, 0) * 60%),
      rgba(255, 255, 255, 0.2),
      rgba(255, 255, 255, 0) 60%
    ),
    var(--electric);
  color: #fff;
}

.cta__panel .h2 {
  max-width: 14em;
  color: #fff;
}

.cta__panel p {
  margin-top: 20px;
  max-width: 32em;
  color: rgba(255, 255, 255, 0.88);
  font-size: var(--fs-lead);
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-top: 40px;
}

/* ---- Legal pages ----------------------------------------------------------------------- */

.legal {
  padding: calc(var(--header-h) + 12px + 72px) 0 var(--section-y);
}

.legal__inner {
  max-width: 780px;
  margin-inline: auto;
}

.legal .h1 {
  font-size: clamp(2.5rem, 2rem + 2.4vw, 4rem);
}

.legal__updated {
  margin-top: 14px;
  color: var(--ink-3);
  font-size: var(--fs-small);
}

.legal__toc {
  margin: 40px 0 48px;
  padding: 24px 28px 22px;
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-1);
}

.legal__toc-title {
  color: var(--ink);
  font-weight: 800;
}

.legal__toc ol {
  margin: 12px 0 0;
  padding-left: 22px;
}

.legal__toc li {
  padding: 3px 0;
  break-inside: avoid;
}

.legal__toc a {
  color: var(--electric-hover);
  text-decoration: none;
}

.legal__toc a:hover {
  text-decoration: underline;
}

.legal__body h2 {
  margin: 48px 0 8px;
  color: var(--ink);
  font-size: clamp(1.5rem, 1.35rem + 0.6vw, 1.875rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.legal__body h3 {
  margin: 28px 0 4px;
  color: var(--ink);
  font-size: 1.1875rem;
  font-weight: 700;
}

.legal__body p,
.legal__body li {
  margin-top: 12px;
}

.legal__body ul,
.legal__body ol {
  padding-left: 22px;
}

.legal__body a {
  color: var(--electric-hover);
  font-weight: 600;
}

@media (min-width: 700px) {
  .legal__toc ol {
    columns: 2;
    column-gap: 40px;
  }
}

/* ---- 404 ----------------------------------------------------------------------------- */

.notfound {
  display: grid;
  min-height: 82vh;
  place-items: center;
  padding: calc(var(--header-h) + 12px + 64px) 0 96px;
  text-align: center;
}

.notfound__code {
  color: var(--electric);
  font-size: var(--fs-small);
  font-weight: 800;
}

.notfound .h1 {
  margin-top: 12px;
}

.notfound__text {
  max-width: 28em;
  margin: 20px auto 0;
}

.notfound .btn {
  margin-top: 32px;
}
