/* ─────────────────────────────────────────────
   Convert Feature-Page Sections — shared component
   Use with tokens.css, buttons.css, cards.css.

   Reusable section / card / callout / FAQ / closing patterns for the
   Convert feature-page LP family (A/B Testing, Multivariate, MAB, Shopify,
   MCP, API, Developer Features). Link this AFTER cards.css so the cream
   card override below wins.

   Navbar + footer are NOT here — they stay inlined per LP (see /_shared/README.md).
   ───────────────────────────────────────────── */

:root { color-scheme: light; }
html { scroll-behavior: smooth; }

/* ── Cream cards ──
   Feature-page cards use a flat cream surface instead of the cards.css
   white→tint radial gradient. The blue/violet/green variant classes still
   apply (kept in markup) but resolve to the same cream surface here.
   opacity/transform are reset because feature LPs render cards statically —
   they do not use the cards.css scroll-reveal (no IntersectionObserver). */
.bento-card,
.bento-card--blue,
.bento-card--violet,
.bento-card--green {
  background: #FAFAF7;
  border-color: #EEE9DC;
  opacity: 1;
  transform: none;
}

/* ── Hero ── */
.lp-hero {
  position: relative;
  overflow: hidden;
  background: #FFFFFF;
  padding: calc(var(--navbar-height) + 88px) var(--section-px) 96px;
}
.lp-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url('/_shared/assets/bg-variations/convert-bg-variation-1-2.png') center/cover no-repeat;
  opacity: 0.45;
  mask-image: linear-gradient(180deg, black 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, black 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}
.lp-hero-inner {
  position: relative; z-index: 1;
  max-width: var(--prose-wide);
  margin: 0 auto;
}
.lp-hero h1 {
  font-size: var(--text-hero);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
  margin: 0 0 20px;
}
.lp-hero-sub {
  font-size: var(--text-body-lg);
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin: 0 0 12px;
  max-width: var(--prose-default);
}
.lp-hero-sub strong { color: var(--color-text-primary); font-weight: 600; }
.lp-hero-lead {
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text-secondary);
  margin: 0 0 28px;
  max-width: var(--prose-default);
}

/* ── CTA row ── */
.lp-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.lp-microcopy {
  margin: 14px 0 0;
  font-size: var(--text-small);
  color: var(--color-text-muted);
}

/* ── Trust strips ── */
.lp-trust {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.lp-trust-row {
  display: flex;
  align-items: center;
  gap: 16px 24px;
  flex-wrap: wrap;
}
.lp-trust-label {
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.lp-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.lp-chip {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--color-ink-400);
  background: #fff;
  font-size: 12px;
  color: var(--color-text-secondary);
  white-space: nowrap;
}
.lp-chip--logo { color: var(--color-text-muted); }

/* ── Section head ── */
.lp-section { border-top: 1px solid var(--color-ink-300); }
.lp-section-head { max-width: var(--prose-wide); margin: 0 0 36px; }
.lp-section-head h2 {
  font-size: var(--text-section);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
  margin: 0 0 14px;
}
.lp-section-head p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin: 0 0 10px;
  max-width: var(--prose-default);
}
.lp-section-head p:last-child { margin-bottom: 0; }
.lp-section-head p strong { color: var(--color-text-primary); font-weight: 600; }

/* ── Card grid ── */
.lp-grid { display: grid; gap: var(--card-gap); }
.lp-grid--2 { grid-template-columns: repeat(2, 1fr); }
.lp-grid--3 { grid-template-columns: repeat(3, 1fr); }
.lp-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) {
  .lp-grid--3, .lp-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .lp-grid--2, .lp-grid--3, .lp-grid--4 { grid-template-columns: 1fr; }
}

/* ── Card body ── */
.lp-card-body { padding: 28px 28px 32px; }
.lp-card-body .kicker { margin-bottom: 12px; }
.lp-card-body h3 {
  font-size: var(--text-card-title);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-text-primary);
  margin: 0 0 10px;
}
.lp-card-body p {
  font-size: var(--text-body);
  line-height: 1.65;
  color: var(--color-text-secondary);
  margin: 0 0 12px;
}
.lp-card-body p:last-child { margin-bottom: 0; }
.lp-card-body p.lp-small {
  font-size: var(--text-small);
  color: var(--color-text-muted);
}

/* ── List ── */
.lp-list {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lp-list li {
  position: relative;
  padding-left: 18px;
  font-size: var(--text-body);
  line-height: 1.55;
  color: var(--color-text-secondary);
}
.lp-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--color-violet-700);
}
.lp-list li strong { color: var(--color-text-primary); font-weight: 600; }

/* ── Note inside a card ── */
.lp-card-note {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--color-blue-50);
  border: 1px solid var(--color-blue-100);
}
.lp-card-note strong {
  display: block;
  font-size: var(--text-ui);
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 4px;
}
.lp-card-note p {
  margin: 0;
  font-size: var(--text-small);
  line-height: 1.6;
  color: var(--color-text-secondary);
}

/* ── Callout ── */
.lp-callout {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 22px 26px;
  border-radius: var(--card-radius);
  background: var(--color-violet-100);
  border: 1px solid var(--color-violet-200);
}
.lp-callout p {
  margin: 0;
  font-size: var(--text-body);
  line-height: 1.55;
  color: var(--color-text-secondary);
}
.lp-callout p strong { color: var(--color-text-primary); font-weight: 600; }

/* ── FAQ ── */
.faq-section {
  background: radial-gradient(ellipse at -5% -5%, #ffffff 25%, var(--color-ink-300) 100%);
  border-top: 1px solid var(--color-ink-300);
}
.faq-h2 {
  font-size: var(--text-section);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
  text-align: center;
  margin: 0 0 48px;
}
.faq-list {
  max-width: var(--prose-wide);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--color-ink-400);
  border-radius: var(--card-radius);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq-item[open] {
  border-color: var(--color-violet-200);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.08);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 26px;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item[open] summary { font-weight: 600; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 22px;
  color: var(--color-violet-700);
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: '−'; }
.faq-body {
  padding: 0 26px 24px;
  font-size: var(--text-body);
  line-height: 1.7;
  color: var(--color-text-secondary);
}
.faq-body p { margin: 0; }

/* ── Closing CTA ── */
.closing-section {
  position: relative;
  overflow: hidden;
  background: url('/_shared/assets/bg-variations/convert-bg-variation-2-2.png') center/cover no-repeat, var(--color-blue-50);
  border-top: 1px solid var(--color-ink-300);
}
.closing-section > .container { position: relative; z-index: 1; }
.closing-inner { max-width: var(--prose-default); margin: 0 auto; text-align: center; }
.closing-inner h2 {
  font-size: var(--text-section);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--color-text-primary);
  margin: 0 0 14px;
}
.closing-inner p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin: 0 0 28px;
}
.closing-inner .lp-cta-row { justify-content: center; }
.closing-inner .lp-microcopy { margin-top: 16px; }
