/* ---------- Local fonts (no external requests) ---------- */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url('/static/fonts/nunito-latin.woff2') format('woff2');
}

/* ==================================================
   Avia Masters 2 — aviamasters2.africa
   REDESIGN: "Flight Ops Dossier"
   Same palette: night navy / logo yellow / biplane red
   Signature: sharp corners, hard offset shadows,
   blueprint grid paper, mono labels, section indices,
   hazard stripes, stamps, boarding-pass promo.
   ================================================== */
:root {
  --navy: #142a63;
  --navy-deep: #0c1c47;
  --navy-ink: #0a1636;
  --blue: #2450c8;
  --sky: #3d74f0;
  --paper: #f2f6ff;
  --paper-2: #e9efff;
  --line: rgba(36, 80, 200, .14);
  --yellow: #FFCC2A;
  --yellow-deep: #f0a80f;
  --red: #e8392b;
  --red-dark: #c22317;
  --ink: #16203a;
  --muted: #4d5b7c;
  --mono: ui-monospace, 'SF Mono', 'Cascadia Mono', 'Consolas', 'Courier New', monospace;
  --hard: 7px 7px 0 rgba(20, 42, 99, .16);
  --hard-navy: 7px 7px 0 var(--navy);
  --hard-yellow: 7px 7px 0 var(--yellow);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Nunito', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 22px; }

::selection { background: var(--yellow); color: var(--navy); }

/* ---------- Shared technical bits ---------- */
.mono { font-family: var(--mono); }

.hazard {
  height: 12px;
  background: repeating-linear-gradient(-45deg,
    var(--yellow) 0, var(--yellow) 16px,
    var(--navy) 16px, var(--navy) 32px);
}

/* blueprint grid paper for light sections */
.grid-paper {
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 34px 34px;
}

.grid-paper-2 {
  background-color: var(--paper-2);
  background-image:
    linear-gradient(rgba(36,80,200,.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36,80,200,.10) 1px, transparent 1px);
  background-size: 34px 34px;
}

/* night sections keep faint grid too */
.grid-night {
  background-color: var(--navy);
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 34px 34px;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--yellow);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 4px solid var(--navy);
}
.site-header::after {
  content: '';
  display: block;
  height: 8px;
  background: repeating-linear-gradient(-45deg,
    var(--navy) 0, var(--navy) 12px,
    var(--yellow) 12px, var(--yellow) 24px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 22px;
  max-width: 1120px;
  margin: 0 auto;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 52px; width: auto; }
.brand-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--navy);
  border: 1.5px solid var(--navy);
  padding: 3px 7px;
  line-height: 1.3;
  display: none;
}
@media (min-width: 900px) { .brand-tag { display: block; } }

.main-nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }

.main-nav a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  font-family: var(--mono);
  letter-spacing: .02em;
  padding: 8px 11px;
  border: 1.5px solid transparent;
  transition: border-color .15s, background .15s;
}
.main-nav a:hover { border-color: var(--navy); background: rgba(20,42,99,.07); }

.main-nav .nav-cta {
  background: var(--red);
  color: #fff;
  border: 2px solid var(--navy);
  box-shadow: 3px 3px 0 var(--navy);
  padding: 8px 14px;
  margin-left: 8px;
  transition: transform .12s, box-shadow .12s;
}
.main-nav .nav-cta:hover { transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--navy); background: var(--red-dark); }

.burger {
  display: none;
  background: var(--navy);
  color: var(--yellow);
  border: none;
  font-size: 20px;
  width: 44px; height: 44px;
  cursor: pointer;
}

@media (max-width: 860px) {
  .burger { display: grid; place-items: center; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--yellow);
    border-bottom: 4px solid var(--navy);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 18px 16px;
    gap: 4px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { border: 1.5px solid rgba(20,42,99,.25); text-align: center; }
  .main-nav .nav-cta { margin-left: 0; margin-top: 6px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--red);
  color: #fff;
  font-weight: 900;
  font-size: 16px;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 26px;
  border: 2.5px solid var(--navy-ink);
  box-shadow: 6px 6px 0 var(--navy-ink);
  transition: transform .12s, box-shadow .12s, background .15s;
  cursor: pointer;
}
.btn:hover { transform: translate(3px,3px); box-shadow: 2px 2px 0 var(--navy-ink); background: var(--red-dark); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
  box-shadow: 6px 6px 0 rgba(20,42,99,.22);
}
.btn-outline:hover { background: rgba(20,42,99,.06); color: var(--navy); box-shadow: 2px 2px 0 rgba(20,42,99,.22); }

