/* Funnel pages (/audit/, /thanks/), 2026-10-25. Loads after home.css and reuses its tokens,
   pill header, buttons, statement screen (.say) and schedule table (.runs). Dark page,
   one thing to do per page. */
body.funnel { background: var(--green-deep); color: var(--paper); }
.funnel .btn--ghost { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 1.5px rgba(255, 246, 234, .4); }
.funnel .btn--ghost:hover { background: rgba(255, 246, 234, .08); box-shadow: inset 0 0 0 1.5px var(--paper); }

/* ================= Audit: headline, then the ads running ================= */
.ahero { padding: calc(var(--header-h) + clamp(40px, 6vw, 72px)) 0 clamp(48px, 6vw, 80px); overflow: clip; }
.ahero__head { text-align: center; }
.ahero h1 { margin: 0 auto; max-width: 15ch; font-weight: 700; text-transform: uppercase; letter-spacing: -.02em; line-height: .88; font-size: clamp(2.6rem, 7vw, 6rem); }
.ahero__head p { margin: 22px auto 0; max-width: 46ch; color: var(--cream-dim); font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); line-height: 1.5; }
.ahero__head .btn { margin-top: 28px; }
.ahero__note { margin-top: 18px; text-align: center; font-size: 1rem; color: rgba(255, 246, 234, .64); }

.adrun { position: relative; width: min(100% - 2 * var(--gutter), 1080px); margin: clamp(48px, 7vw, 88px) auto 0; }
.adrun__ads { display: grid; grid-template-columns: 1fr 1.15fr 1.2fr; gap: clamp(20px, 3vw, 44px); align-items: center; perspective: 1400px; }
.adc { margin: 0; transition: transform .6s var(--ease); }
.adc figcaption { margin-top: 14px; text-align: center; font-size: .85rem; font-weight: 600; color: rgba(255, 246, 234, .55); transition: color .4s; }
.adc--ig { transform: rotateY(14deg) rotateX(4deg); }
.adc--g { transform: translateY(-18px); }
.adc--tv { transform: rotateY(-14deg) rotateX(4deg); }
/* The ad bringing in the current lead lifts and gets a gold edge */
.adc.is-live .adc__card { transform: translateY(-10px); box-shadow: 0 0 0 2px var(--accent), 0 40px 70px -28px rgba(0, 0, 0, .8); }
.adc.is-live figcaption { color: var(--paper); }

.adc--tv.is-live .adc__card { box-shadow: none; }
.adc--tv.is-live .tv__screen { box-shadow: 0 0 0 2px var(--accent), 0 40px 70px -28px rgba(0, 0, 0, .8); }

