/* Courier landing page. One theme (follows the system), one accent, radii: pill buttons, 20px cards, 14px inputs. */

@font-face {
  font-family: "Geist";
  src: url("fonts/geist-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-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: "Geist";
  src: url("fonts/geist-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light dark;
  --bg: #e9ece9;
  --surface: rgb(255 255 255 / 0.58);
  --glass: rgb(255 255 255 / 0.62);
  --glass-line: rgb(255 255 255 / 0.75);
  --glow: 0.42;
  --ink: #0c0f0d;
  --muted: #565d59;
  --line: rgb(12 15 13 / 0.1);
  --field: rgb(255 255 255 / 0.7);
  --accent: #19c37d;
  --accent-ink: #0a6b43; /* accent as text on light surfaces (AA) */
  --accent-display: #0c9a5e; /* accent for display-size type only (3:1) */
  --accent-soft: #e2f6ec;
  --danger: #b3261e;
  --btn-bg: #0c0f0d;
  --btn-ink: #f6f7f5;
  --shadow: 0 1px 0 rgb(12 15 13 / 0.03), 0 24px 60px -28px rgb(20 60 40 / 0.28);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --r-card: 20px;
  --r-field: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1f1d;
    --surface: rgb(255 255 255 / 0.045);
    --glass: rgb(34 39 37 / 0.55);
    --glass-line: rgb(255 255 255 / 0.1);
    --glow: 0.4;
    --ink: #f1f4f2;
    --muted: #a3aba6;
    --line: rgb(255 255 255 / 0.1);
    --field: rgb(10 12 11 / 0.35);
    --accent: #2bd68d;
    --accent-ink: #5fe3a8;
    --accent-display: #2bd68d;
    --accent-soft: rgb(43 214 141 / 0.14);
    --danger: #ff8a80;
    --btn-bg: #f1f4f2;
    --btn-ink: #131615;
    --shadow: 0 1px 0 rgb(255 255 255 / 0.04) inset, 0 24px 60px -28px rgb(0 0 0 / 0.7);
  }
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}

/* Green light behind the page: two soft fields that drift slowly. Fixed and transform-only, so it costs nothing while scrolling. */
body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  opacity: var(--glow);
  will-change: transform;
}
body::before {
  top: -24vmax;
  right: -18vmax;
  width: 78vmax;
  height: 78vmax;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 85%, transparent), color-mix(in srgb, var(--accent) 30%, transparent) 45%, transparent 100%);
  animation: drift-a 24s ease-in-out infinite alternate;
}
body::after {
  bottom: -30vmax;
  left: -26vmax;
  width: 70vmax;
  height: 70vmax;
  background: radial-gradient(closest-side, rgb(46 196 170 / 0.75), rgb(46 196 170 / 0.22) 50%, transparent 100%);
  animation: drift-b 30s ease-in-out infinite alternate;
}

body {
  position: relative;
  isolation: isolate;
  margin: 0;
  color: var(--ink);
  font-family: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
p,
ul,
ol,
fieldset {
  margin: 0;
  padding: 0;
}
fieldset {
  border: 0;
  min-width: 0;
}
ul,
ol {
  list-style: none;
}
a {
  color: inherit;
}
button,
input {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.ico {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

/* ── Header ─────────────────────────────────────────────────────────────── */

.nav__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.lang {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}
.lang button {
  border: 0;
  background: none;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition:
    background 0.25s var(--ease),
    color 0.25s var(--ease);
}
.lang button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--bg);
}

/* ── Hero ───────────────────────────────────────────────────────────────── */

.hero {
  display: grid;
  gap: 2rem;
  padding-top: clamp(1rem, 2.5vw, 3rem);
  padding-bottom: clamp(3rem, 7vw, 6rem);
}
.hero__title {
  font-size: clamp(2.6rem, 11.5vw, 5.25rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.02;
}
.line {
  display: block;
  overflow: hidden;
  /* room for umlauts and descenders inside the reveal mask */
  padding-block: 0.08em 0.12em;
  margin-block: -0.08em -0.12em;
}
.line__in {
  display: block;
  white-space: nowrap;
}
.hero__copy {
  min-width: 0;
}
.rot {
  display: inline-block;
  color: var(--accent-display);
  transition:
    transform 0.45s var(--ease),
    opacity 0.3s ease;
}
.rot.out {
  transform: translateY(-0.45em);
  opacity: 0;
}
.rot.pre {
  transform: translateY(0.45em);
  opacity: 0;
  transition: none;
}
.hero__sub {
  margin-top: 1.25rem;
  max-width: 34ch;
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  line-height: 1.5;
  color: var(--muted);
}

@media (min-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 500px);
    align-items: center;
    gap: clamp(2.5rem, 5vw, 5rem);
  }
  .hero__title {
    font-size: clamp(3.5rem, 6.4vw, 5.5rem);
  }
}

