/* ===========================================================
   AdAgent — AI Agent for Facebook Ads
   Design tokens
   =========================================================== */
:root {
  --bg: #101C33;
  --surface: #16223E;
  --surface-2: #1C2A49;
  --surface-3: #223252;
  --border: #2C3E62;
  --border-soft: #1F2C4A;

  --text: #F4EFE4;
  --text-muted: #A6AFC7;
  --text-faint: #6B7690;

  --accent: #F2762E;
  --accent-dim: #C1591E;
  --accent-soft: rgba(242, 118, 46, 0.14);
  --amber: #FFC24B;

  /* Light nav band (matches the cream header treatment) */
  --nav-bg: #F7F1E2;
  --nav-border: #E7DCC2;
  --nav-text: #16213B;
  --nav-text-muted: #56607E;

  --font-display: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  --shadow-card: 0 20px 50px -25px rgba(0, 0, 0, 0.55);
}

/* ===========================================================
   Reset
   =========================================================== */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ===========================================================
   Layout helpers
   =========================================================== */
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.wrap--narrow { max-width: 720px; }

.section { padding: 96px 0; }

.section--dark { background: var(--surface); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }

.section__title {
  font-size: clamp(28px, 4vw, 40px);
  text-align: center;
  max-width: 640px;
  margin: 14px auto 56px;
}

.section__note {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  max-width: 480px;
  margin: -32px auto 48px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow--center { text-align: center; display: block; }

.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid--3 { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid--4 { grid-template-columns: 1fr; }
}

/* ===========================================================
   Buttons
   =========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: #1A0F06;
}
.btn--primary:hover { transform: translateY(-1px); background: #FF8A44; }

.btn--lg { padding: 16px 32px; font-size: 16px; }
.btn--sm { padding: 9px 18px; font-size: 13.5px; }

/* ===========================================================
   Top trust bar
   =========================================================== */
.top-bar {
  background: var(--surface-2);
  border-bottom: 1px solid var(--border-soft);
}

.top-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 9px 24px;
  flex-wrap: wrap;
  text-align: center;
}

.top-bar__text {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}
.top-bar__text a {
  color: var(--accent);
  font-weight: 600;
}
.top-bar__text a:hover { text-decoration: underline; }

.top-bar__badge { display: flex; align-items: center; flex-shrink: 0; opacity: 0.9; transition: opacity 0.15s ease; }
.top-bar__badge:hover { opacity: 1; }
.top-bar__badge img { width: 96px; height: auto; }

@media (max-width: 560px) {
  .top-bar__inner { justify-content: flex-start; text-align: left; }
}

/* ===========================================================
   Nav — light cream band (deliberately breaks from the dark
   body so the header reads as a distinct, friendly entry point)
   =========================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.005em;
  color: var(--nav-text);
}

.nav__brand-word2 { color: var(--accent); }

.nav__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  align-self: center;
  margin-right: 2px;
}

.nav__brand-sub {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11.5px;
  color: var(--nav-text-muted);
  letter-spacing: 0.02em;
  margin-left: 4px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--nav-text);
}
.nav__links a:not(.btn) { color: var(--nav-text); }
.nav__links a:not(.btn):hover { color: var(--accent); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.nav__toggle span { width: 22px; height: 2px; background: var(--nav-text); }

@media (max-width: 760px) {
  .nav__brand-sub { display: none; }
  .nav__links {
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: var(--nav-bg);
    border-bottom: 1px solid var(--nav-border);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px 24px;
    gap: 16px;
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links .btn { align-self: flex-start; }
  .nav__toggle { display: flex; }
}

/* ===========================================================
   Hero
   =========================================================== */
.hero {
  padding: 72px 0 104px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -120px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(242, 118, 46, 0.16) 0%, rgba(242, 118, 46, 0) 70%);
  pointer-events: none;
  z-index: 0;
}
.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero__headline {
  font-size: clamp(32px, 4.4vw, 52px);
  margin: 16px 0 20px;
}

.hero__sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 32px;
}

.hero__cta-row { margin-bottom: 28px; }

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-muted);
}
.trust-row li { display: flex; align-items: center; gap: 7px; }
.trust-row--center { justify-content: center; margin-top: 28px; }

.icon-sm { width: 15px; height: 15px; color: var(--accent); flex-shrink: 0; }
.icon-amber { color: var(--amber); }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__sub { max-width: none; }
}

