/*
 * ChiTransit website.
 *
 * Tokens mirror the mobile app (mobile/src/theme/tokens.ts, dark palette). The same rule
 * applies here as in the app: chrome is monochrome, and the eight CTA route colours are the
 * only saturated thing on screen — plus amber for timetable-based times and yellow for a
 * service warning, which mean the same thing they mean in the app.
 */

@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.35s;
  animation-timing-function: ease;
}

:root {
  color-scheme: dark;

  /* App palette (dark) */
  --paper: #0d1117;
  --surface: #141a22;
  --raised: #1c2430;
  --ink: #e6ebf1;
  --muted: #b4becb;
  --faint: #828d9b;
  --rule: #2a333f;
  --pressed: #1e2833;
  --scheduled: #d9ae68;
  --warning: #ffd60a;
  --on-warning: #12171e;
  --deep: #090c11;

  /* CTA route colours (mobile/src/cta/routes.ts) */
  --red: #c60c30;
  --blue: #00a1de;
  --brown: #905027;
  --green: #009b3a;
  --orange: #f9831c;
  --purple: #522398;
  --pink: #e27ea6;
  --yellow: #f9e300;

  /* Divvy's teal and a closed station's grey (mobile/src/features/map/divvy/divvyLayers.ts) */
  --divvy: #14b8a6;
  --divvy-closed: #8a93a0;

  --radius-card: 18px;
  --radius-sheet: 26px;
  --shell: min(1200px, calc(100% - 48px));
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  animation: page-fade-in 0.4s ease both;
}

@keyframes page-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select,
a {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Halos and floating cards may reach past the edge; never let them make the page scroll sideways. */
main {
  overflow-x: clip;
}

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

.icon {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Shared bits ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* The signature: a short bar of all eight line colours. */
.line-stripe {
  display: inline-flex;
  width: 64px;
  height: 4px;
  overflow: hidden;
  border-radius: 4px;
  background: linear-gradient(90deg,
      var(--red) 0 12.5%, var(--blue) 0 25%, var(--brown) 0 37.5%, var(--green) 0 50%,
      var(--orange) 0 62.5%, var(--purple) 0 75%, var(--pink) 0 87.5%, var(--yellow) 0 100%);
}

.line-stripe-full {
  display: block;
  width: 100%;
  height: 3px;
  border-radius: 0;
}

.live-dot {
  position: relative;
  width: 8px;
  height: 8px;
  flex: none;
  background: var(--ink);
  border-radius: 50%;
}

.live-dot::after {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--ink);
  content: "";
  animation: ping 1.8s var(--ease) infinite;
}

@keyframes ping {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(3); opacity: 0; }
}

.section-head {
  width: var(--shell);
  margin: 0 auto;
}

.section-head h2 {
  max-width: 17ch;
  font-size: clamp(2.2rem, 5vw, 3.9rem);
}

.section-head > p:not(.eyebrow) {
  max-width: 58ch;
  margin-top: 20px;
  color: var(--muted);
  font-size: 1.08rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms var(--ease), background 180ms ease, border-color 180ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-light {
  color: var(--on-warning);
  background: var(--ink);
}

.btn-light:hover,
.btn-light:focus-visible {
  background: #fff;
}

.btn-ghost {
  color: var(--ink);
  background: transparent;
  border-color: var(--rule);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--muted);
}

.free-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  color: var(--muted);
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Reveal on scroll. Only hidden once JS has said it can reveal them. */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 800ms var(--ease), transform 800ms var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.js .reveal-delay-1 { transition-delay: 120ms; }
.js .reveal-delay-2 { transition-delay: 240ms; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 17, 23, 0.78);
  border-bottom: 1px solid var(--rule);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: var(--shell);
  min-height: var(--header-h);
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-name span {
  color: var(--muted);
}

.brand-mark {
  width: auto;
  height: 32px;
}

.nav-menu,
.nav-links,
.nav-actions {
  display: flex;
  align-items: center;
}

.nav-menu {
  gap: clamp(20px, 3vw, 44px);
}

.nav-links {
  gap: clamp(16px, 2.2vw, 30px);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.nav-links a {
  position: relative;
  padding: 24px 0;
  transition: color 160ms ease;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: 16px;
  left: 0;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  content: "";
  transform: scaleX(0);
  transition: transform 200ms var(--ease);
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="page"] {
  color: var(--ink);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-actions {
  gap: 14px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  color: var(--on-warning);
  background: var(--ink);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  transition: background 180ms ease, transform 180ms var(--ease);
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: #fff;
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 11px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 12px;
  cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 200ms ease, opacity 200ms ease;
}

.menu-toggle[aria-expanded="true"] span:nth-of-type(2) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-of-type(3) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-of-type(4) { transform: translateY(-6px) rotate(-45deg); }

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

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--rule);
}

.hero-network {
  position: absolute;
  z-index: -2;
  inset: 0;
}

.hero-network svg {
  width: 100%;
  height: 100%;
}

.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, var(--paper) 0%, rgba(13, 17, 23, 0.92) 30%, rgba(13, 17, 23, 0.4) 50%, rgba(13, 17, 23, 0.12) 70%, rgba(13, 17, 23, 0.3) 100%),
    linear-gradient(0deg, var(--paper) 0%, rgba(13, 17, 23, 0) 30%);
  content: "";
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: 48px;
  width: var(--shell);
  min-height: calc(100vh - var(--header-h));
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) 0 clamp(64px, 8vw, 104px);
}

.hero-copy .eyebrow {
  color: var(--ink);
}

.hero h1 {
  font-size: clamp(2.9rem, 6.6vw, 5.6rem);
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.hero h1 .h1-soft {
  color: var(--faint);
}

.hero-description {
  max-width: 50ch;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.4vw, 1.16rem);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 28px;
}

.launch-date {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 12px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 0.86rem;
}

.launch-date-value {
  font-weight: 700;
}

.hero-availability {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.86rem;
}

.hero-platform {
  padding: 6px 12px;
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-weight: 600;
  transition: border-color 160ms ease;
}

.hero-platform:hover,
.hero-platform:focus-visible {
  border-color: var(--muted);
}

.launch-date.is-spotlight {
  animation: launch-glow 1.2s ease-out 1;
}

.launch-signup.is-spotlight .launch-signup-row {
  animation: launch-pop 1s ease-out 1;
}

.launch-signup.is-spotlight .launch-signup-input {
  animation: launch-glow 1.2s ease-out 1;
}