/* ── Application card ───────────────────────────────────────────────────── */

/* Frosted panel (a web approximation of glass: blur + a light edge). Solid when transparency is reduced. */
.card {
  position: relative;
  background: var(--glass);
  backdrop-filter: blur(26px) saturate(150%);
  -webkit-backdrop-filter: blur(26px) saturate(150%);
  border: 1px solid var(--glass-line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
  padding: clamp(1.25rem, 3vw, 2rem);
  scroll-margin-top: 1rem;
}
.form {
  display: grid;
  gap: 0.95rem;
}
.form__pair {
  display: grid;
  gap: 0.95rem;
}
@media (min-width: 560px) {
  .form__pair {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}
.form__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.form__title {
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.form__hint {
  margin-top: 0.15rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* Four segments, one per answer: fills as the form is completed. */
.steps {
  display: flex;
  gap: 4px;
  padding-top: 0.6rem;
}
.steps span {
  position: relative;
  width: 13px;
  height: 4px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.steps span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  border-radius: inherit;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.steps span.on::after {
  transform: scaleX(1);
}

.field {
  display: grid;
  gap: 0.4rem;
}
.field > label,
.field > legend {
  font-size: 0.875rem;
  font-weight: 500;
}
.field > legend {
  margin-bottom: 0.4rem;
}
.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field select {
  width: 100%;
  height: 48px;
  padding: 0 1rem;
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: var(--r-field);
  font-size: 1rem; /* 16px: no zoom on iOS */
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.field input::-webkit-calendar-picker-indicator {
  display: none !important;
}
.field input::placeholder {
  color: var(--muted);
  opacity: 0.75;
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.75rem;
  color: var(--ink);
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%237d8581' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 18px;
}
.field select.empty {
  color: var(--muted);
}
.field select option {
  color: #0c0f0d;
  background: #fff;
}
.field input[type="text"]:hover,
.field input[type="tel"]:hover,
.field input[type="email"]:hover,
.field select:hover {
  border-color: color-mix(in srgb, var(--ink) 30%, var(--line));
}
.field input[type="text"]:focus,
.field input[type="tel"]:focus,
.field input[type="email"]:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent-ink);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent);
}
.field__help {
  font-size: 0.8125rem;
  color: var(--muted);
}
.field__error {
  font-size: 0.8125rem;
  color: var(--danger);
}
.field__error:empty {
  display: none;
}
.field.bad input[type="text"],
.field.bad input[type="tel"],
.field.bad input[type="email"],
.field.bad select,
.field.bad .pill span,
.field.bad .veh__card {
  border-color: var(--danger);
}
.field.bad .field__help {
  display: none;
}
.field.shake {
  animation: shake 0.4s var(--ease);
}

/* Vehicle picker: three options, a highlight that slides to the chosen one. */
.veh {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  --i: 0;
}
.veh__thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: calc((100% - 16px) / 3);
  height: 100%;
  border-radius: var(--r-field);
  background: var(--accent-soft);
  border: 1.5px solid var(--accent-ink);
  opacity: 0;
  transform: translateX(calc(var(--i) * (100% + 8px)));
  transition:
    transform 0.5s var(--ease),
    opacity 0.25s ease;
  pointer-events: none;
}
.veh.chosen .veh__thumb {
  opacity: 1;
}
.veh__opt {
  position: relative;
  cursor: pointer;
}
.veh__opt input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.veh__card {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  padding: 0.65rem 0.25rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: var(--r-field);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted);
  transition:
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.2s var(--ease);
}
.veh__card .ico {
  width: 26px;
  height: 26px;
  stroke-width: 1.5;
  transition: transform 0.3s var(--ease);
}
.veh__opt:active .veh__card {
  transform: scale(0.97);
}
.veh__opt input:checked + .veh__card {
  color: var(--ink);
  border-color: transparent;
}
.veh__opt input:checked + .veh__card .ico {
  color: var(--accent-ink);
  animation: drive 0.6s var(--spring);
}
.veh__opt input:focus-visible + .veh__card {
  outline: 2px solid var(--accent-ink);
  outline-offset: 3px;
}
@media (hover: hover) {
  .veh__opt:hover .veh__card {
    color: var(--ink);
  }
  .veh__opt:hover input:not(:checked) + .veh__card .ico {
    transform: translateX(3px);
  }
}

/* Contract type: four choices, two by two on a phone, one row on desktop. */
.pills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
@media (min-width: 560px) {
  /* One row; each pill as wide as its label needs. */
  .pills {
    display: flex;
  }
  .pill {
    flex: 1 1 auto;
  }
}
.pill {
  position: relative;
  cursor: pointer;
}
.pill input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.pill span {
  display: grid;
  place-items: center;
  height: 44px;
  padding: 0 0.6rem;
  border: 1px solid var(--line);
  border-radius: var(--r-field);
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--muted);
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.25s ease,
    transform 0.2s var(--ease);
}
.pill:active span {
  transform: scale(0.97);
}
.pill input:checked + span {
  color: var(--ink);
  background: var(--accent-soft);
  border-color: var(--accent-ink);
  box-shadow: inset 0 0 0 0.5px var(--accent-ink);
}
.pill input:focus-visible + span {
  outline: 2px solid var(--accent-ink);
  outline-offset: 3px;
}
@media (hover: hover) {
  .pill:hover span {
    color: var(--ink);
  }
}