/* ---- Signature widget ---- */
.widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.widget__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border-soft);
  background: var(--surface-2);
}
.widget__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); }
.widget__title {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
}

.widget__body { padding: 26px; }

.widget__label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.widget__label span#angleIndex { color: var(--accent); }
.widget__demo-tag {
  font-size: 10px;
  padding: 2px 7px;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-faint);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.widget__stage {
  min-height: 128px;
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  margin-bottom: 14px;
}

.angle-pair { animation: stageIn 0.5s ease; }
.angle-pair__headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  margin-bottom: 8px;
}
.angle-pair__sub { color: var(--text-muted); font-size: 14.5px; }

@keyframes stageIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.widget__progress {
  height: 3px;
  background: var(--border-soft);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 22px;
}
.widget__progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 3px;
}

.widget__meta { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.widget__meta-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  margin-bottom: 4px;
}
.widget__meta-value { font-size: 14px; font-weight: 500; }

.widget__bars { display: flex; align-items: flex-end; gap: 4px; height: 40px; }
.widget__bars span {
  width: 6px;
  height: var(--h);
  background: var(--accent-dim);
  border-radius: 2px;
}
.widget__bars span:nth-child(3) { background: var(--accent); }

/* ===========================================================
   Problem section
   =========================================================== */
.pain-card {
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.pain-card:hover { transform: translateY(-4px); border-color: var(--border); }
.pain-card__icon { width: 26px; height: 26px; color: var(--accent); margin-bottom: 16px; }
.pain-card h3 { font-size: 16.5px; margin-bottom: 8px; }
.pain-card p { color: var(--text-muted); font-size: 14.5px; }

/* ===========================================================
   What you get
   =========================================================== */
.feature-card { padding: 8px 4px; }
.feature-card__icon {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 18px;
  transition: transform 0.2s ease;
}
.feature-card:hover .feature-card__icon { transform: scale(1.08) rotate(-4deg); }
.feature-card__icon svg { width: 22px; height: 22px; }
.feature-card h3 { font-size: 17px; margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); font-size: 14.5px; }

/* ===========================================================
   Why AdAgent — comparison cards
   =========================================================== */
.compare {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

@media (max-width: 900px) {
  .compare { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
}

.compare-card {
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 24px 22px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.compare-card:hover { transform: translateY(-4px); }

.compare-card--highlight {
  background: var(--surface-3);
  border: 1px solid rgba(242, 118, 46, 0.4);
  box-shadow: 0 16px 40px -22px rgba(242, 118, 46, 0.35);
}

.compare-card__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  border: 1px solid rgba(242, 118, 46, 0.35);
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.compare-card__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 16px;
}

.compare-card__list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 0;
  border-top: 1px solid var(--border-soft);
  font-size: 14px;
}
.compare-card__list li:first-child { border-top: none; padding-top: 0; }
.compare-card__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-faint);
}

/* ===========================================================
   How it works
   =========================================================== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}
.steps--4 { grid-template-columns: repeat(4, 1fr); gap: 26px; }
.steps::before {
  content: "";
  position: absolute;
  top: 17px; left: 8%; right: 8%;
  height: 1px;
  background: var(--border);
}
.step { position: relative; background: var(--surface); }
.step__num {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 13px;
  color: var(--bg);
  background: var(--accent);
  width: 34px; height: 34px;
  line-height: 34px;
  text-align: center;
  border-radius: 50%;
  margin-bottom: 18px;
}
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 14.5px; }

@media (max-width: 900px) {
  .steps--4 { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .steps--4::before { display: none; }
}

@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps::before { display: none; }
}

/* ===========================================================
   Social proof
   =========================================================== */
.quote-card {
  position: relative;
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 26px 22px 22px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.quote-card:hover { transform: translateY(-4px); border-color: var(--border); }
.quote-card__tag {
  position: absolute;
  top: 16px; right: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--amber);
  border: 1px solid rgba(255, 194, 75, 0.35);
  padding: 3px 7px;
  border-radius: 4px;
}
.quote-card__text { font-size: 16px; margin: 6px 60px 18px 0; }
.quote-card__by { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-muted); }

/* ===========================================================
   Pricing — two plans (DIY / Managed)
   =========================================================== */
.plans {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  align-items: stretch;
}

