/* === Facebook Integration page === */

/* Brand brand color refs */
:root {
  --fb-blue: #1877F2;
  --fb-blue-dark: #0E5FCC;
  --ig-pink: #d62976;
}

/* Hero */
.fb-hero {
  position: relative;
  padding-top: 32px;
  padding-bottom: 80px;
  overflow: hidden;
}
.fb-hero::before {
  content: "";
  position: absolute;
  inset: -10% -20% auto -20%;
  height: 760px;
  background:
    radial-gradient(50% 60% at 75% 25%, rgba(24,119,242,0.14), transparent 60%),
    radial-gradient(40% 60% at 15% 35%, rgba(214,41,118,0.10), transparent 60%),
    radial-gradient(60% 60% at 50% 0%, rgba(64,204,191,0.10), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.fb-hero .container {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 64px;
  align-items: center;
}
.fb-hero h1 {
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
  margin-top: 16px;
}
.fb-hero h1 .accent {
  background: linear-gradient(120deg, var(--fb-blue) 0%, #4f5bd5 50%, var(--ig-pink) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.fb-hero .lede {
  color: var(--muted);
  font-size: 18px;
  margin-top: 22px;
  max-width: 52ch;
  text-wrap: pretty;
}
.fb-hero-actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.fb-hero .benefits-row { justify-content: flex-start; margin-top: 24px; }

/* Hero — connection mock */
.fb-connect-mock {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-lg), 0 0 0 8px rgba(255,255,255,0.6);
  position: relative;
}
.fb-connect-mock .mock-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.fb-connect-mock .mock-head .ttl {
  font-weight: 700; font-size: 15px;
}
.fb-connect-mock .mock-head .status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
  background: #E6F7EC;
  color: #1B8B43;
}
.fb-connect-mock .mock-head .status::before {
  content: ""; width: 6px; height: 6px; border-radius: 999px;
  background: #1B8B43;
  box-shadow: 0 0 0 3px rgba(27,139,67,0.18);
}

.fb-connect-row {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}
.fb-connect-card {
  border: 1px solid var(--line);
  background: white;
  border-radius: 14px;
  padding: 16px;
  display: flex; align-items: center; gap: 12px;
}
.fb-connect-card .logo {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.fb-connect-card .logo.meta { background: linear-gradient(135deg, #1877F2, #4f5bd5 60%, #d62976); }
.fb-connect-card .logo.salesgem { background: none; }
.fb-connect-card .logo svg { color: white; }
.fb-connect-card b { display: block; font-weight: 700; font-size: 14px; }
.fb-connect-card small { font-size: 11px; color: var(--muted); }

.fb-pipe {
  position: relative;
  height: 2px;
  background: linear-gradient(90deg, var(--fb-blue), var(--teal-500));
  border-radius: 2px;
}
.fb-pipe::before, .fb-pipe::after {
  content: ""; position: absolute;
  width: 8px; height: 8px;
  border-radius: 999px;
  top: 50%; transform: translateY(-50%);
}
.fb-pipe::before { left: -2px; background: var(--fb-blue); }
.fb-pipe::after  { right: -2px; background: var(--teal-500); }
.fb-pipe .pulse {
  position: absolute;
  top: 50%; transform: translate(-50%, -50%);
  width: 12px; height: 12px;
  border-radius: 999px;
  background: white;
  border: 2px solid var(--teal-500);
  box-shadow: 0 0 0 3px rgba(64,204,191,0.18);
  animation: fbPulse 2.4s ease-in-out infinite;
}
@keyframes fbPulse {
  0% { left: 0%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

.fb-events {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
}
.fb-events .lbl {
  font-size: 11px; color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-bottom: 10px;
  display: flex; justify-content: space-between; align-items: center;
}
.fb-events .lbl .live {
  color: var(--teal-700);
  display: inline-flex; align-items: center; gap: 4px;
}
.fb-events .lbl .live::before {
  content: ""; width: 5px; height: 5px; border-radius: 999px;
  background: var(--teal-500);
  animation: fbBlink 1.4s ease-in-out infinite;
}
@keyframes fbBlink { 50% { opacity: 0.3; } }

.fb-events .row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line-2);
  font-size: 13px;
}
.fb-events .row:last-child { border-bottom: none; }
.fb-events .row .ic {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--teal-50);
  color: var(--teal-700);
  display: grid; place-items: center;
}
.fb-events .row.fb .ic { background: rgba(24,119,242,0.10); color: var(--fb-blue); }
.fb-events .row.ig .ic {
  background: linear-gradient(135deg, rgba(254,218,117,0.18), rgba(214,41,118,0.18));
  color: var(--ig-pink);
}
.fb-events .row .ttl { font-weight: 600; color: var(--ink); }
.fb-events .row .sub { font-size: 11px; color: var(--muted); }
.fb-events .row .when {
  font-size: 11px; color: var(--muted);
  font-feature-settings: "tnum";
  white-space: nowrap;
}

/* Pillars band */
.fb-pillars {
  padding: 64px 0;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.fb-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.fb-pillar-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  display: flex; flex-direction: column; gap: 16px;
}
.fb-pillar-card .num {
  position: absolute;
  top: 24px; right: 24px;
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--line);
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.fb-pillar-card .ic {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--teal-50);
  color: var(--teal-600);
  display: grid; place-items: center;
}
.fb-pillar-card h3 { font-size: 22px; letter-spacing: -0.015em; }
.fb-pillar-card p { color: var(--muted); font-size: 14px; line-height: 1.55; }
.fb-pillar-card .anchor {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--teal-600); font-size: 14px; font-weight: 600;
}

/* Brand strip — Facebook + Instagram + Messenger callout */
.fb-brand-strip {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
  padding: 28px 36px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(24,119,242,0.06), rgba(214,41,118,0.06) 70%, transparent);
  border-radius: var(--radius-lg);
  margin: 64px 0;
}
.fb-brand-strip .brands {
  display: flex; gap: 12px;
  flex-shrink: 0;
}
.fb-brand-strip .brands .brand {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: white;
  box-shadow: var(--shadow-md);
}
.fb-brand-strip h3 { font-size: 22px; letter-spacing: -0.015em; }
.fb-brand-strip p {
  color: var(--muted); font-size: 14px;
  margin-top: 6px;
  max-width: 70ch;
}

