/* ===== Fonts ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Values copy apps/mobile/lib/theme/bus_colors.dart. */
  --bus-yellow: #ffb800;
  --bus-yellow-hover: #d97706;
  --bus-yellow-light: #fffbeb;
  --bus-yellow-badge: #fde68a;
  --bus-yellow-ink: #a16207;
  --bus-ink: #111827;
  --bus-ink-2: #374151;
  --bus-muted: #4b5563;
  --bus-canvas: #fffdf7;
  --bus-card: #ffffff;
  --bus-divider: #e5e7eb;
  --bus-success: #166534;
  --bus-success-bg: #dcfce7;
  --bus-warning: #b45309;
  --bus-warning-bg: #fef3c7;
  --bus-danger: #991b1b;
  --bus-danger-bg: #fee2e2;
  --bus-info: #1d4ed8;
  --bus-info-bg: #dbeafe;
  --font-main:
    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
    sans-serif;
  --max-width: 960px;
  --radius-btn: 16px;
  --radius-card: 18px;
  --radius-tactile: 20px;
  --shadow-tactile: 4px 4px 0 var(--bus-ink);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--bus-ink);
  background: var(--bus-canvas);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--bus-yellow-ink);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible {
  outline: 3px solid var(--bus-ink);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ===== Utility ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Navbar ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bus-yellow);
  border-bottom: 2px solid var(--bus-ink);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--bus-ink);
}

.navbar__brand svg {
  width: 28px;
  height: 28px;
  fill: var(--bus-ink);
}

.navbar__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  list-style: none;
}

.navbar__links a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--bus-ink);
}

.navbar__links a:hover {
  color: var(--bus-ink);
  text-decoration: underline;
}

/* ===== Hero ===== */
.hero {
  padding: 80px 0 64px;
  text-align: center;
  background: linear-gradient(135deg, var(--bus-canvas) 0%, var(--bus-yellow-light) 100%);
}

.hero__badge {
  display: inline-block;
  background: var(--bus-yellow-badge);
  border: 1.5px solid var(--bus-ink);
  border-radius: 100px;
  padding: 6px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--bus-ink);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 2.75rem;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero h1 span {
  color: var(--bus-yellow-ink);
}

.hero__subtitle {
  font-size: 1.15rem;
  color: var(--bus-muted);
  max-width: 600px;
  margin: 0 auto 36px;
}

.hero__ctas,
.cta-banner__btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
}

.hero__cta,
.cta-banner__btn {
  display: inline-flex;
  align-items: center;
  background: var(--bus-yellow);
  color: var(--bus-ink);
  border: 2px solid var(--bus-ink);
  padding: 12px 28px;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 1rem;
}

.hero__cta:hover {
  background: var(--bus-yellow-hover);
  color: var(--bus-ink);
  text-decoration: none;
}

/* A second button in a row is the secondary button. */
.hero__cta + .hero__cta,
.cta-banner__btn {
  background: var(--bus-ink);
  color: #fff;
}

.hero__cta + .hero__cta:hover,
.cta-banner__btn:hover {
  background: var(--bus-ink-2);
  color: #fff;
  text-decoration: none;
}

.badge-soon {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.3;
  padding: 8px 22px;
  border: 1.5px dashed var(--bus-muted);
  border-radius: 100px;
  background: var(--bus-card);
  color: var(--bus-muted);
  font-weight: 600;
  font-size: 1rem;
}

.badge-soon small {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--bus-yellow-ink);
}

/* ===== Sections ===== */
.section {
  padding: 72px 0;
}

.section--alt {
  background: var(--bus-yellow-light);
}

.section__title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 12px;
}

.section__subtitle {
  text-align: center;
  color: var(--bus-muted);
  max-width: 560px;
  margin: 0 auto 48px;
}

/* ===== Features Grid ===== */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.feature {
  background: var(--bus-card);
  border: 2px solid var(--bus-ink);
  border-radius: var(--radius-tactile);
  box-shadow: var(--shadow-tactile);
  padding: 32px 28px;
}

.feature__icon {
  width: 48px;
  height: 48px;
  border: 2px solid var(--bus-ink);
  border-radius: 12px;
  background: var(--bus-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature__icon svg {
  width: 24px;
  height: 24px;
  fill: var(--bus-ink);
}

.feature h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.feature p {
  color: var(--bus-muted);
  line-height: 1.6;
}

/* ===== How It Works ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 32px;
  counter-reset: step;
}

.step {
  text-align: center;
  padding: 28px 20px;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--bus-yellow);
  border: 2px solid var(--bus-ink);
  color: var(--bus-ink);
  font-weight: 700;
  font-size: 1.25rem;
}

.step h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.step p {
  color: var(--bus-muted);
}

/* ===== CTA Banner ===== */
.cta-banner {
  text-align: center;
  padding: 64px 0;
  background: var(--bus-yellow);
  border-top: 2px solid var(--bus-ink);
  border-bottom: 2px solid var(--bus-ink);
  color: var(--bus-ink);
}

.cta-banner h2 {
  font-size: 1.75rem;
  margin-bottom: 12px;
}

.cta-banner p {
  margin-bottom: 28px;
  font-size: 1.05rem;
}

/* ===== Footer ===== */
.footer {
  border-top: 2px solid var(--bus-ink);
  padding: 32px 0;
  text-align: center;
  font-size: 1rem;
  color: var(--bus-muted);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin-bottom: 12px;
}

.footer__links a {
  color: var(--bus-ink-2);
  font-weight: 500;
}

.footer__links a:hover {
  color: var(--bus-ink);
}

/* ===== Legal Pages (Privacy / Terms) ===== */
.legal {
  padding: 64px 0;
}

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

.legal__updated {
  color: var(--bus-muted);
  margin-bottom: 36px;
}

.legal h2 {
  font-size: 1.3rem;
  margin-top: 36px;
  margin-bottom: 12px;
}

.legal p,
.legal ul {
  margin-bottom: 16px;
  color: var(--bus-muted);
  line-height: 1.75;
}

.legal ul {
  padding-left: 24px;
}

/* ===== Small screens ===== */
@media (max-width: 640px) {
  .navbar .container {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .hero {
    padding: 56px 0 48px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .section {
    padding: 48px 0;
  }

  .features,
  .steps {
    grid-template-columns: 1fr;
  }
}