@keyframes launch-pop {
  0% { transform: scale(1); }
  30% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

@keyframes launch-glow {
  0% { box-shadow: 0 0 0 0 rgba(230, 235, 241, 0.55); }
  100% { box-shadow: 0 0 0 14px rgba(230, 235, 241, 0); }
}

.launch-signup {
  max-width: 520px;
  margin-top: 30px;
}

.launch-signup-title {
  display: block;
  margin-bottom: 10px;
  font-weight: 700;
}

.launch-signup-row {
  display: flex;
  gap: 6px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 999px;
  transition: border-color 160ms ease;
}

.launch-signup-row:focus-within {
  border-color: var(--muted);
}

.launch-signup-input {
  flex: 1;
  min-width: 0;
  padding: 10px 16px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 999px;
  outline: none;
}

.launch-signup-input::placeholder {
  color: var(--faint);
}

.launch-signup-submit {
  padding: 11px 20px;
  color: var(--on-warning);
  background: var(--ink);
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background 160ms ease;
}

.launch-signup-submit:hover,
.launch-signup-submit:focus-visible {
  background: #fff;
}

.launch-signup-submit:disabled {
  opacity: 0.6;
  cursor: progress;
}

.launch-signup-fineprint {
  margin-top: 10px;
  color: var(--faint);
  font-size: 0.8rem;
}

.launch-signup-fineprint a,
.launch-signup-note a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.launch-signup-note {
  margin-top: 10px;
  color: var(--ink);
  font-size: 0.88rem;
}

.launch-signup-note.is-error {
  color: var(--warning);
}

.hero-device {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-map-window {
  display: none;
}

/* Small cards that float beside a phone, like system notifications. */
.float-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 12px;
  background: rgba(28, 36, 48, 0.97);
  border: 1px solid var(--rule);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  font-size: 0.82rem;
  animation: bob 6s ease-in-out infinite;
}

.float-card strong {
  display: block;
  font-size: 0.9rem;
}

.float-card span {
  color: var(--muted);
}

.float-card .float-icon {
  display: grid;
  width: 36px;
  height: 36px;
  flex: none;
  place-items: center;
  color: var(--ink);
  background: var(--paper);
  border-radius: 10px;
  font-size: 18px;
}

.float-card .float-bar {
  width: 5px;
  height: 36px;
  flex: none;
  border-radius: 3px;
}

.float-card .float-time {
  margin-left: 6px;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.hero-device .float-a {
  top: 41%;
  left: -4%;
}

.hero-device .float-b {
  right: -4%;
  bottom: 14%;
  animation-delay: -3s;
}

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

/* ---------- Departures ticker ---------- */

.ticker {
  position: relative;
  overflow: hidden;
  background: var(--deep);
  border-bottom: 1px solid var(--rule);
  -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 70s linear infinite;
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-group {
  display: flex;
  flex-shrink: 0;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 26px;
  border-right: 1px solid var(--rule);
  font-size: 0.92rem;
  white-space: nowrap;
}

.ticker-item .dots {
  display: flex;
  gap: 3px;
}

.ticker-item .dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.ticker-item .dest {
  font-weight: 600;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Phone mockup ---------- */

.phone {
  --phone-w: 296px;
  position: relative;
  z-index: 2;
  width: var(--phone-w);
  flex: none;
  aspect-ratio: 9 / 19.5;
  padding: 9px;
  background: linear-gradient(145deg, #2a323d, #0b0e12 40%, #1a2028);
  border-radius: 46px;
  box-shadow:
    0 0 0 1px #3a4452,
    0 40px 90px rgba(0, 0, 0, 0.6),
    0 10px 30px rgba(0, 0, 0, 0.4);
}

.phone::before {
  position: absolute;
  z-index: 5;
  top: 19px;
  left: 50%;
  width: 11px;
  height: 11px;
  background: #050608;
  border-radius: 50%;
  content: "";
  transform: translateX(-50%);
}

.screen {
  position: relative;
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  color: var(--ink);
  background: var(--paper);
  border-radius: 38px;
  font-size: 10.5px;
  line-height: 1.35;
  letter-spacing: 0;
}

.screen h1,
.screen h2,
.screen h3,
.screen h4 {
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.status-bar {
  display: flex;
  height: 30px;
  flex: none;
  align-items: center;
  justify-content: space-between;
  padding: 4px 22px 0 26px;
  font-size: 10.5px;
  font-weight: 600;
}

.status-bar .sb-icons {
  display: flex;
  gap: 5px;
  align-items: center;
}

.status-bar .sb-icons i {
  display: block;
  width: 11px;
  height: 9px;
  background: var(--ink);
  border-radius: 2px;
}

.status-bar .sb-icons i:first-child {
  clip-path: polygon(50% 100%, 0 20%, 100% 20%);
  border-radius: 0;
}

.status-bar .sb-icons i:nth-child(2) {
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  border-radius: 0;
}

.status-bar .sb-icons i:last-child {
  width: 7px;
  height: 11px;
}

.screen-body {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 10px 14px 0;
}

.screen-title {
  font-size: 1.8em;
  font-weight: 700;
}

.screen-sub {
  margin-top: 2px;
  color: var(--muted);
  font-size: 1.05em;
}

.tab-bar {
  display: grid;
  flex: none;
  grid-template-columns: repeat(5, 1fr);
  padding: 7px 4px 16px;
  background: var(--paper);
  border-top: 1px solid var(--rule);
}

.tab-bar span {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--faint);
  font-size: 0.86em;
  font-weight: 500;
}

.tab-bar .icon {
  font-size: 17px;
  stroke-width: 1.7;
}

.tab-bar .is-active {
  color: var(--ink);
  font-weight: 700;
}

.tab-bar .is-active::before {
  position: absolute;
  top: -8px;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  content: "";
}

.tab-bar::after {
  grid-column: 1 / -1;
  justify-self: center;
  width: 84px;
  height: 3px;
  margin-top: 9px;
  background: var(--ink);
  border-radius: 3px;
  content: "";
}

/* App-style pieces used inside the phones */

.app-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 12px;
}

.app-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 500ms ease, border-color 500ms ease;
}

.app-pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.app-btn-light {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  color: var(--on-warning);
  background: var(--ink);
  border-radius: 12px;
  font-weight: 700;
}

.app-section-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 8px;
}

.app-section-row .sq {
  display: grid;
  width: 30px;
  height: 30px;
  flex: none;
  place-items: center;
  border: 1px solid var(--rule);
  border-radius: 9px;
  font-size: 14px;
}

.app-section-row b {
  display: block;
  font-size: 1.3em;
  letter-spacing: -0.01em;
}

.app-section-row small {
  display: block;
  color: var(--muted);
  font-size: 0.95em;
}

.app-section-row .view-all {
  margin-left: auto;
  padding: 4px 9px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 0.9em;
  font-weight: 600;
  white-space: nowrap;
}

/* Explore home */

.ex-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ex-head img {
  width: 26px;
  height: auto;
}

.ex-head b {
  font-size: 1.55em;
  letter-spacing: -0.02em;
}

.ex-head .round {
  display: grid;
  width: 30px;
  height: 30px;
  margin-left: auto;
  place-items: center;
  border: 1px solid var(--rule);
  border-radius: 50%;
  font-size: 13px;
}

.ex-cats {
  display: grid;
  grid-template-columns: repeat(3, 1fr) 0.35fr;
  gap: 8px;
}

.ex-cats figure {
  margin: 0;
  text-align: center;
}

.ex-cats img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 9px;
}

.ex-cats figcaption {
  margin-top: 4px;
  font-weight: 600;
}

.ex-picks {
  position: relative;
  height: 196px;
  margin: 0 -14px;
}

.ex-pick {
  position: absolute;
  top: 0;
  left: 50%;
  width: 72%;
  height: 100%;
  overflow: hidden;
  border-radius: 14px;
  transform: translateX(-50%);
  animation: pick-cycle 12s var(--ease) infinite;
}

.ex-pick img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ex-pick-text {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 40px 10px 12px;
  color: #fff;
  background: linear-gradient(180deg, rgba(18, 23, 30, 0) 0%, rgba(18, 23, 30, 0.85) 100%);
  text-align: center;
}

.ex-pick-text small {
  display: block;
  font-size: 0.82em;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ex-pick-text b {
  display: block;
  font-size: 1.5em;
}

.ex-pick-text .explore-btn {
  display: inline-block;
  margin-top: 6px;
  padding: 5px 16px;
  color: var(--on-warning);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  font-weight: 700;
}

/* Three picks rotate through centre / right / left. */
.ex-pick:nth-child(2) { animation-delay: -8s; }
.ex-pick:nth-child(3) { animation-delay: -4s; }

@keyframes pick-cycle {
  0%, 28% { transform: translateX(-50%) scale(1); opacity: 1; z-index: 3; }
  33%, 61% { transform: translateX(-160%) scale(0.86); opacity: 0.55; z-index: 1; }
  66%, 95% { transform: translateX(60%) scale(0.86); opacity: 0.55; z-index: 2; }
  100% { transform: translateX(-50%) scale(1); opacity: 1; z-index: 3; }
}

.ex-chips {
  display: flex;
  gap: 6px;
  margin: 0 -14px;
  padding: 0 14px;
  overflow: hidden;
}

.ex-chips .app-pill.is-on {
  color: #fff;
  border-color: transparent;
}

.ex-chips .app-pill.is-on i {
  background: #fff !important;
}

/* Map screen */

.map-screen {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #1b1f25;
}

.map-screen svg {
  width: 100%;
  height: 100%;
}

.map-overlay {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
}

.map-search {
  position: absolute;
  top: 8px;
  right: 14px;
  left: 14px;
  display: flex;
  gap: 8px;
}

.map-search .field {
  flex: 1;
  padding: 10px 14px;
  color: var(--muted);
  background: rgba(13, 17, 23, 0.94);
  border: 1px solid var(--rule);
  border-radius: 12px;
}

.map-search .go {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 12px;
  color: var(--on-warning);
  background: var(--ink);
  border-radius: 999px;
  font-weight: 700;
}

.map-fabs {
  position: absolute;
  right: 12px;
  bottom: 14px;
  display: grid;
  gap: 8px;
}

.map-fabs span,
.map-services {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  background: rgba(13, 17, 23, 0.94);
  border: 1px solid var(--rule);
  border-radius: 50%;
  font-size: 15px;
}

.map-services {
  position: absolute;
  bottom: 14px;
  left: 12px;
  display: flex;
  width: auto;
  gap: 6px;
  padding: 0 14px;
  border-radius: 999px;
  font-weight: 700;
}

.map-services b {
  position: absolute;
  top: -6px;
  right: -4px;
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  color: var(--on-warning);
  background: var(--ink);
  border-radius: 50%;
  font-size: 0.85em;
}

.map-label {
  font: 600 11px "Inter", system-ui, sans-serif;
  fill: #c9d1db;
  paint-order: stroke;
  stroke: #1b1f25;
  stroke-width: 3px;
}

.map-hood {
  font: 600 12px "Inter", system-ui, sans-serif;
  fill: #7c8592;
  letter-spacing: 0.02em;
}

.loc-pulse {
  animation: loc-pulse 2.4s ease-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

@keyframes loc-pulse {
  0% { transform: scale(0.6); opacity: 0.7; }
  100% { transform: scale(2.6); opacity: 0; }
}

/* Line board */

.board-head {
  display: flex;
  gap: 8px;
}

.board-head .back {
  margin-top: 4px;
  font-size: 15px;
}

.board {
  position: relative;
  margin-top: 12px;
}

.board::before {
  position: absolute;
  top: 6px;
  bottom: 0;
  left: 5px;
  width: 3px;
  background: var(--blue);
  content: "";
}

.board-stop {
  position: relative;
  padding: 0 0 9px 24px;
  margin-bottom: 9px;
  border-bottom: 1px solid var(--rule);
}

.board-stop::before {
  position: absolute;
  top: 2px;
  left: 0;
  width: 13px;
  height: 13px;
  background: var(--paper);
  border: 3px solid var(--blue);
  border-radius: 50%;
  content: "";
}

.board-stop h4 {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 6px;
  font-size: 1.3em;
  font-weight: 700;
}

.board-stop h4 .icon {
  font-size: 13px;
}

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

.time-chip {
  padding: 3px 7px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 5px;
  white-space: nowrap;
}

.time-chip b {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  transition: color 300ms ease;
}

.time-chip b.is-sched {
  color: var(--scheduled);
}

.time-chip b.tick {
  animation: tick 600ms var(--ease);
}

@keyframes tick {
  0% { opacity: 0; transform: translateY(-4px); }
  100% { opacity: 1; transform: none; }
}

.time-chip b {
  display: inline-block;
}

/* Plan: PlanScreen and JourneyCard, scaled to the phone. */

.plan-body {
  padding: 0;
}

.plan-scroll {
  padding: 10px 14px 18px;
  animation: plan-scroll 16s ease-in-out infinite;
}

@keyframes plan-scroll {
  0%, 22% { transform: translateY(0); }
  45%, 75% { transform: translateY(calc(-1 * var(--scroll, 0px))); }
  95%, 100% { transform: translateY(0); }
}

.pl-fields {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding: 8px 8px 8px 6px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 16px;
}

.pl-rail {
  display: flex;
  width: 24px;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
}

.pl-dot {
  width: 10px;
  height: 10px;
  border: 2px solid var(--muted);
  border-radius: 50%;
}

.pl-sq {
  width: 9px;
  height: 9px;
  background: var(--ink);
  border-radius: 2px;
}

.pl-swap {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  background: var(--paper);
  border-radius: 50%;
  font-size: 11px;
}

.pl-inputs {
  display: grid;
  flex: 1;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  gap: 6px;
}

.pl-input {
  display: flex;
  min-width: 0;
  overflow: hidden;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 10px;
  background: var(--paper);
  border-radius: 10px;
  font-size: 1.05em;
  white-space: nowrap;
}

.pl-input .icon {
  font-size: 12px;
}

.pl-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pl-end {
  margin-left: auto;
  font-size: 14px !important;
}

.pl-clear {
  color: var(--muted);
  font-size: 13px !important;
}

.plan-find {
  margin-top: 8px;
  padding: 11px;
  font-size: 1.05em;
}

.pl-options {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 8px;
  padding: 9px 12px 9px 9px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 16px;
}

.pl-options .pl-opt-icon {
  display: grid;
  width: 26px;
  height: 26px;
  flex: none;
  place-items: center;
  background: var(--paper);
  border-radius: 50%;
  font-size: 13px;
}

.pl-options b {
  display: block;
  font-size: 1.15em;
}

.pl-options small {
  color: var(--muted);
  font-size: 0.95em;
}

.pl-options > .icon {
  margin-left: auto;
  font-size: 13px;
}

.jc {
  display: grid;
  gap: 9px;
  margin-top: 10px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 11px;
}

.jc-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.jc-lead {
  display: grid;
  gap: 3px;
}

.jc-dur {
  font-size: 1.75em;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.jc-arrive {
  color: var(--muted);
  font-weight: 600;
}

.jc-methods {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px;
  margin: 2px 0;
}

.jc-methods .icon {
  font-size: 14px;
}

.jc-methods .icon.sep {
  color: var(--muted);
  font-size: 11px;
}

.jc-chip {
  padding: 1px 5px;
  color: #fff;
  border-radius: 3px;
  font-size: 0.88em;
  font-weight: 600;
}

.jc-when {
  font-weight: 600;
}

.jc-when.is-sched {
  color: var(--scheduled);
}

.jc-meta {
  color: var(--muted);
  font-size: 0.88em;
}

.jc-chev {
  color: var(--muted);
  font-size: 0.8em;
}

.jc-facts {
  display: grid;
  gap: 5px;
}

.jc-facts div {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.jc-facts span {
  width: 34px;
  flex: none;
  color: var(--muted);
  font-size: 0.88em;
  font-weight: 600;
}

.jc-facts b {
  font-size: 1.35em;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.jc-actions {
  display: flex;
}

.jc-btn {
  margin-left: auto;
  padding: 6px 10px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  font-weight: 600;
}

.journey-bars {
  display: flex;
  gap: 3px;
}

.journey-bars i {
  height: 5px;
  min-width: 5px;
  border-radius: 3px;
  transform-origin: left;
}

.journey-bars i.walk {
  background: var(--rule);
}

.is-visible .journey-bars i {
  animation: bar-grow 900ms var(--ease) both;
}

.is-visible .journey-bars i:nth-child(2) { animation-delay: 150ms; }
.is-visible .journey-bars i:nth-child(3) { animation-delay: 300ms; }
.is-visible .journey-bars i:nth-child(4) { animation-delay: 450ms; }

@keyframes bar-grow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* Place page */

.place-hero {
  position: relative;
  height: 40%;
  margin: -40px -14px 0;
}

.place-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.place-hero .credit {
  position: absolute;
  bottom: 8px;
  left: 10px;
  padding: 3px 8px;
  color: #fff;
  background: rgba(18, 23, 30, 0.72);
  border-radius: 999px;
  font-size: 0.82em;
}

.place-hero .count {
  right: 10px;
  left: auto;
}

.place-hero .round {
  position: absolute;
  top: 40px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--on-warning);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  font-size: 14px;
}

.place-eyebrow {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.9em;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.place-title {
  margin-top: 2px;
  font-size: 2em;
  font-weight: 700;
}

.place-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  color: var(--muted);
}

.place-meta b {
  color: var(--ink);
}

.place-open {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 5px 10px;
  background: var(--surface);
  border-radius: 999px;
  font-weight: 600;
}

.place-open i {
  width: 6px;
  height: 6px;
  background: var(--ink);
  border-radius: 50%;
}

.place-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.place-actions span {
  display: grid;
  height: 34px;
  place-items: center;
  border: 1px solid var(--rule);
  border-radius: 10px;
  font-size: 14px;
}

.place-actions span:first-child {
  color: var(--on-warning);
  background: var(--ink);
  border-color: var(--ink);
}

.place-get {
  margin-top: 10px;
  padding: 10px 12px;
}

.place-get small {
  color: var(--muted);
}

.place-get div {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
}

.place-get .dot-red {
  width: 7px;
  height: 7px;
  margin-left: auto;
  background: var(--red);
  border-radius: 50%;
}

.coupon {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 9px 12px;
  border: 1px dashed var(--muted);
  border-radius: 10px;
}

.coupon .icon {
  font-size: 13px;
}

/* Divvy */

/* Stations on the map, drawn as the app draws them: a teal diamond with a white edge, the bike count
   beside it, and a ring that grows and fades on one slow 2.4s beat shared by every station. */
.divvy-station rect {
  fill: var(--divvy);
  stroke: #fff;
  stroke-width: 1.6;
}

.divvy-station.is-empty {
  opacity: 0.45;
}

.divvy-station.is-closed rect {
  fill: var(--divvy-closed);
}

.divvy-station.is-selected rect {
  stroke-width: 2.4;
}

.divvy-count {
  font: 700 11px "Inter", system-ui, sans-serif;
  fill: var(--ink);
  paint-order: stroke;
  stroke: #1b1f25;
  stroke-width: 3px;
}

.divvy-station.is-selected .divvy-count {
  font-size: 13px;
}

.divvy-pulse {
  fill: var(--divvy);
  fill-opacity: 0.3;
  stroke: var(--divvy);
  stroke-width: 2;
  stroke-opacity: 0.95;
  vector-effect: non-scaling-stroke;
  transform-box: fill-box;
  transform-origin: center;
  animation: divvy-pulse 2.4s linear infinite;
}

@keyframes divvy-pulse {
  from { transform: scale(1); opacity: 1; }
  to { transform: scale(3.2); opacity: 0; }
}

/* The same diamond and pulse, as a glyph in HTML (the hero's floating Divvy card). */
.divvy-diamond {
  position: relative;
  display: block;
  width: 13px;
  height: 13px;
  background: var(--divvy);
  border: 2px solid #fff;
  border-radius: 2px;
  transform: rotate(45deg);
}

.divvy-diamond::after {
  position: absolute;
  inset: -5px;
  border: 2px solid var(--divvy);
  border-radius: 50%;
  background: rgba(20, 184, 166, 0.3);
  content: "";
  animation: divvy-pulse 2.4s linear infinite;
}


/* The station sheet (DivvyStationDetail): flush to the tab bar, rounded on top, figures without boxes. */
.divvy-sheet {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  gap: 8px;
  padding: 0 16px 14px;
  background: var(--surface);
  border-top: 1px solid var(--rule);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -12px 30px rgba(0, 0, 0, 0.45);
}

.divvy-sheet .grab {
  justify-self: center;
  width: 30px;
  height: 4px;
  margin: 8px 0 2px;
  background: var(--rule);
  border-radius: 4px;
}

.ds-kind {
  color: var(--muted);
  font-size: 0.88em;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.divvy-sheet h4 {
  margin-top: -5px;
  font-size: 1.75em;
  font-weight: 700;
}

.ds-sub,
.ds-note,
.ds-numbers small {
  color: var(--muted);
  font-size: 0.88em;
}

.ds-sub {
  margin-top: -6px;
}

.ds-numbers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 4px;
}

.ds-numbers div {
  display: grid;
  gap: 1px;
}

.ds-numbers.ds-scooters {
  margin-top: 0;
}

.ds-numbers[hidden] {
  display: none;
}

.ds-numbers b {
  justify-self: start;
  font-size: 1.75em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.ds-numbers b.tick {
  animation: tick 600ms var(--ease);
}

.ds-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  font-weight: 600;
}

.ds-action .icon {
  font-size: 12px;
}

/* ---------- Feature rows ---------- */

.features {
  padding: clamp(80px, 11vw, 140px) 0 0;
}

.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 7vw, 100px);
  width: var(--shell);
  margin: clamp(72px, 10vw, 128px) auto 0;
}

.feature-row.is-flipped .feature-copy {
  order: 2;
}

.feature-copy h3 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
}

.feature-copy > p:not(.eyebrow) {
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.05rem;
}

.feature-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 6px 12px 6px 8px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.feature-tab .icon {
  font-size: 16px;
}

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

.feature-points li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--ink);
  font-weight: 500;
}

