/* GO NOW landing prototype
   Direction: Estonian transit wayfinding. Ink, paper, timetable yellow,
   route colours, editorial typography, hard edges. */

:root {
  --ink: #0a1118;
  --ink-2: #0c1821;
  --ink-3: #14212c;
  --paper: #f2eee3;
  --paper-2: #e8e1d2;
  --paper-3: #faf7ef;
  --yellow: #f5cf33;
  --yellow-dark: #dfb800;
  --sky: #7ec8e3;
  --tram: #ff8fa0;
  --bus: #6fbfe8;
  --train: #ffa55f;
  --regional: #3ce0a8;
  --muted: #93a4b2;
  --muted-dark: #5d625c;
  --line-light: rgba(242, 238, 227, 0.15);
  --line-dark: rgba(10, 17, 24, 0.16);
  --font-display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;
  --wrap: 1240px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  background: var(--ink);
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.5;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

::selection {
  background: var(--yellow);
  color: var(--ink);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button {
  border: 0;
  padding: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

figure {
  margin: 0;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

svg {
  display: block;
}

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

.section-light :focus-visible,
.section-paper :focus-visible,
.section-yellow :focus-visible {
  outline-color: var(--ink);
}

.wrap {
  width: min(var(--wrap), calc(100% - 64px));
  margin-inline: auto;
}

main:focus {
  outline: none;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 500;
  padding: 12px 16px;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Buttons and links */

.btn {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  line-height: 1;
  text-transform: uppercase;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

.btn svg {
  width: 16px;
  height: 16px;
  flex: none;
  transition: transform 180ms ease;
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn-yellow {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--ink);
}

.btn-yellow:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 rgba(242, 238, 227, 0.2);
}

.btn-dark {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.btn-dark:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 rgba(10, 17, 24, 0.16);
}

.btn-compact {
  min-height: 42px;
  padding: 0 16px;
  font-size: 10px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid currentColor;
  color: var(--yellow);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
  transition: color 180ms ease, border-color 180ms ease;
}

.text-link span {
  transition: transform 180ms ease;
}

.text-link:hover {
  color: var(--paper);
}

.text-link:hover span {
  transform: translateX(3px);
}

.text-link-dark {
  color: var(--ink);
}

.text-link-dark:hover {
  color: var(--muted-dark);
}

.text-link-light {
  margin-top: 36px;
  color: var(--yellow);
}

.text-link-light:hover {
  color: var(--paper);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  border-bottom: 1px solid var(--line-light);
}

.site-header.is-scrolled {
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
}

.header-inner {
  display: flex;
  height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  flex: none;
  align-items: center;
}

.brand img {
  width: auto;
  height: 27px;
}

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

.nav-desktop a {
  position: relative;
  padding: 8px 0;
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.66;
  transition: opacity 160ms ease;
}

.nav-desktop a::after {
  content: "";
  position: absolute;
  right: 100%;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--yellow);
  transition: right 220ms ease;
}

.nav-desktop a:hover,
.nav-desktop a[aria-current="true"] {
  opacity: 1;
}

.nav-desktop a:hover::after,
.nav-desktop a[aria-current="true"]::after {
  right: 0;
}

.header-cta {
  display: flex;
  flex: none;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  display: inline-flex;
  min-width: 38px;
  height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border: 1px solid var(--line-light);
  border-radius: 2px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition:
    border-color 160ms ease,
    color 160ms ease,
    background-color 160ms ease;
}

.lang-switch:hover {
  border-color: rgba(245, 207, 51, 0.5);
  background: rgba(245, 207, 51, 0.06);
  color: var(--yellow);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line-light);
  border-radius: 2px;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.menu-toggle:hover {
  border-color: rgba(245, 207, 51, 0.5);
  background: rgba(245, 207, 51, 0.06);
}

.menu-toggle span {
  display: block;
  width: 17px;
  height: 1px;
  margin: 3px auto;
  background: var(--paper);
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.mobile-nav {
  border-top: 1px solid var(--line-light);
  background: var(--ink);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav nav {
  padding: 10px 0;
}

.mobile-nav nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line-light);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.mobile-nav nav a span {
  color: var(--yellow);
  font-family: var(--font-mono);
  font-size: 14px;
}

.mobile-nav nav a.mobile-nav-app {
  color: var(--yellow);
}

.mobile-nav-download {
  padding: 24px 0 32px;
}

.mobile-nav-download .mono {
  margin-bottom: 14px;
  color: var(--muted);
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line-light);
  background: var(--ink);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(242, 238, 227, 0.048) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 238, 227, 0.048) 1px, transparent 1px);
  background-size: 92px 92px;
  -webkit-mask-image: radial-gradient(ellipse 100% 90% at 70% 30%, #000 12%, transparent 72%);
  mask-image: radial-gradient(ellipse 100% 90% at 70% 30%, #000 12%, transparent 72%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  top: -320px;
  right: -220px;
  width: 760px;
  height: 760px;
  border: 1px solid rgba(245, 207, 51, 0.13);
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: 56px;
  padding-block: 78px 92px;
}

.kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.kicker-divider {
  color: rgba(242, 238, 227, 0.26);
}

.kicker-clock {
  color: var(--paper);
  font-variant-numeric: tabular-nums;
}

.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--muted);
}

.dot-live {
  background: var(--regional);
  box-shadow: 0 0 0 4px rgba(60, 224, 168, 0.1);
  animation: live-pulse 2.2s ease-in-out infinite;
}

@keyframes live-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(60, 224, 168, 0.08);
    opacity: 0.82;
  }
  50% {
    box-shadow: 0 0 0 6px rgba(60, 224, 168, 0.16);
    opacity: 1;
  }
}

