/* Fancy Flights landing page.
   Tokens follow the MVP spec, section 7.2. One type scale, two weights, no shadows, no gradients. */

/* Self-hosted fonts: the same files Google Fonts serves, so rendering is unchanged and no request leaves our domain. */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 500;
  font-stretch: 125%;
  font-display: swap;
  src: url(/fonts/archivo-expanded-500-latin.woff2) format("woff2");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url(/fonts/instrument-sans-latin.woff2) format("woff2");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/instrument-sans-italic-latin.woff2) format("woff2");
}

:root {
  --ink: #0A0A0A;
  --paper: #FFFFFF;
  --muted: #6B6B6B;
  --line: #E6E6E6;
  --quiet: #F5F5F5;

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --text: "Instrument Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --t-56: 56px;
  --t-48: 48px;
  --t-40: 40px;
  --t-32: 32px;
  --t-24: 24px;
  --t-20: 20px;
  --t-17: 17px;
  --t-14: 14px;
  --t-13: 13px;
  --t-12: 12px;

  --r-control: 8px;
  --r-card: 12px;
  --r-chip: 4px;
  --grid: 1200px;
  --reading: 680px;
  --gutter: 20px;
  --section: 64px;
  --control: 52px;
}

@media (min-width: 720px) {
  :root { --gutter: 32px; --section: 104px; }
}

*, *::before, *::after { box-sizing: border-box; }
/* The page ends in black: html is black so overscroll below the footer is black, body stays white,
   and a fixed white block above the viewport keeps overscroll at the top white. */
html { -webkit-text-size-adjust: 100%; background: var(--ink); }
button, a { -webkit-tap-highlight-color: transparent; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--t-17);
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

body::before { content: ""; position: fixed; left: 0; right: 0; top: -100vh; height: 100vh; background: var(--paper); z-index: -1; }
main { flex: 1 0 auto; }
h1, h2, h3, p, figure, ul, ol, dl, dd, blockquote { margin: 0; padding: 0; }
ol, ul { list-style: none; }
strong { font-weight: 500; }
s { text-decoration-thickness: 1.5px; }
small { font-size: inherit; }

/* The display face: wordmark, headings, prices, buttons, chips. */
.wordmark, h1, h2, .steps h3, .deal-route, .row-route, .price strong, .price s, .price-save strong,
.leg-price, .row-now strong, .row-was s, .row-was b, .row-save strong, .step-num, .join button, .chip, .eyebrow, .deals-head {
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 500;
}

.wrap {
  width: 100%;
  max-width: calc(var(--grid) + var(--gutter) * 2);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.visually-hidden, .trap {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Small type and marks */
.eyebrow {
  font-size: var(--t-12);
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.chip {
  display: inline-block;
  padding: 2px 6px;
  border: 1px solid var(--ink);
  border-radius: var(--r-chip);
  font-size: 9px;
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
  vertical-align: middle;
}
.chip-ink { background: var(--ink); color: var(--paper); }
/* Status chip above the hero form: same style as the cabin chips, a size up */
.chip-status { padding: 7px 13px; font-size: 13px; background: var(--paper); }
/* Return arrow between the two cities */
.rt { width: 0.8em; height: 0.8em; margin: 0 0.12em; vertical-align: -0.08em; }
/* Airline logos, greyscale to sit in the black and white page; colour on hover */
.logo { height: 22px; width: auto; max-width: 90px; filter: grayscale(1) brightness(0.55); transition: filter 150ms ease-out; vertical-align: middle; }
.logo-word { height: 13px; }
.airline {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 44px;
  margin: -11px 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: default;
}
.airline:hover .logo, .airline:focus-visible .logo, .airline.is-open .logo { filter: none; }
.airline:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
.tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% - 4px);
  transform: translate(-50%, 4px);
  padding: 6px 10px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--text);
  font-size: var(--t-13);
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 150ms ease-out, transform 150ms ease-out, visibility 0s linear 150ms;
  pointer-events: none;
}
.tip::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  margin-left: -5px;
  border: 5px solid transparent;
  border-top-color: var(--ink);
}
.airline:hover .tip, .airline:focus-visible .tip, .airline.is-open .tip { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }

/* Header */
.head { padding-top: 24px; padding-bottom: 24px; }
.wordmark {
  display: inline-block;
  padding: 12px 0;
  margin: -12px 0;
  font-size: 20px;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
}

