/* ==========================================================================
   campaigns-page.css — page-specific styles for the Campaigns landing page.
   Builds on colors_and_type.css + styles.css + pages.css (loaded first).
   ========================================================================== */

/* ── Hero ── */
.camp-hero {
  padding: clamp(72px, 9vw, 120px) 0 clamp(56px, 7vw, 96px);
  overflow: hidden;
}

/* Centered single-column hero layout */
.camp-hero-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
  max-width: 860px;
  margin: 0 auto;
}

/* Pill badge */
.camp-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: 9999px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--slate-700);
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
}

.camp-h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0 0 24px;
  color: var(--slate-950);
}

.camp-h1-hl {
  color: var(--accent-xos);
}

.camp-hero-sub {
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: var(--leading-relaxed);
  color: var(--muted-foreground);
  margin: 0 0 36px;
  white-space: nowrap;
}

/* Actions row: buttons + floating puzzle graphic */
.camp-hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.camp-cta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Ghost / outline secondary button for hero */
.camp-ghost-btn {
  border-color: var(--slate-300);
  color: var(--slate-800);
  font-weight: 600;
  background: transparent;
}
.camp-ghost-btn:hover {
  background: var(--slate-50);
  border-color: var(--slate-400);
}

/* Floating puzzle piece beside CTAs */
.camp-hero-puzzle {
  width: 160px;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 6px 18px oklch(0 0 0 / 0.09));
}

@media (max-width: 640px) {
  .camp-hero-actions { flex-direction: column; align-items: center; }
  .camp-hero-puzzle { display: none; }
  .camp-h1 { font-size: clamp(1.65rem, 7vw, 2.1rem); }
  .camp-hero-sub {
    white-space: normal;
    font-size: 15px;
    max-width: 100%;
    padding: 0 8px;
  }
}

/* ── Managed service callout ── */
.camp-managed {
  padding: 40px 0;
  border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
}

.managed-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.managed-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 760px) {
  .managed-cols { grid-template-columns: 1fr; }
}

.managed-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.managed-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 700;
  color: var(--slate-900);
  letter-spacing: -0.01em;
  box-shadow: var(--shadow-sm);
  align-self: flex-start;
}

.managed-body {
  font-size: 16px;
  line-height: var(--leading-relaxed);
  color: var(--muted-foreground);
  margin: 0;
}

.managed-body strong { color: var(--slate-900); }

.managed-graphic {
  display: flex;
  align-items: center;
  justify-content: center;
}

.managed-graphic img {
  max-width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: contain;
}

/* ── Video section ── */
.camp-video-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 52px;
  align-items: center;
}

@media (max-width: 900px) {
  .camp-video-inner { grid-template-columns: 1fr; }
}

.camp-video-copy .section-head {
  text-align: left;
  align-items: flex-start;
}

.camp-video-copy .h1-section {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.hubspot-graphic {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}

.hubspot-graphic img {
  width: 120px;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 6px 18px oklch(0 0 0 / 0.09));
}

.hubspot-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted-foreground);
  letter-spacing: -0.01em;
}

/* ── Video embed ── */
.video-wrap {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--slate-950);
  aspect-ratio: 16 / 9;
}

.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ── How it works — 3 screenshot cards ── */
.hiw-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

@media (max-width: 900px) { .hiw-cards { grid-template-columns: 1fr; } }

.hiw-card {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: box-shadow 200ms ease, border-color 200ms ease;
}

.hiw-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--xos-primary-200);
}

.hiw-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--slate-100);
}

.hiw-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  display: block;
}

.hiw-card-body {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hiw-card-body h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--slate-950);
}

.hiw-card-body p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted-foreground);
  margin: 0;
}

/* Single-line heading override — scales down to avoid wrapping */
.nowrap-heading,
.hiw-heading {
  white-space: nowrap;
  font-size: clamp(1.2rem, 2.6vw, 2.2rem);
}

@media (max-width: 600px) {
  .nowrap-heading,
  .hiw-heading { white-space: normal; }
}

/* ── Platform feature cards (3-up) ── */
.camp-platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

@media (max-width: 860px) { .camp-platform-grid { grid-template-columns: 1fr; } }

.camp-platform-card {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: 18px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow 200ms ease, border-color 200ms ease;
}

.camp-platform-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--xos-primary-200);
}

.cpc-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--accent-xos-soft);
  color: var(--accent-xos);
  display: flex;
  align-items: center;
  justify-content: center;
}

.camp-platform-card h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--slate-950);
}

.camp-platform-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted-foreground);
  margin: 0;
}

/* ── Who it's for ── */
.camp-who-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 40px;
  max-width: 840px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 640px) { .camp-who-grid { grid-template-columns: 1fr; } }

.camp-who-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  padding: 20px;
}

.camp-who-arrow {
  color: var(--accent-xos);
  flex-shrink: 0;
  margin-top: 1px;
}

.camp-who-item p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--slate-800);
  margin: 0;
}

/* ── FAQ ── */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  overflow: hidden;
  background: white;
}

.faq-item {
  border-bottom: 1px solid var(--slate-200);
}

.faq-item:last-child { border-bottom: none; }

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  color: var(--slate-950);
  letter-spacing: -0.01em;
  transition: background 150ms ease;
  font-family: var(--font-sans);
}

.faq-q:hover { background: var(--slate-50); }

.faq-chev {
  flex-shrink: 0;
  color: var(--muted-foreground);
  transition: transform 220ms ease;
}

.faq-item.open .faq-chev { transform: rotate(180deg); }
.faq-item.open .faq-q { color: var(--accent-xos); }

.faq-a {
  padding: 0 22px 20px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted-foreground);
}
