/* CTA A/B TEST (2026-10-08) - owner-approved design sheet (round 2) + round-3/4 overrides.
   11 layouts: baseline (v0, no class, pixel-identical live) + variants 1-10 (html.cta-v1 .. v10).
   Variant markup = static .cta-mount divs next to #heroSelector; CSS shows exactly one
   (first paint). Baseline zone ([data-cta-zone] = #heroSelector) hidden on all variants.
   Mockup palette/fonts adapted to the live page (PT Serif/Inter). Tweak colors here later:
   everything reads from the --cta-* vars below. Round-3/4 additions at the bottom. */

/* ---------- shared infra ---------- */
.cta-zone-hidden { display: none !important; }
.cta-mount { width: 100%; }

/* ---------- variant switcher panel (dev hosts only) ---------- */
#ctaAbPanel {
  position: fixed; left: 50%; bottom: 10px; transform: translateX(-50%);
  z-index: 2147483000; display: flex; align-items: center; gap: 4px;
  background: rgba(10, 18, 32, 0.94); border: 1px solid rgba(232, 200, 120, 0.55);
  border-radius: 999px; padding: 6px 8px; box-shadow: 0 6px 24px rgba(0,0,0,0.5);
  font-family: 'Inter', system-ui, sans-serif; max-width: 94vw;
}
#ctaAbPanel .cta-ab-label {
  color: #e8c878; font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  padding: 0 4px 0 2px; white-space: nowrap; cursor: pointer; user-select: none;
}
#ctaAbPanel .cta-ab-btns { display: flex; gap: 3px; overflow-x: auto; }
#ctaAbPanel button {
  min-width: 26px; height: 26px; padding: 0 6px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25); background: transparent; color: #fff;
  font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit; line-height: 1;
}
#ctaAbPanel button.active { background: #598CF2; border-color: #598CF2; color: #fff; }
#ctaAbPanel button.cta-ab-x { min-width: 22px; border: none; color: rgba(255,255,255,0.5); font-size: 13px; }
#ctaAbPanel.collapsed .cta-ab-btns { display: none; }
#ctaAbReopen {
  position: fixed; left: 10px; bottom: 10px; z-index: 2147483000;
  background: rgba(10, 18, 32, 0.9); color: #e8c878; border: 1px solid rgba(232, 200, 120, 0.55);
  border-radius: 999px; padding: 5px 10px; font-size: 11px; font-weight: 700; cursor: pointer;
  font-family: 'Inter', system-ui, sans-serif; display: none;
}
/* v10 has its own sticky bar at the bottom: lift the panel above it */
html.cta-v10 #ctaAbPanel { bottom: 148px; }
html.cta-v10 #ctaAbReopen { bottom: 148px; }

/* ============================================================
   SHARED VARIANT STYLES (all 10 designs read from these vars)
   ============================================================ */
