/* Transform Airports — marketing and policy site.
   Light Liquid Glass, matching the iOS app's Theme.swift:
   navy ink on a pastel sky, real backdrop-blur glass, one runway-blue accent.
   System fonts only: no third-party requests besides Apple's App Store badge. */

:root {
  color-scheme: light;
  --ink: #0b1b33;
  --ink-2: rgba(11, 27, 51, 0.68);
  --ink-3: rgba(11, 27, 51, 0.52);
  --hairline: rgba(11, 27, 51, 0.1);
  --accent: #1463f3;
  --accent-deep: #0a3db0;
  --accent-soft: rgba(20, 99, 243, 0.1);
  --verified: #0c9c96;
  --violet: #7c5cfc;
  --green: #16a34a;
  --amber: #d97706;
  --red: #e23d45;
  --glass: rgba(255, 255, 255, 0.58);
  --glass-strong: rgba(255, 255, 255, 0.78);
  --glass-edge: rgba(255, 255, 255, 0.92);
  --shadow: 0 24px 60px -24px rgba(32, 56, 120, 0.35), 0 2px 8px rgba(32, 56, 120, 0.06);
  --radius: 28px;
  --radius-s: 16px;
  --page: min(1120px, 100% - 40px);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-rounded: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: #eef3fc;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-deep); }
:focus-visible { outline: 3px solid rgba(20, 99, 243, 0.55); outline-offset: 3px; border-radius: 8px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  padding: 10px 16px; border-radius: 999px;
  background: var(--ink); color: #fff; text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Sky canvas ---------- */

.sky {
  position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(60vmax 50vmax at 8% 4%, #a8d6ff 0%, rgba(168, 214, 255, 0) 60%),
    radial-gradient(55vmax 45vmax at 95% 18%, #c4b6ff 0%, rgba(196, 182, 255, 0) 60%),
    radial-gradient(60vmax 50vmax at 4% 96%, #9ee6d0 0%, rgba(158, 230, 208, 0) 58%),
    radial-gradient(60vmax 50vmax at 96% 92%, #a9b9ff 0%, rgba(169, 185, 255, 0) 60%),
    linear-gradient(180deg, #e4f0ff 0%, #f2f6ff 45%, #e6ecfb 100%);
}
.sky::before, .sky::after {
  content: ""; position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%;
  filter: blur(40px); opacity: 0.55;
  animation: drift 26s ease-in-out infinite alternate;
}
.sky::before { left: -20vmax; top: 10vh; background: radial-gradient(circle, #8fc8ff 0%, rgba(143, 200, 255, 0) 65%); }
.sky::after { right: -25vmax; top: 35vh; background: radial-gradient(circle, #cfc4ff 0%, rgba(207, 196, 255, 0) 65%); animation-duration: 32s; animation-direction: alternate-reverse; }
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(6vmax, -4vmax, 0) scale(1.08); } }

/* ---------- Glass ---------- */

.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  backdrop-filter: blur(24px) saturate(170%);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border-radius: var(--radius);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 12px; z-index: 20;
  width: var(--page); margin: 12px auto 0;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 10px 10px 16px; border-radius: 999px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; flex: none; }
.brand-name { font-size: 16px; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 10px 14px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; min-height: 44px; display: inline-flex; align-items: center; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: rgba(255, 255, 255, 0.6); }
.nav .nav-cta { background: var(--ink); color: #fff; font-weight: 600; }
.nav .nav-cta:hover { background: #142a4d; color: #fff; }
@media (max-width: 720px) {
  .nav a:not(.nav-cta) { display: none; }
  .brand-name { font-size: 15px; }
}

/* ---------- Layout ---------- */

main { width: var(--page); margin: 0 auto; }
section { padding: clamp(56px, 9vw, 112px) 0 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--verified);
  background: rgba(255, 255, 255, 0.7); border: 1px solid var(--glass-edge);
}
.eyebrow svg { width: 16px; height: 16px; }
.section-title { font-family: var(--font-display); font-size: clamp(30px, 4.4vw, 48px); line-height: 1.08; letter-spacing: -0.025em; margin: 14px 0 12px; }
.section-lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 640px; margin: 0; }

/* ---------- Hero ---------- */

.hero {
  display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: clamp(32px, 6vw, 72px);
  padding-top: clamp(40px, 7vw, 88px);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6.4vw, 72px); line-height: 1.02; letter-spacing: -0.035em;
  margin: 18px 0 18px;
}
.hero h1 .accent {
  background: linear-gradient(120deg, #1463f3 0%, #4a7dff 45%, #7c5cfc 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lede { font-size: clamp(18px, 1.8vw, 21px); color: var(--ink-2); max-width: 560px; margin: 0 0 30px; }
.store-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.store-badge { position: relative; display: inline-flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.store-badge img { height: 54px; width: auto; filter: drop-shadow(0 10px 18px rgba(11, 27, 51, 0.18)); }
.soon {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--ink-2);
}
.soon::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.16); }
.store-note { font-size: 15px; color: var(--ink-3); margin: 0; max-width: 300px; }

.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual .phone { width: min(330px, 78vw); transform: rotate(-2deg); }
.float-chip {
  position: absolute; display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 20px; font-size: 14px; font-weight: 600; white-space: nowrap;
}
.float-chip small { display: block; font-weight: 500; color: var(--ink-3); font-size: 12.5px; }
.float-chip .dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; color: #fff; }
.float-chip.one { left: max(-8px, 2%); top: 22%; }
.float-chip.two { right: max(-8px, 0%); bottom: 16%; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: left; }
  .hero-visual { margin-top: 8px; }
}
@media (max-width: 480px) {
  .float-chip.one { left: -4px; top: 14%; }
  .float-chip.two { right: -4px; bottom: 8%; }
  .float-chip { font-size: 13px; padding: 10px 12px; }
}

/* ---------- Phone frame ---------- */

.phone {
  position: relative; padding: 9px; border-radius: 54px;
  background: linear-gradient(145deg, #1c2a44, #0b1220 55%, #273652);
  box-shadow: 0 40px 80px -30px rgba(20, 40, 100, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08) inset, 0 2px 0 rgba(255, 255, 255, 0.18) inset;
}
.phone img { width: 100%; height: auto; border-radius: 46px; aspect-ratio: 720 / 1563; object-fit: cover; background: #e4f0ff; }

/* ---------- Feature cards ---------- */

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.feature { padding: 28px; }
.feature .icon { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 18px; color: #fff; }
.feature .icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 20px; letter-spacing: -0.01em; margin: 0 0 8px; }
.feature p { margin: 0; color: var(--ink-2); }
@media (max-width: 900px) { .features { grid-template-columns: 1fr; } }

/* ---------- Screens gallery ---------- */

.screens {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 36px);
  margin-top: 40px; align-items: start;
}
.screen figure { margin: 0; }
.screen .phone { width: min(300px, 100%); margin: 0 auto; }
.screen:nth-child(2) { margin-top: 48px; }
.screen figcaption { text-align: center; margin: 22px auto 0; max-width: 300px; }
.screen figcaption strong { display: block; font-size: 18px; margin-bottom: 4px; }
.screen figcaption span { color: var(--ink-2); font-size: 16px; }
@media (max-width: 900px) {
  .screens {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(270px, 74vw);
    overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 24px; margin-inline: -20px; padding-inline: 20px;
    scrollbar-width: none;
  }
  .screens::-webkit-scrollbar { display: none; }
  .screen { scroll-snap-align: center; }
  .screen:nth-child(2) { margin-top: 0; }
}

/* ---------- Relay trail ---------- */

.relay { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.trail-card { padding: clamp(22px, 3vw, 32px); }
.trail-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 22px; }
.monogram {
  display: inline-grid; place-items: center; height: 40px; padding: 0 12px; border-radius: 12px;
  background: linear-gradient(135deg, #2f7bff, #1463f3 55%, #0e4fd6); color: #fff;
  font-family: var(--font-rounded); font-weight: 800; letter-spacing: 0.06em;
  box-shadow: 0 8px 16px -6px rgba(20, 99, 243, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.chip.ack { color: var(--verified); background: rgba(12, 156, 150, 0.12); }
.note-text { font-size: 17px; margin: 0 0 22px; }
.note-text::before { content: "\201C"; color: rgba(20, 99, 243, 0.4); font-family: Georgia, serif; font-size: 30px; line-height: 0; vertical-align: -10px; margin-right: 4px; }
.trail { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.trail::before { content: ""; position: absolute; left: 10%; right: 10%; top: 10px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--accent), var(--violet) 70%, var(--verified)); }
.trail li { position: relative; text-align: center; font-size: 12.5px; font-weight: 600; color: var(--ink-2); padding-top: 30px; }
.trail li::before {
  content: ""; position: absolute; left: 50%; top: 2px; width: 19px; height: 19px; margin-left: -9.5px; border-radius: 50%;
  background: var(--accent); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(20, 99, 243, 0.35);
}
.trail li:nth-child(4)::before { background: var(--violet); }
.trail li:last-child::before { background: var(--verified); box-shadow: 0 0 0 6px rgba(12, 156, 150, 0.18); }
.trail li:last-child { color: var(--ink); }
.from { display: flex; align-items: center; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--hairline); font-size: 14px; color: var(--ink-2); }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #dcebff, #c9d8ff); color: var(--accent-deep); font-weight: 700; font-size: 13px; }
.seal { color: var(--verified); }
@media (max-width: 900px) { .relay { grid-template-columns: 1fr; } }


/* ---------- Steps ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; counter-reset: step; }
.step { padding: 26px; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; margin-bottom: 16px;
  font-family: var(--font-rounded); font-weight: 800; font-size: 18px; color: var(--accent); background: var(--accent-soft);
}
.step h3 { margin: 0 0 6px; font-size: 19px; }
.step p { margin: 0; color: var(--ink-2); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Promise strip ---------- */

.promises { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 32px; }
.promise { padding: 18px 20px; border-radius: var(--radius-s); background: rgba(255, 255, 255, 0.55); border: 1px solid var(--glass-edge); font-weight: 600; font-size: 15.5px; display: flex; gap: 10px; align-items: flex-start; }
.promise svg { width: 20px; height: 20px; flex: none; color: var(--verified); margin-top: 2px; }
@media (max-width: 900px) { .promises { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .promises { grid-template-columns: 1fr; } }

/* ---------- Final CTA ---------- */

.cta { text-align: center; padding: clamp(36px, 6vw, 64px) clamp(20px, 5vw, 64px); margin-top: clamp(56px, 9vw, 112px); }
.cta h2 { font-family: var(--font-display); font-size: clamp(30px, 4.4vw, 46px); letter-spacing: -0.025em; line-height: 1.1; margin: 0 0 12px; }
.cta p { color: var(--ink-2); max-width: 560px; margin: 0 auto 26px; font-size: 18px; }
.cta .store-row { justify-content: center; }
.cta .store-badge { align-items: center; }

/* ---------- Footer ---------- */

.site-footer { width: var(--page); margin: clamp(56px, 8vw, 96px) auto 0; padding: 28px 0 40px; border-top: 1px solid var(--hairline); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 24px; font-size: 15px; color: var(--ink-3); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-footer a { color: var(--ink-2); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.site-footer a:hover { color: var(--accent); }

/* ---------- Document pages (privacy, terms, guidelines, support) ---------- */

.doc { max-width: 780px; margin: 40px auto 0; padding: clamp(26px, 5vw, 56px); }
.doc h1 { font-family: var(--font-display); font-size: clamp(34px, 5vw, 48px); letter-spacing: -0.03em; line-height: 1.08; margin: 10px 0 8px; }
.doc .meta { color: var(--ink-3); font-size: 15px; margin: 0 0 28px; }
.doc .summary { padding: 18px 20px; border-radius: var(--radius-s); background: rgba(20, 99, 243, 0.07); border: 1px solid rgba(20, 99, 243, 0.14); margin: 0 0 32px; }
.doc .summary p { margin: 0; }
.doc .summary ul { margin: 8px 0 0; padding-left: 20px; }
.doc h2 { font-size: 22px; letter-spacing: -0.01em; margin: 40px 0 10px; padding-top: 4px; }
.doc h3 { font-size: 18px; margin: 26px 0 6px; }
.doc p, .doc li { color: rgba(11, 27, 51, 0.82); }
.doc ul, .doc ol { padding-left: 22px; }
.doc li + li { margin-top: 6px; }
.doc .toc { margin: 0 0 8px; padding: 18px 22px; border-radius: var(--radius-s); background: rgba(255, 255, 255, 0.6); border: 1px solid var(--glass-edge); }
.doc .toc ol { margin: 6px 0 0; columns: 2; column-gap: 28px; }
.doc .toc li { break-inside: avoid; }
@media (max-width: 600px) { .doc .toc ol { columns: 1; } }
.doc table { width: 100%; border-collapse: collapse; margin: 14px 0 6px; font-size: 15.5px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 10px; border-bottom: 1px solid var(--hairline); }
.doc th { font-size: 13.5px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-3); }
.doc td:first-child { font-weight: 600; width: 34%; }
@media (max-width: 600px) {
  .doc table, .doc thead, .doc tbody, .doc tr, .doc th, .doc td { display: block; }
  .doc thead { display: none; }
  .doc tr { padding: 12px 0; border-bottom: 1px solid var(--hairline); }
  .doc td { border: 0; padding: 2px 0; width: auto; }
}
.doc .faq details { border-bottom: 1px solid var(--hairline); padding: 6px 0; }
.doc .faq summary { cursor: pointer; font-weight: 650; padding: 12px 0; min-height: 44px; list-style-position: outside; }
.doc .faq details p, .doc .faq details ol { margin-top: 0; }
.contact-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 20px 22px; border-radius: var(--radius-s); background: rgba(255, 255, 255, 0.7); border: 1px solid var(--glass-edge); margin: 8px 0 8px; }
.contact-card strong { display: block; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px;
  background: var(--accent); color: #fff; font-weight: 650; text-decoration: none; box-shadow: 0 10px 22px -10px rgba(20, 99, 243, 0.7);
}
.button:hover { background: var(--accent-deep); color: #fff; }

/* ---------- 404 ---------- */

.not-found { text-align: center; max-width: 560px; margin: 12vh auto 0; padding: 48px 28px; }
.not-found h1 { font-family: var(--font-display); font-size: 40px; margin: 0 0 10px; letter-spacing: -0.02em; }
.not-found p { color: var(--ink-2); }

/* ---------- Accessibility preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sky::before, .sky::after { animation: none; }
  .hero-visual .phone { transform: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .glass, .site-header { background: #fbfcff; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .sky::before, .sky::after { display: none; }
}

@media (prefers-contrast: more) {
  :root { --ink-2: rgba(11, 27, 51, 0.86); --ink-3: rgba(11, 27, 51, 0.74); --glass: rgba(255, 255, 255, 0.92); }
}

@media print {
  .sky, .site-header, .site-footer, .skip-link { display: none !important; }
  .glass { background: #fff; box-shadow: none; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
  body { background: #fff; }
}

/* ---------- Additions: color helpers, list resets, fallbacks ---------- */

.blue { background: linear-gradient(135deg, #2f7bff, #1463f3); }
.teal { background: linear-gradient(135deg, #18b8b0, #0c9c96); }
.violet { background: linear-gradient(135deg, #9b82ff, #7c5cfc); }
.steps, .promises { list-style: none; padding: 0; }
.site-footer .fine { font-size: 13px; margin-top: 6px; max-width: 540px; line-height: 1.45; }
.badge-fallback {
  display: inline-flex; align-items: center; height: 54px; padding: 0 22px; border-radius: 14px;
  background: var(--glass-strong); border: 1px solid var(--glass-edge); box-shadow: var(--shadow);
  color: var(--ink); font-weight: 700; font-size: 16px; letter-spacing: -0.01em;
}
.contact-card div { color: var(--ink-2); }
.contact-card strong { color: var(--ink); }
.doc .faq summary::marker { color: var(--accent); }
.nav a { white-space: nowrap; }
@media (max-width: 400px) {
  .site-header { padding: 8px 8px 8px 12px; gap: 8px; }
  .brand { gap: 8px; }
  .brand-mark { width: 30px; height: 30px; }
  .brand-name { font-size: 14.5px; }
  .nav .nav-cta { padding: 8px 14px; font-size: 14px; }
}

/* Grid children may shrink below their content width (prevents the relay card from widening the page). */
.hero > *, .relay > *, .features > *, .steps > * { min-width: 0; }
.relay { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
@media (max-width: 900px) { .relay { grid-template-columns: minmax(0, 1fr); } }

/* On narrow screens the delivery trail becomes a vertical stepper. */
@media (max-width: 560px) {
  .trail { grid-template-columns: 1fr; gap: 14px; }
  .trail::before { left: 9px; right: auto; top: 6px; bottom: 6px; width: 3px; height: auto; background: linear-gradient(180deg, var(--accent), var(--violet) 70%, var(--verified)); }
  .trail li { text-align: left; padding: 0 0 0 34px; font-size: 14.5px; line-height: 21px; }
  .trail li::before { left: 0; top: 1px; margin-left: 0; }
}
@media (max-width: 600px) { .doc td:first-child { width: auto; padding-bottom: 4px; } }
.contact-card div { overflow-wrap: anywhere; }
