:root {
      --blue: #143CFF;
      --blue-dark: #142B9F;
      --navy: #181F2E;
      --navy-mid: #1B2A44;
      --navy-light: #27354E;
      --white: #FFFFFF;
      --off-white: #F6F6F8;
      --coral: #FFA08E;
      --red: #EC5D6A;
      --pink-btn: #EE6B7A;
      --teal: #19896E;
      --teal-light: #7BA3A0;
      --purple: #7C267F;
      --purple-light: #A192BD;
      --purple-btn: #6B4FA0;
      --purple-deep: #3C3489;
      --purple-mid: #534AB7;
      --sky: #3B9FE2;
      --orange: #E8683F;
      --text-dark: #3D3D3A;
      --gray-border: #E0E0E4;
      --dot-gray: #C0C0C8;
      --beige: #FDF5ED;
      --font-heading: 'Montserrat', sans-serif;
      --font-body: 'Montserrat', sans-serif;
      --radius-card: 20px;
      --radius-opt: 16px;
      --radius-btn: 30px;
      --bar-h: 52px;
      --ease: cubic-bezier(.4, 0, .2, 1);
      /* ----- landing first screen tokens ----- */
      --navy-soft:#3A4257; --panel:#ECEEFF; --panel-2:#E4E2F9; --line:#E6E6EC;
      --jh-scale:1.35;
      --serif:'New Spirit','Montserrat',sans-serif;
      --sans:'Montserrat',sans-serif;
    }

    *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
    html, body { height: 100%; font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
    /* Soft brand backdrop on desktop; full-bleed on phone (set below). */
    body { display: flex; align-items: center; justify-content: center; min-height: 100vh; overflow: hidden; background: linear-gradient(150deg, #EEF0FF 0%, #E4E2F9 100%); }

    /* PHONE VIEW (default / narrow): quiz fills the screen edge-to-edge */
    .quiz { position: relative; width: 100vw; max-width: 100vw; height: 100dvh; background: var(--off-white); overflow: hidden; border-radius: 0; box-shadow: none; }

    /* Brand panel (desktop split layout only) — hidden on phone */
    .quiz__aside { display: none; }

    /* ════════ DESKTOP VIEW (wide screens) ════════
       The quiz spans the FULL screen as a two-pane composition:
       a branded visual panel on the left, the quiz content on the right.
       (Results screen keeps its own centred-card presentation.) */
    @media (min-width: 761px) {
      /* In-quiz: full-bleed split, no phone chrome */
      .quiz:not(.quiz--results) {
        width: 100vw; max-width: none; height: 100dvh;
        border-radius: 0; box-shadow: none; background: var(--off-white);
      }
      /* Full-screen blurred background image */
      .quiz:not(.quiz--results) .quiz__aside {
        display: block; position: absolute; inset: 0;
        width: 100%; overflow: hidden; z-index: 1; background: #0E1A52;
      }
      .quiz__aside-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; filter: blur(10px); transform: scale(1.06); }
      .quiz__aside-overlay { position: absolute; inset: 0; background: rgba(246,246,248,.82); }
      .quiz__aside-content { display: none; }

      /* Centred content column floating over the blurred background */
      .quiz:not(.quiz--results) #screenContainer { position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%); width: 620px; z-index: 2; }
      .quiz:not(.quiz--results) .screen { background: var(--off-white); box-shadow: 0 8px 60px rgba(0,0,0,.28); }

      /* Centred top bar */
      .quiz:not(.quiz--results) .quiz__bar { left: 50%; transform: translateX(-50%); width: 620px; height: 52px; background: var(--blue); justify-content: flex-start; z-index: 10; }
      .quiz:not(.quiz--results) .quiz__bar-back { left: 24px; color: #fff; font-size: 22px; }

      /* Comfortable reading column, slightly larger type — reads as a web form, not an app */
      .quiz:not(.quiz--results) .screen__inner { max-width: 560px; width: 100%; margin: 0 auto; padding-left: 24px; padding-right: 24px; padding-top: 62px; padding-bottom: 24px; }
      .quiz:not(.quiz--results) .heading { font-size: 24px; }
      .quiz:not(.quiz--results) .heading--lg { font-size: 26px; }
      .quiz:not(.quiz--results) .q-label { font-size: 12px; }
      .quiz:not(.quiz--results) .subtext { font-size: 13px; }
      .quiz:not(.quiz--results) .screen__inner > .subtext { text-align: left; margin-bottom: 16px; }
      .quiz:not(.quiz--results) .opts { margin-top: 16px; gap: 8px; }
      .quiz:not(.quiz--results) .opt { min-height: 50px; padding: 13px 18px; border-radius: 14px; }
      .quiz:not(.quiz--results) .opt__t { font-size: 14px; }
      .quiz:not(.quiz--results) .btn { font-size: 15px; padding: 15px 0; margin-top: 16px; }
      .quiz:not(.quiz--results) .card { padding: 28px 28px 32px; }

      /* Results: keep the centred receipt-style card on the soft backdrop */
      .quiz--results { width: 500px; max-width: 500px; margin: 0 auto; border-radius: 16px; box-shadow: 0 8px 40px rgba(20,30,80,0.13); overflow: hidden; height: auto; min-height: 100dvh; }
      .quiz--results .quiz__aside { display: none; }
      .quiz--results .rs-results .hero__img { height: 380px; transform: scale(0.9); transform-origin: center top; }
      .quiz--results .product-card { margin: 22px 24px 0; }
      .quiz--results .product-card__img { transform: scale(0.95); transform-origin: center; }
      .quiz--results .cta-box { margin: 22px 24px 0; }
      .quiz--results .trustpilot-wrap { margin-top: 40px; }
      .quiz--results .cta-btn { margin-left: 24px; margin-right: 24px; width: calc(100% - 48px); }
    }

    .quiz--results { overflow-y: auto; overflow-x: hidden; height: 100dvh; display: block; position: relative; }
    .quiz--results #screenContainer { display: block; position: relative; width: 100%; }

    .quiz__bar { position: absolute; top: 0; left: 0; width: 100%; height: var(--bar-h); background: var(--blue); z-index: 10; display: flex; align-items: center; justify-content: center; }
    .quiz__bar-back { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); background: none; border: none; color: #fff; font-size: 20px; cursor: pointer; opacity: .7; transition: opacity .2s; padding: 4px 8px; display: none; }
    .quiz__bar-back:hover { opacity: 1; }

    /* ── Screen system ── */
    .screen { position: absolute; inset: 0; display: none; flex-direction: column; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none; -ms-overflow-style: none; }
    .screen::-webkit-scrollbar { display: none; }
    .screen--active { display: flex; animation: fadeIn .35s var(--ease); }
    @keyframes fadeIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }
    .screen__inner { padding: calc(var(--bar-h) + 24px) 24px 40px; flex: 1; display: flex; flex-direction: column; }

    /* Question / final-question screens: lock to the viewport height and let
       only the options list scroll internally, so the Next button is always
       visible without the user needing to scroll to reach it. */
    .screen--qa { overflow-y: hidden; }
    .screen--qa .screen__inner { overflow: hidden; padding-bottom: 20px; }
    .screen--qa .opts { flex: 1 1 auto; overflow-y: auto; min-height: 60px; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin-bottom: 0; }
    .screen--qa .opts::-webkit-scrollbar { display: none; }
    .screen--qa .btn { flex-shrink: 0; }

    /* ── Hero ── */
    .fm-info-screen .hero__img { width: calc(100% - 48px); height: 300px; object-fit: contain; display: block; margin: calc(var(--bar-h) + 16px) auto 0; border-radius: 16px; }
    .screen--active:not(.screen--results) > .hero__img { width: 100%; height: 460px; object-fit: cover; object-position: center 5%; display: block; border-radius: 0; margin: 0; }
    .hero__body { padding: 28px 24px 40px; }
    .screen:not(.screen--results) .hero__title { font-family: var(--font-heading); font-size: 24px; color: var(--navy); line-height: 1.25; margin-bottom: 20px; }
    .hero__step { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
    .hero__step-icon { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; color: #fff; }
    .hero__step-text { font-size: 13px; color: var(--navy); line-height: 1.5; }
    .hero__step-text strong { font-weight: 600; }
    .hero__step-text span { display: block; font-size: 11.5px; color: #777; margin-top: 2px; }

    /* ── Question screens ── */
    .q-label { font-size: 11px; font-weight: 400; color: var(--navy); margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--gray-border); }
    .q-progress { height: 3px; background: var(--gray-border); margin-bottom: 20px; border-radius: 2px; position: relative; }
    .q-progress__fill { position: absolute; top: 0; left: 0; height: 100%; background: var(--blue); border-radius: 2px; transition: width .5s var(--ease); }

    .heading { font-family: var(--font-heading); font-size: 21px; font-weight: 400; line-height: 1.25; color: var(--navy); margin-bottom: 14px; font-style: normal; }
    .heading--lg { font-size: 24px; }
    .subtext { font-size: 12.5px; font-weight: 400; color: var(--navy); line-height: 1.55; margin-bottom: 38px; text-align: center; }
    .subtext--center { text-align: center; color: #555; }

    /* ── Options ── */
    .opts { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: auto; margin-top: 28px; }
    .subtext + .opts { margin-top: 0; }
    .opt { display: flex; align-items: center; gap: 14px; padding: 16px 20px; min-height: 57px; background: var(--white); border: 1.5px solid var(--gray-border); border-radius: 20px; cursor: pointer; transition: border-color .2s, background .2s, transform .1s; user-select: none; }
    .opt:hover { border-color: var(--coral); }
    .opt:active { transform: scale(.98); }
    .opt--sel { border-color: var(--blue); background: #F0F2FF; }
    .opt__r { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--coral); position: relative; transition: border-color .2s; }
    .opt--sel .opt__r { border-color: var(--blue); }
    .opt--sel .opt__r::after { content: ''; position: absolute; top: 50%; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); transform: translate(-50%,-50%); }
    /* Multiselect questions get a square (checkbox-style) indicator instead of a circle */
    .opts[data-multi="true"] .opt__r { border-radius: 6px; }
    .opts[data-multi="true"] .opt--sel .opt__r::after { border-radius: 2px; }
    .opt__t { font-size: 13.5px; font-weight: 400; color: var(--navy); line-height: 1.4; }
    .opt__sub { font-size: 11px; font-weight: 400; color: #888; margin-top: 2px; }
    .opt--blue .opt__r { border-color: var(--blue); opacity: .4; }
    .opt--blue.opt--sel .opt__r { opacity: 1; }
    .opt__img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }

    /* ── Buttons ── */
    .btn { display: block; width: calc(100% - 16px); margin: 24px auto 0; padding: 17px 0; border: none; border-radius: var(--radius-btn); font-family: var(--font-body); font-size: 14px; font-weight: 600; color: var(--white); background: var(--blue); cursor: pointer; text-align: center; transition: opacity .2s, transform .1s; flex-shrink: 0; }
    .btn:active { transform: scale(.98); }
    .btn:disabled { opacity: .4; cursor: not-allowed; }
    .btn--coral { background: var(--pink-btn); }
    .btn--teal { background: var(--teal); width: 200px; margin-left: auto; margin-right: auto; border-radius: 24px; }
    .btn--purple { background: var(--purple-btn); width: 200px; margin-left: auto; margin-right: auto; border-radius: 24px; }
    .btn--sky { background: var(--sky); width: 200px; margin-left: auto; margin-right: auto; border-radius: 24px; }
    .btn--outline { background: transparent; border: 2px solid var(--navy); color: var(--navy); width: 200px; margin-left: auto; margin-right: auto; }
    .btn--wide { width: calc(100% - 16px); }
    .btn--sm { width: 180px; margin-left: auto; margin-right: auto; }
    .helper { font-size: 11px; font-weight: 300; color: #666; margin-top: 14px; line-height: 1.5; text-align: center; }

    /* ── Validation error ── */
    .validation-msg { font-size: 12px; color: var(--red); text-align: center; margin-top: 8px; opacity: 0; transition: opacity .3s; }
    .validation-msg--show { opacity: 1; }

    /* ── Progress dots ── */
    .dots { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 20px; }
    .dots__d { width: 10px; height: 10px; border-radius: 50%; background: var(--dot-gray); transition: background .3s; }
    .dots__d--on { background: var(--navy); }
    .dots__d--done { background: var(--navy); opacity: .45; }

    /* ── Card ── */
    .card { background: var(--white); border-radius: var(--radius-card); padding: 32px 24px 36px; width: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; }

    /* ── DID YOU KNOW ── */
    .dyk-label { font-family: var(--font-heading); font-size: 18px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px; }
    .dyk-wave { width: 160px; height: 28px; margin-bottom: 20px; }
    .dyk-stat { font-size: 52px; font-weight: 700; margin-bottom: 12px; }
    .dyk-body { font-size: 16px; font-weight: 400; line-height: 1.6; margin-bottom: 12px; }
    .dyk-sub { font-size: 14px; font-weight: 400; line-height: 1.5; margin-bottom: 24px; }

    /* ── Slider ── */
    .slider-card .heading { color: #1A3A3A; text-align: center; }
    .slider-track { width: 100%; position: relative; margin-bottom: 10px; }
    .slider-track__bar { height: 8px; border-radius: 4px; background: #D9D9D9; width: 100%; position: relative; }
    .slider-track__fill { position: absolute; top: 0; left: 0; height: 100%; background: var(--teal); border-radius: 4px; }
    .slider-track__thumb { position: absolute; top: 50%; transform: translate(-50%,-50%); width: 32px; height: 32px; background: var(--teal); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: grab; z-index: 5; touch-action: none; user-select: none; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
    .slider-track__thumb:active { cursor: grabbing; }
    .slider-track__thumb span { font-size: 9px; font-weight: 600; color: #fff; }
    .slider-labels { display: flex; justify-content: space-between; width: 100%; margin-top: 8px; margin-bottom: 24px; }
    .slider-feedback-box { width: 100%; background: #F0FAF7; border: 1.5px solid #B2DDD4; border-radius: 14px; padding: 16px 18px; text-align: center; transition: background .3s, border-color .3s; margin-bottom: 4px; min-height: 90px; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
    .slider-feedback-box--active { background: #E6F6F1; border-color: var(--teal); }
    .slider-feedback { font-size: 14px; font-weight: 600; color: #1A3A3A; line-height: 1.45; }
    .slider-feedback-sub { font-size: 12px; color: #3A5A5A; line-height: 1.5; }
    .slider-labels span { font-size: 10px; color: var(--teal); max-width: 100px; line-height: 1.4; }
    .slider-circle { width: 100px; height: 100px; border-radius: 50%; border: 3px solid var(--teal); display: flex; flex-direction: column; align-items: center; justify-content: center; margin-bottom: 20px; }
    .slider-circle__big { font-size: 28px; color: #1A3A3A; }
    .slider-circle__sm { font-size: 11px; color: var(--teal-light); margin-top: 2px; }

    /* ── Testimonial / Quote ── */
    .qm { font-size: 80px; line-height: .8; position: absolute; }
    .qm--o { top: 30px; left: 16px; }
    .qm--c { top: auto; right: 20px; }
    .tq { margin-top: 60px; padding: 0 24px; }
    .tq p { font-size: 20px; color: var(--text-dark); line-height: 1.55; }
    .tq strong { font-weight: 700; }
    .t-div { width: 50px; height: 2px; background: var(--gray-border); margin: 28px auto; }
    .t-msg { text-align: center; padding: 0 20px; }
    .t-msg p { font-size: 18px; color: var(--orange); line-height: 1.55; }

    /* ── Tap to reveal ── */
    .reveal-top { background: var(--beige); border-radius: 16px; padding: 28px 20px; text-align: center; margin-bottom: 20px; cursor: pointer; transition: transform .2s; }
    .reveal-top:hover { transform: scale(1.01); }
    .reveal-top__label { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: #888; margin-bottom: 12px; }
    .reveal-top__heading { font-family: var(--font-heading); font-size: 20px; color: var(--navy); line-height: 1.35; margin-bottom: 0; }
    .reveal-arrow { text-align: center; font-size: 20px; color: #999; margin-bottom: 8px; animation: bounce 1.5s infinite; }
    @keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
    .reveal-label { text-align: center; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: #888; margin-bottom: 12px; }
    .reveal-box { background: var(--purple); border-radius: 16px; padding: 24px 20px; text-align: center; margin-bottom: 20px; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .5s var(--ease), opacity .4s var(--ease), padding .4s var(--ease); padding-top: 0; padding-bottom: 0; }
    .reveal-box--show { max-height: 200px; opacity: 1; padding: 24px 20px; }
    .reveal-box p { font-size: 16px; color: #fff; line-height: 1.55; margin-bottom: 8px; }
    .reveal-box__cite { font-size: 12px; font-style: italic; color: rgba(255,255,255,.65); }

    /* ── Info card (study screens - Figma style) ── */
    .study-screen { position: relative; }
    .study-card { background: var(--white); border-radius: var(--radius-card); overflow: hidden; width: 100%; min-height: 620px; position: relative; display: flex; flex-direction: column; }
    .study-card__top { padding: 32px 30px 70px; text-align: center; position: relative; z-index: 2; flex-shrink: 0; }
    .study-card__title { font-family: var(--font-heading); font-size: 21px; font-weight: 500; color: var(--blue); line-height: 1.25; margin-bottom: 18px; }
    .study-card__body { font-size: 13px; color: var(--blue); line-height: 1.6; }
    .study-card__wave { position: absolute; left: 0; right: 0; bottom: 0; height: 55%; background: var(--blue); border-radius: 50% 50% 0 0 / 20% 20% 0 0; z-index: 0; }
    .study-card__logo { width: 130px; height: 130px; border-radius: 50%; background: #EAE6F2; display: flex; flex-direction: column; align-items: center; justify-content: center; margin: -50px auto 16px; position: relative; z-index: 3; padding: 18px 14px; }
    .study-card__logo img { max-width: 56px; max-height: 22px; width: auto; height: auto; object-fit: contain; }
    .study-card__logo-x { font-size: 9px; font-weight: 700; color: #333; margin: 3px 0; }
    .study-card__logo .fm-logo { display: flex; align-items: center; gap: 4px; }
    .study-card__logo .fm-logo svg { width: 11px; height: 11px; }
    .study-card__logo .fm-logo span { font-size: 10px; font-weight: 600; color: var(--blue); }
    .study-card__bottom { position: relative; z-index: 3; padding: 0 30px 32px; flex: 1; display: flex; flex-direction: column; align-items: center; }
    .study-research { background: var(--white); border-radius: 16px; padding: 16px 18px; width: 100%; margin-bottom: 8px; }
    .study-research__title { font-size: 12px; font-weight: 500; color: #534AB7; margin-bottom: 10px; line-height: 1.3; }
    .study-research__body { font-size: 12px; color: #3C3489; line-height: 1.55; }
    .study-stat { background: var(--white); border-radius: 12px; padding: 10px 18px; width: 100%; text-align: center; margin-bottom: 20px; }
    .study-stat__big { font-size: 18px; font-weight: 400; color: var(--blue-dark); }
    .study-stat__small { font-size: 10px; color: var(--blue-dark); }
    .study-btn { background: #A192BD; color: #fff; border: none; border-radius: 25px; padding: 13px 0; width: 180px; font-family: var(--font-body); font-size: 16px; font-weight: 400; cursor: pointer; margin-top: auto; }
    /* ── FM Info Card (Figma-exact style) ── */
    .fm-info-screen { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow-y: auto; overflow-x: hidden; background: #F6F6F8; display: flex; justify-content: center; align-items: flex-start; padding: calc(var(--bar-h) + 12px) 0 24px; }
    .fm-card-wrap { position: relative; width: calc(100% - 48px); max-width: 512px; background: #fff; border-radius: 34px; overflow: hidden; box-shadow: 0 12px 44px rgba(20,30,80,0.10); margin: 0 auto; }
    .fm-card-top { padding: 24px 22px 86px; text-align: center; }
    .fm-card-dots { display: flex; gap: 9px; justify-content: center; }
    .fm-card-dots i { width: 8px; height: 8px; border-radius: 50%; background: #CBCBD4; display: block; }
    .fm-card-dots i.on { background: #181822; }
    .fm-card-h { color: #143CFF; font-size: 22px; font-weight: 600; line-height: 1.22; margin-top: 44px; letter-spacing: -0.2px; }
    .fm-card-sub { color: #143CFF; font-size: 15.5px; font-weight: 500; line-height: 1.42; margin-top: 18px; padding: 0 4px; }
    .fm-card-bottom { position: relative; background: #2046FF; padding: 98px 22px 30px; }
    .fm-card-wave { position: absolute; left: 0; bottom: 100%; width: 100%; height: 64px; display: block; }
    .fm-card-wave path { fill: #2046FF; }
    .fm-card-badge { position: absolute; top: -82px; left: 50%; transform: translateX(-50%); width: 160px; height: 160px; border-radius: 50%; background: #E4E2F9; display: flex; align-items: center; justify-content: center; z-index: 6; }
    .fm-card-badge img { width: 128px; height: 128px; object-fit: contain; display: block; }
    .fm-card-info { background: #fff; border-radius: 18px; padding: 20px 20px 22px; }
    .fm-card-info-title { color: #534AB7; font-size: 16px; font-weight: 600; margin-bottom: 11px; }
    .fm-card-info-body { color: #3C3489; font-size: 15px; font-weight: 500; line-height: 1.5; white-space: pre-line; }
    .fm-card-stat { background: #fff; border-radius: 18px; padding: 18px 20px; margin-top: 12px; text-align: center; }
    .fm-card-stat-big { color: #142B9F; font-size: 27px; font-weight: 600; line-height: 1.05; }
    .fm-card-stat-sub { color: #142B9F; font-size: 13px; font-weight: 500; margin-top: 3px; }
    .fm-card-stat-line { color: #142B9F; font-size: 16px; font-weight: 500; line-height: 1.42; }
    .fm-card-continue { display: block; width: 100%; margin-top: 28px; padding: 17px 0; border: none; border-radius: 32px; background: #A192BD; color: #fff; font-family: var(--font-body); font-size: 17px; font-weight: 500; cursor: pointer; transition: filter .15s; }
    .fm-card-continue:hover { filter: brightness(1.06); }


    /* ── Chart ── */
    .chart-box { background: var(--navy-mid); border-radius: 16px; padding: 16px; margin-bottom: 20px; position: relative; overflow: hidden; }
    .chart-box img { width: 100%; border-radius: 8px; }


    /* ── Email capture ── */
    .email-input { width: 100%; padding: 14px 18px; border: 1.5px solid var(--gray-border); border-radius: var(--radius-opt); font-family: var(--font-body); font-size: 14px; outline: none; margin-bottom: 4px; transition: border-color .2s; }
    .email-input:focus { border-color: var(--blue); }
    .email-input--error { border-color: var(--red); }

    /* ── Results ── */
    .screen--results { display: none; }
    .rs-results { display: block; width: 100%; background: var(--off-white); }
    .results-hero { position: relative; height: 317px; overflow: hidden; }
    .results-hero__img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; }
    .results-hero__overlay { position: absolute; bottom: 0; left: 0; right: 0; height: 110px; background: linear-gradient(0deg, rgba(246,246,248,1) 30%, rgba(246,246,248,0) 100%); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 14px; }
    .results-hero__heading { font-family: var(--font-heading); font-size: 20px; font-weight: 500; color: var(--navy); line-height: 1.15; text-align: center; max-width: 220px; }
    .results-body { padding: 16px 30px 40px; }
    .results-body__suggest { font-size: 18px; font-weight: 400; color: var(--navy); text-align: center; line-height: 1.35; margin-bottom: 4px; }
    .results-body__title { font-size: 20px; font-weight: 500; color: var(--blue-dark); text-align: center; line-height: 1.35; margin-bottom: 14px; }
    .results-body__divider { width: 260px; height: 1px; background: #D5D5DA; margin: 12px auto 20px; }
    .results-body p { font-size: 15px; color: var(--navy); line-height: 1.55; margin-bottom: 16px; }
    .results-body__sub-coral { font-family: var(--font-body); font-size: 15px; font-weight: 600; color: var(--coral); margin: 4px 0 10px; }
    .results-body__cta-heading { font-family: var(--font-heading); font-size: 22px; font-weight: 500; color: var(--navy); margin: 24px 0 14px; text-align: center; }
    .results-product-card { background: var(--white); border-radius: 20px; padding: 0; margin: 14px 0 18px; text-align: center; overflow: hidden; height: 141px; display: flex; align-items: center; justify-content: center; }
    .results-product-card img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
    .results-cta { text-align: center; margin: 18px 0; }
    .results-cta p { font-size: 15px; color: var(--navy); margin-bottom: 0; line-height: 1.5; }
    .results-cta strong { font-weight: 700; }
    .results-features { display: flex; flex-direction: column; gap: 8px; margin: 18px 0; padding: 0; align-items: flex-start; }
    .results-features__item { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--navy); }
    .results-features__icon { width: 20px; height: 20px; border-radius: 50%; background: var(--teal); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
    .results-features__icon svg { width: 11px; height: 11px; stroke: #fff; fill: none; stroke-width: 3; }
    .results-btn-cta { display: block; width: 260px; margin: 18px auto; padding: 14px 0; background: var(--coral); color: #fff; border: none; border-radius: 25px; font-family: var(--font-body); font-size: 15px; font-weight: 500; text-align: center; text-decoration: none; cursor: pointer; transition: background .2s, transform .1s; }
    .results-btn-cta:hover { background: #ff8e7a; }
    .results-btn-cta:active { transform: scale(.98); }
    .results-share-text { display: block; background: none; border: none; color: var(--red); font-family: var(--font-body); font-size: 13px; font-weight: 700; text-align: center; margin: 14px auto; cursor: pointer; padding: 8px 16px; text-decoration: underline; }
    .results-share-text:hover { color: #d04855; }
    .results-img { width: 100%; border-radius: 12px; margin: 16px 0; }
    .results-quote { font-family: var(--font-body); font-style: italic; font-size: 14px; color: var(--navy); text-align: center; padding: 16px 20px 8px; line-height: 1.5; margin: 12px 0 0; }
    .trustpilot { display: flex; align-items: center; gap: 8px; justify-content: center; margin: 24px 0 8px; }
    .trustpilot img { height: 80px; width: auto; }

    /* ── Share modal ── */
    .share-modal { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 200; display: none; align-items: flex-end; justify-content: center; padding: 20px; }
    .share-modal--show { display: flex; animation: fadeIn .2s; }
    .share-modal__sheet { background: #fff; border-radius: 20px; padding: 24px; width: 100%; max-width: 360px; }
    .share-modal__title { font-family: var(--font-heading); font-size: 18px; color: var(--navy); margin-bottom: 16px; text-align: center; }
    .share-modal__options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
    .share-modal__option { display: flex; flex-direction: column; align-items: center; gap: 6px; background: none; border: none; cursor: pointer; padding: 8px 4px; border-radius: 12px; transition: background .15s; }
    .share-modal__option:hover { background: var(--off-white); }
    .share-modal__option-icon { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
    .share-modal__option-icon svg { width: 24px; height: 24px; }
    .share-modal__option span { font-size: 11px; color: var(--navy); }
    .share-modal__cancel { width: 100%; padding: 14px; background: var(--off-white); color: var(--navy); border: none; border-radius: 12px; font-family: var(--font-body); font-size: 14px; font-weight: 500; cursor: pointer; }

    /* ── Share button ── */
    .share-section { text-align: center; margin: 20px 0; }
    .share-btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; background: var(--navy); color: #fff; border: none; border-radius: var(--radius-btn); font-family: var(--font-body); font-size: 13px; font-weight: 600; cursor: pointer; transition: transform .1s, background .2s; }
    .share-btn:hover { background: var(--navy-mid); }
    .share-btn:active { transform: scale(.97); }
    .share-btn svg { width: 18px; height: 18px; }
    .share-toast { position: fixed; bottom: 60px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--navy); color: #fff; padding: 12px 24px; border-radius: 12px; font-size: 13px; font-weight: 500; opacity: 0; transition: opacity .3s, transform .3s; pointer-events: none; z-index: 100; }
    .share-toast--show { opacity: 1; transform: translateX(-50%) translateY(0); }

  /* ── Loading screen ── */
    .loading-screen { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100%; padding: 40px 30px; text-align: center; background: var(--off-white); }
    .loading-screen__title { font-family: var(--font-heading); font-size: 22px; font-weight: 500; color: var(--navy); margin-bottom: 8px; }
    .loading-screen__sub { font-size: 14px; color: #666; line-height: 1.6; margin-bottom: 40px; max-width: 280px; }
    .loading-spinner { width: 52px; height: 52px; border: 4px solid var(--gray-border); border-top-color: var(--blue); border-radius: 50%; animation: spin .9s linear infinite; margin-bottom: 32px; }
    @keyframes spin { to { transform: rotate(360deg); } }
    .loading-bar { width: 200px; height: 4px; background: var(--gray-border); border-radius: 2px; overflow: hidden; }
    .loading-bar__fill { height: 100%; background: var(--blue); border-radius: 2px; width: 0; transition: width 3s linear; }

    /* ── Responsive ── */
    @media (max-width: 768px) {
      body { align-items: stretch; justify-content: stretch; }
      .quiz { width: 100%; height: 100%; max-width: 100%; border-radius: 0; box-shadow: none; }
      .cta-box__img { height: 276px; }
    }
    @media (max-width: 393px) { .quiz { height: 100dvh; } }
  
    /* ─── Result Screen Styles ─── */
:root {
      --blue: #143CFF;
      --blue-dark: #142B9F;
      --navy: #181F2E;
      --off-white: #F6F6F8;
      --font: 'Montserrat', sans-serif;
      --font-serif: 'Montserrat', sans-serif;
    }
    *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
    html, body { min-height: 100%; font-family: var(--font); background: linear-gradient(150deg, #EEF0FF 0%, #E4E2F9 100%); -webkit-font-smoothing: antialiased; }
    body { display: flex; justify-content: center; align-items: center; }
    /* PHONE: full-bleed, top-aligned so the quiz fills the screen */
    @media (max-width: 760px) { body { align-items: flex-start; } }
    .wrapper { width: 393px; min-height: 100vh; position: relative; }
    .page { display: none; flex-direction: column; width: 393px; min-height: 100vh; background: var(--off-white); }
    .page.active { display: flex; }
    .topbar { height: 52px; background: var(--blue); position: sticky; top: 0; z-index: 10; flex-shrink: 0; }
    .hero { position: relative; overflow: visible; height: auto; flex-shrink: 0; background: var(--off-white); }
    .rs-results .hero__img { width: 100%; height: 320px; object-fit: cover; object-position: center 52%; display: block; }
    .hero__overlay { display: none; }
    .hero__badge { position: relative; padding: 30px 24px 4px; text-align: center; }
    .hero__eyebrow { font-size: 10px; font-weight: 600; letter-spacing: 1.2px; color: #666; margin-bottom: 6px; text-transform: uppercase; }
    .hero__suggest { font-family: var(--font-serif); font-size: 19px; color: var(--navy); line-height: 1.3; margin-bottom: 5px; }
    .hero__title { font-size: 22px; font-weight: 700; line-height: 1.2; }
    .hero__divider { height: 1px; background: linear-gradient(to right, transparent, #ccc, transparent); margin: 14px auto 0; width: 180px; }
    .section { padding: 22px 24px 0; }
    .accent-label { font-size: 15px; font-weight: 700; margin-bottom: 9px; }
    .body-copy { font-size: 14px; font-weight: 400; color: #444; line-height: 1.75; }
    .product-card { margin: 22px 20px 0; background: white; border-radius: 20px; overflow: hidden; box-shadow: 0 2px 16px rgba(0,0,0,0.08); }
    .product-card__img { width: 100%; height: 250px; object-fit: contain; object-position: center 40%; display: block;}
    .product-card__body { padding: 28px 20px 32px; }
    .product-card__title { font-size: 15px; font-weight: 700; margin-bottom: 10px; }
    .product-card__text { font-size: 13.5px; color: #555; line-height: 1.7; }
    .cta-box { margin: 22px 20px 0; background: white; border-radius: 20px; overflow: hidden; box-shadow: 0 2px 16px rgba(0,0,0,0.08); }
    .cta-box__img { width: 100%; height: 230px; object-fit: cover; object-position: center; display: block; }
    .cta-box__body { padding: 18px 20px 24px; }
    .cta-box__heading { font-family: var(--font-serif); font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 18px; line-height: 1.25; text-align: center; }
    .cta-box__sub { font-size: 13.5px; color: #555; line-height: 1.6; margin-bottom: 14px; text-align: center; }
    .cta-box__sub strong { color: var(--navy); font-weight: 700; }
    .cta-box .features { margin: 0 0 4px; }
    .cta-box .cta-btn { margin: 16px 0 0; width: 100%; border-radius: 40px; }
    .features { margin: 18px 24px 0; display: flex; flex-direction: column; gap: 12px; }
    .feature-row { display: flex; align-items: center; gap: 12px; }
    .feature-row__icon { width: 22px; height: 22px; border-radius: 50%; background: #19896E; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: white; font-size: 12px; font-weight: 700; }
    .feature-row__text { font-size: 14px; color: var(--navy); }
    .cta-btn { display: block; margin: 20px 24px 0; padding: 17px 0; background: var(--blue); border: none; border-radius: 40px; color: white; font-family: var(--font); font-size: 16px; font-weight: 700; text-align: center; cursor: pointer; text-decoration: none; transition: opacity 0.2s; }
    .cta-btn:hover { opacity: 0.88; }
    .share-btn { display: block; margin: 14px auto 0; background: none; border: none; font-family: var(--font); font-size: 13px; font-weight: 700; cursor: pointer; letter-spacing: 0.3px; }
    .share-modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 200; align-items: flex-end; justify-content: center; }
    .share-modal-overlay.open { display: flex; }
    .share-modal { width: 393px; background: white; border-radius: 24px 24px 0 0; padding: 24px 24px 40px; animation: slideUp 0.3s ease; }
    @keyframes slideUp { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
    .share-modal__title { font-size: 16px; font-weight: 700; color: var(--navy); text-align: center; margin-bottom: 20px; }
    .share-modal__handle { width: 40px; height: 4px; background: #ddd; border-radius: 2px; margin: 0 auto 18px; }
    .share-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
    .share-item { display: flex; flex-direction: column; align-items: center; gap: 7px; cursor: pointer; text-decoration: none; }
    .share-item__icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 24px; color: white; font-weight: 700; }
    .share-item__label { font-size: 11px; color: #555; font-weight: 500; font-family: var(--font); }
    .share-modal__close { display: block; margin: 22px auto 0; padding: 12px 32px; background: #F6F6F8; border: none; border-radius: 30px; font-family: var(--font); font-size: 14px; font-weight: 600; color: #666; cursor: pointer; }
    .trustpilot-wrap { margin: 66px auto 0; width: 172px; display: flex; justify-content: center; background: transparent; }
    .trustpilot-img { width: 172px; display: block; }
    .testimonial { margin: 14px 32px 40px; text-align: center; font-size: 13px; font-style: italic; color: #999; line-height: 1.6; }
    .demo-nav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); background: #181F2E; border-radius: 16px 16px 0 0; padding: 10px 12px 14px; display: flex; gap: 7px; z-index: 100; box-shadow: 0 -4px 20px rgba(0,0,0,0.3); }
    .nav-btn { background: rgba(255,255,255,0.12); border: none; border-radius: 8px; color: rgba(255,255,255,0.7); font-family: var(--font); font-size: 10px; font-weight: 600; padding: 6px 8px; cursor: pointer; transition: background 0.15s, color 0.15s; }
    .nav-btn.active, .nav-btn:hover { background: #143CFF; color: white; }
    @media (max-width: 393px) { .wrapper { width: 100%; } .page { width: 100%; } .share-modal { width: 100%; } }
  /* ============================================================
     LANDING — full-viewport first screen (desktop + mobile)
     ============================================================ */
  #landingScreen{ position:fixed; inset:0; z-index:9999; background:#fff; overflow-y:auto; overflow-x:hidden; }
  .ql{ width:100%; min-height:100vh; background:#fff; display:flex; flex-direction:column; overflow:hidden; }
  .ql-hero{ flex:1; display:grid; grid-template-columns:1.02fr 1fr; min-height:0; }
  .ql-media{ position:relative; background:linear-gradient(150deg,#EEF0FF 0%,#E4E2F9 100%); display:flex; align-items:center; justify-content:center; overflow:hidden; }
  .ql-media__blob{ position:absolute; width:62%; aspect-ratio:1; border-radius:50%; background:radial-gradient(circle at 38% 35%, rgba(20,60,255,.22), rgba(20,60,255,0) 62%); filter:blur(6px); top:14%; left:6%; }
  .ql-media__blob2{ position:absolute; width:40%; aspect-ratio:1; border-radius:50%; background:radial-gradient(circle at 50% 50%, rgba(255,160,142,.40), rgba(255,160,142,0) 64%); bottom:6%; right:4%; }
  .ql-media__img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:62% 52%; border-radius:30px; box-shadow:0 30px 70px rgba(20,30,80,.30); z-index:2; display:block; }
  .ql-stage{ position:absolute; inset:26px; width:auto; max-width:none; z-index:2; }
  .ql-chip{ position:absolute; z-index:3; display:flex; align-items:center; gap:9px; background:#fff; border-radius:16px; padding:12px 16px; box-shadow:0 14px 34px rgba(20,30,80,.18); font-size:12.5px; font-weight:600; color:var(--navy); line-height:1.3; max-width:215px; }
  .ql-chip__dot{ width:9px; height:9px; border-radius:50%; background:var(--coral); flex-shrink:0; }
  .ql-chip__ic{ width:22px; height:22px; border-radius:50%; background:#19896E; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
  .ql-chip__ic svg{ width:12px; height:12px; }
  .ql-chip--stat{ flex-direction:column; align-items:flex-start; gap:3px; padding:14px 18px; }
  .ql-chip--stat b{ font-size:26px; color:var(--blue); line-height:1; font-weight:700; }
  .ql-chip--stat span{ font-size:11.5px; font-weight:500; color:var(--navy-soft); max-width:150px; }
  .ql-chip--time{ top:30px; left:28px; border-radius:100px; }
  .ql-chip--s72{ top:5%; right:5%; }
  .ql-chip--s87{ bottom:6%; left:5%; padding:16px 22px; }
  .ql-chip--s87 b{ font-size:36px; }
  .ql-chip--s87 span{ font-size:12.5px; max-width:140px; }
  .ql-chip--note{ bottom:6%; right:5%; }
  .ql-content{ display:flex; flex-direction:column; justify-content:center; padding:40px clamp(36px, 4.5vw, 72px); }
  .ql-eyebrow{ font-size:12px; font-weight:700; letter-spacing:1.6px; text-transform:uppercase; color:var(--coral); margin-bottom:20px; }
  .ql-title{ font-family:var(--serif); font-weight:500; font-size:clamp(36px, 3.6vw, 50px); line-height:1.06; letter-spacing:-.5px; color:var(--navy); margin-bottom:20px; text-wrap:balance; }
  .ql-title em{ font-style:italic; color:var(--blue); }
  .ql-sub{ font-size:17px; font-weight:400; line-height:1.6; color:var(--navy-soft); max-width:30em; margin-bottom:30px; text-wrap:pretty; }
  .ql-cta{ display:inline-flex; align-items:center; justify-content:center; gap:10px; align-self:flex-start; padding:18px 40px; border:none; border-radius:100px; background:var(--blue); color:#fff; font-family:var(--sans); font-size:16px; font-weight:600; cursor:pointer; transition:transform .12s, box-shadow .2s, background .2s; box-shadow:0 14px 30px rgba(20,60,255,.28); }
  .ql-cta:hover{ background:var(--blue-dark); box-shadow:0 16px 36px rgba(20,60,255,.34); }
  .ql-cta:active{ transform:scale(.985); }
  .ql-cta svg{ width:17px; height:17px; }
  .ql-trust{ margin-top:34px; padding-top:24px; border-top:1px solid var(--line); }
  .ql-trust__label{ font-size:11px; font-weight:600; letter-spacing:1.2px; text-transform:uppercase; color:#9A9AA8; margin-bottom:16px; }
  .ql-trust__row{ display:flex; align-items:center; gap:30px; flex-wrap:wrap; }
  .ql-trust__row img{ height:42px; width:auto; object-fit:contain; }
  .ql-trust__row img.is-ucla{ height:34px; }
  .ql-trust__row img.is-jhopkins{ height:calc(42px * var(--jh-scale)); }
  /* Desktop: never clip the landing — compress on short viewports, allow scroll as a last resort */
  @media (min-width:761px){
    #landingScreen{ overflow-y:auto; }
    .ql{ min-height:100vh; }
  }
  @media (min-width:761px) and (max-height:760px){
    .ql-title{ font-size:clamp(30px, 3vw, 40px); margin-bottom:14px; }
    .ql-sub{ font-size:15px; margin-bottom:20px; }
    .ql-content{ padding:32px clamp(32px, 4vw, 60px); }
    .ql-cta{ padding:15px 34px; box-shadow:0 10px 24px rgba(20,60,255,.26); }
    .ql-trust{ margin-top:24px; padding-top:18px; }
    .ql-trust__row img{ height:34px; }
  }
  @media (max-width:760px){
    #landingScreen{ -webkit-overflow-scrolling:touch; }
    .ql{ min-height:100%; }
    .ql-hero{ display:flex; flex-direction:column; }
    .ql-media{ min-height:0; height:340px; padding:0; flex-shrink:0; border-radius:0 0 30px 30px; }
    .ql-stage{ position:absolute; inset:0; width:auto; max-width:none; }
    .ql-media__img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:62% 52%; max-width:none; border-radius:0 0 30px 30px; box-shadow:none; }
    .ql-chip--time{ top:16px; left:16px; padding:8px 14px; font-size:11.5px; border-radius:100px; }
    /* declutter: hide the floating stat chips on phone — proof lives in the trust row */
    .ql-chip--s72, .ql-chip--s87, .ql-chip--note{ display:none !important; }
    .ql-content{ padding:30px 24px 40px; justify-content:flex-start; }
    .ql-eyebrow{ margin-bottom:12px; font-size:11px; }
    .ql-title{ font-size:32px; line-height:1.1; margin-bottom:14px; }
    .ql-sub{ font-size:15px; line-height:1.55; margin-bottom:24px; }
    .ql-cta{ align-self:stretch; width:100%; padding:18px 0; font-size:16px; touch-action:manipulation; }
    .ql-trust{ margin-top:26px; padding-top:22px; }
    .ql-trust__label{ margin-bottom:14px; }
    .ql-trust__row{ gap:16px; justify-content:space-between; }
    .ql-trust__row img{ height:32px; }
    .ql-trust__row img.is-ucla{ height:26px; }
    .ql-trust__row img.is-jhopkins{ height:calc(32px * var(--jh-scale)); }
  }

  /* ── Scientific Citations ── */
/* ── Scientific Citations (Simple, Light, Left-Aligned) ── */
    .references-section { 
        margin: 16px 0 0; 
        padding-top: 16px; 
        border-top: 1px solid var(--gray-border); 
    }
    
    .citation-text { 
        font-family: var(--font-body);
        font-size: 10px; 
        font-style: italic; 
        color: #999; /* Light text color */
        text-align: left; /* No center alignment */
        margin-bottom: 12px; 
    }
    
    .citation-link { 
        color: #999; 
        text-decoration: none; 
        transition: color 0.2s ease; 
    }
    
    .citation-link:hover { 
        color: var(--navy); 
    }