/* "Are you a student?": a switch, off by default. */
.switch {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 48px;
  padding: 0 0.9rem 0 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-field);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
}
.switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.switch__track {
  position: relative;
  flex: none;
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 18%, transparent);
  transition: background 0.25s ease;
}
.switch__track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.25);
  transition: transform 0.3s var(--spring);
}
.switch input:checked + .switch__track {
  background: var(--accent);
}
.switch input:checked + .switch__track::after {
  transform: translateX(18px);
}
.switch input:focus-visible + .switch__track {
  outline: 2px solid var(--accent-ink);
  outline-offset: 3px;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ── Buttons ────────────────────────────────────────────────────────────── */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  height: 54px;
  padding: 0 1.75rem;
  border: 0;
  border-radius: 999px;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition:
    transform 0.2s var(--ease),
    background 0.2s ease;
}
.btn--primary {
  background: var(--btn-bg);
  color: var(--btn-ink);
}
.btn--block {
  width: 100%;
}
.btn__arrow {
  transition: transform 0.35s var(--ease);
}
@media (hover: hover) {
  .btn:hover .btn__arrow {
    transform: translateX(4px);
  }
}
.btn:active {
  transform: scale(0.98);
}
.btn[aria-busy="true"] {
  pointer-events: none;
}
.btn[aria-busy="true"] .btn__arrow {
  display: none;
}
/* Sending: a light band sweeps across the button instead of a spinner. */
.btn[aria-busy="true"]::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, color-mix(in srgb, var(--accent) 55%, transparent) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: sweep 1.1s ease-in-out infinite;
}

.form__error {
  font-size: 0.875rem;
  color: var(--danger);
  text-align: center;
}
.form__error:empty {
  display: none;
}
.form__legal {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--muted);
  text-align: center;
}

/* ── Success state: everything centred, the check large ───────────────────── */

