/**
 * ExcelBills V2 — Unified design system (global consistency layer)
 * Loaded after eb-v2-landing.css; normalizes spacing, typography, buttons, cards, logo, responsive.
 */

/* ── Brand logo (full-color asset on dark pill) ── */
.eb-v2-brand__logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--eb-v2-brand-logo-pad-y) var(--eb-v2-brand-logo-pad-x);
  border-radius: var(--eb-v2-brand-logo-radius);
  background: var(--eb-v2-brand-logo-bg);
  line-height: 0;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset;
  flex-shrink: 0;
}

.eb-v2-brand__logo,
.eb-v2-nav__brand img,
.footer-bottom-bar__logo img {
  display: block;
  height: auto;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: none;
  opacity: 1;
  mix-blend-mode: normal;
}

.eb-v2-nav__brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 4px;
}

.eb-v2-nav__brand .eb-v2-brand__logo,
.eb-v2-nav__brand img {
  height: 34px;
}

.footer-bottom-bar__logo .eb-v2-brand__logo-wrap {
  padding: 6px 12px;
}

.footer-bottom-bar__logo .eb-v2-brand__logo,
.footer-bottom-bar__logo img {
  height: 36px;
}

/* ── Navbar rhythm ── */
.eb-v2-nav__inner {
  width: min(var(--eb-v2-max-wide), calc(100% - var(--eb-v2-gutter) * 2));
  margin-inline: auto;
  gap: 12px;
}

.eb-v2-nav__links {
  margin-left: clamp(8px, 2vw, 24px);
  gap: 4px;
}

.eb-v2-nav__actions {
  gap: 8px;
}

.eb-v2-nav__actions .eb-v2-btn {
  min-height: var(--eb-v2-btn-h-sm);
  padding: 10px 18px;
  font-size: 14px;
  border-radius: var(--eb-v2-btn-radius-pill);
}

.eb-v2-nav__trigger:focus-visible,
.eb-v2-nav__link:focus-visible,
.eb-v2-nav__burger:focus-visible {
  outline: 2px solid #111827;
  outline-offset: 2px;
}

/* ── Section vertical rhythm ── */
.section-chaos-control-v2,
.business-command-center,
.industry-showcase-v2,
.pos-experience-v2,
.inventory-intelligence-v2,
.cashflow-command-center-v2,
.gst-intelligence-center-v2,
.ai-business-advisor-v2,
.business-growth-journey-v2,
.business-results-v2,
.future-business-v2,
.footer-ecosystem-v2,
.business-pricing-v2,
#faq {
  padding-block: var(--eb-v2-section-y);
}

.hero-v3 {
  padding-block: var(--eb-v2-section-y-tight) var(--eb-v2-hero-bottom);
  min-height: auto;
}

.eb-v2-trustbar {
  padding-block: clamp(24px, 3vw, 36px);
}

/* FAQ → final CTA → footer: avoid double-stack with section defaults */
.future-business-v2 {
  padding-block-start: var(--eb-v2-section-y);
  padding-block-end: clamp(32px, 4vw, 40px);
}

.footer-ecosystem-v2 {
  padding-block: clamp(32px, 4vw, 40px) clamp(20px, 3vw, 28px);
}

/* Results / pricing / FAQ — tighter mid-page rhythm (80px between sections) */
.business-results-v2,
.business-pricing-v2,
#faq {
  padding-block: var(--eb-v2-section-y-mid);
}

/* ── Unified containers ── */
[class$='__container']:not(.hero-v3__container) {
  width: min(var(--eb-v2-max-wide), calc(100% - var(--eb-v2-gutter) * 2));
  margin-inline: auto;
  padding-inline: 0;
  min-width: 0;
}

.hero-v3__container {
  width: min(1320px, calc(100% - var(--eb-v2-gutter) * 2));
  padding-inline: 0;
  min-width: 0;
}

/* ── Unified section intros ── */
[class$='__intro'] {
  text-align: center;
  max-width: var(--eb-v2-intro-max);
  margin-inline: auto;
  margin-bottom: var(--eb-v2-intro-gap);
}

.business-growth-journey-v2__intro,
.future-business-v2__intro {
  margin-bottom: var(--eb-v2-intro-gap);
}

.business-results-v2__intro {
  margin-bottom: clamp(28px, 2.5vw, 36px);
}

.business-pricing-v2__intro {
  margin-bottom: 8px;
}

