/* ================================================================
   IRONCLAD DIGITAL — Free Lead Leak Audit funnel
   Mobile-first. Reuses tokens / .btn / .container from style.css
================================================================ */

:root {
  --bg-input:   #10151B;
  --sel:        #11C5D9;
  --amber:      #E6A23C;
  --amber-bg:   rgba(230,162,60,0.10);
  --divider:    rgba(255,255,255,0.10);
  --fnl-head-h: 60px;
}

.audit-body {
  background: var(--bg);
  min-height: 100svh;
}

/* `hidden` must win over flex/inline-flex display rules below */
[hidden] { display: none !important; }

/* ── Funnel header ───────────────────────────────────────────── */
.fnl-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7,11,15,0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.fnl-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--fnl-head-h);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.fnl-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--white);
}
.fnl-logo svg { flex-shrink: 0; }
.fnl-logo__sub {
  display: block;
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--teal);
  line-height: 1;
  margin-top: 1px;
}

.fnl-header__note {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.fnl-header__note--cta {
  color: var(--teal);
  text-decoration: none;
  border: 1px solid rgba(17,197,217,0.35);
  border-radius: 100px;
  padding: 6px 14px;
  transition: background 0.15s, border-color 0.15s;
}
.fnl-header__note--cta:hover {
  background: rgba(17,197,217,0.1);
  border-color: var(--teal);
}

.fnl-exit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  padding: 6px 4px;
  transition: color 0.15s;
}
.fnl-exit:hover { color: var(--white); }

/* Progress row */
.fnl-progress {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 12px;
}
.fnl-progress__row {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.fnl-progress__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.fnl-progress__track {
  height: 4px;
  border-radius: 100px;
  background: rgba(255,255,255,0.07);
  overflow: hidden;
}
.fnl-progress__bar {
  height: 100%;
  width: 0%;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--teal), var(--teal-hover));
  box-shadow: 0 0 12px rgba(17,197,217,0.5);
  transition: width 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}
.fnl-progress--hidden-track .fnl-progress__track { display: none; }

/* ── Stage layout ────────────────────────────────────────────── */
.fnl { padding-bottom: 48px; }

.fnl-stage {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  padding-top: 28px;
}

.fnl-main {
  flex: 1 1 auto;
  min-width: 0;
  position: relative;
}

/* ── Pane transitions ────────────────────────────────────────── */
.pane { display: none; }
.pane.is-active {
  display: block;
  animation: pane-in 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes pane-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .pane.is-active { animation: none; }
  .fnl-progress__bar { transition: none; }
}

.pane--narrow { max-width: 640px; margin: 0 auto; }

