/* Wanderjet site — the app's own palette and type: cream and ink, Fraunces
   for display, Inter for reading, JetBrains Mono for the boarding-pass
   labels. Light by default, dark when the reader's system is. */

/* The app's own font files (@expo-google-fonts, SIL Open Font License), cut
   down to Latin and served from this site rather than from Google Fonts. */
@font-face { font-family: Fraunces; font-weight: 500; font-display: swap; src: url(/fonts/fraunces-500.woff) format('woff'); }
@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(/fonts/inter-400.woff) format('woff'); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(/fonts/inter-600.woff) format('woff'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 500; font-display: swap; src: url(/fonts/jetbrains-mono-500.woff) format('woff'); }

:root {
  --bg: #f6f5f1;
  --card: #ffffff;
  --ink: #0e0e10;
  --muted: rgba(14, 14, 16, 0.58);
  --edge: rgba(14, 14, 16, 0.10);
  --board: #0e0e10;
  --board-ink: #f5f1e8;
  --board-muted: rgba(245, 241, 232, 0.5);
  --tile: rgba(245, 241, 232, 0.08);
  --amber: #ffc93c;
  --green: #1c7a3a;
  --max: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0d;
    --card: #17171a;
    --ink: #f5f1e8;
    --muted: rgba(245, 241, 232, 0.6);
    --edge: rgba(255, 255, 255, 0.10);
    --board: #16161a;
    --green: #5fcf8c;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.55 Inter, -apple-system, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; letter-spacing: 0.14em; text-transform: uppercase; }
.eyebrow { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 11px; letter-spacing: 0.16em; color: var(--muted); text-transform: uppercase; }
.serif { font-family: Fraunces, Georgia, serif; font-weight: 500; letter-spacing: -0.02em; }
.muted { color: var(--muted); }

/* ── Header ─────────────────────────────────────────────────────────── */
.site-header { padding: 18px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand span { font-family: Fraunces, Georgia, serif; font-weight: 500; font-size: 20px; letter-spacing: -0.01em; }
.nav { display: flex; gap: 22px; font-size: 14px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--ink); }
@media (max-width: 560px) { .nav .hide-sm { display: none; } }

/* ── Buttons ────────────────────────────────────────────────────────── */
.badge { display: inline-block; line-height: 0; }
.badge img { height: 48px; width: auto; }
.btn { display: inline-block; text-decoration: none; font-weight: 600; font-size: 15px; border-radius: 14px; padding: 14px 18px; }
.btn-ink { background: var(--ink); color: var(--bg); }

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero { padding: 36px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero h1 { font-family: Fraunces, Georgia, serif; font-weight: 500; font-size: clamp(40px, 6vw, 68px); line-height: 1.02; letter-spacing: -0.03em; margin: 14px 0 18px; }
.hero p.lede { font-size: 18px; line-height: 1.55; margin: 0 0 26px; max-width: 34em; }
.hero .cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero .cta small { color: var(--muted); font-size: 13px; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .hero { padding-bottom: 48px; }
}

/* The globe: the app's default Poly style, drawn by globe.js. A still of its
   first frame stands in until then, and for browsers without WebGL. */
.scene { position: relative; display: grid; place-items: center; min-height: 420px; }
.globe { position: relative; width: min(400px, 82vw); aspect-ratio: 1; }
.globe img, .globe canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.globe canvas { opacity: 0; transition: opacity 0.4s ease; }
.globe.live canvas { opacity: 1; }
.globe.live img { visibility: hidden; transition: visibility 0s 0.4s; }
@media (max-width: 860px) { .scene { min-height: 360px; } }

/* A boarding pass, laid over the globe — the app's TicketCard in HTML. */
.pass {
  position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%) rotate(-2deg);
  width: min(340px, 86vw); background: var(--card); border: 1px solid var(--edge); border-radius: 16px;
  box-shadow: 0 18px 40px rgba(14, 14, 16, 0.16); padding: 16px 18px;
}
.pass .top { display: flex; justify-content: space-between; align-items: center; }
.pass .status { border: 1px solid var(--ink); border-radius: 6px; padding: 3px 8px; font-size: 10px; }
.pass .route { display: flex; justify-content: space-between; align-items: flex-end; margin: 12px 0 10px; }
.pass .code { font-family: Fraunces, Georgia, serif; font-size: 40px; line-height: 1; font-weight: 500; letter-spacing: -0.02em; }
.pass .city { font-size: 13px; color: var(--muted); margin-top: 4px; }
.pass .plane { flex: 1; text-align: center; color: var(--muted); font-size: 18px; padding-bottom: 14px; }
.pass .stub { display: flex; justify-content: space-between; border-top: 1px dashed var(--edge); padding-top: 10px; }
.pass .field small { display: block; font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: 0.16em; color: var(--muted); }
.pass .field b { font-weight: 500; font-size: 15px; }

/* ── Sections ───────────────────────────────────────────────────────── */
section { padding: 72px 0; }
section.tint { background: var(--card); border-top: 1px solid var(--edge); border-bottom: 1px solid var(--edge); }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head h2 { font-family: Fraunces, Georgia, serif; font-weight: 500; font-size: clamp(30px, 4vw, 44px); line-height: 1.08; letter-spacing: -0.02em; margin: 10px 0 14px; }
.section-head p { font-size: 17px; margin: 0; color: var(--muted); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }

.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.ticks li { padding-left: 28px; position: relative; }
.ticks li::before { content: '✦'; position: absolute; left: 0; top: 0; font-size: 14px; }
.ticks b { display: block; font-weight: 600; }
.note { margin-top: 22px; font-size: 14px; color: var(--muted); }

/* The departures board — the app's split-flap board, in miniature. */
.board { background: var(--board); color: var(--board-ink); border-radius: 18px; padding: 18px; box-shadow: 0 24px 60px rgba(14, 14, 16, 0.22); overflow-x: auto; }
.board .head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.18em; }
.board .clock { color: var(--amber); }
.board .row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid rgba(245, 241, 232, 0.08); }
.flap { display: inline-flex; gap: 2px; }
.flap i { font-style: normal; display: inline-grid; place-items: center; width: 15px; height: 21px; background: var(--tile); border-radius: 3px; font-family: 'JetBrains Mono', monospace; font-size: 12px; position: relative; }
.flap i::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0, 0, 0, 0.5); }
.board .dest { flex: 1; }
.chip { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.1em; border-radius: 999px; padding: 4px 9px; white-space: nowrap; }
.chip.book { border: 1px solid var(--board-ink); }
.chip.boarding { color: var(--amber); background: rgba(255, 201, 60, 0.12); }
.chip.air { color: #5fcf8c; }
.board .meta { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--board-muted); margin: 2px 0 0 106px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--edge); border-radius: 18px; padding: 22px; }
section.tint .card { background: var(--bg); }
.card .step { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.16em; color: var(--muted); }
.card h3 { font-family: Fraunces, Georgia, serif; font-weight: 500; font-size: 22px; letter-spacing: -0.01em; margin: 10px 0 8px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 40px; list-style: none; padding: 0; margin: 0; }
@media (max-width: 700px) { .features { grid-template-columns: 1fr; } }
.features li { padding: 14px 0; border-top: 1px solid var(--edge); }
.features b { display: block; font-weight: 600; margin-bottom: 2px; }
.features span { color: var(--muted); font-size: 15px; }

