/* ============================================================================
 * Dreamfit public signup funnel — shared base styles (single load).
 * Ported from the Lovable static export (uploads/inscripcion-*). Theme tokens,
 * fonts, header, stepper, plan cards, buttons, FAQ and the help FAB live here.
 * Step-specific styles (e.g. the data form + summary) live in funnel-datos.css.
 * ========================================================================== */

/* Dreamfit fonts */
@font-face {
  font-family: "Druk Text";
  src: url("../../fonts/DrukText-Super.otf") format("opentype");
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("../../fonts/Roboto-Regular.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  /* palette aligned with the official design (uploads/styles-portada.css) */
  --bg: #fafaf8;
  --fg: #0e1216;
  --card: #ffffff;
  --muted: #5d646c;
  --muted-bg: #f1f2ef;
  --border: #e1e7dc;
  --border-strong: #92d27f;
  --primary: #68D000;
  --primary-fg: #ffffff;
  --primary-soft: #dbfed0;
  --accent-blue: #0B78B6;
  --destructive: #e85861;
  --radius: 14px;
  --radius-lg: 18px;
  --font-display: "Druk Text", "Arial Black", Impact, sans-serif;
  --font-sans: "Roboto", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
/* The funnel never scrolls horizontally on purpose. The 3-offer full-bleed row uses `calc(50% - 50vw)`,
   and `50vw` counts the vertical scrollbar gutter, so the row is ~scrollbar-width wider than the visible
   area and leaves a stray horizontal scrollbar. Clip it at the root (on <html>, NOT <body>, so the
   sticky order-summary in datos/pago keeps working). Doubles as a safety net for any residual overflow. */
html { overflow-x: hidden; }
h1, h2, h3, .font-display {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin: 0;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* Header */
.brand-header { background: var(--card); border-bottom: 1px solid var(--border); }
.header-inner { max-width: 1280px; margin: 0 auto; height: 64px; padding: 0 16px; display: flex; align-items: center; justify-content: center; }
.logo img { height: 28px; width: auto; display: block; }

/* Shell */
.shell { max-width: 1100px; margin: 0 auto; padding: 24px 16px 48px; }
@media (min-width: 640px) { .shell { padding: 40px 24px 64px; } }

/* Stepper */
.stepper {
  display: flex; align-items: flex-start; justify-content: space-between;
  list-style: none; padding: 16px 8px; margin: 0 auto; max-width: 760px; gap: 4px;
}
.step { display: flex; flex-direction: column; align-items: center; flex: 1 1 0; min-width: 0; text-align: center; }
.step .dot {
  width: 32px; height: 32px; border-radius: 9999px; border: 2px solid transparent;
  background: var(--muted-bg); color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}
.step.done .dot { border-color: var(--primary); background: #fff; color: var(--primary); }
.step.active .dot { border-color: var(--primary); background: var(--primary); color: var(--primary-fg); }
.step .lbl {
  margin-top: 6px; font-size: 9px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted);
}
.step.active .lbl { color: var(--primary); }
.step.done .lbl { color: var(--fg); }
.step .sub { margin-top: 3px; font-size: 9px; line-height: 1.25; color: var(--muted); max-width: 92px; }
/* completed steps link back to their page (only backwards; forward uses each "Continuar") */
.step > a { display: flex; flex-direction: column; align-items: center; color: inherit; text-decoration: none; cursor: pointer; }
.step.done > a:hover .lbl { text-decoration: underline; }
.bar { flex: 1 1 0; height: 2px; background: var(--muted-bg); margin-top: 16px; }
.bar.done { background: var(--primary); }
@media (min-width: 640px) { .step .lbl { font-size: 10px; } .step .sub { font-size: 10px; } }

/* Hero */
.hero { text-align: center; margin-top: 24px; }
.hero h1 { font-size: 30px; line-height: 0.95; }
.hero h2 { font-size: 30px; line-height: 0.95; color: var(--primary); margin-top: 8px; }
.hero p { margin-top: 12px; color: var(--muted); font-size: 14px; }
@media (min-width: 640px) { .hero h1, .hero h2 { font-size: 48px; } }

/* Plans grid */
.plans { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 32px auto 0; max-width: 980px; }
@media (min-width: 1024px) {
  .plans { grid-template-columns: 1fr 1fr; }
  /* exactly 3 offers -> one row that KEEPS the ~482px card width of the 2-col layout (instead of
     squishing them into the 1100px shell). The row breaks out of the shell (full-bleed via the
     50%-50vw margins) so it can be wider than the rest of the step; columns are centered and only
     shrink if the viewport is too narrow. 24px edge padding prevents horizontal scroll. Other counts
     keep the 2-col grid. */
  .plans[data-count="3"] {
    grid-template-columns: repeat(3, minmax(0, 482px));
    justify-content: center;
    max-width: none;
    margin: 32px calc(50% - 50vw) 0;
    padding: 0 24px;
  }
}

/* Card */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.plan.featured {
  border: 2px solid var(--primary);
  box-shadow: 0 20px 40px -20px rgba(78,196,9,0.25);
  transform: translateY(-4px);
}
/* Card border + top colour band. PASS is green and stands out with a thicker border;
   DREAM and any other plan are blue. */
.plan-dream, .plan-other { border: 2px solid var(--accent-blue); box-shadow: 0 20px 40px -20px rgba(11,120,182,0.25); }
.plan-pass { border: 3px solid var(--primary); box-shadow: 0 24px 44px -20px rgba(78,196,9,0.3); }

.banner { height: 40px; display: flex; align-items: center; padding: 0 16px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  justify-content: flex-end; /* single message (plan default) -> right aligned */
}
.banner-green { background: var(--primary); color: var(--primary-fg); gap: 8px; }
.banner-blue { background: var(--accent-blue); color: var(--primary-fg); gap: 8px; }
.banner--split { justify-content: space-between; } /* offer: left "OFERTA" + right "TERMINA EN" */
.banner-msg { white-space: nowrap; }
.revert {
  padding: 4px 16px; text-align: center; font-size: 10px; font-weight: 500;
  background: rgba(11,120,182,0.1); color: var(--accent-blue);
}

.card-body { padding: 20px; }
@media (min-width: 640px) { .card-body { padding: 24px; } }

.plan-header { display: flex; align-items: center; gap: 12px; }
/* Icon sits inside a coloured ring (added here, not part of the artwork):
   green for PASS, blue for DREAM and the rest. */
.plan-icon {
  width: 48px; height: 48px; flex: none; padding: 7px; border-radius: 50%;
  border: 2px solid var(--accent-blue); background: transparent; color: var(--accent-blue);
  display: inline-flex; align-items: center; justify-content: center;
}
.plan-pass .plan-icon { border-color: var(--primary); color: var(--primary); }
/* PNG used as a mask + filled with the card colour (currentColor = the plan-icon's colour), so the icon
   always matches the offer colour — including the yellow/pink temporary cards. Needs a transparent PNG. */
.plan-icon-img { width: 100%; height: 100%; display: block; background-color: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
/* day-pass card: the Paso-3 clock, filled circle in the card colour (var(--primary) per card).
   Scoped under .plan-pass to beat ".plan-pass .plan-icon" specificity (else the clock would take
   the same colour as the fill and vanish). */
.plan-pass .plan-icon--clock { border-color: transparent; background: var(--primary); color: var(--primary-fg); }
.plan-icon--clock i, .plan-icon--clock svg { width: 22px; height: 22px; }
.plan-name { font-family: var(--font-display); text-transform: uppercase; font-size: 24px; }
.plan-tag { font-size: 12px; color: var(--muted); margin-top: 2px; }

.price-row { display: flex; align-items: baseline; gap: 8px; margin-top: 20px; }
.price-enroll { font-size: 13px; color: var(--muted); margin-top: 12px; }
.price-enroll strong { color: var(--fg); font-weight: 600; }
.enroll-tag {
  display: inline-block; padding: 4px 12px; border-radius: 9999px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--primary-fg); background: var(--accent-blue);
}
.plan-pass .enroll-tag { background: var(--primary); }
.price { font-family: var(--font-display); font-size: 60px; line-height: 1; color: #000; }
.price-brand { color: var(--primary); }
.price-unit { font-size: 14px; color: var(--muted); }

.enroll-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; font-size: 13px; color: var(--muted); }
.strike { text-decoration: line-through; color: var(--muted); }
.strong { font-weight: 600; color: var(--fg); }
/* inscripción en oferta: precio rebajado y ahorro en el color del panel (azul dream / verde pass) */
.enroll-new { font-weight: 700; color: var(--accent-blue); }
.plan-pass .enroll-new { color: var(--primary); }
.enroll-savings { margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--accent-blue); }
.plan-pass .enroll-savings { color: var(--primary); }
.muted { color: var(--muted); }
.small { font-size: 12px; }

.pill {
  display: inline-flex; align-items: center; padding: 4px 10px;
  border-radius: 9999px; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.pill-brand { background: var(--primary); color: var(--primary-fg); }
.pill-warn { background: var(--accent-blue); color: var(--primary-fg); }

.includes { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.includes-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.dream-sub { margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--primary); }

.check-list { list-style: none; padding: 0; margin: 8px 0 0; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; padding: 6px 0; font-size: 14px; }
.check {
  flex: none; width: 20px; height: 20px; border-radius: 9999px;
  border: 2px solid var(--primary); background: #fff; color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center; margin-top: 2px;
}
.check.muted { border-color: transparent; background: var(--muted-bg); color: var(--muted); }
/* Bullet accent: blue for DREAM and other plans, green for PASS */
.plan-dream .check:not(.muted), .plan-other .check:not(.muted) { border-color: var(--accent-blue); color: var(--accent-blue); }
.plan-pass .check:not(.muted) { border-color: var(--primary); color: var(--primary); }
.muted-list li { color: var(--muted); }
/* PASS card echoing the DREAM benefits (config OFFER_PASS_INCLUDES_DREAM): a second, muted list
   under its own heading — reuses .muted-list / .check.muted for the greyed items. */
.includes--inherited { margin-top: 14px; padding-top: 0; border-top: none; }
.includes-title--inherited { text-transform: none; font-size: 13px; letter-spacing: 0; color: var(--primary); }
.muted-list { border-top: 1px solid rgba(229,230,225,0.6); border-bottom: 1px solid rgba(229,230,225,0.6); padding: 4px 0; }
.badge-excl {
  margin-left: 8px; padding: 2px 6px; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--primary); background: #fff;
  border-radius: 6px; box-shadow: inset 0 0 0 1px var(--primary);
}

.row-line { display: flex; justify-content: space-between; font-size: 14px; margin-top: 4px; }

.btn-select {
  margin-top: 20px; width: 100%; height: 48px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  border: 1px solid var(--border); background: var(--card); color: var(--fg);
  transition: border-color .15s, background .15s;
}
.btn-select:hover { border-color: var(--primary); }
.btn-select.selected { background: var(--primary); border-color: var(--primary); color: var(--primary-fg); }

/* Headline price (Paso 2): cheapest €/month on top, optional "desde" prefix */
.price-from { font-size: 14px; font-weight: 600; color: var(--muted); align-self: center; margin-right: 2px; }
/* PASS shows its headline price in green (brand), like the original design */
.plan-pass .price { color: var(--primary); }

/* Term selection: a single "Elegir" button, or a 2-column grid of term tiles */
/* up to 4 tiles per row, wrapping to a 2nd/3rd row beyond that */
.term-grid { margin-top: 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.term-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 104px; padding: 12px 6px; border-radius: 12px; cursor: pointer; text-align: center;
  border: 1px solid var(--border); background: var(--card); color: var(--fg);
  transition: border-color .15s, background .15s;
}
.term-tile:hover { border-color: var(--accent-blue); }
.tile-period { display: flex; align-items: baseline; justify-content: center; gap: 4px; white-space: nowrap; }
.tile-num { font-family: var(--font-display); font-size: 30px; line-height: 1; color: #000; }
.tile-unit { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.tile-total { margin-top: 2px; font-size: 14px; font-weight: 700; color: var(--fg); white-space: nowrap; }
.tile-cta { margin-top: 6px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }

/* selected accent matches the card: blue for DREAM/other, green for PASS */
.plan-dream .term-tile.selected, .plan-other .term-tile.selected { border: 2px solid var(--accent-blue); background: rgba(11,120,182,0.08); }
.plan-dream .term-tile.selected .tile-cta, .plan-other .term-tile.selected .tile-cta { color: var(--accent-blue); }
.plan-pass .term-tile.selected { border: 2px solid var(--primary); background: var(--primary-soft); }
.plan-pass .term-tile.selected .tile-cta { color: var(--primary); }

/* single-term "Elegir" button: selected fill blue for DREAM/other, green for PASS */
.plan-dream .btn-select:hover, .plan-other .btn-select:hover { border-color: var(--accent-blue); }
.plan-dream .btn-select.selected, .plan-other .btn-select.selected { background: var(--accent-blue); border-color: var(--accent-blue); }
.plan-pass .btn-select.selected { background: var(--primary); border-color: var(--primary); }

/* Term dropdown (Paso 2, multi-term): months-only selector, replaces the tile grid */
/* the offer card must not clip the open dropdown menu (overrides .card overflow:hidden);
   the top colour band then needs its own rounded top corners (card radius 18px − ~2px border) */
/* overflow:visible so the open term dropdown isn't clipped; min-width:0 so the card (a 1fr grid item)
   can shrink to its track instead of being forced to its content's min-content width, which would push
   the grid past the viewport on mobile (same overflow bug fixed in the datos/pago .layout columns). */
.plan { overflow: visible; min-width: 0; }
.plan .banner { border-radius: 16px 16px 0 0; }
.term-dd { position: relative; margin-top: 20px; }
.term-dd-trigger {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 60px; padding: 8px 14px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--border); background: var(--card); color: var(--fg);
  transition: border-color .15s;
}
.term-dd-trigger:hover, .term-dd.open .term-dd-trigger { border-color: var(--accent-blue); }
.plan-pass .term-dd-trigger:hover, .plan-pass .term-dd.open .term-dd-trigger { border-color: var(--primary); }
.term-dd-current { display: flex; align-items: baseline; gap: 4px; }
.term-dd-caret { width: 18px; height: 18px; color: var(--muted); transition: transform .15s; flex-shrink: 0; }
.term-dd.open .term-dd-caret { transform: rotate(180deg); }
.term-dd-menu {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30;
  margin: 0; padding: 6px; list-style: none; display: none;
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 18px 38px -18px rgba(0,0,0,0.35);
}
.term-dd.open .term-dd-menu { display: block; }
.term-dd-opt {
  display: flex; align-items: baseline; justify-content: center; gap: 4px;
  padding: 12px 8px; border-radius: 8px; cursor: pointer; white-space: nowrap;
  transition: background .12s;
}
.term-dd-opt:hover { background: rgba(11,120,182,0.08); }
.term-dd-opt.active { background: rgba(11,120,182,0.12); }
.plan-pass .term-dd-opt:hover, .plan-pass .term-dd-opt.active { background: var(--primary-soft); }

.term-footnote { margin-top: 16px; font-size: 11px; color: var(--muted); }
.no-offers { text-align: center; color: var(--muted); margin: 32px auto 0; }
/* day-pass card: editorial (richtext) description under the price, with the same top divider
   the abono uses before its "includes" list (.includes border-top) */
.trial-desc { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 14px; color: var(--fg); line-height: 1.5; }
.trial-desc p { margin: 0 0 8px; }
/* list rendered like the abono "includes": each <li> gets the SAME lucide check (injected in
   prueba.php), laid out as .check-list. The .check colour follows the card via var(--primary). */
.trial-desc ul, .trial-desc ol { list-style: none; padding: 0; margin: 8px 0 0; }
.trial-desc li { display: flex; align-items: flex-start; gap: 12px; padding: 6px 0; }
/* DEV placeholder for figures we don't have yet (PerfectGym preview): stands out on purpose */
.missing { color: #d6336c; font-style: italic; font-weight: 600; }

/* ── Offer/pass description clamp ──────────────────────────────────────────────
   The benefits text block (.plan-desc: the "Incluye" list + inherited DREAM benefits, or the
   pass .trial-desc) is capped at --desc-max (set on .plans from config). JS adds .is-clamped ONLY
   when it really overflows — then a fade + a "Ver más" toggle appear. The toggle either expands the
   card in place (.expanded, inline mode) or moves the card into .plan-modal-overlay (modal mode).
   Price / inscripción / botón de elegir live OUTSIDE .plan-desc and are never clamped. */
.plan-desc { position: relative; }
.plan-desc.is-clamped { max-height: var(--desc-max); overflow: hidden; }
.plan-desc.is-clamped.expanded { max-height: none; }
/* is-clickable = the whole text block reveals on click (inline: only when clamped; modal: always) */
.plan-desc.is-clickable { cursor: pointer; }
.plan-desc.is-clickable.expanded { cursor: auto; }
.plan-desc-fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 72px; pointer-events: none;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--card));
  transition: opacity .2s;
}
.plan-desc.expanded .plan-desc-fade { opacity: 0; }
.plan-desc-toggle {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 14px;
  background: none; border: 0; padding: 0; cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 700; color: var(--primary);
}
.plan-desc-toggle i, .plan-desc-toggle svg { width: 16px; height: 16px; transition: transform .2s; }
.plan-desc-toggle.expanded i, .plan-desc-toggle.expanded svg { transform: rotate(180deg); }

/* Modal mode: a CLONE of the card is shown in full over a dimmed page (the original stays in the
   grid, so nothing reflows). The clone is display-only; its select/term controls forward the click
   to the real card and close the modal. Inside the modal the clone's description is never clamped. */
.plan-modal-overlay .plan-desc { max-height: none; overflow: visible; cursor: auto; }
.plan-modal-overlay .plan-desc-fade, .plan-modal-overlay .plan-desc-toggle { display: none; }
.plan-modal-overlay {
  position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, .55);
  display: flex; align-items: flex-start; justify-content: center;
  overflow-y: auto; padding: 40px 16px;
}
.plan-modal-overlay .plan { width: 100%; max-width: 460px; margin: auto; }
.plan-modal-close {
  position: fixed; top: 20px; right: 20px; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: var(--card); color: var(--fg); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px -6px rgba(0, 0, 0, .4);
}
body.plan-modal-lock { overflow: hidden; }