/* ── Shared card ─────────────────────────────────────────────── */
.fnl-card {
  background: var(--bg-card);
  border: 1px solid var(--border-md);
  border-radius: 22px;
  padding: 28px 22px;
}
.fnl-card__top-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}
.fnl-card__title {
  font-size: clamp(1.5rem, 5.5vw, 2rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.fnl-card__sub {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 22px;
}

/* ================================================================
   PANE 0 — LANDING
================================================================ */
.landing { display: flex; flex-direction: column; gap: 32px; }

.landing__headline {
  margin-bottom: 16px;
  background: linear-gradient(135deg, #F5F7FA 55%, #11C5D9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.landing__sub {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 520px;
}
.landing__cta { margin-top: 28px; }
.landing__micro {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  opacity: 0.9;
  margin-top: 12px;
}
.landing__outcomes {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.landing__outcomes span { font-size: 0.82rem; font-weight: 600; color: var(--muted); }
.landing__dot { color: var(--teal); font-size: 1.1rem; line-height: 1; }

.landing__visual-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}
.landing__cards { display: grid; grid-template-columns: 1fr; gap: 12px; }

.value-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-md);
  border-radius: 16px;
  padding: 18px 18px;
}
.value-card__icon {
  width: 42px; height: 42px;
  border-radius: 11px;
  background: rgba(17,197,217,0.1);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.value-card h3 { font-size: 0.92rem; margin-bottom: 4px; }
.value-card p { font-size: 0.83rem; color: var(--muted); line-height: 1.55; }

.teaser-card {
  margin-top: 4px;
  text-align: center;
  background: linear-gradient(160deg, rgba(17,197,217,0.08), rgba(17,197,217,0.02));
  border: 1px solid rgba(17,197,217,0.22);
  border-radius: 16px;
  padding: 20px 18px;
}
.teaser-card__label {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 8px;
}
.teaser-card__value {
  font-size: 2rem; font-weight: 800; color: var(--teal); letter-spacing: -0.02em;
}
.teaser-card__value span { font-size: 1rem; font-weight: 600; color: var(--muted); }
.teaser-card__note { font-size: 0.76rem; color: var(--muted); margin-top: 6px; opacity: 0.85; }

/* ================================================================
   QUESTION PANES (1–10)
================================================================ */
.qpane { /* generated wrapper */ }

/* Section headers */
.section-header {
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 2px solid rgba(17,197,217,0.2);
}
.section-header__title {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.02em;
}
.section-header__desc {
  margin: 0;
  font-size: 0.90rem;
  line-height: 1.5;
  color: var(--muted);
}

.question-card {
  background: var(--bg-card);
  border: 1px solid var(--border-md);
  border-radius: 22px;
  padding: 28px 22px;
}
.question-card__q {
  font-size: clamp(1.4rem, 5vw, 1.9rem);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.question-card__sub {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 22px;
}

/* Answer cards */
.answers { display: flex; flex-direction: column; gap: 11px; }

.answer {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  background: var(--bg-input);
  border: 1.5px solid var(--border-md);
  border-radius: 13px;
  padding: 16px 18px;
  font-family: var(--font);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--white);
  cursor: pointer;
  transition: border-color 0.16s, background 0.16s, box-shadow 0.16s;
}
.answer:hover { border-color: rgba(17,197,217,0.4); }
.answer:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

.answer__marker {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--border-md);
  flex-shrink: 0;
  position: relative;
  transition: border-color 0.16s, background 0.16s;
}
.answer--multi .answer__marker { border-radius: 6px; }
.answer__marker::after {
  content: '';
  position: absolute;
  inset: 0;
  display: flex;
  opacity: 0;
  transition: opacity 0.14s;
}

.answer[aria-pressed="true"] {
  border-color: var(--sel);
  background: rgba(17,197,217,0.07);
  box-shadow: 0 0 0 1px var(--sel), 0 0 20px rgba(17,197,217,0.16);
}
.answer[aria-pressed="true"] .answer__marker {
  border-color: var(--sel);
  background: var(--sel);
}
.answer[aria-pressed="true"] .answer__marker::after {
  opacity: 1;
  background: no-repeat center/12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8l3 3 6-6.5' stroke='%23070B0F' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.answer__label { flex: 1; line-height: 1.3; }

/* Inline "Other" text input */
.answer-other {
  margin-top: 12px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.25s ease, opacity 0.25s ease, margin 0.25s ease;
}
.answer-other.is-open { max-height: 110px; opacity: 1; }
.answer-other input {
  width: 100%;
  background: var(--bg-input);
  border: 1.5px solid var(--border-md);
  border-radius: 12px;
  padding: 14px 16px;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--white);
}
.answer-other input::placeholder { color: var(--muted); }
.answer-other input:focus { outline: none; border-color: var(--sel); }

/* Hint pill */
.hint {
  display: none;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
  background: var(--amber-bg);
  border: 1px solid rgba(230,162,60,0.32);
  border-radius: 100px;
  padding: 10px 16px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--amber);
}
.hint.is-visible { display: inline-flex; }
.hint--neutral {
  background: rgba(17,197,217,0.07);
  border-color: rgba(17,197,217,0.28);
  color: var(--teal);
}
.hint svg { flex-shrink: 0; }