.done {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.6rem;
  padding-block: 1rem;
  text-align: center;
  outline: none;
}
.done[hidden] {
  display: none;
}
.done__mark {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: var(--accent);
  color: #06281a;
  box-shadow:
    0 0 0 10px color-mix(in srgb, var(--accent) 16%, transparent),
    0 22px 50px -22px color-mix(in srgb, var(--accent) 80%, transparent);
  animation: pop 0.6s var(--spring) both;
}
.done__mark svg {
  width: 44px;
  height: 44px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.done__mark path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 0.45s 0.3s var(--ease) forwards;
}
.done__title {
  font-size: clamp(1.85rem, 3.4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
  animation: rise 0.6s 0.15s var(--ease) both;
}
.done__text {
  color: var(--muted);
  font-size: 1.0625rem;
  animation: rise 0.6s 0.25s var(--ease) both;
}
/* What happens next: the confirmation email with the personal upload link. */
.done__mail {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  max-width: 28rem;
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: var(--r-field);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 28%, transparent);
  font-size: 0.9375rem;
  line-height: 1.5;
  text-align: left;
  animation: rise 0.6s 0.35s var(--ease) both;
}
.done__mail .ico {
  width: 22px;
  height: 22px;
  margin-top: 0.1rem;
  color: var(--accent-ink);
}
.done__mail strong {
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* ── Celebration: after sending, a check lands in the middle of the screen while vehicles race past ── */

.cele {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  overflow: hidden;
  touch-action: none;
  cursor: pointer;
}
.cele__veil {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--bg) 93%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: fade 0.25s ease both;
}
.cele__traffic {
  position: absolute;
  inset: 0;
}
.cele__veil,
.cele__traffic,
.cele__title,
.cele__ring {
  transition: opacity 0.45s ease;
}
.cele.out .cele__veil,
.cele.out .cele__traffic,
.cele.out .cele__title,
.cele.out .cele__ring {
  opacity: 0;
}
/* A lane is a point in the middle of the screen with a direction; its vehicle crosses the whole viewport along it. */
.cele__lane {
  position: absolute;
  left: 50%;
  width: 0;
  height: 0;
}
.cele__v {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  color: var(--ink);
  animation: zoom 0.7s cubic-bezier(0.5, 0, 0.2, 1) both;
  will-change: transform;
}
.cele__v--accent {
  color: var(--accent-display);
}
.cele__v .ico {
  width: var(--s);
  height: var(--s);
  stroke-width: 1.5;
  transform: skewX(-12deg);
}
/* Speed lines behind the vehicle */
.cele__v i {
  position: absolute;
  right: 92%;
  top: 50%;
  width: calc(var(--s) * 4.5);
  height: max(2px, calc(var(--s) * 0.06));
  border-radius: 999px;
  background: linear-gradient(to left, currentColor, transparent);
  opacity: 0.4;
}
.cele__v i::before,
.cele__v i::after {
  content: "";
  position: absolute;
  right: 12%;
  width: 55%;
  height: max(1px, 60%);
  border-radius: inherit;
  background: inherit;
}
.cele__v i::before {
  top: calc(var(--s) * -0.24);
}
.cele__v i::after {
  top: calc(var(--s) * 0.2);
  right: 30%;
  width: 40%;
}
.cele__center {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 1.75rem;
  padding: 1.5rem;
  text-align: center;
}
.cele__check {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(108px, 24vmin, 152px);
  aspect-ratio: 1;
  border-radius: 999px;
  background: var(--accent);
  color: #06281a;
  box-shadow: 0 28px 60px -24px color-mix(in srgb, var(--accent) 80%, transparent);
  animation: pop 0.7s var(--spring) 0.1s both;
}
.cele__check svg {
  width: 46%;
  height: 46%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cele__check path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 0.5s 0.45s var(--ease) forwards;
}
.cele__ring {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid var(--accent);
  animation: ring 1.2s var(--ease) 0.35s both;
}
.cele__ring + .cele__ring {
  animation-delay: 0.65s;
}
.cele__title {
  font-size: clamp(1.75rem, 5.5vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.1;
  animation: rise 0.6s 0.55s var(--ease) both;
}
/* The card's own check waits until the big one has flown into its place. */
.done__mark.held {
  visibility: hidden;
}

/* ── Sections ───────────────────────────────────────────────────────────── */

.section {
  padding-block: clamp(3rem, 7vw, 5.5rem);
}
.section__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

/* Benefits: four tiles that look the same, each with a small moving detail. */
.bento {
  display: grid;
  gap: 12px;
}
@media (min-width: 760px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-height: 220px;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  background:
    linear-gradient(155deg, color-mix(in srgb, var(--accent) 10%, transparent), transparent 55%),
    var(--glass);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--glass-line);
  border-radius: var(--r-card);
  overflow: hidden;
  isolation: isolate;
  transition:
    translate 0.4s var(--ease),
    border-color 0.35s ease,
    box-shadow 0.4s ease;
}
/* Cursor spotlight (desktop): the tile lights up where the pointer is. */
.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s ease;
}
/* A soft green light breathing in the corner. */
.tile::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -110px;
  z-index: -1;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 30%, transparent), transparent);
  animation: orb 9s ease-in-out infinite alternate;
  animation-delay: calc(var(--k, 0) * -2.3s);
}
@media (hover: hover) {
  .tile:hover {
    translate: 0 -4px;
    border-color: color-mix(in srgb, var(--accent) 50%, var(--glass-line));
    box-shadow: 0 26px 50px -32px color-mix(in srgb, var(--accent) 70%, transparent);
  }
  .tile:hover::before {
    opacity: 1;
  }
  .tile:hover .tile__chip {
    transform: rotate(-6deg) scale(1.06);
  }
}
.tile__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: auto;
  padding-bottom: 1.75rem;
}
.tile__chip {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 32%, transparent);
  transition: transform 0.4s var(--spring);
}
.tile__chip .ico {
  width: 22px;
  height: 22px;
}
.tile h3 {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.tile h3 [data-wage] {
  color: var(--accent-display);
  font-variant-numeric: tabular-nums;
}
.tile__text {
  max-width: 40ch;
  color: var(--muted);
}

/* The moving details (decorative). */
.live {
  flex: none;
  color: var(--accent-display);
}
/* Pay: bars that keep climbing */
.live--bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 30px;
}
.live--bars i {
  width: 6px;
  border-radius: 3px;
  background: currentColor;
  transform-origin: bottom;
  animation: bar 1.9s ease-in-out infinite;
}
.live--bars i:nth-child(1) {
  height: 40%;
}
.live--bars i:nth-child(2) {
  height: 55%;
  animation-delay: 0.15s;
}
.live--bars i:nth-child(3) {
  height: 70%;
  animation-delay: 0.3s;
}
.live--bars i:nth-child(4) {
  height: 85%;
  animation-delay: 0.45s;
}
.live--bars i:nth-child(5) {
  height: 100%;
  animation-delay: 0.6s;
}
/* Contract: a signature that writes itself */
.live--sign {
  width: 80px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.live--sign path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: sign 4.2s ease-in-out infinite;
}
/* Hours: the days of a week lighting up in the driver's own pattern */
.live--week {
  display: flex;
  align-items: center;
  gap: 5px;
}
.live--week i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.22;
  animation: day 4.2s ease-in-out infinite;
}
.live--week i:nth-child(2) {
  animation-delay: 0.6s;
}
.live--week i:nth-child(3) {
  animation-delay: 2.4s;
}
.live--week i:nth-child(4) {
  animation-delay: 1.2s;
}
.live--week i:nth-child(5) {
  animation-delay: 3s;
}
.live--week i:nth-child(6) {
  animation-delay: 1.8s;
}
.live--week i:nth-child(7) {
  animation-delay: 3.6s;
}
/* Phone: three steps, a light moving through them */
.live--steps {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 78px;
  height: 14px;
}
.live--steps::before {
  content: "";
  position: absolute;
  inset: 50% 4px auto;
  height: 2px;
  margin-top: -1px;
  background: currentColor;
  opacity: 0.25;
}
.live--steps i {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: color-mix(in srgb, currentColor 35%, var(--bg));
}
.live--steps b {
  position: absolute;
  left: 0;
  top: 0;
  width: 14px;
  height: 14px;
  margin-left: -3px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 22%, transparent);
  animation: step 3.6s var(--ease) infinite;
}