.hero-v3__content {
  text-align: left;
  max-width: none;
  margin-inline: 0;
}

[class$='__pill'],
.hero-v3__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 var(--eb-v2-stack-md);
  padding: 8px 18px;
  border-radius: var(--eb-v2-btn-radius-pill);
  font-size: var(--eb-v2-pill-size);
  font-weight: 700;
  letter-spacing: var(--eb-v2-pill-tracking);
  text-transform: uppercase;
  line-height: 1.2;
}

[class$='__headline']:not(.hero-v3__headline) {
  margin: 0 0 var(--eb-v2-stack-sm);
  font-size: var(--eb-v2-h2-size);
  font-weight: 800;
  line-height: var(--eb-v2-h2-lh);
  letter-spacing: var(--eb-v2-h2-spacing);
  color: var(--eb-v2-text);
  text-wrap: balance;
}

.hero-v3__headline {
  font-size: var(--eb-v2-h1-size);
  font-weight: 800;
  line-height: var(--eb-v2-h1-lh);
  letter-spacing: var(--eb-v2-h1-spacing);
  text-wrap: balance;
}

.footer-cta-band__headline {
  font-size: var(--eb-v2-h2-size);
  font-weight: 800;
  line-height: var(--eb-v2-h2-lh);
  letter-spacing: var(--eb-v2-h2-spacing);
}

[class$='__subheadline'],
.hero-v3__subheadline {
  margin: var(--eb-v2-stack-md) auto 0;
  max-width: 58ch;
  font-size: var(--eb-v2-lead-size);
  font-weight: 500;
  line-height: var(--eb-v2-lead-lh);
  color: var(--eb-v2-text-muted);
}

.hero-v3__subheadline {
  margin: var(--eb-v2-stack-md) 0 0;
  max-width: 54ch;
}

/* Card / panel H3 hierarchy */
.case-card__column h3,
.case-card__results h3,
.gst-intel-card h3,
.pos-feature-card h3,
.industry-card h3,
.ai-insight-card h3,
[class*='__card'] h3:not([class*='__']) {
  font-size: var(--eb-v2-h3-size);
  font-weight: 700;
  line-height: var(--eb-v2-h3-lh);
  letter-spacing: -0.015em;
}

/* ── Unified button system ── */
.hero-v3__cta,
.footer-cta-band__btn,
.future-business-v2__cta {
  min-height: var(--eb-v2-btn-h-lg);
  padding: 14px 28px;
  border-radius: var(--eb-v2-btn-radius);
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s var(--eb-v2-ease), box-shadow 0.25s var(--eb-v2-ease);
}

.hero-v3__cta--primary,
.hero-v3__cta--secondary {
  width: auto;
  min-width: 168px;
}

.hero-v3__cta--primary,
.footer-cta-band__btn--primary,
.future-business-v2__cta--primary,
.eb-v2-btn--primary {
  background: var(--eb-v2-btn-primary-bg);
  color: #fff;
  border: none;
  box-shadow: var(--eb-v2-btn-primary-shadow);
}

.hero-v3__cta--secondary,
.footer-cta-band__btn--secondary,
.future-business-v2__cta--secondary,
.eb-v2-btn--ghost {
  background: #fff;
  color: var(--eb-v2-text);
  border: 1px solid rgba(17, 24, 39, 0.1);
  box-shadow: none;
}

.hero-v3__cta:hover,
.footer-cta-band__btn:hover,
.future-business-v2__cta:hover,
.eb-v2-btn:hover {
  transform: translateY(-2px);
}

.hero-v3__cta--primary:hover,
.footer-cta-band__btn--primary:hover,
.eb-v2-btn--primary:hover {
  box-shadow: 0 16px 36px rgba(16, 185, 129, 0.32);
}

.hero-v3__cta-row,
.future-business-v2__actions,
.footer-cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* ── Unified glass cards ── */
.eb-v2-glass,
.section-chaos-control-v2__card,
.industry-card,
.case-card,
.growth-stage,
.pos-experience-v2__panel,
[class*='-command-center'],
.hero-v3__command,
.hero-v3__chip {
  border-radius: var(--eb-v2-card-radius);
  border: var(--eb-v2-card-border);
}

.industry-card,
.case-card,
.growth-stage {
  padding: var(--eb-v2-card-pad);
  height: 100%;
}