/* ================================================================
   HELP PANEL (contextual guidance for each question)
================================================================ */
.fnl-help {
  padding: 20px;
  background: rgba(17,197,217,0.08);
  border: 1px solid rgba(17,197,217,0.2);
  border-radius: 12px;
  margin-bottom: 20px;
}
.fnl-help__title {
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--teal);
}
.fnl-help__text {
  margin: 0 0 16px;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--white);
}
.fnl-help__tip {
  padding: 12px;
  background: rgba(255,255,255,0.05);
  border-left: 3px solid var(--teal);
  border-radius: 6px;
}
.fnl-help__tip-label {
  font-size: 0.80rem;
  font-weight: 700;
  color: var(--teal);
  display: block;
  margin-bottom: 4px;
}
.fnl-help__tip-text {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--muted);
}

/* ================================================================
   SUPPORT PANEL (desktop, panes 1–10)
================================================================ */
.fnl-support {
  flex: 0 0 320px;
  background: var(--bg-card2);
  border: 1px solid var(--border-md);
  border-radius: 20px;
  padding: 28px 26px;
  position: sticky;
  top: 140px;
}
.fnl-support__title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 20px;
}
.fnl-support__list { list-style: none; display: flex; flex-direction: column; gap: 18px; }
.fnl-support__list li { display: flex; gap: 12px; }
.fnl-support__bullet {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: rgba(17,197,217,0.1);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.fnl-support__list strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 3px;
}
.fnl-support__list span { font-size: 0.82rem; color: var(--muted); line-height: 1.5; }
.fnl-support__foot {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--divider);
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ================================================================
   BACK / NEXT CONTROLS
================================================================ */
.fnl-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 22px;
}
.fnl-controls--sidebar {
  flex-direction: column;
  align-items: stretch;
  margin-top: 0;
  margin-bottom: 24px;
  display: none;
}
.fnl-controls--sidebar .fnl-controls__back {
  flex: 0 0 auto;
  width: 100%;
}
.fnl-controls--sidebar .fnl-controls__next {
  flex: 0 0 auto;
  width: 100%;
}
/* Mobile controls at bottom */
.fnl-controls-mobile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 20px;
  border-top: 1px solid var(--divider);
  background: var(--bg);
  position: sticky;
  bottom: 0;
  z-index: 50;
}
.fnl-controls__back { flex: 0 0 auto; min-height: 48px; display: flex; align-items: center; }
.fnl-controls__back[hidden] { display: none; }
.fnl-controls__next { flex: 1 1 auto; justify-content: center; min-height: 48px; display: flex; align-items: center; }
.btn[disabled] { opacity: 0.4; cursor: not-allowed; pointer-events: none; }

