/* Töpselille – the public front page (Töpselille/site, README.md there). Tienviitta's colours and Overpass from the
   app (docs/design-tienviitta.md), lit at night: the guide-sign blue and the yellow centre line glow on dark asphalt.
   The app itself stays plain and flat for the cab; only this page glows. Fonts and images are self-hosted
   (CSP default-src 'self'); no inline styles, so every value lives here. */

@font-face {
  font-family: "Overpass";
  src: url("/fonts/overpass-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  /* The app's subset without U+00B7: its middle dot has no advance width, so "a · b" comes from the system font. */
  unicode-range: U+0000-00B6, U+00B8-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Overpass";
  src: url("/fonts/overpass-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00B6, U+00B8-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Overpass";
  src: url("/fonts/overpass-latin-800-normal.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00B6, U+00B8-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ------------------------------------------------------------------------------------------------------------
   Tokens
   ------------------------------------------------------------------------------------------------------------ */
:root {
  color-scheme: dark;
  --night: #071a3a; /* blue hour over the road: the page's base, never black */
  --night-2: #0a2147;
  --panel: #0b2148;
  --hair: rgba(205, 220, 240, 0.1);
  --hair-2: rgba(205, 220, 240, 0.2);
  --text: #eef2f6;
  --text-2: #c3cdd9;
  --text-3: #adb9c8; /* 4.6:1 where the background glows brightest */
  --sign-blue: #0a4f9e; /* Tienviitta's guide-sign blue */
  --sign-blue-lit: #0d5cb8;
  --glow-blue: #85bdff; /* the same blue lit by headlights: text and glow on the dark page */
  --yellow: #ffd100; /* the centre line, caution, focus */
  --green: #1b7431; /* charging, as in the app */
  --glow-green: #3ddc84;
  --red: #ff5a6e;
  --white: #ffffff;
  --ink: #121314;
  /* The app's consumption legend (Ajokeli): 5-14, 15-24, 25-34 % */
  --cb-1: #1f6fd1;
  --cb-2: #22b8a6;
  --cb-3: #ffd100;
  --font: "Overpass", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ------------------------------------------------------------------------------------------------------------
   Base
   ------------------------------------------------------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55;
  font-variant-numeric: tabular-nums; /* as in the app: times and figures line up */
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

button,
input {
  font: inherit;
}

a {
  color: var(--glow-blue);
}

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 4px;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  border-radius: 4px;
}

.skip:focus {
  top: 12px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* A small label above a figure, as the app's "Saapuu" and "Seuraava · 1/3": sentence case, no tracking. */
.label {
  font-weight: 600;
  font-size: 15px;
}

/* Icons: the app's set (24 px grid, 2 px stroke, square ends, mitred corners). */
.ic {
  width: 24px;
  height: 24px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

/* The sky behind everything: the blue hour over a Finnish road, sign blue from the top left, the app's charging
   teal and green and its rest violet glowing in the corners, northern lights drifting slowly across the top, and
   a road-survey grid that fades out. The glows stay faint enough that every text colour keeps 4.5:1. */
.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(55% 45% at 10% 0%, rgba(30, 111, 255, 0.3), transparent 70%),
    radial-gradient(45% 40% at 92% 18%, rgba(34, 184, 166, 0.2), transparent 70%),
    radial-gradient(55% 45% at 85% 92%, rgba(140, 90, 230, 0.24), transparent 70%),
    radial-gradient(45% 40% at 8% 86%, rgba(40, 190, 110, 0.14), transparent 70%),
    linear-gradient(165deg, #06183a 0%, #0a2756 50%, #081d45 100%);
}

.sky::before {
  /* the northern lights */
  content: "";
  position: absolute;
  inset: -20% -10% 40%;
  background:
    radial-gradient(40% 26% at 40% 22%, rgba(61, 220, 132, 0.14), transparent 70%),
    radial-gradient(35% 24% at 68% 18%, rgba(34, 184, 166, 0.14), transparent 70%),
    radial-gradient(40% 28% at 88% 34%, rgba(140, 90, 230, 0.16), transparent 70%);
  filter: blur(30px);
  animation: aurora 40s ease-in-out infinite alternate;
}

.sky::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--hair) 1px, transparent 1px),
    linear-gradient(90deg, var(--hair) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.45;
  -webkit-mask-image: radial-gradient(ellipse 85% 60% at 50% 0%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 85% 60% at 50% 0%, #000 25%, transparent 75%);
}

/* ------------------------------------------------------------------------------------------------------------
   Header
   ------------------------------------------------------------------------------------------------------------ */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 22, 50, 0.62);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--hair);
}

.top-in {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 10px var(--gutter);
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 22px;
}

.brand .logo {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 0 12px rgba(90, 163, 255, 0.45));
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.nav a {
  color: var(--text-2);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  padding: 10px 12px;
  border-radius: 4px;
  transition: color 0.2s, background-color 0.2s;
}

.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.top-end {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang {
  display: flex;
  border: 1.5px solid var(--hair-2);
  border-radius: 4px;
  overflow: hidden;
}

.lang a {
  min-width: 40px;
  padding: 8px 10px 6px;
  text-align: center;
  font-weight: 800;
  font-size: 14px;
  color: var(--text-2);
  text-decoration: none;
}

.lang a[aria-current="page"] {
  background: var(--text);
  color: var(--night);
}

.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1.5px solid var(--hair-2);
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

/* ------------------------------------------------------------------------------------------------------------
   Buttons: the guide sign (blue, white key line) for the next action, a plain outline for the rest
   ------------------------------------------------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 2px 24px 0;
  border: 0;
  border-radius: 6px;
  font: 800 18px/1.1 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease), background-color 0.3s, color 0.3s, border-color 0.3s;
}

.btn .ic {
  margin-top: -2px;
  stroke-width: 2.4;
}

.btn-sign {
  background: var(--sign-blue);
  color: var(--white);
  box-shadow:
    inset 0 0 0 3px var(--sign-blue),
    inset 0 0 0 5px var(--white),
    0 0 26px rgba(90, 163, 255, 0.35);
}

.btn-sign:hover {
  background: var(--sign-blue-lit);
  box-shadow:
    inset 0 0 0 3px var(--sign-blue-lit),
    inset 0 0 0 5px var(--white),
    0 0 46px rgba(90, 163, 255, 0.7);
  transform: translateY(-1px);
}

.btn-sign:hover .ic {
  transform: translateX(3px);
}

.btn-sign .ic {
  transition: transform 0.3s var(--ease);
}

.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid var(--hair-2);
}

.btn-ghost:hover {
  color: var(--yellow);
  border-color: var(--yellow);
  box-shadow: 0 0 26px rgba(255, 209, 0, 0.2);
}

.btn-small {
  min-height: 44px;
  padding: 2px 16px 0;
  font-size: 16px;
}

/* ------------------------------------------------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------------------------------------------------ */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: min(100svh, 1000px);
  padding: clamp(28px, 5vh, 72px) 0 clamp(150px, 21vh, 230px);
  overflow: clip;
}

.hero-in {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font: 600 16px/1.3 var(--font);
  color: var(--glow-blue);
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--glow-green);
  box-shadow: 0 0 14px var(--glow-green);
  animation: blink 2.4s ease-in-out infinite;
}

h1 {
  margin: 18px 0 22px;
  font-weight: 800;
  font-size: clamp(42px, 5.6vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.lit {
  color: var(--yellow);
  text-shadow: 0 0 30px rgba(255, 209, 0, 0.45);
}

.lead {
  margin: 0;
  max-width: 34em;
  color: var(--text-2);
  font-size: clamp(18px, 1.55vw, 21px);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  font: 600 15px/1.4 var(--font);
  color: var(--text-3);
}

.facts li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.facts li::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--yellow);
  box-shadow: 0 0 10px var(--yellow);
}

/* The app on two screens: the dispatcher's browser behind, the driver's phone in front, two read-outs floating. */
.visual {
  position: relative;
  width: 108%;
  aspect-ratio: 1 / 0.96;
}

.screen {
  position: absolute;
  top: 3%;
  right: 0;
  width: 93%;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--hair-2);
  background: var(--panel);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.65),
    0 0 70px rgba(10, 79, 158, 0.45);
  transform: perspective(1600px) rotateY(-9deg) rotateX(3deg);
  transform-origin: 70% 50%;
}