.hero h1 {
  max-width: 720px;
  margin: 24px 0 28px;
  font-size: clamp(3.3rem, 5.4vw, 5.2rem);
  font-weight: 900;
  letter-spacing: -0.058em;
  line-height: 0.89;
  text-wrap: balance;
}

.hero h1 .accent {
  position: relative;
  display: inline-block;
  color: var(--yellow);
}

.hero h1 .accent::after {
  content: "";
  position: absolute;
  right: 1%;
  bottom: 0.035em;
  left: 1%;
  height: 0.055em;
  background: var(--yellow);
  opacity: 0.34;
}

.hero-lede {
  max-width: 53ch;
  color: #b9c5cf;
  font-size: clamp(1.05rem, 1.45vw, 1.24rem);
  line-height: 1.58;
}

.hero-lede strong {
  color: var(--paper);
  font-weight: 600;
}

.hero-proof {
  display: flex;
  max-width: 52ch;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  color: var(--paper);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.5;
}

.proof-chip {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 8px;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.hero-proof:hover span:last-child {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  margin-top: 34px;
}

.hero-download {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid var(--line-light);
}

.hero-download-label,
.hero-download-meta {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-download-meta {
  color: var(--muted);
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.store-badge {
  display: inline-block;
  line-height: 0;
  opacity: 0.9;
  transition: opacity 160ms ease, transform 160ms ease;
}

.store-badge:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.store-badge img {
  width: auto;
  height: 40px;
}

/* Hero map panel */

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-app {
  display: flex;
  width: 100%;
  max-width: 280px;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.hero-app-shot {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(10px 10px 0 var(--yellow));
}

.hero-app-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-app-label .dot {
  width: 5px;
  height: 5px;
}

.map-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(242, 238, 227, 0.28);
  background: var(--ink-2);
  box-shadow: 12px 12px 0 var(--yellow);
}

.map-head,
.map-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 16px;
  background: var(--ink-2);
  font-size: 9px;
  letter-spacing: 0.11em;
}

.map-head {
  border-bottom: 1px solid var(--line-light);
  color: var(--muted);
}

.map-foot {
  border-top: 1px solid var(--line-light);
  color: var(--muted);
}

.map-foot a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--paper);
  transition: color 160ms ease;
}

.map-foot a:hover {
  color: var(--yellow);
}

.live-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--regional);
}

.map-stage {
  position: relative;
  aspect-ratio: 640 / 440;
  overflow: hidden;
  background: var(--ink-2);
}

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

.map-grid path {
  fill: none;
  stroke: rgba(126, 200, 227, 0.07);
  stroke-width: 1;
}

.map-water {
  fill: #0a2230;
  opacity: 0.88;
}

.map-water-line {
  fill: none;
  stroke: rgba(126, 200, 227, 0.2);
  stroke-width: 1;
}

.map-streets path {
  fill: none;
  stroke: rgba(207, 217, 229, 0.11);
  stroke-width: 1;
}

.transit {
  fill: none;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.transit-tram {
  stroke: var(--tram);
  opacity: 0.9;
}

.transit-bus {
  stroke: var(--bus);
  opacity: 0.76;
}

.transit-train {
  stroke: var(--train);
  opacity: 0.8;
}

.map-stations circle {
  fill: var(--ink-2);
  stroke: rgba(207, 217, 229, 0.8);
  stroke-width: 2;
}

.map-labels text,
.you-are-here text {
  fill: rgba(207, 217, 229, 0.48);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.17em;
}

.you-ring {
  fill: none;
  stroke: var(--yellow);
  stroke-width: 1;
  opacity: 0.5;
  transform-box: fill-box;
  transform-origin: center;
  animation: you-pulse 2.8s ease-out infinite;
}

.you-dot {
  fill: var(--yellow);
}

@keyframes you-pulse {
  0% {
    transform: scale(0.6);
    opacity: 0.8;
  }
  70%,
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

.vehicle circle {
  fill: var(--ink-2);
  stroke-width: 2.5;
}

.vehicle-tram circle {
  stroke: var(--tram);
}

.vehicle-bus circle {
  stroke: var(--bus);
}

.vehicle-train circle {
  stroke: var(--train);
}

.vehicle text {
  fill: var(--paper);
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 600;
  text-anchor: middle;
}

.vehicles-static {
  display: none;
}

.map-pop {
  position: absolute;
  bottom: 16px;
  left: 16px;
  width: min(332px, calc(100% - 32px));
  padding: 13px 14px 11px;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 6px 6px 0 rgba(10, 17, 24, 0.28);
}

.map-pop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line-dark);
}

.map-pop-head .mono {
  font-size: 9px;
}

.map-pop-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #0a7a56;
  font-size: 7px;
}

.map-pop-live .dot {
  width: 5px;
  height: 5px;
}

.map-pop-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(10, 17, 24, 0.1);
  font-size: 0.76rem;
}

.map-pop-row:last-child {
  padding-bottom: 2px;
  border-bottom: 0;
}

.map-pop-row strong {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  white-space: nowrap;
}

