/**
 * Homepage (index / landing) — light & dark contrast, footer visibility, deduped sections.
 */

:root {
  --eb-surface-elevated: #f1f5f9;
}

[data-lp-theme="dark"] {
  --eb-surface-elevated: #1e293b;
}

/* —— Page shell —— */
body.lp-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.eb-home-main {
  flex: 1 0 auto;
  position: relative;
  z-index: 1;
  width: 100%;
}

.eb-site-header {
  flex-shrink: 0;
}

body.lp-body > .lp-ambient {
  z-index: 0;
}

body.lp-body > *:not(.lp-ambient):not(.eb-site-header):not(.eb-site-footer-wrap):not(.eb-mobile-sticky):not(.lp-cmd-overlay) {
  flex-shrink: 0;
}

.eb-site-footer-wrap {
  position: relative;
  z-index: 30;
  flex-shrink: 0;
  width: 100%;
  margin-top: auto;
}

#footer.lp-footer,
.lp-footer.lp-footer--shell.mkt-footer {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative;
  z-index: 30;
  background: #0b1220 !important;
  color: #94a3b8;
}

/* Footer text always readable on navy (both themes) */
.lp-footer .lp-footer__tagline,
.lp-footer .lp-footer__made-in--prominent,
.lp-footer .lp-footer__payments-title,
.lp-footer .lp-footer__col-title,
.lp-footer .lp-footer__trust-contact,
.lp-footer .lp-footer__trust-contact p,
.lp-footer .lp-footer__legal--shell .lp-footer__credit-sub {
  color: #94a3b8;
}

.lp-footer .lp-footer__trust-contact strong,
.lp-footer .lp-footer__made-in--prominent,
.lp-footer .lp-footer__legal--shell .lp-footer__credit-main {
  color: #f1f5f9;
}

.lp-footer a,
.lp-footer .lp-footer__trust-contact a {
  color: #cbd5e1;
}

.lp-footer a:hover,
.lp-footer .lp-footer__trust-contact a:hover {
  color: #fff;
}

.lp-footer .lp-footer__col-list a {
  color: #cbd5e1;
}

/* Trust pills inside dark footer — override light-body rule */
.lp-footer .mkt-trust-pill--icon {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #e2e8f0 !important;
}

.lp-footer .mkt-trust-pill__icon {
  color: #60a5fa !important;
}

/* —— Typography contrast (light) —— */
[data-lp-theme="light"] .lp-h1,
[data-lp-theme="light"] .lp-h2,
[data-lp-theme="light"] .lp-h3,
[data-lp-theme="light"] .eb-hero-cine__title {
  color: var(--eb-deep-navy);
}

[data-lp-theme="light"] .lp-lead,
[data-lp-theme="light"] .lp-card__text,
[data-lp-theme="light"] .lp-integration-list li {
  color: var(--eb-text-muted);
}

[data-lp-theme="light"] .lp-micro {
  color: var(--eb-primary);
}

/* —— Typography contrast (dark) —— */
[data-lp-theme="dark"] .lp-h1,
[data-lp-theme="dark"] .lp-h2,
[data-lp-theme="dark"] .lp-h3,
[data-lp-theme="dark"] .eb-hero-cine__title,
[data-lp-theme="dark"] .lp-card__title {
  color: var(--eb-heading-on-dark);
}

[data-lp-theme="dark"] .lp-lead,
[data-lp-theme="dark"] .lp-card__text {
  color: var(--eb-text-muted);
}

[data-lp-theme="dark"] .lp-card {
  background: var(--eb-card);
  border-color: var(--eb-border);
}

[data-lp-theme="dark"] .lp-btn--ghost {
  color: var(--eb-text-muted);
  border-color: var(--eb-border-strong);
}

[data-lp-theme="dark"] .lp-btn--ghost:hover {
  color: var(--eb-primary);
  border-color: var(--eb-primary);
}

/* —— Founder / pilot / teaser —— */
.eb-founder__photo {
  background: var(--eb-surface-elevated);
}

.eb-founder__logo-panel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.35rem;
  border-radius: 14px;
  background: linear-gradient(145deg, #0b1220 0%, #1e293b 100%);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: var(--eb-shadow-sm);
}

.eb-founder__logo-img {
  display: block;
  width: min(200px, 100%);
  height: auto;
}

.eb-founder__brand-line {
  margin: 0.65rem 0 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--eb-primary);
}

.eb-founder__brand-line strong {
  color: var(--eb-text);
  font-weight: 700;
}

.eb-founder__copy p,
.eb-founder__copy a {
  color: var(--eb-text-muted);
}