.faq { max-width: 760px; }
.faq details { border-top: 1px solid var(--edge); padding: 16px 0; }
.faq details:last-child { border-bottom: 1px solid var(--edge); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: 'JetBrains Mono', monospace; color: var(--muted); }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

.closing { text-align: center; }
.closing h2 { font-family: Fraunces, Georgia, serif; font-weight: 500; font-size: clamp(32px, 5vw, 52px); letter-spacing: -0.02em; margin: 0 0 22px; }

/* ── Docs (privacy, support) ────────────────────────────────────────── */
.doc { max-width: 740px; padding: 24px 0 80px; }
.doc h1 { font-family: Fraunces, Georgia, serif; font-weight: 500; font-size: clamp(36px, 5vw, 52px); letter-spacing: -0.02em; line-height: 1.05; margin: 12px 0 10px; }
.doc .updated { color: var(--muted); font-size: 14px; margin: 0 0 32px; }
.doc h2 { font-family: Fraunces, Georgia, serif; font-weight: 500; font-size: 26px; letter-spacing: -0.01em; margin: 44px 0 12px; }
.doc h3 { font-size: 17px; margin: 26px 0 8px; }
.doc p, .doc li { font-size: 16px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc .summary { background: var(--card); border: 1px solid var(--edge); border-radius: 16px; padding: 18px 22px; margin: 0 0 8px; }
.doc .summary p:first-child { margin-top: 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; }
.doc th, .doc td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--edge); vertical-align: top; }
.doc th { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.doc .toc { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; margin: 0 0 8px; }
.doc .toc a { color: var(--muted); }

/* ── Footer ─────────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--edge); padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