.map-pop-dest {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

.map-coords {
  position: absolute;
  right: 16px;
  bottom: 16px;
  color: rgba(207, 217, 229, 0.35);
  font-size: 7px;
  letter-spacing: 0.1em;
}

.route-chip {
  display: inline-flex;
  min-width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  padding: 0 7px;
  border-radius: 2px;
  background: var(--bus);
  color: #07131c;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.route-tram {
  background: var(--tram);
}

.route-bus {
  background: var(--bus);
}

.route-train {
  background: var(--train);
}

/* Ticker */

.ticker {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-top: 1px solid rgba(10, 17, 24, 0.24);
  background: var(--yellow);
  color: var(--ink);
}

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

.ticker-group {
  display: flex;
  align-items: center;
}

.ticker-group span {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding: 12px 22px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker-group span::after {
  content: "·";
  opacity: 0.38;
}

@keyframes ticker-run {
  to {
    transform: translateX(-50%);
  }
}

/* Section scaffolding */

.section {
  position: relative;
  padding: 108px 0;
}

.section-light {
  background: var(--paper);
  color: var(--ink);
}

.section-paper {
  background: var(--paper-2);
  color: var(--ink);
}

.section-dark {
  background: var(--ink);
  color: var(--paper);
}

.hero,
.section-dark,
.business-band,
.site-footer {
  background-image: url("assets/transit-lines.svg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.section-yellow {
  background: var(--yellow);
  color: var(--ink);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  align-items: end;
  gap: 60px;
  padding-bottom: 42px;
  border-bottom: 1px solid var(--line-dark);
}

.section-dark .section-head {
  border-color: var(--line-light);
}

.section-index {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  color: var(--muted-dark);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.section-index span {
  display: inline-flex;
  width: 27px;
  height: 27px;
  flex: none;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 9px;
  letter-spacing: 0;
}

.section-index-light {
  color: var(--yellow);
}

.section-index-dark {
  color: rgba(10, 17, 24, 0.64);
}

.section h2 {
  font-size: clamp(2.55rem, 4.65vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.052em;
  line-height: 0.98;
  text-wrap: balance;
}

.section-lede {
  max-width: 48ch;
  justify-self: end;
  color: var(--muted-dark);
  font-size: 1.02rem;
  line-height: 1.66;
}

.section-lede-light {
  color: #aab8c3;
}

.section-lede-dark {
  color: rgba(10, 17, 24, 0.72);
}

/* Feature list */

.feature-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line-dark);
}

.feature {
  padding: 30px 26px 34px;
  border-left: 1px solid var(--line-dark);
}

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

.feature-num {
  color: var(--muted-dark);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.feature h3 {
  margin: 15px 0 10px;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.feature p {
  color: var(--muted-dark);
  font-size: 0.88rem;
  line-height: 1.58;
}

.feature-foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
}

/* Timetable */

.board {
  margin-top: 70px;
  border: 1px solid var(--ink);
  background: var(--paper-3);
}

.board-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 26px;
  border-bottom: 1px solid var(--ink);
}

.board-head .mono {
  margin-bottom: 8px;
  color: var(--muted-dark);
  font-size: 9px;
}

.board-head h3 {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
}

.table-scroll {
  overflow-x: auto;
}

.table-scroll:focus-visible {
  outline-offset: -4px;
}

.departures {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.departures th {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-dark);
  color: var(--muted-dark);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-align: left;
  text-transform: uppercase;
}

.departures td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--line-dark);
  vertical-align: middle;
}

.departures tr:last-child td {
  border-bottom: 0;
}

.departures .is-next {
  background: rgba(245, 207, 51, 0.26);
}

.departures td:nth-child(4) {
  color: var(--muted-dark);
  font-family: var(--font-mono);
  font-size: 0.76rem;
}

.departures td:nth-child(5) {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  white-space: nowrap;
}

.departures td strong {
  font-weight: 600;
}

.status-next {
  color: #0a7a56;
}

.status-min {
  display: block;
}

.status-late {
  display: block;
  margin-top: 2px;
  color: #a7441a;
  font-size: 0.58rem;
  letter-spacing: 0;
  text-transform: none;
}

.mode {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mode::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: currentColor;
}

.mode-tram {
  color: #b03048;
}

.mode-bus {
  color: #1f6fa5;
}

.mode-train {
  color: #a65a10;
}

.board-note {
  padding: 11px 26px 13px;
  border-top: 1px solid var(--line-dark);
  color: var(--muted-dark);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* Route section */

.route-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: 78px;
}

.route-copy h2 {
  max-width: 11ch;
}

.route-copy .section-lede {
  margin-top: 28px;
  justify-self: start;
}

.check-list {
  margin-top: 38px;
  border-top: 1px solid var(--line-light);
}

.check-list li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-light);
}

.check {
  position: relative;
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border: 1px solid var(--yellow);
}

.check::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 4px;
  height: 4px;
  background: var(--yellow);
}

.check-list h3 {
  margin-bottom: 5px;
  font-size: 1.04rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.check-list p {
  max-width: 46ch;
  color: #aab8c3;
  font-size: 0.9rem;
  line-height: 1.58;
}

.route-visual {
  position: relative;
}

.route-app {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.route-app img {
  display: block;
  width: min(100%, 560px);
  height: auto;
  filter: drop-shadow(12px 12px 0 var(--yellow));
}

.route-app .visual-caption {
  max-width: 44ch;
}

.journey-card {
  max-width: 560px;
  margin-left: auto;
  padding: 28px;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 14px 14px 0 var(--yellow);
}

.journey-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-dark);
}

.journey-top .mono {
  margin-bottom: 8px;
  color: var(--muted-dark);
  font-size: 8px;
}

