/* Transit Now + Cycle Now — shared site styles.
   Pages opt into a palette with <body class="theme-transit"> or <body class="theme-cycle">.
   Components are documented in assets/README.md. */

:root {
  --ink: #17120f;
  --ink-2: #4a4440;
  --ink-3: #7a726c;
  --line: rgba(23, 18, 15, 0.1);
  --bg: #fbf8f5;
  --bg-2: #f3eee9;
  --card: #ffffff;

  /* prediction colours, as in the app: very close / soon / later */
  --due-now: #d93025;
  --due-soon: #e8710a;
  --due-later: #188038;

  --radius: 22px;
  --radius-sm: 14px;
  --shadow-sm: 0 1px 2px rgba(23, 18, 15, 0.06), 0 2px 8px rgba(23, 18, 15, 0.05);
  --shadow: 0 2px 6px rgba(23, 18, 15, 0.06), 0 18px 48px -12px rgba(23, 18, 15, 0.22);
  --shadow-lg: 0 4px 10px rgba(23, 18, 15, 0.07), 0 40px 90px -24px rgba(23, 18, 15, 0.35);

  --font-display: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
}

.theme-transit {
  --brand: #993839;
  --brand-deep: #6c1f20;
  --brand-bright: #cc0000;
  --brand-tint: #fbeceb;
  --brand-glow: rgba(204, 0, 0, 0.18);
  --hero-grad: radial-gradient(1200px 600px at 85% -10%, #f7d9d6 0%, rgba(247, 217, 214, 0) 60%),
               radial-gradient(900px 500px at -10% 20%, #fdeee4 0%, rgba(253, 238, 228, 0) 60%);
}

.theme-cycle {
  --brand: #00a954;
  --brand-deep: #024431;
  --brand-bright: #00c265;
  --brand-tint: #e6f7ee;
  --brand-glow: rgba(0, 169, 84, 0.22);
  --bg: #f6faf7;
  --bg-2: #ebf4ee;
  --hero-grad: radial-gradient(1100px 600px at 90% -10%, #c9f0da 0%, rgba(201, 240, 218, 0) 60%),
               radial-gradient(800px 500px at -10% 30%, #e3f6ea 0%, rgba(227, 246, 234, 0) 60%);
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: var(--brand-deep); text-underline-offset: 3px; }
a:hover { color: var(--brand); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(40px, 6.2vw, 72px); line-height: 1.02; font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(30px, 4.2vw, 48px); line-height: 1.08; font-weight: 800; letter-spacing: -0.03em; }
h3 { font-size: 21px; line-height: 1.25; font-weight: 700; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
::selection { background: var(--brand); color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 700 13px/1 var(--font-display); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--brand);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--ink-2); }
.muted { color: var(--ink-3); }
.hl { color: var(--brand); }

/* ---------- buttons, badges, pills ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 999px;
  font: 700 15px/1 var(--font-display); text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 24px -8px var(--brand-glow); }
.btn-primary:hover { background: var(--brand-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--card); color: var(--ink); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }

.store-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.store-badges a { display: block; border-radius: 10px; transition: transform .15s ease, opacity .2s; }
.store-badges a:hover { transform: translateY(-2px); }
.store-badges img { height: 48px; width: auto; }
.store-note { font-size: 13px; color: var(--ink-3); margin-top: 10px; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--brand-tint); color: var(--brand-deep);
  font: 600 13px/1.2 var(--font-body);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 0 var(--brand-glow); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 var(--brand-glow); } 70% { box-shadow: 0 0 0 10px rgba(0,0,0,0); } 100% { box-shadow: 0 0 0 0 rgba(0,0,0,0); } }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 800 18px/1 var(--font-display); letter-spacing: -0.02em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: var(--shadow-sm); background: #fff; }
.brand:hover { color: var(--ink); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 8px 12px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font: 600 15px/1 var(--font-body); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--bg-2); }
.nav a.nav-cycle { color: #00873f; }
.nav a.nav-transit { color: #993839; }
.nav .btn { margin-left: 8px; color: #fff; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 12px; cursor: pointer; color: var(--ink); }
.nav-toggle svg { margin: auto; }
@media (max-width: 880px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px var(--gutter) 18px; background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px -20px rgba(0,0,0,.25);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 12px; font-size: 17px; }
  .nav .btn { margin: 8px 0 0; height: 48px; }
}

/* ---------- sections ---------- */

.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section-tight { padding: clamp(48px, 7vw, 80px) 0; }
.section-alt { background: var(--bg-2); }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 { margin: 14px 0 16px; }

/* ---------- hero ---------- */

.hero { position: relative; padding: clamp(40px, 7vw, 96px) 0 clamp(64px, 8vw, 110px); background: var(--hero-grad); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: clamp(32px, 5vw, 72px); }
.hero h1 { margin: 18px 0 20px; }
.hero .lead { max-width: 560px; margin-bottom: 30px; }
.hero-media { position: relative; display: flex; justify-content: center; min-height: 420px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; padding: 0; list-style: none; color: var(--ink-2); font-size: 15px; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points svg { color: var(--brand); flex: none; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-media { min-height: 0; }
}

/* ---------- media: screenshots & video without a phone frame ---------- */

.shot, .media-card {
  position: relative; overflow: hidden;
  border-radius: var(--radius); background: var(--card);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(23, 18, 15, 0.08);
}
.shot img, .media-card video, .media-card img { width: 100%; height: auto; }
.shot figcaption { padding: 12px 16px; font-size: 14px; color: var(--ink-3); border-top: 1px solid var(--line); background: var(--card); }
.shot-sm { max-width: 280px; }
.shot-md { max-width: 340px; }
.shot-lg { max-width: 420px; }
.media-card .live-badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 999px;
  background: rgba(17, 12, 10, 0.72); color: #fff; font: 600 12px/1 var(--font-body);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.media-card .live-badge i { width: 7px; height: 7px; border-radius: 50%; background: #ff4d4d; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.float { animation: float 7s ease-in-out infinite; }
.float-slow { animation: float 9s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.tilt-l { transform: rotate(-3deg); }
.tilt-r { transform: rotate(3deg); }

.stack { position: relative; width: 100%; max-width: 520px; height: 560px; }
.stack > * { position: absolute; }
@media (max-width: 900px) { .stack { height: 480px; } }
@media (max-width: 520px) { .stack { height: 420px; } }

/* round watch face */
.watch {
  width: 200px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: #000;
  box-shadow: 0 0 0 10px #1d1d1f, 0 0 0 12px #3a3a3c, var(--shadow-lg);
}
.watch img { width: 100%; height: 100%; object-fit: cover; }
.watch-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 44px; padding: 16px 0; }
@media (max-width: 520px) { .watch { width: 150px; } .watch-row { gap: 34px; } }

/* ---------- live prediction card (interactive countdown) ---------- */

.live-card {
  width: 100%; max-width: 380px; background: var(--card); border-radius: 20px; padding: 18px 18px 14px;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(23, 18, 15, 0.08);
  font-family: var(--font-body);
}
.live-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.live-card-head .stop { font: 700 15px/1.25 var(--font-display); color: var(--ink); }
.live-card-head .sub { font-size: 12px; color: var(--ink-3); }
.live-row { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.route-badge { display: grid; place-items: center; text-align: center; font: 800 22px/1 var(--font-display); color: var(--ink); }
.route-badge small { display: block; font: 700 12px/1.2 var(--font-body); color: var(--ink-3); margin-top: 2px; }
.live-row .dest { font-size: 14px; color: var(--ink-2); line-height: 1.35; }
.live-row .dest b { display: block; color: var(--ink); font-weight: 600; font-size: 15px; }
.live-row .times { font: 600 13px/1.4 var(--font-body); color: var(--ink-3); }
.countdown { font: 800 26px/1 var(--font-display); font-variant-numeric: tabular-nums; text-align: right; letter-spacing: -0.02em; }
.countdown small { display: block; font: 600 11px/1.3 var(--font-body); color: var(--ink-3); letter-spacing: 0; }
.due-now { color: var(--due-now); }
.due-soon { color: var(--due-soon); }
.due-later { color: var(--due-later); }
.live-card-foot { display: flex; align-items: center; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }
.live-card-foot .pill { padding: 4px 9px; font-size: 11px; }
.arriving { animation: arriving 1s ease-in-out infinite; }
@keyframes arriving { 50% { opacity: .45; } }

/* ---------- feature cards & grids ---------- */

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border-radius: var(--radius); padding: 28px;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3 { margin: 18px 0 10px; }
.card p { color: var(--ink-2); font-size: 16px; }
.card ul { margin: 14px 0 0; padding: 0; list-style: none; }
.card li { position: relative; padding-left: 22px; margin: 8px 0; color: var(--ink-2); font-size: 15px; }
.card li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); opacity: .75; }
.icon-tile {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center;
  background: var(--brand-tint); color: var(--brand);
}
.icon-tile svg { width: 26px; height: 26px; }
.card-feature { padding: 34px; }
.card-feature .big { font: 800 44px/1 var(--font-display); letter-spacing: -0.03em; color: var(--brand); margin-top: 18px; }

/* ---------- split feature rows ---------- */

.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(32px, 6vw, 96px); }
.split + .split { margin-top: clamp(80px, 10vw, 140px); }
.split.reverse > :first-child { order: 2; }
.split h2 { margin: 14px 0 18px; }
.split .lead { margin-bottom: 22px; }
.split-media { display: flex; justify-content: center; position: relative; }
.checks { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; color: var(--ink-2); }
.checks li b { color: var(--ink); font-weight: 600; }
.checks .tick { width: 28px; height: 28px; border-radius: 9px; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
}

/* ---------- tabbed screenshot showcase ---------- */

.showcase { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.tabs { display: grid; gap: 10px; }
.tab {
  display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; text-align: left;
  width: 100%; padding: 16px 18px; border-radius: 18px; border: 1px solid transparent;
  background: transparent; cursor: pointer; font: inherit; color: var(--ink-2);
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.tab:hover { background: var(--card); }
.tab[aria-selected="true"] { background: var(--card); border-color: var(--line); box-shadow: var(--shadow); color: var(--ink); }
.tab .icon-tile { width: 44px; height: 44px; border-radius: 13px; }
.tab .icon-tile svg { width: 22px; height: 22px; }
.tab b { display: block; font: 700 17px/1.3 var(--font-display); color: var(--ink); }
.tab span { font-size: 14px; line-height: 1.45; }
.tab-panels { position: relative; display: flex; justify-content: center; min-height: 640px; }
.tab-panel { display: none; width: 100%; justify-content: center; }
.tab-panel.is-active { display: flex; animation: panel-in .45s cubic-bezier(.2,.8,.2,1); }
@keyframes panel-in { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) {
  .showcase { grid-template-columns: 1fr; }
  .tab-panels { min-height: 0; order: -1; }
  .tabs { grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .tab { scroll-snap-align: start; }
}

/* ---------- cities ---------- */

.cities { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 20px; }
.city {
  position: relative; overflow: hidden; border-radius: var(--radius); padding: 30px; min-height: 280px;
  display: flex; flex-direction: column; justify-content: flex-end; color: #fff;
  box-shadow: var(--shadow);
}
.city::before { content: ""; position: absolute; inset: 0; background: var(--city-bg); z-index: 0; }
.city::after { content: ""; position: absolute; inset: 0; z-index: 0; opacity: .18;
  background-image: repeating-linear-gradient(90deg, #fff 0 1px, transparent 1px 48px), repeating-linear-gradient(0deg, #fff 0 1px, transparent 1px 48px); }
.city > * { position: relative; z-index: 1; }
.city .rank { position: absolute; top: 24px; left: 30px; font: 800 13px/1 var(--font-display); letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.city h3 { color: #fff; font-size: 30px; letter-spacing: -0.03em; }
.city p { margin-top: 6px; opacity: .9; font-size: 15px; }
.city .agency { display: inline-flex; margin-top: 16px; padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.18); font: 700 13px/1 var(--font-display); width: fit-content; }
.city-toronto { --city-bg: linear-gradient(145deg, #b8292f 0%, #6c1f20 100%); min-height: 360px; }
.city-toronto h3 { font-size: 44px; }
.city-boston { --city-bg: linear-gradient(145deg, #3d4a5c 0%, #1f2733 100%); }
.city-east-bay { --city-bg: linear-gradient(145deg, #2f7a53 0%, #12402b 100%); }
@media (max-width: 900px) { .cities { grid-template-columns: 1fr 1fr; } .city-toronto { grid-column: 1 / -1; } }
@media (max-width: 560px) { .cities { grid-template-columns: 1fr; } }

/* ---------- source diagram (multi-feed) ---------- */

.feeds { position: relative; background: var(--card); border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.feeds svg { width: 100%; height: auto; overflow: visible; }
.feeds .flow { stroke-dasharray: 6 10; animation: flow 1.2s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -32; } }
.feeds .node rect { fill: var(--bg); stroke: var(--line); }
.feeds text { font: 600 13px var(--font-body); fill: var(--ink-2); }
.feeds .node-main rect { fill: var(--brand); stroke: none; }
.feeds .node-main text { fill: #fff; font-weight: 700; }
.feeds .node.is-down rect { stroke: var(--due-now); stroke-dasharray: 4 4; }
.feeds .node.is-down text { fill: var(--due-now); }
.feeds-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

/* ---------- bands ---------- */

.band-cycle {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(900px 400px at 85% 0%, #19d273 0%, rgba(25,210,115,0) 60%),
              linear-gradient(135deg, #00a954 0%, #02734a 55%, #024431 100%);
}
.band-cycle::after {
  content: ""; position: absolute; inset: -40%; pointer-events: none;
  background: conic-gradient(from 0deg, rgba(255,255,255,0) 0 70%, rgba(255,255,255,.12) 80%, rgba(255,255,255,0) 90%);
  animation: sweep 14s linear infinite;
}
@keyframes sweep { to { transform: rotate(360deg); } }
.band-cycle .wrap { position: relative; z-index: 1; }
.band-cycle h2, .band-cycle h3 { color: #fff; }
.band-cycle .eyebrow { color: #b8f5d2; }
.band-cycle .lead { color: rgba(255,255,255,.88); }
.band-cycle .btn-primary { background: #fff; color: #024431; box-shadow: 0 10px 30px -10px rgba(0,0,0,.4); }
.band-cycle .btn-primary:hover { background: #eafff3; color: #024431; }
.band-cycle .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.band-cycle .btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }

.band-transit {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(900px 400px at 85% 0%, #e04545 0%, rgba(224,69,69,0) 60%),
              linear-gradient(135deg, #b8292f 0%, #993839 45%, #6c1f20 100%);
}
.band-transit h2, .band-transit h3 { color: #fff; }
.band-transit .eyebrow { color: #ffd2cf; }
.band-transit .lead { color: rgba(255,255,255,.88); }
.band-transit .btn-primary { background: #fff; color: #6c1f20; }
.band-transit .btn-primary:hover { background: #fff0ef; color: #6c1f20; }
.band-transit .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.band-transit .btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ---------- stats ---------- */

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat { padding: 26px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.stat b { display: block; font: 800 40px/1 var(--font-display); letter-spacing: -0.03em; color: var(--brand); }
.stat span { display: block; margin-top: 10px; color: var(--ink-2); font-size: 15px; }
@media (max-width: 720px) { .stats { grid-template-columns: 1fr; } }

/* ---------- press ---------- */

.press { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(28px, 6vw, 72px); }
.press a { opacity: .6; filter: grayscale(1); transition: opacity .2s, filter .2s; }
.press a:hover { opacity: 1; filter: none; }
.press img { height: 34px; width: auto; }

/* ---------- blog ---------- */

.post-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 960px) { .post-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .post-list { grid-template-columns: 1fr; } }
.post-card {
  display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: inherit;
  background: var(--card); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: inherit; }
.post-card .cover { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-2); }
.post-card .cover img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.post-card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card h3 { font-size: 21px; }
.post-card p { color: var(--ink-2); font-size: 15px; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 13px; color: var(--ink-3); }
.tag { display: inline-flex; padding: 4px 10px; border-radius: 999px; font: 700 12px/1.2 var(--font-body); background: var(--bg-2); color: var(--ink-2); }
.tag-cycle { background: #e6f7ee; color: #02734a; }
.tag-transit { background: #fbeceb; color: #993839; }

.article { max-width: 720px; margin: 0 auto; }
.article-head { padding: clamp(40px, 7vw, 88px) 0 clamp(28px, 4vw, 44px); }
.article-head h1 { font-size: clamp(36px, 5.2vw, 58px); margin: 18px 0 18px; }
.article-head .lead { margin-bottom: 20px; }
.byline { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 14px; }
.byline img { width: 40px; height: 40px; border-radius: 12px; background: #fff; box-shadow: var(--shadow-sm); }
.byline b { color: var(--ink); font-weight: 600; }
.prose { font-size: 19px; line-height: 1.75; color: #2a2421; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(26px, 3vw, 32px); margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose blockquote {
  margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--brand);
  font: 600 clamp(21px, 2.4vw, 26px)/1.45 var(--font-display); color: var(--ink); letter-spacing: -0.01em;
}
.prose figure { margin: 2em 0; }
.prose figure .shot { margin: 0 auto; }
.prose figure > figcaption { margin-top: 12px; text-align: center; font-size: 14px; color: var(--ink-3); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose code { font-size: .88em; padding: 2px 6px; border-radius: 6px; background: var(--bg-2); }
.prose .callout { padding: 20px 22px; border-radius: 16px; background: var(--brand-tint); color: var(--ink); font-size: 17px; }
.figure-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 560px) { .figure-row { grid-template-columns: 1fr; } }
.post-footer { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }

/* ---------- CTA + footer ---------- */

.cta { text-align: center; }
.cta h2 { margin: 16px auto 18px; max-width: 760px; }
.cta .lead { max-width: 620px; margin: 0 auto 30px; }
.cta .store-badges { justify-content: center; }

.site-footer { padding: 64px 0 40px; border-top: 1px solid var(--line); background: var(--bg); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 32px; }
.footer-grid h4 { font: 700 13px/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a { color: var(--ink-2); text-decoration: none; }
.footer-grid a:hover { color: var(--ink); text-decoration: underline; }
.footer-grid p { color: var(--ink-3); margin-top: 12px; max-width: 320px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 14px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- reveal on scroll ---------- */

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-delay-1 { transition-delay: .08s; }
.js .reveal-delay-2 { transition-delay: .16s; }
.js .reveal-delay-3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- hero stack: layered media (back shot, main video, front widget) ---------- */

.hero-stack { position: relative; width: 100%; max-width: 540px; height: 700px; margin: 0 auto; }
.hero-stack > * { position: absolute; }
.hero-stack .hs-main { width: 58%; left: 0; top: 0; z-index: 2; }
.hero-stack .hs-back { width: 42%; right: 0; top: 7%; z-index: 1; }
.hero-stack .hs-front { width: 66%; max-width: 360px; right: 0; bottom: 0; z-index: 3; }
@media (max-width: 560px) {
  .hero-stack { height: auto; display: grid; justify-items: center; gap: 0; }
  .hero-stack > * { position: relative; }
  .hero-stack .hs-back { display: none; }
  .hero-stack .hs-main { width: 80%; left: auto; top: auto; right: auto; }
  .hero-stack .hs-front { width: 94%; right: auto; bottom: auto; margin-top: -48px; }
}

.shot-ios { border-radius: 42px; }

/* ---------- voice cue bubble & haptics (Cycle Now) ---------- */

.voice-cue {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 18px;
  background: #0f2a20; color: #fff; box-shadow: var(--shadow-lg); max-width: 420px;
}
.voice-cue .wave { display: flex; align-items: center; gap: 3px; height: 26px; flex: none; }
.voice-cue .wave span { width: 4px; border-radius: 2px; background: #19d273; animation: wave 1s ease-in-out infinite; }
.voice-cue .wave span:nth-child(1) { height: 30%; animation-delay: -.2s; }
.voice-cue .wave span:nth-child(2) { height: 80%; animation-delay: -.5s; }
.voice-cue .wave span:nth-child(3) { height: 55%; animation-delay: -.1s; }
.voice-cue .wave span:nth-child(4) { height: 95%; animation-delay: -.7s; }
.voice-cue .wave span:nth-child(5) { height: 40%; animation-delay: -.35s; }
@keyframes wave { 50% { transform: scaleY(.35); } }
.voice-cue p { font: 600 17px/1.35 var(--font-display); min-height: 1.35em; }
.voice-cue p::after { content: "▍"; color: #19d273; margin-left: 2px; animation: blink 1s steps(1) infinite; }

.haptics { padding: 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.haptics-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.haptics-buttons button { font: 700 14px/1 var(--font-display); height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; }
.haptics-buttons button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.haptic-dots { display: flex; align-items: center; gap: 10px; height: 36px; margin-top: 16px; }
.haptic-dots .buzz { width: 14px; height: 14px; border-radius: 50%; background: var(--brand); opacity: .15; animation: buzz .5s ease-out forwards; }
.haptic-dots .buzz-long { width: 40px; border-radius: 8px; }
@keyframes buzz { 0% { opacity: .15; transform: scale(.8); } 30% { opacity: 1; transform: scale(1.15); } 100% { opacity: 1; transform: none; } }
.haptic-legend { font-size: 13px; color: var(--ink-3); margin-top: 6px; }

/* ---------- FAQ (agency pages) ---------- */

.faq { max-width: 800px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 22px; box-shadow: var(--shadow-sm); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; font: 700 18px/1.35 var(--font-display); color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font: 700 26px/1 var(--font-display); color: var(--brand); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--ink-2); font-size: 16px; }

/* city cards that link to an agency page */
a.city { text-decoration: none; transition: transform .25s ease, box-shadow .25s ease; }
a.city:hover { color: #fff; transform: translateY(-3px); box-shadow: var(--shadow-lg); }
a.city:focus-visible { outline: 3px solid var(--brand-glow); outline-offset: 3px; }
.city .go { margin-top: 14px; font: 700 14px/1 var(--font-display); opacity: .92; }

/* ---------- misc ---------- */

.note { font-size: 13px; color: var(--ink-3); margin-top: 18px; }
.center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.app-chip { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 999px; background: rgba(255,255,255,.14); color: #fff; font: 700 14px/1 var(--font-display); }
.app-chip img { width: 30px; height: 30px; border-radius: 8px; background: #fff; }
.checks-on-dark li, .checks-on-dark li b { color: rgba(255,255,255,.92); }
.checks-on-dark .tick { background: rgba(255,255,255,.16); color: #fff; }
.store-note.on-dark { color: rgba(255,255,255,.72); }
.kicker { font: 700 13px/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 28px; }
.section-head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; max-width: none; }
.section-head-row h2 { margin-bottom: 0; }
.cta-icon { margin: 0 auto; border-radius: 22px; box-shadow: var(--shadow); }

/* pause/play control that site.js adds next to every autoplaying demo video */
.video-toggle {
  position: absolute; right: 12px; bottom: 12px; z-index: 4;
  width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; color: #fff;
  background: rgba(17, 12, 10, 0.62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: .75; transition: opacity .2s ease, transform .15s ease;
}
.video-toggle:hover, .video-toggle:focus-visible { opacity: 1; transform: scale(1.06); }
.video-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ---------- review fixes (shared) ---------- */

/* balanced headline breaks; desktop-only <br>s would strand single words on phones */
h1, h2 { text-wrap: balance; }
@media (max-width: 560px) { h1 br, h2 br { display: none; } }

/* the reveal's `transform: none` outranks .card:hover / .post-card:hover, so restore the hover lift */
@media (prefers-reduced-motion: no-preference) {
  .js .card.is-visible:hover { transform: translateY(-3px); }
  .js .post-card.is-visible:hover { transform: translateY(-4px); }
}

/* with animations off, the buzz dots never fade in; show them at full strength */
@media (prefers-reduced-motion: reduce) { .haptic-dots .buzz { opacity: 1; } }

/* multi-feed diagram: a stacked version for phones, where the wide one shrinks to ~9px text */
.feeds .feeds-tall { display: none; }
@media (max-width: 560px) {
  .feeds .feeds-wide { display: none; }
  .feeds .feeds-tall { display: block; }
}

/* tab strip on phones: wider cards, with the next one peeking in */
@media (max-width: 560px) { .tabs { grid-auto-columns: 84%; } }

/* ---------- accuracy visual: several sources flow into one arrival time ---------- */
.merge { display: grid; grid-template-columns: auto 60px minmax(250px, 300px); align-items: center; justify-content: end; gap: 0; }
.merge-sources { display: grid; gap: 14px; }
.merge-src {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font: 600 15px/1.2 var(--font-body); color: var(--ink); white-space: nowrap;
}
.merge-src i { width: 9px; height: 9px; border-radius: 50%; background: var(--brand); flex: none; }
.merge-lines { width: 100%; height: 180px; overflow: visible; }
.merge-lines path { fill: none; stroke: var(--brand); stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-dasharray: 6 10; animation: flow 1.2s linear infinite; }
.merge-result { max-width: 300px; padding: 8px 18px 14px; }
.merge-result .live-row { border-top: 0; }
.merge-result .live-card-foot { gap: 10px; }
@media (max-width: 640px) {
  .merge { grid-template-columns: 1fr; justify-items: center; }
  .merge-lines { display: none; }
  .merge-sources { position: relative; justify-items: center; margin-bottom: 40px; }
  .merge-sources::after { content: "↓"; position: absolute; left: 50%; bottom: -34px; transform: translateX(-50%); color: var(--brand); font: 800 22px/1 var(--font-display); }
  .merge-result { width: 100%; }
}