.screen-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border-bottom: 1px solid var(--hair);
  font: 600 13px/1 var(--font);
  color: var(--text-3);
}

.screen-bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hair-2);
}

.screen-bar span {
  margin-left: 10px;
}

.screen img,
.frame img {
  display: block;
  width: 100%;
  height: auto;
}

.phone {
  position: relative;
  padding: 7px;
  border-radius: 30px;
  background: #0a0d12;
  border: 1px solid var(--hair-2);
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.75),
    0 0 54px rgba(90, 163, 255, 0.28);
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 23px;
}

.visual .phone {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 39%;
  z-index: 2;
}

.hud {
  position: absolute;
  z-index: 3;
  padding: 10px 14px 8px;
  border-radius: 8px;
  background: rgba(6, 22, 50, 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(90, 163, 255, 0.4);
  box-shadow: 0 0 30px rgba(90, 163, 255, 0.22);
  animation: float 7s ease-in-out infinite;
}

.hud b {
  display: block;
  font: 600 14px/1.2 var(--font);
  color: var(--glow-blue);
}

.hud span {
  display: block;
  margin-top: 5px;
  font: 800 18px/1.25 var(--font);
  color: var(--text);
  white-space: nowrap;
}

.hud-charge {
  left: 34%;
  bottom: 34%;
  border-color: rgba(61, 220, 132, 0.45);
  box-shadow: 0 0 30px rgba(61, 220, 132, 0.2);
}

.hud-charge b {
  color: var(--glow-green);
}

.hud-arrive {
  right: 3%;
  bottom: 4%;
  border-color: rgba(255, 209, 0, 0.45);
  box-shadow: 0 0 30px rgba(255, 209, 0, 0.16);
  animation-delay: -3.5s;
}

.hud-arrive b {
  color: var(--yellow);
}

/* The road: a lit two-lane road running into the night, yellow centre line as on Finnish roads. */
.road {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  height: clamp(190px, 30vh, 300px);
  perspective: 280px;
  perspective-origin: 50% 0%;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 55%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 55%);
}