.journey-top h3 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.journey-top h3 span {
  color: var(--muted-dark);
}

.journey-time {
  display: flex;
  flex: none;
  align-items: baseline;
  gap: 4px;
}

.journey-time strong {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 0.8;
}

.journey-time span {
  color: var(--muted-dark);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
}

.journey-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line-dark);
}

.journey-tab {
  padding: 6px 9px;
  border: 1px solid var(--line-dark);
  color: var(--muted-dark);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.journey-tab.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.journey-steps {
  position: relative;
  padding: 9px 0 3px;
}

.journey-steps::before {
  content: "";
  position: absolute;
  top: 24px;
  bottom: 22px;
  left: 65.5px;
  width: 3px;
  background: linear-gradient(
    180deg,
    var(--muted-dark) 0%,
    var(--muted-dark) 11%,
    var(--tram) 11%,
    var(--tram) 47%,
    var(--ink) 47%,
    var(--ink) 53%,
    var(--bus) 53%,
    var(--bus) 88%,
    var(--muted-dark) 88%,
    var(--muted-dark) 100%
  );
}

.step {
  display: grid;
  grid-template-columns: 56px 22px minmax(0, 1fr);
  align-items: start;
  padding: 8px 0;
}

.step-time {
  padding-top: 4px;
  color: var(--muted-dark);
  font-size: 0.66rem;
  letter-spacing: 0.02em;
}

.step-node {
  position: relative;
  z-index: 1;
  width: 11px;
  height: 11px;
  margin: 2px auto 0;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
}

.step-tram .step-node {
  border-color: var(--tram);
  background: var(--tram);
}

.step-bus .step-node {
  border-color: var(--bus);
  background: var(--bus);
}

.step-transfer .step-node {
  border-color: var(--ink);
  border-radius: 0;
  background: var(--yellow);
  transform: rotate(45deg);
}

.step-body {
  padding-left: 10px;
}

.step-mode {
  display: block;
  margin-bottom: 2px;
  color: var(--muted-dark);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.step-body strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.step-body > span:last-child {
  display: block;
  margin-top: 2px;
  color: var(--muted-dark);
  font-size: 0.72rem;
  line-height: 1.4;
}

.journey-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line-dark);
}

.journey-arrival {
  color: var(--muted-dark);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.journey-arrival strong {
  margin-left: 3px;
  color: var(--ink);
  font-size: 10px;
}

.visual-caption {
  max-width: 44ch;
  margin: 28px 0 0 auto;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.07em;
  line-height: 1.6;
  text-transform: uppercase;
}

/* Põhja-Eesti coverage */

.coverage-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 56px;
}

.coverage-copy h2 {
  max-width: 14ch;
  font-size: clamp(2.1rem, 3.3vw, 3.2rem);
}

.coverage-lede {
  max-width: 44ch;
  margin-top: 22px;
  color: var(--muted-dark);
  font-size: 0.98rem;
  line-height: 1.66;
}

.coverage-copy .btn {
  margin-top: 28px;
}

.coverage-map-frame {
  position: relative;
  max-width: 560px;
  margin-left: auto;
  padding: 8px;
  border: 1px solid var(--ink);
  background: var(--ink);
  box-shadow: 10px 10px 0 var(--yellow);
}

.coverage-map-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.coverage-map-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 7px 8px;
  border: 1px solid var(--ink);
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
}

.coverage-map figcaption {
  max-width: 560px;
  margin: 16px 0 0 auto;
  color: var(--muted-dark);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.07em;
  line-height: 1.6;
  text-transform: uppercase;
}

/* App screens */

.screens {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 38px;
  margin-top: 64px;
  align-items: start;
}

.screen-item {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
}

.screen-item:nth-child(2) {
  padding-top: 42px;
}

.screen-item:nth-child(3) {
  padding-top: 84px;
}

.phone {
  width: 100%;
  max-width: 300px;
}

.app-shot {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 24px 24px rgba(10, 17, 24, 0.16));
}

.screen-item figcaption {
  display: grid;
  width: 100%;
  max-width: 300px;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid var(--line-dark);
}

.screen-item figcaption .mono {
  padding-top: 2px;
  color: var(--muted-dark);
  font-size: 8px;
}

.screen-item h3 {
  margin-bottom: 4px;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.screen-item figcaption p {
  color: var(--muted-dark);
  font-size: 0.8rem;
  line-height: 1.5;
}

.screens-hint {
  display: none;
}

.screens-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-top: 58px;
  padding-top: 28px;
  border-top: 1px solid var(--line-dark);
}

.screens-foot p {
  color: var(--muted-dark);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Download section */

.download-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  align-items: center;
  gap: 76px;
}

.download-grid h2 {
  max-width: 18ch;
}

.download-grid .section-lede {
  max-width: 52ch;
  margin-top: 26px;
  justify-self: start;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
}

.store-link {
  display: inline-block;
  line-height: 0;
  transition: transform 160ms ease, opacity 160ms ease;
}

.store-link:hover {
  transform: translateY(-2px);
}

.store-link img {
  width: auto;
  height: 46px;
}

.download-meta {
  margin-top: 20px;
  color: rgba(10, 17, 24, 0.62);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.download-card {
  position: relative;
  width: 100%;
  max-width: 390px;
  margin-left: auto;
  padding: 32px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  box-shadow: 12px 12px 0 rgba(10, 17, 24, 0.22);
}

.download-card > img {
  width: 82px;
  height: 82px;
  margin-bottom: 22px;
}

.download-card > .mono {
  color: var(--muted);
  font-size: 8px;
}

.stamp {
  position: absolute;
  top: -30px;
  right: -18px;
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--ink);
  color: var(--yellow);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transform: rotate(12deg);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line-light);
}

