/* emailzeno — apex marketing site overlay styles
   Load order: bootstrap.css → tokens.css → site.css → marketing.css
   This file owns: header, hero, features, pricing, code-snippet, social-proof, FAQ, footer
   Tokens from tokens.css; Bootstrap utilities preferred; custom CSS only when necessary. */

/* ══════════════════════════════════════════════════════
   PHASE 03 — Header / Nav
   ══════════════════════════════════════════════════════ */

.ec-site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: var(--paper);
  border-bottom: 1px solid var(--rule-soft);
  transition: box-shadow var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}

/* Scroll-shrink: JS adds .is-scrolled when page.scrollY > 10 */
.ec-site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.ec-site-header .navbar {
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.ec-brand { font-size: 1.1rem; color: var(--ink) !important; text-decoration: none; }
.ec-brand:hover { color: var(--brand) !important; }

/* Wordmark — "Email✓Checkerr": checkmark glyph replaces the envelope icon
   (no double-checkmark redundancy); trailing extra "r" is de-emphasized so
   the wordplay reads as deliberate, not a typo. */
.ec-brand__wordmark { display: inline-flex; align-items: baseline; gap: 0; }
.ec-brand__check {
  color: var(--brand);
  font-weight: 700;
  margin: 0 0.05em;
  display: inline-block;
  transform: translateY(-0.02em);
  font-size: 0.95em;
}
.ec-brand__r { opacity: 0.4; font-weight: 400; letter-spacing: -0.02em; }

.ec-site-header .nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  border-radius: var(--radius-sm);
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.ec-site-header .nav-link:hover,
.ec-site-header .nav-link.active {
  color: var(--brand);
  background: var(--accent-cream);
}

.ec-nav-login { font-size: 0.9rem; color: var(--ink); }
.ec-nav-login:hover { color: var(--brand); }

/* Offcanvas drawer */
.ec-nav-drawer {
  width: 280px;
  background: var(--paper);
  color: var(--ink);
}
.ec-nav-drawer .offcanvas-header { background: var(--paper); }
.ec-drawer-link { color: var(--ink); border-radius: var(--radius-sm); }
.ec-drawer-link:hover { color: var(--brand); background: var(--accent-cream); }

[data-theme="dark"] .ec-site-header { background: var(--paper); border-color: var(--rule); }
[data-theme="dark"] .ec-nav-drawer  { background: var(--paper); }
[data-theme="dark"] .ec-drawer-link { color: var(--ink); }
[data-theme="dark"] .ec-drawer-link:hover { background: var(--accent-soft); }

/* ══════════════════════════════════════════════════════
   PHASE 04 — Hero
   ══════════════════════════════════════════════════════ */

.ec-hero {
  padding-top: var(--space-10);   /* 96px */
  padding-bottom: var(--space-10);
  background: linear-gradient(175deg, var(--accent-cream) 0%, var(--paper) 55%);
}

.ec-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-emphasis);
  background: var(--accent-soft);
  border-radius: var(--radius-pill);
  padding: 4px 14px;
  margin-bottom: var(--space-5);
}
.ec-hero__eyebrow .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brand);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}

.ec-hero__h1 {
  font-size: var(--text-display);   /* 3.5rem / 56px */
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: var(--ink);
}
.ec-hero__h1 .ec-accent { color: var(--brand); }

.ec-hero__sub {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--muted);
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

/* CTA row */
.ec-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
  margin-top: var(--space-5);
}

/* Trust strip */
.ec-trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4) var(--space-6);
  justify-content: center;
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--rule-soft);
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}
.ec-trust-strip li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
}
.ec-trust-strip .bi { color: var(--brand); font-size: 1.25rem; }

[data-theme="dark"] .ec-hero {
  background: linear-gradient(175deg, var(--accent-cream) 0%, var(--paper) 55%);
}

/* ══════════════════════════════════════════════════════
   PHASE 05 — Features Grid
   ══════════════════════════════════════════════════════ */

.ec-features {
  padding-top: var(--space-9);
  padding-bottom: var(--space-9);
  background: var(--surface-soft);
}

