/* ============================================================
   EpiphanyAds — page-specific styles
   Reuses brand.css tokens + styles.css form/button/section
   classes. Only adds the bits styles.css does not already cover:
   the 3-up promise cards, the how-it-works steps, the signup
   form layout, and the light-section success state.
   ============================================================ */

/* ---- 3-up promise cards + how-it-works grid ---- */
.eads-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md, 24px);
  margin-top: var(--space-2xl, 64px);
}

.eads-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg, 36px) var(--space-md, 24px);
  box-shadow: var(--shadow-card);
  transition: transform var(--duration-fast, 0.2s) ease,
              box-shadow var(--duration-fast, 0.2s) ease;
}
.eads-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.eads-card__icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  background: var(--teal-bg, #ECFEFF);
  color: var(--color-teal);
  margin-bottom: var(--space-sm, 16px);
}

.eads-card__title {
  /* --text-h4 is not a defined brand token; use the literal it resolved to. */
  font-size: 20px;
  font-weight: var(--weight-semibold, 600);
  color: var(--color-heading);
  margin-bottom: 8px;
}

.eads-card__body {
  font-size: var(--text-body, 16px);
  color: var(--color-secondary);
  line-height: var(--leading-relaxed, 1.6);
}

/* ---- How it works (numbered steps, dark section) ---- */
.eads-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md, 24px);
  margin-top: var(--space-2xl, 64px);
}

.eads-step {
  position: relative;
  padding: var(--space-md, 24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
}

.eads-step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--color-lime);
  color: var(--color-lime-text);
  font-weight: var(--weight-bold, 700);
  font-size: 16px;
  margin-bottom: var(--space-sm, 16px);
}

.eads-step__title {
  font-size: 17px;
  font-weight: var(--weight-semibold, 600);
  color: #fff;
  margin-bottom: 6px;
}

.eads-step__body {
  font-size: 15px;
  /* Contrast bump (was 0.7 — risked failing WCAG AA on navy). */
  color: rgba(255, 255, 255, 0.85);
  line-height: var(--leading-relaxed, 1.6);
}

.eads-step__body em {
  color: var(--color-teal-light);
  font-style: normal;
}

/* ---- Trust line under hero CTAs (legacy single-line; kept for safety) ---- */
.eads-hero__trust {
  margin-top: var(--space-md, 24px);
  font-size: var(--text-small, 14px);
  /* Contrast bump 0.7 -> 0.85. */
  color: rgba(255, 255, 255, 0.85);
  display: inline-flex; align-items: center; gap: 8px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}
.eads-hero__trust svg { flex-shrink: 0; color: var(--color-lime); }

/* ---- Proof / why-it-converts list ---- */
.eads-proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md, 24px);
  margin-top: var(--space-2xl, 64px);
}
.eads-proof__item {
  padding-left: 28px;
  position: relative;
}
.eads-proof__item::before {
  content: '';
  position: absolute;
  left: 0; top: 6px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--teal-bg, #ECFEFF);
  border: 2px solid var(--color-teal);
}
.eads-proof__title {
  font-size: 17px;
  font-weight: var(--weight-semibold, 600);
  color: var(--color-heading);
  margin-bottom: 4px;
}
.eads-proof__body {
  font-size: 15px;
  color: var(--color-secondary);
  line-height: var(--leading-relaxed, 1.6);
}

/* ---- Signup form layout ---- */
.eads-signup__card {
  max-width: 620px;
  margin: var(--space-xl, 48px) auto 0;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg, 36px);
  box-shadow: var(--shadow-card-hover);
}

.eads-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm, 16px);
}

.eads-form .cf-turnstile,
.eads-signup__card .cf-turnstile {
  margin: var(--space-sm, 16px) 0;
}

.eads-form__note {
  font-size: var(--text-xs, 13px);
  color: var(--color-secondary);
  margin-top: var(--space-sm, 16px);
  text-align: center;
  line-height: var(--leading-relaxed, 1.6);
}

/* Light-section success state (styles.css .contact-success assumes dark) */
.eads-success {
  text-align: center;
  padding: var(--space-xl, 48px) 0;
}
.eads-success__icon {
  width: 72px; height: 72px;
  margin: 0 auto var(--space-md, 24px);
  background: rgba(22, 163, 74, 0.12);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-success, #16A34A);
}
.eads-success h3 {
  font-size: 26px;
  margin-bottom: 8px;
  color: var(--color-heading);
}
.eads-success p {
  color: var(--color-secondary);
  max-width: 440px;
  margin: 0 auto;
  line-height: var(--leading-relaxed, 1.6);
}

