/* Phase 12H — Marketing page enhancements */

/* Never hide marketing / blog body behind scroll-reveal */
.mkt-page [data-lp-reveal],
.seo-page.mkt-page [data-lp-reveal],
.lp-body.seo-body .mkt-page [data-lp-reveal] {
  opacity: 1 !important;
  transform: none !important;
}

/* Light-theme marketing / SEO pages (seo-pages.css targets dark surfaces) */
.lp-body.seo-body .seo-page,
.lp-body.seo-body .mkt-page {
  position: relative;
  z-index: 1;
  padding-top: calc(var(--eb-nav-h) + 1rem);
}
.lp-body.seo-body .seo-breadcrumb,
.lp-body.seo-body .seo-breadcrumb a {
  color: var(--eb-text-muted);
}
.lp-body.seo-body .seo-card,
.lp-body.seo-body .seo-related__link,
.lp-body.seo-body .seo-blog-card {
  background: var(--eb-card);
  border-color: var(--eb-border);
  color: var(--eb-text);
}
.lp-body.seo-body .seo-card p,
.lp-body.seo-body .seo-related__link span {
  color: var(--eb-text-muted);
  opacity: 1;
}
.lp-body.seo-body .seo-ai-block,
.lp-body.seo-body .mkt-ai-block {
  background: var(--eb-surface-elevated, #f8fafc);
  border-color: var(--eb-border);
  color: var(--eb-text);
}
.lp-body.seo-body .seo-faq__item {
  border-color: var(--eb-border);
}
.lp-body.seo-body .seo-cta-band {
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.08), transparent);
  color: var(--eb-text);
}
.lp-body.seo-body .seo-section { margin: 2rem 0; }
.lp-body.seo-body .seo-related__grid,
.lp-body.seo-body .seo-blog-list {
  gap: 1rem;
  align-items: stretch;
}
.lp-body.seo-body .seo-blog-card {
  padding: 1.25rem;
  border-radius: var(--eb-radius);
  box-shadow: var(--eb-shadow-sm);
}
.lp-body.seo-body .seo-blog-card h2 {
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
  color: var(--eb-text);
}
.lp-body.seo-body .seo-blog-meta { color: var(--eb-text-muted); }
.lp-body.seo-body .seo-footer__grid a { color: var(--eb-text-muted); }
.lp-body.seo-body .seo-footer__copy { color: var(--eb-text-soft); border-color: var(--eb-border); }

/* Hub explorer cards */
.mkt-hub-grid { margin-top: 1.25rem; }
.mkt-hub-card { position: relative; padding-bottom: 2.25rem; }
.mkt-hub-card__link {
  position: absolute;
  bottom: 1rem;
  left: 1.25rem;
  font-size: 13px;
  font-weight: 600;
  color: var(--eb-royal);
}
.mkt-related__links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.mkt-cap-grid .mkt-cap-card { min-height: 4rem; display: flex; align-items: center; }

/* Pricing — animated cards + comparison table */
.mkt-pricing-section { margin: 2rem 0; }
.mkt-pricing-grid--cards {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .mkt-pricing-grid--cards { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .mkt-pricing-grid--cards { grid-template-columns: repeat(4, 1fr); }
}
.mkt-price-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  animation: mkt-price-in 0.55s var(--eb-ease) backwards;
  animation-delay: calc(var(--mkt-price-i, 0) * 0.08s);
  transition: transform 0.35s var(--eb-ease), box-shadow 0.35s var(--eb-ease);
}
@keyframes mkt-price-in {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.mkt-price-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--eb-shadow-lg);
}
.mkt-price-card--featured {
  border: 2px solid var(--eb-royal);
  box-shadow: 0 12px 40px var(--eb-glow-royal);
}
.mkt-price-card__badge { margin-bottom: 0.5rem; }
.mkt-price-card__name { margin: 0; font-size: 1.25rem; }
.mkt-price-card__tagline { font-size: 13px; color: var(--eb-text-muted); margin: 4px 0 0; }
.mkt-price-card__amount { margin: 1rem 0 0.75rem; }
.mkt-price-card__highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  font-size: 12px;
  color: var(--eb-royal);
  font-weight: 600;
}
.mkt-price-card__highlights li { padding: 2px 0; }
.mkt-price-card__features { flex: 1; margin-bottom: 1rem; }
.mkt-price-card__cta { width: 100%; margin-top: auto; }
.mkt-pricing-note {
  text-align: center;
  font-size: 13px;
  color: var(--eb-text-muted);
  margin: 1.25rem 0 2rem;
}
.mkt-pricing-compare { margin-top: 2.5rem; }
.mkt-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--eb-border);
  background: var(--eb-card);
  -webkit-overflow-scrolling: touch;
}
.mkt-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.mkt-compare-table th,
.mkt-compare-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--eb-border);
  text-align: center;
  color: var(--eb-text);
}
.mkt-compare-table th:first-child,
.mkt-compare-table td:first-child {
  text-align: left;
  font-weight: 500;
}
.mkt-compare-table thead {
  background: var(--eb-surface-elevated, #f1f5f9);
}
.mkt-compare-table thead th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--eb-text-muted); }
#industries { scroll-margin-top: var(--eb-nav-h); }
#pricing { scroll-margin-top: var(--eb-nav-h); }