.ec-section-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: var(--space-2);
}

.ec-section-h2 {
  font-size: var(--text-xl);    /* 2.625rem / 42px */
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}

.ec-feature-card {
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  height: 100%;
  transition: box-shadow var(--t-med) var(--ease), transform var(--t-med) var(--ease);
}
.ec-feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.ec-feature-card__icon {
  width: 64px; height: 64px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-cream);
  color: var(--accent);
  border-radius: var(--radius);
  font-size: 1.8rem;
  margin-bottom: var(--space-4);
}
@media (max-width: 768px) {
  .ec-feature-card__icon { width: 56px; height: 56px; font-size: 1.6rem; }
}
.ec-feature-card__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--space-2);
}
.ec-feature-card__body {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

[data-theme="dark"] .ec-features      { background: var(--surface-2); }
[data-theme="dark"] .ec-feature-card  { background: var(--surface); border-color: var(--rule); }

/* ══════════════════════════════════════════════════════
   PHASE 06 — Pricing
   ══════════════════════════════════════════════════════ */

.ec-pricing {
  padding-top: var(--space-9);
  padding-bottom: var(--space-9);
  background: var(--paper);
}

/* Annual toggle */
.ec-billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--surface-soft);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-pill);
  padding: 4px;
  margin-bottom: var(--space-7);
}
.ec-billing-toggle__btn {
  padding: 6px 20px;
  border-radius: var(--radius-pill);
  border: none;
  background: transparent;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.ec-billing-toggle__btn.is-active {
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.ec-billing-toggle__save {
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--ok-soft);
  color: var(--ok);
  border-radius: var(--radius-pill);
  padding: 1px 7px;
  margin-left: 2px;
  vertical-align: middle;
}

/* Pricing cards */
.ec-plan-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  height: 100%;
  position: relative;
  transition: box-shadow var(--t-med) var(--ease), transform var(--t-med) var(--ease);
}
.ec-plan-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.ec-plan-card.is-featured {
  border-color: var(--accent);
  border-width: 2px;
  background: var(--paper);
}
.ec-plan-card__badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 14px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.ec-plan-card__name {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: var(--space-2);
}
.ec-plan-card__price {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}
.ec-plan-card__price sup {
  font-size: 1.2rem;
  font-weight: 700;
  vertical-align: top;
  margin-top: 0.4rem;
  display: inline-block;
}
.ec-plan-card__period {
  font-size: 0.8rem;
  color: var(--muted);
  margin-left: 2px;
}
.ec-plan-card__verifs {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 2px;
  margin-bottom: var(--space-5);
}
.ec-plan-card__desc {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: var(--space-4);
  line-height: 1.55;
}
.ec-plan-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-5);
}
.ec-plan-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--rule-soft);
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.45;
}
.ec-plan-card__features li:last-child { border-bottom: none; }
.ec-plan-card__features .ec-chk { color: var(--accent); flex-shrink: 0; margin-top: 1px; }

/* Comparison table */
.ec-compare {
  padding-top: var(--space-9);
  padding-bottom: var(--space-9);
  background: var(--surface-soft);
}
.ec-compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.875rem;
}
.ec-compare-table th,
.ec-compare-table td {
  padding: 10px 14px;
  vertical-align: middle;
  border-bottom: 1px solid var(--rule-soft);
}
.ec-compare-table thead tr th {
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  border-bottom: 2px solid var(--rule-strong);
  background: var(--surface-soft);
  white-space: nowrap;
}
.ec-compare-table thead tr th.is-featured {
  color: var(--brand);
  background: var(--brand-subtle, rgba(13, 148, 136, 0.08));
  border-bottom-color: var(--brand);
}
.ec-compare-table tbody td.is-featured {
  background: var(--brand-subtle, rgba(13, 148, 136, 0.05));
  color: var(--ink);
  font-weight: 600;
}
.ec-compare-vendor {
  display: block;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  text-transform: none;
  margin-bottom: 2px;
}
.ec-compare-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--brand);
  color: #fff;
  padding: 2px 8px;
  border-radius: 999px;
}
.ec-compare-table .ec-compare-group td,
.ec-compare-table .ec-compare-group th {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-soft);
  background: var(--surface-soft);
  padding-top: 16px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--rule);
}
.ec-compare-table tbody tr:last-child td { border-bottom: none; }
.ec-compare-table .bi-check-lg { color: var(--ok); font-size: 1rem; }
.ec-compare-table .bi-dash-lg  { color: var(--rule); font-size: 1rem; }

