/* Affiliate Link Funnel: clean white, emerald to indigo, a touch of gold; Lexend */
:root {
  --bg: #f7faf8;
  --bg-2: #ffffff;
  --surface: #ffffff;
  --surface-2: #eef6f2;
  --text: #0f172a;
  --muted: #4a5568;
  --line: rgba(15, 23, 42, .1);
  --accent: #059669;
  --accent-2: #4f46e5;
  --on-accent: #ffffff;
  --ok: #059669;
  --grad: linear-gradient(100deg, #059669, #10b981 30%, #4f46e5);
  --font-display: "Lexend", system-ui, sans-serif;
  --font-body: "Lexend", system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius: 22px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 24px 50px -28px rgba(5, 150, 105, .35);
}
body { font-weight: 350; }
h1, h2, h3 { font-weight: 700; letter-spacing: -.04em; }
.eyebrow { font-family: var(--font-body); font-weight: 600; letter-spacing: .14em; }
.brand { font-weight: 700; letter-spacing: -.04em; }
.brand b { color: var(--accent); font-weight: 700; }
.card { box-shadow: var(--shadow); }
.nav.scrolled { background: rgba(247, 250, 248, .86); }
.pill, .btn-ghost, .seg, .chip span, .input, .faq details { background: #fff; }
.btn { background: var(--grad); background-size: 160% 100%; }
.btn:hover { background-position: 100% 0; }
.btn-ghost { background: #fff; color: var(--text); }
.faq details[open] { box-shadow: var(--shadow); }

/* Hero */
.alf-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.alf-h1 { font-size: clamp(44px, 6.8vw, 92px); line-height: 1; }
.alf-funnel { position: relative; display: grid; grid-template-columns: 1.3fr .7fr; gap: 10px; align-items: center; padding: clamp(18px, 3vw, 30px); border-radius: 28px; }
.alf-ex { position: absolute; top: 14px; left: 18px; font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.alf-funnel svg { width: 100%; overflow: visible; }
.alf-drops circle { fill: #10b981; }
.alf-drops circle.gold { fill: #fbbf24; }
.alf-stages { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.alf-stages li { display: grid; gap: 2px; padding-left: 14px; border-left: 2px solid var(--line); }
.alf-stages li:last-child { border-left-color: #fbbf24; }
.alf-stages b { font-weight: 600; font-size: 15px; }
.alf-stages span { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.alf-stages .i { width: 14px; height: 14px; color: #d97706; }

/* Features */
.alf-bento .card { --spot: #10b981; }
.alf-bento h3 { font-size: 21px; }

/* Calculator */
.alf-calc-sec { background: linear-gradient(180deg, transparent, #e9f5ef 30%, #e9f5ef 70%, transparent); }
.alf-calc { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 52px); padding: clamp(22px, 4vw, 44px); }
.alf-in { display: grid; gap: 20px; align-content: center; }
.alf-sl { display: grid; gap: 6px; }
.alf-sl label { display: flex; justify-content: space-between; gap: 12px; font-weight: 500; font-size: 15px; }
.alf-sl output { font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.alf-out { display: grid; gap: 18px; align-content: center; padding: clamp(18px, 3vw, 30px); border-radius: 22px; background: #0f172a; color: #e2e8f0; }
.alf-big span { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: #94a3b8; }
.alf-big b { display: block; font-size: clamp(48px, 7vw, 80px); line-height: 1.05; letter-spacing: -.05em; background: linear-gradient(100deg, #6ee7b7, #a5b4fc); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.alf-big small { color: #94a3b8; font-size: 15px; }
.alf-flow { display: grid; gap: 10px; }
.alf-flow div { display: grid; grid-template-columns: 120px 80px 1fr; gap: 10px; align-items: center; font-size: 14px; }
.alf-flow span { color: #94a3b8; }
.alf-flow b { font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; }
.alf-flow i { height: 10px; border-radius: 5px; background: linear-gradient(90deg, #10b981, #6366f1); transform-origin: 0 50%; transform: scaleX(var(--w, 0)); transition: transform .6s var(--ease-spring); min-width: 4px; }
.alf-lift { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px; background: rgba(251, 191, 36, .1); color: #fde68a; font-size: 14.5px; }
.alf-lift .i { flex: none; color: #fbbf24; }
.alf-lift b { color: #fff; }

/* UTM builder */
.alf-utm { display: grid; gap: 14px; }
.alf-utm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.alf-link { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; background: var(--surface-2); border: 1px dashed rgba(5, 150, 105, .35); }
.alf-link code { flex: 1; min-width: 0; font: 500 13px/1.5 var(--font-mono); overflow-wrap: anywhere; color: var(--text); }

/* Join */
.alf-cta { background: #0f172a; color: #e2e8f0; border: 0; --text: #f8fafc; --muted: #94a3b8; --line: rgba(255, 255, 255, .14); --ok: #6ee7b7; }
.alf-cta .text-gradient { --grad: linear-gradient(100deg, #6ee7b7, #a5b4fc); }
.alf-cta::before { content: ""; position: absolute; inset: -40% -20% auto auto; width: 60%; height: 140%; background: radial-gradient(closest-side, rgba(16, 185, 129, .25), transparent); pointer-events: none; }
.alf-cta-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.alf-cta-grid > div { display: grid; gap: 18px; }
.alf-cta .input { background: rgba(255, 255, 255, .08); color: #fff; }
.alf-cta .chip span { background: rgba(255, 255, 255, .06); color: #e2e8f0; }
.alf-fs { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }

@media (max-width: 980px) {
  .alf-hero-grid, .alf-calc, .alf-cta-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .alf-funnel { grid-template-columns: 1fr; }
  .alf-stages { grid-template-columns: 1fr 1fr; gap: 12px; }
  .alf-flow div { grid-template-columns: 1fr auto; }
  .alf-flow i { grid-column: span 2; }
  .alf-utm-row { grid-template-columns: 1fr; }
  .alf-link { flex-direction: column; align-items: stretch; }
}