@media (max-width: 860px) {
  .plans { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
}

.plan-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px clamp(22px, 4vw, 34px) 30px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease;
}
.plan-card:hover { transform: translateY(-3px); }

.plan-card__head { margin-bottom: 16px; }
.plan-card__name {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 12px;
}
.plan-card__tag {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  border: 1px solid rgba(242, 118, 46, 0.35);
  padding: 3px 8px;
  border-radius: 4px;
}

.plan-card__amount {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 7vw, 38px);
  line-height: 1.15;
  word-break: keep-all;
}
.plan-card__amount-sep { color: var(--text-faint); font-size: 0.6em; margin: 0 2px; }
.plan-card__amount-unit { font-size: 0.5em; color: var(--text-muted); font-weight: 600; }
.plan-card__period {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.plan-card__desc {
  font-size: 14.5px;
  color: var(--text-muted);
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-soft);
}

.plan-card__lists {
  display: grid;
  gap: 18px;
  margin-bottom: 24px;
  flex-grow: 1;
}

.plan-card__list-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.plan-card__list-label--pro { color: var(--accent); }
.plan-card__list-label--con { color: var(--text-faint); }

.plan-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 6px 0;
  font-size: 14px;
  line-height: 1.45;
}
.plan-card__list--pro li::before {
  content: "";
  flex-shrink: 0;
  margin-top: 6px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.plan-card__list--con li {
  color: var(--text-muted);
}
.plan-card__list--con li::before {
  content: "";
  flex-shrink: 0;
  margin-top: 6px;
  width: 7px; height: 2px;
  border-radius: 2px;
  background: var(--text-faint);
}

.paypal-container { margin-bottom: 16px; min-height: 55px; }
.paypal-fallback { text-align: center; font-size: 13.5px; color: var(--text-muted); margin-bottom: 16px; }
.paypal-fallback a { color: var(--accent); }

.plan-card__guarantee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

/* ===========================================================
   FAQ
   =========================================================== */
.accordion__item {
  border-bottom: 1px solid var(--border);
}
.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 4px;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
}
.accordion__icon {
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.accordion__trigger[aria-expanded="true"] .accordion__icon { transform: rotate(45deg); }

.accordion__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.accordion__panel p {
  padding: 0 4px 20px;
  color: var(--text-muted);
  font-size: 15px;
  max-width: 620px;
}

/* ===========================================================
   Final CTA
   =========================================================== */
.final-cta {
  padding: 100px 0;
  text-align: center;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  border-top: 1px solid var(--border-soft);
}
.final-cta h2 {
  font-size: clamp(28px, 4vw, 40px);
  max-width: 560px;
  margin: 0 auto 14px;
}
.final-cta p {
  color: var(--text-muted);
  max-width: 460px;
  margin: 0 auto 30px;
  font-size: 16px;
}

/* ===========================================================
   Footer
   =========================================================== */
.footer { padding: 48px 0; border-top: 1px solid var(--border-soft); }
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nav__brand--footer { font-size: 17px; color: var(--text); }
.footer__contact { font-family: var(--font-mono); font-size: 13px; color: var(--text-muted); margin-top: 8px; }
.footer__links { display: flex; gap: 20px; font-size: 14px; color: var(--text-muted); }
.footer__links a:hover { color: var(--text); }

.footer__badge { display: flex; align-items: center; opacity: 0.9; transition: opacity 0.15s ease; }
.footer__badge:hover { opacity: 1; }
.footer__badge img { width: 120px; height: auto; border-radius: 4px; }
.footer__copy { width: 100%; font-size: 12.5px; color: var(--text-faint); text-align: center; padding-top: 24px; border-top: 1px solid var(--border-soft); margin-top: 8px; }

@media (min-width: 561px) {
  .footer__copy { width: auto; border-top: none; padding-top: 0; margin-top: 0; text-align: right; }
}

/* ===========================================================
   Section Lottie animations
   =========================================================== */
.section-lottie {
  width: 200px;
  height: 155px;
  margin: 0 auto 4px;
  opacity: 0.95;
}
.section-lottie svg { display: block; }

.section-lottie--rocket {
  width: 150px;
  height: 180px;
  margin-bottom: 8px;
}

.section-lottie--target {
  width: 190px;
  height: 148px;
}

/* ===========================================================
   Scroll fade-in
   =========================================================== */
.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.is-visible { opacity: 1; transform: translateY(0); }
.fade-in--delay { transition-delay: 0.12s; }
