/* ============================================
   SOCIAL ALLIES STRATEGY REPORT — STYLES
   Tone: Editorial/Minimal · Monochrome Luxe
   Fonts: Instrument Serif + Outfit
   ============================================ */

:root {
  --bg: #FAFAFA;
  --bg-alt: #F2F0ED;
  --ink: #1A1A1A;
  --ink-mid: #4A4A4A;
  --ink-light: #8A8A8A;
  --border: #E0DDD8;
  --accent: #B8860B;
  --accent-light: #F5EDD0;
  --white: #FFFFFF;

  --strength: #1A3A2A;
  --strength-bg: #EAF4EE;
  --weakness: #3A1A1A;
  --weakness-bg: #F4EAEA;
  --opportunity: #1A2A3A;
  --opportunity-bg: #EAF0F4;

  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'Outfit', sans-serif;

  --max-w: 1200px;
  --section-pad: 96px 24px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ---- NAV ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 250, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-brand {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.nav-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 2px;
}
.nav-date {
  font-size: 13px;
  color: var(--ink-light);
  font-weight: 300;
}

/* ---- HERO ---- */
.hero {
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 24px 60px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(135deg, transparent 0%, var(--bg-alt) 100%);
  pointer-events: none;
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}
.hero-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--accent);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 80px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 28px;
  max-width: 800px;
}
.serif-italic {
  font-style: italic;
  color: var(--accent);
}
.hero-sub {
  font-size: 18px;
  font-weight: 300;
  color: var(--ink-mid);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 48px;
}
.hero-meta {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.meta-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-light);
}
.meta-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.hero-scroll-line {
  position: absolute;
  bottom: 0;
  left: 24px;
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--border), transparent);
}