.feature-points li::before {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex: none;
  border: 2px solid var(--muted);
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px var(--paper), inset 0 0 0 9px var(--ink);
  content: "";
}

.feature-visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 24px 0;
}

/* A soft halo behind each phone, tinted with the line colour that section is about. */
.feature-visual::before {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  width: 120%;
  max-width: 560px;
  aspect-ratio: 1;
  background: radial-gradient(circle, var(--halo, rgba(0, 161, 222, 0.16)) 0%, transparent 62%);
  content: "";
  transform: translate(-50%, -50%);
}

.legend-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
}

.legend-chip b {
  display: inline-block;
  min-width: 46px;
  padding: 2px 8px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 6px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.legend-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
}

/* Route-drawing card beside the Plan phone */

.route-card {
  position: absolute;
  z-index: 3;
  right: -4%;
  bottom: 6%;
  width: 184px;
  padding: 12px;
  background: rgba(28, 36, 48, 0.97);
  border: 1px solid var(--rule);
  border-radius: 18px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55);
}

.route-card svg {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.route-card p {
  display: grid;
  gap: 2px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.78rem;
}

.route-card p b {
  color: var(--ink);
}

.route-draw {
  stroke-dasharray: var(--len);
  stroke-dashoffset: var(--len);
  animation: draw 10s var(--ease) infinite;
  animation-delay: var(--delay, 0s);
}

@keyframes draw {
  0% { stroke-dashoffset: var(--len); opacity: 1; }
  30%, 85% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

.route-pin {
  animation: pin-in 10s var(--ease) infinite;
  animation-delay: var(--delay, 0s);
  transform-box: fill-box;
  transform-origin: center bottom;
}

@keyframes pin-in {
  0%, 4% { transform: scale(0); }
  10%, 85% { transform: scale(1); }
  100% { transform: scale(0); }
}

/* Two phones overlapping (Explore) */

.phone-pair {
  position: relative;
  display: flex;
  align-items: center;
}

.phone-pair .phone-back {
  margin-right: -110px;
  transform: scale(0.88) rotate(-4deg);
  transform-origin: right center;
  filter: brightness(0.75);
}

/* ---------- Bento: built for every rider ---------- */

.rider {
  padding: clamp(96px, 12vw, 160px) 0 0;
}

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  width: var(--shell);
  margin: 48px auto 0;
}

.tile {
  position: relative;
  grid-column: span 2;
  overflow: hidden;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  transition: border-color 200ms ease, transform 300ms var(--ease);
}

.tile:hover {
  border-color: #3a4452;
  transform: translateY(-3px);
}

.tile.span-3 {
  grid-column: span 3;
}

.tile.span-4 {
  grid-column: span 4;
}

.tile-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-bottom: 18px;
  background: var(--raised);
  border-radius: 12px;
  font-size: 22px;
}