[data-theme="dark"] .ec-pricing      { background: var(--paper); }
[data-theme="dark"] .ec-compare      { background: var(--surface-2); }
[data-theme="dark"] .ec-plan-card    { background: var(--surface); border-color: var(--rule); }
[data-theme="dark"] .ec-plan-card.is-featured { border-color: var(--accent); background: var(--surface); }
[data-theme="dark"] .ec-compare-table thead tr th,
[data-theme="dark"] .ec-compare-table .ec-compare-group td,
[data-theme="dark"] .ec-compare-table .ec-compare-group th { background: var(--surface-2); }
[data-theme="dark"] .ec-compare-table thead tr th.is-featured { background: rgba(13, 148, 136, 0.18); }
[data-theme="dark"] .ec-compare-table tbody td.is-featured { background: rgba(13, 148, 136, 0.10); color: var(--ink); }
[data-theme="dark"] .ec-billing-toggle { background: var(--surface-2); border-color: var(--rule); }
[data-theme="dark"] .ec-billing-toggle__btn.is-active { background: var(--surface); }

/* ══════════════════════════════════════════════════════
   PHASE 07 — Code Snippet Block
   ══════════════════════════════════════════════════════ */

.ec-snippet-section {
  padding-top: var(--space-9);
  padding-bottom: var(--space-9);
  background: var(--paper);
}

/* Tab pills */
.ec-code-tabs {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: -1px; /* overlap border */
}
.ec-code-tab-btn {
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--mono-font);
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: var(--radius) var(--radius) 0 0;
  background: rgba(255,255,255,0.05);
  color: #7d8590;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
}
.ec-code-tab-btn.is-active {
  background: var(--code-bg);
  color: var(--code-fg);
  border-color: rgba(255,255,255,0.08);
}
.ec-code-tab-btn:hover:not(.is-active) { color: #c9d1d9; }

.ec-code-panel { display: none; }
.ec-code-panel.is-active { display: block; }

/* Copy toast */
.ec-copy-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--ok);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
  z-index: 9999;
}
.ec-copy-toast.show {
  opacity: 1;
  transform: translateY(0);
}

[data-theme="dark"] .ec-snippet-section { background: var(--paper); }

/* ══════════════════════════════════════════════════════
   PHASE 08 — Social Proof / Sector Strip
   ══════════════════════════════════════════════════════ */

.ec-social-proof {
  padding-top: var(--space-9);
  padding-bottom: var(--space-9);
  background: var(--surface-soft);
}

.ec-sector-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: var(--space-6) 0 0;
}
.ec-sector-strip__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  width: 120px;
  text-align: center;
}
.ec-sector-strip__icon {
  width: 56px; height: 56px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-lg);
  font-size: 1.5rem;
  color: var(--brand);
  box-shadow: var(--shadow-sm);
}
.ec-sector-strip__label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

[data-theme="dark"] .ec-social-proof     { background: var(--surface-2); }
[data-theme="dark"] .ec-sector-strip__icon { background: var(--surface); border-color: var(--rule); }

/* ══════════════════════════════════════════════════════
   PHASE 09 — FAQ + Footer
   ══════════════════════════════════════════════════════ */

.ec-faq {
  padding-top: var(--space-9);
  padding-bottom: var(--space-9);
  background: var(--paper);
}
.ec-faq .accordion-button {
  font-weight: 600;
  font-size: 0.95rem;
  background: var(--paper);
  color: var(--ink);
}
.ec-faq .accordion-button:not(.collapsed) {
  background: var(--accent-cream);
  color: var(--brand-emphasis);
  box-shadow: none;
}
.ec-faq .accordion-button:focus { box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.18); }
.ec-faq .accordion-item {
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius) !important;
  margin-bottom: var(--space-2);
  overflow: hidden;
}
.ec-faq .accordion-body { font-size: 0.875rem; color: var(--muted); line-height: 1.65; }

