/* ==========================================================================
   Social Media Ads (/social-media-ads)
   Page-only layouts. Shared pieces come from components.css; values are tokens.
   ========================================================================== */

/* ── Hero: an ad in the feed, and the leads it brings ─────────────────────── */
.ads-hero { position: relative; padding-bottom: var(--section-pad-tight); overflow-x: clip; isolation: isolate; }
.ads-hero__light { position: absolute; z-index: -1; inset: -15% -10% auto 40%; height: 120%; background: var(--light-spot); pointer-events: none; }
.ads-hero__grid { display: grid; gap: var(--sp-6) var(--grid-gutter); align-items: center; }
@media (min-width: 992px) { .ads-hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.ads-hero__copy { display: grid; gap: var(--sp-3); justify-items: start; }
.ads-hero__title { max-width: 12ch; }
.ads-hero__answer { color: var(--c-text); max-width: 52ch; }
.ads-hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-1); }
@media (max-width: 575.98px) { .ads-hero__actions .btn { width: 100%; } }
.js-motion .ads-hero__copy > * { animation: ads-rise var(--dur-slow) var(--ease-signature) backwards; }
.js-motion .ads-hero__copy > :nth-child(2) { animation-delay: var(--stagger-items); }
.js-motion .ads-hero__copy > :nth-child(3) { animation-delay: calc(var(--stagger-items) * 2); }
.js-motion .ads-hero__copy > :nth-child(n + 4) { animation-delay: calc(var(--stagger-items) * 3); }
@keyframes ads-rise { from { opacity: 0.01; transform: translateY(var(--reveal-rise)); } }

/* phones: the phone sits left and the leads dock on its right, clear of the ad button */
.ads-stage { position: relative; display: grid; justify-items: start; }
@media (min-width: 992px) { .ads-stage { justify-items: start; padding: 0 0 0 var(--sp-4); } }
.ads-phone { width: clamp(13rem, 10rem + 9vw, 17rem); box-shadow: var(--shadow), 0 0 90px -30px var(--glow-color); }
.ads-post__top { position: absolute; z-index: 1; inset: 0 0 auto; display: flex; align-items: center; gap: var(--sp-1); padding: var(--sp-2) var(--sp-2) var(--sp-4); background: linear-gradient(180deg, rgb(14 12 11 / 0.8), transparent); font-size: var(--fs-caption); line-height: 1.25; }
.ads-post__who { display: grid; }
.ads-post__who span { color: var(--c-text-muted); }
.ads-post__cta { position: absolute; z-index: 1; inset: auto var(--sp-1) var(--sp-1); display: flex; align-items: center; justify-content: center; gap: var(--sp-1); padding: var(--sp-1); border-radius: var(--r-sm); background: var(--c-text); color: var(--c-bg); font-size: var(--fs-caption); font-weight: var(--text-weight-bold); }
.ads-post__cta .icon { --icon-size: 1rem; }

.ads-leads { position: absolute; z-index: 2; right: 0; top: 16%; display: grid; gap: var(--sp-1); width: min(14rem, 62%); list-style: none; }
@media (min-width: 992px) { .ads-leads { top: auto; bottom: 10%; width: 16rem; } }
.lead-note { display: flex; align-items: center; gap: var(--sp-1); padding: var(--sp-1) var(--sp-2) var(--sp-1) var(--sp-1); border: var(--border-strong); border-radius: var(--r-md); background: var(--c-surface-1); box-shadow: var(--shadow); font-size: var(--fs-caption); color: var(--c-text-muted); transition: border-color var(--dur-base) var(--ease-hover), box-shadow var(--dur-base) var(--ease-hover); }
.lead-note > span:last-child { display: grid; line-height: 1.35; }
.lead-note strong { color: var(--c-text); font-size: var(--fs-small); }
.lead-note__icon { display: grid; place-items: center; flex: none; width: 2.25rem; aspect-ratio: 1; border-radius: 50%; background: rgb(var(--c-accent-rgb) / 0.14); color: var(--c-accent-text); }
.lead-note__icon .icon { --icon-size: 1rem; }
.lead-note.is-new { border-color: rgb(var(--c-accent-rgb) / 0.6); box-shadow: var(--shadow), 0 0 30px -8px var(--glow-color); }

