/* Quiet Airways: one cabin, lights dimmed. Tokens follow src/theme.ts. */
@font-face { font-family: 'Allo'; src: url('/assets/Allo-Regular.otf') format('opentype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Allo'; src: url('/assets/Allo-Medium.otf') format('opentype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Allo'; src: url('/assets/Allo-SemiBold.otf') format('opentype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Departure Mono'; src: url('/assets/DepartureMono-Regular.otf') format('opentype'); font-weight: 400; font-display: swap; }

:root {
  --cabin: #070B12;
  --raised: #0F1520;
  --paper: #F3EEE4;
  --dim: rgba(243, 238, 228, 0.72);
  --faint: rgba(243, 238, 228, 0.5);
  --line: rgba(233, 228, 216, 0.12);
  --horizon: #FF7A3D;
  --on-horizon: #1A0D05;
  --ink: #10151F;
  --gutter: clamp(20px, 5vw, 48px);
  --measure: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--cabin); color: var(--paper);
  font-family: 'Allo', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  font-size: 18px; line-height: 1.5; letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: var(--faint); text-underline-offset: 0.18em; }
a:hover { text-decoration-color: var(--paper); }
:focus-visible { outline: 2px solid var(--horizon); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: calc(var(--measure) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: 'Departure Mono', ui-monospace, Menlo, monospace; letter-spacing: 0; text-transform: uppercase; }

/* ---- Top bar ---- */
.bar { position: absolute; inset: 0 0 auto 0; z-index: 5; }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 19px; letter-spacing: -0.02em; text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.bar nav { display: flex; gap: 28px; font-size: 16px; }
.bar nav a { color: var(--dim); text-decoration: none; }
.bar nav a:hover { color: var(--paper); }

/* ---- Hero ---- */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero::before {
  /* The sky outside, out of focus. */
  content: ''; position: absolute; inset: 0; z-index: -2;
  background: url('/assets/sky-golden.jpg') center 62% / cover no-repeat;
}
.hero::after {
  /* The cabin's dark comes down from the top and up from the foot. */
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to bottom, var(--cabin) 0%, rgba(7, 11, 18, 0.9) 22%, rgba(7, 11, 18, 0.42) 52%, rgba(7, 11, 18, 0.2) 72%, var(--cabin) 100%),
    linear-gradient(to right, rgba(7, 11, 18, 0.72) 0%, rgba(7, 11, 18, 0) 60%);
}
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(24px, 5vw, 72px);
  align-items: center; min-height: min(100svh, 940px); padding-top: 112px; padding-bottom: 0;
}
.hero h1 { font-weight: 600; font-size: clamp(52px, 8.4vw, 112px); line-height: 0.98; letter-spacing: -0.045em; text-wrap: balance; }
.hero .lede { margin-top: 28px; max-width: 30em; font-size: clamp(18px, 1.7vw, 22px); line-height: 1.42; color: var(--dim); text-wrap: pretty; }
.cta { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 26px; border-radius: 999px;
  background: var(--horizon); color: var(--on-horizon); font-weight: 600; font-size: 18px; text-decoration: none;
}
.pill[aria-disabled='true'] { background: rgba(243, 238, 228, 0.1); color: var(--paper); box-shadow: inset 0 0 0 1px var(--line); cursor: default; }
.pill svg { width: 18px; height: 18px; }
.cta .note { color: var(--faint); font-size: 16px; }
.hero .device { align-self: end; justify-self: center; margin-bottom: -18%; transform: rotate(-4deg); }

/* ---- A phone, drawn ---- */
.device {
  position: relative; width: min(100%, 372px); aspect-ratio: 440 / 956; border-radius: 15.6% / 7.2%;
  padding: 2.6%; background: #050608;
  box-shadow: 0 0 0 1px #2B303A, 0 0 0 3px #474E5A, 0 0 0 4px rgba(0, 0, 0, 0.5), 0 30px 60px rgba(4, 7, 12, 0.5), 0 60px 140px rgba(4, 7, 12, 0.6);
}
.device img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 13.4% / 6.2%; background: #000; }
.device::after {
  /* Dynamic Island */
  content: ''; position: absolute; left: 50%; top: 3.6%; width: 28%; aspect-ratio: 125 / 37; transform: translateX(-50%);
  background: #000; border-radius: 999px;
}

/* ---- Sections ---- */
section { padding: clamp(72px, 11vw, 148px) 0; }
h2 { font-weight: 600; font-size: clamp(36px, 5vw, 64px); line-height: 1.02; letter-spacing: -0.04em; text-wrap: balance; }
.sub { margin-top: 20px; max-width: 34em; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.45; color: var(--dim); text-wrap: pretty; }

/* The itinerary: a departures board. */
.board { border-top: 1px solid var(--line); }
.board .head { display: flex; justify-content: space-between; padding: 18px 0 14px; font-size: 11px; color: var(--faint); }
.board ol { list-style: none; }
.board li {
  display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 8px 24px; align-items: baseline;
  padding: 26px 0; border-top: 1px solid var(--line);
}
.board li:last-child { border-bottom: 1px solid var(--line); }
.board .time { font-size: 22px; color: var(--horizon); }
.board h3 { font-weight: 600; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.12; letter-spacing: -0.03em; }
.board p { grid-column: 2; color: var(--dim); max-width: 36em; }
.board .status { font-size: 11px; color: var(--faint); grid-row: 1; grid-column: 3; }

/* A feature: words beside a phone. */
.feature .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 7vw, 112px); align-items: center; }
.feature .device { justify-self: center; }
.feature.flip .words { order: 2; }
.feature ul { margin-top: 28px; list-style: none; border-top: 1px solid var(--line); }
.feature li { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--dim); }
.feature li b { color: var(--paper); font-weight: 500; }