.stat-grid div {
  min-width: 0;
}

.stat-grid strong {
  display: block;
  color: var(--yellow);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  white-space: nowrap;
}

.stat-grid span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.05em;
  line-height: 1.35;
  text-transform: uppercase;
}

.stat-note {
  margin-top: 18px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.coverage {
  margin-top: 72px;
  padding-top: 32px;
  border-top: 1px solid rgba(10, 17, 24, 0.3);
}

.coverage h3 {
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.city-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.city-list li {
  padding: 7px 11px;
  border: 1px solid rgba(10, 17, 24, 0.28);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.coverage > p {
  max-width: 76ch;
  margin-top: 18px;
  color: rgba(10, 17, 24, 0.66);
  font-size: 0.82rem;
  line-height: 1.6;
}

/* GO NOW Screen product */

.screen-product {
  overflow: hidden;
}

.screen-product-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: 68px;
}

.screen-product-copy h2 {
  max-width: 12ch;
  font-size: clamp(2.2rem, 3.7vw, 3.6rem);
  line-height: 0.98;
}

.screen-product-lede {
  max-width: 48ch;
  margin-top: 24px;
  color: var(--muted-dark);
  font-size: 0.98rem;
  line-height: 1.66;
}

.screen-points {
  margin-top: 34px;
  border-top: 1px solid var(--line-dark);
}

.screen-points li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-dark);
}

.screen-point-icon {
  padding-top: 2px;
  color: var(--muted-dark);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.screen-points h3 {
  margin-bottom: 4px;
  font-size: 0.98rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.screen-points p {
  color: var(--muted-dark);
  font-size: 0.84rem;
  line-height: 1.55;
}

.screen-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 26px;
  margin-top: 30px;
}

.screen-product-visual {
  position: relative;
  width: 100%;
}

.showroom-frame {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.showroom-frame img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(12px 12px 0 var(--yellow));
}

.showroom-frame .visual-caption {
  max-width: 44ch;
}

.display-frame {
  container-type: inline-size;
  aspect-ratio: 16 / 9;
  padding: 10px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: #04080c;
  box-shadow: 14px 14px 0 var(--yellow);
}

.display-screen {
  display: flex;
  width: 100%;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  padding: 2.5cqw 3cqw 1.9cqw;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  background: #0a1522;
  color: #cfd9e5;
}

.display-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2cqw;
}

.display-brand {
  color: #fff;
  font-size: 2.05cqw;
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1;
}

.display-brand b {
  color: var(--yellow);
}