/* ── 01 · Who it's for ─────────────────────────────────────────────────── */
.symptoms { display: grid; gap: var(--grid-gutter); list-style: none; }
@media (min-width: 768px) { .symptoms { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.symptom { display: grid; align-content: start; gap: var(--sp-2); padding: clamp(1.5rem, 1rem + 1.5vw, 2.5rem); transition: border-color var(--dur-base) var(--ease-signature); }
.symptom::before { content: ""; position: absolute; z-index: -1; left: var(--mx, 50%); top: var(--my, 0%); width: 30rem; aspect-ratio: 1; translate: -50% -50%; background: var(--light-spot); opacity: 0; transition: opacity var(--dur-base) var(--ease-signature); }
.symptom:hover { border-color: var(--c-line-strong); }
.symptom:hover::before { opacity: 1; }
.symptom__icon { display: grid; place-items: center; width: 3rem; aspect-ratio: 1; border: var(--border-strong); border-radius: 50%; color: var(--c-accent-text); }
.symptom__icon .icon { --icon-size: 1.25rem; }
.symptom__quote { font-size: var(--fs-h3); letter-spacing: var(--display-tracking); line-height: 1.05; }
.symptom__fix { color: var(--c-text-muted); }

/* ── 02 · The funnel: light gathers towards the leads ──────────────────── */
.ads-funnel__grid { display: grid; gap: var(--sp-6) var(--grid-gutter); align-items: center; }
@media (min-width: 992px) { .ads-funnel__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.ads-funnel__intro { display: grid; gap: var(--sp-3); }
.funnel { display: grid; justify-items: center; gap: var(--sp-1); list-style: none; }
.funnel__band {
  display: grid;
  justify-items: center;
  gap: var(--sp-1);
  width: 100%;
  padding: var(--sp-3) 8%;
  clip-path: polygon(0 0, 100% 0, 96% 100%, 4% 100%);
  text-align: center;
  transform-origin: top;
}
.funnel__band--1 { background: var(--c-surface-2); }
.funnel__band--2 { width: 88%; background: linear-gradient(180deg, var(--c-surface-2), var(--c-surface-3)); }
.funnel__band--3 { width: 76%; background: linear-gradient(180deg, rgb(var(--c-accent-rgb) / 0.18), rgb(var(--c-accent-rgb) / 0.32)); }
.funnel__band--4 { width: 64%; background: var(--c-accent); color: var(--c-accent-ink); box-shadow: 0 0 60px -10px var(--glow-color); }
.funnel__stage { display: inline-flex; align-items: baseline; gap: var(--sp-1); font-family: var(--font-display); font-size: var(--fs-h4); font-weight: var(--display-weight); letter-spacing: -0.015em; }
.funnel__stage span { font-family: var(--font-mono); font-size: var(--fs-caption); color: var(--c-accent-text); }
.funnel__band--4 .funnel__stage span { color: var(--c-accent-ink); }
.funnel__items { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-1) var(--sp-3); list-style: none; font-size: var(--fs-small); color: var(--c-text-muted); }
.funnel__band--4 .funnel__items { color: var(--c-accent-ink); }
.funnel__items li { display: inline-flex; align-items: center; gap: 6px; }
.funnel__items .icon { --icon-size: 1rem; color: var(--c-accent-text); }
.funnel__band--4 .funnel__items .icon { color: var(--c-accent-ink); }
@media (max-width: 575.98px) { .funnel__band { padding-inline: 4%; clip-path: polygon(0 0, 100% 0, 98% 100%, 2% 100%); } .funnel__band--2 { width: 94%; } .funnel__band--3 { width: 88%; } .funnel__band--4 { width: 82%; } .funnel__items li { text-align: center; } }

/* ── 03 · Meta and LinkedIn ────────────────────────────────────────────── */
.ad-platforms { display: grid; gap: var(--grid-gutter); }
@media (min-width: 768px) { .ad-platforms { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ad-platform { display: grid; align-content: start; gap: var(--sp-1); padding: clamp(1.5rem, 1rem + 1.6vw, 2.75rem); }
.ad-platform__icons { display: flex; gap: var(--sp-1); margin-bottom: var(--sp-2); }
.ad-platform__icons span { display: grid; place-items: center; width: 3.5rem; aspect-ratio: 1; border-radius: 50%; background: var(--c-surface-2); }
.ad-platform__icons .icon { --icon-size: 1.5rem; }
.ad-platform__name { font-size: var(--fs-h3); letter-spacing: var(--display-tracking); line-height: 1; }
.ad-platform__for { font-size: var(--fs-eyebrow); font-weight: var(--text-weight-bold); letter-spacing: var(--eyebrow-tracking); text-transform: uppercase; color: var(--c-accent-text); }
.ad-platform__text { margin-top: var(--sp-1); color: var(--c-text-muted); }
.ad-platform__links { display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-3); margin-top: var(--sp-2); }
.ad-platform__links .link-arrow { min-height: var(--tap-min); }

/* ── 04 · How it works: a week-by-week list ────────────────────────────── */
.ads-how__grid { display: grid; gap: var(--sp-5) var(--grid-gutter); }
@media (min-width: 992px) { .ads-how__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; } .ads-how__intro { position: sticky; top: calc(var(--header-h) + var(--sp-6)); } }
.ads-how__intro { display: grid; gap: var(--sp-3); }
.weeks { list-style: none; border-top: var(--border-strong); }
.weeks__row { display: grid; gap: var(--sp-1) var(--sp-3); padding: var(--sp-3) 0; border-bottom: var(--border); }
@media (min-width: 576px) { .weeks__row { grid-template-columns: 8rem minmax(0, 1fr); align-items: baseline; } }
.weeks__when { font-family: var(--font-mono); font-size: var(--fs-small); color: var(--c-accent-text); }
.weeks__title { font-size: var(--fs-h4); letter-spacing: -0.015em; line-height: 1.2; }
.weeks__text { margin-top: 2px; color: var(--c-text-muted); }

/* ── 06 · Why + the client's words + budget note ───────────────────────── */
.ads-why__grid { display: grid; gap: var(--sp-5) var(--grid-gutter); }
@media (min-width: 992px) { .ads-why__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); align-items: start; } }
.ads-why__copy { display: grid; gap: var(--sp-4); }
.why-points { display: grid; gap: var(--sp-3); list-style: none; }
.why-points li { display: flex; gap: var(--sp-2); align-items: flex-start; }
.why-points li > span:last-child { display: grid; gap: 2px; color: var(--c-text-muted); }
.why-points strong { color: var(--c-text); }
.why-points__icon { display: grid; place-items: center; flex: none; width: 2.75rem; aspect-ratio: 1; border: var(--border-strong); border-radius: 50%; color: var(--c-accent-text); }
.why-points__icon .icon { --icon-size: 1.125rem; }
.budget-note { display: flex; gap: var(--sp-2); align-items: flex-start; padding: var(--sp-3); border: 1px dashed rgb(var(--c-accent-rgb) / 0.5); border-radius: var(--r-md); color: var(--c-text-muted); }
@media (min-width: 992px) { .budget-note { grid-column: 1 / -1; } }
.budget-note .icon { --icon-size: 1.25rem; flex: none; color: var(--c-accent-text); }
.budget-note strong { color: var(--c-text); }
