@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/fonts/AtkinsonHyperlegibleNext-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/fonts/AtkinsonHyperlegibleNext-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/fonts/AtkinsonHyperlegibleNext-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}

:root {
  --canvas: #F1F4F2;
  --surface: #FFFFFF;
  --ink: #13211A;
  --ink-2: #55645C;
  --accent: #0B7A4A;
  --accent-ink: #075A36;
  --tint: #E6F2EC;
  --route: #D3E8DC;
  --hairline: #DCE3DF;
  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius-l: 1.75rem;
  --radius-m: 1rem;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Atkinson Hyperlegible Next", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

a {
  color: var(--accent-ink);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 0.25rem;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.1875rem;
  font-weight: 600;
}

p {
  margin: 0;
}

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

/* Navigation */

.site-nav {
  padding-block: 1.25rem;
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--ink);
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.nav-links {
  display: flex;
  gap: clamp(0.875rem, 3vw, 2rem);
}

.nav-links a {
  color: var(--ink-2);
  font-weight: 600;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--ink);
}

/* Hero */

.hero {
  padding-block: clamp(2rem, 6vw, 5rem) clamp(3rem, 8vw, 6.5rem);
}

.hero-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.75rem, 8.4vw, 6.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.hero h1 span {
  display: block;
}

.lede {
  max-width: 34rem;
  font-size: clamp(1.1875rem, 1.8vw, 1.375rem);
  line-height: 1.5;
  color: var(--ink);
}

.hero-trips {
  margin-top: 1rem;
  max-width: 34rem;
  color: var(--ink-2);
}

.soon {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.75rem 1.125rem;
  border-radius: var(--radius-m);
  background: var(--tint);
  color: var(--accent-ink);
  font-weight: 600;
}

.hero-map {
  margin: 0;
  padding: clamp(0.75rem, 3vw, 2rem);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-l);
  background: var(--surface);
}

.hero-map svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.feeders path {
  fill: none;
  stroke: var(--route);
  stroke-width: 7;
  stroke-linecap: round;
}

.shared {
  fill: none;
  stroke: var(--accent);
  stroke-width: 10;
  stroke-linecap: round;
}

.merge {
  fill: var(--accent);
}

.stop circle {
  fill: var(--surface);
  stroke: var(--accent);
  stroke-width: 4;
}

.stop .stop-dot {
  fill: var(--accent);
  stroke: none;
}

.destination rect {
  fill: var(--accent);
}

.destination circle {
  fill: none;
  stroke: var(--surface);
  stroke-width: 4.5;
}

.place {
  fill: var(--ink-2);
  font-family: inherit;
  font-size: 21px;
  font-weight: 600;
}

.taxi-label {
  fill: var(--accent-ink);
  font-family: inherit;
  font-size: 21px;
  font-weight: 800;
}

/* The one orchestrated moment: the three routes draw in and join. */
.draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 0.9s cubic-bezier(0.3, 0.7, 0.3, 1) forwards;
}

.d1 { animation-delay: 0.15s; }
.d2 { animation-delay: 0.3s; }
.d3 { animation-delay: 0.45s; }
.d4 { animation-delay: 1s; animation-duration: 0.6s; }

.merge,
.destination,
.taxi-label {
  opacity: 0;
  animation: appear 0.4s ease-out 1.45s forwards;
}

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

@keyframes appear {
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .draw { animation: none; stroke-dashoffset: 0; }
  .merge, .destination, .taxi-label { animation: none; opacity: 1; }
}

/* How it works: the steps sit on one route line, like stops on a trip. */

.how {
  padding-block: clamp(3.5rem, 8vw, 6rem);
  background: var(--surface);
  border-block: 1px solid var(--hairline);
}

.route-steps {
  --stop: 1.5rem;
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  counter-reset: stop;
}

.route-steps li {
  position: relative;
  counter-increment: stop;
  padding: 0 0 2.25rem calc(var(--stop) + 1.25rem);
}

.route-steps li::before {
  content: counter(stop);
  position: absolute;
  left: 0;
  top: 0;
  width: var(--stop);
  height: var(--stop);
  border-radius: 50%;
  background: var(--accent);
  color: var(--surface);
  font-size: 0.8125rem;
  font-weight: 800;
  line-height: var(--stop);
  text-align: center;
}

.route-steps li::after {
  content: "";
  position: absolute;
  left: calc(var(--stop) / 2 - 3px);
  top: var(--stop);
  bottom: 0;
  width: 6px;
  background: var(--route);
}

.route-steps li:last-child {
  padding-bottom: 0;
}

.route-steps li:last-child::after {
  display: none;
}

.route-steps p {
  margin-top: 0.375rem;
  max-width: 34rem;
  color: var(--ink-2);
}