/* Improve button sizing on mobile */
.fnl-controls-mobile .btn {
  padding: 14px 16px;
  font-size: 0.95rem;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Desktop: show sidebar controls, hide mobile controls */
@media (min-width: 1024px) {
  .fnl-controls--sidebar {
    display: flex;
  }
  .fnl-controls-mobile {
    display: none;
  }
}

/* ================================================================
   CONTACT FORM (pane 11)
================================================================ */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-form { display: flex; flex-direction: column; gap: 16px; }
.field-row { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--white);
}
.field__opt { color: var(--muted); font-weight: 500; }
.field input {
  background: var(--bg-input);
  border: 1.5px solid var(--border-md);
  border-radius: 12px;
  padding: 14px 16px;
  font-family: var(--font);
  font-size: 0.96rem;
  color: var(--white);
  transition: border-color 0.16s;
}
.field input::placeholder { color: var(--muted); }
.field input:focus { outline: none; border-color: var(--sel); }
.field.has-error input { border-color: #FF5A5F; }
.field__error { font-size: 0.76rem; color: #FF7A7E; font-weight: 600; }

.consent {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--muted);
  cursor: pointer;
}
.consent input {
  width: 19px; height: 19px;
  flex-shrink: 0;
  margin-top: 1px;
  accent-color: var(--teal);
}

.contact-form__submit { justify-content: center; margin-top: 4px; }
.contact-form__legal {
  font-size: 0.74rem;
  color: var(--muted);
  opacity: 0.85;
  text-align: center;
  line-height: 1.5;
}

/* Spinner + loading */
.btn__spinner {
  display: none;
  width: 16px; height: 16px;
  border: 2px solid rgba(7,11,15,0.3);
  border-top-color: #070B0F;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.btn.is-loading .btn__spinner { display: inline-block; }
.btn.is-loading .btn__label { opacity: 0.7; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-status {
  font-size: 0.84rem;
  font-weight: 600;
  text-align: center;
  display: none;
}
.form-status.is-visible { display: block; }
.form-status[data-type="error"] { color: #FF7A7E; }

/* ================================================================
   RESULTS (pane 12)
================================================================ */
.results { display: flex; flex-direction: column; }
.results__label { text-align: center; }
.results__title {
  text-align: center;
  font-size: clamp(1.6rem, 6vw, 2.2rem);
  margin-bottom: 18px;
}
.results__hero {
  text-align: center;
  background: linear-gradient(160deg, rgba(17,197,217,0.1), rgba(17,197,217,0.02));
  border: 1px solid rgba(17,197,217,0.28);
  border-radius: 20px;
  padding: 24px 18px 22px;
  margin-bottom: 18px;
}
.results__hero-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.results__amount {
  font-size: clamp(2.4rem, 9vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(135deg, #11C5D9, #27D7EA 60%, #6EEAF5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.results__amount-unit {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  margin-top: 8px;
}
.results__sub {
  text-align: center;
  font-size: 0.96rem;
  line-height: 1.65;
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto 10px;
}
.results__trust {
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  opacity: 0.9;
  margin: 0 auto 20px;
}
.results__cta-top {
  justify-content: center;
  width: 100%;
  margin-bottom: 14px;
}
.results__metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 26px;
}
.metric-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-md);
  border-radius: 14px;
  padding: 16px 18px;
}
.metric-card__label {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.35;
}
.metric-card__val {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--teal);
  letter-spacing: -0.01em;
}
.results__confirm {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--teal);
  background: rgba(17,197,217,0.07);
  border: 1px solid rgba(17,197,217,0.22);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 24px;
  text-align: center;
  line-height: 1.4;
}
.results__confirm svg { flex-shrink: 0; }

.results__cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 20px;
}
.leak-card {
  background: var(--bg-card);
  border: 1px solid var(--border-md);
  border-radius: 16px;
  padding: 20px 18px;
}
.leak-card__icon {
  width: 42px; height: 42px;
  border-radius: 11px;
  background: rgba(17,197,217,0.1);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.leak-card h3 { font-size: 0.95rem; margin-bottom: 6px; }
.leak-card p { font-size: 0.84rem; color: var(--muted); line-height: 1.55; }

/* ── Risk Diagnostic Chart ────────────────────────────────────── */
.risk-diagnostic {
  margin: 30px 0;
  padding: 24px;
  background: rgba(17, 197, 217, 0.05);
  border: 1px solid rgba(17, 197, 217, 0.15);
  border-radius: 16px;
}

.risk-chart {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.risk-chart__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 8px 0;
  line-height: 1.2;
}

.risk-chart__label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--sel);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  min-height: 20px;
}

.risk-bars {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.risk-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
}

.risk-bar__label {
  flex: 0 0 140px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--white);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.risk-bar__visual {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.risk-bar__track {
  flex: 1 1 auto;
  height: 32px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(17, 197, 217, 0.1);
}

.risk-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, #11C5D9 0%, #0FA5B8 100%);
  border-radius: 8px;
  transition: width 0.4s ease-out;
  min-width: 4px;
}