/* Night: the sky panel. */
.night { position: relative; isolation: isolate; overflow: hidden; }
.night::before { content: ''; position: absolute; inset: 0; z-index: -2; background: url('/assets/sky-night.jpg') center 55% / cover no-repeat; }
.night::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, var(--cabin) 0%, rgba(7, 11, 18, 0.55) 38%, rgba(7, 11, 18, 0.55) 62%, var(--cabin) 100%); }

/* Three smaller phones in a row. */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 4vw, 56px); margin-top: clamp(48px, 7vw, 88px); }
.trio figure { display: flex; flex-direction: column; align-items: center; }
.trio .device { width: min(100%, 300px); }
.trio figcaption { margin-top: 28px; text-align: center; max-width: 18em; }
.trio figcaption b { display: block; font-weight: 600; font-size: 21px; letter-spacing: -0.025em; }
.trio figcaption span { display: block; margin-top: 6px; color: var(--dim); font-size: 17px; }

/* The cities. */
.cities img { margin-top: clamp(40px, 6vw, 72px); width: 100%; border-radius: 28px; }

/* Last call. */
.last { text-align: center; }
.last h2 { margin: 0 auto; max-width: 12em; }
.last .cta { justify-content: center; }
.last .sub { margin-left: auto; margin-right: auto; }

footer { border-top: 1px solid var(--line); padding: 36px 0 56px; color: var(--faint); font-size: 16px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
footer nav { display: flex; gap: 24px; }
footer a { color: var(--dim); text-decoration: none; }
footer a:hover { color: var(--paper); }

/* ---- Text pages: privacy, support ---- */
.page { padding: 148px 0 96px; }
.page .wrap { max-width: calc(720px + var(--gutter) * 2); }
.page h1 { font-weight: 600; font-size: clamp(40px, 6vw, 64px); line-height: 1.02; letter-spacing: -0.04em; }
.page .stamp { margin-top: 18px; font-size: 11px; color: var(--faint); }
.page h2 { margin-top: 56px; font-size: clamp(24px, 3vw, 30px); letter-spacing: -0.03em; line-height: 1.15; }
.page p, .page ul { margin-top: 16px; color: var(--dim); }
.page ul { padding-left: 1.2em; }
.page li { margin-top: 8px; }
.page strong { color: var(--paper); font-weight: 500; }

@media (max-width: 820px) {
  body { font-size: 17px; }
  .bar nav { gap: 20px; }
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; padding-top: 128px; }
  .hero .device { margin: 24px 0 -34%; width: min(78%, 340px); }
  .hero::after { background: linear-gradient(to bottom, var(--cabin) 0%, rgba(7, 11, 18, 0.88) 30%, rgba(7, 11, 18, 0.3) 62%, var(--cabin) 100%); }
  .board li { grid-template-columns: 64px minmax(0, 1fr); }
  .board .status { display: none; }
  .board .time { font-size: 14.67px; }
  .feature .wrap { grid-template-columns: 1fr; }
  .feature.flip .words { order: 0; }
  .feature .device { width: min(72%, 320px); margin-top: 16px; }
  .trio { grid-template-columns: 1fr; gap: 56px; }
  .trio .device { width: min(72%, 300px); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