.btn-yellow {
  background: var(--yellow);
  color: var(--navy);
  border-color: var(--navy-ink);
}
.btn-yellow:hover { background: var(--yellow-deep); }

.btn-row { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 26px; }

/* ---------- Section scaffolding ---------- */
section { position: relative; }

.sec-pad { padding: 74px 0 78px; }

.sec-head { position: relative; margin-bottom: 30px; }

.sec-index {
  position: absolute;
  right: 0;
  top: -28px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(64px, 10vw, 128px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px rgba(36,80,200,.18);
  pointer-events: none;
  user-select: none;
}
.on-night .sec-index { -webkit-text-stroke: 2px rgba(255,255,255,.14); }

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue);
  border: 1.5px solid var(--blue);
  padding: 5px 12px;
  margin-bottom: 16px;
  background: rgba(255,255,255,.6);
}
.section-kicker::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--red);
}
.on-night .section-kicker { color: var(--yellow); border-color: var(--yellow); background: rgba(0,0,0,.15); }
.on-night .section-kicker::before { background: var(--yellow); }

h2 {
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 900;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 18px;
  max-width: 860px;
}
.on-night h2 { color: #fff; }

h3 { font-size: 21px; font-weight: 900; color: var(--navy); margin-bottom: 10px; }
.on-night h3 { color: var(--yellow); }

p { margin-bottom: 16px; color: var(--ink); }
.on-night p { color: #dbe4ff; }

p:last-child { margin-bottom: 0; }

.hl {
  color: var(--red);
  position: relative;
  white-space: nowrap;
}
.hl::after {
  content: '';
  position: absolute;
  left: -2px; right: -2px; bottom: 2px;
  height: 10px;
  background: var(--yellow);
  z-index: -1;
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 84px 0 66px;
  background:
    linear-gradient(180deg, rgba(12,28,71,.5), rgba(20,42,99,0) 40%),
    var(--navy);
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 34px 34px;
  border-bottom: 4px solid var(--navy-ink);
}
.hero::before {
  /* dashed flight path across the sky */
  content: '';
  position: absolute;
  left: -5%; right: -5%;
  top: 34%;
  height: 0;
  border-top: 2px dashed rgba(255,204,42,.4);
  transform: rotate(-6deg);
  pointer-events: none;
}

.hero-frame {
  position: relative;
  border: 2px solid rgba(255,255,255,.22);
  padding: clamp(24px, 4vw, 48px);
}
/* corner brackets */
.hero-frame::before, .hero-frame::after,
.corner-b::before, .corner-b::after {
  content: '';
  position: absolute;
  width: 26px; height: 26px;
  border: 3px solid var(--yellow);
}
.hero-frame::before { top: -3px; left: -3px; border-right: none; border-bottom: none; }
.hero-frame::after { top: -3px; right: -3px; border-left: none; border-bottom: none; }
.corner-b { position: absolute; inset: 0; pointer-events: none; }
.corner-b::before { bottom: -3px; left: -3px; top: auto; border-right: none; border-top: none; }
.corner-b::after { bottom: -3px; right: -3px; top: auto; left: auto; border-left: none; border-top: none; }

.hero-file-label {
  position: absolute;
  top: -14px;
  left: 24px;
  background: var(--navy);
  padding: 2px 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--yellow);
  border: 1.5px solid rgba(255,204,42,.5);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 44px;
  align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.hero h1 {
  font-size: clamp(30px, 4.6vw, 50px);
  font-weight: 900;
  line-height: 1.12;
  margin-bottom: 18px;
}
.hero h1 .hl::after { background: var(--red); height: 12px; }
.hero h1 .hl { color: var(--yellow); }

.lead { font-size: 18px; color: #ccd8fb; max-width: 620px; }

.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .04em;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.06);
  padding: 7px 12px;
}
.badge i { color: var(--yellow); }

.hero-img-wrap { position: relative; display: grid; place-items: center; }
.hero-img-wrap .press-img { position: relative; display: block; }
.hero-img-wrap img {
  border: 3px solid #fff;
  box-shadow: 10px 10px 0 rgba(0,0,0,.35);
}
.hero-stamp {
  position: absolute;
  z-index: 3;
  right: -14px;
  bottom: 18px;
  transform: rotate(-9deg);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .14em;
  color: var(--yellow);
  border: 3px double var(--yellow);
  padding: 8px 14px;
  background: rgba(12,28,71,.85);
  text-transform: uppercase;
  pointer-events: none;
}

.hero-plane {
  position: absolute;
  width: 190px;
  right: 4%;
  top: 7%;
  opacity: .95;
  animation: heroPlane 7s ease-in-out infinite;
  filter: drop-shadow(0 14px 22px rgba(0,0,0,.4));
  pointer-events: none;
  z-index: 1;
}
@keyframes heroPlane {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-20px) rotate(3deg); }
}
@media (max-width: 900px) { .hero-plane { width: 110px; top: 2%; opacity: .5; } }

