/* =========================================================
   KSAD Meta Ads Strategy — Presentation styles
   Light theme matching ksad.com.ua (#42A852 green, Inter, 3-6px radii)
   ========================================================= */

:root {
  /* KSAD brand palette (extracted from ksad.com.ua) */
  --brand: #42A852;
  --brand-deep: #2D7A3C;
  --brand-bright: #5BC26E;
  --brand-dark: #3a9548;
  --brand-muted: #e8f5e9;
  --brand-pale: #f0faf1;
  --brand-softer: #f0fdf4;

  --cta: #E85C41;
  --cta-dark: #D24C32;
  --warn: #EAB308;
  --danger: #E11D48;
  --info: #6366f1;

  --bg: #ffffff;
  --bg-alt: #f8faf9;
  --bg-card: #ffffff;
  --bg-subtle: #f4f7f5;

  --fg-1: #1a2332;
  --fg-2: #475569;
  --fg-3: #64748b;
  --fg-4: #94a3b8;

  --border: #e5e7eb;
  --border-strong: #d1d5db;
  --border-brand: #cce8d2;

  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;

  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.06);
  --shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.12);

  --ff-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ff-mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;

  --container: 1200px;
  --container-wide: 1360px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--ff-body);
  background: var(--bg);
  color: var(--fg-1);
  line-height: 1.55;
  overflow-x: hidden;
  min-height: 100vh;
}

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

a {
  color: var(--brand-deep);
  text-decoration: none;
  transition: color 0.15s;
}

a:hover { color: var(--brand); }

h1, h2, h3, h4, h5 {
  font-family: var(--ff-body);
  color: var(--fg-1);
  letter-spacing: -0.02em;
  line-height: 1.18;
  font-weight: 700;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; }

p { font-size: 1rem; color: var(--fg-2); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.container-wide {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 28px;
}

/* ================== HEADER ================== */
header.site-nav {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--fg-1);
}

.brand-chip {
  width: 32px;
  height: 32px;
  background: var(--brand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 1.1rem;
}

.brand-text small {
  display: block;
  font-size: 0.76rem;
  color: var(--fg-3);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.nav-meta {
  display: flex;
  gap: 20px;
  font-size: 0.88rem;
  color: var(--fg-3);
  align-items: center;
}

.nav-meta strong { color: var(--fg-1); font-weight: 600; }

.nav-client-badge {
  padding: 6px 12px;
  background: var(--brand-muted);
  border: 1px solid var(--border-brand);
  border-radius: 20px;
  color: var(--brand-deep);
  font-size: 0.82rem;
  font-weight: 600;
}

/* ================== HERO ================== */
.hero {
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg) 0%, var(--brand-softer) 100%);
}

.hero::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--brand-muted) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--brand-muted);
  border: 1px solid var(--border-brand);
  border-radius: 20px;
  color: var(--brand-deep);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.hero-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--brand);
  border-radius: 50%;
}

.hero-title {
  max-width: 900px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.hero-title .accent {
  color: var(--brand);
  position: relative;
  white-space: nowrap;
}

.hero-sub {
  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
  color: var(--fg-2);
  max-width: 720px;
  margin-bottom: 44px;
  line-height: 1.55;
  position: relative;
  z-index: 1;
}

.hero-kpi {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
  position: relative;
  z-index: 1;
}

.kpi-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  transition: all 0.2s;
  box-shadow: var(--shadow-xs);
}

.kpi-card:hover {
  border-color: var(--brand-border);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.kpi-card .label {
  font-size: 0.8rem;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
  font-weight: 600;
}

.kpi-card .value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--fg-1);
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.kpi-card .unit {
  font-size: 0.88rem;
  color: var(--fg-3);
}

.kpi-card.highlight .value {
  color: var(--brand);
}

/* ================== SECTION ================== */
.section { padding: 80px 0; position: relative; }
.section.tint { background: var(--bg-alt); }

.section-header {
  max-width: 760px;
  margin-bottom: 48px;
}

.section-eyebrow {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
  display: block;
}

.section-title { margin-bottom: 16px; }
.section-intro { font-size: 1.05rem; color: var(--fg-2); line-height: 1.6; }

/* ================== BIG IDEA PILLARS ================== */
.big-idea-headline {
  padding: 44px;
  background: linear-gradient(120deg, var(--brand) 0%, var(--brand-dark) 100%);
  border-radius: var(--radius-lg);
  color: white;
  margin-bottom: 40px;
  box-shadow: var(--shadow);
}

.big-idea-headline .quote-mark {
  font-size: 4rem;
  line-height: 0;
  position: relative;
  top: 32px;
  margin-right: 8px;
  opacity: 0.5;
  font-weight: 800;
}

.big-idea-headline h3 {
  color: white;
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
}

