/*
 * Landing pages: only what /css/marketing.css does not already provide.
 * Uses the site's tokens only (no new colours, no new fonts).
 * Breakpoints follow the site: 1024 / 768 / 480.
 */

.lp main { padding-top: 112px; }
.lp section { padding: 72px 0; }
.lp h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); text-wrap: balance; }
.lp h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); text-wrap: balance; margin-bottom: 16px; }
.lp h3 { font-size: 1.2rem; margin-bottom: 6px; }
.lp main p { color: var(--dark-light); }
.lp-narrow { max-width: 760px; }
.lp-section-title { text-align: center; margin-bottom: 40px; }
.lp-eyebrow {
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--primary-dark); margin-bottom: 12px;
}
.lp-subhead { font-size: 1.2rem; max-width: 34em; margin-top: 18px; }
.lp-lead { font-size: 1.25rem; font-weight: 700; color: var(--dark); margin-bottom: 24px; }
.lp-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.lp-actions .btn, .lp-price-cta { min-height: 48px; }
.lp-btn-whatsapp { background: var(--secondary); color: var(--dark); border: 0; }
.lp-btn-whatsapp:hover { background: var(--secondary-dark); color: var(--dark); }

/* 1. Hero */
.lp .lp-hero { position: relative; padding: 0; background: var(--dark); color: var(--white); overflow: hidden; }
.lp-hero-inner { position: relative; z-index: 1; padding-top: 96px; padding-bottom: 96px; }
.lp-hero h1, .lp-hero .lp-subhead { color: var(--white); }
.lp-hero .lp-eyebrow { color: var(--secondary); }
.lp-hero-text { max-width: 600px; }
.lp-hero--overlay .lp-hero-media { position: absolute; inset: 0; }
.lp-hero--overlay .lp-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 65% center; }
.lp-hero--overlay::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(26, 31, 54, 0.92) 0%, rgba(26, 31, 54, 0.78) 45%, rgba(26, 31, 54, 0.15) 100%);
}
.lp-hero--split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.lp-hero--split .lp-hero-media { order: 2; }
.lp-hero--split .lp-hero-media img { width: 100%; height: auto; display: block; }
.lp-hero--split .lp-proof { grid-column: 1 / -1; order: 3; }
.lp-proof { position: relative; z-index: 1; background: rgba(26, 31, 54, 0.96); border-top: 1px solid rgba(255, 255, 255, 0.12); }
.lp-proof-list { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: 20px; padding-bottom: 20px; }
.lp-proof-list li { display: flex; flex-direction: column; }
.lp-proof-list strong { font-size: 1.5rem; font-weight: 800; color: var(--white); font-variant-numeric: tabular-nums; }
.lp-proof-list span { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255, 255, 255, 0.8); }

/* 2. Pains / 4. Features / 7. Network: text beside an optional image */
.lp-pains, .lp-features, .lp-network { display: grid; gap: 48px; align-items: center; }
.lp-pains--media, .lp-features--media, .lp-network--media { grid-template-columns: 1.1fr 0.9fr; }
.lp-pains-media img, .lp-features-media img, .lp-network-media img { width: 100%; height: auto; display: block; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.lp-pain-list { list-style: none; display: grid; gap: 14px; }
.lp-pain-list li {
  position: relative; padding: 16px 18px 16px 48px; background: var(--light); border-radius: var(--radius-md);
  color: var(--dark); font-size: 1.05rem;
}
.lp-pain-list li::before {
  content: ""; position: absolute; left: 18px; top: 22px; width: 14px; height: 14px; border-radius: 50%;
  border: 3px solid var(--danger);
}
.lp-feature-list { list-style: none; display: grid; gap: 20px; }
.lp-feature-list li { padding-left: 18px; border-left: 3px solid var(--secondary); }
.lp-feature-list p { margin: 0; }

/* 3. Use cases */
.lp-cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
/* Four cards: two rows of two, so none sits alone in a row. */
.lp-cases:has(> .lp-case:nth-child(4):last-child) { grid-template-columns: repeat(2, 1fr); }
.lp-case { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); display: flex; flex-direction: column; }
.lp-case picture img { width: 100%; height: auto; display: block; aspect-ratio: 16 / 9; object-fit: cover; }
.lp-case-body { padding: 20px 22px 24px; }
.lp-case-body p { margin: 0; }
.lp-case--text .lp-case-body { padding-top: 28px; border-top: 4px solid var(--primary); }
.lp-case h3 a { color: var(--dark); }
.lp-case-link { margin-top: 12px !important; font-weight: 600; }
.lp-case-link a { display: inline-block; min-height: 44px; padding-top: 10px; }

