/* Diagnostic-funnel engine styles (SMRT-199). Uses tokens from styles.css. */

#funnel-root { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 20px 80px; }

.funnel-topbar { display: flex; align-items: center; justify-content: space-between; padding: 28px 0 18px; }
.funnel-logo { font-family: var(--font-heading); font-weight: 700; font-size: 15px; color: var(--dark); }
.funnel-logo span { color: var(--brand); }
.funnel-skip { font-size: 13px; color: var(--text-muted); text-decoration: underline; }

.funnel-progress { width: 100%; height: 6px; background: #e7e4da; border-radius: 999px; overflow: hidden; margin-bottom: 32px; }
.funnel-progress-fill { height: 100%; background: var(--brand); border-radius: 999px; transition: width .25s ease; }

.funnel-card { background: var(--white); border: 1px solid rgba(23,23,23,0.08); border-radius: var(--radius); padding: 48px; }
@media (max-width: 767px) { .funnel-card { padding: 28px 20px; } }

.funnel-card h2 { font-family: var(--font-heading); font-size: 28px; font-weight: 700; margin: 0 0 8px; line-height: 1.25; }
.funnel-sub { font-size: 15px; color: var(--text-muted); margin: 0 0 28px; }
.funnel-body-text { font-size: 16px; line-height: 1.65; color: var(--text); margin: 0 0 24px; }
.funnel-kicker-sm { display: inline-block; background: #fdece1; color: var(--brand-ink); font-size: 12px; font-weight: 700; letter-spacing: .05em; padding: 6px 14px; border-radius: 999px; margin-bottom: 18px; text-transform: uppercase; }

/* hero */
.funnel-hero { width: 100%; box-sizing: border-box; background: var(--dark); color: #fff; padding: 96px 24px 88px; display: flex; flex-direction: column; align-items: center; text-align: center; border-radius: var(--radius); margin: 24px auto; max-width: 900px; }
.funnel-hero-logo { display: inline-block; font-family: var(--font-heading); font-weight: 700; font-size: 16px; color: #fff; margin-bottom: 28px; text-decoration: none; }
.funnel-hero-logo span { color: var(--brand); }
.funnel-kicker { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(240,101,23,.5); background: rgba(240,101,23,.12); color: var(--brand-light); font-size: 13px; font-weight: 700; letter-spacing: .06em; padding: 8px 18px; border-radius: 999px; margin-bottom: 32px; }
.funnel-hero h1 { font-family: var(--font-heading); margin: 0 0 20px; font-size: 44px; line-height: 1.1; font-weight: 700; max-width: 700px; color: #fff; }
.funnel-hero p { margin: 0 0 40px; font-size: 18px; line-height: 1.6; color: rgba(255,255,255,.72); max-width: 540px; }
.funnel-hero-skip { margin-top: 22px; font-size: 14px; color: rgba(255,255,255,.55); text-decoration: underline; }
.funnel-hero-trust { margin: 18px 0 0; font-size: 14px; color: rgba(255,255,255,.6); }
.funnel-logo-static { cursor: default; }
.funnel-btn-lg { font-size: 17px; padding: 18px 36px; width: auto; }

/* options */
.funnel-opts { display: flex; flex-direction: column; gap: 12px; }
.funnel-opt { border: 2px solid #e7e4da; background: #fff; border-radius: var(--radius-sm); padding: 18px 20px; cursor: pointer; font-weight: 600; font-size: 16px; display: flex; align-items: center; justify-content: space-between; transition: border-color .15s ease; }
.funnel-opt:hover { border-color: var(--brand-light); }
.funnel-opt.is-picked { border-color: var(--brand); background: #fdf3ec; }
.funnel-check { color: var(--brand); }

/* diagnosis */
.funnel-diag { display: flex; flex-direction: column; gap: 16px; }
.funnel-diag-row { display: flex; gap: 14px; font-size: 16px; line-height: 1.55; }
.funnel-diag-num { color: var(--brand); font-weight: 800; font-size: 18px; flex-shrink: 0; }

/* explainer bullets */
.funnel-bullets { display: flex; flex-direction: column; gap: 12px; }
.funnel-bullet { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.55; }
.funnel-bullet span { color: var(--brand); font-weight: 800; }

/* plan table */
.funnel-table { display: grid; gap: 0; }
.funnel-tier-head { padding: 0 10px 20px; text-align: center; border-bottom: 2px solid var(--dark); }
.funnel-tier-head.is-rec { border-bottom-color: var(--brand); }
.funnel-rec-badge { font-size: 10px; font-weight: 800; letter-spacing: .05em; color: var(--brand); margin-bottom: 6px; }
.funnel-tier-name { font-size: 17px; font-weight: 700; }
.funnel-tier-price { font-size: 20px; font-weight: 800; margin: 4px 0; }
.funnel-tier-tagline { font-size: 12px; color: var(--text-muted); margin-bottom: 14px; min-height: 32px; }
.funnel-tier-btn { width: 100%; font-size: 13px; padding: 10px 8px; }
.funnel-row-label { padding: 14px 10px; font-size: 13px; color: var(--text); border-bottom: 1px solid #f0eee6; display: flex; align-items: center; }
.funnel-cell { padding: 14px 10px; text-align: center; border-bottom: 1px solid #f0eee6; display: flex; align-items: center; justify-content: center; }
.funnel-yes { color: var(--brand); font-weight: 800; }
.funnel-no { color: #d8d5c9; }

/* Mobile: the 5-tier comparison grid (customer-journey audit 2026-09-21 —
   at 390px this was rendering the full desktop grid, cutting the last 2
   tiers off-screen with no way to reach them at the exact moment a visitor
   is choosing what to pay for). Below 767px, wrap it in a horizontally
   scrollable strip with the row-label column pinned on the left, so every
   tier stays reachable by swipe and nothing is silently invisible. */
@media (max-width: 767px) {
  .funnel-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -20px; padding: 0 20px 4px; }
  /* Grid keeps its normal row-wrapping (JS sets grid-template-columns
     inline: "1.3fr 1fr 1fr 1fr 1fr 1fr" — one row per comparison item,
     6 columns per row). We only force a real pixel min-width per column
     so text stops compressing, and let the wrapper scroll horizontally. */
  .funnel-table-scroll .funnel-table { min-width: 620px; }
  .funnel-table-scroll .funnel-row-label { position: sticky; left: 0; background: var(--white); z-index: 1; font-size: 12px; }
}

/* details / contact */
.funnel-details-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.funnel-plan-name { font-family: var(--font-heading); font-size: 22px; font-weight: 700; }
.funnel-change { font-size: 13px; text-decoration: underline; }
.funnel-field { margin-bottom: 14px; }
.funnel-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.funnel-field input { width: 100%; box-sizing: border-box; border: 1px solid #ddd8c9; border-radius: var(--radius-sm); padding: 13px 14px; font-size: 15px; }
.funnel-field input:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.funnel-fineprint { margin: 0 0 18px; font-size: 12px; color: var(--text-muted); text-align: center; }
.funnel-guarantee { border-top: 1px solid #f0eee6; padding-top: 16px; font-size: 12.5px; color: var(--text-muted); line-height: 1.6; }

/* confirmation */
.funnel-check-circle { width: 56px; height: 56px; border-radius: 50%; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 800; margin-bottom: 24px; }

/* bottom nav */
.funnel-nav { width: 100%; display: flex; justify-content: space-between; margin-top: 20px; }

button[disabled] { opacity: .4; cursor: not-allowed; }