/* ── Optional modules (Paso 2b) ────────────────────────────────────────────────
   Short, selectable cards (multi-select). Same visual language as the offer cards but much lower:
   a check circle, an optional thumbnail, name + description, and the module price on the right. */
.modules-list { max-width: 720px; margin: 32px auto 0; display: flex; flex-direction: column; gap: 12px; }
.module-card {
  display: flex; align-items: center; gap: 16px; width: 100%; text-align: left;
  background: var(--card); border: 2px solid var(--border); border-radius: 16px;
  padding: 14px 18px; cursor: pointer; font: inherit; color: var(--fg);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.module-card:hover { border-color: var(--border-strong); }
.module-card.selected { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 12px 26px -18px rgba(78, 196, 9, 0.5); }
/* mutually-exclusive group (single_per_ratecode): siblings of a selected complemento are dimmed to
   signal the group; still selectable (picking one deselects the rest) */
.module-card.group-dimmed { opacity: 0.5; }
.module-check {
  flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center; color: transparent; transition: all .15s;
}
.module-card.selected .module-check { border-color: var(--primary); background: var(--primary); color: var(--primary-fg); }
.module-check i, .module-check svg { width: 14px; height: 14px; }
/* image slot: always reserves its space (keeps text aligned across cards), empty when there is no image */
.module-img { flex: none; width: 72px; height: 72px; border-radius: 12px; overflow: hidden; }
.module-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.module-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.module-name { font-weight: 700; font-size: 15px; }
.module-desc { font-size: 13px; color: var(--muted); }
.module-price { flex: none; font-family: var(--font-display); font-size: 20px; color: var(--primary); white-space: nowrap; }
.module-freq { font-size: 12px; color: var(--muted); margin-left: 3px; }
/* mobile: hide the image to free up horizontal space (single row: check + name/desc + price). */
@media (max-width: 640px) {
  .module-img { display: none; }
}

/* Continue */
.continue { max-width: 420px; margin: 32px auto 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.btn-continue.disabled, .btn-continue:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-continue {
  width: 100%; height: 56px; border: none; border-radius: 12px;
  background: var(--primary); color: var(--primary-fg);
  font-family: var(--font-display); font-size: 22px; letter-spacing: 0.02em;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-transform: uppercase;
}

/* Trial day-pass info banner (step 3/4 of the "prueba" branch) */
.trial-banner {
  display: flex; gap: 14px; align-items: flex-start;
  margin: 0 0 24px; padding: 18px 20px;
  background: var(--primary-soft); border: 1px solid var(--border-strong); border-radius: var(--radius);
}
.trial-banner .tb-icon {
  flex: none; width: 36px; height: 36px; border-radius: 9999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary); color: var(--primary-fg);
}
.trial-banner .tb-icon i, .trial-banner .tb-icon svg { width: 18px; height: 18px; }
.trial-banner .tb-title {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.02em;
  color: var(--primary); font-size: 18px; margin-bottom: 4px;
}
.trial-banner .tb-text { font-size: 14px; color: var(--fg); margin: 0; line-height: 1.45; }

/* FAQ */
.faq { max-width: 760px; margin: 48px auto 0; }
.faq h3 { font-size: 24px; }
.faq-list { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.faq-item { padding: 0; }
.faq-item summary {
  list-style: none; cursor: pointer;
  padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 14px; font-weight: 600;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i, .faq-item summary svg { color: var(--muted); transition: transform .2s; }
.faq-item[open] summary i, .faq-item[open] summary svg { transform: rotate(180deg); }
.faq-a { padding: 0 20px 16px; font-size: 14px; color: var(--muted); }

/* DEBUG-only session bar (rendered from the footer when Env::IS_DEBUG). */
.funnel-debug-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px;
  background: #16181d; color: #cfd3da;
  padding: 8px 14px;
  font-family: "Consolas", "Menlo", monospace; font-size: 11px;
  border-top: 2px solid var(--primary);
}
.funnel-debug-bar b { color: #fff; font-weight: 600; }
.funnel-debug-bar .fdb-tag {
  background: var(--primary); color: #fff; font-weight: 700;
  padding: 2px 8px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.05em;
}

/* Full-screen loading overlay (blocks interaction while an AJAX call is in flight) */
.funnel-overlay {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.65);
}
.funnel-overlay .spin {
  width: 42px; height: 42px; border-radius: 9999px;
  border: 3px solid var(--border); border-top-color: var(--primary);
  animation: funnelspin .8s linear infinite;
}
@keyframes funnelspin { to { transform: rotate(360deg); } }

/* Blocking message modal (FunnelUI.alert) — flow-cutting errors (identity/login/payment/network),
   so they can't be missed like an inline note at the foot of a long form. Field validation stays inline. */
.funnel-modal {
  position: fixed; inset: 0; z-index: 2100;
  display: flex; align-items: center; justify-content: center;
  background: rgba(14, 18, 22, 0.5); padding: 20px;
}
.funnel-modal-box {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  width: 100%; max-width: 420px; padding: 28px 26px; text-align: center;
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.4);
}
.funnel-modal-ic {
  width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 9999px;
  display: flex; align-items: center; justify-content: center;
  background: #fdecea; color: #d64545;
}
.funnel-modal-ic [data-lucide] { width: 26px; height: 26px; }
.funnel-modal-title {
  font-family: var(--font-display); font-size: 19px; color: var(--fg);
  text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 8px;
}
.funnel-modal-msg { color: var(--muted); font-size: 15px; line-height: 1.5; }
.funnel-modal-actions { margin-top: 22px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.funnel-modal-btn {
  min-width: 140px; height: 46px; padding: 0 22px;
  background: var(--primary); color: var(--primary-fg); border: 0; border-radius: 12px;
  font-weight: 700; font-size: 15px; cursor: pointer;
}
.funnel-modal-btn:hover { filter: brightness(0.96); }
.funnel-modal-btn.secondary {
  background: transparent; color: var(--muted); border: 1px solid var(--border);
}
.funnel-modal-btn.secondary:hover { filter: none; background: rgba(0, 0, 0, 0.03); }