.tile h3 {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.tile p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

.tile .soon {
  position: absolute;
  top: 24px;
  right: 24px;
  padding: 4px 10px;
  color: var(--muted);
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.cv-swatches {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
  margin-top: 22px;
}

.cv-swatches span {
  height: 54px;
  border-radius: 10px;
  transition: background-color 700ms ease;
}

.cv-mode {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.cv-mode span {
  padding: 5px 12px;
  color: var(--faint);
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: color 300ms ease, background 300ms ease, border-color 300ms ease;
}

.cv-mode span.is-on {
  color: var(--on-warning);
  background: var(--ink);
  border-color: var(--ink);
}

.alert-banner {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 20px;
  padding: 12px 14px;
  color: var(--on-warning);
  background: var(--warning);
  border-radius: 12px;
  font-size: 0.86rem;
}

.alert-banner b {
  display: block;
}

.alert-banner .icon {
  margin-top: 2px;
  font-size: 18px;
}

.saved-mini {
  margin-top: 20px;
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 12px;
  font-size: 0.86rem;
}

.saved-mini div {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
}

.saved-mini div + div {
  border-top: 1px solid var(--rule);
}

.saved-mini i {
  width: 4px;
  height: 16px;
  border-radius: 2px;
}

.saved-mini b {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}

.stepfree-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.stepfree-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
}

.share-ping {
  position: relative;
  display: grid;
  height: 96px;
  place-items: center;
  margin-top: 18px;
  background:
    repeating-linear-gradient(0deg, transparent 0 15px, rgba(255, 255, 255, 0.04) 15px 16px),
    repeating-linear-gradient(90deg, transparent 0 15px, rgba(255, 255, 255, 0.04) 15px 16px),
    var(--paper);
  border: 1px solid var(--rule);
  border-radius: 12px;
}

.share-ping i {
  position: absolute;
  width: 14px;
  height: 14px;
  background: var(--ink);
  border: 3px solid var(--paper);
  border-radius: 50%;
}

.share-ping i::before,
.share-ping i::after {
  position: absolute;
  inset: -3px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  content: "";
  animation: ring 2.6s ease-out infinite;
}

.share-ping i::after {
  animation-delay: 1.3s;
}

@keyframes ring {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(5); opacity: 0; }
}

/* ---------- Mission ---------- */

.mission-section {
  padding: clamp(96px, 12vw, 160px) 0 0;
}

.mission-shell {
  width: var(--shell);
  margin: 0 auto;
}

.mission-intro h2 {
  max-width: 20ch;
  font-size: clamp(2.2rem, 5vw, 3.9rem);
}

.mission-intro > p:not(.eyebrow) {
  max-width: 68ch;
  margin-top: 22px;
  color: var(--muted);
  font-size: 1.08rem;
}

/* The three pillars sit like stations along a line. */
.mission-pillars {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
  padding-top: 40px;
}

.mission-pillars::before {
  position: absolute;
  top: 9px;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red), var(--blue) 50%, var(--green));
  border-radius: 4px;
  content: "";
}

