/* Ad Genius Pro — Budget & Lead Estimator page.
 * Loaded after styles.css. The tool itself styles itself (Shadow DOM);
 * this file only covers the page around it. */

/* ---- intro ---- */
.ag-est-intro {
  padding-block: clamp(40px, 6vw, 76px) clamp(24px, 3vw, 40px);
}
.ag-est-intro .ag-eyebrow {
  margin-bottom: 16px;
}
.ag-est-intro .ag-h1 {
  max-width: 16ch;
}
.ag-est-intro p {
  margin: 18px 0 0;
  max-width: 58ch;
  color: var(--ag-muted);
  font-size: 1.08rem;
}

/* ---- the tool, floating on a warm glow ---- */
.ag-est-tool {
  position: relative;
  padding-bottom: clamp(56px, 8vw, 104px);
}
.ag-est-tool::before {
  content: "";
  position: absolute;
  inset: 40px 0 auto;
  height: 520px;
  background: radial-gradient(60% 70% at 50% 0%, var(--ag-glow-soft), transparent 70%);
  pointer-events: none;
}
.ag-est-tool .ag-wrap {
  position: relative;
}
ag-budget-estimator {
  display: block;
  min-height: 640px;
}
ag-budget-estimator:defined {
  min-height: 0;
}
.ag-est-noscript {
  padding: 24px;
  border: 1px solid var(--ag-line-2);
  border-radius: var(--ag-radius);
  color: var(--ag-ink-dim);
}

/* ---- how to get the numbers ---- */
.ag-est-how {
  background: var(--ag-bg-2);
  border-top: 1px solid var(--ag-line);
  border-bottom: 1px solid var(--ag-line);
}
.ag-est-how__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.ag-est-how__head .ag-h2 {
  margin-top: 16px;
  max-width: 14ch;
}
.ag-est-how__head .ag-body {
  margin-top: 18px;
  max-width: 44ch;
}
.ag-est-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--ag-line);
  border: 1px solid var(--ag-line);
  border-radius: var(--ag-radius);
  overflow: hidden;
}
.ag-est-steps li {
  counter-increment: step;
  background: var(--ag-bg-2);
  padding: 26px 24px 28px;
}
.ag-est-steps li::before {
  content: counter(step);
  display: block;
  font-family: var(--ag-font-display);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  color: var(--ag-accent);
  margin-bottom: 18px;
}
.ag-est-steps h3 {
  margin: 0;
  font-family: var(--ag-font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ag-ink);
}
.ag-est-steps p {
  margin: 8px 0 0;
  color: var(--ag-muted);
  font-size: 0.98rem;
}

/* ---- the math + questions ---- */
.ag-est-math__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.ag-est-math .ag-h2 {
  margin-top: 16px;
}
.ag-est-math .ag-body {
  margin-top: 16px;
}
.ag-est-formulas {
  margin: 28px 0 0;
  border-top: 1px solid var(--ag-line-2);
}
.ag-est-formulas div {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--ag-line);
}
.ag-est-formulas dt {
  color: var(--ag-ink);
  font-weight: 600;
}
.ag-est-formulas dd {
  margin: 0;
  color: var(--ag-muted);
  font-variant-numeric: tabular-nums;
}
.ag-est-formulas .is-key dt,
.ag-est-formulas .is-key dd {
  color: var(--ag-accent-2);
}

.ag-est-faq {
  border-top: 1px solid var(--ag-line-2);
}
.ag-est-faq details {
  border-bottom: 1px solid var(--ag-line-2);
}
.ag-est-faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--ag-font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ag-ink);
}
.ag-est-faq summary::-webkit-details-marker {
  display: none;
}
.ag-est-faq summary::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  border-right: 1.7px solid var(--ag-accent);
  border-bottom: 1.7px solid var(--ag-accent);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.2s ease;
}
.ag-est-faq details[open] summary::after {
  transform: translateY(3px) rotate(-135deg);
}
.ag-est-faq summary:hover {
  color: var(--ag-accent-2);
}
.ag-est-faq details p {
  margin: -4px 0 22px;
  max-width: 58ch;
  color: var(--ag-muted);
}

/* ---- responsive ---- */
@media (max-width: 960px) {
  .ag-est-how__grid,
  .ag-est-math__grid {
    grid-template-columns: 1fr;
  }
  .ag-nav__links-inline {
    gap: 16px;
  }
}
@media (max-width: 900px) {
  .ag-nav--compact .ag-nav__links-inline > a {
    display: none;
  }
}
@media (max-width: 1030px) {
  html[lang^="fr"] .ag-nav--compact .ag-nav__links-inline > a {
    display: none;
  }
}
@media (max-width: 760px) {
  .ag-nav--compact .ag-nav__links-inline {
    display: none;
  }
}
@media (max-width: 600px) {
  .ag-est-tool .ag-wrap {
    padding-inline: 10px;
  }
  .ag-est-steps {
    grid-template-columns: 1fr;
  }
  .ag-est-formulas div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ag-est-faq summary::after {
    transition: none;
  }
}