/* ============================================================
   TWO-COLUMN HERO (copy + CSS ad mockup)
   ============================================================ */
.eads-hero--split {
  min-height: auto;
  padding-top: calc(96px + 4vh);
  padding-bottom: 96px;
}
.eads-hero__grid {
  position: relative;
  z-index: 8;
  width: 100%;
  max-width: var(--container-max, 1200px);
  margin: 0 auto;
  padding: 0 var(--section-pad-h);
  display: grid;
  grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
  align-items: center;
  gap: var(--space-2xl, 64px);
}
.eads-hero__copy { text-align: left; }

.eads-hero__headline {
  /* §1: loudest thing on the screen */
  font-size: var(--text-h1, 60px);
  font-weight: var(--weight-bold, 700);
  letter-spacing: var(--tracking-h1, -2px);
  line-height: var(--leading-heading, 1.08);
  margin-bottom: var(--space-md, 24px);
}
.eads-hero__sub {
  margin-left: 0; margin-right: 0;
  max-width: 560px;
}
.eads-hero__sub strong { color: var(--color-lime, #84CC16); font-weight: var(--weight-semibold, 600); }

.eads-hero__ctas {
  flex-direction: row; flex-wrap: wrap;
  align-items: flex-start; justify-content: flex-start;
  gap: var(--space-md, 24px);
  row-gap: var(--space-sm, 16px);
}
.eads-hero__cta-primary-wrap {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
}
.eads-cta-lg {
  padding: 16px 32px;
  font-size: 16px;
}
.eads-cta-lg:hover { box-shadow: var(--glow-lime-sm, 0 0 20px rgba(132,204,22,0.15)), 0 4px 12px rgba(132,204,22,0.3); }
.eads-hero__cta-reassurance {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
  max-width: 260px;
}

/* Trust pills */
.eads-hero__pills {
  list-style: none; margin: var(--space-lg, 36px) 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px;
}
.eads-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--color-white-10, rgba(255,255,255,0.1));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.2;
  min-height: 38px;
}
.eads-pill svg { flex-shrink: 0; color: var(--color-lime, #84CC16); }

/* ---- CSS phone-frame ad mockup (no image dependency) ---- */
.eads-hero__visual {
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.eads-hero__visual::before {
  /* soft teal glow behind the anchor so the eye lands there */
  content: '';
  position: absolute;
  inset: -10% -6%;
  background: var(--glow-teal-md, 0 0 40px rgba(8,145,178,0.2));
  background: radial-gradient(ellipse at center, rgba(8,145,178,0.28) 0%, rgba(8,145,178,0) 65%);
  filter: blur(8px);
  z-index: 0;
  pointer-events: none;
}
.eads-phone {
  position: relative;
  z-index: 1;
  width: 300px;
  max-width: 100%;
  background: #0b1620;
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-radius: 36px;
  padding: 12px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), var(--glow-teal-sm, 0 0 20px rgba(8,145,178,0.15));
}
.eads-phone__notch {
  width: 110px; height: 22px;
  background: #0b1620;
  border-radius: 0 0 14px 14px;
  margin: 0 auto 8px;
}
.eads-phone__screen {
  background: #fff;
  border-radius: 26px;
  overflow: hidden;
}
.eads-ad {
  background: #fff;
  font-family: var(--font-body);
  text-align: left;
}
.eads-ad__head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 14px 10px;
}
.eads-ad__avatar {
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #0891B2, #84CC16);
  color: #fff; font-weight: 700; font-size: 16px;
}
.eads-ad__meta { display: flex; flex-direction: column; line-height: 1.2; }
.eads-ad__brand { font-size: 14px; font-weight: 700; color: #0A2A3C; }
.eads-ad__sponsored { font-size: 11px; color: #65748a; }
.eads-ad__primary {
  padding: 0 14px 10px;
  font-size: 13px; line-height: 1.5; color: #1f2d3a;
}
.eads-ad__creative {
  position: relative;
  height: 188px;
  background: linear-gradient(135deg, #0A2A3C 0%, #0891B2 100%);
  overflow: hidden;
}
.eads-ad__creative-shimmer {
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.18) 50%, transparent 70%);
  background-size: 220% 100%;
  animation: eads-shimmer 4s linear infinite;
}
@keyframes eads-shimmer {
  0%   { background-position: 140% 0; }
  100% { background-position: -40% 0; }
}
.eads-ad__creative-tag {
  position: absolute; left: 12px; bottom: 12px; z-index: 2;
  background: rgba(255, 255, 255, 0.92);
  color: #0A2A3C;
  font-size: 11px; font-weight: 600;
  padding: 4px 10px; border-radius: 999px;
}
.eads-ad__footer {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px; background: #f3f5f7;
}
.eads-ad__footer-text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.eads-ad__footer-domain { font-size: 10px; letter-spacing: 0.04em; color: #65748a; text-transform: uppercase; }
.eads-ad__footer-headline { font-size: 13px; font-weight: 600; color: #0A2A3C; }
.eads-ad__cta {
  flex-shrink: 0;
  background: var(--color-lime, #84CC16);
  color: var(--color-lime-text, #062E1A);
  border: none; border-radius: 8px;
  padding: 9px 16px;
  font-size: 13px; font-weight: 700; font-family: var(--font-body);
  cursor: default;
  animation: eads-cta-pulse 2.6s ease-in-out infinite;
}
@keyframes eads-cta-pulse {
  0%, 100% { box-shadow: 0 0 0 rgba(132,204,22,0); }
  50%      { box-shadow: var(--glow-lime-sm, 0 0 20px rgba(132,204,22,0.15)); }
}

@media (prefers-reduced-motion: reduce) {
  .eads-ad__creative-shimmer { animation: none; }
  .eads-ad__cta { animation: none; }
}

/* Scroll indicator — pad tap target to >=44px */
.eads-scroll-indicator {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
}

/* ============================================================
   PROOF STRIP (risk-reversal guarantee + EpiphanyMade credit)
   ============================================================ */
.eads-proof-strip-section { padding-top: var(--space-2xl, 64px); padding-bottom: var(--space-2xl, 64px); }
.eads-proof-strip {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-lg, 36px);
  max-width: 920px; margin: 0 auto;
  padding: var(--space-md, 24px) var(--space-lg, 36px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-card);
}
.eads-proof-strip__guarantee { display: flex; align-items: center; gap: 14px; }
.eads-proof-strip__badge {
  width: 44px; height: 44px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--teal-bg, #ECFEFF);
  color: var(--color-teal);
}
.eads-proof-strip__guarantee-title { font-size: 16px; font-weight: var(--weight-semibold, 600); color: var(--color-heading); margin-bottom: 2px; }
.eads-proof-strip__guarantee-body { font-size: 14px; color: var(--color-secondary); line-height: 1.5; }
.eads-proof-strip__divider { width: 1px; align-self: stretch; background: var(--color-border); }
.eads-proof-strip__credit { font-size: 15px; color: var(--color-secondary); line-height: 1.5; }
.eads-proof-strip__credit strong { color: var(--color-heading); }

/* ============================================================
   PRICING (3 tiers)
   ============================================================ */
.eads-pricing__clarifier {
  max-width: 760px; margin: var(--space-lg, 36px) auto 0;
  text-align: center;
  font-size: 15px; line-height: 1.6;
  color: var(--color-secondary);
  background: var(--teal-bg, #ECFEFF);
  border: 1px solid var(--color-teal-bg-soft, #CFFAFE);
  border-radius: var(--radius-md);
  padding: 14px 22px;
}
.eads-pricing__clarifier strong { color: var(--color-heading); }

.eads-pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md, 24px);
  align-items: stretch;
  margin-top: var(--space-xl, 48px);
}
.eads-plan {
  position: relative;
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg, 36px) var(--space-md, 24px);
  box-shadow: var(--shadow-card);
}
.eads-plan--featured {
  border: 1px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--gradient-card-border, linear-gradient(135deg, #0891B2 0%, #84CC16 100%)) border-box;
  box-shadow: var(--shadow-card-hover), var(--glow-teal-sm, 0 0 20px rgba(8,145,178,0.15));
  transform: translateY(-6px);
}
.eads-plan__badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--color-lime, #84CC16);
  color: var(--color-lime-text, #062E1A);
  font-size: 12px; font-weight: 700; letter-spacing: 0.02em;
  padding: 5px 14px; border-radius: 999px;
  white-space: nowrap;
}
.eads-plan__name {
  font-size: 20px; font-weight: var(--weight-bold, 700);
  color: var(--color-heading); margin-bottom: 10px;
}
.eads-plan__price {
  font-size: 28px; font-weight: var(--weight-bold, 700);
  color: var(--color-heading); line-height: 1.1; margin-bottom: 4px;
}
.eads-plan__per { font-size: 15px; font-weight: var(--weight-medium, 500); color: var(--color-secondary); }
.eads-plan__tbd { font-size: 12px; color: var(--color-secondary); opacity: 0.85; margin-bottom: 12px; line-height: 1.4; }
.eads-plan__for { font-size: 14px; color: var(--color-secondary); line-height: 1.5; margin-bottom: var(--space-md, 24px); }
.eads-plan__plus { font-size: 13px; font-weight: var(--weight-semibold, 600); color: var(--color-heading); margin-bottom: 10px; }
.eads-plan__features {
  list-style: none; margin: 0 0 var(--space-lg, 36px); padding: 0;
  display: flex; flex-direction: column; gap: 10px;
  flex: 1;
}
.eads-plan__features li {
  position: relative; padding-left: 26px;
  font-size: 14px; line-height: 1.5; color: var(--color-secondary);
}
.eads-plan__features li::before {
  content: '';
  position: absolute; left: 0; top: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--teal-bg, #ECFEFF);
  border: 2px solid var(--color-teal);
}
.eads-plan__cta { margin-top: auto; min-height: 48px; }

/* ============================================================
   MID-PAGE CTA BAND
   ============================================================ */
.eads-cta-band { padding-top: var(--space-2xl, 64px); padding-bottom: var(--space-2xl, 64px); }
.eads-cta-band__inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: var(--space-md, 24px);
  max-width: 920px; margin: 0 auto;
}
.eads-cta-band__title { color: #fff; font-size: 28px; margin-bottom: 6px; }
.eads-cta-band__sub { color: rgba(255, 255, 255, 0.85); font-size: 16px; }

/* Above-submit value reminder */
.eads-form__reminder {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: var(--weight-semibold, 600);
  color: var(--color-heading);
  background: var(--teal-bg, #ECFEFF);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin: var(--space-sm, 16px) 0;
}
.eads-form__reminder::before {
  content: '';
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
  background: var(--color-lime, #84CC16);
}

/* FAQ accordion buttons — >=44px tap target */
#eads-faq .faq__question { min-height: 44px; }

/* ---- Responsive ---- */
@media (max-width: 980px) {
  .eads-hero__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl, 48px);
    text-align: center;
  }
  .eads-hero__copy { text-align: center; }
  .eads-hero__sub { margin-left: auto; margin-right: auto; }
  .eads-hero__ctas { justify-content: center; align-items: center; }
  .eads-hero__cta-primary-wrap { align-items: center; }
  .eads-hero__cta-reassurance { text-align: center; }
  .eads-hero__pills { justify-content: center; }
  .eads-pricing { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
  .eads-plan--featured { transform: none; }
  .eads-proof-strip { flex-direction: column; text-align: center; }
  .eads-proof-strip__divider { width: 60%; height: 1px; align-self: center; }
}

@media (max-width: 900px) {
  .eads-grid { grid-template-columns: 1fr; }
  .eads-steps { grid-template-columns: 1fr 1fr; }
  .eads-proof { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .eads-hero__headline { font-size: var(--text-h1-mobile, 36px); letter-spacing: -0.5px; line-height: 1.12; }
  .eads-hero--split .hero__ctas .btn-primary,
  .eads-hero--split .hero__ctas .btn-ghost { width: auto; }
  .eads-cta-band__inner { flex-direction: column; text-align: center; }
}

@media (max-width: 560px) {
  .eads-steps { grid-template-columns: 1fr; }
  .eads-form__row { grid-template-columns: 1fr; }
  .eads-signup__card { padding: var(--space-md, 24px); }
  .eads-phone { width: 260px; }
  .eads-hero__pills { flex-direction: column; align-items: center; }
  .eads-pill { width: 100%; max-width: 280px; justify-content: center; }
}