.big-idea-headline p { color: rgba(255, 255, 255, 0.9); font-size: 1.05rem; }

.pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.pillar {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.2s;
  position: relative;
}

.pillar:hover {
  border-color: var(--border-brand);
  box-shadow: var(--shadow-sm);
}

.pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--brand-muted);
  color: var(--brand-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.pillar-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; color: var(--fg-1); }
.pillar-text { font-size: 0.96rem; color: var(--fg-2); line-height: 1.6; }

/* ================== WHY PLAN A (math) ================== */
.math-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.math-row {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 26px;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  align-items: start;
}

.math-row:hover { border-color: var(--border-brand); }

.math-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
  font-family: var(--ff-mono);
}

.math-row h4 { font-size: 1rem; margin-bottom: 8px; color: var(--fg-1); }
.math-row p { font-size: 0.94rem; color: var(--fg-2); line-height: 1.55; }

@media (max-width: 780px) {
  .math-grid { grid-template-columns: 1fr; }
}

/* ================== DONE ITEMS (pre-launch) ================== */
.prelaunch-done {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.prelaunch-done-item {
  background: var(--brand-pale);
  border: 1px solid var(--border-brand);
  border-radius: var(--radius);
  padding: 18px 22px;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 16px;
  align-items: start;
}

.prelaunch-done-item .check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
}

/* ================== CAMPAIGN LANDING URL ================== */
.campaign-landing {
  margin-bottom: 28px;
  padding: 16px 20px;
  background: var(--brand-pale);
  border: 1px solid var(--border-brand);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.landing-label {
  font-size: 0.78rem;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.landing-url {
  font-family: var(--ff-mono);
  font-size: 0.92rem;
  color: var(--brand-deep);
  font-weight: 600;
}

/* ================== BONUS ADD-ON ================== */
.bonus-card {
  background: linear-gradient(120deg, var(--warn) 0%, #fbbf24 100%);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  color: #422d00;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.bonus-card::before {
  content: "✨";
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 3rem;
  opacity: 0.5;
}

.bonus-label {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(66, 45, 0, 0.15);
  border-radius: 12px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.bonus-card h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #422d00;
}

.bonus-card p {
  color: #523a0d;
  font-size: 1rem;
  line-height: 1.6;
  max-width: 720px;
}

/* ================== PRE-LAUNCH ================== */
.prelaunch-wrap {
  background: #fff8ed;
  border: 1px solid #fbcfa4;
  border-radius: var(--radius-lg);
  padding: 36px;
}

.prelaunch-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.prelaunch-title .dot {
  width: 12px;
  height: 12px;
  background: var(--cta);
  border-radius: 50%;
  flex-shrink: 0;
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.prelaunch-intro {
  font-size: 0.98rem;
  color: #92400e;
  margin-bottom: 24px;
  max-width: 700px;
}

.prelaunch-tasks {
  display: grid;
  gap: 14px;
}

.prelaunch-task {
  background: white;
  border: 1px solid var(--border);
  border-left: 4px solid var(--cta);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.prelaunch-task h4 { margin-bottom: 6px; color: var(--fg-1); }
.prelaunch-task .why { color: var(--fg-2); font-size: 0.92rem; line-height: 1.5; }

.prelaunch-meta { text-align: right; white-space: nowrap; }
.prelaunch-meta .deadline {
  font-size: 0.82rem;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
  font-weight: 600;
}
.prelaunch-meta .deadline-date { font-size: 1.05rem; font-weight: 700; color: var(--cta-dark); }
.prelaunch-meta .owner { font-size: 0.85rem; color: var(--fg-3); margin-top: 6px; }

/* ================== CAMPAIGNS ================== */
.campaign-nav {
  display: flex;
  gap: 10px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.campaign-tab {
  padding: 12px 18px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--fg-1);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 8px;
}

.campaign-tab:hover {
  background: var(--brand-pale);
  border-color: var(--border-brand);
}

.campaign-tab.active {
  background: var(--brand);
  border-color: var(--brand);
  color: white;
}

.campaign-tab .code {
  font-family: var(--ff-mono);
  font-size: 0.78rem;
  padding: 2px 6px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 4px;
}
.campaign-tab.active .code { background: rgba(255, 255, 255, 0.22); }

.campaign-detail {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-xs);
}

.campaign-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}

.campaign-name {
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--fg-1);
}

.campaign-oneliner { font-size: 1.02rem; color: var(--fg-2); max-width: 640px; }

.campaign-budget {
  text-align: right;
  background: var(--brand-pale);
  padding: 20px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border-brand);
  min-width: 180px;
}

.campaign-budget .lbl {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-3);
  font-weight: 600;
  margin-bottom: 4px;
}
.campaign-budget .val {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--brand-deep);
  line-height: 1;
}
.campaign-budget .share { font-size: 0.82rem; color: var(--fg-3); margin-top: 4px; }