/* ---- SECTIONS ---- */
.section { padding: var(--section-pad); }
.section.alt { background: var(--bg-alt); }
.section.conclusion { background: var(--ink); color: var(--bg); }

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.section-header {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 48px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.section.conclusion .section-header { border-bottom-color: rgba(255,255,255,0.15); }
.section-num {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
  min-width: 28px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.15;
}
.section.conclusion .section-title { color: var(--bg); }
.section-intro {
  font-size: 17px;
  color: var(--ink-mid);
  max-width: 680px;
  margin-bottom: 48px;
  font-weight: 300;
  line-height: 1.75;
}

/* ---- SUMMARY ---- */
.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.summary-text p {
  font-size: 16px;
  color: var(--ink-mid);
  margin-bottom: 20px;
  line-height: 1.8;
}
.summary-text em { color: var(--ink); font-style: italic; }
.summary-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.stat-card {
  background: var(--white);
  padding: 28px 24px;
  border: 1px solid var(--border);
}
.stat-card.accent {
  background: var(--ink);
  border-color: var(--ink);
}
.stat-num {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-card.accent .stat-num { color: var(--accent); }
.stat-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-light);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.stat-card.accent .stat-label { color: rgba(255,255,255,0.6); }

/* ---- PROFILE ---- */
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.profile-block {
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--border);
}
.block-title {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.profile-block p {
  font-size: 15px;
  color: var(--ink-mid);
  line-height: 1.75;
}
.profile-block em { color: var(--ink); font-style: italic; }
.service-list { display: flex; flex-direction: column; gap: 16px; }
.service-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.service-icon {
  color: var(--accent);
  font-size: 14px;
  margin-top: 2px;
  flex-shrink: 0;
}
.service-item strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}
.service-item p {
  font-size: 13px;
  color: var(--ink-light);
  margin: 0;
}
.client-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.tag {
  display: inline-block;
  padding: 5px 12px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.mt-sm { margin-top: 12px; font-size: 14px; color: var(--ink-mid); }
.team-list { display: flex; flex-direction: column; gap: 10px; }
.team-item {
  font-size: 14px;
  color: var(--ink-mid);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.team-item:last-child { border-bottom: none; }
.team-item strong { color: var(--ink); }

/* ---- COMPETITOR TIERS ---- */
.competitor-tiers { display: flex; flex-direction: column; gap: 40px; }
.tier {}
.tier-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.tier-competitors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.competitor-card {
  background: var(--white);
  padding: 24px;
  border: 1px solid var(--border);
  transition: border-color 0.2s;
}
.competitor-card:hover { border-color: var(--ink); }
.comp-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}
.comp-location {
  font-size: 12px;
  color: var(--ink-light);
  margin-bottom: 10px;
}
.comp-strength {
  font-size: 13px;
  color: var(--ink-mid);
  margin-bottom: 14px;
  line-height: 1.5;
}
.comp-threat {
  display: inline-block;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 2px;
}
.comp-threat.high { background: #FEE2E2; color: #991B1B; }
.comp-threat.med { background: #FEF3C7; color: #92400E; }
.comp-threat.low { background: #D1FAE5; color: #065F46; }

/* ---- MATRIX ---- */
.matrix-wrap { overflow-x: auto; margin-bottom: 16px; }
.matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.matrix-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-light);
  background: var(--white);
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}
.matrix-table th.highlight-col {
  background: var(--ink);
  color: var(--accent);
}
.matrix-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--ink-mid);
  background: var(--white);
}
.matrix-table tr:hover td { background: var(--bg-alt); }
.matrix-table td.highlight-col {
  background: var(--ink);
  color: var(--white);
  font-weight: 500;
}
.matrix-table tr:hover td.highlight-col { background: #2A2A2A; }
.score-high { color: #065F46 !important; font-weight: 600; }
.score-med { color: #92400E !important; }
.score-low { color: #9CA3AF !important; }
.matrix-note {
  font-size: 12px;
  color: var(--ink-light);
  text-align: right;
}

/* ---- GAPS ---- */
.gaps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.gap-card {
  padding: 32px;
  border-left: 3px solid transparent;
}
.gap-card.gap-strength {
  background: var(--strength-bg);
  border-left-color: #2D6A4F;
}
.gap-card.gap-weakness {
  background: var(--weakness-bg);
  border-left-color: #C0392B;
}
.gap-card.gap-opportunity {
  background: var(--opportunity-bg);
  border-left-color: #2E5090;
}
.gap-type {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.gap-strength .gap-type { color: #2D6A4F; }
.gap-weakness .gap-type { color: #C0392B; }
.gap-opportunity .gap-type { color: #2E5090; }
.gap-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 12px;
  line-height: 1.3;
}
.gap-card p {
  font-size: 14px;
  color: var(--ink-mid);
  line-height: 1.75;
}

/* ---- PHASES ---- */
.phases { display: flex; flex-direction: column; gap: 2px; }
.phase { background: var(--white); border: 1px solid var(--border); }
.phase-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 32px;
  background: var(--ink);
  cursor: pointer;
}
.phase-num {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--accent);
  font-style: italic;
}
.phase-period {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.02em;
}
.phase-actions {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.action {
  padding: 24px;
  background: var(--bg-alt);
  border-left: 2px solid var(--accent);
}
.action-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}
.action p {
  font-size: 14px;
  color: var(--ink-mid);
  line-height: 1.75;
}

/* ---- KPIs ---- */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}
.kpi-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 28px 24px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.kpi-category {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.kpi-metric {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 14px;
  line-height: 1.3;
}
.kpi-target {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.kpi-baseline {
  font-size: 12px;
  color: var(--ink-light);
}

/* ---- SWOT ---- */
.swot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.swot-card {
  padding: 36px;
  background: var(--white);
  border: 1px solid var(--border);
}
.swot-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid;
}
.swot-s .swot-label { color: #2D6A4F; border-color: #2D6A4F; }
.swot-w .swot-label { color: #C0392B; border-color: #C0392B; }
.swot-o .swot-label { color: #2E5090; border-color: #2E5090; }
.swot-t .swot-label { color: #7B3F00; border-color: #7B3F00; }
.swot-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.swot-card li {
  font-size: 14px;
  color: var(--ink-mid);
  line-height: 1.6;
  padding-left: 16px;
  position: relative;
}
.swot-card li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--border);
  font-size: 12px;
}

/* ---- CONCLUSION ---- */
.conclusion-content {
  max-width: 760px;
}
.conclusion-lead {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 400;
  color: var(--white);
  line-height: 1.4;
  margin-bottom: 28px;
}
.conclusion-content p {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
  margin-bottom: 20px;
}
.conclusion-cta {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.conclusion-cta .serif-italic {
  font-family: var(--font-display);
  font-size: 32px;
  font-style: italic;
  color: var(--accent);
}

/* ---- FOOTER ---- */
.footer {
  background: #111;
  padding: 40px 24px;
  border-top: 1px solid #222;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-brand {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  margin-bottom: 6px;
}
.footer-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}
.footer-note {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  max-width: 400px;
  line-height: 1.6;
  text-align: right;
}

/* ---- ANIMATIONS ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-label { animation: fadeUp 0.6s ease both; }
.hero-title { animation: fadeUp 0.7s 0.1s ease both; }
.hero-sub { animation: fadeUp 0.7s 0.2s ease both; }
.hero-meta { animation: fadeUp 0.7s 0.3s ease both; }

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  :root { --section-pad: 64px 20px; }
  .summary-grid { grid-template-columns: 1fr; gap: 40px; }
  .profile-grid { grid-template-columns: 1fr; gap: 2px; }
  .gaps-grid { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .swot-grid { grid-template-columns: 1fr; }
  .tier-competitors { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hero-title { font-size: 36px; }
  .kpi-grid { grid-template-columns: 1fr; }
  .hero-meta { gap: 20px; }
  .phase-header { flex-direction: column; align-items: flex-start; gap: 6px; }
}