@media (min-width: 60rem) {
  .route-steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }

  .route-steps li {
    padding: calc(var(--stop) + 1.25rem) 0 0;
  }

  .route-steps li::after {
    left: var(--stop);
    right: -2rem;
    top: calc(var(--stop) / 2 - 3px);
    bottom: auto;
    width: auto;
    height: 6px;
  }

  .route-steps li:last-child::after {
    display: block;
    right: auto;
    width: 4rem;
    background: linear-gradient(90deg, var(--route), transparent);
  }
}

/* Safety */

.safety {
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.safety h2 {
  max-width: 22ch;
}

.safety-grid {
  display: grid;
  gap: 2.5rem;
  margin-top: 2.5rem;
}

@media (min-width: 52rem) {
  .safety-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.ticks {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.875rem;
}

.ticks li {
  position: relative;
  padding-left: 2rem;
  color: var(--ink-2);
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 50%;
  background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.2l2.6 2.6L13 6.4' fill='none' stroke='%23075A36' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

.emergency {
  margin-top: 3rem;
  padding: 1.125rem 1.375rem;
  border-left: 4px solid var(--accent);
  background: var(--surface);
  border-radius: 0 var(--radius-m) var(--radius-m) 0;
  font-weight: 600;
  max-width: 40rem;
}

/* Questions */

.faq {
  padding-block: clamp(3.5rem, 8vw, 6rem);
  background: var(--surface);
  border-block: 1px solid var(--hairline);
}

.faq-wrap {
  display: grid;
  gap: 2rem;
}

@media (min-width: 60rem) {
  .faq-wrap {
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
  }
}

.faq-list details {
  border-bottom: 1px solid var(--hairline);
}

.faq-list details:first-child {
  border-top: 1px solid var(--hairline);
}

.faq-list summary {
  position: relative;
  padding: 1.125rem 2.5rem 1.125rem 0;
  cursor: pointer;
  list-style: none;
  font-size: 1.125rem;
  font-weight: 600;
}

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

.faq-list summary::after {
  content: "";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  width: 0.625rem;
  height: 0.625rem;
  border-right: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}

.faq-list details[open] summary::after {
  transform: translateY(-25%) rotate(-135deg);
}

.faq-list details p {
  padding-bottom: 1.25rem;
  max-width: 40rem;
  color: var(--ink-2);
}

@media (prefers-reduced-motion: reduce) {
  .faq-list summary::after { transition: none; }
}

/* Download */

.download {
  padding-block: clamp(3.5rem, 8vw, 5.5rem);
}

.download-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.download h2 {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
}

.download p {
  margin-top: 0.5rem;
  color: var(--ink-2);
}

@media (max-width: 34rem) {
  .download-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Footer */

.site-footer {
  padding-block: 2rem 2.5rem;
  border-top: 1px solid var(--hairline);
  font-size: 0.9375rem;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
}

.brand-small {
  font-size: 1.125rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.footer-links a {
  color: var(--ink-2);
}

.copyright {
  margin-left: auto;
  color: var(--ink-2);
}

@media (max-width: 40rem) {
  .copyright {
    margin-left: 0;
    width: 100%;
  }
}

@media (min-width: 60rem) {
  .hero-grid {
    grid-template-columns: 5fr 6fr;
    row-gap: 3rem;
  }

  .hero h1 {
    grid-column: 1 / -1;
  }
}

@media (max-width: 30rem) {
  .nav-links a:first-child {
    display: none;
  }
}

/* Legal pages */

.doc {
  padding-block: clamp(2rem, 5vw, 4rem) clamp(3rem, 7vw, 5.5rem);
}

.prose {
  max-width: 70ch;
}

.prose h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.prose h2 {
  margin-top: 2.75rem;
  font-size: 1.5rem;
  letter-spacing: -0.015em;
}

.prose h3 {
  margin-top: 1.75rem;
}

.prose p,
.prose ul,
.prose ol,
.prose table {
  margin-top: 1rem;
}

.prose ul,
.prose ol {
  padding-left: 1.375rem;
}

.prose li + li {
  margin-top: 0.375rem;
}

.prose em:first-child {
  color: var(--ink-2);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  display: block;
  overflow-x: auto;
}

.prose th,
.prose td {
  padding: 0.625rem 0.75rem;
  border-bottom: 1px solid var(--hairline);
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: var(--tint);
  font-weight: 600;
}

.prose blockquote {
  margin: 1.25rem 0 0;
  padding: 0.75rem 1.125rem;
  border-left: 4px solid var(--accent);
  background: var(--surface);
}

.prose code {
  font-size: 0.9em;
  padding: 0.1em 0.35em;
  border-radius: 0.3em;
  background: var(--tint);
}

.prose hr {
  margin-block: 2.5rem;
  border: 0;
  border-top: 1px solid var(--hairline);
}
