/* Step-by-step lead form (advice section + popup), same flow as Goudbound and Dialed Performance, in Indigo teal. */
[hidden] { display: none !important; }
.lead-form { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; display: grid; gap: 16px; box-shadow: var(--shadow-md); position: relative; overflow: hidden; }
.lead-form::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--accent); }
.form-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.form-head h3 { font-size: 18px; line-height: 24px; }
.form-count { font-size: 13px; color: var(--ink-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.progress { height: 6px; background: var(--primary-soft); border-radius: var(--radius-pill); overflow: hidden; margin-top: -4px; }
.progress span { display: block; height: 100%; width: 20%; background: var(--accent); border-radius: inherit; transition: width .2s ease-out; }
fieldset.fstep { border: 0; padding: 0; margin: 0; min-width: 0; }
.fstep legend { padding: 0; margin-bottom: 10px; }
.fstep { display: grid; gap: 10px; padding-top: 4px; animation: stepIn .18s ease-out; }
.fstep.from-left { animation-name: stepInLeft; }
@keyframes stepIn { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
@keyframes stepInLeft { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
.q { font-family: var(--display); font-size: 22px; line-height: 30px; font-weight: 700; color: var(--ink); }
.hint { font-size: 13px; color: var(--ink-muted); }
.sub-label { font-size: 14px; font-weight: 600; color: var(--ink); margin-top: 6px; }
.lead-form input[type="text"], .lead-form input[type="tel"], .lead-form input[type="email"] { font: inherit; font-size: 16px; color: var(--ink); min-height: 50px; padding: 12px 16px; border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--surface-raised); width: 100%; }
.lead-form input:focus { outline: 2px solid var(--focus); outline-offset: 2px; }
.lead-form input[aria-invalid="true"] { border-color: var(--danger); }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choice { position: relative; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: flex; align-items: center; min-height: 50px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--surface-raised); font-size: 15px; font-weight: 500; transition: background .08s, border-color .08s, transform .08s; }
.choice:active span { transform: scale(.98); }
.choice:hover span { background: var(--primary-soft); }
.choice input:checked + span { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.choice input:checked + span::after { content: "✓"; margin-left: auto; font-weight: 700; }
.choice input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (max-width: 380px) { .choices { grid-template-columns: 1fr; } }
.field-error { font-size: 13px; color: var(--danger); }
.field-error::before { content: "⚠ "; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-muted); line-height: 1.45; margin-top: 4px; cursor: pointer; }
.consent input { margin-top: 1px; accent-color: var(--primary); width: 18px; height: 18px; flex: none; cursor: pointer; }
.consent a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.form-nav { display: flex; gap: 10px; align-items: stretch; }
.lead-form .btn { justify-content: center; flex: 1; }
.lead-form .btn[disabled] { opacity: .6; cursor: wait; }
.back-btn { border: 1px solid var(--line-strong); background: var(--surface-raised); color: var(--primary); border-radius: var(--radius-md); padding: 0 18px; min-height: 48px; cursor: pointer; font: 600 15px Inter, sans-serif; }
.back-btn:hover { background: var(--primary-soft); }
.form-note { font-size: 12px; color: var(--ink-muted); text-align: center; }
.form-error { font-size: 14px; color: var(--danger); text-align: center; }
.hp { position: absolute; left: -9999px; }
.form-success { text-align: center; padding: 32px 12px; display: grid; gap: 12px; justify-items: center; }
.form-success .ok-check { width: 56px; height: 56px; border-radius: var(--radius-lg); background: var(--accent); color: var(--on-accent); display: grid; place-items: center; }
.form-success p { color: var(--ink-muted); }
.form-success .ok-title { color: var(--ink); font-family: var(--display); font-size: 22px; line-height: 30px; font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .fstep { animation: none; } .progress span { transition: none; } }

/* popup: short pitch, then the same form */
html:has(.pilot[open]) { overflow: hidden; }
.pilot { width: min(500px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: auto; background: var(--surface-raised); color: var(--ink); box-shadow: var(--shadow-lg); margin: auto; }
.pilot:focus { outline: none; }
.pilot::backdrop { background: rgba(27,28,69,.5); backdrop-filter: blur(3px); }
.pilot[open] { animation: pilotIn .22s ease-out; }
.pilot[open]::backdrop { animation: pilotFade .22s ease-out; }
@keyframes pilotIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes pilotFade { from { opacity: 0; } }
.pilot-card { position: relative; padding: 36px 32px 24px; }
.pilot-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--accent); }
.pilot-photo { margin: -36px -32px 24px; aspect-ratio: 16 / 7; overflow: hidden; }
.pilot-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.pilot h2 { font-size: 30px; line-height: 38px; margin-bottom: 12px; }
.pilot-text { color: var(--ink-muted); margin-bottom: 20px; }
.pilot-perks { list-style: none; display: grid; gap: 12px; margin-bottom: 24px; font-size: 15px; }
.pilot-perks li { display: flex; gap: 12px; align-items: center; }
.pilot-perks svg { flex: none; width: 24px; height: 24px; padding: 5px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--accent-ink); }
.pilot-cta { width: 100%; justify-content: center; }
.pilot-skip { display: block; margin: 10px auto 0; padding: 8px; min-height: 44px; border: 0; background: none; cursor: pointer; font: 500 14px Inter, sans-serif; color: var(--ink-muted); text-decoration: underline; text-underline-offset: 3px; }
.pilot-skip:hover { color: var(--ink); }
.pilot .lead-form { border: 0; border-radius: 0; box-shadow: none; padding: 0; overflow: visible; background: none; }
.pilot .lead-form::before { display: none; }
@media (prefers-reduced-motion: reduce) { .pilot[open], .pilot[open]::backdrop { animation: none; } }
.pilot.kb-open { margin-top: auto; margin-bottom: var(--kb); max-height: calc(var(--vvh) - 8px); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.pilot.kb-open .pilot-card { padding-top: 20px; padding-bottom: 14px; }
.pilot.kb-open .form-note, .pilot.kb-open .hint:not(.save-note) { display: none; }
@media (max-width: 480px) {
  .pilot { width: 100%; margin: auto 0 0; max-height: calc(100dvh - 24px); border-radius: var(--radius-lg) var(--radius-lg) 0 0; border-bottom: 0; }
  .pilot-card { padding: 30px 20px calc(20px + env(safe-area-inset-bottom)); }
  .pilot-photo { margin: -30px -20px 20px; }
  .lead-form { padding: 24px 20px; }
  .q { font-size: 20px; line-height: 28px; }
}

/* sticky button (mobile): one tap away until the hero button or the form is on screen */
.sticky { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(246,246,252,.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); transition: transform .3s ease; }
.sticky .btn { width: 100%; justify-content: center; }
.sticky.away { transform: translateY(110%); }
@media (max-width: 760px) { .sticky { display: block; } footer { padding-bottom: 110px; } }
@media (prefers-reduced-motion: reduce) { .sticky { transition: none; } }