/* Final CTA band */
.ec-cta-band {
  position: relative;
  padding-top: var(--space-10);
  padding-bottom: var(--space-10);
  background:
    radial-gradient(circle at 20% 0%, rgba(13, 148, 136, 0.18) 0%, transparent 50%),
    radial-gradient(circle at 80% 100%, rgba(13, 148, 136, 0.12) 0%, transparent 50%),
    var(--ink);
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.ec-cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}
.ec-cta-band > .container { position: relative; }
.ec-cta-band__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 6px 14px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(13, 148, 136, 0.18);
  color: #5eead4;
  border: 1px solid rgba(13, 148, 136, 0.4);
}
.ec-cta-band__title {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: var(--space-3);
}
.ec-cta-band__title-em {
  background: linear-gradient(135deg, var(--brand) 0%, #5eead4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: italic;
  font-family: var(--display-font, var(--body-font));
}
.ec-cta-band__lead {
  font-size: 1.02rem;
  line-height: 1.7;
  opacity: 0.78;
  max-width: 620px;
  margin: 0 auto var(--space-5);
}
.ec-cta-band__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
  margin-bottom: var(--space-6);
}
.ec-cta-band__chips {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2) var(--space-4);
}
.ec-cta-band__chips li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.ec-cta-band__chips i { color: #5eead4; font-size: 0.95rem; }
.ec-cta-band .btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.ec-cta-band .btn-outline-light:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* Footer */
.ec-footer {
  background: var(--paper);
  border-top: 1px solid var(--rule-soft);
  padding-top: var(--space-8);
  padding-bottom: var(--space-6);
}
.ec-footer__brand { font-size: 1.05rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.ec-footer__brand:hover { color: var(--brand); }
.ec-footer__tagline { font-size: 0.82rem; color: var(--muted); line-height: 1.6; max-width: 220px; }
.ec-footer__col-title { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); margin-bottom: var(--space-3); }
.ec-footer__links { list-style: none; padding: 0; margin: 0; }
.ec-footer__links li { margin-bottom: var(--space-2); }
.ec-footer__links a { font-size: 0.85rem; color: var(--muted); text-decoration: none; transition: color var(--t-fast) var(--ease); }
.ec-footer__links a:hover { color: var(--brand); }
.ec-footer__sub { border-top: 1px solid var(--rule-soft); margin-top: var(--space-6); padding-top: var(--space-4); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-3); }
.ec-footer__copy { font-size: 0.78rem; color: var(--muted-soft); }
.ec-footer__social { display: flex; gap: var(--space-3); }
.ec-footer__social a { font-size: 1rem; color: var(--muted); transition: color var(--t-fast); }
.ec-footer__social a:hover { color: var(--brand); }

[data-theme="dark"] .ec-faq .accordion-item    { background: var(--surface); border-color: var(--rule); }
[data-theme="dark"] .ec-faq .accordion-button  { background: var(--surface); color: var(--ink); }
[data-theme="dark"] .ec-faq .accordion-button:not(.collapsed) { background: var(--accent-soft); color: var(--accent); }
[data-theme="dark"] .ec-cta-band               { background: var(--surface-2); }
[data-theme="dark"] .ec-footer                 { background: var(--paper); border-color: var(--rule); }

/* ══════════════════════════════════════════════════════
   PHASE 03 — Trusted-by logo strip
   ══════════════════════════════════════════════════════ */

.ec-trusted-by {
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
  background: var(--surface-soft);
  border-top: 1px solid var(--rule-soft);
}

.ec-trusted-by__label {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-soft, var(--muted));
  margin-bottom: var(--space-4);
}

.ec-trusted-by__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-5) var(--space-7);
}

.ec-trusted-by__logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 80px;
}