/* Deep-dive sections (alternating) */
.fb-feature { padding: var(--gutter) 0; }
.fb-feature .container {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 80px;
  align-items: center;
}
.fb-feature.reverse .container > .fb-feature-copy { order: 2; }
.fb-feature.reverse .container > .fb-feature-visual { order: 1; }
.fb-feature-copy h2 {
  font-size: 40px;
  letter-spacing: -0.025em;
  line-height: 1.08;
  text-wrap: balance;
  margin-top: 16px;
}
.fb-feature-copy .lede {
  color: var(--muted);
  font-size: 17px;
  margin-top: 18px;
  max-width: 50ch;
  text-wrap: pretty;
}
.fb-feature-bullets {
  list-style: none; margin: 28px 0 0; padding: 0;
  display: grid; gap: 14px;
}
.fb-feature-bullets li {
  display: flex; gap: 12px;
  align-items: flex-start;
  font-size: 15px; color: var(--ink-2);
}
.fb-feature-bullets li .check {
  width: 22px; height: 22px;
  border-radius: 999px;
  background: var(--teal-50);
  color: var(--teal-600);
  display: grid; place-items: center;
  flex-shrink: 0; margin-top: 1px;
}
.fb-feature-bullets li b { color: var(--ink); font-weight: 600; }
.fb-feature-actions { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }

.fb-feature-visual {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-md);
}
.fb-feature-visual.tinted-blue {
  background: linear-gradient(180deg, rgba(24,119,242,0.06), var(--surface) 60%);
}
.fb-feature-visual.tinted-pink {
  background: linear-gradient(180deg, rgba(214,41,118,0.06), var(--surface) 60%);
}
.fb-feature-visual .v-title {
  font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted); font-weight: 600;
  margin-bottom: 16px;
  display: flex; align-items: center; justify-content: space-between;
}

