/* ============================================================
 * Fantasia Landing Page — shared component styles
 * Used by both the H5 (mobile) and Web (desktop responsive) entries.
 * ============================================================ */

:root{
  --bg: #0e0e10;
  --bg-2: #16161a;
  --surface: #1f1f23;
  --surface-2: #2a2a30;
  --line: #2e2e34;
  --line-strong: #3a3a42;
  --ink: #ffffff;
  --ink-soft: #b8b8bf;
  --ink-mute: #6b6b75;
  --primary: #ffd83d;
  --primary-press: #f0c828;
  --primary-ink: #1a1605;
  --radius-pill: 999px;
  --radius-card: 22px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

*,*::before,*::after{ box-sizing: border-box; }
html, body{ margin:0; padding:0; height:100%; }
html{ -webkit-text-size-adjust: 100%; background: var(--bg); }
body{
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100svh;
  overflow-x: hidden;
}
button{ font-family: inherit; }

/* ===================== APP STAGE & PANEL ===================== */

.fl-stage{
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  justify-content: center;
}
.fl-app{
  position: relative;
  width: 100%;
  max-width: 100vw;
  background: var(--bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  min-height: 100vh;
}

/* ===================== TOP BAR ===================== */

.fl-topbar{
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px 8px;
  padding-top: max(18px, env(safe-area-inset-top));
}
.fl-back{
  width: 36px; height: 36px;
  flex: 0 0 auto;
  display: grid; place-items: center;
  border-radius: 50%;
  background: transparent;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background .15s ease, opacity .15s ease;
}
.fl-back:hover{ background: var(--surface); }
.fl-back:disabled{ opacity: .35; cursor: default; }
.fl-back svg{ width: 20px; height: 20px; }

.fl-progress{
  flex: 1 1 auto;
  height: 6px;
  background: var(--surface);
  border-radius: 999px;
  overflow: hidden;
}
.fl-progress__bar{
  height: 100%;
  width: 25%;
  background: var(--primary);
  border-radius: 999px;
  transition: width .55s cubic-bezier(.4,.0,.2,1);
}

/* ===================== SCREENS ===================== */

.fl-screens{
  flex: 1 1 auto;
  position: relative;
  display: flex;
  flex-direction: column;
}
.fl-screen{
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 28px 22px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(20px);
  transition: opacity .35s ease, transform .35s ease, visibility 0s linear .35s;
}
.fl-screen.is-active{
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  transition: opacity .35s ease .05s, transform .4s ease, visibility 0s;
}
.fl-screen.is-leaving{
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity .25s ease, transform .3s ease, visibility 0s linear .3s;
}

.fl-heading{
  font-size: 32px;
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 28px 0 14px;
  text-wrap: balance;
}
.fl-sub{
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-soft);
  margin: 0 0 32px;
  max-width: 36ch;
  text-wrap: pretty;
}

/* ===================== OPTION PILLS ===================== */

.fl-options{ display: flex; flex-direction: column; gap: 14px; }
.fl-opt{
  appearance: none;
  border: 0;
  cursor: pointer;
  height: 60px;
  width: 100%;
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.005em;
  transition: background .18s ease, transform .12s ease, color .18s ease;
  -webkit-tap-highlight-color: transparent;
}
.fl-opt:hover{ background: var(--surface-2); }
.fl-opt:active{ transform: scale(.985); }
.fl-opt.is-selected{
  background: rgba(255,216,61,.10);
  color: var(--primary);
  border: 1.5px solid var(--primary);
  box-shadow: 0 0 0 1px var(--primary) inset;
}
.fl-opt:focus-visible{ outline: 2px solid var(--primary); outline-offset: 3px; }

/* ===================== IMAGE GRID ===================== */

.fl-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fl-card{
  appearance: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  aspect-ratio: 1 / 1.18;
  border-radius: 22px;
  background: var(--surface);
  color: var(--ink);
  position: relative;
  overflow: hidden;
  transition: transform .12s ease;
  -webkit-tap-highlight-color: transparent;
  border: 2px solid transparent;
}
.fl-card__img{
  position: absolute;
  inset: 0;
  background: #1a1a1f;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.fl-card__img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.fl-card__img::after{
  content: attr(data-placeholder);
  position: absolute;
  bottom: 50%;
  transform: translateY(50%);
  color: var(--ink-mute);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.4;
  padding: 0 12px;
  white-space: pre-line;
}
.fl-card__img:has(img)::after{ display: none; }
.fl-card__label{
  position: absolute;
  left: 0; right: 0;
  bottom: 14px;
  text-align: center;
  font-weight: 700;
  font-size: 17px;
  color: #fff;
  z-index: 2;
}
.fl-card::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.92) 0%, rgba(0,0,0,.6) 25%, rgba(0,0,0,0) 60%);
  pointer-events: none;
  z-index: 1;
}
.fl-card.is-selected{
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), 0 12px 30px rgba(255,216,61,.18);
}
.fl-card:active{ transform: scale(.985); }