.mission-pillar {
  position: relative;
}

.mission-pillar::before {
  position: absolute;
  top: -40px;
  left: 0;
  width: 22px;
  height: 22px;
  background: var(--paper);
  border: 4px solid var(--ink);
  border-radius: 50%;
  content: "";
}

.mission-pillar-index {
  color: var(--faint);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.mission-pillar h3 {
  margin-top: 6px;
  font-size: 1.35rem;
}

.mission-pillar p {
  margin-top: 10px;
  color: var(--muted);
}

/* ---------- Tutorial ---------- */

.tutorial-section {
  padding: clamp(96px, 12vw, 160px) 0 0;
}

.tutorial-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 48px;
  width: var(--shell);
  margin: 0 auto;
}

.tutorial-intro h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.tutorial-intro > p:not(.eyebrow) {
  margin-top: 16px;
  color: var(--muted);
}

.tutorial-video {
  position: relative;
  display: flex;
  aspect-ratio: 16 / 9;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(0, 161, 222, 0.16), transparent 50%),
    radial-gradient(circle at 80% 90%, rgba(198, 12, 48, 0.14), transparent 50%),
    var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sheet);
}

.tutorial-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.tutorial-play {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  color: var(--on-warning);
  background: var(--ink);
  border-radius: 50%;
  box-shadow: 0 0 0 10px rgba(230, 235, 241, 0.08);
}

