/* transit-mate.com: the app's website (home, privacy, support, account deletion). The app's own colours and font.
   No scripts: everything here is HTML and CSS (the site's security headers forbid scripts and inline styles).
   Restraint: neutral surfaces, one accent (blue) for actions and links, mode colours only where they mean a mode. */
@font-face { font-family: "Work Sans"; src: url("/fonts/work_sans_regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Work Sans"; src: url("/fonts/work_sans_semibold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Work Sans"; src: url("/fonts/work_sans_bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --blue: #007bfb;
  --blue-deep: #0058b8;
  --train: #0072ce;
  --tram: #78be20;
  --bus: #ff8200;
  --vline: #8f1a95;
  --green: #16a34a;
  --bg: #ffffff;
  --raised: #f5f7f9;
  --text: #111a24;
  --muted: #5b6673;
  --rule: #e4e8ec;
  --link: #0062cc;
  --focus: #0062cc;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1319;
    --raised: #161d25;
    --text: #e9edf2;
    --muted: #9aa5b1;
    --rule: #232c36;
    --link: #74b9ff;
    --focus: #74b9ff;
  }
}
:root[data-theme="dark"] { --bg: #0e1319; --raised: #161d25; --text: #e9edf2; --muted: #9aa5b1; --rule: #232c36; --link: #74b9ff; --focus: #74b9ff; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  overflow-x: hidden;
}
a { color: var(--link); text-underline-offset: 3px; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 10; background: var(--bg); padding: 8px 14px; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 700px; }

/* top bar */
.bar { border-bottom: 1px solid var(--rule); background: var(--bg); }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 18px; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.bar nav { display: flex; gap: 24px; font-size: 15px; }
.bar nav a { color: var(--muted); text-decoration: none; transition: color 150ms; }
.bar nav a:hover, .bar nav a[aria-current] { color: var(--text); }

/* buttons */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 20px; border-radius: 10px; background: var(--blue); color: #fff; text-decoration: none; font-weight: 600; font-size: 16px; transition: background-color 150ms; }
.button:hover { background: var(--blue-deep); }
.button.quiet { background: transparent; color: var(--text); padding-left: 0; padding-right: 0; min-height: 0; }
.button.quiet:hover { background: transparent; color: var(--link); }
.button.disabled { background: var(--raised); color: var(--muted); cursor: default; }
.button.disabled:hover { background: var(--raised); }

/* home: hero */
.hero { padding: 72px 0 80px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6vw, 60px); line-height: 1.05; margin: 0 0 20px; letter-spacing: -0.025em; font-weight: 700; }
.hero p.lead { font-size: 19px; color: var(--muted); margin: 0 0 20px; max-width: 32em; }
.modes { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 36px; padding: 0; list-style: none; font-size: 15px; color: var(--muted); }
.modes li { display: flex; align-items: center; gap: 7px; }
.modes li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }

