/* ── Reset + base ────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Tokens mirror the app's default "Vibrant Summer" theme (app/constants/theme.ts). */
:root {
  --bg:         #fef9f3;
  --card:       #ffffff;
  --sand:       #f6ecdf;
  --warm:       #efe2cf;
  --soft:       #f7efe2;
  --primary:    #1d3989;
  --primary-2:  #2b4ba8;
  --dark:       #15233f;
  --muted:      #4d4632;
  --dim:        rgba(21, 35, 63, 0.4);
  --accent:     #facc15;
  --success:    #2e7d32;
  --light-text: #ffffff;
  --placeholder: #b8c0d4;

  --primary-tint: rgba(29, 57, 137, 0.1);
  --accent-tint:  rgba(250, 204, 21, 0.25);
  --border:       rgba(21, 35, 63, 0.08);
  --gradient:     linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);

  --font-serif: 'Noto Serif', Georgia, 'Times New Roman', serif;
  --font-sans:  'Manrope', system-ui, -apple-system, sans-serif;

  --shadow-card: 0 12px 24px rgba(21, 35, 63, 0.08);
  --radius-card: 32px;
  --radius-pill: 9999px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--dark);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Layout ──────────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: 32px;
}

.section {
  padding-block: 96px;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 640px;
  margin-bottom: 48px;
}

.section-h2 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: -0.8px;
  color: var(--dark);
}

.section-lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
}

/* ── Shared pieces ───────────────────────────────────────────────────────── */
.chip {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--primary-tint);
  color: var(--primary);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  line-height: 1.4;
}
.chip--accent {
  background: var(--accent-tint);
  color: var(--dark);
}
.chip--success {
  background: rgba(46, 125, 50, 0.12);
  color: var(--success);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 32px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  transition: opacity 0.15s, transform 0.1s;
}
.btn:active { transform: scale(0.98); }
.btn--primary {
  background: var(--gradient);
  color: var(--light-text);
}
.btn--primary:hover { opacity: 0.92; }
.btn--secondary {
  background: var(--card);
  color: var(--dark);
  border: 1px solid rgba(190, 200, 201, 0.5);
}
.btn--secondary:hover { border-color: var(--dim); }

.card {
  background: var(--card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-tint);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── Navbar ──────────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(254, 249, 243, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: box-shadow 0.2s;
}
.nav.scrolled { box-shadow: 0 1px 24px rgba(21, 35, 63, 0.07); }

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.4px;
  color: var(--primary);
}
.logo-mark { flex-shrink: 0; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.15s;
}
.nav-link:hover { color: var(--primary); }

.nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--muted);
  transition: background 0.15s, color 0.15s;
}
.nav-btn:hover {
  background: var(--primary-tint);
  color: var(--primary);
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  padding-top: 48px;
  padding-bottom: 96px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-h1 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 64px;
  line-height: 1.04;
  letter-spacing: -1.6px;
  color: var(--dark);
}
.hero-h1 em {
  font-style: italic;
  color: var(--primary);
}

.hero-body {
  font-size: 19px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 520px;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 8px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px 12px 18px;
  border-radius: var(--radius-pill);
  background: var(--dark);
  color: var(--light-text);
}
.store-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.store-badge-small {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.7;
}
.store-badge-big {
  font-weight: 800;
  font-size: 15px;
}

.hero-note {
  font-size: 13px;
  color: var(--dim);
}

/* Hero visual: photo + floating booking card styled like the app's timeline */
.hero-visual {
  position: relative;
  padding: 0 0 48px 48px;
}