.display-brand i {
  margin-left: 0.55cqw;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 1.05cqw;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.display-clock {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 1.5cqw;
  letter-spacing: 0.08em;
}

.display-body {
  display: grid;
  min-height: 0;
  flex: 1;
  grid-template-columns: 1.16fr 0.84fr;
  gap: 2.6cqw;
  margin-top: 2.2cqw;
}

.display-departures {
  display: flex;
  min-height: 0;
  flex-direction: column;
}

.display-stop {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 1.2cqw;
  padding-bottom: 1.2cqw;
}

.display-label {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 1.02cqw;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.display-stop strong {
  color: #fff;
  font-size: 3.5cqw;
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1;
}

.display-live {
  display: inline-flex;
  align-items: center;
  gap: 0.6cqw;
  color: var(--regional);
  font-family: var(--font-mono);
  font-size: 1cqw;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.display-live .dot {
  width: 1.05cqw;
  height: 1.05cqw;
}

.display-row {
  display: grid;
  grid-template-columns: 4.2cqw minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.4cqw;
  padding: 1.55cqw 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.display-row.is-next {
  margin: 0 -1.2cqw;
  padding: 1.55cqw 1.2cqw;
  border-top-color: transparent;
  background: rgba(245, 207, 51, 0.09);
}

.display-row .route-chip {
  min-width: 4.2cqw;
  height: 4.2cqw;
  padding: 0 1cqw;
  font-size: 1.5cqw;
}

.display-row strong {
  display: block;
  color: #eef4f8;
  font-size: 1.55cqw;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.display-row small {
  display: block;
  margin-top: 0.3cqw;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 1cqw;
}

.display-row > span:last-child {
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 1.45cqw;
}

.display-row.is-next > span:last-child {
  color: var(--yellow);
}

.display-note {
  margin-top: auto;
  padding-top: 1.2cqw;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.95cqw;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.display-side {
  display: flex;
  min-height: 0;
  flex-direction: column;
  gap: 1.8cqw;
}

.display-map {
  min-height: 0;
  flex: 1;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  background: #0c1821;
}

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

.display-ad {
  display: flex;
  min-height: 0;
  flex-direction: column;
  justify-content: center;
  padding: 1.7cqw;
  border-radius: 2px;
  background: var(--yellow);
  color: var(--ink);
}

.display-ad .display-label {
  color: rgba(10, 17, 24, 0.62);
  font-size: 1cqw;
}

.display-ad strong {
  margin-top: 0.7cqw;
  font-size: 2.35cqw;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}

.display-ad small {
  margin-top: 0.6cqw;
  color: rgba(10, 17, 24, 0.7);
  font-family: var(--font-mono);
  font-size: 1cqw;
}

.display-foot {
  display: flex;
  justify-content: space-between;
  gap: 2cqw;
  padding-top: 1.7cqw;
}

.display-foot .display-label {
  font-size: 0.92cqw;
}

/* Business band */

.business-band {
  padding: 76px 0;
  border-top: 1px solid var(--line-light);
}

.business-grid {
  display: grid;
  grid-template-columns: 0.38fr 1fr auto;
  align-items: center;
  gap: 44px;
}

.business-grid .section-index {
  margin-bottom: 0;
  align-self: start;
}

.business-grid h2 {
  font-size: clamp(2rem, 3.6vw, 3.6rem);
  line-height: 0.98;
}

.business-grid p {
  max-width: 54ch;
  margin-top: 14px;
  color: #aab8c3;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* FAQ */

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  align-items: start;
  gap: 80px;
}

.faq-intro {
  position: sticky;
  top: 112px;
}

.faq-intro h2 {
  max-width: 10ch;
}

.faq-intro > p:not(.section-index) {
  max-width: 38ch;
  margin-top: 24px;
  color: var(--muted-dark);
  font-size: 0.95rem;
  line-height: 1.62;
}

.faq-intro .text-link {
  margin-top: 26px;
}

.faq-list {
  border-top: 1px solid var(--ink);
}

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

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
}

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

.faq-item h3 {
  font-size: 1.04rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.faq-icon {
  position: relative;
  width: 17px;
  height: 17px;
  flex: none;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  width: 17px;
  height: 1px;
  background: var(--ink);
  transition: transform 180ms ease;
}

.faq-icon::after {
  transform: rotate(90deg);
}

.faq-item[open] .faq-icon::after {
  transform: rotate(0deg);
}

.faq-item > p {
  max-width: 64ch;
  padding: 0 44px 24px 0;
  color: var(--muted-dark);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* Floating back-to-top */

.back-to-top {
  position: fixed;
  right: clamp(18px, 3vw, 34px);
  bottom: clamp(18px, 3vw, 34px);
  z-index: 90;
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 5px 5px 0 rgba(10, 17, 24, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.back-to-top[hidden] {
  display: none;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  box-shadow: 3px 3px 0 rgba(10, 17, 24, 0.22);
  transform: translate(2px, 2px);
}

.back-to-top svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 560px) {
  .back-to-top {
    width: 44px;
    height: 44px;
  }
}

/* Footer */

.site-footer {
  padding: 78px 0 30px;
  border-top: 4px solid var(--yellow);
  background-color: #060b10;
  color: var(--paper);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.5fr);
  gap: 80px;
  padding-bottom: 64px;
}

.footer-brand img {
  width: auto;
  height: 33px;
  margin-bottom: 24px;
}

.footer-brand p {
  max-width: 36ch;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-brand > a {
  display: inline-block;
  margin-top: 18px;
  border-bottom: 1px solid rgba(242, 238, 227, 0.3);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.footer-brand > a:hover {
  color: var(--yellow);
  border-color: var(--yellow);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.footer-col h3 {
  margin-bottom: 13px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.footer-col a {
  display: block;
  padding: 5px 0;
  color: #c3cfd8;
  font-size: 0.88rem;
  transition: color 160ms ease;
}

.footer-col a:hover {
  color: var(--yellow);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line-light);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.footer-bottom a {
  color: var(--paper);
}

.footer-bottom a:hover {
  color: var(--yellow);
}

/* Entrance motion, hero only */

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * {
    animation: rise-in 780ms cubic-bezier(0.22, 0.8, 0.24, 1) both;
  }

  .hero-copy > *:nth-child(2) {
    animation-delay: 60ms;
  }

  .hero-copy > *:nth-child(3) {
    animation-delay: 120ms;
  }

  .hero-copy > *:nth-child(4) {
    animation-delay: 180ms;
  }

  .hero-copy > *:nth-child(5) {
    animation-delay: 240ms;
  }

  .hero-copy > *:nth-child(6) {
    animation-delay: 300ms;
  }

  .hero-visual {
    animation: rise-in 900ms 160ms cubic-bezier(0.22, 0.8, 0.24, 1) both;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */

@media (max-width: 1120px) {
  .hero-grid {
    gap: 42px;
  }

  .route-grid {
    gap: 52px;
  }

  .faq-layout {
    gap: 52px;
  }

  .footer-top {
    gap: 52px;
  }
}

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

  .menu-toggle {
    display: grid;
  }

  .mobile-nav:not([hidden]) {
    display: block;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 54px;
    padding-block: 64px 76px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero h1 {
    font-size: clamp(3.4rem, 9vw, 5.6rem);
  }

  .hero-visual {
    width: 100%;
    padding-right: 0;
  }

  .section-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    align-items: start;
    padding-bottom: 34px;
  }

  .section-lede {
    justify-self: start;
  }

  .coverage-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .coverage-copy h2 {
    max-width: 18ch;
    font-size: clamp(2.4rem, 6vw, 3.6rem);
  }

  .coverage-map-frame {
    max-width: 720px;
    margin-left: 0;
  }

  .coverage-map figcaption {
    margin-left: 0;
  }

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

  .feature:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .feature:nth-child(1),
  .feature:nth-child(2) {
    border-bottom: 1px solid var(--line-dark);
  }

  .route-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 54px;
  }

  .journey-card {
    max-width: 640px;
    margin-left: 0;
  }

  .route-app {
    align-items: flex-start;
  }

  .visual-caption {
    margin-left: 0;
  }

  .download-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 54px;
  }

  .download-card {
    max-width: 520px;
    margin: 0;
  }

  .screen-product-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 46px;
  }

  .screen-product-copy h2 {
    max-width: 18ch;
    font-size: clamp(2.4rem, 6vw, 3.6rem);
  }

  .screen-product-visual {
    width: min(100%, 720px);
  }

  .showroom-frame {
    align-items: flex-start;
  }

  .business-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .business-grid .section-index {
    margin-bottom: 0;
  }

  .business-grid .btn {
    justify-self: start;
  }

  .faq-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 38px;
  }

  .faq-intro {
    position: static;
  }

  .faq-intro h2 {
    max-width: none;
  }

  .footer-top {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
  }
}

@media (max-width: 860px) {
  .screens {
    display: flex;
    margin: 48px -20px 0;
    padding: 0 20px 26px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

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

  .screen-item {
    flex: 0 0 min(78vw, 320px);
    scroll-snap-align: start;
  }

  .screen-item:nth-child(2),
  .screen-item:nth-child(3) {
    padding-top: 0;
  }

  .phone {
    max-width: none;
  }

  .screen-item figcaption {
    max-width: none;
  }

  .screens-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    color: var(--muted-dark);
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .screens-hint span {
    color: var(--ink);
  }

  .screens-foot {
    margin-top: 30px;
  }
}

@media (max-width: 720px) {
  .wrap {
    width: calc(100% - 40px);
  }

  .header-inner {
    height: 68px;
    gap: 14px;
  }

  .brand img {
    height: 23px;
  }

  .header-cta {
    gap: 8px;
  }

  .btn-compact {
    min-height: 40px;
    padding: 0 12px;
    gap: 9px;
    font-size: 9px;
  }

  .hero::after {
    top: -260px;
    right: -300px;
  }

  .hero-grid {
    padding-block: 50px 62px;
  }

  .hero h1 {
    margin: 20px 0 24px;
    font-size: clamp(3.05rem, 12vw, 4.6rem);
  }

  .hero-lede {
    font-size: 1.05rem;
  }

  .hero-download {
    gap: 12px 16px;
  }

  .map-pop {
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto;
  }

  .map-coords {
    display: none;
  }

  .section {
    padding: 78px 0;
  }

  .section h2 {
    font-size: clamp(2.35rem, 8.4vw, 3.4rem);
  }

  .coverage-map-frame {
    box-shadow: 8px 8px 0 var(--yellow);
  }

  .feature {
    padding: 24px 20px 28px;
  }

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

  .feature,
  .feature:nth-child(3),
  .feature:first-child {
    padding-left: 0;
    border-left: 0;
  }

  .feature:first-child {
    padding-top: 26px;
  }

  .feature:nth-child(1),
  .feature:nth-child(2) {
    border-bottom: 0;
  }

  .feature + .feature {
    border-top: 1px solid var(--line-dark);
  }

  .feature h3 {
    margin-top: 10px;
  }

  .board {
    margin-top: 48px;
  }

  .board-head {
    align-items: flex-start;
    flex-direction: column;
    padding: 20px;
  }

  .board-note {
    padding-inline: 20px;
  }

  .journey-card {
    padding: 22px;
    box-shadow: 10px 10px 0 var(--yellow);
  }

  .route-app img {
    filter: drop-shadow(8px 8px 0 var(--yellow));
  }

  .hero-app-shot {
    filter: drop-shadow(8px 8px 0 var(--yellow));
  }

  .journey-top h3 {
    font-size: 1.28rem;
  }

  .journey-time strong {
    font-size: 2.3rem;
  }

  .journey-steps::before {
    left: 55.5px;
  }

  .step {
    grid-template-columns: 47px 20px minmax(0, 1fr);
  }

  .step-body {
    padding-left: 8px;
  }

  .download-card {
    padding: 26px;
  }

  .screen-product-grid {
    gap: 36px;
  }

  .screen-product-copy h2 {
    font-size: clamp(2.2rem, 8.4vw, 3rem);
  }

  .display-frame {
    padding: 6px;
    box-shadow: 8px 8px 0 var(--yellow);
  }

  .showroom-frame img {
    filter: drop-shadow(8px 8px 0 var(--yellow));
  }

  .stamp {
    top: -26px;
    right: -10px;
    width: 80px;
    height: 80px;
    font-size: 9px;
  }

  .stat-grid strong {
    font-size: 1.18rem;
  }

  .business-band {
    padding: 62px 0;
  }

  .footer-top {
    padding-bottom: 46px;
  }

  .footer-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }
}

@media (max-width: 800px) {
  .table-scroll {
    overflow: visible;
  }

  .departures {
    display: block;
    min-width: 0;
  }

  .departures thead {
    display: none;
  }

  .departures tbody {
    display: block;
  }

  .departures tr {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    column-gap: 11px;
    row-gap: 3px;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line-dark);
  }

  .departures tr:last-child {
    border-bottom: 0;
  }

  .departures .is-next {
    padding: 12px 16px;
  }

  .departures td {
    padding: 0;
    border-bottom: 0;
  }

  .departures td:nth-child(1) {
    grid-column: 1;
    grid-row: 1 / 3;
  }

  .departures td:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
    font-size: 0.92rem;
  }

  .departures td:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
  }

  .departures td:nth-child(4) {
    grid-column: 3;
    grid-row: 1;
    font-size: 0.7rem;
    text-align: right;
  }

  .departures td:nth-child(5) {
    grid-column: 3;
    grid-row: 2;
    font-size: 0.68rem;
    text-align: right;
  }

  .departures td:nth-child(5) .status-late {
    margin-left: 0;
    font-size: 0.54rem;
  }
}

@media (max-width: 560px) {
  .wrap {
    width: calc(100% - 36px);
  }

  .header-inner {
    gap: 8px;
  }

  .nav-desktop {
    display: none;
  }

  .hero-grid {
    gap: 42px;
    padding-block: 42px 54px;
  }

  .kicker {
    font-size: 8.5px;
  }

  .hero h1 {
    font-size: clamp(2.55rem, 12vw, 4.1rem);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
    margin-top: 28px;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: space-between;
  }

  .hero-actions .text-link {
    align-self: flex-start;
  }

  .hero-download {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .hero-download-label {
    display: none;
  }

  .hero-download-meta {
    display: none;
  }

  .store-badge img {
    height: 36px;
  }

  .map-panel {
    box-shadow: 8px 8px 0 var(--yellow);
  }

  .map-head,
  .map-foot {
    padding: 11px 12px;
    font-size: 8px;
  }

  .map-pop {
    padding: 10px 11px 9px;
  }

  .map-pop-row {
    grid-template-columns: 25px minmax(0, 1fr) auto;
    padding: 6px 0;
    font-size: 0.69rem;
  }

  .map-pop-row .route-chip {
    min-width: 25px;
    height: 25px;
    font-size: 0.58rem;
  }

  .section {
    padding: 66px 0;
  }

  .section h2 {
    font-size: clamp(2.1rem, 10vw, 2.9rem);
  }

  .coverage-map-frame {
    padding: 6px;
    box-shadow: 6px 6px 0 var(--yellow);
  }

  .coverage-map-tag {
    top: 10px;
    left: 10px;
  }

  .coverage-map figcaption {
    font-size: 8px;
  }

  .section-lede {
    font-size: 0.95rem;
  }

  .board-head h3 {
    font-size: 1.35rem;
  }

  .journey-card {
    padding: 18px;
  }

  .route-app img {
    filter: drop-shadow(6px 6px 0 var(--yellow));
  }

  .hero-app-shot {
    filter: drop-shadow(6px 6px 0 var(--yellow));
  }

  .journey-top {
    gap: 12px;
  }

  .journey-top h3 {
    font-size: 1.12rem;
  }

  .journey-time strong {
    font-size: 2rem;
  }

  .journey-tabs {
    gap: 5px;
  }

  .journey-tab {
    font-size: 7px;
    padding: 5px 7px;
  }

  .journey-steps::before {
    left: 47.5px;
  }

  .step {
    grid-template-columns: 40px 18px minmax(0, 1fr);
  }

  .step-time {
    font-size: 0.58rem;
  }

  .step-body strong {
    font-size: 0.82rem;
  }

  .step-body > span:last-child {
    font-size: 0.66rem;
  }

  .journey-foot {
    align-items: stretch;
    flex-direction: column;
  }

  .journey-foot .btn {
    width: 100%;
  }

  .screens {
    margin-inline: -18px;
    padding-inline: 18px;
  }

  .screen-item {
    flex-basis: min(82vw, 300px);
  }

  .screens-foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .screens-foot .btn {
    width: 100%;
  }

  .store-link img {
    height: 40px;
  }

  .download-actions {
    gap: 10px;
  }

  .download-meta {
    font-size: 8px;
  }

  .screen-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .screen-actions .btn {
    width: 100%;
  }

  .screen-actions .text-link {
    align-self: flex-start;
  }

  .display-frame {
    box-shadow: 6px 6px 0 var(--yellow);
  }

  .showroom-frame img {
    filter: drop-shadow(6px 6px 0 var(--yellow));
  }

  .stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .stat-grid strong {
    font-size: 1.02rem;
  }

  .stat-grid span {
    font-size: 7px;
  }

  .coverage {
    margin-top: 54px;
  }

  .city-list li {
    font-size: 8px;
    padding: 6px 9px;
  }

  .faq-item h3 {
    font-size: 0.96rem;
  }

  .faq-item > p {
    padding-right: 24px;
  }

  .footer-cols {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

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

@media (max-width: 400px) {
  .header-cta .btn-compact {
    padding-inline: 10px;
    font-size: 8px;
  }

  .hero h1 {
    font-size: 2.55rem;
  }

  .map-pop-live {
    display: none;
  }
}

@media (max-width: 360px) {
  .header-cta .btn-compact {
    width: 40px;
    padding: 0;
    gap: 0;
    font-size: 0;
  }

  .header-cta .btn-compact svg {
    width: 16px;
    height: 16px;
  }

  .hero h1 {
    font-size: 2.1rem;
  }
}

/* Reduced motion */

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .vehicles-moving {
    display: none;
  }

  .vehicles-static {
    display: block;
  }

  .you-ring {
    animation: none;
    opacity: 0.6;
  }

  .ticker-track {
    animation: none;
    transform: none;
  }
}

/* Print */

@media print {
  .site-header,
  .ticker,
  .hero-visual,
  .screens,
  .download-actions,
  .business-band,
  .back-to-top,
  .site-footer {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .section {
    padding: 24px 0;
    background: #fff;
    color: #000;
  }

  .section-lede,
  .feature p,
  .check-list p {
    color: #333;
  }
}