.get { display: flex; gap: 24px; align-items: center; }
.get-text { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.get .note { margin: 0; font-size: 14px; color: var(--muted); }
.qr { flex: none; width: 112px; height: 112px; border-radius: 10px; background: var(--raised); display: grid; place-items: center; text-align: center; color: var(--muted); font-size: 12px; line-height: 1.35; padding: 10px; }
.qr img { width: 100%; height: 100%; border-radius: 8px; background: #fff; padding: 6px; }

/* the phone in the hero: a drawn screen of the app (always light, like the app's street map) */
.phone { justify-self: center; width: min(290px, 76vw); aspect-ratio: 9 / 19; border-radius: 42px; padding: 9px; background: #0b1016; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18); }
.screen { position: relative; height: 100%; border-radius: 34px; overflow: hidden; background: #eef1f4; font-size: 12px; color: #111a24; }
.screen .map { position: absolute; inset: 0; width: 100%; height: 100%; }
.screen .notch { position: absolute; top: 9px; left: 50%; width: 80px; height: 22px; margin-left: -40px; border-radius: 12px; background: #0b1016; z-index: 3; }
.screen .search { position: absolute; top: 44px; left: 12px; right: 12px; z-index: 2; display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 10px; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12); color: #6b7785; font-size: 13px; }
.screen .search svg { width: 15px; height: 15px; flex: none; }
.screen .sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 8px 14px 14px; border-radius: 20px 20px 0 0; background: #fff; box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08); }
.screen .grab { width: 34px; height: 4px; margin: 0 auto 8px; border-radius: 4px; background: #d6dde5; }
.screen .sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2px; font-weight: 700; font-size: 13px; }
.screen .sheet-head span { display: flex; align-items: center; gap: 5px; font-weight: 600; font-size: 11px; color: #5b6673; }
.screen .sheet-head span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.screen .row { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-top: 1px solid #edf1f5; }
.screen .row:first-of-type { border-top: 0; }
.screen .badge { flex: none; min-width: 34px; padding: 2px 6px; border-radius: 5px; color: #fff; font-weight: 700; font-size: 11px; text-align: center; background: var(--c); }
.screen .dest { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.screen .dest small { display: block; color: #6b7785; font-size: 10px; }
.screen .mins { font-weight: 700; font-size: 13px; color: #111a24; }

/* vehicles move on the drawn map (that is the product); with reduced motion they stay put */
.moving { display: inline; }
.still { display: none; }
@media (prefers-reduced-motion: reduce) {
  .moving { display: none; }
  .still { display: inline; }
}

/* home: sections */
.section { padding: 80px 0; border-top: 1px solid var(--rule); }
.section h2 { font-size: clamp(26px, 3.6vw, 34px); line-height: 1.15; margin: 0 0 8px; letter-spacing: -0.02em; }
.section .sub { margin: 0 0 48px; color: var(--muted); font-size: 18px; max-width: 34em; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 48px; margin: 0; padding: 0; list-style: none; }
.features h3 { margin: 0 0 6px; font-size: 17px; font-weight: 600; }
.features p { margin: 0; color: var(--muted); font-size: 15px; }

.quips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 48px; margin: 0; padding: 0; list-style: none; }
.quips strong { display: block; font-size: 20px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 8px; }
.quips span { color: var(--muted); font-size: 15px; }

.cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.cta h2 { margin: 0 0 4px; }
.cta p { margin: 0; color: var(--muted); }

.m-train { --c: var(--train); } .m-tram { --c: var(--tram); } .m-vline { --c: var(--vline); } .m-bus { --c: var(--bus); }

/* text pages */
.page { padding: 56px 0 88px; }
.page h1 { font-size: clamp(32px, 5vw, 42px); line-height: 1.1; margin: 0 0 8px; letter-spacing: -0.02em; }
.page .updated { color: var(--muted); font-size: 15px; margin: 0 0 32px; }
.page h2 { font-size: 21px; margin: 44px 0 8px; letter-spacing: -0.01em; }
.page h3 { font-size: 17px; margin: 22px 0 4px; }
.page p, .page li { max-width: 66ch; }
.page ul, .page ol { padding-left: 22px; }
.page li { margin: 6px 0; }
.summary { background: var(--raised); border-radius: 12px; padding: 20px 24px; margin: 0 0 12px; }
.summary ul { margin: 8px 0 0; }
table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 14px 0; display: block; overflow-x: auto; }
th, td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-weight: 600; white-space: nowrap; }

/* support: questions open and close without scripts */
.faq { margin: 8px 0 0; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--muted); font-size: 22px; line-height: 1; font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: -4px 0 0; padding: 0 0 20px; color: var(--muted); }

/* 404 */
.lost { padding: 96px 0 112px; }
.lost h1 { margin: 0 0 12px; font-size: clamp(30px, 5vw, 42px); letter-spacing: -0.02em; }
.lost p { color: var(--muted); margin: 0 0 28px; max-width: 32em; }
.lost .links { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }

footer { border-top: 1px solid var(--rule); padding: 32px 0 44px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; }
footer .made { color: var(--text); font-weight: 600; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }
footer .fine { flex-basis: 100%; margin: 0; font-size: 13px; }

@media (max-width: 860px) {
  .hero { padding: 40px 0 56px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; }
  .phone { width: min(260px, 72vw); }
  .features, .quips { grid-template-columns: 1fr 1fr; }
  .cta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .features, .quips { grid-template-columns: 1fr; gap: 28px; }
  .section { padding: 56px 0; }
  .section .sub { margin-bottom: 32px; }
  .qr { display: none; } /* on a phone, the button itself is the way in */
  .bar nav { gap: 18px; }
  .brand span { display: none; }
}