.road::before {
  /* the horizon's glow */
  content: "";
  position: absolute;
  left: 50%;
  top: -40px;
  width: 900px;
  height: 160px;
  margin-left: -450px;
  background: radial-gradient(closest-side, rgba(90, 163, 255, 0.45), transparent);
}

.road-plane {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 760px;
  height: 1600px;
  margin-left: -380px;
  transform-origin: 50% 100%;
  transform: rotateX(80deg);
  background:
    linear-gradient(90deg, transparent 6%, rgba(255, 255, 255, 0.85) 6%, rgba(255, 255, 255, 0.85) 7%, transparent 7%,
      transparent 93%, rgba(255, 255, 255, 0.85) 93%, rgba(255, 255, 255, 0.85) 94%, transparent 94%),
    radial-gradient(60% 18% at 50% 100%, rgba(255, 244, 214, 0.18), transparent),
    linear-gradient(90deg, transparent, #111a27 4%, #111a27 96%, transparent);
}

.road-plane::before {
  /* the centre line's dashes, coming towards the viewer */
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 10px;
  margin-left: -5px;
  background: repeating-linear-gradient(to bottom, var(--yellow) 0 70px, transparent 70px 170px);
  background-size: 100% 170px;
  box-shadow: 0 0 18px rgba(255, 209, 0, 0.35);
  animation: drive 0.9s linear infinite;
}

.road-plane::after {
  /* light poles' glow along both shoulders */
  content: "";
  position: absolute;
  inset: 0 -40px;
  background:
    repeating-linear-gradient(to bottom, rgba(90, 163, 255, 0.55) 0 8px, transparent 8px 260px) left / 6px 100% no-repeat,
    repeating-linear-gradient(to bottom, rgba(90, 163, 255, 0.55) 0 8px, transparent 8px 260px) right / 6px 100% no-repeat;
  animation: poles 1.4s linear infinite;
}

/* ------------------------------------------------------------------------------------------------------------
   Figures band
   ------------------------------------------------------------------------------------------------------------ */
.stats {
  position: relative;
  border-block: 1px solid var(--hair);
  background: linear-gradient(180deg, rgba(10, 79, 158, 0.14), rgba(10, 79, 158, 0.02));
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.stat {
  padding: 34px 24px 30px;
  border-left: 1px solid var(--hair);
}

.stat:first-child {
  border-left: 0;
  padding-left: 0;
}

.stat-n {
  display: block;
  font: 800 clamp(36px, 3.6vw, 52px)/1 var(--font);
  color: var(--text);
  text-shadow: 0 0 26px rgba(90, 163, 255, 0.55);
  white-space: nowrap;
}

.stat-n sup {
  font-size: 0.38em;
  color: var(--text-3);
  text-shadow: none;
  margin-left: 2px;
}

.stat p {
  margin: 12px 0 0;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.45;
}

.note {
  color: var(--text-3);
  font-size: 14px;
  line-height: 1.55;
}

.stats .note {
  margin: 0;
  padding: 0 0 24px;
}

/* ------------------------------------------------------------------------------------------------------------
   Sections
   ------------------------------------------------------------------------------------------------------------ */
.section {
  position: relative;
  padding: clamp(72px, 10vw, 136px) 0;
}

.section-alt {
  background: linear-gradient(180deg, transparent, rgba(4, 14, 34, 0.45) 12%, rgba(4, 14, 34, 0.45) 88%, transparent);
}

/* The section's label: a small guide sign. */
.plate {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 8px 14px 6px;
  border-radius: 4px;
  background: var(--sign-blue);
  color: var(--white);
  box-shadow:
    inset 0 0 0 2px var(--sign-blue),
    inset 0 0 0 3.5px var(--white),
    0 0 22px rgba(90, 163, 255, 0.3);
  font-weight: 800;
  font-size: 15px;
}

.plate .ic {
  width: 18px;
  height: 18px;
  margin-top: -2px;
  stroke-width: 2.4;
}

.plate-yellow {
  background: var(--yellow);
  color: var(--ink);
  box-shadow:
    inset 0 0 0 2px var(--yellow),
    inset 0 0 0 3.5px var(--ink),
    0 0 22px rgba(255, 209, 0, 0.3);
}

h2 {
  margin: 20px 0 18px;
  max-width: 19em;
  font-weight: 800;
  font-size: clamp(32px, 4.3vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.015em;
}

h3 {
  margin: 0 0 8px;
  font-weight: 800;
  font-size: 21px;
  line-height: 1.25;
}

.section-lead {
  margin: 0;
  max-width: 40em;
  color: var(--text-2);
  font-size: clamp(18px, 1.45vw, 20px);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 48px;
}

.card {
  position: relative;
  overflow: hidden;
  padding: 28px 26px 26px;
  border-radius: 10px;
  border: 1px solid var(--hair);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  transition: border-color 0.35s, transform 0.35s var(--ease), box-shadow 0.35s;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glow-blue), transparent);
  opacity: 0.7;
}

.card:hover {
  border-color: rgba(90, 163, 255, 0.45);
  box-shadow: 0 0 40px rgba(10, 79, 158, 0.35);
  transform: translateY(-3px);
}

.card p {
  margin: 0;
  color: var(--text-2);
  font-size: 17px;
}

/* A pictogram on a small sign plate */
.pict {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 20px;
  border-radius: 6px;
  background: var(--sign-blue);
  color: var(--white);
  box-shadow:
    inset 0 0 0 2px var(--sign-blue),
    inset 0 0 0 4px var(--white),
    0 0 26px rgba(90, 163, 255, 0.35);
}

.pict .ic {
  width: 26px;
  height: 26px;
}

.pict-green {
  background: var(--green);
  box-shadow:
    inset 0 0 0 2px var(--green),
    inset 0 0 0 4px var(--white),
    0 0 26px rgba(61, 220, 132, 0.3);
}

.pict-dim {
  background: transparent;
  color: var(--text-2);
  box-shadow: inset 0 0 0 1.5px var(--hair-2);
}

.tag {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 8px 1px;
  border-radius: 3px;
  border: 1.5px solid var(--yellow);
  color: var(--yellow);
  font: 800 12px/1.3 var(--font);
  vertical-align: 3px;
}

/* ------------------------------------------------------------------------------------------------------------
   The problem: how much the weather adds
   ------------------------------------------------------------------------------------------------------------ */
.factors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.factors li {
  padding: 14px 16px 12px;
  border-radius: 8px;
  border: 1px solid var(--hair);
  background: rgba(255, 255, 255, 0.025);
}

.factors b {
  display: block;
  font-size: 17px;
}

.factors span {
  color: var(--text-3);
  font-size: 15px;
}

.panel {
  position: relative;
  padding: clamp(22px, 3vw, 34px);
  border-radius: 12px;
  border: 1px solid var(--hair-2);
  background: linear-gradient(180deg, rgba(10, 34, 74, 0.9), rgba(6, 22, 50, 0.9));
  box-shadow: 0 0 80px rgba(10, 79, 158, 0.25);
}

.panel-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin: 0 0 22px;
  font-weight: 800;
  font-size: 20px;
}