.hero-cloud {
  position: absolute;
  background: rgba(255,255,255,.1);
  border: 1.5px dashed rgba(255,255,255,.22);
  animation: cloudDrift linear infinite;
  pointer-events: none;
}
@keyframes cloudDrift {
  from { transform: translateX(-240px); }
  to { transform: translateX(calc(100vw + 240px)); }
}

/* ---------- Stat strip: instrument panel ---------- */
.stat-strip {
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 2px solid rgba(255,255,255,.25);
  background: rgba(10,22,54,.6);
}
@media (max-width: 720px) { .stat-strip { grid-template-columns: repeat(2, 1fr); } }

.stat-cell {
  padding: 20px 14px 16px;
  text-align: center;
  position: relative;
  border-right: 1.5px dashed rgba(255,255,255,.2);
}
.stat-cell:last-child { border-right: none; }
@media (max-width: 720px) {
  .stat-cell:nth-child(2n) { border-right: none; }
  .stat-cell:nth-child(-n+2) { border-bottom: 1.5px dashed rgba(255,255,255,.2); }
}
.stat-cell::before {
  /* ruler ticks */
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 6px;
  background-image: repeating-linear-gradient(90deg,
    rgba(255,204,42,.55) 0, rgba(255,204,42,.55) 1.5px, transparent 1.5px, transparent 9px);
}
.stat-cell .num {
  font-family: var(--mono);
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 700;
  color: var(--yellow);
  line-height: 1.1;
}
.stat-cell .lbl {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #9fb3e8;
  margin-top: 6px;
}

/* ---------- Ticker: radio log ---------- */
.ticker-wrap {
  display: flex;
  align-items: stretch;
  background: var(--navy-ink);
  border-top: 2px solid var(--yellow);
  border-bottom: 2px solid var(--yellow);
  overflow: hidden;
}
.ticker-label {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--yellow);
  color: var(--navy);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 10px 16px;
  white-space: nowrap;
  z-index: 2;
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
  padding-right: 26px;
}
.ticker-label .dot {
  width: 9px; height: 9px;
  background: var(--red);
  animation: blink 1.1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: .15; } }

.ticker-track {
  display: flex;
  align-items: center;
  gap: 42px;
  white-space: nowrap;
  animation: tickerMove 55s linear infinite;
  padding-left: 30px;
}
@keyframes tickerMove { to { transform: translateX(-50%); } }
.ticker-wrap:hover .ticker-track { animation-play-state: paused; }