.risk-bar__fill.risk-bar__fill--high {
  background: linear-gradient(90deg, #FF6B6B 0%, #E84D4D 100%);
}

.risk-bar__fill.risk-bar__fill--medium {
  background: linear-gradient(90deg, #E6A23C 0%, #D4931D 100%);
}

.risk-bar__score {
  flex: 0 0 auto;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  min-width: 32px;
  text-align: right;
}

@media (max-width: 768px) {
  .risk-bar__label {
    flex: 0 0 80px;
    font-size: 0.80rem;
    padding-right: 8px;
  }
  .risk-bar {
    min-height: 40px;
    gap: 8px;
  }
  .risk-bar__track {
    height: 28px;
  }
  .risk-bar__score {
    min-width: 28px;
    font-size: 0.80rem;
  }
}

@media (max-width: 480px) {
  .risk-bar__label {
    flex: 0 0 70px;
    font-size: 0.75rem;
  }
  .risk-bar {
    min-height: 36px;
  }
  .risk-bar__track {
    height: 24px;
  }
  .risk-bar__score {
    min-width: 24px;
    font-size: 0.75rem;
  }
}

.results__disclaimer {
  font-size: 0.78rem;
  color: var(--muted);
  opacity: 0.85;
  line-height: 1.6;
  text-align: center;
  max-width: 560px;
  margin: 0 auto 30px;
}

.push {
  background: var(--bg-card2);
  border: 1px solid rgba(17,197,217,0.22);
  border-radius: 20px;
  padding: 28px 20px;
  text-align: center;
  margin-bottom: 20px;
}
.push__title { font-size: clamp(1.3rem, 5vw, 1.7rem); margin-bottom: 12px; }
.push__sub {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto 22px;
}
.push__cta { justify-content: center; width: 100%; min-height: 48px; display: flex; align-items: center; }
.push__micro { font-size: 0.84rem; color: var(--muted); margin-top: 14px; }
.push__secondary {
  font-size: 0.78rem;
  color: var(--teal);
  opacity: 0.85;
  margin-top: 10px;
  font-weight: 600;
}

/* ================================================================
   BOOKING (pane 13)
================================================================ */
.booking__head { margin-bottom: 26px; }
.booking__title {
  font-size: clamp(1.6rem, 6vw, 2.2rem);
  line-height: 1.12;
  margin-bottom: 12px;
}
.booking__sub {
  font-size: 0.96rem;
  line-height: 1.65;
  color: var(--muted);
  max-width: 540px;
}

.booking__grid { display: flex; flex-direction: column; gap: 20px; }

/* Summary card (collapsible on mobile) */
.summary-card {
  background: var(--bg-card);
  border: 1px solid var(--border-md);
  border-radius: 16px;
  overflow: hidden;
}
.summary-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
  cursor: pointer;
  list-style: none;
}
.summary-card__head::-webkit-details-marker { display: none; }
.summary-card__chev { color: var(--muted); transition: transform 0.2s; }
.summary-card[open] .summary-card__chev { transform: rotate(180deg); }
.summary-card__body { padding: 0 18px 18px; display: flex; flex-direction: column; gap: 12px; }
.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--divider);
}
.summary-row:last-child { border-bottom: none; padding-bottom: 0; }
.summary-row__label { font-size: 0.82rem; color: var(--muted); }
.summary-row__val { font-size: 0.86rem; font-weight: 700; color: var(--white); text-align: right; }
.summary-row__val--accent { color: var(--teal); }
.summary-card__section-label {
  margin: 16px 0 8px;
  padding-top: 8px;
  font-size: 0.70rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  border-top: 1px solid var(--divider);
}
.summary-card__section-label:first-child { margin-top: 0; padding-top: 0; border-top: none; }

/* Conditional questions */
.conditional-secondary {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--divider);
  animation: slideDown 0.3s ease-out;
}
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.conditional-secondary__q {
  margin: 0 0 16px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
}

/* Slider controls */
.slider-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 20px 0;
}
.slider-display {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 16px;
  background: rgba(17,197,217,0.08);
  border: 1px solid rgba(17,197,217,0.2);
  border-radius: 12px;
  flex-wrap: wrap;
}
.slider-display__val {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--teal);
  min-width: 80px;
}
.slider-display__val--input {
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(17,197,217,0.45);
  border-radius: 0;
  padding: 0 4px 2px;
  font-family: var(--font);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--teal);
  min-width: 50px;
  max-width: 100px;
  text-align: center;
  outline: none;
  -moz-appearance: textfield;
}
.slider-display__val--input::-webkit-inner-spin-button,
.slider-display__val--input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.slider-display__val--input:focus {
  border-bottom-color: var(--teal);
}
.slider-display__unit {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}
.slider-input {
  width: 100%;
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(to right, var(--divider) 0%, var(--teal) 0%, var(--teal) 50%, var(--divider) 50%, var(--divider) 100%);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--teal);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(17,197,217,0.3);
  transition: box-shadow 0.2s;
}
.slider-input::-webkit-slider-thumb:hover {
  box-shadow: 0 4px 16px rgba(17,197,217,0.5);
}
.slider-input::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--teal);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(17,197,217,0.3);
  transition: box-shadow 0.2s;
}
.slider-input::-moz-range-thumb:hover {
  box-shadow: 0 4px 16px rgba(17,197,217,0.5);
}
.slider-input::-moz-range-track {
  background: transparent;
  border: none;
}
.slider-input::-moz-range-progress {
  background: var(--teal);
  border-radius: 4px;
}