.eb-founder__copy a {
  color: var(--eb-primary);
  font-weight: 600;
}

.eb-pilot__inner {
  background: color-mix(in srgb, var(--eb-primary) 8%, var(--eb-card));
  border-color: color-mix(in srgb, var(--eb-primary) 22%, var(--eb-border));
}

[data-lp-theme="dark"] .eb-pilot__inner {
  background: color-mix(in srgb, var(--eb-primary) 14%, var(--eb-card));
}

/* Product proof gallery tabs */
.eb-proof-gallery__tab {
  background: var(--eb-card);
  color: var(--eb-text-muted);
  border-color: var(--eb-border);
}

.eb-proof-gallery__tab.is-active {
  background: color-mix(in srgb, var(--eb-primary) 10%, var(--eb-card));
  color: var(--eb-primary);
  border-color: var(--eb-primary);
}

.eb-proof-gallery__prev,
.eb-proof-gallery__next {
  background: var(--eb-card);
  color: var(--eb-text);
  border-color: var(--eb-border);
}

.eb-proof-frame {
  border-color: var(--eb-border);
}

/* Proof frame uses app chrome — keep demo colors inside */
.eb-proof-slide__body .lp-demo__table th,
.eb-proof-slide__body .lp-demo__table td {
  color: #e2e8f0;
}

/* —— Platform / metrics —— */
.eb-platform-net__stage,
.eb-metric-card {
  background: var(--eb-card);
  border-color: var(--eb-border);
}

.eb-platform-net__chip-label,
.eb-metric-card__label {
  color: var(--eb-text);
}

.eb-metric-card__value {
  color: var(--eb-primary);
}

.eb-biz-flow__label {
  color: var(--eb-text);
}

/* —— Integrations —— */
.lp-integration-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--eb-text-muted);
}

.lp-integration__note {
  margin-top: 1rem;
  text-align: center;
}

/* —— CTA band —— */
.lp-cta-band__title {
  position: relative;
  z-index: 1;
  color: var(--eb-heading-on-dark) !important;
  margin-bottom: 1rem !important;
}

.lp-cta-band__lead {
  position: relative;
  z-index: 1;
  color: #cbd5e1 !important;
  max-width: 52ch;
  margin: 0 auto 1.5rem;
}

.lp-cta-band__actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
}

.lp-cta-band__btn {
  margin-left: 0 !important;
  color: #e2e8f0 !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
}

.lp-cta-band__btn:hover {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.45) !important;
}

.lp-cta-band .eb-wa-btn:hover {
  color: #6ee7b7 !important;
  border-color: rgba(110, 231, 183, 0.45) !important;
}

/* —— Pricing on homepage —— */
.lp-section--pricing .eb-pricing-engine,
.lp-section--pricing .eb-price-card,
.lp-section--pricing .eb-pricing-teaser__card {
  color: var(--eb-text);
}

[data-lp-theme="dark"] .eb-price-card__limits {
  background: color-mix(in srgb, var(--eb-bg) 80%, transparent);
}

/* —— FAQ —— */
.lp-faq details {
  background: var(--eb-card);
  border-color: var(--eb-border);
}

.lp-faq summary {
  color: var(--eb-text);
}

.lp-faq p {
  color: var(--eb-text-muted);
}

/* —— Mobile sticky (theme-aware) —— */
[data-lp-theme="dark"] .eb-mobile-sticky {
  background: var(--eb-card);
  border-top-color: var(--eb-border);
}

[data-lp-theme="dark"] .eb-mobile-sticky__btn {
  color: var(--eb-text);
}

[data-lp-theme="dark"] .eb-mobile-sticky__btn--primary {
  color: #fff;
}

/* —— India strip —— */
.eb-india-strip__item {
  color: var(--eb-text);
}

[data-lp-theme="dark"] .eb-india-strip {
  background: color-mix(in srgb, var(--eb-card) 90%, var(--eb-bg));
}

/* —— Dark sections (platform universe) —— */
.lp-section--dark .lp-h2,
.lp-section--dark .lp-h3,
.lp-section--dark .eb-glass-card {
  color: var(--eb-heading-on-dark);
}

.lp-section--dark .lp-lead,
.lp-section--dark p {
  color: var(--eb-text-soft);
}

.lp-section--dark .eb-glass-card .eb-scale__desc,
.lp-section--dark .eb-scale__tier .eb-scale__desc {
  color: var(--eb-text-dual);
}

.lp-section--dark .eb-glass-card .eb-scale__price {
  color: var(--eb-accent);
}

/* Payment logos in footer only */
.mkt-footer__payments .mkt-payment-logo__tile {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}
