/* ==========================================================================
   Ad funnel shell

   Loaded only by core/templates/core/base_funnel.html, through base.html's
   {% block head_css %}, after components.css, for the reason portal.css
   gives: a file boundary answers "can this rule reach the rest of the site?"
   without reading selectors.

   The funnel's sections are components.css's own (.hero, .obstacle-grid,
   .feature-grid, .coach, .assurance-grid, .faq-list, .cta-band, .results-grid,
   .embed-consent), so what is here is only what those do not have: the
   stripped header and footer, the hero with a photograph in it, and the
   one-question-a-screen form.

   Every colour is a token, as in components.css. The footer sits on
   --forest-deep, the same in both themes, and takes the marketing footer's
   palette so the two bands read as one material.
   ========================================================================== */

/* ---------- shell ---------- */
.funnel-nav .nav-inner { justify-content: space-between; }

.funnel-foot {
  max-width: var(--maxw); margin: 0 auto; padding: 1.6rem 24px 1.9rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 0.6rem 1.6rem; font-size: 0.9rem;
}
.funnel-foot a { color: rgba(var(--cream-fixed-rgb), 0.8); }
.funnel-foot a:hover { color: var(--gold); }
/* The margin suits a link stacked in a column, which this row is not. */
.funnel-foot .footer-legal-cta { margin-top: 0; }

/* ---------- hero ---------- */
/* The ad's own sentence, above the headline and in the accent face, so it is
   the first thing read and reads as a voice rather than as a heading. */
.funnel-hero-line {
  font-family: var(--serif-accent); font-style: italic; font-weight: 700;
  font-size: clamp(1.25rem, 1rem + 1.2vw, 1.7rem); line-height: 1.25;
  color: var(--terracotta-text); margin-bottom: 1.1rem;
}
.funnel-hero-inner--photo {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
}
.funnel-hero-inner--photo .hero-copy { text-align: left; }
.funnel-hero-inner--photo .hero-copy .hero-lede { margin-left: 0; }
.funnel-hero-photo { margin: 0; }
.funnel-hero-photo img {
  display: block; width: 100%; height: auto;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
}
@media (max-width: 820px) {
  .funnel-hero-inner--photo { grid-template-columns: 1fr; }
  .funnel-hero-inner--photo .hero-copy { text-align: center; }
  .funnel-hero-inner--photo .hero-copy .hero-lede { margin-left: auto; }
  .funnel-hero-inner--photo .hero-actions { justify-content: center; }
  .funnel-hero-photo { max-width: 420px; margin: 0 auto; }
  /* On a phone the whole 4:5 photograph would push the headline and the
     button a screen and a half down. The top 5:4 of it keeps the face, the
     crossed arms and the bar, and drops the legs and the floor. Re-check the
     ratio against any replacement photograph. */
  .funnel-hero-photo img { aspect-ratio: 5 / 4; object-fit: cover; object-position: top; }
}

/* ---------- sections ---------- */
.funnel-different .feature-grid { grid-template-columns: repeat(2, 1fr); max-width: 920px; margin-left: auto; margin-right: auto; }
@media (max-width: 640px) {
  .funnel-different .feature-grid { grid-template-columns: 1fr; }
}

/* The logo this replaces sits at 74% inside the ring; a photograph fills it. */
.coach-portrait .funnel-about-photo { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* ---------- the form ---------- */
.funnel-form-wrap { max-width: 640px; }
.funnel-form { display: grid; gap: 1.6rem; }

.funnel-step { border: 0; margin: 0; padding: 0; min-width: 0; }
/* Without this the grid rule above, or any later display on the fieldset,
   beats the hidden attribute and every question shows at once. */
.funnel-step[hidden] { display: none; }

.funnel-prompt {
  padding: 0; margin-bottom: 1.1rem;
  font-family: var(--serif); font-weight: 600; color: var(--ink);
  font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.6rem); line-height: 1.25;
}
.funnel-prompt:focus { outline: none; }
.funnel-progress {
  display: block; margin-bottom: 0.5rem;
  font-family: var(--sans); font-size: 0.8rem; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft);
}

.funnel-choices { display: grid; gap: 0.7rem; }
.funnel-choice { position: relative; display: block; cursor: pointer; }
/* Hidden from sight and still focusable, so the arrow keys and the focus
   ring below keep working; display: none would take the group off the
   keyboard altogether. */
.funnel-choice input {
  position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0;
}
.funnel-choice span {
  display: block; padding: 0.95rem 1.1rem;
  background: var(--cream-card); color: var(--ink);
  border: 1.5px solid var(--line-strong); border-radius: var(--radius);
  font-weight: 700; transition: border-color 0.15s ease, background-color 0.15s ease;
}
.funnel-choice:hover span { border-color: var(--terracotta); }
.funnel-choice input:checked + span {
  border-color: var(--terracotta);
  background: rgba(var(--terracotta-rgb), 0.10);
}
.funnel-choice input:focus-visible + span {
  outline: 2px solid var(--verdigris); outline-offset: 2px;
}

.funnel-step .consult-field { max-width: none; }
.funnel-step .consult-error { display: block; margin-top: 0.7rem; }

.funnel-form-nav { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: space-between; }
.funnel-form-nav [hidden] { display: none; }
/* Alone on the first screen, Next belongs on the right where it will be on
   every screen after. */
.funnel-form-nav [data-funnel-back][hidden] + [data-funnel-next] { margin-left: auto; }

/* Cal.com's frame sizes itself; this only keeps the framed box from
   collapsing to nothing in the moment before it arrives. */
.funnel-cal { min-height: var(--embed-height, 700px); }
