/* OnAir website. Tokens follow the guest app's DESIGN.md (colors, Cairo, radii, spacing). */

@font-face { font-family: Cairo; font-weight: 400; font-display: swap; src: url(/assets/fonts/Cairo-Regular.ttf) format("truetype"); }
@font-face { font-family: Cairo; font-weight: 500; font-display: swap; src: url(/assets/fonts/Cairo-Medium.ttf) format("truetype"); }
@font-face { font-family: Cairo; font-weight: 600; font-display: swap; src: url(/assets/fonts/Cairo-SemiBold.ttf) format("truetype"); }
@font-face { font-family: Cairo; font-weight: 700; font-display: swap; src: url(/assets/fonts/Cairo-Bold.ttf) format("truetype"); }
@font-face { font-family: Cairo; font-weight: 800; font-display: swap; src: url(/assets/fonts/Cairo-ExtraBold.ttf) format("truetype"); }

:root {
  color-scheme: light;
  --primary: #006399;
  --primary-light: #147DBC;
  --primary-dark: #0A3D62;
  --on-primary: #FFFFFF;
  --bg: #F7F7F3;
  --surface: #FFFFFF;
  --surface-2: #EBEBE7;
  --text: #1A1A2E;
  --text-2: #6B7280;
  --border: #E1E1E1;
  --selected: #D6EBF7;
  --accent: #00677D;
  --logo: #00639A;
  --hero-from: #004B74;
  --hero-to: #147DBC;
  --shadow: 0 4px 12px rgba(0, 75, 116, .18);
  --card-shadow: 0 1px 2px rgba(26, 26, 46, .06);
  --info-bg: #D6EBF7;
  --info-text: #01579B;
  --radius-chip: 8px;
  --radius-button: 12px;
  --radius-card: 16px;
  --radius-sheet: 24px;
  --gutter: 16px;
  --max: 1120px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0F1419;
  --surface: #1A2332;
  --surface-2: #151C26;
  --text: #FFFFFF;
  --text-2: #B0BEC5;
  --border: #2A3544;
  --selected: #1E3A5F;
  --accent: #81D4FA;
  --logo: #FFFFFF;
  --hero-from: #002D47;
  --hero-to: #0A3D62;
  --shadow: 0 4px 12px rgba(0, 0, 0, .4);
  --card-shadow: none;
  --info-bg: #1E3A5F;
  --info-text: #E1F5FE;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0F1419;
    --surface: #1A2332;
    --surface-2: #151C26;
    --text: #FFFFFF;
    --text-2: #B0BEC5;
    --border: #2A3544;
    --selected: #1E3A5F;
    --accent: #81D4FA;
    --logo: #FFFFFF;
    --hero-from: #002D47;
    --hero-to: #0A3D62;
    --shadow: 0 4px 12px rgba(0, 0, 0, .4);
    --card-shadow: none;
    --info-bg: #1E3A5F;
    --info-text: #E1F5FE;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Cairo, system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { font-weight: 800; line-height: 1.2; margin: 0; letter-spacing: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--primary-light); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; } }

.skip {
  position: absolute; inset-inline-start: 12px; top: -80px; z-index: 50;
  background: var(--surface); color: var(--text); padding: 10px 16px; border-radius: var(--radius-button);
  box-shadow: var(--shadow); text-decoration: none; font-weight: 700;
}
.skip:focus { top: 12px; }

/* header */
.site-header { padding-block: 14px; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; color: var(--logo); min-height: 48px; }
.brand svg { height: 40px; width: auto; display: block; }
.brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.nav { display: none; align-items: center; gap: 4px; }
.nav a { color: inherit; text-decoration: none; font-weight: 600; padding: 10px 14px; border-radius: 999px; min-height: 48px; display: inline-flex; align-items: center; }
.nav a:hover { background: rgba(127, 127, 127, .16); }
.site-header .wrap { flex-wrap: wrap; }
.tools { display: flex; align-items: center; gap: 8px; }
.pill, .icon-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  border: 1px solid currentColor; background: transparent; color: inherit; cursor: pointer;
  font: inherit; font-weight: 700; text-decoration: none; border-radius: 999px;
}
.pill { padding-inline: 18px; }
.icon-btn { width: 48px; padding: 0; }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn .i-sun { display: none; }
:root[data-theme="dark"] .icon-btn .i-sun { display: block; }
:root[data-theme="dark"] .icon-btn .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-btn .i-sun { display: block; }
  :root:not([data-theme="light"]) .icon-btn .i-moon { display: none; }
}
@media (min-width: 860px) { .nav { display: flex; } }