.ec-trusted-by__logo-img {
  /* Greyscale; brightens slightly on hover */
  filter: grayscale(1) opacity(0.55);
  object-fit: contain;
  max-height: 32px;
  width: auto;
  transition: filter var(--t-fast) var(--ease);
}
.ec-trusted-by__logo-img:hover { filter: grayscale(0) opacity(1); }

.ec-trusted-by__logo-fallback {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

[data-theme="dark"] .ec-trusted-by {
  background: var(--surface-2);
  border-color: var(--rule);
}
[data-theme="dark"] .ec-trusted-by__logo-img {
  /* slightly more visible on dark */
  filter: grayscale(1) opacity(0.45) invert(0.15);
}
[data-theme="dark"] .ec-trusted-by__logo-img:hover {
  filter: grayscale(0) opacity(1) invert(0);
}

/* ══════════════════════════════════════════════════════
   PHASE 03 — How-it-works probe pipeline
   ══════════════════════════════════════════════════════ */

.ec-hiw {
  background: var(--surface-soft);
}

/* Horizontal pipeline on md+ — vertical stack on mobile */
.ec-hiw__steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  position: relative;
}

/* Each step wrapper: flex item with connector */
.ec-hiw__step {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0; /* prevent overflow in flex */
}

/* Connecting arrow between steps */
.ec-hiw__connector {
  flex-shrink: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--rule-soft) 100%);
  position: relative;
  margin-top: calc(-1 * var(--space-5)); /* align with card center */
  align-self: flex-start;
  margin-top: 60px; /* align with icon vertically */
}
.ec-hiw__connector::after {
  content: '';
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: var(--rule-soft);
}

.ec-hiw__card {
  flex: 1;
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  text-align: center;
  position: relative;
  transition: box-shadow var(--t-med) var(--ease), transform var(--t-med) var(--ease);
}
.ec-hiw__card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.ec-hiw__num {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 2px 10px;
  white-space: nowrap;
}

.ec-hiw__icon-wrap {
  width: 72px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-cream);
  color: var(--accent);
  border-radius: var(--radius);
  font-size: 2rem;
  margin-bottom: var(--space-3);
}
@media (max-width: 768px) {
  .ec-hiw__icon-wrap { width: 60px; height: 60px; font-size: 1.7rem; }
}

.ec-hiw__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: var(--space-2);
}

.ec-hiw__body {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: var(--space-2);
}

.ec-hiw__sub {
  font-size: 0.75rem;
  color: var(--muted-soft, var(--muted));
  font-style: italic;
  margin: 0;
  line-height: 1.5;
}

/* Mobile: stack vertically with left-border connector line */
@media (max-width: 767px) {
  .ec-hiw__steps {
    flex-direction: column;
    gap: 0;
    padding-left: var(--space-5);
    border-left: 2px solid var(--rule-soft);
    margin-left: var(--space-4);
  }

  .ec-hiw__step {
    flex-direction: column;
    align-items: stretch;
    position: relative;
    margin-bottom: var(--space-4);
  }
  .ec-hiw__step:last-child { margin-bottom: 0; }

  /* Hide horizontal connectors on mobile — vertical border serves instead */
  .ec-hiw__connector { display: none; }

  /* Dot marker on left border */
  .ec-hiw__step::before {
    content: '';
    position: absolute;
    left: calc(-1 * var(--space-5) - 5px);
    top: 20px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--brand);
    border: 2px solid var(--paper);
  }

  .ec-hiw__card { text-align: left; }
  .ec-hiw__num { left: var(--space-4); transform: none; }
}

[data-theme="dark"] .ec-hiw { background: var(--surface-2); }
[data-theme="dark"] .ec-hiw__card { background: var(--surface); border-color: var(--rule); }
[data-theme="dark"] .ec-hiw__steps { border-color: var(--rule); }

/* ══════════════════════════════════════════════════════
   PHASE 03 — Integrations logo grid
   ══════════════════════════════════════════════════════ */

.ec-integrations__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