.hero-photo {
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--warm);
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-card);
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.booking-card {
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(340px, 90%);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.booking-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.route {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.route-code {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 30px;
  color: var(--dark);
  line-height: 1;
}
.route-city {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.route-line {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
}
.route-line::before,
.route-line::after {
  content: '';
  flex: 1;
  border-top: 2px dashed var(--placeholder);
}
.route-end { text-align: right; }

.booking-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.meta-label {
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--dim);
}
.meta-value {
  font-weight: 700;
  font-size: 15px;
  color: var(--dark);
}

/* ── How it works ────────────────────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step {
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--dark);
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-h3,
.feature-h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.3;
  color: var(--dark);
}

.step-p,
.feature-p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
  background: var(--sand);
  border-radius: 8px;
  padding: 2px 8px;
  white-space: nowrap;
}

/* ── Features ────────────────────────────────────────────────────────────── */
.features-band {
  background: var(--sand);
}

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

.feature {
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 36px rgba(21, 35, 63, 0.1);
}

.feature-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ── Privacy promise ─────────────────────────────────────────────────────── */
.promise {
  background: var(--gradient);
  color: var(--light-text);
  border-radius: var(--radius-card);
  padding: 56px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
  box-shadow: var(--shadow-card);
}

.promise .chip {
  background: rgba(255, 255, 255, 0.15);
  color: var(--accent);
}

.promise-h2 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 36px;
  line-height: 1.15;
  margin-top: 16px;
}

.promise-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.promise-list li {
  display: flex;
  gap: 14px;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
}
.promise-list strong { color: var(--light-text); }
.promise-tick {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.promise-link {
  display: inline-block;
  margin-top: 28px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

/* ── Legal / support pages ───────────────────────────────────────────────── */
.page-hero {
  padding-top: 48px;
  padding-bottom: 32px;
}
.page-hero .container,
.legal .container {
  max-width: 820px;
}

.page-h1 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 48px;
  line-height: 1.1;
  letter-spacing: -1px;
  color: var(--dark);
  margin-top: 16px;
}

.page-meta {
  margin-top: 12px;
  font-size: 14px;
  color: var(--dim);
}

.legal {
  padding-bottom: 96px;
}

.legal-card {
  padding: 48px;
}

.prose {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}
.prose > * + * { margin-top: 16px; }
.prose h2 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.3;
  color: var(--dark);
  margin-top: 40px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--primary);
  margin-top: 28px;
}
.prose ul,
.prose ol {
  padding-left: 22px;
}
.prose li + li { margin-top: 8px; }
.prose strong { color: var(--dark); }
.prose a {
  color: var(--primary);
  font-weight: 700;
  border-bottom: 1px solid var(--primary-tint);
}
.prose a:hover { border-bottom-color: var(--primary); }

.table-wrap {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid var(--border);
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.5;
}
.prose th,
.prose td {
  text-align: left;
  vertical-align: top;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.prose th {
  background: var(--soft);
  color: var(--dark);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.prose tr:last-child td { border-bottom: none; }

.callout {
  background: var(--soft);
  border-radius: 20px;
  padding: 20px 24px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}
.contact-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-card .btn { align-self: flex-start; margin-top: 4px; }

.steps-list {
  list-style: none;
  counter-reset: step;
  padding-left: 0 !important;
}
.steps-list li {
  counter-increment: step;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.steps-list li::before {
  content: counter(step);
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--dark);
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-copy {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--dim);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
}

.footer-link {
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.15s;
}
.footer-link:hover { color: var(--primary); }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-h1 { font-size: 52px; letter-spacing: -1.2px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .promise { grid-template-columns: 1fr; padding: 44px; gap: 32px; }
}

@media (max-width: 768px) {
  .container { padding-inline: 16px; }
  .nav-inner { padding: 14px 16px; }
  .nav-links .nav-link { display: none; }

  .section { padding-block: 64px; }
  .section-h2 { font-size: 30px; }
  .section-lead { font-size: 16px; }

  .hero { padding-top: 24px; padding-bottom: 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-h1 { font-size: 40px; letter-spacing: -0.9px; }
  .hero-body { font-size: 17px; }
  .hero-visual { padding: 0 0 72px 0; }
  .hero-photo { aspect-ratio: 4 / 3; }
  .booking-card { left: 16px; right: 16px; width: auto; }

  .steps,
  .features { grid-template-columns: 1fr; }
  .step,
  .feature { padding: 28px; }

  .promise { padding: 32px 24px; }
  .promise-h2 { font-size: 28px; }

  .page-h1 { font-size: 34px; }
  .legal-card { padding: 28px 20px; }
  .contact-grid { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .hero-h1 { font-size: 34px; }
  .route-code { font-size: 24px; }
  .store-badge { flex: 1 1 100%; justify-content: center; }
}
