:root {
  --bg: #ffffff;
  --surface: #f7f8fa;
  --surface-2: #eef0f3;
  --text: #10161c;
  --text-muted: #5b6770;
  --border: #e1e5ea;
  --tfl-blue: #0019a8;
  --tfl-red: #dc241f;
  --good: #007d32;
  --minor: #b35900;
  --severe: #dc241f;
  --accent: var(--tfl-blue);
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(16, 22, 28, 0.06), 0 8px 32px rgba(16, 22, 28, 0.1);
  --max: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1216;
    --surface: #181d24;
    --surface-2: #222933;
    --text: #f1f4f7;
    --text-muted: #98a3ad;
    --border: #2c333b;
    --minor: #ff9e2c;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 32px rgba(0, 0, 0, 0.35);
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

code {
  font-size: 0.9em;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--surface-2);
}

.container {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand__icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  font-size: 0.9rem;
}

.nav__links a {
  color: var(--text-muted);
  text-decoration: none;
}

.nav__links a:hover {
  color: var(--text);
  text-decoration: none;
}

.nav__links a.nav__support {
  color: var(--tfl-red);
  font-weight: 600;
}

.nav__links a.nav__support:hover {
  text-decoration: underline;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--tfl-blue);
  color: #fff;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--tfl-blue) 35%, transparent);
}

.btn--secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--small {
  padding: 8px 14px;
  font-size: 0.85rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 48px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tfl-red);
  margin-bottom: 12px;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.hero__lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 36ch;
}

.hero__note {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.mockup {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.mockup__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--tfl-blue);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}

.mockup__body {
  padding: 16px;
}

.mockup__route {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.mockup__change {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.mockup__pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: color-mix(in srgb, var(--good) 16%, var(--surface));
  color: var(--good);
  margin-bottom: 12px;
}

.mockup__train {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-left: 4px solid var(--tfl-blue);
  background: var(--bg);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  font-size: 0.85rem;
}

.mockup__train--amber {
  border-left-color: var(--minor);
}

.mockup__time {
  font-weight: 700;
  font-size: 1.1rem;
}

.mockup__time span {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ---------- Sections ---------- */
.section {
  padding: 56px 0;
}

.section--alt {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.section__head {
  text-align: center;
  max-width: 52ch;
  margin: 0 auto 40px;
}

.section__head h2 {
  font-size: 1.75rem;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.section__head p {
  color: var(--text-muted);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature {
  padding: 22px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.section--alt .feature {
  background: var(--surface-2);
}

.feature__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--tfl-blue) 12%, var(--bg));
  color: var(--tfl-blue);
  font-size: 1.2rem;
  margin-bottom: 14px;
}

.feature h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.feature p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--tfl-blue);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.step h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.step p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ---------- Privacy band ---------- */
.privacy-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.privacy-band ul {
  list-style: none;
  margin-top: 16px;
}

.privacy-band li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.privacy-band li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--good);
  font-weight: 700;
}

.privacy-card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.privacy-card h3 {
  margin-bottom: 12px;
}

.privacy-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 640px;
  margin: 0 auto;
}

.faq details {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.faq summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

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

.faq p {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ---------- Footer ---------- */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.footer__links {
  display: flex;
  gap: 20px;
  list-style: none;
}

/* ---------- Support ---------- */
.support {
  max-width: 520px;
  margin-inline: auto;
  text-align: center;
}

.support__card h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.support__card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.support__btns {
  justify-content: center;
  margin-top: 20px;
}

.support__note {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------- Legal page ---------- */
.legal {
  padding: 48px 0 64px;
  max-width: 680px;
}

.legal h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.legal .updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

.legal h2 {
  font-size: 1.15rem;
  margin: 28px 0 10px;
}

.legal p,
.legal li {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.legal ul {
  padding-left: 1.25rem;
  margin-bottom: 16px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__grid,
  .privacy-band,
  .features,
  .steps {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 40px;
  }

  .nav__links {
    display: none;
  }
}