/* Hero */
.hero { padding-top: 24px; padding-bottom: var(--section); }
h1 {
  font-size: clamp(25px, 8vw, var(--t-48));
  line-height: 1.08;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.lede { margin-top: 20px; max-width: 30em; font-size: var(--t-20); line-height: 1.45; }
/* Hero split-flap: "business" and "first" turn over like a departures board.
   Tiles and the split line only show while letters are turning (.is-flipping). */
.flap-word { white-space: nowrap; }
/* Before the script runs (or with reduced motion) the plain word shows; once ready it's hidden visually but kept as text */
.flap-ready .flap-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.flap-rest::before, .flap-glyph::before { content: attr(data-ch); }
.flap-slot {
  position: relative;
  display: inline-block;
  isolation: isolate;
  perspective: 7em;
  text-align: center;
  transition: width 260ms ease;
}
.flap-slot::before,
.flap-slot::after {
  content: "";
  position: absolute;
  left: 0.03em; right: 0.03em;
  opacity: 0;
  transition: opacity 260ms ease;
}
.flap-slot::before { top: 0; bottom: 0; z-index: -1; border-radius: 0.06em; background: #222221; }
.flap-slot::after { top: 50%; height: 1px; z-index: 3; background: var(--paper); }
.flap-word.is-flipping .flap-slot::before,
.flap-word.is-flipping .flap-slot::after { opacity: 1; }
/* Each flap is a pair of half cards hinged on the split line (no clip-path, so Safari renders the 3D turn). */
.flap-slot { --flap-half: 150ms; }
/* While a card turns, its resting letter hides so only the turning halves show */
.flap-slot.is-turning .flap-rest { visibility: hidden; }
.flap-half {
  position: absolute;
  left: 0; right: 0;
  height: 50%;
  overflow: hidden;
  padding: 0 0.03em;
  background: #222221 content-box;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.flap-top, .flap-leaf-top { top: 0; transform-origin: 50% 100%; }
.flap-bottom, .flap-leaf-bottom { top: 50%; transform-origin: 50% 0; }
.flap-glyph { position: absolute; left: 0; right: 0; top: 0; height: 200%; text-align: center; white-space: pre; }
.flap-bottom .flap-glyph, .flap-leaf-bottom .flap-glyph { top: -100%; }
.flap-top, .flap-bottom { z-index: 1; }
.flap-leaf-top, .flap-leaf-bottom { z-index: 2; will-change: transform; }
.flap-leaf-top { animation: flap-fall var(--flap-half) ease-in forwards; }
.flap-leaf-bottom { transform: rotateX(90deg); animation: flap-land var(--flap-half) ease-out var(--flap-half) forwards; }
@keyframes flap-fall {
  from { transform: rotateX(0); background-color: #222221; }
  to { transform: rotateX(-90deg); background-color: #2E2E2C; }
}
@keyframes flap-land {
  from { transform: rotateX(90deg); background-color: #2E2E2C; }
  to { transform: rotateX(0); background-color: #222221; }
}

/* Each sentence is its own line; on phones each sentence breaks in two (see below) */
.h1-line { display: block; }
.h1-break { display: none; }

/* Sign-up form, used twice */
.join { margin-top: 32px; max-width: 520px; }
.join-intro { margin-bottom: 12px; font-weight: 500; }
/* Hero form: the status chip sits midway between the body text and the email field */
.hero-copy { --chip-gap: 30px; }
.hero-copy .join { margin-top: var(--chip-gap); }
.hero-copy .join-intro { display: flex; margin-bottom: var(--chip-gap); }
.join-row { display: flex; flex-direction: column; gap: 10px; }
.join input[type="email"] {
  width: 100%;
  height: var(--control);
  padding: 0 16px;
  border: 1px solid #4A4A47;
  border-radius: var(--r-control);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}
.join input[type="email"]::placeholder { color: var(--muted); }
.join input[type="email"]:focus { outline: none; border-color: var(--ink); }
.join input[aria-invalid="true"] { border-color: var(--ink); border-width: 2px; }
.join button {
  height: var(--control);
  padding: 0 28px;
  border: 0;
  border-radius: var(--r-control);
  background: var(--ink);
  color: var(--paper);
  font-size: var(--t-14);
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity 150ms ease-out;
}
.join button:hover { opacity: 0.8; }
.join button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.join button:disabled { opacity: 0.5; cursor: default; }
.join-note { margin-top: 12px; font-size: var(--t-13); font-style: italic; color: var(--muted); }
.join.is-error .join-note { font-style: normal; font-size: var(--t-14); font-weight: 500; color: var(--ink); }
.join.is-done .join-note { margin-top: 0; font-style: normal; font-size: var(--t-20); font-weight: 500; color: var(--ink); }

/* Rotating deal card */
.rotor {
  margin-top: 48px;
  padding: 20px;
  background: var(--quiet);
  border-radius: var(--r-card);
}
/* Every deal sits in the same grid cell, so the card is as tall as the tallest deal and never jumps.
   The outgoing deal finishes fading before the next starts (see the script), so two never overlap. */
.rotor-stage { display: grid; }
.deal {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 280ms ease, visibility 0s linear 280ms;
}
.deal.is-active { opacity: 1; visibility: visible; transition-delay: 0s, 0s; }
/* Vertical scrolling stays with the page; horizontal drags are read as swipes by the script */
.rotor { touch-action: pan-y; }
.rotor-nav { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
.rotor-arrow {
  display: grid; place-items: center;
  width: 32px; height: 32px; padding: 0;
  background: none; border: 0; border-radius: var(--r-control);
  color: var(--muted); cursor: pointer;
  transition: color 150ms ease-out;
}
.rotor-arrow svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.rotor-arrow:hover { color: var(--ink); }
.rotor-arrow:focus-visible { outline: 2px solid var(--ink); outline-offset: 0; }

.deal-route { margin-top: 12px; font-size: clamp(17px, 5.4vw, var(--t-24)); line-height: 1.2; }
.deal-airline { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: var(--t-14); color: var(--muted); }
.deal-airline .logo { height: 20px; }
.deal-airline .logo-word { height: 12px; }

.price { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 24px; margin-top: 24px; }
.price p { display: flex; flex-direction: column; gap: 4px; }
.price-label, .cell-label { font-family: var(--text); font-size: var(--t-12); line-height: 1.2; letter-spacing: 0.02em; text-transform: uppercase; color: var(--muted); }
.price strong { font-size: var(--t-40); line-height: 1; letter-spacing: -0.01em; }
.price s { font-size: var(--t-24); line-height: 1; color: var(--muted); }
.price-note, .cell-note { flex-basis: 100%; font-size: var(--t-12); color: var(--muted); }
.price-save {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  margin-top: 16px; padding: 12px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}
.price-save strong { font-size: var(--t-24); line-height: 1; }
.price-save small, .row-save small { font-size: 0.6em; color: var(--muted); }

.legs { margin-top: auto; padding-top: 26px; }
.legs li {
  position: relative;
  display: grid;
  grid-template-columns: 22px 1fr auto;
  grid-template-areas: "mark route route" "mark info price";
  column-gap: 6px;
  row-gap: 6px;
  align-items: baseline;
  padding: 9px 0;
}
/* The journey line: a continuous rule joining three dots, hollow for the hops, filled for the long haul */
.legs li::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 0; bottom: 0;
  border-left: 1px solid #4A4A47;
}
.legs li:first-child::before { top: 18px; }
.legs li:last-child::before { bottom: calc(100% - 18px); }
.leg-mark {
  grid-area: mark;
  align-self: start;
  position: relative;
  width: 11px; height: 11px;
  margin-top: 4px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--quiet);
}
.legs li:nth-child(2) .leg-mark { background: var(--ink); }
.leg-route { grid-area: route; font-size: var(--t-14); }
.leg-info { grid-area: info; display: flex; align-items: center; gap: 8px; font-size: var(--t-13); color: var(--muted); }
.leg-price { grid-area: price; font-size: var(--t-14); color: var(--muted); text-align: right; }

/* Sections share one structure: hairline, heading, optional intro, content */
.section { padding-top: var(--section); padding-bottom: var(--section); border-top: 1px solid var(--line); }
.section-head { margin-bottom: 32px; }
h2 { font-size: clamp(28px, 8.6vw, 36px); line-height: 1.12; letter-spacing: -0.01em; }
.section-head p { margin-top: 14px; max-width: var(--reading); font-size: var(--t-20); line-height: 1.45; }

/* Fares section: the founder's note as a quote, then three explainers */
.loopholes { display: grid; gap: 40px; }
.founder { padding: 24px 20px; background: var(--quiet); border-radius: var(--r-card); }
.founder p { font-size: var(--t-20); line-height: 1.45; }
.founder-sig { margin-top: 20px; font-size: var(--t-14); font-weight: 500; }
.truths li { padding: 18px 0; border-top: 1px solid var(--line); max-width: 36em; }
.truths li:last-child { border-bottom: 1px solid var(--line); }

/* Deals list: one clean reading order on phones, a table-like grid on wide screens */
.deals-head { display: none; }
.deals { display: grid; gap: 8px; }
/* Phones: a wrapping flex row, so the struck usual price always sits after the price with a gap,
   whatever width the browser measures for the price (Safari mis-sized the old grid column). */
.row {
  display: flex;
  flex-wrap: wrap;
  column-gap: 16px;
  align-items: baseline;
  padding: 20px;
  background: var(--quiet);
  border-radius: var(--r-card);
}
.row-trip { grid-area: trip; flex: 0 0 100%; }
/* A row whose route has its own page opens it: the route name is the link, and it covers the whole row. */
.row:has(.row-link) { position: relative; }
.row-link { color: inherit; text-decoration: none; }
.row-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-card); }
.row-link:focus-visible { outline: none; }
.row:has(.row-link:hover) { box-shadow: inset 0 0 0 1px #6F6F69; }
.row:has(.row-link:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.row-route { font-size: clamp(14px, 4.55vw, var(--t-20)); line-height: 1.25; }
.row-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 8px; font-size: var(--t-14); color: var(--muted); }
.row-tags { display: flex; align-items: center; gap: 10px; }
/* Routes stay on one line at every width: sized so the longest fits inside the card at 320px */
.deal .eyebrow { white-space: nowrap; }
/* A route name stays on one line wherever it fits; a long city (Santiago de los Caballeros) wraps rather than run off a phone. */
.row-route, .deal-route { overflow-wrap: break-word; }
.cell-label { display: none; }
.row-now { grid-area: now; margin-top: 18px; flex: none; }
.row-now strong { display: block; font-size: var(--t-32); line-height: 1; letter-spacing: -0.01em; }
.row-now .cell-note { display: block; margin-top: 6px; }
.row-was { grid-area: was; flex: none; }
.row-was s { font-size: var(--t-20); line-height: 1; color: var(--muted); }
/* An unstruck figure in the same place, for a price list where it is good news. */
.row-was b { font-size: var(--t-20); line-height: 1; }
.row-save {
  grid-area: save;
  flex: 0 0 100%;
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  margin-top: 16px; padding-top: 12px;
  border-top: 1px solid var(--ink);
}
.row-save .cell-label { display: inline; font-family: var(--text); font-size: var(--t-14); letter-spacing: 0; text-transform: none; font-weight: 500; color: var(--ink); }
.row-save strong { font-size: var(--t-24); line-height: 1; }

/* How it works: three numbered steps */
.steps { display: grid; gap: 28px; }
.steps li { display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; }
.steps li > :not(.step-num) { grid-column: 2; }
.step-num { grid-row: 1 / span 2; font-size: var(--t-32); line-height: 1; color: var(--muted); }
.steps h3 { font-size: var(--t-20); line-height: 1.2; margin-top: 4px; }
.steps p { margin-top: 6px; }

/* Questions */
.faq { display: grid; gap: 0; }
.faq > div { padding: 18px 0; border-top: 1px solid var(--line); }
.faq > div:last-child { border-bottom: 1px solid var(--line); }
.faq dt { font-weight: 500; line-height: 1.3; }
.faq dd { margin-top: 6px; max-width: 36em; }

/* The closing band: centred, hero-scale */
.band { padding-top: var(--section); padding-bottom: var(--section); background: var(--ink); color: var(--paper); text-align: center; }
.band-title { font-size: clamp(32px, 9.2vw, var(--t-56)); line-height: 1.05; letter-spacing: -0.02em; }
.band-intro { margin: 20px auto 0; font-size: var(--t-14); line-height: 1.45; letter-spacing: -0.015em; color: #D4D4D4; text-wrap: balance; }
.band .join { margin: 32px auto 0; }
.band .join input[type="email"] { background: transparent; border-color: #5A5A5A; color: var(--paper); }
.band .join input[type="email"]::placeholder { color: #8A8A8A; }
.band .join input[type="email"]:focus { border-color: var(--paper); }
.band .join input[aria-invalid="true"] { border-color: var(--paper); }
.band .join button { background: var(--paper); color: var(--ink); }
.band .join button:focus-visible { outline-color: var(--paper); }
.band .join-note { color: #A3A3A3; }
.band .join.is-error .join-note, .band .join.is-done .join-note { color: var(--paper); }

/* Footer continues the black band */
.foot { margin-top: auto; padding-top: 8px; padding-bottom: 40px; background: var(--ink); color: #A3A3A3; }
.foot .wrap { border-top: 1px solid #2A2A2A; padding-top: 40px; }
.foot-mark { margin: 0; padding: 0; color: var(--paper); font-size: 20px; }
.foot-line { margin-top: 12px; font-size: var(--t-14); color: #D4D4D4; text-wrap: balance; }
/* Social icons: linked profiles are bright, placeholders (spans) stay muted */
.foot-right { display: flex; flex-direction: column; align-items: flex-start; margin-top: 24px; }
.foot-social { display: flex; gap: 20px; margin: 0; padding: 0; list-style: none; }
.social { display: block; width: 20px; height: 20px; color: #A3A3A3; }
.social svg { display: block; width: 100%; height: 100%; }
a .social, a.social { color: var(--paper); }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-top: 12px; font-size: var(--t-14); font-weight: 500; }
.foot-links a { padding: 12px 0; color: var(--paper); text-decoration: none; }
.foot-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
/* Every route page, under the airport it leaves from. The Worker fills these in from live data. */
.foot-routes { display: grid; gap: 24px; margin-top: 32px; }
.foot-head { font-size: var(--t-13); }
.foot-routes ul { display: flex; flex-wrap: wrap; gap: 0 20px; margin: 4px 0 0; padding: 0; list-style: none; font-size: var(--t-14); font-weight: 500; }
.foot-routes a { display: inline-block; padding: 8px 0; color: var(--paper); text-decoration: none; }
.foot-routes a:hover { text-decoration: underline; text-underline-offset: 3px; }
/* Each airport heading opens that airport's page. */
.foot-routes .foot-head a { display: inline; padding: 0; color: inherit; }
@media (min-width: 720px) { .foot-routes { grid-template-columns: 1fr 1fr; column-gap: 48px; } }
.foot-bottom { margin-top: 28px; padding-top: 24px; border-top: 1px solid #2A2A2A; }
.foot-small { max-width: 60em; font-size: var(--t-13); line-height: 1.5; }
.foot-small p + p { margin-top: 10px; }
.foot-copy { margin-top: 20px; font-size: var(--t-13); }

/* Consent line links */
.join-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.join-note a:hover { color: var(--ink); }
.band .join-note a:hover { color: var(--paper); }

/* Legal pages */
.legal { max-width: calc(var(--reading) + var(--gutter) * 2); padding-top: 24px; padding-bottom: var(--section); }
.legal h1 { font-size: clamp(32px, 8vw, var(--t-48)); line-height: 1.08; letter-spacing: -0.02em; white-space: normal; }
.legal .updated { margin-top: 12px; font-size: var(--t-14); color: var(--muted); }
.legal h2 { margin-top: 40px; font-size: var(--t-24); }
.legal p { margin-top: 12px; }
.legal ul { margin-top: 12px; padding-left: 22px; list-style: disc; }
.legal li { margin-top: 6px; }
.legal a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { opacity: 0.7; }

/* Text link, used on the thanks page */
.text-link { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.text-link:hover { opacity: 0.7; }

/* Tablet and up */
@media (min-width: 720px) {
  .head { padding-top: 32px; padding-bottom: 32px; }
  .wordmark { font-size: var(--t-24); }
  .hero { padding-top: 48px; }
  .lede { margin-top: 24px; }
  .join { margin-top: 40px; }
  .join-row { flex-direction: row; }
  .join input[type="email"] { flex: 1; }
  .rotor { padding: 28px; }
  .legs li { grid-template-areas: "mark route price" "mark info info"; }
  .row-meta { flex-direction: row; align-items: center; gap: 10px; }
  h2 { font-size: var(--t-40); }
  .section-head { margin-bottom: 40px; }
  .loopholes { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
  .founder { padding: 32px; }
  .founder p { font-size: var(--t-24); line-height: 1.4; }
  .truths li:first-child { padding-top: 0; border-top: 0; }

  .deals-head, .row {
    display: grid;
    grid-template-columns: minmax(0, 2.4fr) 1fr 1fr 1.2fr;
    grid-template-areas: "trip now was save";
    column-gap: 24px;
    align-items: center;
  }
  .deals-head { padding: 0 16px 12px; border-bottom: 1px solid var(--line); font-size: var(--t-13); letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
  .deals-head span:not(:first-child), .row-now, .row-was, .row-save { text-align: right; }
  .deals { gap: 0; }
  .row { padding: 20px 16px; background: none; border-radius: var(--r-control); transition: background-color 150ms ease-out; }
  .row:hover { background: var(--quiet); }
  .row + .row { position: relative; }
  .row + .row::before { content: ""; position: absolute; left: 16px; right: 16px; top: 0; border-top: 1px solid var(--line); }
  .row-now { margin-top: 0; }
  .row-now strong { font-size: var(--t-20); }
  .row-now .cell-note { margin-top: 4px; }
  .row-save { display: block; margin-top: 0; padding-top: 0; border-top: 0; }
  .row-save .cell-label { display: none; }
  .row-save strong { font-size: var(--t-32); }

  .steps { grid-template-columns: repeat(3, 1fr); gap: 48px; }
  .steps li { display: block; }
  .step-num { display: block; }
  .steps h3 { margin-top: 16px; }
  .faq { grid-template-columns: 1fr 1fr; column-gap: 64px; }
  .faq > div:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .band-intro { margin-top: 24px; font-size: var(--t-17); letter-spacing: 0; white-space: nowrap; }
  .foot-line { font-size: var(--t-17); white-space: nowrap; }
  .band .join { margin-top: 40px; }
  .foot-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; }
  .foot-right { align-items: flex-end; margin-top: 4px; }
  .foot-links { margin-top: 8px; }
  .foot-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
  .foot-copy { margin-top: 0; white-space: nowrap; }
  .legal { padding-top: 48px; }
  .legal h2 { margin-top: 48px; }
}

/* Phones and tablets: the first screen is the wordmark, headline, body line and form; the card starts below the fold */
@media (max-width: 1023px) {
  .hero { padding-top: 16px; }
  .hero-copy {
    display: flex; flex-direction: column; justify-content: center;
    min-height: calc(100vh - 84px);
    min-height: calc(100svh - 84px);
    padding-bottom: 32px;
  }
  .rotor { margin-top: 16px; }
}
@media (min-width: 720px) and (max-width: 1023px) {
  .hero-copy { min-height: calc(100vh - 136px); min-height: calc(100svh - 136px); }
}

/* Phones: a four-line headline, as large as the narrowest line allows, with a small gap between the two sentences */
@media (max-width: 719px) {
  h1 { font-size: clamp(34px, 11.8vw, 50px); line-height: 1.02; }
  .h1-break { display: inline; }
  .h1-line + .h1-line { margin-top: 0.28em; }
  .hero-copy { justify-content: flex-start; padding-top: 44px; padding-bottom: 56px; }
  .lede { margin-top: 28px; }
  .hero-copy { --chip-gap: 30px; }
}
/* Short phones: tighter spacing so the form still fits on the first screen */
@media (max-width: 719px) and (max-height: 700px) {
  h1 { font-size: clamp(34px, 11vw, 44px); }
  .hero-copy { padding-top: 20px; padding-bottom: 32px; }
  .lede { margin-top: 18px; font-size: 17px; }
  .hero-copy { --chip-gap: 20px; }
}

/* Desktop: the deal sits beside the headline so both are seen at once */
@media (min-width: 1024px) {
  .hero { display: grid; grid-template-columns: 1.25fr 1fr; column-gap: 72px; align-items: center; padding-top: 56px; }
  h1 { font-size: min(var(--t-56), 4.4vw); }
  .rotor { margin-top: 0; padding: 32px; }
  .join { margin-top: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .deal, .join button, .row, .logo, .tip { transition: none; }
}

/* Dark mode: the same two-colour system with ink and paper swapped. */
:root { --ink: #F4F4F2; --paper: #0A0A0A; --muted: #A8A8A3; --line: #303030; --quiet: #1D1D1B; color-scheme: dark; }
html { background: #0A0A0A; }
.band, .foot { --ink: #0A0A0A; --paper: #F4F4F2; }
.foot .wrap { border-top: 0; }
/* Airline logos come from the app's own library (app/web/public/airlines-svg): every mark one flat tone, and small. */
.logo, .deal-airline .logo { height: 16px; max-width: 56px; filter: brightness(0) invert(1); opacity: 0.8; }
.logo-word, .deal-airline .logo-word { height: 10px; }
.airline:hover .logo, .airline:focus-visible .logo, .airline.is-open .logo { filter: brightness(0) invert(1); opacity: 1; }
/* Earth layers. The hero layer sits behind the header and hero and runs on into the next section. */
.earth-hero { position: absolute; left: 0; top: 0; width: 100%; height: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.earth-hero canvas, .globe canvas { position: absolute; left: 0; top: 0; display: block; opacity: 0; transition: opacity .7s ease-out; }
.earth-on .earth-hero canvas, .earth-on .globe canvas { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .earth-hero canvas, .globe canvas { transition: none; } }
body > header, body > main, body > footer { position: relative; z-index: 1; }

/* A hairline above each body section. The first has none: the hero's texture feathers into it. */
.section { border-top: 0; }
.section { position: relative; }
.section + .section::before { content: ""; position: absolute; left: var(--gutter); right: var(--gutter); top: 0; border-top: 1px solid var(--line); }
.lede-line { display: block; }
/* Card surfaces sit a clear step above the page, with a fine edge, so they hold against the map. */
.rotor, .founder { box-shadow: inset 0 0 0 1px #343432; }
/* The three points beside the founder's note: a marker and a short title in the display face, then one plain sentence. */
.points { display: grid; gap: 0; }
.points li { padding: 26px 0; border-top: 1px solid var(--line); }
.points li:first-child { padding-top: 0; border-top: 0; }
.points h3 { display: flex; align-items: flex-start; gap: 12px; font-family: var(--display); font-stretch: 125%; font-weight: 500; font-size: var(--t-20); line-height: 1.2; }
.points h3::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 0.4em; background: var(--ink); }
.points p { margin-top: 10px; padding-left: 20px; max-width: 30em; color: #C9C9C4; }
/* How it works: icon, then a small step label, the title and the line. */
.step-icon { display: block; width: 72px; height: 72px; }
.step-num { font-size: var(--t-12); line-height: 1.3; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.step-num::before { content: "Step "; }
.steps li { grid-template-columns: 72px 1fr; column-gap: 18px; align-items: start; }
.steps li > .step-icon { grid-column: 1; grid-row: 1 / span 3; }
.steps li > .step-num { grid-column: 2; grid-row: auto; }
.steps h3 { margin-top: 6px; }
@media (min-width: 720px) { .step-icon { margin-bottom: 22px; } .step-num { display: block; } .steps h3 { margin-top: 8px; } }
.hero-status { display: none; }

/* Closing section: the globe rises from the bottom edge, under the sign-up. */
.band { --globe: min(128vw, 760px); position: relative; overflow: hidden; padding-bottom: calc(var(--globe) * 0.5 + 24px); }
.band .wrap { position: relative; z-index: 1; }
.globe { position: absolute; left: 50%; bottom: 0; width: var(--globe); aspect-ratio: 1; transform: translate(-50%, 44%); pointer-events: none; }

/* Deal card: no rules. Three figures in one row, each a small label over a number: the price largest, then the usual price, then the saving. */
.deal-route { margin-top: 10px; font-size: clamp(13px, 4.5vw, 26px); }
.deal-airline { margin-top: 12px; color: var(--ink); }
.deal-airline .chip { margin-left: 4px; }
/* The saving as a share of the usual price: an outlined chip. */
.chip-save { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.price { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 24px; margin-top: 30px; padding: 0; border: 0; }
.price p { display: flex; flex-direction: column; gap: 6px; }
.price strong { font-size: clamp(40px, 11vw, 44px); line-height: 0.95; }
.price s { font-size: 22px; line-height: 1; color: var(--muted); }
.price-off b { font-family: var(--display); font-stretch: 125%; font-weight: 500; font-size: 22px; line-height: 1; white-space: nowrap; }
.price-off small { font-family: var(--text); font-size: var(--t-13); font-weight: 400; color: var(--muted); }
.deal > .price-note { margin-top: 8px; font-size: var(--t-12); color: var(--muted); }
@media (min-width: 720px) { .price { flex-wrap: nowrap; } }
/* Desktop: the hero keeps a full-screen height, and the card has a little more air. */
@media (min-width: 1024px) {
  .hero { min-height: min(820px, calc(100svh - 72px)); }
  .rotor { padding: 40px 32px 38px; }
  .deal-airline { margin-top: 14px; }
  .price { margin-top: 44px; }
}
/* The founder's note is a set quote: a large dithered opening mark, the words, then the name on its own line at the foot. */
.founder { display: flex; flex-direction: column; padding: 26px 22px 24px; }
.quote-mark { display: block; width: 72px; height: 48px; overflow: visible; font-family: var(--display); font-stretch: 125%; font-weight: 600; font-size: 38px; fill: var(--ink); }
.founder p { margin-top: 18px; text-wrap: pretty; }
.founder-sig { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: auto; padding-top: 28px; font-weight: 400; }
.sig-name { font-family: var(--display); font-stretch: 125%; font-weight: 500; font-size: var(--t-14); letter-spacing: 0.06em; text-transform: uppercase; }
.sig-role { font-size: var(--t-14); color: var(--muted); }
@media (min-width: 720px) {
  .loopholes { align-items: stretch; }
  .founder { padding: 34px 34px 32px; }
  .founder p { font-size: clamp(20px, 2.15vw, 27px); line-height: 1.36; }
}
/* Phone. One clear order: status, headline, subheading on two set lines, then a single sign-up control. */
@media (max-width: 719px) {
  .hero-copy { min-height: 0; padding-top: 122px; padding-bottom: 32px; }
  .hero-status { display: inline-block; align-self: flex-start; margin-bottom: 18px; padding: 4px 8px; font-size: 9px; background: var(--paper); }
  .hero-copy .join-intro { display: none; }
  .lede { margin-top: 20px; max-width: 17.5em; font-size: 17px; line-height: 1.45; text-wrap: balance; }
  .lede-line { margin-top: 2px; color: var(--muted); }
  .hero-copy .join { margin-top: 28px; }
  .join .join-row { display: flex; flex-direction: row; gap: 0; padding: 5px; border: 1px solid #4A4A47; border-radius: 10px; background: #0A0A0A; }
  .band .join .join-row:focus-within { border-color: var(--paper); }
  .join .join-row input[type="email"] { flex: 1 1 0; min-width: 0; width: auto; height: 44px; padding: 0 12px; border: 0; background: transparent; text-align: left; }
  .join .join-row input[type="email"]:focus { outline: none; }
  .join .join-row:focus-within { border-color: var(--ink); }
  .join .join-row button { flex: none; width: auto; height: 44px; margin: 0; padding: 0 16px; border-radius: 6px; }
  .join .join-note { margin-top: 12px; font-size: var(--t-12); }
  /* On wider phones the sign-up keeps a comfortable width instead of stretching edge to edge. */
  .join .join-row { max-width: 420px; }
  .band .join .join-row { margin-inline: auto; }
  .price { gap: 16px 28px; }
  .price-now { flex-basis: 100%; }
  /* Deals list rows use the same price layout as the card above: price first, then usual price and saving side by side. No rules. */
  .row { column-gap: 28px; box-shadow: inset 0 0 0 1px #343432; }
  .row .cell-label, .row-save .cell-label { display: block; margin-bottom: 6px; font-family: var(--text); font-size: var(--t-12); font-weight: 400; line-height: 1.2; letter-spacing: 0.02em; text-transform: uppercase; color: var(--muted); }
  .row-now { flex: 0 0 100%; margin-top: 22px; }
  .row-was, .row-save { display: block; flex: none; margin-top: 16px; padding-top: 0; border-top: 0; }
  .row-was s, .row-was b, .row-save strong { font-size: 22px; }
}
/* Wide phones and small tablets: the three figures sit side by side in equal thirds, so cards are never half empty. */
@media (min-width: 480px) and (max-width: 719px) {
  .row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-areas: "trip trip trip" "now was save"; align-items: start; column-gap: 20px; }
  .row-meta { flex-direction: row; align-items: center; gap: 12px; }
  .row-was, .row-save { margin-top: 22px; }
  .row-was s, .row-was b, .row-save strong { display: inline-block; margin-top: 9px; }
}
@media (min-width: 540px) and (max-width: 719px) {
  .price { display: grid; grid-template-columns: max-content max-content minmax(0, 1fr); align-items: end; gap: 0 clamp(24px, 6vw, 44px); }
  .price-now { flex-basis: auto; }
}
/* Small tablets: the list's trip column gets more of the row and a slightly smaller route, so long city pairs always fit. */
@media (min-width: 720px) and (max-width: 899px) {
  .deals-head, .row { grid-template-columns: minmax(0, 2.7fr) 1fr 1fr 1.25fr; column-gap: 16px; }
  .row-route { font-size: 16px; }
  .row-save strong { font-size: var(--t-24); }
}
/* Narrow desktops: the two hero columns can shrink below their content, and the card's figures stack as they do on a phone, so nothing pushes the page sideways. */
@media (min-width: 1024px) {
  .hero { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
}
@media (min-width: 1024px) and (max-width: 1239px) {
  .hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); column-gap: 48px; }
  .rotor { padding: 32px 26px 30px; }
  .deal-route { font-size: clamp(19px, 2vw, 24px); }
  .price { flex-wrap: wrap; gap: 16px 28px; margin-top: 32px; }
  .price-now { flex-basis: 100%; }
}
/* The save chip is the saving's label in the card. In the list it sits under the saving, and above it on phones. The price you pay stays the lead figure; the usual price and the saving are equal and smaller. */
.price-off .chip-save { align-self: flex-start; margin: 0; padding: 1px 6px; font-size: 10px; line-height: 1.2; }
.row-save { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.row-save .chip-save { margin: 0; padding: 1px 6px; font-size: 10px; }
@media (min-width: 720px) {
  .row-now strong { font-size: 28px; }
  .row-was s, .row-was b, .row-save strong { font-size: var(--t-20); }
}
@media (max-width: 719px) {
  .row-save { align-items: flex-start; gap: 0; }
  .row-save .cell-label { display: none; }
  .row-save .chip-save { order: -1; margin-bottom: 6px; }
}
@media (min-width: 480px) and (max-width: 719px) { .row-save .chip-save { margin-bottom: 0; } .row-save strong { margin-top: 7px; } }
/* Wide desktops: the longest route still fits the card on one line. */
@media (min-width: 1240px) { .deal-route { font-size: clamp(20px, 2.05vw, 26px); } }
/* Tablets: the quote sits above the points at full width, so it is never a tall narrow column with a gap in it. */
@media (min-width: 720px) and (max-width: 1023px) { .loopholes { grid-template-columns: 1fr; gap: 48px; } .founder p { font-size: var(--t-24); max-width: 30em; } }
/* Phone body: one even rhythm. No rules between sections; the same gap above every heading, a tighter gap under it, and lists that do not end on a stray line. */
@media (max-width: 719px) {
  .hero { padding-bottom: 44px; }
  .section { padding-top: 44px; padding-bottom: 44px; }
  .section + .section::before { content: none; }
  .section-head { margin-bottom: 24px; }
  h2 { font-size: clamp(26px, 7.6vw, 34px); line-height: 1.14; text-wrap: balance; }
  .loopholes { gap: 32px; }
  .founder { padding: 24px 22px 22px; }
  .founder p { font-size: 19px; line-height: 1.42; text-wrap: wrap; }
  .founder-sig { padding-top: 24px; }
  .points li { padding: 22px 0; }
  .points h3 { font-size: 18px; }
  .points p { margin-top: 8px; }
  .deals { gap: 10px; }
  .steps { gap: 30px; }
  .steps li { grid-template-columns: 56px 1fr; column-gap: 16px; }
  .step-icon { width: 56px; height: 56px; }
  .faq > div { padding: 20px 0; }
  .faq > div:first-child { padding-top: 0; border-top: 0; }
  .faq > div:last-child { padding-bottom: 0; border-bottom: 0; }
  .band { padding-top: 88px; }
}
/* Airlines without a logo file show their name alone. */
.row-air { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
/* "Return, per person" sits beside the price wherever the price has a row to itself (phones and narrow desktops), and under the figures elsewhere. */
.price-per { display: none; font-size: var(--t-12); color: var(--muted); }
@media (max-width: 539px), (min-width: 1024px) and (max-width: 1239px) {
  .price .price-now { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; gap: 6px 10px; }
  .price-now .price-label { grid-column: 1 / -1; }
  .price-per { display: block; }
  .deal > .price-note { display: none; }
}
@media (max-width: 479px) {
  .row-now { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; column-gap: 10px; }
  .row-now .cell-label { grid-column: 1 / -1; }
  .row-now .cell-note { margin-top: 0; }
}