.campaign-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.meta-box {
  background: var(--bg-subtle);
  padding: 16px 18px;
  border-radius: var(--radius-sm);
}
.meta-box .lbl {
  font-size: 0.76rem;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-bottom: 4px;
}
.meta-box .val { font-size: 1.05rem; font-weight: 700; color: var(--fg-1); }

.campaign-section { margin-bottom: 28px; }
.campaign-section h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-3);
  font-weight: 700;
  margin-bottom: 14px;
}

.ad-sets { display: grid; gap: 12px; }

.ad-set {
  padding: 16px 20px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 20px;
  align-items: center;
}

.ad-set-name { font-weight: 600; color: var(--fg-1); margin-bottom: 4px; font-size: 0.98rem; }
.ad-set-desc { font-size: 0.88rem; color: var(--fg-2); line-height: 1.45; }
.ad-set-size { font-size: 0.85rem; color: var(--fg-3); white-space: nowrap; }
.ad-set-split {
  font-family: var(--ff-mono);
  font-weight: 700;
  color: var(--brand);
  background: var(--brand-pale);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.88rem;
}

.creatives-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.creative-thumb {
  aspect-ratio: 1;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
}

.creative-thumb:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--border-brand);
}

.creative-thumb img { width: 100%; height: 100%; object-fit: cover; }

.creative-thumb::after {
  content: attr(data-label);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  color: white;
  font-size: 0.78rem;
  font-weight: 600;
}

.kpi-targets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.kpi-chip {
  text-align: center;
  padding: 14px 10px;
  background: var(--brand-pale);
  border: 1px solid var(--border-brand);
  border-radius: var(--radius-sm);
}

.kpi-chip .lbl {
  font-size: 0.72rem;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-bottom: 4px;
}
.kpi-chip .val {
  font-family: var(--ff-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand-deep);
}

/* ================== FLIGHT CHART (GANTT) ================== */
.flight-chart {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  overflow-x: auto;
}

.flight-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 10px;
}

.flight-label {
  font-size: 0.88rem;
  color: var(--fg-1);
  font-weight: 600;
}

.flight-track {
  position: relative;
  height: 32px;
  background: var(--bg-subtle);
  border-radius: 6px;
  overflow: hidden;
}

.flight-bar {
  position: absolute;
  top: 4px;
  bottom: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  color: white;
  font-size: 0.74rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
}

.flight-x-axis {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.flight-ticks {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  font-size: 0.76rem;
  color: var(--fg-3);
  font-weight: 500;
}

/* ================== BUDGET BREAKDOWN ================== */
.budget-list { display: grid; gap: 14px; }

.budget-row {
  display: grid;
  grid-template-columns: 60px 2fr 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 16px 20px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.budget-code {
  font-family: var(--ff-mono);
  font-weight: 700;
  color: var(--brand);
  background: var(--brand-pale);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.85rem;
  text-align: center;
}

.budget-name { font-weight: 600; color: var(--fg-1); }

.budget-bar-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.budget-bar {
  flex: 1;
  height: 8px;
  background: var(--bg-subtle);
  border-radius: 4px;
  overflow: hidden;
}
.budget-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand-dark) 0%, var(--brand) 100%);
  border-radius: 4px;
}
.budget-pct {
  font-family: var(--ff-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand);
  min-width: 48px;
}

.budget-amount {
  font-family: var(--ff-mono);
  font-weight: 700;
  color: var(--fg-1);
}

.budget-total {
  margin-top: 16px;
  padding: 20px 24px;
  background: var(--brand);
  color: white;
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  font-weight: 700;
  font-size: 1.15rem;
}

/* ================== FORECAST ================== */
.forecast-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.forecast-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
}

.forecast-card.highlight {
  border: 2px solid var(--brand);
  background: var(--brand-pale);
  transform: scale(1.03);
  z-index: 1;
  box-shadow: var(--shadow);
}

.forecast-card .scenario {
  font-size: 0.82rem;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: 4px;
}

.forecast-card.highlight .scenario { color: var(--brand-deep); }

.forecast-card .revenue {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  color: var(--fg-1);
  margin: 10px 0 6px;
}
.forecast-card.highlight .revenue { color: var(--brand-deep); }

.forecast-metrics {
  display: grid;
  gap: 6px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
}

.forecast-metrics .row {
  display: flex;
  justify-content: space-between;
  color: var(--fg-3);
}
.forecast-metrics .row strong { color: var(--fg-1); font-weight: 600; }

