/* ==========================================================================
   Black Faith Network — Redesign prototype
   Design tokens are taken from the live site (blackfaithnetwork.com):
   brand red #E00D2D, near-black #141414 page, Aleo (display) + Cabin (body).
   ========================================================================== */

:root {
  --bfn-red: #e00d2d;
  --bfn-red-dark: #b80a24;
  --bfn-red-soft: rgba(224, 13, 45, 0.14);
  --bfn-green: #1f8a3c;           /* from the BFN logo's pan-African stripe */
  --bg: #141414;
  --bg-2: #1b1b1b;
  --bg-3: #232323;
  --surface: #1e1e1e;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f4f2ef;
  --text-2: #b9b5ae;
  --text-3: #8a867f;
  --success: #2fb36b;
  --warning: #f2b233;
  --error: #ff5a6e;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 12px 34px rgba(0, 0, 0, 0.45);
  --font-display: "Aleo", Georgia, serif;
  --font-body: "Cabin", "Segoe UI", system-ui, sans-serif;
  --container: 1240px;
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--bfn-red); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--bfn-red); color: #fff; padding: 8px 14px; z-index: 200; border-radius: 6px; }
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 24px;
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  letter-spacing: .04em; text-transform: uppercase;
  border-radius: 6px; border: 1px solid transparent; cursor: pointer;
  transition: background .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--bfn-red); color: #fff; box-shadow: 0 6px 20px rgba(224, 13, 45, .28); }
.btn-primary:hover { background: var(--bfn-red-dark); box-shadow: 0 8px 26px rgba(224, 13, 45, .4); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--text); background: rgba(255,255,255,.05); }
.btn-ghost { background: rgba(255,255,255,.06); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-lg { min-height: 54px; padding: 0 32px; font-size: 16px; }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 13px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------- Live TV announcement bar (preserved from live site) ---------- */
.live-bar {
  background: var(--bfn-red); color: #fff; text-align: center;
  font-family: var(--font-display); font-size: 15px; position: relative;
}
.live-bar a { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 48px; }
.live-bar a:hover { text-decoration: underline; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.7);} 70% { box-shadow: 0 0 0 8px rgba(255,255,255,0);} 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0);} }
.live-bar-close {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; color: #fff; font-size: 22px; line-height: 1; width: 36px; height: 36px; cursor: pointer; border-radius: 50%;
}
.live-bar-close:hover { background: rgba(0,0,0,.15); }
.live-bar.is-hidden { display: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .98);
  color: #141414;
  border-bottom: 1px solid #e7e4e0;
  transition: box-shadow .2s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(0,0,0,.25); }