/* Visual: Lead capture (capture pillar) */
.fb-lead-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
}
.fb-lead-card .head {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-2);
  margin-bottom: 14px;
}
.fb-lead-card .av {
  width: 44px; height: 44px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--teal-100);
}
.fb-lead-card .av img { width: 100%; height: 100%; object-fit: cover; }
.fb-lead-card .name {
  font-weight: 700; font-size: 15px;
}
.fb-lead-card .meta {
  font-size: 11px; color: var(--muted);
  display: flex; gap: 6px; margin-top: 2px;
}
.fb-lead-card .source-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.fb-lead-card .source-pill.fb { background: rgba(24,119,242,0.10); color: var(--fb-blue); }
.fb-lead-card .source-pill.ig {
  background: linear-gradient(135deg, rgba(254,218,117,0.20), rgba(214,41,118,0.20));
  color: var(--ig-pink);
}

.fb-lead-card .field {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 8px;
  padding: 6px 0;
  font-size: 12px;
  border-bottom: 1px dashed var(--line-2);
}
.fb-lead-card .field:last-of-type { border-bottom: none; }
.fb-lead-card .field .lbl {
  font-size: 10px; color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  align-self: center;
}
.fb-lead-card .field .val {
  font-weight: 600; color: var(--ink);
  word-break: break-word;
}
.fb-lead-card .field .val small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  margin-top: 1px;
}

.fb-lead-card .actions {
  display: flex; gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line-2);
}
.fb-lead-card .actions .btn-mini {
  flex: 1;
  height: 32px;
  border-radius: 8px;
  font-size: 12px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--line);
  background: white; color: var(--ink-2);
}
.fb-lead-card .actions .btn-mini.primary {
  background: var(--ink); color: white; border-color: var(--ink);
}

/* Visual: Conversion API event console */
.fb-capi {
  background: #0E1614;
  color: white;
  border-radius: 14px;
  padding: 18px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  border: 1px solid #1A2724;
}
.fb-capi .tab-row {
  display: flex; gap: 6px;
  margin-bottom: 14px;
}
.fb-capi .tab {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 11px;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.55);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
}
.fb-capi .tab.on { background: var(--teal-500); color: white; }

.fb-capi .console-row {
  display: grid;
  grid-template-columns: 110px 1fr 80px;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.fb-capi .console-row:last-child { border-bottom: none; }
.fb-capi .console-row .t {
  color: rgba(255,255,255,0.45);
}
.fb-capi .console-row .ev {
  color: white;
  font-weight: 600;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
}
.fb-capi .console-row .ev small {
  display: block;
  color: rgba(255,255,255,0.55);
  font-weight: 400;
  font-size: 11px;
  margin-top: 2px;
}
.fb-capi .console-row .ok {
  text-align: right;
  color: var(--teal-400);
  font-weight: 600;
}
.fb-capi .console-row .ok::before {
  content: "•"; margin-right: 4px;
  color: var(--teal-400);
}

/* Stats strip */
.fb-stats-strip {
  background: var(--ink);
  color: white;
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}
.fb-stats-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 60% at 80% 50%, rgba(24,119,242,0.18), transparent 60%),
    radial-gradient(40% 60% at 20% 50%, rgba(64,204,191,0.18), transparent 60%);
  pointer-events: none;
}
.fb-stats-strip .container { position: relative; z-index: 1; }
.fb-stats-strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: end;
}
.fb-stats-strip .num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 80px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(135deg, var(--teal-400), var(--teal-200));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.fb-stats-strip .num small {
  font-size: 40px; margin-left: 2px;
  -webkit-text-fill-color: var(--teal-400);
  color: var(--teal-400);
}
.fb-stats-strip .lbl {
  margin-top: 12px;
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  max-width: 30ch;
}