/* Risk items */
.risk-item {
  padding: 12px;
  margin-bottom: 8px;
  background: rgba(255,255,255,0.03);
  border-left: 3px solid var(--divider);
  border-radius: 8px;
  font-size: 0.80rem;
}
.risk-item__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.risk-item__name {
  font-weight: 600;
  color: var(--white);
}
.risk-item__level {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.70rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.risk-item__level--low {
  background: rgba(17,197,217,0.15);
  color: var(--teal);
  border: 1px solid rgba(17,197,217,0.3);
}
.risk-item__level--medium {
  background: rgba(230,162,60,0.15);
  color: var(--amber);
  border: 1px solid rgba(230,162,60,0.3);
}
.risk-item__level--high {
  background: rgba(255,87,87,0.15);
  color: #FF5757;
  border: 1px solid rgba(255,87,87,0.3);
}
.risk-item__level--none {
  background: rgba(255,255,255,0.1);
  color: var(--muted);
  border: 1px solid rgba(255,255,255,0.2);
}
.risk-item__insight {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

/* Calendar */
.cal {
  background: var(--bg-card);
  border: 1px solid var(--border-md);
  border-radius: 18px;
  padding: 16px;
}
.cal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.cal__month { font-size: clamp(0.95rem, 2.5vw, 1.1rem); font-weight: 700; color: var(--white); }
.cal__nav {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--bg-input);
  border: 1px solid var(--border-md);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  flex-shrink: 0;
}
.cal__nav:hover:not(:disabled) { border-color: var(--teal); color: var(--teal); }
.cal__nav:disabled { opacity: 0.3; cursor: not-allowed; }

.cal__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 6px;
}
.cal__weekdays span {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted);
  padding: 4px 0;
}
.cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal__day {
  aspect-ratio: 1;
  border-radius: 9px;
  background: transparent;
  border: 1.5px solid transparent;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.14s, border-color 0.14s, color 0.14s;
  min-height: 42px;
}
.cal__day:hover:not(:disabled):not(.is-empty):not(.is-selected) { background: rgba(17,197,217,0.1); border-color: rgba(17,197,217,0.4); }
.cal__day:disabled, .cal__day.is-empty { color: rgba(140,148,156,0.35); cursor: default; }
.cal__day.is-empty { background: transparent; }
.cal__day.is-selected {
  background: var(--teal);
  border-color: var(--teal);
  color: #070B0F;
  font-weight: 800;
}
.cal__day:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }

/* Time slots */
.slots { margin-top: 18px; }
.slots__label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}
.slots__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.slot {
  background: var(--bg-input);
  border: 1.5px solid var(--border-md);
  border-radius: 11px;
  padding: 14px 8px;
  font-family: var(--font);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--white);
  cursor: pointer;
  transition: border-color 0.14s, background 0.14s;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slot:hover { border-color: rgba(17,197,217,0.4); }
.slot.is-selected {
  border-color: var(--sel);
  background: rgba(17,197,217,0.08);
  box-shadow: 0 0 0 1px var(--sel);
  color: var(--teal);
}
.slot:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }

.booking__tz { font-size: 0.76rem; color: var(--muted); margin-top: 16px; }
.booking__cta { justify-content: center; width: 100%; margin-top: 16px; }