.cta-mount {
  --cta-card: #3A2A20;
  --cta-tile: #4A3A30;
  --cta-ink: #F6EFE6;
  --cta-soft: #E4D6C6;
  --cta-muted: #CBB9A8;
  --cta-gold: #F2B33D;
  --cta-gold-ink: #2B1E16;
  --cta-line: #8A6F58;
  --cta-blue: #3F6496;
  --cta-serif: 'PT Serif', Georgia, serif;
  --cta-sans: 'Inter', 'Lato', system-ui, sans-serif;
  font-family: var(--cta-sans);
  color: var(--cta-ink);
}
.cta-root { width: 100%; max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.cta-root button { font-family: var(--cta-sans); cursor: pointer; transition: filter 0.15s, transform 0.15s, background 0.15s, border-color 0.15s; }
.cta-root button:hover { filter: brightness(1.06); }
.cta-root button:active { transform: scale(0.985); }

/* meta row + progress (v1, v4, v9) */
.cta-meta { display: flex; justify-content: space-between; font-size: clamp(11px, 3vw, 13px); font-weight: 700; color: var(--cta-muted); letter-spacing: 0.04em; }
.cta-progress { height: 5px; border-radius: 3px; background: var(--cta-tile); overflow: hidden; }
.cta-progress i { display: block; width: 20%; height: 5px; border-radius: 3px; background: var(--cta-gold); }

/* headings + text (fluid: scale with device width, regular landing-size type) */
.cta-h2 { margin: 2px 0 0; font-family: var(--cta-serif); font-weight: 400; text-align: center; line-height: 1.3; color: var(--cta-ink); font-size: clamp(19px, 4.8vw, 23px); }
.cta-sub { font-size: clamp(13px, 3.6vw, 15px); color: var(--cta-soft); text-align: center; line-height: 1.45; }
.cta-note { font-size: clamp(12px, 3.4vw, 14px); color: var(--cta-muted); text-align: center; }
.cta-gold-word { color: var(--cta-gold); font-weight: 700; }

/* buttons */
.cta-btn-gold { border: 0; border-radius: 12px; background: var(--cta-gold); color: var(--cta-gold-ink); font-weight: 700; }
.cta-btn-cream { border: 0; border-radius: 12px; background: var(--cta-ink); color: var(--cta-gold-ink); }
.cta-btn-ghost { border: 2px solid var(--cta-line); border-radius: 12px; background: transparent; color: var(--cta-ink); }
.cta-arrow { font-weight: 700; }

/* tap feedback (visual phase only, no funnel wiring yet) */
.cta-mount [data-cta-pick].sel { outline: 3px solid var(--cta-gold); outline-offset: -3px; }
.cta-mount .cta-chip.sel, .cta-mount .cta-chip.sel { background: var(--cta-gold); border-color: var(--cta-gold); color: var(--cta-gold-ink); }

/* how-it-works screen (68b, shared by v8 + v10) */
.cta-how { display: none; position: fixed; inset: 0; z-index: 2147482000; background: #2B1E16; color: var(--cta-ink); padding: 16px 18px 22px; flex-direction: column; gap: 16px; overflow-y: auto; font-family: var(--cta-sans); }
.cta-how-open .cta-how { display: flex; }
.cta-how-back { align-self: flex-start; height: 40px; border: 0; background: transparent; color: var(--cta-soft); font-size: 16px; padding: 0; cursor: pointer; font-family: var(--cta-sans); }
.cta-how-h2 { margin: 0; font-family: var(--cta-serif); font-size: clamp(22px, 5.6vw, 27px); font-weight: 400; text-align: center; }
.cta-how-steps { display: flex; flex-direction: column; gap: 16px; }
.cta-how-step { display: flex; gap: 12px; align-items: flex-start; font-size: clamp(14.5px, 4vw, 17px); line-height: 1.35; }
.cta-how-num { flex: none; width: 40px; height: 40px; border-radius: 20px; background: var(--cta-gold); color: var(--cta-gold-ink); font-weight: 700; font-size: 19px; display: flex; align-items: center; justify-content: center; }
.cta-how-step small { display: block; color: var(--cta-soft); font-size: clamp(12.5px, 3.5vw, 15px); }
.cta-how-audio { padding: 12px 14px; border-radius: 14px; background: var(--cta-card); display: flex; gap: 12px; align-items: center; }
.cta-how-play { flex: none; width: 44px; height: 44px; border-radius: 22px; background: var(--cta-gold); display: flex; align-items: center; justify-content: center; }
.cta-how-track { flex: 1; display: flex; flex-direction: column; gap: 6px; font-size: clamp(13px, 3.6vw, 15px); font-weight: 700; }
.cta-how-track i { height: 5px; border-radius: 3px; background: #5A4636; }
.cta-how-trust { font-size: 15px; color: var(--cta-soft); text-align: center; }
.cta-how-trust b { color: var(--cta-ink); }
.cta-how-cta { height: 58px; border: 0; border-radius: 14px; background: var(--cta-gold); color: var(--cta-gold-ink); font-size: clamp(16.5px, 4.4vw, 19px); font-weight: 700; cursor: pointer; font-family: var(--cta-sans); }

/* ============================================================
   VARIANT 1 (61) - What do you want them to hear?
   ============================================================ */
html.cta-v1 .cta-root { gap: 8px; }
html.cta-v1 .cta-h2 { margin-top: 4px; }
html.cta-v1 .cta-quote { min-height: 44px; font-family: var(--cta-serif); font-style: italic; font-size: clamp(15px, 4.2vw, 17px); font-weight: 400; text-align: left; padding: 6px 14px; width: 100%; }
html.cta-v1 .cta-own { min-height: 44px; font-size: clamp(13.5px, 3.8vw, 15.5px); font-weight: 600; text-align: left; padding: 6px 14px; width: 100%; }

/* ============================================================
   VARIANT 2 (62) - Your song starts with the good stuff
   ============================================================ */
html.cta-v2 .cta-root { gap: 12px; }
html.cta-v2 .cta-h2 { font-size: clamp(20px, 5vw, 24px); }
html.cta-v2 .cta-card { padding: 14px; border-radius: 14px; background: var(--cta-card); display: flex; flex-direction: column; gap: 10px; font-family: var(--cta-serif); font-style: italic; font-size: clamp(15px, 4.2vw, 17px); line-height: 1.35; }
html.cta-v2 .cta-card > div { display: flex; gap: 10px; }
html.cta-v2 .cta-heart { flex: none; color: var(--cta-gold); font-style: normal; }
html.cta-v2 .cta-btn-gold { height: 56px; font-size: clamp(16.5px, 4.4vw, 19px); border-radius: 14px; }

/* ============================================================
   VARIANT 3 (63b) - Is there someone who deserves to know...
   ============================================================ */
html.cta-v3 .cta-root { gap: 14px; align-items: center; }
html.cta-v3 .cta-h2 { font-size: clamp(19px, 4.8vw, 23px); }
html.cta-v3 .cta-big { margin-top: 4px; width: 100%; min-height: 70px; border-radius: 14px; padding: 10px 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
html.cta-v3 .cta-big b { font-size: clamp(16.5px, 4.4vw, 19px); }
html.cta-v3 .cta-big span { font-size: clamp(13px, 3.6vw, 15px); font-weight: 600; }
html.cta-v3 .cta-steps3 { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 4px; }
html.cta-v3 .cta-step3 { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: clamp(11.5px, 3.2vw, 13.5px); line-height: 1.3; color: var(--cta-soft); }
html.cta-v3 .cta-step3 i { width: 28px; height: 28px; border-radius: 14px; background: var(--cta-tile); color: var(--cta-ink); font-weight: 700; font-style: normal; display: flex; align-items: center; justify-content: center; }
html.cta-v3 .cta-step3:first-child i { background: var(--cta-gold); color: var(--cta-gold-ink); }

/* ============================================================
   VARIANT 4 (64) - Who's about to smile, laugh and cry happy tears?
   ============================================================ */
html.cta-v4 .cta-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
html.cta-v4 .cta-btn-cream, html.cta-v4 .cta-btn-ghost { height: 50px; font-size: clamp(15px, 4.2vw, 17px); font-weight: 700; }
html.cta-v4 .cta-out { margin-top: 6px; font-size: clamp(14.5px, 4vw, 17px); font-weight: 600; color: var(--cta-ink); text-align: center; }

/* ============================================================
   VARIANT 5 (65) - How would they react to a song about you two?
   ============================================================ */
html.cta-v5 .cta-root { gap: 10px; }
html.cta-v5 .cta-btn-cream { height: 50px; font-size: clamp(14.5px, 4vw, 17px); font-weight: 600; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; width: 100%; }

/* ============================================================
   VARIANT 6 (66) - Your memories. Their happy tears.
   ============================================================ */
html.cta-v6 .cta-root { gap: 12px; align-items: center; padding-top: 10px; }
html.cta-v6 .cta-h2 { font-size: clamp(23px, 6vw, 28px); line-height: 1.25; }
html.cta-v6 .cta-h2 em { color: var(--cta-gold); }
html.cta-v6 .cta-big { margin-top: 8px; width: 100%; min-height: 70px; border-radius: 14px; padding: 10px 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
html.cta-v6 .cta-big b { font-size: clamp(17px, 4.6vw, 20px); }
html.cta-v6 .cta-big span { font-size: clamp(13px, 3.6vw, 15px); font-weight: 600; }

/* ============================================================
   VARIANT 7 (67) - Imagine that reaction from the one you love
   ============================================================ */
html.cta-v7 .cta-root { gap: 20px; padding-top: 26px; }
html.cta-v7 .cta-h2 { font-size: clamp(20px, 5.2vw, 24px); position: relative; }
html.cta-v7 .cta-that { position: relative; color: var(--cta-gold); }
html.cta-v7 .cta-curver { position: absolute; left: 50%; bottom: 100%; margin-left: -20px; margin-bottom: 2px; }
html.cta-v7 .cta-big { width: 100%; min-height: 78px; border-radius: 14px; padding: 10px 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
html.cta-v7 .cta-big b { font-size: clamp(17px, 4.6vw, 20px); }
html.cta-v7 .cta-big span { font-size: clamp(13px, 3.6vw, 15px); font-weight: 600; }

/* ============================================================
   VARIANT 8 (68) - Thinking of making them smile with a song?
   ============================================================ */
html.cta-v8 .cta-root { gap: 12px; }
html.cta-v8 .cta-h2 { font-size: clamp(19px, 4.8vw, 23px); }
html.cta-v8 .cta-door { width: 100%; min-height: 70px; border-radius: 14px; text-align: left; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
html.cta-v8 .cta-door b { display: block; font-size: clamp(16.5px, 4.4vw, 19px); }
html.cta-v8 .cta-door small { display: block; font-size: clamp(12.5px, 3.5vw, 14.5px); margin-top: 2px; }
html.cta-v8 .cta-door .cta-arrow { font-size: 22px; }
html.cta-v8 .cta-door-soft small { color: #5A4636; }

/* ============================================================
   VARIANT 9 (69) - What do you love most about them?
   ============================================================ */
html.cta-v9 .cta-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
html.cta-v9 .cta-chip { min-height: 40px; border: 2px solid var(--cta-line); border-radius: 22px; background: transparent; color: var(--cta-ink); font-size: clamp(13px, 3.6vw, 15px); font-weight: 600; padding: 0 12px; }
html.cta-v9 .cta-chip-dashed { border-style: dashed; }
html.cta-v9 .cta-btn-gold { margin-top: 4px; height: 52px; font-size: clamp(16px, 4.4vw, 18.5px); width: 100%; }

/* ============================================================
   VARIANT 10 (70) - Sticky bar: two doors (body mount, zone stays)
   ============================================================ */
html.cta-v10 #stickyNameBar { display: none !important; }
.cta-mount .cta-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 2147481000;
  padding: 12px 14px calc(14px + env(safe-area-inset-bottom, 0px));
  background: var(--cta-ink); color: var(--cta-gold-ink);
  display: flex; flex-direction: column; gap: 10px;
  box-shadow: 0 -6px 20px rgba(0,0,0,0.35);
}
.cta-mount .cta-bar-h { font-family: var(--cta-serif); font-size: clamp(14.5px, 4vw, 17px); font-weight: 400; text-align: center; line-height: 1.3; }
.cta-mount .cta-bar-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-width: 520px; margin: 0 auto; width: 100%; }
.cta-mount .cta-bar-btns button { height: 50px; border-radius: 12px; font-size: clamp(13.5px, 3.8vw, 16px); font-weight: 700; padding: 0 6px; cursor: pointer; font-family: var(--cta-sans); }
.cta-mount .cta-bar-ghost { border: 2px solid var(--cta-line); background: transparent; color: var(--cta-gold-ink); }
.cta-mount .cta-bar-go { border: 0; background: var(--cta-blue); color: #fff; }
/* page bottom padding so the bar never covers content */
html.cta-v10 body { padding-bottom: 150px; }

/* ==========================================================================
   ROUND-3 ADDITIONS (2026-10-08): static mounts + funnel initiation fixes.
   Everything above is the owner-approved round-2 sheet (IDs remapped to
   .cta-mount). Only additive overrides below.
   ========================================================================== */

/* static mounts: CSS shows exactly one on first paint (templates are gone) */
.cta-mount { display: none; }
html.cta-v1 .cta-mount[data-cta-mount="1"],
html.cta-v2 .cta-mount[data-cta-mount="2"],
html.cta-v3 .cta-mount[data-cta-mount="3"],
html.cta-v4 .cta-mount[data-cta-mount="4"],
html.cta-v5 .cta-mount[data-cta-mount="5"],
html.cta-v6 .cta-mount[data-cta-mount="6"],
html.cta-v7 .cta-mount[data-cta-mount="7"],
html.cta-v8 .cta-mount[data-cta-mount="8"],
html.cta-v9 .cta-mount[data-cta-mount="9"],
html.cta-v10 .cta-mount[data-cta-mount="10"] { display: block; }

/* baseline zone out on EVERY variant incl v10 (no JS swap anymore) */
html.cta-v1 [data-cta-zone],
html.cta-v2 [data-cta-zone],
html.cta-v3 [data-cta-zone],
html.cta-v4 [data-cta-zone],
html.cta-v5 [data-cta-zone],
html.cta-v6 [data-cta-zone],
html.cta-v7 [data-cta-zone],
html.cta-v8 [data-cta-zone],
html.cta-v9 [data-cta-zone],
html.cta-v10 [data-cta-zone] { display: none !important; }

/* how screen sits UNDER the modal overlay (10000) so the popup opens inside it */
.cta-mount .cta-how { z-index: 9500; }
/* owner pass: bigger/bolder title with air below, more space between steps */
.cta-mount .cta-how-h2 { font-size: clamp(25px, 7vw, 30px); font-weight: 700; margin: 4px 0 14px; }
.cta-mount .cta-how-steps { gap: 20px; }
/* owner pass: step text hard left on every line (title/trust rows stay centered) */
.cta-mount .cta-how-step { text-align: left; }
.cta-mount .cta-how-step > span:last-child { flex: 1 1 auto; text-align: left; }
.cta-mount .cta-how-step strong, .cta-mount .cta-how-step small { display: block; text-align: left; }
.cta-mount .cta-how-check { font-size: clamp(12.5px, 3.6vw, 14px); font-weight: 600; color: var(--cta-soft); text-align: center; }

/* modal opened from the how screen: warm solid backdrop, no page flash */
#relModalOverlay.how-bg { background: #241a12; backdrop-filter: none; -webkit-backdrop-filter: none; }

/* v10 sticky bar BELOW the modal overlay: popup covers + blurs it while open */
.cta-mount .cta-bar { z-index: 9990; }
.cta-mount[data-cta-mount="10"].cta-how-open .cta-bar { display: none; }

/* v7 desktop: hero-grid = video LEFT column, copy/selector RIGHT (DOM order verified:
   video-carousel-wrapper line ~504 precedes hero-copy ~570). Arrow must aim up-LEFT
   toward the video. (Mobile 1-col keeps the base straight-up arrow: video is above.) */
@media (min-width: 961px) {
  html.cta-v7 .cta-that { position: static; }
  html.cta-v7 .cta-h2 { width: fit-content; margin: 2px auto 0; }
  html.cta-v7 .cta-curver {
    left: -70px; right: auto; top: 50%; bottom: auto;
    margin: 0;
    transform: translate(-50%, -50%) rotate(-90deg) scaleY(1.4);
  }
}

/* how-it-works screen (v8+v10) desktop: was full-bleed mobile layout stretched wide.
   Constrain to a centered column, bigger type, real spacing, back button pinned top-left. */
@media (min-width: 961px) {
  /* specificity note: must be .cta-mount-scoped to beat the round-3 owner-pass rules above */
  .cta-mount .cta-how { padding: max(48px, 10vh) 24px 56px; }
  .cta-mount .cta-how-back { position: absolute; top: 22px; left: 28px; align-self: auto; height: 44px; font-size: 17px; }
  .cta-mount .cta-how > *:not(.cta-how-back) { width: 100%; max-width: 560px; margin-left: auto; margin-right: auto; }
  .cta-mount .cta-how-h2 { font-size: 40px; margin: 0 0 38px; }
  .cta-mount .cta-how-steps { gap: 26px; margin-bottom: 42px; }
  .cta-mount .cta-how-step { font-size: 20px; gap: 16px; }
  .cta-mount .cta-how-num { width: 48px; height: 48px; border-radius: 24px; font-size: 22px; }
  .cta-mount .cta-how-step small { font-size: 16px; margin-top: 3px; }
  .cta-mount .cta-how-cta { height: 66px; font-size: 21px; border-radius: 16px; }
  .cta-mount .cta-how-check { margin-top: 14px; font-size: 16px; }
}

/* launch highlight (clears as soon as the modal opens) */
.cta-mount .cta-launching { outline: 3px solid var(--cta-gold); outline-offset: -3px; }

/* resume-bar clone inside variant mounts */
.cta-mount #resumeBarClone { margin: 0 auto 14px !important; }

/* warm skin for the customization modal while any variant is active */
#relModalOverlay.lp-skin-cta .lp-modal-box { background: #2B1E16; border-color: rgba(242, 179, 61, 0.28); }
#relModalOverlay.lp-skin-cta .lp-modal-title { color: #F6EFE6; }
#relModalOverlay.lp-skin-cta .lp-modal-card { background: #4A3A30; }
#relModalOverlay.lp-skin-cta .lp-modal-card:hover { background: #5A4636; border-color: rgba(242, 179, 61, 0.4); }
#relModalOverlay.lp-skin-cta .lp-modal-card:active { background: #5A4636; }
@media (hover: none) { #relModalOverlay.lp-skin-cta .lp-modal-card:hover { background: #4A3A30; border-color: transparent; } }
#relModalOverlay.lp-skin-cta .lp-modal-card-label { color: #F6EFE6; }
#relModalOverlay.lp-skin-cta .lp-modal-back { color: rgba(246, 239, 230, 0.55); }
#relModalOverlay.lp-skin-cta .lp-modal-back:hover { color: rgba(246, 239, 230, 0.85); }