/* Equal-height grids */
.industry-showcase-v2__grid,
.business-results-v2__grid,
.gst-intelligence-center-v2__grid,
.pos-experience-v2__features {
  align-items: stretch;
}

.case-card {
  display: flex;
  flex-direction: column;
}

.case-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.future-business-v2__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin-top: var(--eb-v2-stack-lg);
}

/* ── Overflow / responsive base ── */
.eb-v2-body {
  overflow-x: clip;
}

.eb-v2-main,
.eb-v2-main section,
[class$='__stage'],
[class$='__grid'] {
  min-width: 0;
}

.eb-v2-body img:not(.eb-v2-brand__logo):not(.footer-premium__logo-img) {
  max-width: 100%;
  height: auto;
}

/* Trust bar partner logos — baseline alignment */
.eb-v2-trustbar__logos {
  align-items: center;
}

.eb-v2-trustbar__logos img {
  max-height: 28px;
  width: auto;
  display: block;
  object-fit: contain;
  vertical-align: middle;
}

/* ── Tablet (768–1024) ── */
@media (max-width: 1024px) {
  .hero-v3__container {
    grid-template-columns: 1fr;
    gap: var(--eb-v2-stack-lg);
  }

  .hero-v3__content {
    text-align: center;
  }

  .hero-v3__cta-row,
  .hero-v3__trust-chips {
    justify-content: center;
  }

  .hero-v3__subheadline {
    margin-inline: auto;
  }
}

/* ── Mobile (≤768) ── */
@media (max-width: 768px) {
  :root {
    --eb-v2-nav-h: 64px;
  }

  .eb-v2-nav__inner {
    width: calc(100% - var(--eb-v2-gutter));
  }

  .eb-v2-nav__brand .eb-v2-brand__logo,
  .eb-v2-nav__brand img {
    height: 30px;
  }

  .eb-v2-brand__logo-wrap {
    padding: 6px 10px;
  }

  .hero-v3 {
    padding-block: var(--eb-v2-section-y-tight) var(--eb-v2-section-y);
  }

  .hero-v3__container {
    width: calc(100% - var(--eb-v2-gutter));
    display: flex;
    flex-direction: column;
    gap: var(--eb-v2-stack-lg);
  }

  .hero-v3__cta,
  .footer-cta-band__btn,
  .future-business-v2__cta {
    width: 100%;
    max-width: 100%;
    min-height: var(--eb-v2-btn-h);
  }

  .hero-v3__cta-row,
  .footer-cta-band__actions,
  .future-business-v2__actions {
    flex-direction: column;
    width: 100%;
  }

  .eb-v2-nav__actions .eb-v2-btn--ghost {
    display: none;
  }

  [class$='__headline']:not(.hero-v3__headline),
  .hero-v3__headline,
  .footer-cta-band__headline {
    font-size: clamp(1.65rem, 6.5vw, 2.25rem);
    line-height: 1.12;
  }

  .hero-v3__headline {
    font-size: clamp(1.85rem, 7vw, 2.5rem);
  }

  .section-chaos-control-v2,
  .business-command-center,
  .industry-showcase-v2,
  .pos-experience-v2,
  .inventory-intelligence-v2,
  .cashflow-command-center-v2,
  .gst-intelligence-center-v2,
  .ai-business-advisor-v2,
  .business-growth-journey-v2,
  .business-results-v2,
  .future-business-v2,
  .footer-ecosystem-v2,
  .business-pricing-v2,
  #faq {
    padding-block: var(--eb-v2-section-y-tight);
  }

  .future-business-v2 {
    padding-block-end: clamp(28px, 4vw, 36px);
  }

  .footer-ecosystem-v2 {
    padding-block: clamp(28px, 4vw, 36px) clamp(16px, 3vw, 24px);
  }

  .business-results-v2,
  .business-pricing-v2,
  #faq {
    padding-block: var(--eb-v2-section-y-tight);
  }
}

/* ── Small mobile (≤390) ── */
@media (max-width: 390px) {
  :root {
    --eb-v2-gutter: 16px;
  }

  .eb-v2-nav__actions .eb-v2-btn--primary {
    padding: 8px 14px;
    font-size: 13px;
  }
}

/* ── Wide desktop ── */
@media (min-width: 1440px) {
  .hero-v3__container,
  [class$='__container']:not(.hero-v3__container) {
    width: min(var(--eb-v2-max-wide), calc(100% - 96px));
  }
}