.panel-title small {
  font: 600 14px/1.3 var(--font);
  color: var(--text-3);
}

.bars {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 68px;
  gap: 4px 14px;
  align-items: center;
}

.bar-label {
  grid-column: 1 / -1;
  font-size: 16px;
  color: var(--text);
}

.bar-label small {
  margin-left: 6px;
  font: 600 14px/1 var(--font);
  color: var(--text-3);
}

.bar {
  height: 12px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.bar-fill {
  display: block;
  height: 100%;
  width: calc(var(--v) / 34 * 100%);
  border-radius: 2px;
  transform-origin: left center;
  transition: transform 1.4s var(--ease);
}

.bar-v {
  font: 800 19px/1 var(--font);
  text-align: right;
}

.cb1 {
  background: var(--cb-1);
  box-shadow: 0 0 14px rgba(31, 111, 209, 0.7);
}

.cb2 {
  background: var(--cb-2);
  box-shadow: 0 0 14px rgba(34, 184, 166, 0.6);
}

.cb3 {
  background: var(--cb-3);
  box-shadow: 0 0 14px rgba(255, 209, 0, 0.6);
}

.v13 { --v: 13; }
.v21 { --v: 21; }
.v23 { --v: 23; }
.v24 { --v: 24; }
.v27 { --v: 27; }
.v31 { --v: 31; }

.bar-row-total {
  padding-top: 14px;
  border-top: 1px solid var(--hair);
}

.bar-row-total .bar-label {
  font-weight: 800;
}

.bar-row-total .bar-v {
  color: var(--yellow);
  text-shadow: 0 0 18px rgba(255, 209, 0, 0.5);
}

.panel .note {
  margin: 22px 0 0;
}

/* ------------------------------------------------------------------------------------------------------------
   The solution: a trip on one line
   ------------------------------------------------------------------------------------------------------------ */
.trip {
  margin-top: 56px;
  padding: 26px clamp(18px, 3vw, 36px) 30px;
  border-radius: 12px;
  border: 1px solid var(--hair-2);
  background: rgba(6, 22, 50, 0.72);
}

.trip-head {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: baseline;
  margin: 0 0 30px;
  font-weight: 800;
  font-size: 18px;
}

.trip-head .label {
  color: var(--glow-blue);
}

.trip-line {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.trip-line::before,
.trip-line::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  top: 15px;
  height: 4px;
  border-radius: 2px;
}

.trip-line::before {
  background: var(--sign-blue);
  box-shadow: 0 0 18px rgba(90, 163, 255, 0.6);
}

.trip-line::after {
  /* a pulse running along the route */
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.9) 50%, transparent 100%) no-repeat;
  background-size: 18% 100%;
  animation: pulse-run 3.6s var(--ease) infinite;
}

