/* ============================================================
   AirportRideMatch — marketing site
   Design system: Deep Night Sky + Electric Teal (matches the app)
   ============================================================ */

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

:root {
  /* Color */
  --bg: #0A1628;
  --bg-dark: #060E1A;
  --accent: #00D4B8;
  --accent-dim: #00A896;
  --surface: #111E35;
  --surface-elevated: #1A2B45;
  --card: #162035;
  --text: #F0F4FF;
  --text-secondary: #8B9EC3;
  --text-muted: #4A5F85;
  --divider: #1E2F4A;
  --danger: #EF4444;

  /* Type */
  --font-display: 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Layout */
  --content-width: 1120px;
  --content-narrow: 760px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--text);
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; font-weight: 700; }

p { color: var(--text-secondary); margin: 0 0 1em; }

.wrap {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 28px;
}

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

/* ---------- eyebrow / departure-board style label ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  flex: none;
}

/* ---------- header / nav ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 22, 40, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--divider);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text);
}
.brand .mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: linear-gradient(155deg, var(--accent) 0%, var(--accent-dim) 100%);
  color: var(--bg-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
  transform: rotate(-45deg);
  flex: none;
}
.brand .mark span { transform: rotate(45deg); }
.brand:hover { color: var(--text); }

nav.links {
  display: flex;
  gap: 32px;
  font-size: 14.5px;
  font-weight: 500;
}
nav.links a { color: var(--text-secondary); }
nav.links a:hover, nav.links a.active { color: var(--text); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--divider);
  border-radius: 8px;
  width: 40px; height: 40px;
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
}

@media (max-width: 760px) {
  nav.links {
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--divider);
    flex-direction: column;
    gap: 0;
    padding: 8px 28px 20px;
    display: none;
  }
  nav.links.open { display: flex; }
  nav.links a { padding: 12px 0; border-bottom: 1px solid var(--divider); }
  nav.links a:last-child { border-bottom: none; }
  .nav-toggle { display: block; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14.5px;
  padding: 13px 22px;
  border-radius: 12px;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: var(--bg-dark); }
.btn-primary:hover { background: #1FE0C6; color: var(--bg-dark); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--divider); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- hero ---------- */
.hero {
  padding: 96px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero h1 { margin-bottom: 20px; }
.hero .lede { font-size: 1.15rem; max-width: 46ch; margin-bottom: 32px; }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* route visual */
.route-card {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: 20px;
  padding: 34px 30px 30px;
}
.route-card .board-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  margin-bottom: 22px;
  text-transform: uppercase;
}
.route-svg-wrap { position: relative; }
.route-dash {
  stroke: var(--divider);
  stroke-width: 2;
  fill: none;
}
.route-line {
  stroke: var(--accent);
  stroke-width: 2;
  fill: none;
  stroke-dasharray: 6 8;
  animation: dashmove 2.6s linear infinite;
}
@keyframes dashmove { to { stroke-dashoffset: -140; } }
.route-dot { fill: var(--accent); }
.route-dot.pulse {
  animation: pulse 2.2s ease-in-out infinite;
  transform-origin: center;
}
@keyframes pulse {
  0%, 100% { r: 5; opacity: 1; }
  50% { r: 7.5; opacity: .65; }
}
.route-caption {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
}
.route-caption b { color: var(--text); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .route-line, .route-dot.pulse, .plane { animation: none; }
}

/* ---------- sections ---------- */
section { padding: 76px 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); }
.section-head { max-width: 640px; margin-bottom: 46px; }
.section-head p { font-size: 1.02rem; }

/* steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--card);
  border: 1px solid var(--divider);
  border-radius: 16px;
  padding: 26px 24px;
  position: relative;
}
.step .num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 14px;
  display: block;
}
.step h3 { margin-bottom: 8px; }
.step p { margin: 0; font-size: 14.5px; }

/* feature grid */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 700px) { .features { grid-template-columns: 1fr; } }
.feature {
  background: var(--card);
  border: 1px solid var(--divider);
  border-radius: 16px;
  padding: 24px;
}
.feature .icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(0, 212, 184, 0.12);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  font-size: 17px;
}
.feature h3 { font-size: 1.05rem; margin-bottom: 6px; }
.feature p { font-size: 14.5px; margin: 0; }

/* email practices panel */
.mail-panel {
  background: var(--card);
  border: 1px solid var(--divider);
  border-radius: 18px;
  padding: 8px;
}
.mail-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--divider);
}
.mail-row:last-child { border-bottom: none; }
@media (max-width: 700px) {
  .mail-row { grid-template-columns: 1fr; gap: 6px; }
}
.mail-row .label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-top: 2px;
}
.mail-row .content strong { color: var(--text); font-weight: 600; }
.mail-row .content p { margin: 4px 0 0; font-size: 14.5px; }

/* legal doc pages */
.legal-header {
  padding: 72px 0 36px;
  border-bottom: 1px solid var(--divider);
}
.legal-header .updated {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-muted);
}
.legal-body { padding: 52px 0 96px; }
.legal-body h2 {
  font-size: 1.3rem;
  margin-top: 2.4em;
  padding-top: .2em;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body ul { color: var(--text-secondary); padding-inline-start: 22px; }
.legal-body li { margin-bottom: 8px; }
.legal-body p { font-size: 15.5px; }
.legal-body a.jump { font-size: 13px; }
.toc {
  background: var(--card);
  border: 1px solid var(--divider);
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 44px;
}
.toc .eyebrow { margin-bottom: 12px; }
.toc ol { margin: 0; padding-inline-start: 20px; color: var(--text-secondary); font-size: 14.5px; }
.toc li { margin-bottom: 6px; }

.callout {
  border: 1px solid var(--divider);
  border-inline-start: 3px solid var(--accent);
  background: var(--surface);
  border-radius: 10px;
  padding: 16px 20px;
  font-size: 14.5px;
  color: var(--text-secondary);
  margin: 20px 0;
}
.callout strong { color: var(--text); }

/* ---------- CTA / footer ---------- */
.cta-block {
  text-align: center;
  padding: 84px 0;
}
.cta-block h2 { margin-bottom: 14px; }
.cta-block p { max-width: 48ch; margin: 0 auto 30px; }

footer.site {
  border-top: 1px solid var(--divider);
  padding: 44px 0 40px;
  background: var(--bg-dark);
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-links {
  display: flex;
  gap: 26px;
  font-size: 14px;
  flex-wrap: wrap;
}
.footer-links a { color: var(--text-secondary); }
.footer-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 18px;
}