/* hero */
.hero {
  position: relative; overflow: hidden; color: #fff; --logo: #fff; background: #004B74;
  border-radius: 0 0 32px 32px;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 38%; max-width: none; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(to right, rgba(0, 45, 71, .94) 0%, rgba(0, 45, 71, .78) 48%, rgba(0, 45, 71, .3) 100%); }
:root[dir="rtl"] .hero-shade, html[dir="rtl"] .hero-shade { background: linear-gradient(to left, rgba(0, 45, 71, .94) 0%, rgba(0, 45, 71, .78) 48%, rgba(0, 45, 71, .3) 100%); }
@media (max-width: 700px) { .hero-shade, html[dir="rtl"] .hero-shade { background: rgba(0, 45, 71, .82); } }
.hero .site-header, .hero .hero-body { position: relative; color: #fff; }
.hero-body { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding-block: 48px 72px; max-width: calc(640px + 2 * var(--gutter)); margin-inline: max(0px, calc((100% - var(--max)) / 2)); }
.kicker { display: inline-block; font-size: 14px; font-weight: 700; padding: 4px 14px; border-radius: 999px; background: rgba(255, 255, 255, .18); }
.hero h1 { font-size: clamp(32px, 6vw, 58px); font-weight: 800; line-height: 1.2; }
.hero .lead { font-size: clamp(16px, 2.4vw, 19px); max-width: 36em; color: rgba(255, 255, 255, .93); }
.now { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: rgba(255, 255, 255, .92); margin-top: 4px; }
.now svg { width: 20px; height: 20px; flex: none; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.store {
  display: inline-flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 20px; border-radius: 14px;
  background: #fff; color: #0A3D62; border: 0; font: inherit; text-align: start; text-decoration: none; cursor: pointer;
  transition: transform .15s ease;
}
.store:hover { transform: translateY(-2px); }
.store .g { width: 28px; height: 28px; flex: none; }
.store .st { display: flex; flex-direction: column; line-height: 1.25; }
.store small { font-size: 12px; font-weight: 600; color: #4A5565; }
.store b { font-size: 17px; font-weight: 800; }
.store .tag { font-size: 12px; font-weight: 800; padding: 2px 10px; border-radius: 999px; background: #D6EBF7; color: #01579B; }

/* sections */
section.block { padding-block: 72px 0; }
.block h2 { font-size: clamp(26px, 3.6vw, 34px); }
.block .sub { color: var(--text-2); margin-top: 8px; max-width: 40em; font-size: 17px; }
.grid { display: grid; gap: 16px; margin-top: 28px; }
.grid.f4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 24px; box-shadow: var(--card-shadow); }
.ico { width: 52px; height: 52px; border-radius: 14px; background: var(--selected); color: var(--primary); display: grid; place-items: center; }
.card .ico { margin-bottom: 14px; }
:root[data-theme="dark"] .ico { color: #81D4FA; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ico { color: #81D4FA; } }
.ico svg { width: 26px; height: 26px; }
.card h3 { font-size: 19px; }
.card p { color: var(--text-2); margin-top: 8px; font-size: 15.5px; line-height: 1.65; }

.band { background: var(--selected); border-radius: var(--radius-sheet); padding: 40px 32px; display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.band-head { flex: 1 1 280px; }
.band-head h2 { font-size: clamp(24px, 3.2vw, 30px); }
.band-head p { margin-top: 10px; color: var(--text-2); }
:root:not([data-theme="dark"]) .band-head p, :root:not([data-theme="dark"]) .steps span span { color: #244B66; }
.steps { flex: 2 1 480px; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 20px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; }
.steps .n { flex: none; width: 40px; height: 40px; border-radius: 999px; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 800; }
.steps b { display: block; }
.steps li > span:last-child { font-size: 15px; }

.dests { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 28px; }
.dest { border-radius: var(--radius-sheet); min-height: 380px; position: relative; overflow: hidden; display: flex; }
.dest.main { flex: 2 1 460px; align-items: flex-end; color: #fff; background: #004B74; }
.dest.main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 82%; max-width: none; }
.dest-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 45, 71, .88), rgba(0, 45, 71, 0) 62%); }
.dest-text { position: relative; padding: 28px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.dest-text h3 { font-size: 32px; }
.dest-text p { max-width: 30em; color: rgba(255, 255, 255, .93); }
.dest.more { flex: 1 1 280px; border: 2px dashed var(--border); background: var(--surface); padding: 28px; flex-direction: column; justify-content: center; align-items: flex-start; gap: 12px; }
.dest.more h3 { font-size: 24px; }
.dest.more p { color: var(--text-2); }
.badge { font-size: 13px; font-weight: 800; padding: 3px 12px; border-radius: 999px; background: var(--selected); color: var(--info-text); }
.badge.on { background: #fff; color: #006399; }

.apps { background: linear-gradient(160deg, var(--hero-from), var(--hero-to)); color: #fff; border-radius: var(--radius-sheet); padding: 40px 32px; display: flex; flex-wrap: wrap; gap: 28px; align-items: center; }
.app-icon { width: 96px; height: 96px; border-radius: 22px; flex: none; }
.apps-text { flex: 1 1 300px; }
.apps-text h2 { font-size: clamp(24px, 3.2vw, 30px); }
.apps-text p { margin-top: 8px; color: rgba(255, 255, 255, .9); }
.apps .stores { margin-top: 0; }

.help { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sheet); padding: 36px 24px; box-shadow: var(--card-shadow); }
@media (min-width: 640px) { .help { padding: 36px; } }
.contacts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.contact {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding-inline: 20px; border-radius: var(--radius-button);
  border: 1px solid var(--border); background: var(--selected); color: var(--text); text-decoration: none; font: inherit; font-weight: 700; cursor: pointer;
}
.contact:hover { border-color: var(--primary-light); }
.contact svg { width: 22px; height: 22px; flex: none; }
.muted { color: var(--text-2); }
.note { color: var(--text-2); font-size: 14px; margin-top: 18px; }

/* toast */
.toast {
  position: fixed; inset-inline: 16px; bottom: 24px; margin-inline: auto; width: fit-content; max-width: calc(100% - 32px); z-index: 60;
  background: var(--primary-dark); color: #fff; padding: 14px 24px; border-radius: 14px; font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 45, 71, .35); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .2s ease, transform .2s ease;
}
.toast.show { opacity: 1; transform: none; }
:root[data-theme="dark"] .toast { background: #1E3A5F; }

/* footer */
.site-footer { margin-top: 72px; border-top: 1px solid var(--border); background: var(--surface); padding-block: 32px 36px; font-size: 14px; color: var(--text-2); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 24px; align-items: center; justify-content: space-between; }
.foot-brand { display: flex; flex-direction: column; gap: 8px; max-width: 360px; }
.foot-brand .brand svg { height: 36px; }
.foot-brand p { font-size: 14.5px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.site-footer nav a { color: var(--accent); font-weight: 600; display: inline-flex; min-height: 44px; align-items: center; }
.site-footer .copy { flex-basis: 100%; }

/* legal and small pages */
.page-head { border-bottom: 1px solid var(--border); background: var(--surface); }
.page-head .site-header { color: var(--text); }
.doc { max-width: 760px; margin-inline: auto; padding: 40px var(--gutter) 0; }
.doc h1 { font-size: clamp(28px, 5vw, 40px); letter-spacing: -.3px; }
.doc .intro { margin-top: 12px; color: var(--text-2); font-size: 17px; }
.doc h2 { font-size: 20px; margin-top: 36px; }
.doc p, .doc li { margin-top: 10px; }
.doc ul { padding-inline-start: 22px; margin: 6px 0 0; }
.doc li { padding-inline-start: 4px; }
.banner {
  margin-top: 20px; padding: 14px 18px; border-radius: var(--radius-card); background: var(--info-bg); color: var(--info-text); font-size: 15px;
}
.banner b { display: block; }
.meta-line { margin-top: 12px; color: var(--text-2); font-size: 14px; }
.back { display: inline-flex; align-items: center; min-height: 48px; margin-top: 32px; font-weight: 700; }
.center { text-align: center; padding-block: 72px 16px; }
.center .mark { width: 72px; color: var(--primary); margin-inline: auto; display: block; }
:root[data-theme="dark"] .center .mark { color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .center .mark { color: #fff; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
@media (forced-colors: active) {
  .store, .contact, .pill, .icon-btn { border: 2px solid ButtonText; }
}