/* Where the ads land: a lead feed */
.feed { position: relative; z-index: 2; width: min(100%, 460px); margin: 28px auto 0; background: var(--white); color: var(--ink); border-radius: 18px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8); overflow: hidden; }
.feed__bar { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 18px; border-bottom: 1px solid var(--rule); font-size: .82rem; color: var(--ink-soft); }
.feed__bar b { color: var(--ink); font-weight: 600; }
.feed__bar b span { color: var(--accent-text); font-variant-numeric: tabular-nums; }
.feed__list { list-style: none; margin: 0; padding: 0; }
.feed__list li { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--rule); transition: opacity .5s var(--ease), transform .5s var(--ease), background 1.2s; }
.feed__list li:last-child { border-bottom: 0; }
.feed__list li.is-new { opacity: 0; transform: translateY(-10px); background: #fff3d9; }
.feed__src { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; font-style: normal; font-size: .72rem; font-weight: 700; color: #fff; }
.feed__src[data-k="ig"] { background: #d62976; }
.feed__src[data-k="g"] { background: #4285f4; }
.feed__src[data-k="tv"] { background: #111; }
.feed__who b { display: block; font-size: .95rem; }
.feed__who small { display: block; font-size: .8rem; color: var(--ink-soft); }
.feed__st { font-size: .8rem; font-weight: 600; color: var(--ink-soft); white-space: nowrap; }
.feed__st.is-booked { color: var(--green); }
.feed__st.is-booked::before { content: "\2713  "; color: var(--accent-text); }

/* Phones: one ad at a time, the one bringing in the lead */
@media (max-width: 760px) {
  .adrun__ads { display: block; position: relative; height: 470px; perspective: none; }
  .adc { position: absolute; inset: 0 0 auto; margin-inline: auto; width: min(100%, 250px); opacity: 0; transform: translateY(12px) !important; transition: opacity .3s var(--ease), transform .3s var(--ease); }
  .adc--g, .adc--tv { width: min(100%, 330px); top: 70px; }
  /* The next ad fades in only after the last one has gone. */
  .adc.is-live { opacity: 1; transform: none !important; transition-duration: .5s; transition-delay: .35s; }
  .adc.is-live .adc__card, .adc--tv.is-live .tv__screen { transform: none; box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .7); }
  .adc figcaption { margin-top: 10px; }
  .feed { transform: none; margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .tv__bar i { animation: none; transform: scaleX(.4); }
}

/* ================= Audit: the form, on one clean card ================= */
.astart { padding: clamp(72px, 9vw, 120px) 0 var(--space); }
.astart__card { display: grid; gap: 36px; background: var(--paper); color: var(--ink); border-radius: 28px; padding: clamp(24px, 4vw, 56px); }
@media (min-width: 900px) { .astart__card { grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 5vw, 80px); } }
/* Phones: the form first, so "Start my free audit" lands on the email field; the checklist follows. */
@media (max-width: 899px) { .astart__info { order: 2; } }
.astart h2 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1; letter-spacing: -.03em; }
.astart__list { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.astart__list li { padding: 14px 0 14px 28px; border-bottom: 1px solid var(--rule); position: relative; }
.astart__list li::before { content: "\2713"; position: absolute; left: 0; color: var(--accent-text); font-weight: 700; }
.astart__small { margin-top: 18px; font-size: 1rem; line-height: 1.5; color: var(--ink-soft); }

.form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.form legend { padding: 0; }
.form legend h3 { margin: 0 0 20px; font-size: clamp(1.4rem, 1.2rem + .8vw, 1.8rem); letter-spacing: -.02em; line-height: 1.1; }
.form.is-stepped .fstep { display: none; }
.form.is-stepped .fstep.is-on { display: block; }
.form__progress { display: none; align-items: center; gap: 12px; margin-bottom: 22px; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.form.is-stepped .form__progress { display: flex; }
.form__progress > i { flex: 1; height: 3px; border-radius: 2px; background: var(--rule); overflow: hidden; }
.form__progress > i > i { display: block; height: 100%; width: calc(var(--step, 1) * 50%); background: var(--accent); transition: width .45s var(--ease); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.field label, .field__label { font-size: 1rem; font-weight: 600; color: var(--ink-soft); }
.opt { font-weight: 400; color: rgba(31, 43, 31, .66); }
.field input, .field textarea { font: inherit; font-size: max(16px, 1.05rem); color: var(--ink); background: var(--white); border: 1px solid var(--rule); border-radius: 12px; padding: 12px 14px; min-height: 50px; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 72px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(31, 43, 31, .38); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green-deep); box-shadow: 0 0 0 3px rgba(241, 177, 56, .35); }
.row2 { display: grid; gap: 0 16px; }
@media (min-width: 560px) { .row2 { grid-template-columns: 1fr 1fr; } }
.hp { position: absolute; left: -9999px; }
.chips-in { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid rgba(31, 43, 31, .22); border-radius: 999px; font-size: .92rem; background: var(--white); transition: background .2s, color .2s, border-color .2s; }
.chip input:checked + span { background: var(--green-deep); border-color: var(--green-deep); color: var(--paper); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form details.more { margin: 0 0 18px; }
.form details.more summary { list-style: none; cursor: pointer; display: flex; align-items: center; min-height: 44px; font-weight: 600; font-size: .95rem; }
.form details.more summary::-webkit-details-marker { display: none; }
.form details.more summary::after { content: "+"; margin-left: 10px; font-weight: 400; font-size: 1.3rem; transition: rotate .3s var(--ease); }
.form details.more[open] summary::after { rotate: 45deg; }
.fstep > .btn { width: 100%; }
.fstep__actions { display: flex; gap: 12px; }
.fstep__actions .btn { flex: 1; }
.astart .btn--ghost { flex: 0 0 auto; background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(31, 43, 31, .35); }
.astart .btn--ghost:hover { background: var(--paper-2); }
.form__status { margin-top: 14px; min-height: 1.4em; font-size: .95rem; color: var(--ink-soft); }
.form__status.err { color: #b3261e; }

/* ================= Thanks ================= */
.runs--dark { background: var(--green-deep); color: var(--paper); border-top: 1px solid var(--rule-light); padding: var(--space) 0; }
.runs--dark .runs__head, .runs--dark .runs__rows li { border-color: var(--rule-light); }
.runs--dark .runs__head p, .runs--dark .runs__rows span, .runs--dark .runs__rows time { color: rgba(255, 246, 234, .6); }
.runs--dark .runs__rows i { background: linear-gradient(var(--paper), var(--paper)) 0 0 / calc(var(--p) * 100%) 100% no-repeat, rgba(255, 246, 234, .14); }
.runs--dark .runs__rows li:last-child i { background: var(--accent); }
.say--thanks { min-height: 100svh; border-top: 0; padding-top: calc(var(--header-h) + 48px); }
.say--thanks h1 { margin: 0 auto; font-weight: 700; text-transform: uppercase; letter-spacing: -.02em; line-height: .86; font-size: clamp(4.4rem, 20vw, 13rem); }
.say__line { margin: 26px auto 0; max-width: 38ch; color: var(--cream-dim); font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); line-height: 1.5; }
.say__ctas { margin-top: 34px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ================= Footer ================= */
.foot--funnel { padding: 36px 0; border-top: 1px solid var(--rule-light); color: rgba(255, 246, 234, .5); font-size: 1rem; }
.foot--funnel a { color: inherit; padding-block: 12px; }