/* ================== CREATIVES GALLERY ================== */
.gallery-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.gallery-chip {
  padding: 8px 14px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--fg-2);
  font-size: 0.88rem;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
}
.gallery-chip:hover { background: var(--brand-pale); }
.gallery-chip.active {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
  font-weight: 600;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

/* ================== AUDIENCE STRATEGY ================== */
.audience-loop {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.audience-step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 20px;
  padding: 20px 22px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
}

.audience-step .num {
  width: 44px;
  height: 44px;
  background: var(--brand);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.audience-step h4 { font-size: 1.05rem; margin-bottom: 4px; color: var(--fg-1); }
.audience-step p { font-size: 0.94rem; color: var(--fg-2); line-height: 1.55; }

.audience-step::before {
  content: "";
  position: absolute;
  left: 44px;
  top: -16px;
  width: 2px;
  height: 16px;
  background: var(--border-brand);
}
.audience-step:first-child::before { display: none; }

/* ================== RISKS ================== */
.risks { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }

.risk-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.risk-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
}
.risk-card.high::before { background: var(--danger); }
.risk-card.medium::before { background: var(--cta); }
.risk-card.low::before { background: var(--fg-4); }

.risk-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.risk-title { font-size: 1rem; font-weight: 700; color: var(--fg-1); line-height: 1.3; }

.risk-impact {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 700;
  white-space: nowrap;
}
.risk-card.high .risk-impact { background: #fee2e2; color: var(--danger); }
.risk-card.medium .risk-impact { background: #ffedd5; color: var(--cta-dark); }
.risk-card.low .risk-impact { background: var(--bg-subtle); color: var(--fg-3); }

.risk-mitigation { font-size: 0.94rem; color: var(--fg-2); line-height: 1.55; }

/* ================== NEXT STEPS ================== */
.steps-list { display: grid; gap: 10px; }

.step {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding: 16px 22px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  align-items: center;
}

.step-when {
  font-family: var(--ff-mono);
  font-size: 0.88rem;
  color: var(--brand-deep);
  font-weight: 700;
  background: var(--brand-pale);
  padding: 6px 10px;
  border-radius: 4px;
  text-align: center;
  border: 1px solid var(--border-brand);
}

.step-what { font-size: 0.98rem; color: var(--fg-1); }

/* ================== MODAL ================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(6px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s;
}

.modal-backdrop.open { opacity: 1; pointer-events: auto; }

.modal {
  background: white;
  border-radius: var(--radius-lg);
  max-width: 840px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.96) translateY(20px);
  transition: transform 0.2s cubic-bezier(.2, .8, .2, 1);
  box-shadow: var(--shadow-lg);
}
.modal-backdrop.open .modal { transform: scale(1) translateY(0); }

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: white;
  color: var(--fg-1);
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  line-height: 1;
  padding: 0;
}

.modal-close:hover { background: var(--bg-subtle); }

.modal-img {
  aspect-ratio: 1;
  background: var(--bg-subtle);
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.modal-img img { width: 100%; height: 100%; object-fit: cover; }

.modal-content { padding: 32px 36px 36px; }

.modal-content h3 { margin-bottom: 8px; }
.modal-content .modal-meta {
  font-size: 0.85rem;
  color: var(--fg-3);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

/* ================== FOOTER ================== */
footer.site-footer {
  margin-top: 100px;
  padding: 50px 0 60px;
  border-top: 1px solid var(--border);
  background: var(--bg-subtle);
}

footer .container { text-align: center; }
footer .brand-lockup { justify-content: center; margin-bottom: 16px; }
footer .meta-line { font-size: 0.88rem; color: var(--fg-3); line-height: 1.6; }

/* ================== RESPONSIVE ================== */
@media (max-width: 980px) {
  .hero-kpi { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: 1fr; }
  .campaign-header { grid-template-columns: 1fr; }
  .campaign-budget { min-width: auto; }
  .campaign-meta-grid { grid-template-columns: repeat(2, 1fr); }
  .forecast-grid { grid-template-columns: 1fr; }
  .forecast-card.highlight { transform: none; }
  .ad-set { grid-template-columns: 1fr; gap: 8px; }
  .ad-set-size, .ad-set-split { justify-self: start; }
  .budget-row { grid-template-columns: 1fr; gap: 10px; }
  .step { grid-template-columns: 1fr; gap: 6px; }
  .nav-meta { display: none; }
}

@media (max-width: 640px) {
  .hero { padding: 60px 0 40px; }
  .section { padding: 50px 0; }
  .hero-kpi { grid-template-columns: 1fr 1fr; gap: 12px; }
  .kpi-card { padding: 18px 16px; }
  .kpi-card .value { font-size: 1.6rem; }
  .big-idea-headline { padding: 28px 22px; }
  .big-idea-headline h3 { font-size: 1.4rem; }
  .campaign-detail { padding: 24px 20px; }
  .campaign-meta-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .kpi-targets { grid-template-columns: 1fr 1fr; }
  .modal-content { padding: 24px 22px 28px; }
}