.trip-line li {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2px;
  justify-items: start;
}

.trip-line li:nth-child(2) {
  justify-items: center;
  text-align: center;
}

.trip-line li:last-child {
  justify-items: end;
  text-align: right;
}

.stop {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--night);
  border: 4px solid var(--white);
}

.stop-charge {
  border-radius: 5px;
  background: var(--green);
  border: 0;
  color: var(--white);
  box-shadow:
    inset 0 0 0 2px var(--green),
    inset 0 0 0 3.5px var(--white),
    0 0 22px rgba(61, 220, 132, 0.6);
}

.stop-charge .ic {
  width: 20px;
  height: 20px;
}

.stop-end {
  border-radius: 3px;
  background: var(--white);
}

.trip-line b {
  font: 800 clamp(24px, 2.4vw, 32px)/1 var(--font);
}

.trip-line .place {
  font-weight: 800;
  font-size: 18px;
}

.trip-line small {
  color: var(--text-3);
  font-size: 15px;
}

/* ------------------------------------------------------------------------------------------------------------
   Feature lists
   ------------------------------------------------------------------------------------------------------------ */
.feats {
  display: grid;
  gap: 22px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.feats li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.feats .badge-ic {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid rgba(90, 163, 255, 0.35);
  background: rgba(10, 79, 158, 0.18);
  color: var(--glow-blue);
}

.feats h3 {
  margin: 2px 0 4px;
  font-size: 19px;
}

.feats p {
  margin: 0;
  color: var(--text-2);
  font-size: 17px;
}

.aside-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 30px 0 0;
  padding: 14px 16px 12px;
  border-left: 3px solid var(--glow-green);
  background: rgba(61, 220, 132, 0.07);
  color: var(--text-2);
  font-size: 16px;
}

.aside-note .ic {
  color: var(--glow-green);
}

/* Two phones side by side, the second a little lower */
.phones {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2.4vw, 28px);
  max-width: 560px;
  margin-left: auto;
}

.phones .phone:nth-child(2) {
  margin-top: 64px;
}

/* On a wide screen the phones stay in view while the features scroll past. */
.split-sticky {
  align-items: start;
}

.split-sticky .phones {
  position: sticky;
  top: 120px;
}

.phones::before {
  content: "";
  position: absolute;
  inset: 10% -10%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(10, 79, 158, 0.55), transparent);
}

figure {
  margin: 0;
}

figcaption {
  margin-top: 14px;
  color: var(--text-3);
  font-size: 15px;
  line-height: 1.45;
}

/* ------------------------------------------------------------------------------------------------------------
   Dispatcher: a browser frame with three views, switched without script (radio buttons)
   ------------------------------------------------------------------------------------------------------------ */
.gallery {
  margin-top: 44px;
}

.g-radio {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.g-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.g-tabs label {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 2px 18px 0;
  border-radius: 6px;
  border: 1.5px solid var(--hair-2);
  color: var(--text-2);
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.g-tabs label:hover {
  color: var(--text);
  border-color: var(--glow-blue);
}

#g1:checked ~ .g-tabs label[for="g1"],
#g2:checked ~ .g-tabs label[for="g2"],
#g3:checked ~ .g-tabs label[for="g3"] {
  background: var(--sign-blue);
  border-color: var(--sign-blue);
  color: var(--white);
  box-shadow:
    inset 0 0 0 2px var(--sign-blue),
    inset 0 0 0 3.5px var(--white),
    0 0 24px rgba(90, 163, 255, 0.4);
}

#g1:focus-visible ~ .g-tabs label[for="g1"],
#g2:focus-visible ~ .g-tabs label[for="g2"],
#g3:focus-visible ~ .g-tabs label[for="g3"] {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.g-panel {
  display: none;
}