/* The way to the first delivery: the line draws itself from stop to stop, each stop lights up as it arrives. */
.route {
  display: grid;
  gap: 1.75rem;
  padding-left: 2.25rem;
}
.stop {
  position: relative;
  --at: calc(var(--n) * 0.36s + 0.1s);
}
.stop:not(:last-child)::before,
.stop:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(-2.25rem + 7px);
  top: calc(0.3rem + 16px);
  bottom: calc(-1.75rem - 0.3rem);
  width: 2px;
  background: var(--line);
}
.stop:not(:last-child)::after {
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.36s linear var(--at);
}
.route.in .stop::after {
  transform: none;
}
.stop__dot {
  position: absolute;
  left: -2.25rem;
  top: 0.3rem;
  z-index: 1;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--bg);
  border: 2px solid var(--line);
  transition:
    border-color 0.3s ease var(--at),
    background 0.3s ease var(--at),
    transform 0.5s var(--spring) var(--at);
}
.route.in .stop__dot {
  border-color: var(--accent);
  background: var(--accent);
  transform: scale(1.12);
}
.stop h3 {
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.stop p {
  color: var(--muted);
}
.js .stop h3,
.js .stop p {
  opacity: 0.35;
  transition: opacity 0.5s ease var(--at);
}
.js .route.in .stop h3,
.js .route.in .stop p {
  opacity: 1;
}
@media (min-width: 860px) {
  .route {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
    padding-left: 0;
    padding-top: 2.75rem;
  }
  .stop:not(:last-child)::before,
  .stop:not(:last-child)::after {
    left: 16px;
    right: -2rem;
    top: calc(-2.75rem + 7px);
    bottom: auto;
    width: auto;
    height: 2px;
  }
  .stop:not(:last-child)::after {
    transform: scaleX(0);
    transform-origin: left;
  }
  .stop__dot {
    left: 0;
    top: -2.75rem;
  }
  .stop p {
    max-width: 24ch;
  }
}

/* FAQ */
.faq__list {
  max-width: 760px;
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
  interpolate-size: allow-keywords;
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0;
  font-size: 1.0625rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary .ico {
  color: var(--muted);
  transition: transform 0.35s var(--ease);
}
.faq details[open] summary .ico {
  transform: rotate(45deg);
}
.faq details p {
  padding-bottom: 1.25rem;
  max-width: 62ch;
  color: var(--muted);
}
.faq details::details-content {
  block-size: 0;
  overflow: hidden;
  transition:
    block-size 0.4s var(--ease),
    content-visibility 0.4s allow-discrete;
}
.faq details[open]::details-content {
  block-size: auto;
}

/* Closing call to action */
.closer {
  display: grid;
  justify-items: start;
  gap: 1.5rem;
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3.5rem, 8vw, 6.5rem);
}
.closer h2 {
  max-width: 14ch;
  font-size: clamp(2.25rem, 6.5vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

/* Footer */
.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 1.5rem calc(1.5rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--muted);
}
.footer__note {
  max-width: 60ch;
}
.footer__links {
  display: flex;
  gap: 1.25rem;
}
.footer__links a {
  text-underline-offset: 3px;
}
.form__legal a {
  text-underline-offset: 2px;
}

/* Phone: the button follows once the form is out of view. */
.dock {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 10;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform 0.45s var(--ease);
}
.dock.show {
  transform: none;
}
@media (min-width: 960px) {
  .dock {
    display: none;
  }
}
@media (max-width: 959px) {
  /* The docked button already covers this one. */
  .closer .btn {
    display: none;
  }
  body.docked .footer {
    padding-bottom: calc(6rem + env(safe-area-inset-bottom));
  }
}

/* ── Motion ─────────────────────────────────────────────────────────────── */

.js .line__in {
  animation: line 0.9s var(--ease) both;
}
.js .line:nth-child(2) .line__in {
  animation-delay: 0.09s;
}
.js .rise {
  animation: rise 0.8s var(--d, 0s) var(--ease) both;
}
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s var(--ease) var(--d, 0s),
    transform 0.7s var(--ease) var(--d, 0s);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}

@keyframes line {
  from {
    transform: translateY(105%);
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}
@keyframes drive {
  0% {
    transform: translateX(-14px);
    opacity: 0;
  }
  100% {
    transform: none;
    opacity: 1;
  }
}
@keyframes zoom {
  from {
    transform: translateX(-95vmax);
  }
  to {
    transform: translateX(95vmax);
  }
}
@keyframes ring {
  from {
    transform: scale(1);
    opacity: 0.8;
  }
  to {
    transform: scale(2.8);
    opacity: 0;
  }
}
@keyframes fade {
  from {
    opacity: 0;
  }
}
@keyframes drift-a {
  to {
    transform: translate(-9vmax, 12vmax) scale(1.12);
  }
}
@keyframes drift-b {
  to {
    transform: translate(12vmax, -8vmax) scale(0.9);
  }
}
@keyframes orb {
  to {
    transform: translate(-40px, -30px) scale(1.25);
  }
}
@keyframes bar {
  0%,
  100% {
    transform: scaleY(0.45);
  }
  50% {
    transform: scaleY(1);
  }
}
@keyframes sign {
  0% {
    stroke-dashoffset: 1;
    opacity: 1;
  }
  55%,
  85% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 0;
  }
}
@keyframes day {
  0%,
  100% {
    opacity: 0.22;
    transform: none;
  }
  18%,
  42% {
    opacity: 1;
    transform: scale(1.2);
  }
}
@keyframes step {
  0%,
  12% {
    transform: translateX(0);
  }
  38%,
  52% {
    transform: translateX(35px);
  }
  78%,
  100% {
    transform: translateX(70px);
  }
}
@keyframes sweep {
  to {
    transform: translateX(100%);
  }
}
@keyframes pop {
  from {
    transform: scale(0.4);
    opacity: 0;
  }
}
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes shake {
  25% {
    transform: translateX(-5px);
  }
  50% {
    transform: translateX(4px);
  }
  75% {
    transform: translateX(-2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .reveal,
  .js .stop h3,
  .js .stop p {
    opacity: 1;
    transform: none;
  }
  .done__mark path,
  .live--sign path {
    stroke-dashoffset: 0;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .card {
    background: var(--bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
