/* Tokens from flo's Theme.swift (transit-signage palette). */
:root {
  --background: #F4F2EE;
  --sheet: #FFFFFF;
  --ink: #18191B;
  --muted: #6A6C70;
  --faint: #B5B3AE;
  --rule: #E0DDD7;
  --border: #CFCCC5;
  --pressed: #E6E3DD;
  --ink-pressed: #3A3C40;
  --on-line: #18191B;
  --yellow: #F6C318;
  --yellow-pressed: #E0B010;
  --orange: #F27022;
  --blue: #1E9BE0;

  /* The phone mock is always dark, like the app's designs. */
  --screen: #18191B;
  --screen-ink: #F4F2EE;
  --screen-muted: #8A8C90;
  --screen-rule: #2C2E31;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #18191B;
    --sheet: #202124;
    --ink: #F4F2EE;
    --muted: #8A8C90;
    --faint: #4A4C50;
    --rule: #2C2E31;
    --border: #3A3C40;
    --pressed: #2C2E31;
    --ink-pressed: #D8D6D0;
    --screen: #202124;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--background);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: -0.01em;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.muted { color: var(--muted); }

/* Signage stripes */
.stripes { display: grid; gap: 3px; }
.stripes span { height: 9px; }
.stripes span:nth-child(1) { background: var(--yellow); }
.stripes span:nth-child(2) { background: var(--orange); }
.stripes span:nth-child(3) { background: var(--blue); }
.stripes-sm { gap: 2px; }
.stripes-sm span { height: 5px; }

/* Header */
.bar { border-bottom: 1px solid var(--rule); }
.bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 52px;
  font-size: 14px;
}
.brand { font-weight: 700; text-decoration: none; }
.clock { color: var(--muted); font-variant-numeric: tabular-nums; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 88px;
}
.mark { display: block; border-radius: 20px; margin-bottom: 28px; }
.eyebrow { color: var(--muted); font-size: 14px; }
h1 {
  font-size: clamp(48px, 8vw, 88px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.98;
  margin: 10px 0 22px;
}
.lede {
  color: var(--muted);
  font-size: 18px;
  max-width: 34em;
}

/* App Store button */
.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  padding: 0 22px 0 18px;
  height: 56px;
  border-radius: 12px;
  background: #000;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0;
  border: 1px solid #A6A6A6;
  transition: transform 0.15s ease, background 0.15s ease;
}
.store svg { width: 24px; height: 30px; }
.store span { display: flex; flex-direction: column; font-size: 22px; font-weight: 500; line-height: 1.05; }
.store small { font-size: 11px; font-weight: 400; }
.store:hover { background: #1c1c1e; }
.store:active { transform: scale(0.98); }
.store:focus-visible, .board:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* Phone mock: the day view */
.phone {
  justify-self: center;
  width: 100%;
  max-width: 380px;
  padding: 10px;
  border-radius: 46px;
  background: #0E0E10;
  box-shadow: 0 30px 60px -20px rgba(24, 25, 27, 0.45);
}
.screen {
  overflow: hidden;
  border-radius: 36px;
  background: var(--screen);
  color: var(--screen-ink);
  padding-top: 26px;
}
.screen .muted { color: var(--screen-muted); font-size: 12px; }
.screen-head { padding: 18px 20px 16px; border-bottom: 1px solid var(--screen-rule); }
.screen-title { font-size: 30px; font-weight: 700; letter-spacing: -0.045em; line-height: 1.1; margin: 2px 0 4px; }

.line { list-style: none; padding: 18px 16px 22px 14px; }
.line li { display: grid; grid-template-columns: 46px 26px 1fr 24px; position: relative; }
.line time { font-size: 13px; font-variant-numeric: tabular-nums; line-height: 18px; }
.line time small { display: block; font-size: 11px; color: var(--screen-muted); }

.stop { padding-bottom: 18px; }
/* Node, then the track down to the next stop in this stop's colour. */
.stop::before {
  content: "";
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  width: 12px;
  height: 12px;
  margin-top: 2px;
  border: 3px solid var(--c);
  border-radius: 50%;
  background: var(--screen);
  z-index: 1;
}
.stop:not(.last)::after {
  content: "";
  position: absolute;
  left: calc(46px + 13px - 1.5px);
  top: 16px;
  bottom: -2px;
  width: 3px;
  background: var(--c);
  transform-origin: top;
  animation: draw 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
}
.stop:nth-child(2)::after { animation-delay: 0.12s; }
.stop:nth-child(4)::after { animation-delay: 0.24s; }
.stop:nth-child(5)::after { animation-delay: 0.36s; }
@keyframes draw { from { transform: scaleY(0); } }

.stop div { grid-column: 3; display: flex; flex-direction: column; min-width: 0; }
.stop b { font-size: 15px; font-weight: 700; line-height: 18px; }
.stop span { font-size: 12px; color: var(--screen-muted); }
.stop em { font-style: normal; font-size: 11px; color: var(--screen-muted); margin-top: 8px; }
.stop.past > :not(i), .stop.past::before { opacity: 0.45; }
.stop.past::after { opacity: 0.5; }

.roundel, .chip {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--c);
  color: var(--on-line);
  font-size: 12px;
  font-weight: 700;
  font-style: normal;
}
.stop.past .roundel { opacity: 0.45; }

/* The now marker, with the yellow track running behind it. */
.now { align-items: center; padding-bottom: 18px; }
.now::before {
  content: "";
  grid-column: 2 / 4;
  grid-row: 1;
  height: 1px;
  background: var(--screen-ink);
  margin-left: 13px;
}
.now::after {
  content: "";
  position: absolute;
  left: calc(46px + 13px - 1.5px);
  top: -2px;
  bottom: 0;
  width: 3px;
  background: var(--c);
}
.now time { grid-column: 1; grid-row: 1; font-size: 12px; color: var(--screen-muted); }
.now span {
  grid-column: 4;
  grid-row: 1;
  justify-self: end;
  background: var(--screen-ink);
  color: var(--screen);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 5px;
}

/* Sections */
.section { padding-top: 72px; padding-bottom: 8px; }
h2 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.045em;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.terms > div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}
.terms dt { font-weight: 700; font-size: 17px; }
.terms dd { color: var(--muted); font-size: 16px; }
.chip { width: 20px; height: 20px; font-size: 11px; vertical-align: 1px; }

.features {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-left: 1px solid var(--rule);
}
.features li {
  padding: 22px 20px 26px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.features h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.features h3 span { font-weight: 400; color: var(--muted); }
.features p { color: var(--muted); font-size: 15px; }

/* Call to action */
.cta { padding-top: 88px; padding-bottom: 96px; }
.cta h2 { border: 0; padding: 0; font-size: clamp(36px, 6vw, 56px); }
.cta .lede { margin-top: 8px; }
.board {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 480px;
  height: 56px;
  margin-top: 28px;
  padding: 0 20px;
  background: var(--yellow);
  color: var(--on-line);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  transition: background 0.15s ease;
}
.board:hover, .board:active { background: var(--yellow-pressed); }

/* Footer */
.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  padding-bottom: 32px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 13px;
}
.route { display: flex; gap: 4px; }
.route i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }

@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 56px; padding-top: 48px; padding-bottom: 64px; }
  .features { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .features { grid-template-columns: minmax(0, 1fr); }
  .terms > div { grid-template-columns: 1fr; gap: 2px; }
  .lede { font-size: 16px; }
  .phone { border-radius: 40px; }
  .screen { border-radius: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .stop::after { animation: none; }
  .store, .board { transition: none; }
}