.tick-item {
  color: #b9c7ef;
  font-family: var(--mono);
  font-size: 13.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.tick-item i { color: var(--red); font-size: 12px; }
.tick-item b { color: #fff; font-weight: 700; }
.tick-mult { color: var(--yellow) !important; }
.tick-amt { color: #7ef0b2 !important; }

/* ---------- Meta bar + TOC (flight plan) ---------- */
.meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
  border: 1.5px dashed rgba(36,80,200,.35);
  background: rgba(255,255,255,.65);
  padding: 12px 18px;
  margin-bottom: 26px;
}
.meta-bar i { color: var(--blue); margin-right: 6px; }
.meta-bar strong { color: var(--navy); }

.toc {
  background: #fff;
  border: 2px solid var(--navy);
  box-shadow: var(--hard);
  padding: 26px 30px;
  position: relative;
}
.toc::before {
  content: 'FLIGHT PLAN';
  position: absolute;
  top: -12px;
  left: 22px;
  background: var(--navy);
  color: var(--yellow);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .22em;
  padding: 3px 12px;
}
.toc h2 { font-size: 19px; margin-bottom: 14px; }
.toc h2 i { color: var(--red); margin-right: 8px; }
.toc ol {
  list-style: none;
  counter-reset: toc;
  columns: 2;
  column-gap: 40px;
}
@media (max-width: 640px) { .toc ol { columns: 1; } }
.toc li {
  counter-increment: toc;
  break-inside: avoid;
  border-bottom: 1px dashed rgba(36,80,200,.3);
}
.toc li a {
  display: flex;
  align-items: baseline;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  padding: 8px 2px;
  transition: color .15s, transform .15s;
}
.toc li a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
  flex-shrink: 0;
}
.toc li a:hover { color: var(--blue); transform: translateX(4px); }

/* ---------- Two-column layout ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
  margin-top: 10px;
}
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- Images: photo evidence ---------- */
.press-img {
  display: block;
  position: relative;
  cursor: zoom-in;
  border: 2.5px solid var(--navy);
  background: #fff;
  padding: 8px;
  box-shadow: var(--hard);
  transition: transform .15s, box-shadow .15s;
}
.on-night .press-img { border-color: rgba(255,255,255,.5); background: var(--navy-deep); box-shadow: 7px 7px 0 rgba(0,0,0,.35); }
.press-img:hover { transform: translate(3px,3px); box-shadow: 3px 3px 0 rgba(20,42,99,.16); }
.press-img::after {
  content: '\f00e  ZOOM';
  font-family: 'Font Awesome 6 Free', var(--mono);
  font-weight: 900;
  font-size: 10px;
  letter-spacing: .1em;
  position: absolute;
  right: 8px; top: 8px;
  background: var(--yellow);
  color: var(--navy);
  padding: 3px 8px;
  opacity: 0;
  transition: opacity .15s;
}
.press-img:hover::after { opacity: 1; }

.img-caption {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .02em;
  color: var(--muted);
  margin-top: 10px;
  padding-left: 14px;
  position: relative;
}
.img-caption::before {
  content: '';
  position: absolute;
  left: 0; top: 5px; bottom: 5px;
  width: 4px;
  background: var(--red);
}
.on-night .img-caption { color: #9fb3e8; }

/* ---------- Spec pills → data readout ---------- */
.pill-frame {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border: 2px solid var(--navy);
  background: #fff;
  font-family: var(--mono);
  font-size: 13px;
}
.pill-frame span {
  padding: 10px 16px;
  border-right: 1.5px dashed rgba(20,42,99,.35);
  color: var(--muted);
  flex: 1 1 auto;
  text-align: center;
}
.pill-frame span:last-child { border-right: none; }
.pill-frame b { color: var(--red); font-weight: 700; }

/* ---------- Video frame ---------- */
.video-frame {
  position: relative;
  border: 3px solid var(--yellow);
  box-shadow: 10px 10px 0 rgba(0,0,0,.35);
  margin: 26px auto 14px;
  max-width: 840px;
  background: #000;
}
.video-frame::before {
  content: 'REC \25CF  GUN-CAM FOOTAGE // 30 SEC';
  position: absolute;
  top: -14px;
  left: 18px;
  z-index: 2;
  background: var(--navy-ink);
  color: var(--red);
  border: 1.5px solid var(--yellow);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  padding: 3px 10px;
}
.video-frame video { width: 100%; display: block; }

/* ---------- Mini-game: flight simulator console ---------- */
.mg-shell {
  border: 3px solid var(--navy);
  box-shadow: var(--hard-navy);
  background: var(--navy-deep);
  margin-top: 28px;
  position: relative;
}
.mg-shell::before {
  content: 'TRAINING SIMULATOR // NO STAKES';
  position: absolute;
  top: -14px;
  left: 20px;
  z-index: 5;
  background: var(--red);
  color: #fff;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  padding: 3px 12px;
  border: 1.5px solid var(--navy);
}

.mg-stage {
  position: relative;
  height: 320px;
  overflow: hidden;
  background:
    linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 55%, var(--blue) 100%);
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 55%, var(--blue) 100%);
  background-size: 34px 34px, 34px 34px, 100% 100%;
  transition: background-color .3s;
}
.mg-stage.mg-crash { animation: shake .5s; }
@keyframes shake {
  0%,100% { transform: none; }
  20% { transform: translate(-6px,3px); }
  40% { transform: translate(5px,-4px); }
  60% { transform: translate(-4px,-2px); }
  80% { transform: translate(3px,2px); }
}