.header-inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand-mark { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark img { width: 42px; height: 42px; object-fit: contain; }
.brand-badge { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--bfn-red); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: .02em; flex-shrink: 0; }
.brand-mark .brand-text { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: .02em; }
.brand-mark .brand-text em { font-style: normal; color: var(--bfn-red); }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  font-family: var(--font-display); font-size: 14px; letter-spacing: .06em; text-transform: uppercase;
  padding: 8px 12px; border-radius: 6px; color: #2a2a2a; position: relative;
}
.main-nav a:hover { background: #f2efeb; color: #000; }
.main-nav a.is-active { color: var(--bfn-red); }
.main-nav a.is-active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--bfn-red); border-radius: 2px; }
.nav-badge { display: inline-block; margin-left: 6px; font-size: 10px; letter-spacing: .04em; padding: 1px 6px; border-radius: 10px; background: var(--bfn-red); color: #fff; vertical-align: 2px; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.header-actions .link-plain {
  font-family: var(--font-display); font-size: 14px; letter-spacing: .06em; text-transform: uppercase; padding: 8px 12px; border-radius: 6px; color: #2a2a2a;
}
.header-actions .link-plain:hover { background: #f2efeb; }
.header-actions .link-strong { font-weight: 700; color: #111; }
.search-toggle { background: none; border: 0; cursor: pointer; padding: 8px; border-radius: 6px; color: #2a2a2a; display: inline-flex; }
.search-toggle:hover { background: #f2efeb; }
.menu-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; border-radius: 8px; cursor: pointer; color: #141414; align-items: center; justify-content: center; }
.menu-toggle:hover { background: #f2efeb; }
.menu-toggle svg { width: 26px; height: 26px; }

.search-panel { background: #fff; border-top: 1px solid #e7e4e0; display: none; }
.search-panel.is-open { display: block; }
.search-panel form { display: flex; gap: 10px; padding: 14px 0; }
.search-panel input { flex: 1; min-height: 46px; border: 1px solid #d9d5d0; border-radius: 6px; padding: 0 14px; color: #141414; background: #fff; }
.search-hint { color: #6d6862; font-size: 13px; padding-bottom: 12px; margin: 0; }

/* Mobile drawer */
.mobile-drawer {
  position: fixed; inset: 0; z-index: 150; display: none;
}
.mobile-drawer.is-open { display: block; }
.mobile-drawer .scrim { position: absolute; inset: 0; background: rgba(0,0,0,.6); animation: fade .2s; }
.mobile-drawer .panel {
  position: absolute; right: 0; top: 0; bottom: 0; width: min(86vw, 340px);
  background: var(--bg-2); padding: 20px; display: flex; flex-direction: column; gap: 6px;
  animation: slideIn .25s var(--ease); overflow-y: auto;
}
.mobile-drawer .panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.mobile-drawer .panel a.nav-item { padding: 14px 12px; border-radius: 8px; font-family: var(--font-display); letter-spacing: .05em; text-transform: uppercase; font-size: 15px; border-bottom: 1px solid var(--line); }
.mobile-drawer .panel a.nav-item:hover { background: rgba(255,255,255,.05); }
.mobile-drawer .panel .btn { margin-top: 10px; }
.icon-btn { background: rgba(255,255,255,.06); border: 0; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 22px; line-height: 1; }
@keyframes slideIn { from { transform: translateX(100%);} to { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Hero (preserved content, refined layout) ---------- */
.hero { position: relative; min-height: min(86vh, 760px); display: flex; align-items: center; overflow: hidden; background: #2a2622; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: 70% center; transform: scale(1.03); }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10,10,10,.92) 0%, rgba(10,10,10,.72) 38%, rgba(10,10,10,.12) 70%, rgba(10,10,10,0) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(20,20,20,0) 28%);
}
.hero-content { position: relative; z-index: 2; padding: 72px 0 96px; max-width: 600px; }
.hero-logo { width: min(440px, 100%); margin-bottom: 22px; filter: drop-shadow(0 4px 20px rgba(0,0,0,.4)); }
.hero-logo-fallback { font-family: var(--font-display); font-size: clamp(36px, 6vw, 58px); font-weight: 700; line-height: 1; margin-bottom: 22px; }
.hero-logo-fallback span { color: var(--bfn-red); display: block; }
.eyebrow { display: inline-block; font-family: var(--font-display); font-style: italic; font-size: 20px; color: #fff; margin-bottom: 10px; }
.hero h1.hero-title { font-size: clamp(18px, 2vw, 21px); font-family: var(--font-body); font-weight: 400; line-height: 1.6; color: #ece9e4; margin-bottom: 28px; }
.hero-cta { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; margin-bottom: 14px; }
.price-note { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: #fff; margin: 0; }
.price-note a { display: inline-block; color: #ff6b80; font-weight: 400; margin-top: 2px; }
.price-note a:hover { text-decoration: underline; }
.hero-sub { color: var(--text-2); max-width: 520px; font-size: 15px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line-strong); }
.hero-platforms { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { font-size: 12px; letter-spacing: .04em; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid var(--line); color: var(--text-2); }

/* ---------- Section scaffolding ---------- */
.section { padding: 88px 0; position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 400; }
.section-head p { color: var(--text-2); margin: 0; }
.section-kicker { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-body); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 12px; color: #ff6b80; margin-bottom: 12px; }
.section-kicker::before { content: ""; width: 22px; height: 2px; background: var(--bfn-red); }
.row-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 0 0 18px; }
.row-head h3 { font-size: 22px; margin: 0; display: flex; align-items: center; gap: 10px; }
.row-head .row-link { color: var(--text-2); font-size: 14px; white-space: nowrap; }
.row-head .row-link:hover { color: #fff; }

/* ---------- Category tiles (existing "Free access" grid) ---------- */
.utility-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-bottom: 36px; }
.utility-tile {
  display: flex; align-items: center; gap: 18px; padding: 20px 22px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #2a2a2a, #1f1f1f); border: 1px solid var(--line);
  transition: transform .25s var(--ease), border-color .25s, background .25s;
}
.utility-tile:hover { transform: translateY(-3px); border-color: rgba(224,13,45,.6); }
.utility-tile .ut-icon { width: 58px; height: 58px; border-radius: 14px; background: var(--bfn-red-soft); color: #ff6b80; display: grid; place-items: center; flex-shrink: 0; }
.utility-tile .ut-icon svg { width: 30px; height: 30px; }
.utility-tile h3 { font-family: var(--font-body); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 22px; margin: 0; }
.utility-tile p { margin: 0; color: var(--text-2); font-size: 14px; }
.utility-tile .ut-arrow { margin-left: auto; color: var(--text-3); transition: transform .25s, color .25s; }
.utility-tile:hover .ut-arrow { transform: translateX(4px); color: #fff; }

.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.media-card {
  position: relative; display: block; border-radius: var(--radius); overflow: hidden;
  background: var(--bg-3); aspect-ratio: 440 / 234;
  border: 1px solid var(--line);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.media-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.media-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(255,255,255,.3); }
.media-card:hover img { transform: scale(1.05); }
.media-card .play-hint {
  position: absolute; right: 10px; bottom: 10px; width: 38px; height: 38px; border-radius: 50%;
  background: var(--bfn-red); display: grid; place-items: center; opacity: 0; transform: translateY(6px);
  transition: opacity .25s, transform .25s; box-shadow: 0 6px 16px rgba(0,0,0,.4);
}
.media-card .play-hint svg { width: 14px; height: 14px; margin-left: 2px; }
.media-card:hover .play-hint { opacity: 1; transform: none; }
.media-card .live-pill { position: absolute; left: 10px; top: 10px; background: var(--bfn-red); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .1em; padding: 3px 8px; border-radius: 4px; display: flex; align-items: center; gap: 6px; }
.media-card .live-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: pulse 1.6s infinite; }

/* Missing-image fallback (keeps layout intact if CDN or local file is unavailable) */
.img-fallback {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 12px;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(18px, 2vw, 28px); letter-spacing: .04em; text-transform: uppercase;
  background: radial-gradient(circle at 30% 20%, rgba(224,13,45,.35), transparent 60%), linear-gradient(135deg, #2b2b2b, #161616);
  color: #fff;
}
.media-card.is-fallback img, .country-card.is-fallback img { opacity: 0; }

/* Africa channels */
.country-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.country-card { position: relative; display: block; border-radius: 8px; overflow: hidden; aspect-ratio: 440 / 90; background: var(--bg-3); border: 1px solid var(--line); transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; }
.country-card img { width: 100%; height: 100%; object-fit: cover; }
.country-card:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.35); box-shadow: var(--shadow); }
.country-card .img-fallback { font-size: 18px; }
.impact-card { grid-column: span 2; aspect-ratio: auto; min-height: 100%; }

/* ---------- Advertising (new) ---------- */
.advertise { background:
  radial-gradient(900px 400px at 85% 0%, rgba(224,13,45,.16), transparent 60%),
  radial-gradient(700px 360px at 0% 100%, rgba(31,138,60,.10), transparent 60%),
  var(--bg-2);
}
.ad-intro { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; margin-bottom: 40px; }
.ad-intro h2 { font-size: clamp(30px, 3.8vw, 46px); font-weight: 400; margin-bottom: 14px; }
.ad-intro p { color: var(--text-2); margin: 0; }
.ad-intro .ad-intro-actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.disclaimer {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius);
  background: rgba(242, 178, 51, .08); border: 1px solid rgba(242, 178, 51, .35); color: #f6dca4; font-size: 14px; line-height: 1.5;
}
.disclaimer svg { flex-shrink: 0; width: 20px; height: 20px; margin-top: 1px; color: var(--warning); }
.disclaimer strong { color: #fff; }

.ad-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ad-card {
  display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.ad-card:hover { transform: translateY(-5px); border-color: rgba(224,13,45,.55); box-shadow: 0 18px 40px rgba(0,0,0,.45); }
.ad-card.is-featured { border-color: rgba(224,13,45,.5); }
.ad-preview { position: relative; aspect-ratio: 16 / 9; background: #0e0e0e; overflow: hidden; }
.ad-preview img { width: 100%; height: 100%; object-fit: cover; }
.ad-preview .format-tag { position: absolute; right: 12px; top: 12px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 4px 9px; border-radius: 4px; background: rgba(0,0,0,.7); border: 1px solid var(--line-strong); }
.ad-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.ad-body h3 { font-size: 22px; margin-bottom: 8px; }
.ad-body .ad-desc { color: var(--text-2); font-size: 15px; margin-bottom: 16px; }
.spec-list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; font-size: 14px; }
.spec-list li { display: flex; gap: 10px; color: var(--text-2); }
.spec-list li strong { color: var(--text); font-weight: 600; min-width: 74px; }
.ad-price { margin-top: auto; padding-top: 18px; border-top: 1px dashed var(--line-strong); display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.ad-price .amount { font-family: var(--font-display); font-size: 34px; font-weight: 700; color: #fff; }
.ad-price .per { color: var(--text-3); font-size: 14px; }
.ad-price .demo-tag { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--warning); border: 1px solid rgba(242,178,51,.4); padding: 2px 7px; border-radius: 4px; }

.how-it-works { margin-top: 56px; display: grid; grid-template-columns: 300px 1fr; gap: 36px; align-items: start; padding: 32px; border-radius: var(--radius-lg); background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.how-it-works h3 { font-size: 26px; font-weight: 400; }
.how-it-works > div > p { color: var(--text-2); font-size: 14px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.steps li { position: relative; padding: 20px; border-radius: var(--radius); background: var(--bg-3); border: 1px solid var(--line); }
.steps li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--bfn-red); color: #fff; font-family: var(--font-display); font-weight: 700; margin-bottom: 12px; }
.steps h4 { font-family: var(--font-body); font-size: 17px; margin-bottom: 6px; }
.steps p { color: var(--text-2); font-size: 14px; margin: 0; }
.fine-print { color: var(--text-3); font-size: 13px; margin-top: 18px; }

/* Sponsor strip (replaces static "Place Your Ad Here" tiles) */
.sponsor-slot {
  margin-top: 44px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 22px 26px; border-radius: var(--radius-lg); border: 1.5px dashed rgba(224,13,45,.55);
  background: repeating-linear-gradient(135deg, rgba(224,13,45,.05) 0 14px, transparent 14px 28px);
}
.sponsor-slot .label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 4px; }
.sponsor-slot h4 { font-size: 22px; margin: 0 0 4px; }
.sponsor-slot p { margin: 0; color: var(--text-2); font-size: 14px; }

/* ---------- Devices / Download app ---------- */
.devices-wrap { position: relative; max-width: 960px; margin: 0 auto; }
.device-stage { position: relative; aspect-ratio: 16 / 8.5; }
.device-stage::before { content: ""; position: absolute; left: 10%; right: 10%; top: 10%; bottom: 10%; background: radial-gradient(closest-side, rgba(255,255,255,.12), transparent); filter: blur(10px); }
.dev { position: absolute; background-size: cover; background-position: center; background-color: #2a2a2a; box-shadow: 0 24px 50px rgba(0,0,0,.6); }
.dev-tv { left: 18%; top: 0; width: 64%; aspect-ratio: 16/9; border: 10px solid #0b0b0b; border-radius: 6px; }
.dev-laptop { right: 2%; bottom: 8%; width: 40%; aspect-ratio: 16/10; border: 8px solid #0b0b0b; border-bottom-width: 12px; border-radius: 10px 10px 0 0; }
.dev-laptop::after { content: ""; position: absolute; left: -12%; right: -12%; bottom: -26px; height: 14px; background: linear-gradient(#d6d6d6, #9a9a9a); border-radius: 0 0 14px 14px; }
.dev-tablet { left: 2%; bottom: 4%; width: 30%; aspect-ratio: 4/3; border: 9px solid #0b0b0b; border-radius: 16px; }
.dev-phone { left: 27%; bottom: 0; width: 9%; aspect-ratio: 9/18; border: 5px solid #0b0b0b; border-radius: 14px; }
.platform-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 44px; }
.platform { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--bg-3); border: 1px solid var(--line); font-size: 14px; font-weight: 600; transition: border-color .2s, background .2s; }
.platform:hover { border-color: var(--line-strong); background: #2b2b2b; }

/* ---------- Subscribe (preserved) ---------- */
.subscribe { position: relative; overflow: hidden; text-align: center; }
.subscribe-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: blur(10px) brightness(.32); transform: scale(1.1); }
.subscribe .container { position: relative; }
.subscribe h2 { font-size: clamp(34px, 4.4vw, 52px); font-weight: 400; }
.subscribe .lead { color: #e7e3dd; margin-bottom: 30px; }
.plan-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 280px)); justify-content: center; gap: 18px; margin-bottom: 28px; }
.plan { padding: 24px; border-radius: var(--radius-lg); background: rgba(20,20,20,.72); border: 1px solid var(--line-strong); backdrop-filter: blur(6px); text-align: left; }
.plan .plan-name { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); }
.plan .plan-price { font-family: var(--font-display); font-size: 36px; font-weight: 700; }
.plan .plan-price small { font-size: 15px; font-weight: 400; color: var(--text-2); font-family: var(--font-body); }
.plan.is-best { border-color: rgba(224,13,45,.7); }
.subscribe .note { color: var(--text-2); font-size: 14px; margin-top: 14px; }

/* ---------- Footer ---------- */
.site-footer { background: #0f0f0f; border-top: 1px solid var(--line); padding: 56px 0 28px; font-size: 14px; color: var(--text-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
.footer-grid h4 { font-family: var(--font-body); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--text); margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-grid a:hover { color: #fff; }
.footer-brand p { margin-top: 14px; max-width: 320px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid var(--line); }
.footer-bottom select { background: var(--bg-3); border: 1px solid var(--line-strong); border-radius: 6px; padding: 8px 10px; }
.demo-ribbon { font-size: 12px; color: var(--text-3); }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); opacity: 0; z-index: 300; background: #fff; color: #141414; padding: 12px 18px; border-radius: 10px; box-shadow: var(--shadow); font-size: 14px; max-width: calc(100% - 32px); transition: opacity .25s, transform .25s; pointer-events: none; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   Booking page
   ========================================================================== */
.page-hero { padding: 56px 0 36px; background: radial-gradient(800px 300px at 80% 0%, rgba(224,13,45,.18), transparent 60%), var(--bg); border-bottom: 1px solid var(--line); }
.breadcrumb { display: flex; gap: 8px; font-size: 14px; color: var(--text-3); margin-bottom: 16px; flex-wrap: wrap; }
.breadcrumb a:hover { color: #fff; }
.page-hero h1 { font-size: clamp(30px, 4vw, 46px); font-weight: 400; }
.page-hero p { color: var(--text-2); max-width: 700px; }

.progress { display: flex; gap: 0; list-style: none; padding: 0; margin: 28px 0 0; counter-reset: p; max-width: 760px; }
.progress li { flex: 1; position: relative; font-size: 13px; color: var(--text-3); padding-top: 34px; text-align: center; }
.progress li::before { counter-increment: p; content: counter(p); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 26px; height: 26px; border-radius: 50%; background: var(--bg-3); border: 1px solid var(--line-strong); display: grid; place-items: center; font-weight: 700; color: var(--text-2); z-index: 1; }
.progress li::after { content: ""; position: absolute; top: 13px; left: -50%; right: 50%; height: 2px; background: var(--line-strong); }
.progress li:first-child::after { display: none; }
.progress li.is-done, .progress li.is-current { color: var(--text); }
.progress li.is-done::before { background: var(--success); border-color: var(--success); color: #fff; content: "✓"; }
.progress li.is-current::before { background: var(--bfn-red); border-color: var(--bfn-red); color: #fff; }
.progress li.is-done::after, .progress li.is-current::after { background: var(--bfn-red); }

.booking-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; padding: 40px 0 88px; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; margin-bottom: 22px; }
.form-card > header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.form-card > header .num { width: 32px; height: 32px; border-radius: 50%; background: var(--bfn-red-soft); color: #ff6b80; display: grid; place-items: center; font-weight: 700; font-family: var(--font-display); flex-shrink: 0; }
.form-card > header h2 { font-size: 22px; margin: 0; }
.form-card > header p { margin: 0; color: var(--text-3); font-size: 14px; }

.placement-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; border: 0; padding: 0; margin: 0; }
.placement-option { position: relative; }
.placement-option input { position: absolute; opacity: 0; pointer-events: none; }
.placement-option label {
  display: flex; flex-direction: column; gap: 6px; height: 100%; cursor: pointer;
  padding: 16px; border-radius: 12px; border: 1.5px solid var(--line-strong); background: var(--bg-3);
  transition: border-color .2s, background .2s, transform .2s;
}
.placement-option label:hover { border-color: rgba(255,255,255,.4); transform: translateY(-2px); }
.placement-option input:focus-visible + label { outline: 2px solid var(--bfn-red); outline-offset: 3px; }
.placement-option input:checked + label { border-color: var(--bfn-red); background: rgba(224,13,45,.08); box-shadow: 0 0 0 3px rgba(224,13,45,.15); }
.placement-option .po-thumb { aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; margin-bottom: 6px; background: #0e0e0e; }
.placement-option .po-thumb img { width: 100%; height: 100%; object-fit: cover; }
.placement-option .po-name { font-weight: 700; font-size: 15px; }
.placement-option .po-meta { font-size: 13px; color: var(--text-3); }
.placement-option .po-price { font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.placement-option .po-check { position: absolute; top: 10px; right: 10px; width: 24px; height: 24px; border-radius: 50%; background: var(--bfn-red); color: #fff; display: none; place-items: center; font-size: 13px; z-index: 1; }
.placement-option input:checked + label .po-check { display: grid; }

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.span-2 { grid-column: span 2; }
.field label, .field .label { font-weight: 600; font-size: 14px; }
.field .req { color: #ff6b80; }
.field .opt { color: var(--text-3); font-weight: 400; font-size: 13px; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 8px;
  background: #121212; border: 1px solid var(--line-strong); color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: #6c6862; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--bfn-red); box-shadow: 0 0 0 3px rgba(224,13,45,.2); }
.field input[type="date"] { color-scheme: dark; }
.field .hint { font-size: 13px; color: var(--text-3); }
.field .error-msg { font-size: 13px; color: var(--error); display: none; }
.field.has-error input, .field.has-error textarea { border-color: var(--error); }
.field.has-error .error-msg { display: block; }
.char-count { font-size: 12px; color: var(--text-3); text-align: right; }
.group-error { color: var(--error); font-size: 13px; margin-top: 10px; display: none; }
.group-error.is-visible { display: block; }

/* Dropzone */
.dropzone {
  position: relative; border: 1.5px dashed var(--line-strong); border-radius: 12px; padding: 28px; text-align: center;
  background: #121212; transition: border-color .2s, background .2s; cursor: pointer;
}
.dropzone:hover, .dropzone.is-drag { border-color: var(--bfn-red); background: rgba(224,13,45,.05); }
.dropzone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.dropzone .dz-icon { width: 46px; height: 46px; margin: 0 auto 10px; color: #ff6b80; }
.dropzone strong { display: block; margin-bottom: 4px; }
.dropzone span { color: var(--text-3); font-size: 13px; }
.file-preview { display: none; align-items: center; gap: 16px; padding: 14px; border-radius: 12px; background: var(--bg-3); border: 1px solid var(--line-strong); }
.file-preview.is-visible { display: flex; }
.file-preview .fp-media { width: 128px; aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; background: #0e0e0e; flex-shrink: 0; display: grid; place-items: center; color: var(--text-3); }
.file-preview .fp-media img, .file-preview .fp-media video { width: 100%; height: 100%; object-fit: cover; }
.file-preview .fp-info { flex: 1; min-width: 0; }
.file-preview .fp-name { font-weight: 600; word-break: break-all; }
.file-preview .fp-meta { color: var(--text-3); font-size: 13px; }
.file-preview .fp-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.spec-note { margin-top: 12px; font-size: 13px; color: var(--text-3); }

.ack { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 10px; background: #121212; border: 1px solid var(--line-strong); cursor: pointer; }
.ack input { width: 20px; height: 20px; accent-color: var(--bfn-red); margin-top: 2px; flex-shrink: 0; }
.ack.has-error { border-color: var(--error); }

/* Summary sidebar */
.summary { position: sticky; top: calc(var(--header-h) + 20px); }
.summary-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.summary-card .sc-head { padding: 18px 22px; background: linear-gradient(135deg, rgba(224,13,45,.25), rgba(224,13,45,.05)); border-bottom: 1px solid var(--line); }
.summary-card .sc-head h2 { font-size: 20px; margin: 0; }
.summary-card .sc-body { padding: 20px 22px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: 14px; border-bottom: 1px solid var(--line); }
.sum-row span:first-child { color: var(--text-3); }
.sum-row span:last-child { text-align: right; font-weight: 600; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0 4px; }
.sum-total .t-label { font-weight: 700; }
.sum-total .t-amount { font-family: var(--font-display); font-size: 32px; font-weight: 700; }
.sum-formula { font-size: 12px; color: var(--text-3); margin-bottom: 14px; }
.sum-message { font-size: 13px; color: var(--warning); background: rgba(242,178,51,.08); border: 1px solid rgba(242,178,51,.3); padding: 10px 12px; border-radius: 8px; margin: 12px 0; display: none; }
.sum-message.is-visible { display: block; }
.summary .disclaimer { margin-top: 16px; }
.summary-help { margin-top: 16px; font-size: 13px; color: var(--text-3); }

/* Review + success */
.review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.review-item { padding: 12px 0; border-bottom: 1px solid var(--line); }
.review-item.span-2 { grid-column: span 2; }
.review-item dt { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 2px; }
.review-item dd { margin: 0; font-weight: 600; word-break: break-word; }
.review-item dd.muted { font-weight: 400; color: var(--text-2); }
.form-actions { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.form-error-banner { display: none; padding: 14px 16px; border-radius: 10px; background: rgba(255,90,110,.1); border: 1px solid rgba(255,90,110,.45); color: #ffc2ca; margin-bottom: 18px; font-size: 14px; }
.form-error-banner.is-visible { display: block; }

.success-card { text-align: center; padding: 44px 32px; }
.success-icon { width: 72px; height: 72px; border-radius: 50%; background: rgba(47,179,107,.15); color: var(--success); display: grid; place-items: center; margin: 0 auto 18px; }
.success-icon svg { width: 36px; height: 36px; }
.ref-number { display: inline-block; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 20px; letter-spacing: .08em; padding: 10px 18px; border-radius: 8px; background: #121212; border: 1px solid var(--line-strong); margin: 10px 0 18px; }
.success-card .review-grid { text-align: left; margin: 24px 0; }
.success-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

[hidden] { display: none !important; }

/* Mobile live-estimate bar (booking page) */
.mobile-total { display: none; }
@media (max-width: 1080px) {
  .mobile-total {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(24,24,24,.97); border-top: 1px solid var(--line-strong); backdrop-filter: blur(8px);
  }
  .mobile-total .mt-label { font-size: 12px; color: var(--text-3); line-height: 1.2; }
  .mobile-total .mt-amount { font-family: var(--font-display); font-weight: 700; font-size: 22px; line-height: 1.2; }
  body[data-page="book"] .site-footer { padding-bottom: 96px; }
  body.is-complete .mobile-total { display: none; }
}

/* ---------- Admin demo ---------- */
.admin-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
table.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 820px; }
.admin-table th, .admin-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table th { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); background: #191919; }
.admin-table tr:hover td { background: rgba(255,255,255,.02); }
.status { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.status-new { background: rgba(100,160,255,.15); color: #9cc2ff; }
.status-review { background: rgba(242,178,51,.15); color: #f6cf7a; }
.status-approved { background: rgba(47,179,107,.15); color: #7fe0a8; }
.status-declined { background: rgba(255,90,110,.15); color: #ff9aa8; }
.sample-tag { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; background: rgba(255,255,255,.08); color: var(--text-3); padding: 2px 6px; border-radius: 4px; margin-left: 6px; }
.admin-toolbar { display: flex; gap: 12px; justify-content: space-between; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.stat { padding: 16px 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.stat .s-label { font-size: 12px; color: var(--text-3); text-transform: uppercase; letter-spacing: .1em; }
.stat .s-value { font-family: var(--font-display); font-size: 28px; font-weight: 700; }
.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 16px; }
.modal.is-open { display: flex; }
.modal .scrim { position: absolute; inset: 0; background: rgba(0,0,0,.7); }
.modal .modal-panel { position: relative; width: min(680px, 100%); max-height: 90vh; overflow-y: auto; background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); padding: 26px; }
.modal .modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.modal select { background: #121212; border: 1px solid var(--line-strong); border-radius: 8px; padding: 10px 12px; min-height: 44px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .main-nav a { padding: 8px 9px; font-size: 13px; }
  .header-inner { gap: 16px; }
}
@media (max-width: 1080px) {
  .main-nav, .header-actions .hide-md { display: none; }
  .menu-toggle { display: inline-flex; }
  .booking-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .ad-intro { grid-template-columns: 1fr; gap: 24px; }
  .how-it-works { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .country-grid { grid-template-columns: repeat(2, 1fr); }
  .ad-cards { grid-template-columns: 1fr 1fr; }
  .ad-cards .ad-card:last-child { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .placement-options { grid-template-columns: 1fr; }
  .placement-option label { flex-direction: row; align-items: center; gap: 14px; }
  .placement-option .po-thumb { width: 112px; flex-shrink: 0; margin: 0; }
  .stat-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .container { padding: 0 16px; }
  .section { padding: 64px 0; }
  .hero { min-height: auto; }
  .hero-bg { background-position: 72% center; }
  .hero::after { background: linear-gradient(0deg, rgba(14,14,14,.98) 0%, rgba(14,14,14,.82) 55%, rgba(14,14,14,.35) 100%); }
  .hero-content { padding: 140px 0 56px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .utility-tiles { grid-template-columns: 1fr; gap: 12px; }
  .utility-tile h3 { font-size: 18px; }
  .country-grid { gap: 10px; }
  .impact-card { grid-column: span 2; }
  .ad-cards { grid-template-columns: 1fr; }
  .ad-cards .ad-card:last-child { grid-column: auto; }
  .steps { grid-template-columns: 1fr; }
  .how-it-works { padding: 22px; }
  .plan-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .field-grid, .review-grid { grid-template-columns: 1fr; }
  .field.span-2, .review-item.span-2 { grid-column: auto; }
  .form-card { padding: 20px 16px; }
  .file-preview { flex-wrap: wrap; }
  .file-preview .fp-media { width: 100%; }
  .header-actions .btn { padding: 0 12px; font-size: 12px; min-height: 38px; }
  .brand-mark .brand-text { display: none; }
  .device-stage { aspect-ratio: 16 / 11; }
  .dev-tv { left: 4%; width: 92%; }
  .dev-laptop { width: 52%; bottom: 2%; }
  .dev-tablet { width: 40%; bottom: 0; }
  .dev-phone { left: 40%; width: 13%; bottom: -2%; }
  .progress li { font-size: 11px; }
  .form-actions .btn { flex: 1; }
  .live-bar a { padding: 10px 44px 10px 16px; font-size: 14px; }
  .sponsor-slot .btn { width: 100%; }
}
@media (max-width: 400px) {
  .header-actions .link-plain { display: none; }
}