/* ===================== BOTTOM CTA ===================== */

.fl-bottom{
  flex: 0 0 auto;
  padding: 16px 22px max(22px, env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 70%, transparent);
  position: relative;
  z-index: 4;
}
.fl-cta{
  width: 100%;
  height: 60px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: var(--primary-ink);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: background .18s ease, opacity .18s ease, transform .12s ease;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}
.fl-cta:hover{ background: #ffe05c; }
.fl-cta:active{ transform: scale(.985); background: var(--primary-press); }
.fl-cta:disabled{ opacity: .4; cursor: not-allowed; }
.fl-cta.is-loading{ color: transparent; pointer-events: none; }
.fl-cta.is-loading::after{
  content: "";
  position: absolute;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2.5px solid rgba(26,22,5,.2);
  border-top-color: var(--primary-ink);
  animation: fl-spin 1s linear infinite;
  left: 50%; top: 50%;
  margin: -11px 0 0 -11px;
}
@keyframes fl-spin{ to{ transform: rotate(360deg); } }

/* ===================== COMPLIANCE FOOTER (in-card, used by H5) ===================== */

.fl-compliance{
  flex: 0 0 auto;
  text-align: center;
  color: var(--ink-mute);
  font-size: 11px;
  line-height: 1.55;
  padding: 12px 22px max(14px, env(safe-area-inset-bottom));
  background: var(--bg);
}
.fl-compliance p{ margin: 0 0 4px; }
.fl-compliance__legal{ font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.02em; }
.fl-compliance__legal a{ color: var(--ink-mute); text-decoration: none; }
.fl-compliance__legal a:hover{ color: var(--ink-soft); }
.fl-compliance .sep{ opacity: .4; margin: 0 6px; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ============================================================
 * WELCOME SCREEN — full-bleed intro overlay
 * ============================================================ */

.fl-welcome{
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #07070a;
  opacity: 1;
  transition: opacity .55s ease, visibility 0s linear .55s;
}
.fl-welcome.is-hidden{
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.fl-welcome__bg{
  position: absolute;
  inset: 0;
  background-image: url("welcome-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.04);
  animation: fl-welcome-drift 18s ease-in-out infinite alternate;
}
@keyframes fl-welcome-drift{
  0%   { transform: scale(1.04) translate3d(0, 0, 0); }
  100% { transform: scale(1.08) translate3d(-1.2%, -0.8%, 0); }
}
.fl-welcome__scrim{
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 38%, rgba(255,216,61,.10) 0%, rgba(255,216,61,0) 60%),
    linear-gradient(to bottom, rgba(7,7,10,.72) 0%, rgba(7,7,10,.45) 30%, rgba(7,7,10,.72) 65%, rgba(7,7,10,.96) 100%);
}
.fl-welcome__inner{
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: clamp(36px, 6vh, 56px);
  padding: 24px 24px max(48px, env(safe-area-inset-bottom));
}
.fl-welcome__copy{
  max-width: 720px;
  animation: fl-welcome-rise .9s cubic-bezier(.2,.7,.2,1) .15s both;
}
@keyframes fl-welcome-rise{
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fl-welcome__eyebrow{
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 18px;
  opacity: .9;
}
.fl-welcome__title{
  font-family: "Cormorant Unicase", "Cinzel", "Inter", serif;
  font-size: clamp(34px, 5.6vw, 64px);
  line-height: 1.08;
  letter-spacing: 0.005em;
  font-weight: 700;
  margin: 0 0 22px;
  color: var(--ink);
  text-wrap: balance;
  white-space: nowrap;
  text-shadow: 0 2px 24px rgba(0,0,0,.6), 0 0 30px rgba(255,216,61,.12);
}
.fl-welcome__title em{
  font-style: normal;
  color: var(--primary);
}
.fl-welcome__sub{
  font-family: "Cormorant Garamond", "Cormorant Unicase", serif;
  font-size: clamp(18px, 1.9vw, 23px);
  line-height: 1.45;
  color: #fff;
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.01em;
  margin: 0;
  max-width: 38ch;
  margin-inline: auto;
  text-shadow: none;
}
.fl-welcome__cta{
  appearance: none;
  border: 0;
  cursor: pointer;
  height: 60px;
  padding: 0 40px;
  min-width: 220px;
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: var(--primary-ink);
  font-family: "Cormorant Unicase", "Inter", serif;
  font-weight: 700;
  font-size: 20px;
  -webkit-text-stroke: 0.5px currentColor;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background .2s ease, transform .12s ease, box-shadow .25s ease;
  box-shadow: 0 12px 36px rgba(255,216,61,.28), 0 0 0 1px rgba(255,255,255,.06) inset;
  -webkit-tap-highlight-color: transparent;
  animation: fl-welcome-rise .9s cubic-bezier(.2,.7,.2,1) .35s both;
}
.fl-welcome__cta:hover{
  background: #ffe05c;
  box-shadow: 0 14px 44px rgba(255,216,61,.42), 0 0 0 1px rgba(255,255,255,.08) inset;
}
.fl-welcome__cta:active{ transform: scale(.98); background: var(--primary-press); }
.fl-welcome__cta svg{ width: 20px; height: 20px; }
.fl-welcome__cta:focus-visible{ outline: 2px solid #fff; outline-offset: 4px; }

.fl-welcome__foot{
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  z-index: 3;
  text-align: center;
  color: rgba(255,255,255,.6);
  font-size: 11.5px;
  line-height: 1.55;
  padding: 16px 24px max(20px, env(safe-area-inset-bottom));
}
.fl-welcome__foot p{ margin: 0 0 4px; }
.fl-welcome__foot .legal{
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 8px;
}
.fl-welcome__foot .legal a{
  color: rgba(255,255,255,.6);
  text-decoration: none;
}
.fl-welcome__foot .legal a:hover{ color: rgba(255,255,255,.9); }
.fl-welcome__foot .sep{ opacity: .4; }
[data-layout="h5"] .fl-welcome__foot{
  font-size: 11px;
  line-height: 1.4;
  color: rgba(255,255,255,.5);
  padding: 6px 22px 12px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
}
[data-layout="h5"] .fl-welcome__foot p{ margin: 0 0 3px; }
[data-layout="h5"] .fl-welcome__foot .legal{ font-size: 10.5px; }
[data-layout="h5"] .fl-welcome__foot .legal a{ color: rgba(255,255,255,.5); }
@media (min-width: 720px){
  [data-layout="h5"] .fl-welcome__foot{ font-size: 10px; padding: 6px 22px 12px; }
  [data-layout="h5"] .fl-welcome__foot .legal{ font-size: 9.5px; }
}

/* H5 phone-frame: keep welcome inside the device on desktop */
@media (min-width: 720px){
  [data-layout="h5"] .fl-welcome{
    position: fixed;
  }
}
[data-layout="h5"] .fl-welcome__title{
  font-size: clamp(22px, 6.6vw, 36px);
  white-space: nowrap;
}
[data-layout="h5"] .fl-welcome__sub{ font-size: 17px; }
[data-layout="h5"] .fl-welcome__cta{ height: 56px; min-width: 200px; font-size: 16px; }

/* ============================================================
 * H5 LAYOUT — mobile-only, full-bleed, phone-frame on desktop
 * ============================================================ */

/* H5: full-bleed mobile screen styled like web (shell + footer + curves) */
[data-layout="h5"] body{
  background: var(--bg);
  position: relative;
}

/* Decorations live INSIDE the phone shell — visible on real mobile devices */
[data-layout="h5"] .fl-shell{
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
  background:
    radial-gradient(70% 50% at 15% 0%, rgba(255,216,61,.10) 0%, rgba(255,216,61,0) 55%),
    radial-gradient(60% 50% at 95% 100%, rgba(255,216,61,.07) 0%, rgba(255,216,61,0) 60%),
    radial-gradient(40% 30% at 50% 50%, rgba(255,255,255,.04) 0%, rgba(255,255,255,0) 70%),
    var(--bg);
  overflow: hidden;
}
[data-layout="h5"] .fl-shell::after{ display: none; }
[data-layout="h5"] .fl-shell > *{ position: relative; z-index: 1; }

/* Phone frame on desktop — H5 sits inside a 390×844 device */
@media (min-width: 720px){
  [data-layout="h5"] body{
    background: #07070a;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
  }
  [data-layout="h5"] .fl-shell{
    flex: 0 0 auto;
    width: 390px;
    max-width: 390px;
    height: min(844px, calc(100svh - 64px));
    min-height: 720px;
    border-radius: 44px;
    border: 1px solid #1c1c22;
    background: var(--bg);
    box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 40px 80px rgba(0,0,0,.6);
    overflow: hidden;
    position: relative;
    min-height: 720px;
  }
  [data-layout="h5"] .fl-shell::before{
    content: "";
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 120px; height: 24px;
    background: #050507;
    border-radius: 0 0 16px 16px;
    z-index: 30;
  }
  [data-layout="h5"] .fl-main{
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 56px 22px 16px;
    overflow-y: auto;
  }
  [data-layout="h5"] .fl-foot{
    padding: 4px 22px 14px;
    font-size: 10px;
    line-height: 1.35;
  }
  [data-layout="h5"] .fl-foot p{ margin: 0 0 2px; }
  [data-layout="h5"] .fl-foot .legal{ font-size: 9.5px; gap: 0 6px; }
}

/* Brand nav */
[data-layout="h5"] .fl-nav{
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding: 22px 22px 8px;
  padding-top: max(22px, env(safe-area-inset-top));
  position: relative;
  z-index: 5;
}
[data-layout="h5"] .fl-brand{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
[data-layout="h5"] .fl-brand__mark{
  width: 28px; height: 28px;
  border-radius: 9px;
  background: var(--primary);
  color: var(--primary-ink);
  display: grid; place-items: center;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.04em;
}

/* Main column hosts the flow */
[data-layout="h5"] .fl-main{
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 24px 22px 24px;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

/* Strip phone-frame chrome — full-bleed on mobile */
[data-layout="h5"] .fl-stage{
  min-height: 0;
  align-items: stretch;
  justify-content: flex-start;
  padding: 0;
}
[data-layout="h5"] .fl-app{
  width: 100%;
  max-width: none;
  margin: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
  min-height: 0;
  height: auto;
}
[data-layout="h5"] .fl-screens{ min-height: 480px; position: relative; }
[data-layout="h5"] .fl-screen{ position: relative; inset: auto; padding: 0; }
[data-layout="h5"] .fl-screen:not(.is-active){ display: none; }
[data-layout="h5"] .fl-screen.is-active{ transform: none; }

/* Big heading like web (scaled for mobile) */
[data-layout="h5"] .fl-heading{
  font-size: clamp(22px, 6.4vw, 28px);
  line-height: 1.1;
  letter-spacing: -0.022em;
  font-weight: 700;
  margin: 4px 0 8px;
  text-wrap: balance;
  max-width: none;
}
[data-layout="h5"] .fl-sub{
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-soft);
  margin: 0 0 18px;
  max-width: none;
}

/* Topbar: stack — back button on its own row, progress bar below it */
[data-layout="h5"] .fl-topbar{
  flex-direction: column;
  align-items: stretch;
  padding: 0 0 14px;
  gap: 18px;
}
[data-layout="h5"] .fl-back{
  width: 32px; height: 32px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  align-self: flex-start;
}
[data-layout="h5"] .fl-back svg{ width: 16px; height: 16px; }
[data-layout="h5"] .fl-back:disabled{ opacity: 0; pointer-events: none; }
[data-layout="h5"] .fl-back:hover{ background: var(--surface); }
[data-layout="h5"] .fl-progress{
  height: 4px;
  background: var(--surface);
  border-radius: 2px;
  overflow: visible;
}
[data-layout="h5"] .fl-progress__bar{
  border-radius: 2px;
  background: var(--primary);
  box-shadow: 0 0 14px rgba(255,216,61,.4);
  position: relative;
}
[data-layout="h5"] .fl-progress__bar::after{
  content: "";
  position: absolute;
  right: -2px; top: 50%;
  transform: translateY(-50%);
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(255,216,61,.18);
}

/* Options + cards: web-style sizing, mobile widths */
[data-layout="h5"] .fl-opt{
  border-radius: 14px;
  height: 56px;
  font-size: 16px;
}
[data-layout="h5"] .fl-options{ gap: 10px; }
[data-layout="h5"] .fl-grid{
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
[data-layout="h5"] .fl-card{
  aspect-ratio: 1 / 1.15;
  border-radius: 14px;
}

/* Bottom CTA: stays in flow, not pinned */
[data-layout="h5"] .fl-bottom{
  padding: 18px 0 0;
  background: transparent;
}

/* Hide in-card compliance — page footer covers it */
[data-layout="h5"] .fl-app .fl-compliance{ display: none; }

/* Compliance footer — same look as web */
[data-layout="h5"] .fl-foot{
  flex: 0 0 auto;
  text-align: center;
  color: var(--ink-mute);
  font-size: 11px;
  line-height: 1.4;
  padding: 6px 22px 12px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  width: 100%;
}
[data-layout="h5"] .fl-foot p{ margin: 0 0 3px; }
[data-layout="h5"] .fl-foot .legal{
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.02em;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 8px;
}
[data-layout="h5"] .fl-foot .legal a{
  color: var(--ink-mute);
  text-decoration: none;
}
[data-layout="h5"] .fl-foot .sep{ opacity: .5; }

/* ============================================================
 * WEB LAYOUT — minimal: brand mark, big left-aligned question, options, CTA.
 * No hero copy, no decorative motif, no compliance footer.
 * ============================================================ */

[data-layout="web"] body{
  background:
    radial-gradient(70% 50% at 15% 0%, rgba(255,216,61,.10) 0%, rgba(255,216,61,0) 55%),
    radial-gradient(60% 50% at 95% 100%, rgba(255,216,61,.07) 0%, rgba(255,216,61,0) 60%),
    radial-gradient(40% 30% at 50% 50%, rgba(255,255,255,.04) 0%, rgba(255,255,255,0) 70%),
    var(--bg);
  position: relative;
}
[data-layout="web"] body::before{
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 1000' preserveAspectRatio='xMidYMid slice' fill='none' stroke-linecap='round'><g stroke='%23ffffff' stroke-opacity='0.08' stroke-width='1.2'><path d='M-180,260 C 20,200 120,120 200,40 260,-40 290,-100 310,-180'/><path d='M-180,360 C 60,290 180,200 260,100 320,20 360,-60 400,-180'/><path d='M-180,620 C 120,520 280,380 400,260 490,170 560,80 620,-180'/></g><g stroke='%23ffd83d' stroke-opacity='0.13' stroke-width='1.4'><path d='M-180,140 C -20,100 60,40 120,-40 160,-100 180,-140 190,-200'/></g><g stroke='%23ffffff' stroke-opacity='0.07' stroke-width='1.2'><path d='M820,1120 C 980,940 1080,860 1220,760 1360,660 1480,600 1760,500'/><path d='M1080,1120 C 1180,1000 1260,930 1380,860 1500,790 1600,750 1760,700'/><path d='M1300,1120 C 1360,1050 1420,1010 1500,970 1580,930 1640,910 1760,880'/></g><g stroke='%23ffd83d' stroke-opacity='0.11' stroke-width='1.4'><path d='M940,1140 C 1140,960 1280,870 1420,780 1560,690 1640,650 1780,600'/></g></svg>");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 50%, transparent 0%, #000 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 50%, transparent 0%, #000 80%);
}
[data-layout="web"] .fl-shell{ position: relative; z-index: 1; }

[data-layout="web"] .fl-shell{
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Top brand mark, generous breathing room. */
[data-layout="web"] .fl-nav{
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding: 32px clamp(24px, 5vw, 56px);
  position: relative;
  z-index: 5;
}
[data-layout="web"] .fl-brand{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
[data-layout="web"] .fl-brand__mark{
  width: 32px; height: 32px;
  border-radius: 10px;
  background: var(--primary);
  color: var(--primary-ink);
  display: grid; place-items: center;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.04em;
}

/* Main: a centered column. Generous width on desktop, comfortable on mobile. */
[data-layout="web"] .fl-main{
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: clamp(28px, 8vh, 80px) clamp(24px, 6vw, 96px) 64px clamp(96px, 10vw, 140px);
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
}

/* Strip the H5 phone-frame chrome from the flow. */
[data-layout="web"] .fl-app{
  width: 100%;
  max-width: none;
  margin: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
  min-height: 0;
  height: auto;
}
[data-layout="web"] .fl-stage{
  min-height: 0;
  justify-content: flex-start;
  align-items: stretch;
}
[data-layout="web"] .fl-screens{ min-height: 520px; position: relative; }
[data-layout="web"] .fl-screen{ position: relative; inset: auto; padding: 0; }
[data-layout="web"] .fl-screen:not(.is-active){ display: none; }
[data-layout="web"] .fl-screen.is-active{ transform: none; }

/* The big left-aligned question heading. */
[data-layout="web"] .fl-heading{
  display: block;
  font-size: clamp(36px, 5.6vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 0 0 18px;
  text-wrap: balance;
  max-width: 18ch;
}
[data-layout="web"] .fl-sub{
  display: block;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 56px;
  max-width: none;
}

/* Top progress + back: lift the back button out, redesign the progress bar. */
[data-layout="web"] .fl-topbar{
  padding: 0 0 44px;
  max-width: 100%;
  position: relative;
}
[data-layout="web"] .fl-back{
  position: absolute;
  top: calc(100% + 4px);
  left: calc(-1 * clamp(60px, 7vw, 88px));
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: transparent;
  z-index: 6;
  transition: background .15s ease, border-color .15s ease, opacity .15s ease;
}
[data-layout="web"] .fl-back:hover{ background: var(--surface); border-color: var(--line-strong); }
[data-layout="web"] .fl-back svg{ width: 18px; height: 18px; }
[data-layout="web"] .fl-progress{
  height: 4px;
  background: var(--surface);
  border-radius: 2px;
  overflow: visible;
}
[data-layout="web"] .fl-progress__bar{
  border-radius: 2px;
  background: var(--primary);
  box-shadow: 0 0 14px rgba(255,216,61,.4);
  position: relative;
}
[data-layout="web"] .fl-progress__bar::after{
  content: "";
  position: absolute;
  right: -2px; top: 50%;
  transform: translateY(-50%);
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(255,216,61,.18);
}

/* CTA: full-width within the column, anchored at the bottom of the screen. */
[data-layout="web"] .fl-bottom{
  padding: 40px 0 0;
  background: transparent;
}

/* Options + cards: span full column on desktop, but cap CTA width for tap target. */
[data-layout="web"] .fl-options{ max-width: 100%; }
[data-layout="web"] .fl-grid{
  max-width: 100%;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
[data-layout="web"] .fl-card{
  aspect-ratio: 1 / 1.25;
  border-radius: 16px;
}
[data-layout="web"] .fl-card__label{
  font-size: 15px;
  bottom: 12px;
}
[data-layout="web"] .fl-cta{ max-width: 100%; }
[data-layout="web"] .fl-opt{
  border-radius: 16px;
  height: 76px;
  font-size: 19px;
}

/* Hide in-card compliance on web — page footer covers it. */
[data-layout="web"] .fl-app .fl-compliance{ display: none; }

/* Tighter on small screens. */
@media (max-width: 600px){
  [data-layout="web"] .fl-nav{ padding: 22px 22px; }
  [data-layout="web"] .fl-main{ padding: 16px 22px 40px; }
  [data-layout="web"] .fl-heading{ font-size: clamp(30px, 8vw, 40px); }
  [data-layout="web"] .fl-sub{ margin-bottom: 32px; }
}

/* Compliance footer — pinned bottom, centered, muted. */
[data-layout="web"] .fl-foot{
  flex: 0 0 auto;
  text-align: center;
  color: var(--ink-mute);
  font-size: 11.5px;
  line-height: 1.6;
  padding: 20px 24px 28px;
  width: 100%;
}
[data-layout="web"] .fl-foot p{ margin: 0 0 6px; }
[data-layout="web"] .fl-foot .legal{
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 10px;
}
[data-layout="web"] .fl-foot .legal a{
  color: var(--ink-mute);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: border-color .15s ease, color .15s ease;
}
[data-layout="web"] .fl-foot .legal a:hover{ color: var(--ink-soft); border-color: var(--line-strong); }
[data-layout="web"] .fl-foot .sep{ opacity: .5; }
