/* AviaFauna: home and content pages */
.wrap { max-width: 1120px; margin: 0 auto; padding: 64px 22px 0; }
.wrap h2, .page h1 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; }
.wrap h2 { font-size: 32px; margin: 0 0 22px; }
.muted { color: var(--muted); }

/* ---------- home hero ---------- */
.home { background: #0d0c0b; }
.home main, .home footer { background: var(--bg); }
.home footer { margin-top: 0; padding-top: 48px; }
.hero { position: relative; height: 100vh; min-height: 640px; overflow: hidden; background: #0d0c0b; color: #f6efe4; }
.hero #leaflet { position: absolute; inset: 0; background: #0d0c0b; }
.hero .leaflet-control-attribution { background: rgba(0, 0, 0, .45) !important; color: #aaa; }
.hero .leaflet-control-attribution a { color: #ccc; }
.hero-shade { position: absolute; inset: 0; z-index: 450; pointer-events: none;
  background: linear-gradient(90deg, rgba(13,12,11,.92) 0%, rgba(13,12,11,.65) 38%, rgba(13,12,11,0) 70%),
              linear-gradient(0deg, rgba(13,12,11,.8) 0%, rgba(13,12,11,0) 30%); }
.hero-text { position: absolute; z-index: 500; left: max(22px, calc(50% - 560px)); top: 50%; transform: translateY(-50%); max-width: 560px; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: 12px; font-weight: 600; color: #f0a072; margin: 0 0 14px; }
.hero h1 { font-family: var(--serif); font-size: clamp(52px, 8vw, 96px); line-height: .95; margin: 0 0 22px; font-weight: 600; letter-spacing: -.02em; }
.slogan { display: grid; gap: 4px; font-size: clamp(18px, 2.2vw, 24px); font-weight: 500; margin: 0 0 20px; }
.slogan span:nth-child(2) { color: #f7c785; }
.slogan span:nth-child(3) { color: #f0a072; }
.hero-lede { color: #c9c0b3; font-size: 16px; margin: 0 0 28px; max-width: 480px; }
.cta { display: flex; gap: 10px; flex-wrap: wrap; }
.btn { display: inline-block; text-decoration: none; font-weight: 600; font-size: 15px; padding: 13px 22px; border-radius: 999px; }
.btn.primary { background: #c2412b; color: #fff; box-shadow: 0 8px 24px rgba(194, 65, 43, .35); }
.btn.ghost { border: 1px solid rgba(246, 239, 228, .35); color: #f6efe4; }
.btn.dark { background: var(--ink); color: var(--surface-solid); }
.hero-caption { position: absolute; z-index: 500; right: 22px; bottom: 28px; margin: 0; font-size: 12px; color: #9d9488; }
.home .top.floating .brand, .home .top.floating nav, .home .top.floating .lang, .home .top.floating .signin { background: rgba(255,253,249,.9); }

.numbers { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 1120px; margin: 0 auto; padding: 36px 22px 0; gap: 18px; }
.numbers div { border-top: 2px solid var(--ink); padding-top: 12px; }
.numbers b { display: block; font-family: var(--serif); font-size: 40px; font-weight: 600; line-height: 1.1; }
.numbers span { color: var(--muted); font-size: 14px; }

.modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.module { position: relative; display: block; text-decoration: none; color: var(--ink); background: var(--surface-solid); border: 1px solid var(--line); border-radius: 18px; padding: 22px 22px 20px; transition: transform .15s, box-shadow .15s; }
.module:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.module h3 { margin: 10px 0 6px; font-size: 19px; }
.module p { margin: 0; color: var(--muted); font-size: 14px; }
.badge { display: inline-block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; padding: 3px 9px; border-radius: 999px; }
.badge.live { background: #dff1e6; color: #1d6b40; }
.badge.beta { background: #fff0d6; color: #8a5300; }
.badge.soon { background: #f3e4f7; color: #6b2f80; }
.badge.planned { background: #e9e6e1; color: #5b554c; }

.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tier { background: var(--surface-solid); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.tier h3 { margin: 0 0 10px; font-family: var(--serif); font-size: 22px; font-weight: 600; }
.tier ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.tier-note { margin: 14px 0 0; font-size: 12px; color: var(--muted); }

.sources { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.sources span { border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-weight: 500; font-size: 14px; background: var(--surface-solid); }

/* ---------- content pages ---------- */
.page { max-width: 880px; margin: 0 auto; padding: 56px 22px 0; }
.page h1 { font-size: clamp(36px, 5vw, 52px); line-height: 1.05; margin: 10px 0 16px; }
.page .lede { font-size: 18px; color: var(--muted); max-width: 680px; margin: 0 0 8px; }
.page h2 { font-family: var(--serif); font-weight: 600; font-size: 26px; margin: 44px 0 14px; }
.page h3 { font-size: 17px; margin: 0 0 6px; }
.page p, .page li { font-size: 16px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.box { background: var(--surface-solid); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.box p { margin: 0; color: var(--muted); font-size: 15px; }
.status { display: flex; align-items: center; gap: 10px; }
table.plain { width: 100%; border-collapse: collapse; font-size: 14px; }
table.plain th, table.plain td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.plain th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.refs li { margin-bottom: 8px; font-size: 14px; }

/* ---------- airports ---------- */
.ap-stage { position: relative; height: calc(100vh - 67px); min-height: 560px; }
.ap-stage #apmap { position: absolute; inset: 0; }
.ap-panel { position: absolute; z-index: 500; top: 16px; left: 16px; bottom: 16px; width: 380px; overflow-y: auto;
  background: var(--surface); backdrop-filter: blur(14px); border-radius: 18px; box-shadow: var(--shadow); padding: 20px; }
.ap-panel h1 { font-family: var(--serif); font-size: 26px; margin: 0 0 6px; font-weight: 600; }
.ap-search { width: 100%; font: inherit; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-solid); color: var(--ink); margin: 12px 0 8px; }
.ap-list { list-style: none; padding: 0; margin: 0; max-height: 260px; overflow-y: auto; }
.ap-list li { padding: 11px 6px; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 14px; display: flex; justify-content: space-between; gap: 8px; }
.ap-list li:hover { background: rgba(0,0,0,.04); }
.ap-list small { color: var(--muted); }
.ap-detail h2 { font-family: var(--serif); font-size: 24px; margin: 4px 0 2px; font-weight: 600; }
.ap-codes { color: var(--muted); font-size: 13px; margin: 0 0 12px; }
.ap-back { border: 0; background: none; color: var(--accent); font: inherit; font-size: 13px; padding: 0; cursor: pointer; }
.zones { display: flex; gap: 12px; font-size: 12px; color: var(--muted); margin: 8px 0 14px; }
.zones i { display: inline-block; width: 14px; height: 0; border-top: 2px dashed var(--c); vertical-align: middle; margin-right: 5px; }
.sp-row { margin: 0 0 12px; }
.sp-row .sp-head { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; }
.sp-row .sp-now { font-weight: 500; color: var(--muted); }
.sp-row svg { width: 100%; height: 34px; display: block; }
.months-mini { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); text-transform: uppercase; }
.disclaimer { font-size: 12px; color: var(--muted); border-left: 2px solid var(--accent); padding-left: 10px; margin-top: 16px; }

@media (max-width: 900px) {
  .hero #leaflet { position: absolute; inset: 0; height: auto; }
  .numbers { grid-template-columns: repeat(2, 1fr); }
  .modules, .tiers, .grid2 { grid-template-columns: 1fr; }
  .hero-text { top: auto; bottom: 64px; transform: none; right: 22px; }
  .hero-shade { background: linear-gradient(0deg, rgba(13,12,11,.95) 0%, rgba(13,12,11,.7) 50%, rgba(13,12,11,.2) 100%); }
  .hero-caption { display: none; }
  .ap-stage { height: auto; display: flex; flex-direction: column; }
  .ap-stage #apmap { position: relative; height: 55vh; }
  .ap-panel { position: static; width: auto; border-radius: 0; box-shadow: none; background: var(--surface-solid); }
}

@media (max-width: 900px) { .btn { padding: 14px 22px; } }