#g1:checked ~ .g-panels .g-p1,
#g2:checked ~ .g-panels .g-p2,
#g3:checked ~ .g-panels .g-p3 {
  display: block;
  animation: fade-in 0.5s var(--ease);
}

.frame {
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--hair-2);
  background: var(--panel);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.6),
    0 0 90px rgba(10, 79, 158, 0.35);
}

/* Eight tools of the dispatcher's view */
.tools {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--hair);
  background: var(--hair);
}

.tools li {
  padding: 22px 20px 20px;
  background: var(--night-2);
  transition: background-color 0.3s;
}

.tools li:hover {
  background: #0e2b5a;
}

.tools b {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 18px;
}

.tools b .ic {
  width: 20px;
  height: 20px;
  color: var(--glow-blue);
}

.tools span {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.45;
}

/* ------------------------------------------------------------------------------------------------------------
   Week forecast
   ------------------------------------------------------------------------------------------------------------ */
.callout {
  position: relative;
  margin: 32px 0 0;
  padding: 20px 22px 18px;
  border-radius: 8px;
  background: var(--yellow);
  color: var(--ink);
  box-shadow:
    inset 0 0 0 3px var(--yellow),
    inset 0 0 0 5px var(--ink),
    0 0 50px rgba(255, 209, 0, 0.25);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.45;
}

.callout b {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  font-weight: 800;
}

.callout strong {
  font-weight: 800;
}

.week-split {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
}

/* ------------------------------------------------------------------------------------------------------------
   Money
   ------------------------------------------------------------------------------------------------------------ */
.money {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 18px;
  margin-top: 48px;
}

.money-big {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(24px, 3vw, 36px);
  border-radius: 12px;
  border: 1px solid rgba(255, 90, 110, 0.35);
  background:
    radial-gradient(80% 60% at 0% 0%, rgba(174, 16, 40, 0.28), transparent 70%),
    rgba(6, 22, 50, 0.8);
}

.money-big .label {
  color: var(--red);
}

.money-n {
  display: block;
  font: 800 clamp(64px, 8vw, 104px)/1 var(--font);
  color: var(--white);
  text-shadow: 0 0 40px rgba(255, 90, 110, 0.55);
}

.money-big p {
  margin: 0;
  color: var(--text-2);
}

.money-big p strong {
  color: var(--text);
}

.money-list {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.money-list .card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 22px;
}

.money-list .pict {
  margin: 0;
}

/* ------------------------------------------------------------------------------------------------------------
   How a plan is made
   ------------------------------------------------------------------------------------------------------------ */
.flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}

.flow li {
  position: relative;
  padding: 20px 18px 18px;
  border-radius: 10px;
  border: 1px solid var(--hair);
  background: rgba(255, 255, 255, 0.03);
}

.flow li::after {
  /* a feed line down to the plan */
  content: "";
  position: absolute;
  left: 50%;
  bottom: -37px;
  width: 2px;
  height: 36px;
  background: linear-gradient(to bottom, var(--hair-2), var(--glow-blue));
}

.num {
  display: inline-grid;
  place-items: center;
  min-width: 32px;
  height: 32px;
  margin-bottom: 14px;
  padding: 3px 6px 0;
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--white), inset 0 0 0 3.5px var(--ink);
  font-weight: 800;
  font-size: 17px;
}

.flow b {
  display: block;
  font-size: 18px;
  margin-bottom: 4px;
}

.flow li > span:last-child {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.45;
}

.flow-out {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  margin-top: 36px;
  padding: 22px 26px 20px;
  border-radius: 10px;
  background: var(--sign-blue);
  color: var(--white);
  box-shadow:
    inset 0 0 0 3px var(--sign-blue),
    inset 0 0 0 5px var(--white),
    0 0 60px rgba(90, 163, 255, 0.4);
  overflow: hidden;
}

.flow-out::after {
  /* light sweeping across the plan */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.18) 50%, transparent 70%) no-repeat;
  background-size: 50% 100%;
  animation: sweep 4.5s ease-in-out infinite;
}

.flow-out b {
  font-size: 24px;
  font-weight: 800;
}

.flow-out span {
  color: rgba(255, 255, 255, 0.85);
}

.trust {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  margin-top: 56px;
}

.trust h3 {
  margin-bottom: 16px;
}