/* 5. Pricing */
.lp-price-card {
  max-width: 520px; margin: 0 auto; background: var(--white); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg); padding: 32px; display: flex; flex-direction: column; gap: 20px;
}
.lp-price-rail { font-weight: 700; color: var(--primary-dark); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.85rem; margin: 0; }
.lp-price-terms { display: grid; gap: 12px; margin: 0; }
.lp-price-terms div { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--lighter); }
.lp-price-terms dt { color: var(--dark-light); }
.lp-price-terms dd { margin: 0; font-weight: 800; font-size: 1.25rem; color: var(--dark); font-variant-numeric: tabular-nums; }
.lp-price-note { font-size: 0.92rem; margin: 0; }
.lp-price-note a { text-decoration: underline; }

/* 6. Protection: white, between the grey pricing and network bands */
.lp-protection { background: var(--white); text-align: center; }
.lp-protection .lp-narrow { margin: 0 auto; }
.lp-protection-text { max-width: 760px; margin: 0 auto; }
.lp-protection-points { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 32px; text-align: left; }
.lp-protection-points li { padding: 20px 22px; border-radius: var(--radius-lg); background: var(--light); }
.lp-protection-points p { margin: 0; }
@media (max-width: 768px) { .lp-protection-points { grid-template-columns: 1fr; } }

/* 7. Network */
.lp-network-logo { height: 40px; width: auto; margin-bottom: 16px; }

/* 8. Steps */
.lp-steps { list-style: none; counter-reset: lpstep; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.lp-steps li { counter-increment: lpstep; position: relative; padding: 56px 22px 22px; background: var(--light); border-radius: var(--radius-lg); }
.lp-steps li::before {
  content: counter(lpstep); position: absolute; top: 18px; left: 22px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--primary); color: var(--white); font-weight: 800; display: grid; place-items: center;
}
.lp-steps p { margin: 0; }
.lp-ready { margin: 32px auto 0; max-width: 760px; padding: 24px 28px; border: 2px dashed var(--lighter); border-radius: var(--radius-lg); }
.lp-ready ul { margin: 8px 0 0 20px; display: grid; gap: 6px; color: var(--dark); }

/* 9. FAQ */
.lp-faq { display: grid; gap: 12px; }
.lp-faq details { background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.lp-faq summary { cursor: pointer; padding: 18px 20px; font-weight: 600; color: var(--dark); min-height: 44px; list-style-position: inside; }
.lp-faq summary:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: var(--radius-md); }
.lp-faq details p { padding: 0 20px 18px; margin: 0; }

/* 10. Final CTA */
.lp-final { text-align: center; }
.lp-final .lp-actions { justify-content: center; }
.lp-share { justify-content: center; margin-top: 36px; }

/* Testimonial (renders only for an approved quote) */
.lp-quote { max-width: 760px; margin: 0 auto; text-align: center; }
.lp-quote blockquote { font-size: 1.35rem; color: var(--dark); }
.lp-quote figcaption { margin-top: 12px; color: var(--dark-light); }

/* Footer: headings as h2 for outline order, styled like the site's h5. */
.footer .lp-footer-h { font-size: 1.25rem; color: var(--white); margin-bottom: 20px; }

/* Directory */
.lp-dir-group { font-size: 1.4rem; margin: 32px 0 16px; }
.lp-dir-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.lp-dir-list a { display: flex; flex-direction: column; gap: 4px; padding: 20px; border-radius: var(--radius-md); background: var(--light); min-height: 44px; }
.lp-dir-list strong { color: var(--dark); }
.lp-dir-list span { color: var(--dark-light); font-size: 0.95rem; }

@media (max-width: 1024px) {
  .lp-cases { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .lp main { padding-top: 72px; }
  .lp section { padding: 52px 0; }
  .lp-hero-inner { padding-top: 64px; padding-bottom: 64px; }
  .lp-hero--overlay::after { background: linear-gradient(180deg, rgba(26, 31, 54, 0.88) 0%, rgba(26, 31, 54, 0.82) 100%); }
  .lp-hero--split { grid-template-columns: 1fr; }
  .lp-hero--split .lp-hero-media { order: 0; }
  .lp-proof-list { grid-template-columns: repeat(2, 1fr); }
  .lp-pains--media, .lp-features--media, .lp-network--media { grid-template-columns: 1fr; gap: 28px; }
  .lp-cases, .lp-steps { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .lp-actions .btn { width: 100%; }
  .lp-price-card { padding: 24px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .lp * { transition: none !important; }
}
/* No backdrop blur over the hero photo: it cost ~100-600 ms of main-thread time on mobile. */
.lp .navbar { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--white); }