.tutorial-play svg {
  width: 30px;
  height: 30px;
  margin-left: 4px;
}

.tutorial-soon {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

/* ---------- Closing CTA with the running train ---------- */

.cta-band {
  position: relative;
  overflow: hidden;
  margin-top: clamp(96px, 12vw, 160px);
  padding: clamp(72px, 9vw, 112px) 0 0;
  background: var(--deep);
  border-top: 1px solid var(--rule);
  text-align: center;
}

.cta-band h2 {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  letter-spacing: -0.05em;
}

.cta-band p {
  max-width: 52ch;
  margin: 18px auto 0;
  color: var(--muted);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.track {
  position: relative;
  height: 150px;
  margin-top: 56px;
}

/* The elevated structure the train runs on. */
.track::before {
  position: absolute;
  right: 0;
  bottom: 30px;
  left: 0;
  height: 10px;
  background: repeating-linear-gradient(90deg, #2a333f 0 4px, transparent 4px 22px), linear-gradient(#2a333f, #2a333f) top / 100% 3px no-repeat;
  content: "";
}

.track::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 30px;
  background: repeating-linear-gradient(90deg, transparent 0 116px, #1c2430 116px 128px);
  content: "";
}

.train {
  position: absolute;
  bottom: 40px;
  left: 0;
  width: 560px;
  animation: train-run 11s linear infinite;
}

.train svg {
  width: 100%;
  height: auto;
}

@keyframes train-run {
  from { transform: translateX(-620px); }
  to { transform: translateX(calc(100vw + 40px)); }
}

/* ---------- Why us: comparison table ---------- */

.difference-section,
.safety-section,
.reviews-section {
  padding: clamp(72px, 10vw, 128px) 0 0;
}

.reviews-section {
  padding-bottom: clamp(72px, 10vw, 128px);
}

.difference-shell,
.safety-shell,
.reviews-shell {
  width: var(--shell);
  margin: 0 auto;
}

.difference-intro h2,
.safety-intro h2,
.reviews-intro h2 {
  font-size: clamp(2.2rem, 5vw, 3.9rem);
}

.difference-intro > p:last-child,
.safety-intro p:not(.eyebrow) {
  max-width: 62ch;
  margin-top: 20px;
  color: var(--muted);
  font-size: 1.06rem;
}

.difference-table-card {
  margin-top: 40px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sheet);
}

.feature-checklist-shell {
  position: relative;
}

.feature-checklist-wrap {
  overflow-x: auto;
  padding-bottom: 4px;
  border-radius: 14px;
}

.scroll-btn {
  display: none;
}

.feature-checklist {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.feature-checklist th,
.feature-checklist td {
  padding: 18px 16px;
  border-bottom: 1px solid var(--rule);
  text-align: center;
}

.feature-checklist tbody tr:last-child th,
.feature-checklist tbody tr:last-child td {
  border-bottom: 0;
}

.feature-checklist thead th {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.feature-checklist thead th:first-child,
.feature-checklist tbody th {
  position: sticky;
  left: 0;
  z-index: 2;
  width: 34%;
  background: var(--surface);
  border-right: 1px solid var(--rule);
  text-align: left;
}

.feature-checklist tbody th {
  font-weight: 600;
}

.feature-checklist .product-column {
  color: var(--ink);
}

.feature-checklist thead th.product-column,
.feature-checklist tbody td:nth-child(2) {
  position: sticky;
  left: 34%;
  z-index: 2;
  background: var(--raised);
  border-right: 1px solid var(--rule);
}

.feature-checklist tbody td {
  width: 16.5%;
}

.feature-checklist tbody td span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 92px;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
}

.feature-checklist tbody td span::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.status-great span {
  color: #7ee2a0;
  background: rgba(0, 155, 58, 0.16);
}

.status-ok span {
  color: var(--scheduled);
  background: rgba(217, 174, 104, 0.14);
}

.status-bad span {
  color: #ff8fa3;
  background: rgba(198, 12, 48, 0.2);
}

.status-none span {
  color: var(--faint);
  background: var(--paper);
}

.checklist-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.checklist-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.legend-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.legend-great { background: #7ee2a0; }
.legend-ok { background: var(--scheduled); }
.legend-bad { background: #ff8fa3; }
.legend-none { background: var(--faint); }

/* Why us: safety */

.safety-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.safety-features {
  display: grid;
  gap: 14px;
}

.safety-feature {
  padding: 24px 26px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
}

.safety-feature-index {
  color: var(--faint);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.safety-feature h3 {
  margin-top: 6px;
  font-size: 1.25rem;
}

.safety-feature p {
  margin-top: 8px;
  color: var(--muted);
}

/* Why us: reviews */

.reviews-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.reviews-intro h2 {
  max-width: 16ch;
}

.reviews-rating {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.review-stars {
  color: var(--ink);
  letter-spacing: 0.12em;
}

.reviews-rating-value {
  font-size: 1.4rem;
  font-weight: 800;
}

.reviews-rating-count {
  color: var(--muted);
  font-size: 0.86rem;
}

.reviews-mockup-note {
  margin-top: 16px;
  color: var(--faint);
  font-size: 0.82rem;
}

.reviews-marquee {
  width: 100%;
  margin-top: 36px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}

.reviews-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 46s linear infinite;
}

.reviews-marquee:hover .reviews-track {
  animation-play-state: paused;
}

.reviews-track-group {
  display: flex;
  flex-shrink: 0;
  gap: 18px;
  padding-right: 18px;
}

.review-card {
  display: flex;
  flex: 0 0 310px;
  flex-direction: column;
  width: 310px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
}

.review-quote {
  flex: 1;
  margin: 12px 0 18px;
  font-size: 0.98rem;
}

.review-author {
  font-weight: 700;
}

.review-context {
  color: var(--muted);
  font-size: 0.86rem;
}

/* ---------- Contact ---------- */

.contact-section {
  padding: clamp(64px, 9vw, 112px) 0 clamp(72px, 10vw, 128px);
}

.contact-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
  width: var(--shell);
  margin: 0 auto;
}

.contact-intro h2 {
  font-size: clamp(2.2rem, 5vw, 3.9rem);
}

.contact-intro > p:not(.eyebrow) {
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.06rem;
}

.contact-info {
  display: grid;
  gap: 18px;
  margin-top: 32px;
  padding: 22px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.contact-info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-info-label {
  color: var(--faint);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-info-value {
  font-weight: 600;
}

.contact-social {
  display: flex;
  gap: 10px;
}

.contact-social-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 12px;
  transition: border-color 160ms ease, transform 160ms var(--ease);
}

.contact-social-icon svg {
  width: 20px;
  height: 20px;
}

.contact-social-icon:hover,
.contact-social-icon:focus-visible {
  border-color: var(--muted);
  transform: translateY(-2px);
}

.contact-faq {
  margin-top: 32px;
}

.contact-faq-title {
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.contact-faq-item {
  border-bottom: 1px solid var(--rule);
}

.contact-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.contact-faq-item summary::-webkit-details-marker {
  display: none;
}

.contact-faq-item summary::after {
  color: var(--muted);
  font-size: 1.3rem;
  font-weight: 400;
  content: "+";
  transition: transform 200ms ease;
}

.contact-faq-item[open] summary::after {
  transform: rotate(45deg);
}

.contact-faq-item p {
  padding-bottom: 16px;
  color: var(--muted);
}

.contact-faq-item a {
  color: var(--ink);
  text-decoration: underline;
}

.contact-form {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: grid;
  gap: 16px;
  padding: clamp(22px, 3vw, 32px);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sheet);
}

.contact-form-title {
  font-size: 1.4rem;
}

.contact-field {
  display: grid;
  gap: 6px;
}

.contact-field label {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  padding: 13px 14px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 12px;
  resize: vertical;
  transition: border-color 160ms ease;
}

.contact-field input:hover,
.contact-field textarea:hover {
  border-color: #3a4452;
}

.contact-field input:focus-visible,
.contact-field textarea:focus-visible {
  border-color: var(--ink);
  outline: none;
}

.contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  color: var(--on-warning);
  background: var(--ink);
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms ease;
}

.contact-submit span {
  transition: transform 160ms ease;
}

.contact-submit:hover,
.contact-submit:focus-visible {
  background: #fff;
}

.contact-submit:hover span,
.contact-submit:focus-visible span {
  transform: translateX(3px);
}

.contact-submit:disabled {
  opacity: 0.6;
  cursor: progress;
}

.contact-form-note {
  color: var(--ink);
  font-size: 0.9rem;
}

.contact-form-note.is-error {
  color: var(--warning);
}

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

/* ---------- Legal + team ---------- */

.legal-page {
  padding: clamp(56px, 8vw, 96px) 0 clamp(72px, 10vw, 128px);
}

.legal-shell,
.team-shell {
  width: min(780px, calc(100% - 48px));
  margin: 0 auto;
}

.team-shell {
  width: var(--shell);
}

.legal-page h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  letter-spacing: -0.045em;
}

.legal-updated {
  margin-top: 12px;
  color: var(--faint);
  font-size: 0.88rem;
}

.legal-intro {
  max-width: 64ch;
  margin-top: 20px;
  color: var(--muted);
  font-size: 1.06rem;
}

.legal-block {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}

.legal-block h2 {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.legal-block p,
.legal-block li {
  color: var(--muted);
}

.legal-block p {
  margin-top: 12px;
}

.legal-block ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.legal-block li {
  margin-top: 8px;
}

.legal-block strong {
  color: var(--ink);
}

.legal-block a,
.legal-other a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

.legal-block ol li {
  margin-top: 8px;
  color: var(--muted);
}

.legal-block code {
  padding: 2px 6px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 6px;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.88em;
}

/* Privacy / Terms, as a segmented control like the app's own toggles. */
.legal-switch {
  display: inline-flex;
  gap: 4px;
  margin-top: 22px;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 999px;
}

.legal-switch a {
  padding: 8px 16px;
  color: var(--muted);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 160ms ease, background 160ms ease;
}

.legal-switch a:hover,
.legal-switch a:focus-visible {
  color: var(--ink);
}

.legal-switch a[aria-current="page"] {
  color: var(--on-warning);
  background: var(--ink);
}

.legal-source {
  margin-top: 16px;
  padding: 14px 16px;
  color: var(--muted);
  border-left: 3px solid var(--rule);
  font-size: 0.92rem;
}

.legal-source a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* "The short version": a card, the way the app sets apart what matters most. */
.legal-block.legal-short {
  padding: 22px 24px 24px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
}

.legal-short p,
.legal-short li {
  color: var(--ink);
}

.legal-table-wrap {
  margin-top: 14px;
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: 14px;
}

.legal-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.legal-table th,
.legal-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
  text-align: left;
  vertical-align: top;
}

.legal-table thead th {
  color: var(--faint);
  background: var(--surface);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.legal-table tbody th {
  color: var(--ink);
  font-weight: 600;
}

.legal-table tbody tr:last-child th,
.legal-table tbody tr:last-child td {
  border-bottom: 0;
}

/* The website's own section, set apart from the app's document above it. */
.legal-block.legal-website {
  margin-top: 56px;
  padding: 26px 24px 24px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--ink);
  border-radius: var(--radius-card);
}

.legal-website .eyebrow {
  margin-bottom: 8px;
}

.legal-other {
  margin-top: 48px;
  padding: 20px 22px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
}

.team-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  transition: transform 300ms var(--ease), border-color 200ms ease;
}

.team-card:hover {
  border-color: #3a4452;
  transform: translateY(-4px);
}

.team-avatar {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  filter: grayscale(0.25);
}

.team-name {
  display: block;
  padding: 16px 18px 18px;
  font-weight: 700;
}

/* ---------- Dialogs ---------- */

.signup-modal {
  width: min(380px, calc(100% - 32px));
  padding: 32px 28px 26px;
  color: var(--ink);
  background: var(--raised);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sheet);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
  text-align: center;
}

.signup-modal::backdrop {
  background: rgba(5, 7, 10, 0.7);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.signup-modal-icon {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  margin: 0 auto 16px;
  color: var(--on-warning);
  background: var(--ink);
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 800;
}

.signup-modal h3 {
  font-size: 1.4rem;
}

.signup-modal p {
  margin-top: 8px;
  color: var(--muted);
}

.signup-modal-done {
  width: 100%;
  margin-top: 22px;
  padding: 12px;
  color: var(--on-warning);
  background: var(--ink);
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

.signup-modal-done:hover,
.signup-modal-done:focus-visible {
  background: #fff;
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 0;
  background: var(--deep);
  border-top: 1px solid var(--rule);
}

.cta-band + .site-footer,
.cta-band ~ .site-footer {
  border-top: 0;
}

.footer-shell {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.9fr;
  gap: 40px;
  width: var(--shell);
  margin: 0 auto;
  padding: 56px 0 40px;
}

.footer-brand-block p {
  max-width: 34ch;
  margin-top: 14px;
  color: var(--muted);
}

.footer-social-list {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 160ms ease;
}

.footer-social:hover,
.footer-social:focus-visible {
  color: var(--ink);
}

.footer-social-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 10px;
}

.footer-social-icon svg {
  width: 17px;
  height: 17px;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  align-content: start;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-links a {
  transition: color 160ms ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--ink);
}

.footer-action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.footer-action > span:first-child {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  color: var(--on-warning);
  background: var(--ink);
  border-radius: 999px;
  font-weight: 700;
  transition: background 160ms ease, transform 160ms var(--ease);
}

.footer-cta:hover,
.footer-cta:focus-visible {
  background: #fff;
  transform: translateY(-2px);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  width: var(--shell);
  margin: 0 auto;
  padding: 22px 0;
  color: var(--faint);
  border-top: 1px solid var(--rule);
  font-size: 0.84rem;
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
  color: var(--ink);
}

.footer-disclaimer {
  width: var(--shell);
  margin: 0 auto;
  padding: 0 0 28px;
  color: var(--faint);
  font-size: 0.78rem;
}

.photo-credit {
  width: var(--shell);
  margin: -14px auto 0;
  padding: 0 0 28px;
  color: var(--faint);
  font-size: 0.74rem;
}

.photo-credit a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.scroll-down-btn {
  position: fixed;
  z-index: 40;
  right: 22px;
  bottom: 22px;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--ink);
  background: rgba(28, 36, 48, 0.9);
  border: 1px solid var(--rule);
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  font-size: 1.1rem;
  cursor: pointer;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: transform 160ms var(--ease), border-color 160ms ease;
}

.scroll-down-btn:hover,
.scroll-down-btn:focus-visible {
  border-color: var(--muted);
  transform: translateY(-2px);
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .hero-device .float-a { left: 0; }
  .hero-device .float-b { right: 0; }
  .route-card { right: 0; }
  .phone-pair .phone-back { display: none; }
}

@media (max-width: 980px) {
  .hero-shell,
  .feature-row,
  .tutorial-shell,
  .safety-shell,
  .contact-shell {
    grid-template-columns: 1fr;
  }

  .hero-shell {
    min-height: 0;
    gap: 56px;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(13, 17, 23, 0.88) 0%, rgba(13, 17, 23, 0.84) 40%, rgba(13, 17, 23, 0.25) 58%, rgba(13, 17, 23, 0.2) 88%, var(--paper) 100%);
  }

  .feature-row.is-flipped .feature-copy {
    order: 0;
  }

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

  .tile,
  .tile.span-3,
  .tile.span-4 {
    grid-column: span 1;
  }

  .tile.wide-md {
    grid-column: span 2;
  }

  .contact-form {
    position: static;
  }

  .footer-shell {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand-block {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 24px;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
  }

  .nav-menu.is-open {
    display: flex;
    animation: menu-in 220ms var(--ease);
  }

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

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    font-size: 1.05rem;
  }

  .nav-links a {
    padding: 14px 0;
    border-bottom: 1px solid var(--rule);
  }

  .nav-links a::after {
    display: none;
  }

  .nav-actions {
    justify-content: space-between;
    margin-top: 18px;
  }
}

@media (max-width: 720px) {
  :root {
    --shell: calc(100% - 32px);
    --header-h: 64px;
  }

  .hero-device .float-card {
    gap: 9px;
    padding: 8px 11px 8px 8px;
    border-radius: 13px;
    font-size: 0.7rem;
  }

  .hero-device .float-card strong {
    font-size: 0.76rem;
  }

  .hero-device .float-card .float-bar {
    height: 28px;
  }

  .hero-device .float-card .float-icon {
    width: 28px;
    height: 28px;
  }

  .hero-device .float-card .float-time {
    font-size: 0.88rem;
  }

  .hero-device {
    flex-direction: column;
    align-items: center;
  }

  .hero-map-window {
    display: block;
    width: 100%;
    height: 230px;
    margin-top: -24px;
  }

  .hero::before {
    background: linear-gradient(180deg,
        rgba(13, 17, 23, 0.9) 0,
        rgba(13, 17, 23, 0.86) calc(var(--window-top, 720px) - 60px),
        rgba(13, 17, 23, 0.08) var(--window-top, 720px),
        rgba(13, 17, 23, 0.08) var(--window-bottom, 950px),
        rgba(13, 17, 23, 0.4) calc(var(--window-bottom, 950px) + 120px),
        rgba(13, 17, 23, 0.4) 92%,
        var(--paper) 100%);
  }

  .hero-device .float-a {
    top: 168px;
    left: -4px;
  }

  .hero-device .float-b {
    right: -4px;
    bottom: -18px;
  }

  .launch-signup-row {
    flex-direction: column;
    border-radius: 20px;
  }

  .launch-signup-submit {
    padding: 13px;
  }

  .phone {
    --phone-w: min(290px, 80vw);
    border-radius: 42px;
  }

  .route-card {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    max-width: 210px;
    margin-top: -34px;
  }

  .feature-visual.has-card {
    flex-direction: column;
    align-items: center;
  }

  .bento {
    grid-template-columns: 1fr;
  }

  .tile.wide-md {
    grid-column: span 1;
  }

  .cv-swatches span {
    height: 40px;
  }

  .mission-pillars {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 0;
    padding-left: 44px;
  }

  .mission-pillars::before {
    top: 0;
    bottom: 0;
    left: 9px;
    right: auto;
    width: 4px;
    height: auto;
    background: linear-gradient(180deg, var(--red), var(--blue) 50%, var(--green));
  }

  .mission-pillar::before {
    top: 2px;
    left: -44px;
  }

  .train {
    width: 420px;
  }

  @keyframes train-run {
    from { transform: translateX(-460px); }
    to { transform: translateX(calc(100vw + 40px)); }
  }

  .difference-table-card {
    margin-top: 24px;
    padding: 12px;
  }

  .scroll-btn {
    position: absolute;
    z-index: 3;
    top: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    color: var(--on-warning);
    background: var(--ink);
    border: 0;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    font-size: 1.2rem;
    line-height: 1;
    transform: translateY(-50%);
    transition: transform 150ms ease, opacity 150ms ease;
  }

  .scroll-btn-left { left: 6px; }
  .scroll-btn-right { right: 6px; }

  .scroll-btn:active {
    transform: translateY(-50%) scale(0.9);
  }

  .scroll-btn:disabled {
    opacity: 0;
    pointer-events: none;
  }

  .feature-checklist {
    min-width: 560px;
    font-size: 0.74rem;
  }

  .feature-checklist th,
  .feature-checklist td {
    padding: 12px 10px;
  }

  .feature-checklist thead th {
    font-size: 0.6rem;
  }

  .feature-checklist thead th:first-child,
  .feature-checklist tbody th {
    width: 120px;
  }

  .feature-checklist thead th.product-column,
  .feature-checklist tbody td:nth-child(2) {
    left: 120px;
  }

  .feature-checklist tbody td {
    width: 110px;
  }

  .feature-checklist tbody td span {
    min-width: 0;
    padding: 5px 8px;
    font-size: 0.62rem;
  }

  .reviews-rating {
    align-items: flex-start;
  }

  .footer-shell {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .scroll-down-btn {
    right: 14px;
    bottom: 14px;
  }
}

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

  body,
  .ticker-track,
  .reviews-track,
  .float-card,
  .ex-pick,
  .train,
  .live-dot::after,
  .loc-pulse,
  .share-ping i::before,
  .share-ping i::after,
  .route-draw,
  .route-pin,
  .plan-scroll,
  .divvy-pulse,
  .divvy-diamond::after {
    animation: none !important;
  }

  .divvy-pulse,
  .divvy-diamond::after {
    opacity: 0;
  }

  .route-draw {
    stroke-dashoffset: 0;
  }

  .ex-pick:not(:first-child) {
    display: none;
  }

  .train {
    left: 50%;
    transform: translateX(-50%);
  }

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

  .is-visible .journey-bars i {
    animation: none;
  }
}
