/* MetroSetu — aligned with app HomeFeatureIconColors + FeatureTile */
:root {
  --brand-primary: #3b68e0;
  --brand-primary-deep: #2c51c4;
  --brand-primary-light: #eef3ff;
  --brand-navy: #122153;
  --surface: #ffffff;
  --surface-subtle: #f8fafc;
  --surface-card: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --saffron: #ff9933;
  --india-green: #138808;
  --icon-route: #ff9500;
  --icon-map: #138808;
  --icon-qr: #00bcf1;
  --icon-card: #1e88e5;
  --icon-near: #e57373;
  --icon-fare: #c9a227;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08);
  --shadow-tile: 0 1px 3px rgba(15, 23, 42, 0.08);
  --radius: 12px;
  --radius-lg: 16px;
  --radius-tile: 16px;
  --max-width: 960px;
  --content-width: 720px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--surface-subtle);
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

.material-symbols-rounded {
  font-family: "Material Symbols Rounded";
  font-weight: normal;
  font-style: normal;
  font-size: 22px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.brand:hover {
  text-decoration: none;
  color: var(--brand-primary);
}

.brand-logo {
  border-radius: 10px;
  display: block;
}

.site-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-link {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.nav-link:hover {
  background: var(--brand-primary-light);
  color: var(--brand-primary);
  text-decoration: none;
}

.nav-link.is-active {
  background: var(--brand-primary-light);
  color: var(--brand-primary-deep);
}

.tricolor {
  display: flex;
  height: 3px;
}

.tricolor span {
  flex: 1;
}

.tricolor .saffron { background: var(--saffron); }
.tricolor .white {
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.tricolor .green { background: var(--india-green); }

/* Layout */
.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px 48px;
}

.content {
  max-width: var(--content-width);
}

/* Hero — matches app HomeHeroCard */
.hero {
  margin: 24px 0 28px;
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #5a8ef5 0%, var(--brand-primary) 45%, var(--brand-primary-deep) 100%);
  color: #fff;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hero-text {
  flex: 1;
  min-width: 0;
}

.hero::after {
  content: "";
  position: absolute;
  right: -20px;
  bottom: -30px;
  width: 200px;
  height: 80px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 40px;
  transform: rotate(-8deg);
  pointer-events: none;
}

.hero h1 {
  margin: 0 0 6px;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero .tagline {
  margin: 0;
  font-size: 0.9375rem;
  opacity: 0.9;
}

.hero-logo {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 1;
}

.hero-tricolor {
  margin-top: 16px;
  display: flex;
  height: 4px;
  border-radius: 2px;
  overflow: hidden;
  max-width: 100%;
  position: relative;
  z-index: 1;
}

.hero-tricolor span {
  flex: 1;
}

.hero-tricolor .saffron { background: var(--saffron); }
.hero-tricolor .white { background: rgba(255, 255, 255, 0.95); }
.hero-tricolor .green { background: var(--india-green); }

/* Feature section — matches app home grid */
.section-title {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 0 0 14px;
  color: var(--text);
}

.feature-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Feature tile — matches FeatureTile composable */
.feature-tile {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-tile);
  padding: 16px;
  box-shadow: var(--shadow-tile);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 120px;
}

.icon-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.icon-badge.icon-route {
  background: rgba(255, 149, 0, 0.12);
  color: var(--icon-route);
}

.icon-badge.icon-map {
  background: rgba(19, 136, 8, 0.12);
  color: var(--icon-map);
}

.icon-badge.icon-qr {
  background: rgba(0, 188, 241, 0.12);
  color: var(--icon-qr);
}

.icon-badge.icon-card {
  background: rgba(30, 136, 229, 0.12);
  color: var(--icon-card);
}

.icon-badge.icon-near {
  background: rgba(229, 115, 115, 0.12);
  color: var(--icon-near);
}

.icon-badge.icon-fare {
  background: rgba(201, 162, 39, 0.12);
  color: var(--icon-fare);
}

.feature-tile h3 {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}

.feature-tile .subtitle {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.feature-tile .hint {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.85;
}

/* Callouts */
.callout {
  padding: 16px 20px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  margin-bottom: 24px;
  line-height: 1.55;
}

.callout-warn {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #78350f;
}

.callout strong {
  font-weight: 600;
}

/* CTA */
.cta-block {
  text-align: center;
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
}

.cta-block p {
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.btn-disabled {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9375rem;
  background: var(--surface-subtle);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* Legal pages */
.legal-page h1 {
  font-size: 1.75rem;
  margin: 32px 0 8px;
  letter-spacing: -0.02em;
}

.legal-page .meta {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.legal-page h2 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 28px 0 8px;
  color: var(--text);
}

.legal-page p,
.legal-page li {
  font-size: 0.9375rem;
  color: #334155;
}

.legal-page ul {
  padding-left: 1.25rem;
  margin: 8px 0 16px;
}

.legal-page li {
  margin-bottom: 6px;
}

.legal-page code {
  font-family: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  font-size: 0.85em;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 5px;
}

.legal-page .callout {
  margin: 16px 0 24px;
}

.legal-page a {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 20px 40px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}

.footer-brand {
  font-weight: 600;
  color: var(--text);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.875rem;
}

.footer-copy {
  margin-top: 20px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    width: 100%;
  }

  .hero {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 20px;
  }

  .hero-logo {
    width: 56px;
    height: 56px;
  }

  .feature-row {
    grid-template-columns: 1fr;
  }
}