/* Homepage — customer success inline tabs */
.mkt-success-tabs { margin-top: 1.5rem; position: relative; z-index: 2; }
.mkt-success-tabs__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 3;
}
.mkt-success-tabs__nav button {
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--eb-border-strong);
  background: var(--eb-card);
  color: var(--eb-text-muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  pointer-events: auto;
  position: relative;
  z-index: 4;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.mkt-success-tabs__panels {
  position: relative;
  z-index: 1;
}
.mkt-success-tabs__nav button.is-active,
.mkt-success-tabs__nav button:hover {
  border-color: var(--eb-royal);
  color: var(--eb-royal);
  background: rgba(37, 99, 235, 0.08);
}
.mkt-success-tabs__panel { display: none; }
.mkt-success-tabs__panel.is-active { display: block; }
.mkt-success-tabs__panel .lp-card__text { max-width: 60ch; }

/* Homepage — interactive demo section spacing */
#demo.lp-section { scroll-margin-top: var(--eb-nav-h); }
#customer-success { scroll-margin-top: var(--eb-nav-h); }
.mkt-card-link { text-decoration: none; color: inherit; display: block; transition: transform 0.2s, box-shadow 0.2s; }
.mkt-card-link:hover { transform: translateY(-2px); box-shadow: var(--eb-shadow-md, 0 8px 24px rgba(0,0,0,0.08)); }
.mkt-trust-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; }
.mkt-trust-pill { font-size: 12px; font-weight: 600; padding: 0.35rem 0.75rem; border-radius: 999px; background: rgba(16,185,129,0.12); color: #059669; border: 1px solid rgba(16,185,129,0.25); }
.mkt-payment-logos { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0.75rem 0; }
.mkt-payment-logo { font-size: 13px; font-weight: 600; padding: 0.5rem 1rem; border-radius: 8px; background: var(--eb-surface-elevated, #f1f5f9); color: var(--eb-text-muted); }
.mkt-payment-logos--brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.25rem;
}
.mkt-payment-logo--brand img,
.mkt-payment-logos--brand .mkt-payment-logo img {
  display: block;
  height: 36px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
  padding: 8px 14px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}
.lp-section--dark .mkt-payment-logos--brand { margin-top: 1.5rem; }
/* Homepage + marketing: tab panels (no parent opacity hide) */
.lp-body .mkt-success-tabs__panel { display: none; }
.lp-body .mkt-success-tabs__panel.is-active { display: block !important; }
.mkt-ai-block { margin: 2rem 0; padding: 1.25rem; border-radius: 12px; background: var(--eb-surface-elevated, #f8fafc); border: 1px solid var(--eb-border, #e2e8f0); }
.mkt-bullets { line-height: 1.8; color: var(--eb-text-muted); }
.mkt-compare__links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.mkt-form label { display: block; margin-bottom: 1rem; font-size: 14px; }
.mkt-form input, .mkt-form select { display: block; width: 100%; margin-top: 0.35rem; padding: 0.6rem 0.75rem; border-radius: 8px; border: 1px solid var(--eb-border); }
.mkt-footer__trust, .mkt-footer__payments { margin-bottom: 2rem; }
.mkt-hero { margin-bottom: 2rem; }
.mkt-home-trust { padding-top: 2rem; }
.mkt-why-grid .lp-card { height: 100%; }

/* Landing homepage: seo-table is for dark SEO pages — override on light lp-body */
.lp-body .mkt-home-compare .seo-table-wrap {
  margin-top: 1rem;
  border-radius: 12px;
  border: 1px solid var(--eb-border, #e2e8f0);
  background: var(--eb-surface-elevated, #fff);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}
.lp-body .mkt-home-compare .seo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  color: var(--eb-text, #0f172a);
}
.lp-body .mkt-home-compare .seo-table thead {
  background: var(--eb-surface-muted, #f1f5f9);
}
.lp-body .mkt-home-compare .seo-table th,
.lp-body .mkt-home-compare .seo-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--eb-border, #e2e8f0);
  color: var(--eb-text, #0f172a);
}
.lp-body .mkt-home-compare .seo-table th {
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--eb-text-muted, #475569);
}
.lp-body .mkt-home-compare .seo-table tbody tr:last-child td {
  border-bottom: none;
}
.lp-body .mkt-home-compare .seo-table td:first-child {
  font-weight: 500;
  min-width: 12rem;
}
.lp-body .mkt-home-compare .seo-table th:not(:first-child),
.lp-body .mkt-home-compare .seo-table td:not(:first-child) {
  text-align: center;
}
@media (max-width: 900px) {
  .lp-body .mkt-home-compare .seo-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .lp-body .mkt-home-compare .seo-table {
    min-width: 36rem;
  }
}