.checks {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checks li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  color: var(--text-2);
  font-size: 17px;
}

.checks li b {
  color: var(--text);
}

.checks .ic {
  margin-top: 1px;
  color: var(--glow-green);
}

/* ------------------------------------------------------------------------------------------------------------
   Pricing
   ------------------------------------------------------------------------------------------------------------ */
.tiers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 48px;
}

.tier {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tier h3 {
  margin: 0;
  font-size: 24px;
}

.tier .who {
  color: var(--text-3);
  font: 600 14px/1.3 var(--font);
}

.price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 4px 0 0;
  padding: 14px 0;
  border-block: 1px solid var(--hair);
}

.price b {
  font: 800 34px/1 var(--font);
  color: var(--text-3);
}

.price span {
  color: var(--text-3);
  font-size: 15px;
}

.price-soon {
  display: block;
  margin-top: -6px;
  color: var(--yellow);
  font: 600 14px/1.3 var(--font);
}

.tier ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  flex: 1;
}

.tier li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  color: var(--text-2);
  font-size: 16px;
}

.tier li .ic {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  color: var(--glow-blue);
}

.tier .btn {
  width: 100%;
  margin-top: 6px;
}

.tier-lit {
  border-color: rgba(90, 163, 255, 0.5);
  box-shadow: 0 0 50px rgba(10, 79, 158, 0.4);
}

.pilot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px 36px;
  align-items: center;
  margin-top: 18px;
  padding: clamp(22px, 3vw, 32px);
  border-radius: 12px;
  border: 1px solid rgba(255, 209, 0, 0.4);
  background:
    radial-gradient(70% 120% at 100% 0%, rgba(255, 209, 0, 0.12), transparent 70%),
    rgba(6, 22, 50, 0.8);
}

.pilot h3 {
  font-size: 24px;
}

.pilot p {
  margin: 0;
  color: var(--text-2);
}

.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  font-weight: 600;
}

.steps li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.steps .num {
  margin: 0;
  min-width: 28px;
  height: 28px;
  font-size: 15px;
}

/* ------------------------------------------------------------------------------------------------------------
   Contact
   ------------------------------------------------------------------------------------------------------------ */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  margin-top: 48px;
}

.contact-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.contact-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--hair);
}

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

.contact-row dt {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid rgba(90, 163, 255, 0.35);
  background: rgba(10, 79, 158, 0.18);
  color: var(--glow-blue);
}

.contact-row dd {
  margin: 0;
  display: grid;
}

.contact-row dd small {
  color: var(--text-3);
  font: 600 14px/1.4 var(--font);
}

.contact-row dd a,
.contact-row dd span {
  color: var(--text);
  font-weight: 600;
  font-size: 19px;
  text-decoration: none;
  overflow-wrap: anywhere;
}

/* Still to be filled in: shown plainly as such */
.todo {
  color: var(--text-3) !important;
  font-style: italic;
  font-weight: 400 !important;
}

/* The big guide sign that leads into the app */
.sign {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 26px;
  min-height: 100%;
  padding: clamp(26px, 3.4vw, 40px);
  border-radius: 12px;
  background: var(--sign-blue);
  color: var(--white);
  text-decoration: none;
  box-shadow:
    inset 0 0 0 5px var(--sign-blue),
    inset 0 0 0 8px var(--white),
    0 0 80px rgba(90, 163, 255, 0.35);
  overflow: hidden;
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}

.sign::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.16) 50%, transparent 70%) no-repeat;
  background-size: 50% 100%;
  animation: sweep 5s ease-in-out infinite;
  pointer-events: none;
}

.sign:hover {
  box-shadow:
    inset 0 0 0 5px var(--sign-blue),
    inset 0 0 0 8px var(--white),
    0 0 110px rgba(90, 163, 255, 0.6);
  transform: translateY(-3px);
}

.sign-top {
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 800;
  font-size: 15px;
  opacity: 0.9;
}

.sign-top .logo {
  width: 52px;
  height: 52px;
}

.sign-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-weight: 800;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1;
}

.sign-main .ic {
  width: clamp(40px, 4.4vw, 60px);
  height: clamp(40px, 4.4vw, 60px);
  stroke-width: 2.6;
  transition: transform 0.4s var(--ease);
}

.sign:hover .sign-main .ic {
  transform: translateX(8px);
}

.sign p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 17px;
}

/* ------------------------------------------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------------------------------------------ */
.foot {
  border-top: 1px solid var(--hair);
  padding: 40px 0 48px;
  color: var(--text-3);
  font-size: 15px;
}