/* ================================================================
   SUCCESS (pane 14)
================================================================ */
.success { text-align: center; }
.success__icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--teal);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 22px;
  box-shadow: 0 0 32px rgba(17,197,217,0.4);
}
.success__title { font-size: clamp(1.7rem, 6vw, 2.3rem); margin-bottom: 14px; }
.success__sub {
  font-size: 0.96rem;
  line-height: 1.65;
  color: var(--muted);
  max-width: 460px;
  margin: 0 auto 26px;
}
.success__details {
  text-align: left;
  background: var(--bg-input);
  border: 1px solid var(--border-md);
  border-radius: 16px;
  padding: 6px 18px;
  margin-bottom: 22px;
}
.success__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--divider);
}
.success__row:last-child { border-bottom: none; }
.success__row-label { font-size: 0.84rem; color: var(--muted); font-weight: 600; }
.success__row-val { font-size: 0.92rem; font-weight: 700; color: var(--white); text-align: right; }
.success__confirm { font-size: 0.9rem; font-weight: 600; color: var(--white); margin-bottom: 8px; }
.success__prep { font-size: 0.84rem; color: var(--muted); line-height: 1.6; margin-bottom: 26px; }
.success__cta { justify-content: center; width: 100%; }
.success__reschedule {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--teal);
  transition: color 0.15s;
}
.success__reschedule:hover { color: var(--teal-hover); }

/* Support panel is desktop-only — never show in the mobile flow */
@media (max-width: 899px) {
  .fnl-support { display: none !important; }
}

/* ================================================================
   TABLET  (≥ 600px)
================================================================ */
@media (min-width: 600px) {
  .fnl-stage { padding-top: 36px; }
  .fnl-card { padding: 36px 32px; }
  .question-card { padding: 36px 32px; }
  .field-row { flex-direction: row; }
  .field-row .field { flex: 1; }
  .landing__cards { grid-template-columns: repeat(2, 1fr); }
  .results__cards { grid-template-columns: repeat(2, 1fr); }
  .results__metrics { grid-template-columns: repeat(3, 1fr); }
  .slots__grid { grid-template-columns: repeat(3, 1fr); gap: 9px; }

  /* Booking — calendar + summary side by side */
  .booking__grid { flex-direction: row-reverse; align-items: flex-start; }
  .booking__calendar { flex: 1 1 auto; min-width: 0; }
  .booking__summary { flex: 0 0 240px; }
  /* Wide column would make square cells huge — use a fixed row height instead */
  .cal__day { aspect-ratio: auto; height: 46px; }
}

/* ================================================================
   LARGE TABLET  (≥ 768px)
================================================================ */
@media (min-width: 768px) {
  .slots__grid { grid-template-columns: repeat(4, 1fr); }
}

/* ================================================================
   DESKTOP  (≥ 900px)
================================================================ */
@media (min-width: 900px) {
  .fnl-stage { gap: 36px; }

  /* Landing — two column hero */
  .pane--landing { width: 100%; }
  .landing { flex-direction: row; align-items: center; gap: 56px; }
  .landing__content { flex: 0 0 54%; max-width: 600px; }
  .landing__headline { font-size: clamp(2.2rem, 4.2vw, 3.5rem); }
  .landing__visual { flex: 1 1 auto; min-width: 0; }
  .landing__cards { grid-template-columns: 1fr; }

  .fnl-card { padding: 44px 48px; }
  .question-card { padding: 44px 48px; }
  .question-card__q { font-size: clamp(1.7rem, 2.4vw, 2.1rem); }

  .results__cards { grid-template-columns: repeat(4, 1fr); }
  .results__metrics { grid-template-columns: repeat(3, 1fr); }
  .leak-card { padding: 22px 18px; }
  .results__cta-top { width: auto; min-width: 320px; margin-left: auto; margin-right: auto; }

  /* keep summary expanded on desktop */
  .booking__summary { flex: 0 0 280px; }
}

/* ================================================================
   WIDE  (≥ 1100px)
================================================================ */
@media (min-width: 1100px) {
  .landing__cards { grid-template-columns: repeat(2, 1fr); }
}