.mg-mult {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 700;
  color: var(--yellow);
  text-shadow: 3px 3px 0 rgba(0,0,0,.45);
  z-index: 4;
}
.mg-stage.mg-crash .mg-mult { color: var(--red); }
.mg-stage.mg-win .mg-mult { color: #7ef0b2; }

.mg-cloud {
  position: absolute;
  background: rgba(255,255,255,.1);
  border: 1.5px dashed rgba(255,255,255,.25);
  animation: mgCloud linear infinite;
}
@keyframes mgCloud {
  from { transform: translateX(680px); }
  to { transform: translateX(-220px); }
}

.mg-plane {
  position: absolute;
  left: 6%;
  bottom: 14%;
  width: 92px;
  z-index: 3;
  transition: left .1s linear, bottom .1s linear;
  filter: drop-shadow(0 8px 10px rgba(0,0,0,.4));
}
.mg-plane img { width: 100%; }
.mg-plane-fly { animation: bob 1s ease-in-out infinite; }
@keyframes bob { 50% { margin-bottom: 8px; } }
.mg-plane-crash { animation: dive .8s ease-in forwards; }
@keyframes dive {
  to { transform: translateY(300px) rotate(110deg); opacity: 0; }
}
.mg-plane-land { animation: landOk .8s ease-out forwards; }
@keyframes landOk {
  to { left: 78% !important; bottom: 7% !important; transform: rotate(3deg); }
}

.mg-deck {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  height: 26px;
  background: repeating-linear-gradient(-45deg,
    var(--yellow) 0, var(--yellow) 14px,
    var(--navy-ink) 14px, var(--navy-ink) 28px);
  border-top: 3px solid var(--yellow);
}

.mg-msg {
  min-height: 34px;
  padding: 8px 18px 0;
  text-align: center;
  font-family: var(--mono);
  font-size: 14px;
  color: #cfdaf8;
}
.mg-msg-bad { color: #ff8d82; }
.mg-msg-good { color: #7ef0b2; }
.mg-msg i { margin-right: 6px; }

.mg-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px 20px;
  flex-wrap: wrap;
}
.mg-stats {
  display: flex;
  gap: 26px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #9fb3e8;
}
.mg-stats b {
  display: block;
  font-size: 20px;
  color: var(--yellow);
  letter-spacing: 0;
  margin-top: 3px;
}

.mg-btn {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .1em;
  background: var(--yellow);
  color: var(--navy);
  border: 2.5px solid #fff;
  box-shadow: 5px 5px 0 rgba(0,0,0,.4);
  padding: 14px 34px;
  cursor: pointer;
  transition: transform .1s, box-shadow .1s, background .15s;
}
.mg-btn:hover { transform: translate(2px,2px); box-shadow: 3px 3px 0 rgba(0,0,0,.4); }
.mg-btn-live { background: var(--red); color: #fff; animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 5px 5px 0 rgba(232,57,43,.55); } }

.mg-confetti {
  position: absolute;
  width: 9px; height: 9px;
  top: 45%;
  z-index: 6;
  animation: confettiFly 1.6s ease-out forwards;
  pointer-events: none;
}
@keyframes confettiFly {
  to { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); opacity: 0; }
}

.mg-note {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 16px;
}
.mg-note i { color: var(--blue); margin-right: 6px; }

/* ---------- Steps: checklist ---------- */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 20px 0;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 16px 18px 16px 74px;
  background: #fff;
  border: 2px solid var(--navy);
  margin-bottom: -2px;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 56px;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 18px;
  color: var(--yellow);
  background: var(--navy);
  border-right: 2px solid var(--navy);
}
.steps li strong { color: var(--red); }
.steps li:hover { background: var(--paper-2); }

/* ---------- Promo box: boarding pass ---------- */
.promo-box {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: stretch;
  border: 2.5px solid var(--navy);
  background: var(--yellow);
  box-shadow: var(--hard-navy);
  margin-top: 30px;
  position: relative;
  overflow: hidden;
}
@media (max-width: 680px) { .promo-box { grid-template-columns: 1fr; } }
.promo-box > div:first-child { padding: 26px 30px; }
.promo-box h3 { color: var(--navy); font-size: 20px; }
.promo-box h3 i { color: var(--red); margin-right: 8px; }
.promo-box p { color: #4a3a05; font-size: 15.5px; margin-bottom: 0; }

.promo-code {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 22px 38px;
  background: var(--navy);
  color: var(--yellow);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 30px;
  letter-spacing: .14em;
  border-left: 3px dashed rgba(20,42,99,.65);
  position: relative;
}
@media (max-width: 680px) { .promo-code { border-left: none; border-top: 3px dashed rgba(20,42,99,.65); } }
.promo-code::before, .promo-code::after {
  /* boarding-pass punch holes */
  content: '';
  position: absolute;
  left: -12px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--paper);
  border: 2.5px solid var(--navy);
}
.promo-code::before { top: -12px; }
.promo-code::after { bottom: -12px; }
@media (max-width: 680px) {
  .promo-code::before { top: -12px; left: -12px; }
  .promo-code::after { top: -12px; left: auto; right: -12px; bottom: auto; }
}
.promo-code small {
  font-size: 10px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: #9fb3e8;
}

/* ---------- Cards grid: index cards ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 30px;
}
@media (max-width: 980px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards-grid { grid-template-columns: 1fr; } }

.mini-card {
  background: #fff;
  border: 2px solid var(--navy);
  padding: 26px 24px 24px;
  position: relative;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 5px 5px 0 rgba(20,42,99,.12);
  counter-increment: card;
}
.mini-card:hover { transform: translate(-3px,-3px); box-shadow: 8px 8px 0 var(--yellow), 8px 8px 0 2px var(--navy); }
.mini-card::before {
  content: 'REF ' counter(card, decimal-leading-zero);
  position: absolute;
  top: 10px; right: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .16em;
  color: rgba(36,80,200,.45);
}
.cards-grid { counter-reset: card; }
.mini-card .icon {
  width: 50px; height: 50px;
  display: grid;
  place-items: center;
  font-size: 21px;
  color: var(--navy);
  background: var(--yellow);
  border: 2px solid var(--navy);
  margin-bottom: 16px;
}
.mini-card h3 { font-size: 18px; }
.mini-card p { font-size: 15px; color: var(--muted); margin-bottom: 0; }

/* ---------- Country chips: destination tags ---------- */
.country-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0; }
.chip {
  font-family: var(--mono);
  font-size: 13.5px;
  font-weight: 700;
  background: #fff;
  border: 1.5px solid var(--navy);
  padding: 8px 14px;
  color: var(--navy);
  position: relative;
  transition: transform .12s, background .15s;
}
.chip:hover { background: var(--yellow); transform: translateY(-2px); }