.foot-in {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.foot .brand {
  font-size: 18px;
}

.foot .brand .logo {
  width: 32px;
  height: 32px;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}

.foot a {
  color: var(--text-2);
  text-decoration: none;
}

.foot a:hover {
  color: var(--text);
  text-decoration: underline;
}

.foot p {
  margin: 0;
  width: 100%;
}

/* ------------------------------------------------------------------------------------------------------------
   Reveal on scroll (site.js adds .js and .in; without script everything simply shows)
   ------------------------------------------------------------------------------------------------------------ */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

.js .reveal .bar-fill {
  transform: scaleX(0);
}

.js .reveal.in .bar-fill {
  transform: none;
}

.bar-row:nth-child(2) .bar-fill { transition-delay: 0.08s; }
.bar-row:nth-child(3) .bar-fill { transition-delay: 0.16s; }
.bar-row:nth-child(4) .bar-fill { transition-delay: 0.24s; }
.bar-row:nth-child(5) .bar-fill { transition-delay: 0.32s; }
.bar-row:nth-child(6) .bar-fill { transition-delay: 0.45s; }

.d1 { transition-delay: 0.1s !important; }
.d2 { transition-delay: 0.2s !important; }
.d3 { transition-delay: 0.3s !important; }

@keyframes aurora {
  from { transform: translate3d(-4%, 0, 0) scale(1); }
  to { transform: translate3d(4%, 4%, 0) scale(1.08); }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes drive {
  from { background-position: 0 0; }
  to { background-position: 0 170px; }
}

@keyframes poles {
  from { background-position: left 0, right 0; }
  to { background-position: left 260px, right 260px; }
}

@keyframes pulse-run {
  0% { background-position: -20% 0; }
  100% { background-position: 120% 0; }
}

@keyframes sweep {
  0%, 55% { background-position: -100% 0; }
  100% { background-position: 200% 0; }
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .js .reveal .bar-fill {
    transform: none;
  }
}

/* ------------------------------------------------------------------------------------------------------------
   Narrower screens
   ------------------------------------------------------------------------------------------------------------ */
@media (max-width: 1080px) {
  .nav a {
    padding: 10px 8px;
    font-size: 15px;
  }

  .tiers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tools {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .flow li::after {
    display: none;
  }
}

@media (max-width: 900px) {
  .menu-btn {
    display: inline-flex;
  }

  .js .nav {
    display: none;
  }

  .nav {
    order: 5;
    flex-basis: 100%;
    flex-wrap: wrap;
    margin: 0;
  }

  .js .menu-open .nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 0 12px;
  }

  .js .menu-open .nav a {
    padding: 14px 6px;
    font-size: 18px;
    border-bottom: 1px solid var(--hair);
  }

  .top-in {
    flex-wrap: wrap;
  }

  .top-end {
    margin-left: auto;
  }

  .top-end .btn {
    display: none;
  }

  .hero-in,
  .split,
  .week-split,
  .money,
  .trust,
  .contact {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    min-height: 0;
  }

  .visual {
    max-width: 560px;
    width: 100%;
    margin: 12px auto 0;
  }

  .split-sticky .phones {
    position: static;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat {
    padding: 26px 18px 22px;
  }

  .stat:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }

  .stat:nth-child(n + 3) {
    border-top: 1px solid var(--hair);
  }

  .cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .phones {
    margin: 0 auto;
  }

  .pilot {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  body {
    font-size: 17px;
  }

  .brand {
    font-size: 20px;
  }

  .brand .logo {
    width: 36px;
    height: 36px;
  }

  .lang a {
    min-width: 36px;
    padding: 8px 6px 6px;
  }

  .cta-row .btn {
    flex: 1 1 100%;
  }

  .hud span {
    font-size: 14px;
  }

  .hud {
    padding: 8px 10px 6px;
  }

  .hud-charge {
    left: 30%;
    bottom: 38%;
  }

  .hud-arrive {
    right: 0;
  }

  .tiers,
  .tools {
    grid-template-columns: minmax(0, 1fr);
  }

  .flow {
    grid-template-columns: minmax(0, 1fr);
  }

  .factors {
    grid-template-columns: minmax(0, 1fr);
  }

  .trip-line {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding-left: 52px;
  }

  .trip-line::before,
  .trip-line::after {
    left: 15px;
    right: auto;
    top: 16px;
    bottom: 16px;
    width: 4px;
    height: auto;
  }

  .trip-line::after {
    display: none;
  }

  .trip-line li,
  .trip-line li:nth-child(2),
  .trip-line li:last-child {
    justify-items: start;
    text-align: left;
  }

  .stop {
    position: absolute;
    left: -52px;
    top: 0;
  }

  .money-list .card {
    grid-template-columns: minmax(0, 1fr);
  }

  .phones .phone:nth-child(2) {
    margin-top: 40px;
  }

  .g-tabs label {
    flex: 1 1 auto;
    justify-content: center;
  }
}