.ec-integrations__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4);
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: box-shadow var(--t-med) var(--ease), transform var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
}
.ec-integrations__item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--brand);
}

.ec-integrations__logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: var(--radius);
}

.ec-integrations__fallback {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  text-align: center;
}

.ec-integrations__name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft, var(--muted));
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.ec-integrations__more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}
.ec-integrations__more:hover { color: var(--brand-emphasis); text-decoration: underline; }

/* 4 columns → 2 on mobile */
@media (max-width: 575px) {
  .ec-integrations__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

[data-theme="dark"] .ec-integrations__item { background: var(--surface); border-color: var(--rule); }
[data-theme="dark"] .ec-integrations__item:hover { border-color: var(--brand); }
[data-theme="dark"] .ec-integrations__name { color: var(--ink); }

/* ══════════════════════════════════════════════════════
   SHARED SECTION UTILITIES
   ══════════════════════════════════════════════════════ */

/* Active nav highlight based on section scroll — JS adds .ec-nav-active */
.ec-site-header .nav-link.ec-nav-active { color: var(--brand); }

/* ── A11y: focus-visible rings for custom interactive elements ── */
.ec-code-tab-btn:focus-visible,
.ec-copy-btn:focus-visible,
.ec-billing-toggle__btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ── Responsive: comparison table horizontal scroll at narrow widths ── */
.ec-compare .table-responsive-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ── Responsive: pricing card grid min-width ── */
@media (max-width: 575px) {
  .ec-plan-card__price { font-size: 2.2rem; }
}

/* Responsive type scale */
@media (max-width: 767px) {
  .ec-hero__h1    { font-size: 2.2rem; }
  .ec-section-h2  { font-size: 1.9rem; }
  .ec-hero        { padding-top: var(--space-8); padding-bottom: var(--space-8); }
  .ec-features, .ec-pricing, .ec-compare,
  .ec-snippet-section, .ec-social-proof,
  .ec-faq, .ec-cta-band { padding-top: var(--space-7); padding-bottom: var(--space-7); }
}

/* Responsive: 1920px — widen container slightly so content doesn't feel squeezed */
@media (min-width: 1600px) {
  .ec-hero__sub { max-width: 720px; }
}

/* ── 5-tier pricing grid (Free / Solo / Growth / Unlimited / Scale) ──
   Bootstrap doesn't have a col-*-5 shortcut; we use a custom class.
   Desktop (≥1200px): 5 cards in a row at 20% each.
   Tablet (768–1199px): 3+2 wrap (handled by col-sm-6 col-lg-4 fallback).
   Mobile (<576px): single column (Bootstrap default stack). ── */
@media (min-width: 1200px) {
  .col-xxl-ec5 {
    flex: 0 0 auto;
    width: 20%;
  }
}
/* Reduce card padding slightly on 5-column layout to avoid overflow */
@media (min-width: 1200px) and (max-width: 1399px) {
  .col-xxl-ec5 .ec-plan-card {
    padding: var(--space-4);
  }
  .col-xxl-ec5 .ec-plan-card__price { font-size: 2.2rem; }
}

/* ══════════════════════════════════════════════════════
   PHASE — Icon enlargement (260518)
   Bumps icons +50% across cards that previously inherited
   only Bootstrap utility classes (fs-3) with no scoped CSS.
   ══════════════════════════════════════════════════════ */
.ec-demo-stat__icon i,
.ec-demo-stat__icon { font-size: 2rem; color: var(--brand); }
.ec-explore-card__icon i { font-size: 2.25rem !important; }
.ec-sp-card__icon i { font-size: 2.25rem; color: var(--brand); }

/* ══════════════════════════════════════════════════════
   PHASE — Scroll reveal (260518)
   Opt-in via [data-reveal]; triggered by IntersectionObserver.
   Stagger by setting style="--i:N" on grid items.
   ══════════════════════════════════════════════════════ */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease-out, transform .6s ease-out;
  transition-delay: calc(var(--i, 0) * 60ms);
  will-change: opacity, transform;
}
[data-reveal="in"] {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  [data-reveal="in"] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