/* Feature cards (the 6-card grid) */
.fb-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.fb-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.fb-card:hover {
  transform: translateY(-2px);
  border-color: var(--teal-200);
  box-shadow: var(--shadow-md);
}
.fb-card .ic {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--teal-50);
  color: var(--teal-600);
  display: grid; place-items: center;
}
.fb-card h4 { font-size: 17px; letter-spacing: -0.01em; }
.fb-card p { color: var(--muted); font-size: 14px; line-height: 1.5; }

/* Audience visual (Pillar 3) */
.fb-audiences { display: grid; gap: 8px; }
.fb-aud-card {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 13px;
}
.fb-aud-card .ic {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid; place-items: center;
}
.fb-aud-card .ic.warm { background: #FEF3C7; color: #B25E09; }
.fb-aud-card .ic.cold { background: rgba(24,119,242,0.10); color: var(--fb-blue); }
.fb-aud-card .ic.cust { background: var(--teal-50); color: var(--teal-700); }
.fb-aud-card .ic.lal {
  background: linear-gradient(135deg, rgba(254,218,117,0.20), rgba(214,41,118,0.20));
  color: var(--ig-pink);
}
.fb-aud-card .nm { font-weight: 700; color: var(--ink); }
.fb-aud-card .nm small { display: block; font-size: 11px; color: var(--muted); font-weight: 500; }
.fb-aud-card .stat {
  text-align: right;
  font-feature-settings: "tnum";
}
.fb-aud-card .stat b {
  display: block;
  font-size: 14px;
  color: var(--ink);
}
.fb-aud-card .stat small { font-size: 10px; color: var(--muted); }

/* Pipeline / loop visual */
.fb-loop {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.fb-loop-card {
  background: var(--surface);
  padding: 28px 24px;
  display: flex; flex-direction: column; gap: 12px;
  position: relative;
}
.fb-loop-card .num {
  font-size: 12px; font-weight: 700;
  color: var(--teal-600);
  font-feature-settings: "tnum";
  letter-spacing: 0.04em;
}
.fb-loop-card .ic {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--teal-50);
  color: var(--teal-600);
  display: grid; place-items: center;
}
.fb-loop-card h4 { font-size: 16px; }
.fb-loop-card p { color: var(--muted); font-size: 13px; line-height: 1.5; }
/* Responsive */
@media (max-width: 980px) {
  .fb-hero .container { grid-template-columns: 1fr; gap: 48px; }
  .fb-feature .container { grid-template-columns: 1fr; gap: 40px; }
  .fb-feature.reverse .container > .fb-feature-copy { order: 1; }
  .fb-feature.reverse .container > .fb-feature-visual { order: 2; }
  .fb-pillars-grid { grid-template-columns: 1fr; }
  .fb-cards-grid { grid-template-columns: 1fr; }
  .fb-loop { grid-template-columns: repeat(2, 1fr); }
  .fb-stats-strip-grid { grid-template-columns: 1fr; gap: 40px; }
  .fb-stats-strip .num { font-size: 64px; }
  .fb-brand-strip { grid-template-columns: 1fr; gap: 16px; padding: 24px; }
  .fb-connect-row { grid-template-columns: 1fr; }
  .fb-pipe { display: none; }
}

/* FAQ */
.lm-faq { padding: var(--gutter) 0; }
.faq-q {
  width: 100%;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  background: none; border: none; cursor: pointer; padding: 0;
  font-family: inherit; font-size: 17px; font-weight: 600;
  color: var(--ink); text-align: left;
}
.faq-toggle {
  width: 28px; height: 28px; flex-shrink: 0;
  border-radius: 999px; background: var(--line-2);
  display: grid; place-items: center;
  font-size: 18px; line-height: 1;
  transition: background .2s, transform .2s;
}
.faq-item.open .faq-toggle {
  background: var(--teal-500); color: white; transform: rotate(45deg);
}
.faq-a {
  color: var(--muted); font-size: 15px; line-height: 1.55;
  max-width: 60ch; margin-top: 14px;
}
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