/* ---------- Pros list: inspection checklist ---------- */
.pros-list { list-style: none; margin: 18px 0; }
.pros-list li {
  position: relative;
  padding: 10px 0 10px 40px;
  border-bottom: 1px dashed rgba(36,80,200,.3);
}
.pros-list li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 11px;
  width: 24px; height: 24px;
  font-size: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--red);
  border: 1.5px solid var(--navy);
}
.pros-list li strong { color: var(--navy); }

/* ---------- Spec table: tech data sheet ---------- */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  background: #fff;
  border: 2.5px solid var(--navy);
  box-shadow: var(--hard);
  font-size: 15.5px;
}
.spec-table th, .spec-table td { padding: 12px 18px; text-align: left; }
.spec-table thead th {
  background: var(--navy);
  color: var(--yellow);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.spec-table tbody tr { border-bottom: 1px dashed rgba(36,80,200,.3); }
.spec-table tbody tr:nth-child(even) { background: var(--paper-2); }
.spec-table tbody tr:hover { background: #fff6d8; }
.spec-table td:first-child {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  width: 38%;
}
.spec-table td:last-child { font-weight: 700; color: var(--navy); }

/* ---------- Testimonials: radio transcripts ---------- */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  margin-top: 30px;
}
@media (max-width: 820px) { .testi-grid { grid-template-columns: 1fr; } }

.testi-card {
  background: #fff;
  border: 2px solid var(--navy);
  border-left: 8px solid var(--red);
  padding: 22px 24px;
  position: relative;
  box-shadow: 5px 5px 0 rgba(20,42,99,.12);
}
.testi-card::before {
  content: 'RADIO LOG';
  position: absolute;
  top: -10px;
  right: 14px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .22em;
  background: var(--navy);
  color: var(--yellow);
  padding: 2px 9px;
}
.testi-head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.testi-ava {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  font-size: 16px;
  border: 2px solid var(--navy);
  flex-shrink: 0;
}
.testi-name { font-weight: 900; color: var(--navy); }
.testi-loc { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.testi-stars { color: var(--yellow-deep); letter-spacing: 3px; font-size: 14px; margin-bottom: 8px; }
.testi-card p { font-size: 15px; color: var(--ink); margin: 0; }
.testi-card p::before { content: '\201C'; color: var(--red); font-weight: 900; }
.testi-card p::after { content: '\201D'; color: var(--red); font-weight: 900; }

/* ---------- FAQ: comms panel ---------- */
.faq-item {
  background: #fff;
  border: 2px solid var(--navy);
  margin-bottom: -2px;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  font-weight: 900;
  font-size: 16.5px;
  color: var(--navy);
  transition: background .15s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: 'Q';
  flex-shrink: 0;
  width: 30px; height: 30px;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 14px;
  background: var(--yellow);
  color: var(--navy);
  border: 2px solid var(--navy);
}
.faq-item summary::after {
  content: '+';
  margin-left: auto;
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--red);
  transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { background: var(--paper-2); }
.faq-item[open] summary { background: var(--navy); color: #fff; }
.faq-item[open] summary::before { background: var(--red); color: #fff; border-color: #fff; }
.faq-body {
  padding: 18px 22px 20px 68px;
  color: var(--muted);
  font-size: 15.5px;
  border-top: 2px dashed rgba(36,80,200,.3);
  position: relative;
}
.faq-body::before {
  content: 'A';
  position: absolute;
  left: 22px;
  top: 18px;
  width: 30px; height: 30px;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 14px;
  background: var(--navy);
  color: var(--yellow);
  border: 2px solid var(--navy);
}
@media (max-width: 560px) {
  .faq-body { padding-left: 22px; padding-top: 60px; }
}

/* ---------- Final CTA band ---------- */
.cta-band {
  position: relative;
  background: var(--navy);
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 34px 34px;
  border: 3px solid var(--navy-ink);
  box-shadow: 10px 10px 0 var(--yellow), 10px 10px 0 3px var(--navy);
  padding: clamp(34px, 5vw, 60px);
  text-align: center;
  color: #fff;
}
.cta-band::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 10px;
  background: repeating-linear-gradient(-45deg,
    var(--yellow) 0, var(--yellow) 14px,
    transparent 14px, transparent 28px);
}
.cta-band h2 { color: #fff; margin-left: auto; margin-right: auto; }
.cta-band p { color: #ccd8fb; max-width: 640px; margin: 0 auto 26px; }
.cta-band strong { color: var(--yellow); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-ink);
  color: #9fb3e8;
  padding: 56px 0 0;
  border-top: 4px solid var(--yellow);
  font-size: 15px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo img { margin-bottom: 14px; }
.footer-logo p { color: #8296cc; font-size: 14px; margin: 0; }
.site-footer h4 {
  color: var(--yellow);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.site-footer a {
  display: block;
  color: #b9c7ef;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 13.5px;
  padding: 4px 0;
  transition: color .15s, transform .15s;
}
.site-footer a::before { content: '\2192  '; color: var(--red); }
.site-footer a:hover { color: var(--yellow); transform: translateX(4px); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1.5px dashed rgba(255,255,255,.2);
  padding: 20px 0 26px;
  font-family: var(--mono);
  font-size: 12px;
  color: #7b8fc4;
}
.age-badge {
  display: inline-grid;
  place-items: center;
  width: 38px; height: 38px;
  background: var(--red);
  color: #fff;
  font-weight: 900;
  font-size: 13px;
  border: 2px solid #fff;
  flex-shrink: 0;
}

/* ---------- Demo window ---------- */
.demo-window {
  display: block;
  position: relative;
  max-width: 780px;
  margin: 28px auto 14px;
  border: 3px solid var(--navy);
  box-shadow: 10px 10px 0 var(--yellow), 10px 10px 0 3px var(--navy);
  overflow: hidden;
  text-decoration: none;
}
.demo-window img { width: 100%; transition: transform .4s ease; }
.demo-window:hover img { transform: scale(1.04); }
.demo-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: rgba(12,28,71,.55);
  transition: background .25s;
}
.demo-window:hover .demo-overlay { background: rgba(12,28,71,.35); }
.demo-title {
  color: #fff;
  font-weight: 900;
  font-size: clamp(19px, 3vw, 27px);
  text-shadow: 2px 2px 0 rgba(0,0,0,.5);
  font-family: var(--mono);
  letter-spacing: .04em;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(10,22,54,.94);
  display: none;
  place-items: center;
  padding: 30px;
  cursor: zoom-out;
}
.lightbox.open { display: grid; }
.lightbox img {
  max-width: 92vw;
  max-height: 84vh;
  border: 3px solid var(--yellow);
  box-shadow: 12px 12px 0 rgba(0,0,0,.5);
}
.lb-hint {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  color: #9fb3e8;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .1em;
}

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 88px;
  z-index: 90;
  width: 50px; height: 50px;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: var(--yellow);
  border: 2px solid var(--yellow);
  box-shadow: 4px 4px 0 rgba(0,0,0,.3);
  font-size: 17px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity .25s, transform .25s;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { background: var(--blue); }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  z-index: 95;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--navy-ink);
  border-top: 3px solid var(--yellow);
  padding: 10px 16px;
  transform: translateY(110%);
  transition: transform .3s;
}
.sticky-cta.show { transform: none; }
@media (max-width: 760px) { .sticky-cta { display: flex; } }
.sc-text {
  color: #b9c7ef;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.45;
}
.sc-text b { display: block; color: #fff; font-size: 13px; }
.sticky-cta .btn { padding: 11px 20px; font-size: 14px; box-shadow: 4px 4px 0 rgba(0,0,0,.4); }

/* ---------- Section footer rule ---------- */
.sec-rule {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 44px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .22em;
  color: rgba(36,80,200,.5);
  text-transform: uppercase;
}
.sec-rule::before, .sec-rule::after {
  content: '';
  flex: 1;
  border-top: 1.5px dashed rgba(36,80,200,.3);
}
.on-night .sec-rule { color: rgba(255,255,255,.35); }
.on-night .sec-rule::before, .on-night .sec-rule::after { border-color: rgba(255,255,255,.18); }
