/* Commute Times with Traffic — site styles (index.html and privacy.html)
   Visual language: road signage and departure boards.
   Asphalt + lane-marking yellow, warm paper, traffic-signal colours as the only accents.
   Fonts are self-hosted (site/fonts, SIL OFL) so visiting the site contacts no third party. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --asphalt: #14161a;
  --asphalt-2: #1d2026;
  --asphalt-3: #2a2e36;
  --paper: #f5f1e8;
  --paper-2: #ebe5d5;
  --ink: #16181d;
  --body: #383d48;
  --muted: #5a6070;
  --on-dark: #e9ecf2;
  --on-dark-muted: #a9b0bf;
  --sign: #ffd23f;
  --sign-deep: #e8b800;
  --go: #2fd27a;
  --go-ink: #0b6e3d;
  --warn: #ffb020;
  --warn-ink: #7a4a00;
  --stop: #ff5a52;
  --stop-ink: #a9231c;
  --brand: #1a73e8;
  --line: #d9d2bf;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--paper);
  color: var(--body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--display); color: var(--ink); line-height: 1.08; margin: 0; letter-spacing: -.02em; }
a { color: #0b57c0; }
img { max-width: 100%; display: block; }
code { font-family: var(--mono); font-size: .92em; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 800px; }

:focus-visible { outline: 3px solid var(--sign); outline-offset: 3px; border-radius: 4px; }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--sign); color: var(--ink); font-weight: 700;
  padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip:focus { top: 12px; }

.mono-label {
  font-family: var(--mono); font-weight: 600; font-size: 12.5px;
  letter-spacing: .14em; text-transform: uppercase;
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 30;
  background: rgba(20, 22, 26, .92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--asphalt-3);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: #fff; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand span { font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--on-dark-muted); text-decoration: none; font-size: 14.5px; font-weight: 500; }
.nav-links a:hover { color: #fff; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  background: var(--sign); color: var(--ink);
  font-family: var(--display); font-weight: 700; font-size: 16px; letter-spacing: -.005em;
  text-decoration: none; border-radius: 12px; border: 2px solid var(--sign);
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
  /* The "pressed ledge" is an inner edge, so every button has the same outer size and aligns. */
  box-shadow: inset 0 -4px 0 var(--sign-deep);
}
.btn:hover { background: #ffdc66; }
.btn:active { box-shadow: inset 0 -1px 0 var(--sign-deep); padding-top: 3px; }
.btn svg { width: 19px; height: 19px; fill: currentColor; }
.btn.ghost { background: transparent; color: #fff; border-color: #4a505c; box-shadow: none; }
.btn.ghost:hover { background: transparent; border-color: #fff; }
.btn.ghost:active { padding-top: 0; }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 14.5px; box-shadow: inset 0 -3px 0 var(--sign-deep); }
.btn.dark { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: inset 0 -4px 0 #000; }
.btn.dark:hover { background: #2a2e36; }

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(255, 210, 63, .10), transparent 60%),
    radial-gradient(700px 420px at 0% 100%, rgba(47, 210, 122, .08), transparent 60%),
    var(--asphalt);
  color: var(--on-dark);
  padding: 72px 0 84px;
  position: relative;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.hero .mono-label { color: var(--sign); display: inline-flex; align-items: center; gap: 10px; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--go); box-shadow: 0 0 0 0 rgba(47, 210, 122, .6); animation: pulse 2s infinite; }
.hero h1 { color: #fff; font-size: clamp(40px, 5.2vw, 66px); font-weight: 800; letter-spacing: -.035em; margin: 20px 0 0; }
.hero h1 .mark { color: var(--ink); background: var(--sign); padding: 0 .14em; border-radius: .12em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hero .lead { font-size: 19px; max-width: 540px; margin: 24px 0 0; color: var(--on-dark-muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-note { font-family: var(--mono); font-size: 13px; color: var(--on-dark-muted); margin: 22px 0 0; line-height: 1.7; }

/* lane marking under the hero */
.lane { height: 8px; background: repeating-linear-gradient(90deg, var(--sign) 0 46px, transparent 46px 82px); opacity: .9; }

/* ---------- popup mock (real text, so it is readable and selectable) ---------- */
.mock { width: 100%; max-width: 410px; margin: 0 auto; border-radius: 18px; overflow: hidden; background: #f1f5f9; box-shadow: 0 30px 70px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .06); transform: rotate(1.4deg); animation: float 7s ease-in-out infinite; }
.mock-bar { background: linear-gradient(135deg, #1a73e8 0%, #1b63c9 100%); color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; font-weight: 600; font-size: 15px; }
.mock-brand { display: inline-flex; align-items: center; gap: 9px; }
.mock-car { width: 21px; height: 21px; fill: #fff; flex: none; }
.mock-tools { display: inline-flex; align-items: center; gap: 4px; }
.mock-tools svg { width: 28px; height: 28px; padding: 5px; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; display: block; }
.mock-body { padding: 12px; display: grid; gap: 10px; }
.mcard { background: #fff; border-radius: 13px; padding: 13px 14px; box-shadow: 0 1px 3px rgba(15, 23, 42, .12); color: #0f172a; }
.mcard .tag { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; color: #1a73e8; }
.mcard .name { font-weight: 700; font-size: 14.5px; margin-top: 2px; }
.mcard .time-row { display: flex; align-items: center; gap: 9px; margin-top: 6px; flex-wrap: wrap; }
.mcard .time { font-family: var(--mono); font-weight: 600; font-size: 25px; letter-spacing: -.02em; }
.mcard .sub { font-size: 12px; color: #64748b; margin-top: 3px; }
.badge { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 99px; }
.badge.good { background: #dcfce7; color: #15803d; }
.badge.moderate { background: #fef3c7; color: #b45309; }
.badge.heavy { background: #fee2e2; color: #b91c1c; }
.leave { margin-top: 9px; background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; border-radius: 10px; padding: 7px 10px 7px 26px; font-size: 12.5px; position: relative; line-height: 1.45; }
.leave::before { content: ""; position: absolute; left: 10px; top: 13px; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; animation: pulse 2s infinite; }
.mfoot { display: flex; justify-content: space-between; padding: 2px 14px 12px; font-size: 11px; color: #94a3b8; }
.mfoot b { color: #1a73e8; font-weight: 600; }

/* ---------- sections ---------- */
section { padding: 92px 0; }
.sec-head { max-width: 680px; margin-bottom: 52px; }
.sec-head .mono-label { color: var(--muted); }
.sec-head h2 { font-size: clamp(32px, 4.6vw, 54px); font-weight: 800; margin-top: 14px; letter-spacing: -.03em; }
.sec-head p { font-size: 18px; margin: 18px 0 0; }

/* ---------- features: numbered departure-board rows ---------- */
.rows { border-top: 2px solid var(--ink); }
.row {
  display: grid; grid-template-columns: 76px minmax(200px, 340px) 1fr auto; gap: 8px 28px; align-items: baseline;
  padding: 26px 0; border-bottom: 1px dashed #b9b09a;
  position: relative; isolation: isolate;
}
/* Hover highlight is a pseudo-element that bleeds outside the row, so nothing reflows. */
.row::before {
  content: ""; position: absolute; inset: 0 -16px; z-index: -1;
  background: rgba(255, 210, 63, .26); border-radius: 10px;
  opacity: 0; transition: opacity .2s ease;
}
.row:hover::before { opacity: 1; }
.row .n { font-family: var(--mono); font-weight: 600; font-size: 15px; color: var(--muted); }
.row h3 { font-size: 26px; font-weight: 700; }
.row p { margin: 0; font-size: 16.5px; }
.row .tg { font-family: var(--mono); font-weight: 600; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 6px; background: var(--ink); color: var(--sign); white-space: nowrap; }

/* ---------- screenshots ---------- */
.dark-sec { background: var(--asphalt); color: var(--on-dark); }
.dark-sec .sec-head h2 { color: #fff; }
.dark-sec .sec-head .mono-label { color: var(--sign); }
.dark-sec .sec-head p { color: var(--on-dark-muted); }
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.shots figure { margin: 0; }
.shots a { display: block; position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--asphalt-3); cursor: zoom-in; transition: transform .2s ease, border-color .2s ease; }
.shots a:hover { transform: translateY(-4px); border-color: var(--sign); }
.shots a::after {
  content: "Click to enlarge"; position: absolute; right: 12px; bottom: 12px;
  font-family: var(--mono); font-weight: 600; font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  background: var(--ink); color: var(--sign); padding: 6px 10px; border-radius: 6px;
  opacity: 0; transition: opacity .2s ease; pointer-events: none;
}
.shots a:hover::after, .shots a:focus-visible::after { opacity: 1; }
.shots img { width: 100%; height: auto; }

/* ---------- lightbox ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(10, 11, 14, .92); }
body:has(.lightbox[open]) { overflow: hidden; }
.lb-inner { width: 100%; height: 100%; display: grid; grid-template-rows: 1fr auto; place-items: center; padding: 56px 72px 24px; gap: 14px; }
.lb-inner img { max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.lb-cap { font-family: var(--mono); font-size: 14px; color: var(--on-dark-muted); text-align: center; }
.lb-btn {
  position: fixed; z-index: 2; width: 48px; height: 48px; border-radius: 50%;
  border: 2px solid #4a505c; background: var(--asphalt-2); color: #fff; font-size: 24px; line-height: 1; cursor: pointer;
  display: grid; place-items: center; transition: border-color .15s ease, background .15s ease;
}
.lb-btn:hover { border-color: var(--sign); background: var(--asphalt-3); }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
@media (max-width: 720px) {
  .lb-inner { padding: 64px 10px 20px; }
  .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; }
  .lb-prev { left: 14px; } .lb-next { right: 14px; }
}
.shots figcaption { font-family: var(--mono); font-size: 13.5px; color: var(--on-dark-muted); margin-top: 12px; }
.shots figcaption b { color: var(--sign); font-weight: 600; margin-right: 8px; }

/* ---------- setup: transit line ---------- */
.line { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; counter-reset: stop; margin-top: 8px; }
.line::before { content: ""; position: absolute; left: 22px; right: 22px; top: 22px; border-top: 4px dashed var(--ink); opacity: .85; }
.stop { position: relative; padding-top: 70px; counter-increment: stop; }
.stop::before {
  content: counter(stop); position: absolute; top: 0; left: 0;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--sign); color: var(--ink); border: 4px solid var(--ink);
  display: grid; place-items: center; font-family: var(--mono); font-weight: 600; font-size: 18px;
}
.stop h3 { font-size: 24px; font-weight: 700; }
.stop p { margin: 10px 0 0; font-size: 16.5px; }
.stop code { background: var(--paper-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; }
.tickets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.ticket { background: #fff; border: 2px solid var(--ink); border-radius: 14px; padding: 20px 22px 22px; position: relative; }
.ticket::after { content: ""; position: absolute; right: 18px; top: -2px; bottom: -2px; border-right: 2px dashed #cfc8b4; opacity: 0; }
.ticket h3 { font-size: 22px; font-weight: 700; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ticket h3 { font-size: 20px; flex-wrap: nowrap; white-space: nowrap; }
.ticket h3 .svc { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.ticket h3 .svc img { width: 28px; height: 28px; flex: none; }
.ticket h3 span {font-family: var(--mono); font-weight: 600; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; border-radius: 6px; }
.ticket h3 .free { background: #d9f7e6; color: var(--go-ink); }
.ticket h3 .paid { background: #ffe9c2; color: var(--warn-ink); }
.ticket ul { margin: 12px 0 0; padding: 0; list-style: none; font-size: 15.5px; }
.ticket li { padding: 5px 0 5px 22px; position: relative; }
.ticket li::before { content: "\2192"; position: absolute; left: 0; font-family: var(--mono); color: var(--muted); }

/* ---------- privacy band ---------- */
.band { background: var(--sign); color: var(--ink); padding: 84px 0; }
.band-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
.band h2 { font-size: clamp(34px, 5vw, 60px); font-weight: 800; letter-spacing: -.035em; }
.band p { font-size: 18px; margin: 18px 0 0; color: #2a2610; max-width: 520px; }
.band .btn { margin-top: 26px; }
.facts { display: grid; gap: 14px; }
.fact { background: var(--ink); color: #fff; border-radius: 14px; padding: 18px 22px; display: flex; align-items: baseline; gap: 18px; }
.fact b { font-family: var(--mono); font-weight: 600; font-size: 40px; color: var(--sign); min-width: 64px; letter-spacing: -.04em; }
.fact span { font-size: 16px; color: var(--on-dark); }

/* ---------- footer ---------- */
footer.site { background: var(--asphalt); color: var(--on-dark-muted); padding: 44px 0; font-size: 14.5px; }
footer.site a { color: var(--on-dark); text-decoration: none; }
footer.site a:hover { color: var(--sign); }
.foot-inner { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.foot-links { display: flex; flex-wrap: wrap; gap: 22px; }
.foot-legal { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--asphalt-3); font-size: 13px; line-height: 1.6; color: var(--on-dark-muted); max-width: 1120px; }

/* ---------- policy page ---------- */
.policy-head { background: var(--asphalt); color: #fff; padding: 56px 0 44px; border-bottom: 8px solid var(--sign); }
.policy-head h1 { color: #fff; font-size: clamp(34px, 5vw, 54px); font-weight: 800; letter-spacing: -.03em; }
.policy-head p { margin: 10px 0 0; color: var(--on-dark-muted); font-family: var(--mono); font-size: 14px; }
.policy-body { background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); padding: 40px; margin: 40px 0 72px; }
.policy-body h2 { font-size: 24px; margin: 36px 0 10px; font-weight: 700; }
.policy-body h2:first-of-type { margin-top: 0; }
.policy-body p, .policy-body li { font-size: 16.5px; }
.policy-body ul { padding-left: 22px; }
.policy-body li { margin: 8px 0; }
.policy-body code { background: var(--paper-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.policy-body .note { background: #fff8d9; border-left: 5px solid var(--sign-deep); border-radius: 10px; padding: 16px 20px; margin: 22px 0; }
.meta { font-family: var(--mono); font-size: 13.5px; color: var(--muted); margin-bottom: 26px; }

/* ---------- motion ---------- */
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(47, 210, 122, .55); } 70% { box-shadow: 0 0 0 10px rgba(47, 210, 122, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 210, 122, 0); } }
@keyframes float { 0%, 100% { transform: rotate(1.4deg) translateY(0); } 50% { transform: rotate(1.4deg) translateY(-8px); } }
@keyframes rise { from { transform: translateY(18px); } to { transform: none; } }
.hero-grid > * { animation: rise .7s ease both; }
.hero-grid > *:nth-child(2) { animation-delay: .15s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .mock { transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .band-grid { grid-template-columns: 1fr; gap: 44px; }
  .row { grid-template-columns: 52px 1fr; }
  .row p { grid-column: 2; }
  .row .tg { grid-column: 2; justify-self: start; }
  .line { grid-template-columns: 1fr; gap: 30px; }
  .line::before { left: 21px; right: auto; top: 22px; bottom: 22px; border-top: 0; border-left: 4px dashed var(--ink); }
  .stop { padding: 6px 0 0 70px; }
  .tickets { grid-template-columns: 1fr; }
  .shots { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  section { padding: 64px 0; }
  .hero { padding: 48px 0 60px; }
  .policy-body { padding: 24px; }
  .row h3 { font-size: 23px; }
}
