/**
 * Homepage (landing.php) — layout, dark theme, accessibility, responsive fixes.
 */

/* —— Dark-first surface (#0A0C10) —— */
html[data-lp-theme="dark"],
html[data-lp-theme="dark"] body.lp-body {
  --eb-page-bg: #0a0c10;
  --eb-bg: #0a0c10;
  --eb-card: #14161c;
  --eb-midnight: #0a0c10;
  --eb-text: #e8e8e8;
  --eb-text-muted: #a3a8b4;
  --eb-heading-on-dark: #f0f0f0;
  --eb-text-on-dark: #e8e8e8;
  background-color: #0a0c10;
  color: #e8e8e8;
}

html[data-lp-theme="dark"] .lp-h1,
html[data-lp-theme="dark"] .lp-h2,
html[data-lp-theme="dark"] .lp-h3,
html[data-lp-theme="dark"] .eb-hero-cine__title {
  color: #f0f0f0;
  letter-spacing: 0.02em;
}

/* —— Layout & containers —— */
.lp-container {
  width: min(1200px, 100%);
  margin-inline: auto;
  padding-inline: clamp(24px, 5vw, 80px);
}

@media (max-width: 768px) {
  .lp-container {
    padding-inline: 16px;
  }
}

body.lp-body {
  padding-top: var(--eb-nav-h, 76px);
  overflow-x: clip;
}

.eb-home-main {
  flex: 1 0 auto;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.lp-section {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

/* —— Typography (fluid) —— */
.lp-h1,
.eb-hero-cine__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.12;
  letter-spacing: 0.02em;
}

.lp-h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.lp-h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.75rem);
  line-height: 1.35;
  letter-spacing: 0.015em;
}

body.lp-body,
.lp-lead,
.lp-card__text {
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  line-height: 1.55;
}

/* —— Buttons —— */
.lp-btn {
  min-height: 44px;
  padding: 12px 24px;
  font-size: max(0.9rem, 14px);
  border-radius: 8px;
  width: auto;
  max-width: 100%;
}

.lp-btn:focus-visible,
.lp-nav__link:focus-visible,
.lp-nav__trigger:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #4f8ef7;
  outline-offset: 3px;
}

.lp-cta-band__actions .lp-btn {
  width: auto;
}

/* —— Cards (dark) —— */
html[data-lp-theme="dark"] .lp-card,
html[data-lp-theme="dark"] .eb-glass-card,
html[data-lp-theme="dark"] .eb-price-card,
html[data-lp-theme="dark"] .eb-metric-card,
html[data-lp-theme="dark"] .eb-scale__tier,
html[data-lp-theme="dark"] .lp-migrate-step {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  padding: clamp(16px, 3vw, 24px);
}

/* —— Forms (enterprise + marketing) —— */
html[data-lp-theme="dark"] .mkt-form input,
html[data-lp-theme="dark"] .mkt-form select,
html[data-lp-theme="dark"] .mkt-form textarea,
html[data-lp-theme="dark"] .eb-pricing-enterprise__form input,
html[data-lp-theme="dark"] .eb-pricing-enterprise__form select,
html[data-lp-theme="dark"] .eb-pricing-enterprise__form textarea {
  background: #1a1c22;
  border: 1px solid #2e3038;
  color: #e8e8e8;
  border-radius: 8px;
}

html[data-lp-theme="dark"] .mkt-form input::placeholder,
html[data-lp-theme="dark"] .mkt-form textarea::placeholder {
  color: #e8e8e8;
  opacity: 0.5;
}

/* —— Tables —— */
.eb-pricing-matrix__wrap,
.lp-demo__table-wrap,
.eb-proof-frame {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.eb-pricing-matrix__table th,
.eb-pricing-matrix__table td {
  padding: 12px 16px;
}

html[data-lp-theme="dark"] .eb-pricing-matrix__table thead th {
  background: rgba(255, 255, 255, 0.06);
}

html[data-lp-theme="dark"] .eb-pricing-matrix__table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.03);
}

/* —— Responsive grids —— */
@media (max-width: 480px) {
  .eb-pillars__grid,
  .eb-india-ready__grid,
  .lp-grid-3,
  .lp-integration-grid,
  .eb-pricing-teaser__grid {
    grid-template-columns: 1fr !important;
  }

  .eb-scale__path {
    grid-template-columns: 1fr !important;
  }

  .lp-integration-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 768px) {
  .eb-pricing-cards__grid {
    grid-template-columns: 1fr;
  }

  .eb-platform-net__chips {
    max-width: 100%;
  }
}

.lp-integration-grid img,
.lp-brand__logo,
.eb-founder__logo-img {
  max-width: 100%;
  height: auto;
}

/* Demo overflow on mobile */
#demo .lp-demo-app,
.eb-proof-frame,
.lp-demo__shell {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

/* —— Footer always visible —— */
.eb-site-footer-wrap {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative;
  z-index: 40;
  width: 100%;
  margin-top: auto;
  flex-shrink: 0;
  clear: both;
  background: #0b1220;
}

#footer.lp-footer,
.lp-footer.lp-footer--shell.mkt-footer {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  min-height: 120px;
}

body.eb-has-mobile-sticky {
  padding-bottom: calc(52px + env(safe-area-inset-bottom, 0px));
}

/* —— Nav stacking —— */
.eb-site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
}

.lp-drawer {
  z-index: 1300;
}

.lp-mega {
  z-index: 1200;
}
