:root { --pt-accent: #1e3a8a; --pt-accent-2: #2563eb; }
.page-main {
      padding-block: clamp(14px, 2vw, 24px) clamp(32px, 4vw, 48px);
      position: relative;
      min-height: calc(100vh - 78px);
      display: flex;
      flex-direction: column;
    }

    /* ---- Quiz intro ---- */
    .quiz-hero {
      display: flex;
      justify-content: center;
      align-items: center;
      padding-block: 10px 0;
      flex: 1;
    }

    .quiz-intro-card {
      position: relative;
      overflow: hidden;
      background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94)),
        radial-gradient(460px 260px at 100% 0%, rgba(30, 58, 138, 0.12), transparent 70%);
      border: 1px solid rgba(148, 163, 184, 0.34);
      border-radius: 22px;
      box-shadow: 0 22px 55px rgba(15, 23, 42, 0.12);
      padding: clamp(20px, 3vw, 36px);
      max-width: 780px;
      width: 100%;
      text-align: center;
    }

    .quiz-intro-card::before {
      content: "";
      position: absolute;
      inset: 0 0 auto;
      height: 5px;
      background: linear-gradient(90deg, var(--brand-blue), #0f766e, var(--brand-gold));
    }

    .quiz-kicker {
      display: inline-block;
      font-size: 0.72rem;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--pt-accent);
      background: rgba(239, 246, 255, 0.9);
      border: 1px solid rgba(30, 58, 138, 0.22);
      border-radius: 999px;
      padding: 5px 12px;
      margin-bottom: 14px;
    }

    .quiz-intro-card h1 {
      font-family: "Sora", sans-serif;
      font-size: clamp(1.55rem, 1.18rem + 1.8vw, 2.35rem);
      color: #0f172a;
      margin-bottom: 12px;
    }

    .quiz-intro-card > p {
      color: #475569;
      font-size: clamp(0.94rem, 0.9rem + 0.2vw, 1.02rem);
      line-height: 1.56;
      max-width: 62ch;
      margin: 0 auto 16px;
    }

    .quiz-promise-list {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
      margin: 0 auto 18px;
      max-width: 620px;
      text-align: left;
    }

    .quiz-promise-list span {
      display: flex;
      align-items: flex-start;
      gap: 8px;
      border: 1px solid rgba(30, 58, 138, 0.15);
      border-radius: 12px;
      background: rgba(239, 246, 255, 0.56);
      color: #334155;
      font-size: 0.82rem;
      font-weight: 700;
      line-height: 1.42;
      padding: 10px 11px;
    }

    .quiz-promise-list i {
      color: #0f766e;
      margin-top: 2px;
    }

    /* ---- Start button ---- */
    .btn-start {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      width: 100%;
      padding: 16px 28px;
      border-radius: 999px;
      font-size: 1rem;
      font-weight: 900;
      color: #0f172a;
      background: linear-gradient(125deg, #fef3c7, #fde68a);
      border: 1px solid rgba(161,98,7,0.35);
      box-shadow: 0 6px 20px rgba(161,98,7,0.22);
      cursor: pointer;
      font-family: "Manrope", sans-serif;
      letter-spacing: -0.01em;
      transition: transform 180ms, box-shadow 180ms;
    }
    .btn-start:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(161,98,7,0.32); }

    /* ---- Result preview teaser (intro) ---- */
    .quiz-preview-strip {
      display: flex;
      align-items: center;
      gap: 16px;
      border-radius: 14px;
      background: linear-gradient(135deg, #0f172a 0%, #1a1040 55%, #0c1f3a 100%);
      border: 1px solid rgba(99,102,241,0.22);
      padding: 14px 18px;
      margin-bottom: 14px;
      position: relative;
      overflow: hidden;
      text-align: left;
    }
    .quiz-preview-strip::after {
      content: '';
      position: absolute;
      top: -30px; right: -30px;
      width: 100px; height: 100px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(99,102,241,0.28), transparent 70%);
      pointer-events: none;
    }
    .qps-ring { flex-shrink: 0; width: 54px; height: 54px; position: relative; }
    .qps-ring svg { width: 54px; height: 54px; transform: rotate(-90deg); }
    .qps-ring-track { fill: none; stroke: rgba(255,255,255,0.08); stroke-width: 5; }
    .qps-ring-fill { fill: none; stroke: #22c55e; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 144.5; stroke-dashoffset: 32; }
    .qps-ring-label {
      position: absolute; inset: 0;
      display: flex; align-items: center; justify-content: center;
      font-family: "IBM Plex Mono", monospace;
      font-size: 0.78rem; font-weight: 700; color: #fff;
      filter: blur(3.5px); user-select: none;
    }
    .qps-body { flex: 1; min-width: 0; }
    .qps-pill {
      display: inline-flex; align-items: center; gap: 5px;
      font-size: 0.62rem; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase;
      color: #22c55e; background: rgba(34,197,94,0.12); border: 1px solid rgba(34,197,94,0.24);
      border-radius: 99px; padding: 3px 9px; margin-bottom: 8px;
    }
    .qps-bars { display: flex; flex-direction: column; gap: 5px; }
    .qps-bar-row { display: flex; align-items: center; gap: 8px; }
    .qps-bar-label { font-size: 0.6rem; font-weight: 700; color: #64748b; min-width: 60px; text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; }
    .qps-bar-track { flex: 1; height: 4px; background: rgba(255,255,255,0.06); border-radius: 99px; overflow: hidden; filter: blur(1.5px); }
    .qps-bar-fill { height: 100%; border-radius: 99px; }
    .qps-lock-note { font-size: 0.62rem; font-weight: 800; color: #fde68a; display: flex; flex-direction: column; align-items: center; gap: 4px; flex-shrink: 0; white-space: nowrap; }
    .qps-lock-note i { font-size: 0.9rem; }

    /* ---- Quiz area ---- */
    .quiz-area {
      padding-block: 16px;
    }

    .quiz-area-inner {
      max-width: 760px;
      margin-inline: auto;
    }

    .quiz-progress-wrap {
      border: 1px solid rgba(148, 163, 184, 0.32);
      border-radius: 16px;
      background: rgba(255, 255, 255, 0.86);
      box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
      padding: 14px 16px;
      margin-bottom: 22px;
    }

    .quiz-progress-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 8px;
    }

    .quiz-progress-label {
      font-size: 0.82rem;
      font-weight: 700;
      color: #334155;
    }

    .quiz-progress-pct {
      font-size: 0.78rem;
      font-weight: 700;
      color: #64748b;
    }

    .quiz-progress-track {
      height: 6px;
      background: rgba(148, 163, 184, 0.25);
      border-radius: 99px;
      overflow: hidden;
    }

    .quiz-progress-fill {
      height: 100%;
      background: linear-gradient(90deg, var(--pt-accent), #2563eb);
      border-radius: 99px;
      width: 0%;
      transition: width 350ms ease;
    }

    /* ---- Question card ---- */
    .q-card {
      background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 250, 252, 0.96));
      border: 1px solid rgba(148, 163, 184, 0.34);
      border-radius: 18px;
      box-shadow: 0 18px 46px rgba(15, 23, 42, 0.1);
      padding: clamp(24px, 4vw, 34px);
      animation: qSlideIn 280ms ease both;
    }

    @keyframes qSlideIn {
      from { opacity: 0; transform: translateY(14px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    .q-tag {
      display: inline-block;
      font-size: 0.7rem;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.07em;
      color: var(--pt-accent);
      background: rgba(239,246,255,0.9);
      border: 1px solid rgba(30,58,138,0.22);
      border-radius: 99px;
      padding: 3px 10px;
      margin-bottom: 14px;
    }

    .q-text {
      font-size: clamp(0.95rem, 0.88rem + 0.4vw, 1.08rem);
      font-weight: 700;
      color: #0f172a;
      line-height: 1.55;
      margin-bottom: 18px;
    }

    .q-options-list {
      display: grid;
      gap: 10px;
    }

    .q-opt {
      display: flex;
      align-items: center;
      gap: 12px;
      border: 1.5px solid rgba(148, 163, 184, 0.35);
      border-radius: 12px;
      background: rgba(248, 250, 252, 0.8);
      padding: 12px 14px;
      cursor: pointer;
      font-size: 0.9rem;
      font-weight: 600;
      color: #1e293b;
      text-align: left;
      width: 100%;
      transition: transform 150ms ease, border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
      font-family: "Manrope", sans-serif;
    }

    .q-opt:hover:not(:disabled) {
      transform: translateY(-1px);
      border-color: rgba(30, 58, 138, 0.45);
      background: rgba(239, 246, 255, 0.6);
      box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    }

    .q-opt:disabled {
      cursor: default;
    }

    .q-opt:disabled:not(.selected) {
      opacity: 0.68;
    }

    .q-opt-idk {
      border-style: dashed;
      color: #64748b;
    }

    .q-opt.selected {
      border-color: var(--pt-accent);
      background: rgba(239, 246, 255, 0.85);
      color: var(--pt-accent);
    }

    .q-opt-letter {
      flex-shrink: 0;
      width: 26px;
      height: 26px;
      border-radius: 50%;
      background: rgba(148, 163, 184, 0.2);
      font-size: 0.72rem;
      font-weight: 800;
      display: grid;
      place-items: center;
      color: #64748b;
    }

    .q-opt.selected .q-opt-letter { background: var(--pt-accent); color: #fff; }
    .q-opt.q-opt-idk .q-opt-letter { background: rgba(148, 163, 184, 0.15); }

    /* ---- Result area ---- */
    .result-area {
      padding-block: 16px;
    }

    .result-inner {
      max-width: 860px;
      margin-inline: auto;
      border: 1px solid rgba(148, 163, 184, 0.32);
      border-radius: 24px;
      background: linear-gradient(145deg, rgba(255,255,255,0.99), rgba(248,250,252,0.95));
      box-shadow: 0 24px 60px rgba(15,23,42,0.13);
      overflow: hidden;
    }

    /* Status-tinted top bar */
    .result-header-band {
      padding: clamp(24px, 4vw, 40px) clamp(22px, 4vw, 38px) clamp(20px, 3vw, 30px);
      position: relative;
      overflow: hidden;
    }

    .result-header-band::before {
      content: "";
      position: absolute;
      inset: 0 0 auto;
      height: 4px;
      background: linear-gradient(90deg, var(--band-a, var(--pt-accent)), var(--band-b, #0f766e), var(--band-c, #a16207));
    }

    .result-header-band.band-ready    { background: linear-gradient(160deg, rgba(220,252,231,0.55) 0%, rgba(255,255,255,0.0) 60%); --band-a:#16a34a; --band-b:#0f766e; --band-c:#15803d; }
    .result-header-band.band-conditional { background: linear-gradient(160deg, rgba(254,243,199,0.6) 0%, rgba(255,255,255,0.0) 60%); --band-a:#d97706; --band-b:#b45309; --band-c:#92400e; }
    .result-header-band.band-notready { background: linear-gradient(160deg, rgba(254,226,226,0.5) 0%, rgba(255,255,255,0.0) 60%); --band-a:#dc2626; --band-b:#b91c1c; --band-c:#991b1b; }

    .result-hero-layout {
      display: grid;
      grid-template-columns: auto 1fr;
      gap: clamp(20px, 3vw, 36px);
      align-items: center;
    }

    /* SVG score ring */
    .score-ring-wrap {
      position: relative;
      width: 130px;
      height: 130px;
      flex-shrink: 0;
    }

    .score-ring {
      width: 130px;
      height: 130px;
      transform: rotate(-90deg);
    }

    .score-ring-track {
      fill: none;
      stroke: rgba(148,163,184,0.18);
      stroke-width: 9;
    }

    .score-ring-fill {
      fill: none;
      stroke: var(--ring-color, var(--pt-accent));
      stroke-width: 9;
      stroke-linecap: round;
      stroke-dasharray: 345.4;
      stroke-dashoffset: 345.4;
      transition: stroke-dashoffset 900ms cubic-bezier(0.22,1,0.36,1);
    }

    .score-ring-center {
      position: absolute;
      inset: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 1px;
    }

    .score-ring-center strong {
      font-family: "IBM Plex Mono", monospace;
      font-size: 2.3rem;
      font-weight: 700;
      line-height: 1;
      color: #0f172a;
    }

    .score-ring-center span {
      font-size: 0.72rem;
      font-weight: 700;
      color: #64748b;
      letter-spacing: 0.04em;
      text-transform: uppercase;
    }

    .result-hero-copy { min-width: 0; }

    .status-line {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      border-radius: 999px;
      border: 1.5px solid rgba(148,163,184,0.33);
      background: rgba(255,255,255,0.9);
      padding: 6px 14px;
      font-size: 0.72rem;
      font-weight: 900;
      letter-spacing: 0.06em;
      color: #334155;
      text-transform: uppercase;
      margin-bottom: 10px;
    }

    .status-ready      { border-color: rgba(22,163,74,0.4);   color: #15803d; background: rgba(220,252,231,0.85); }
    .status-conditional{ border-color: rgba(217,119,6,0.38);  color: #92400e; background: rgba(254,243,199,0.85); }
    .status-notready   { border-color: rgba(220,38,38,0.38);  color: #991b1b; background: rgba(254,226,226,0.85); }

    .result-hero-copy h2 {
      font-size: clamp(1.25rem, 1.05rem + 0.95vw, 1.85rem);
      margin-bottom: 8px;
      line-height: 1.2;
    }

    .result-hero-copy p {
      color: #475569;
      font-size: clamp(0.88rem, 0.84rem + 0.2vw, 0.98rem);
      font-weight: 600;
      line-height: 1.58;
      max-width: 55ch;
    }

    /* Score breakdown */
    .result-body {
      padding: clamp(20px, 3vw, 32px) clamp(22px, 4vw, 38px) clamp(24px, 4vw, 36px);
    }

    .score-section-label {
      font-size: 0.72rem;
      font-weight: 900;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: #94a3b8;
      margin-bottom: 12px;
    }

    .score-grid {
      display: grid;
      gap: 10px;
      margin-bottom: 20px;
    }

    .score-card {
      border-radius: 14px;
      border: 1px solid rgba(148,163,184,0.28);
      border-top: 3px solid var(--bar-color, #2563eb);
      background: rgba(255,255,255,0.9);
      padding: 14px 16px;
      transition: transform 180ms ease, box-shadow 180ms ease;
    }

    .score-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 22px rgba(15,23,42,0.07);
    }

    .score-card-header {
      display: flex;
      justify-content: space-between;
      align-items: baseline;
      margin-bottom: 8px;
    }

    .score-card-label {
      font-size: 0.86rem;
      font-weight: 800;
      color: #0f172a;
    }

    .score-card-pts {
      font-family: "IBM Plex Mono", monospace;
      font-size: 0.82rem;
      font-weight: 700;
      color: #475569;
    }

    .score-bar-track {
      height: 7px;
      background: rgba(148,163,184,0.18);
      border-radius: 99px;
      overflow: hidden;
      margin-bottom: 5px;
    }

    .score-bar-fill {
      height: 100%;
      border-radius: 99px;
      background: var(--bar-color, #2563eb);
      width: 0;
      transition: width 700ms cubic-bezier(0.22,1,0.36,1);
    }

    .score-card small {
      color: #94a3b8;
      font-size: 0.73rem;
      font-weight: 700;
    }

    .gap-box {
      border-radius: 14px;
      border: 1px solid rgba(234,179,8,0.25);
      background: linear-gradient(145deg, rgba(254,252,232,0.7), rgba(255,255,255,0.9));
      padding: 16px 18px;
      margin-bottom: 20px;
    }

    .gap-box-header {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 10px;
    }

    .gap-box-header i {
      color: #d97706;
      font-size: 0.9rem;
    }

    .gap-box-header h4 {
      font-size: 0.9rem;
      font-weight: 800;
      color: #78350f;
    }

    .gap-list { display: flex; flex-wrap: wrap; gap: 7px; }

    .gap-chip {
      border-radius: 999px;
      border: 1px solid rgba(217,119,6,0.28);
      background: rgba(255,251,235,0.95);
      color: #92400e;
      font-size: 0.74rem;
      font-weight: 700;
      padding: 5px 11px;
    }

    .result-cta-wrap {
      margin-top: 4px;
    }

    .result-cta-wrap .btn {
      width: 100%;
      justify-content: center;
      padding: 16px 24px;
      font-size: 1rem;
      font-weight: 900;
      border-radius: 999px;
      letter-spacing: -0.01em;
    }

    .result-cta-wrap .btn-ready {
      background: linear-gradient(125deg, #15803d 0%, #166534 100%);
      color: #ffffff;
      box-shadow: 0 10px 28px rgba(22,163,74,0.28);
    }

    .result-cta-wrap .btn-ready:hover {
      box-shadow: 0 14px 34px rgba(22,163,74,0.4);
    }

    .result-cta-wrap .btn-conditional {
      background: linear-gradient(125deg, #d97706 0%, #92400e 100%);
      color: #ffffff;
      box-shadow: 0 10px 28px rgba(217,119,6,0.25);
    }

    .result-cta-wrap .btn-notready {
      background: linear-gradient(125deg, var(--pt-accent) 0%, #0f172a 80%);
      color: #ffffff;
      box-shadow: 0 10px 28px rgba(15,23,42,0.22);
    }

    /* ---- Score teaser (lead gate preview) ---- */
    /* ── Score teaser gate (premium blurred preview) ── */
    .score-teaser { margin-bottom: 22px; }

    .stg-card {
      background: linear-gradient(135deg, #0f172a 0%, #1a1040 55%, #0c1f3a 100%);
      border-radius: 18px;
      padding: 18px 20px 16px;
      position: relative;
      overflow: hidden;
      border: 1px solid rgba(99,102,241,0.28);
      text-align: left;
    }
    .stg-card::after {
      content: '';
      position: absolute;
      top: -50px; right: -50px;
      width: 160px; height: 160px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(99,102,241,0.32), transparent 70%);
      pointer-events: none;
    }
    .stg-badge {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      font-size: 0.65rem;
      font-weight: 800;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: #a5b4fc;
      background: rgba(99,102,241,0.14);
      border: 1px solid rgba(99,102,241,0.26);
      border-radius: 99px;
      padding: 4px 10px;
      margin-bottom: 14px;
    }
    .stg-score-row {
      display: flex;
      align-items: baseline;
      gap: 8px;
      margin-bottom: 12px;
      position: relative;
    }
    .stg-score-num {
      font-family: "IBM Plex Mono", monospace;
      font-size: 3.8rem;
      font-weight: 700;
      color: #fff;
      filter: blur(9px);
      user-select: none;
      line-height: 1;
    }
    .stg-score-denom {
      font-size: 1rem;
      color: #475569;
      font-weight: 600;
      filter: blur(4px);
      align-self: flex-end;
      margin-bottom: 5px;
    }
    .stg-lock-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 0.7rem;
      font-weight: 700;
      color: #fde68a;
      background: rgba(251,191,36,0.1);
      border: 1px solid rgba(251,191,36,0.22);
      border-radius: 99px;
      padding: 3px 10px;
      margin-bottom: 14px;
    }
    .stg-bars { display: grid; gap: 7px; }
    .stg-bar-row { display: flex; align-items: center; gap: 10px; }
    .stg-bar-label {
      font-size: 0.63rem;
      font-weight: 700;
      color: #64748b;
      min-width: 84px;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      white-space: nowrap;
    }
    .stg-bar-track {
      flex: 1;
      height: 5px;
      background: rgba(255,255,255,0.07);
      border-radius: 99px;
      overflow: hidden;
      filter: blur(2.5px);
    }
    .stg-bar-fill {
      height: 100%;
      border-radius: 99px;
      background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 100%);
    }

    .retake-btn {
      background: none;
      border: none;
      color: #64748b;
      font-size: 0.82rem;
      font-weight: 700;
      cursor: pointer;
      margin-top: 14px;
      text-decoration: underline;
      padding: 0;
      font-family: "Manrope", sans-serif;
    }

    .retake-btn:hover { color: #1e293b; }

    .q-back-btn {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: none;
      border: none;
      border-radius: 8px;
      padding: 8px 12px;
      font-size: 0.82rem;
      font-weight: 600;
      color: #94a3b8;
      cursor: pointer;
      margin-top: 14px;
      font-family: "Manrope", sans-serif;
      transition: color 0.15s, background 0.15s;
    }
    .q-back-btn:hover { color: #334155; background: rgba(148,163,184,0.1); }

    /* ---- Lead capture interstitial ---- */
    .lead-capture-area {
      padding-block: 16px;
    }

    .lead-capture-inner {
      max-width: 580px;
      margin-inline: auto;
    }

    .lead-capture-card {
      background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(248, 250, 252, 0.96)),
        radial-gradient(460px 260px at 100% 0%, rgba(30, 58, 138, 0.12), transparent 70%);
      border: 1px solid rgba(148, 163, 184, 0.34);
      border-radius: 22px;
      box-shadow: 0 22px 55px rgba(15, 23, 42, 0.13);
      padding: clamp(28px, 5vw, 54px);
      text-align: center;
      position: relative;
      overflow: hidden;
      animation: qSlideIn 280ms ease both;
    }

    .lead-capture-card::before {
      content: "";
      position: absolute;
      inset: 0 0 auto;
      height: 5px;
      background: linear-gradient(90deg, var(--brand-blue), #0f766e, var(--brand-gold));
    }

    .lead-capture-icon-wrap {
      width: 68px;
      height: 68px;
      border-radius: 50%;
      background: linear-gradient(135deg, rgba(30, 58, 138, 0.1), rgba(15, 118, 110, 0.1));
      border: 2px solid rgba(30, 58, 138, 0.18);
      display: grid;
      place-items: center;
      margin: 0 auto 18px;
      font-size: 1.7rem;
      color: var(--pt-accent);
    }

    .lead-capture-badge {
      display: inline-block;
      font-size: 0.72rem;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: #0f766e;
      background: rgba(204, 251, 241, 0.8);
      border: 1px solid rgba(15, 118, 110, 0.22);
      border-radius: 999px;
      padding: 5px 12px;
      margin-bottom: 14px;
    }

    .lead-capture-card h2 {
      font-family: "Sora", sans-serif;
      font-size: clamp(1.35rem, 1.1rem + 1.2vw, 2.05rem);
      color: #0f172a;
      margin-bottom: 10px;
      letter-spacing: -0.02em;
    }

    .lead-capture-card > p {
      color: #475569;
      font-size: clamp(0.9rem, 0.86rem + 0.2vw, 1rem);
      line-height: 1.65;
      max-width: 46ch;
      margin: 0 auto 26px;
    }

    .lead-form {
      display: grid;
      gap: 13px;
      max-width: 400px;
      margin: 0 auto;
      text-align: left;
    }

    .lead-form label {
      display: grid;
      gap: 5px;
      color: #334155;
      font-size: 0.78rem;
      font-weight: 800;
    }

    .lead-form input {
      width: 100%;
      border: 1.5px solid rgba(148, 163, 184, 0.5);
      border-radius: 12px;
      padding: 13px 15px;
      font-size: 0.94rem;
      font-family: "Manrope", sans-serif;
      background: rgba(255, 255, 255, 0.98);
      color: #0f172a;
      outline: none;
      transition: border-color 180ms ease, box-shadow 180ms ease;
    }

    .lead-form input:focus {
      border-color: var(--pt-accent);
      box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.12);
    }

    .lead-form input[aria-invalid="true"] {
      border-color: #dc2626;
      box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
    }

    .lead-submit-main {
      width: 100%;
      background: linear-gradient(135deg, var(--pt-accent) 0%, #2563eb 100%);
      color: #fff;
      border: none;
      border-radius: 12px;
      padding: 15px 20px;
      font-size: 1rem;
      font-weight: 700;
      cursor: pointer;
      font-family: "Manrope", sans-serif;
      letter-spacing: 0.01em;
      transition: opacity 0.2s, transform 0.1s;
      margin-top: 2px;
    }
    .lead-submit-main:hover { opacity: 0.92; transform: translateY(-1px); }
    .lead-submit-main:active { transform: translateY(0); }
    .lead-submit-main:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

    .lead-form-note {
      color: #94a3b8;
      font-size: 0.74rem;
      font-weight: 600;
      text-align: center;
      margin-top: 10px;
    }

    .lead-form-note a { color: var(--pt-accent); text-decoration: underline; }

    /* ---- Responsive ---- */
    @media (max-width: 900px) {
      .score-grid { grid-template-columns: 1fr; }
    }

    @media (max-width: 680px) {
      .quiz-promise-list { grid-template-columns: 1fr; }
    }

    @media (max-width: 480px) {
      .lead-capture-card { padding: 20px 16px; }
      .lead-capture-card h2 { font-size: 1.25rem; }
      .lead-capture-card > p { font-size: 0.88rem; margin-bottom: 18px; }
      .lead-capture-inner { max-width: 100%; }
    }
  
/* ---- Answer review (after report) ---- */
.review-box { margin-bottom: 20px; }
.review-box h4 { font-size: 0.9rem; font-weight: 800; color: #0f172a; margin-bottom: 10px; }
.review-item { border: 1px solid rgba(148,163,184,0.28); border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; background: rgba(255,255,255,0.9); }
.review-q { font-size: 0.86rem; font-weight: 700; color: #0f172a; margin-bottom: 6px; }
.review-line { font-size: 0.8rem; color: #475569; font-weight: 600; line-height: 1.5; }
.review-line b { color: #15803d; font-weight: 800; }
.review-line .yours { color: #991b1b; font-weight: 800; }
.review-why { font-size: 0.78rem; color: #64748b; margin-top: 4px; }
.quiz-resume-btn { display: block; margin: 12px auto 0; }

/* ---- Visual fixes ---- */
.quiz-resume-btn[hidden] { display: none; }
.q-text:focus { outline: none; }
.q-opt, .q-text { letter-spacing: normal; }
#leadCaptureArea.gate-modal-active { overflow-y: auto; align-items: flex-start; padding: 24px 16px; }
#leadCaptureArea.gate-modal-active .lead-capture-card { margin: 0 auto !important; padding: 30px 28px !important; }

/* ---- Visual pass: gutters, intro preview, progress, review, dark mode ---- */
#quizMain .container,
.topbar .container,
.footer-cta-band .container,
.footer .container { padding-inline: 16px; }

/* Intro preview: light surface so it reads as a sample, not an ad */
.quiz-preview-strip { background: #ffffff; border: 1px solid rgba(30, 58, 138, 0.14); }
.quiz-preview-strip::after { display: none; }
.qps-ring-track { stroke: rgba(30, 58, 138, 0.1); }
.qps-ring-label { color: #0f172a; }
.qps-bar-track { background: rgba(30, 58, 138, 0.08); }
.qps-bar-label { color: #475569; }
.qps-lock-note { color: #92400e; }
.qps-pill { color: #15803d; }
@media (max-width: 480px) {
  .quiz-preview-strip { gap: 12px; padding: 12px; }
  .qps-bar-label { min-width: 0; font-size: 0.56rem; }
  .qps-lock-note { font-size: 0.56rem; }
}

/* Progress: one segment per question, colored by section */
.quiz-segments { display: flex; gap: 3px; margin-top: 10px; }
.quiz-segments span { flex: 1; height: 5px; border-radius: 3px; background: rgba(148, 163, 184, 0.25); }
.quiz-segments span.cur { outline: 2px solid #0f172a; outline-offset: 1px; }

/* Score ring tick at the Ready threshold is an SVG line, styled here */
.score-ring-tick { stroke: #0f172a; stroke-width: 2.5; stroke-linecap: round; }

/* Section gate markers on the score bars */
.score-bar-track { position: relative; overflow: visible; }
.score-bar-track .score-bar-fill { border-radius: 99px; }
.score-gate-mark { position: absolute; top: -4px; bottom: -4px; width: 2px; background: #0f172a; border-radius: 2px; }
.score-gate-label { font-size: 0.68rem; font-weight: 800; color: #475569; margin-top: 2px; }

/* Review: text markers and a side bar, not color alone */
.review-item { border-left: 4px solid #dc2626; }
.review-item.is-correct { border-left-color: #16a34a; }
.review-line .mark { font-weight: 900; margin-right: 4px; }
.review-learn { display: inline-block; margin-top: 6px; font-size: 0.78rem; font-weight: 800; color: #1e3a8a; text-decoration: underline; }

/* Result: next step + share */
.next-step { font-size: 0.86rem; font-weight: 800; color: #0f172a; background: rgba(239, 246, 255, 0.9); border: 1px solid rgba(30, 58, 138, 0.18); border-radius: 12px; padding: 9px 12px; margin-top: 12px; display: inline-block; }
.share-btn { margin-top: 10px; }

/* Lead teaser: band word instead of a readable number */
.stg-band { font-family: "Sora", sans-serif; font-size: 2.6rem; font-weight: 800; color: #fff; filter: blur(7px); user-select: none; line-height: 1; }

/* Dark mode: card surfaces follow the system setting */
@media (prefers-color-scheme: dark) {
  .quiz-intro-card, .q-card, .result-inner, .lead-capture-card, .quiz-progress-wrap,
  .score-card, .review-item, .gap-box, .q-opt, .lead-capture-card, .quiz-preview-strip {
    background: #111827; color: #e2e8f0; border-color: rgba(148, 163, 184, 0.2);
  }
  .quiz-intro-card h1, .q-text, .result-hero-copy h2, .score-card-label, .lead-capture-card h2,
  .review-q, .q-opt, .score-ring-center strong, .lead-form label { color: #f1f5f9; }
  .quiz-intro-card > p, .result-hero-copy p, .lead-capture-card > p, .review-line, .review-why { color: #94a3b8; }
  .q-opt:hover:not(:disabled) { background: #1f2937; }
  .q-opt.selected { background: #1e3a8a; color: #fff; }
  .lead-form input { background: #0f172a; color: #f1f5f9; border-color: rgba(148,163,184,0.3); }
  .next-step { background: #1e293b; color: #f1f5f9; border-color: rgba(148,163,184,0.2); }
  .review-learn { color: #93c5fd; }
  .score-gate-label { color: #94a3b8; }
  .score-gate-mark { background: #f1f5f9; }
  .score-ring-tick { stroke: #f1f5f9; }
}

/* Start button label: keep the time phrase on one line where it fits */
.btn-start { font-size: clamp(0.92rem, 0.85rem + 0.5vw, 1rem); white-space: nowrap; }
@media (max-width: 360px) { .btn-start { white-space: normal; } }

/* ---- Lead gate: compact, light, fits a 768px-tall laptop screen ---- */
#leadCaptureArea.gate-modal-active {
  align-items: safe center;
  padding: 20px 16px;
  background: rgba(15, 23, 42, 0.5);
}
#leadCaptureArea.gate-modal-active .lead-capture-inner { max-width: 440px; }
#leadCaptureArea.gate-modal-active .lead-capture-card {
  margin: 0 auto !important;
  padding: 22px 24px 18px !important;
  border-radius: 18px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}
#leadCaptureArea .lead-capture-card h2 { font-size: 1.35rem; margin-bottom: 4px; }
#leadCaptureArea .lead-capture-card > p { font-size: 0.86rem; line-height: 1.5; margin: 0 auto 14px; max-width: 40ch; }
#leadCaptureArea .lead-form { gap: 10px; max-width: 100%; }
#leadCaptureArea .lead-form label { gap: 4px; font-size: 0.74rem; }
#leadCaptureArea .lead-form input { padding: 10px 12px; font-size: 0.9rem; border-radius: 10px; }
#leadCaptureArea .lead-submit-main { padding: 12px 16px; font-size: 0.95rem; border-radius: 10px; margin-top: 4px; }
#leadCaptureArea .lead-form-note { margin-top: 8px; font-size: 0.7rem; }
#leadCaptureArea .score-teaser { margin-bottom: 12px; }

/* Teaser: light card, navy band word, locked by blur */
#leadCaptureArea .stg-card {
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 14px;
  padding: 12px 14px;
  text-align: left;
}
#leadCaptureArea .stg-card::after { display: none; }
#leadCaptureArea .stg-badge { color: #1e3a8a; background: rgba(30, 58, 138, 0.08); border-color: rgba(30, 58, 138, 0.2); font-size: 0.6rem; padding: 3px 8px; margin-bottom: 8px; }
#leadCaptureArea .stg-band { font-size: 1.9rem; color: #1e3a8a; filter: blur(6px); margin-bottom: 6px; }
#leadCaptureArea .stg-lock-badge { color: #92400e; background: rgba(251, 191, 36, 0.15); border-color: rgba(251, 191, 36, 0.4); font-size: 0.64rem; padding: 2px 8px; margin-bottom: 10px; }
#leadCaptureArea .stg-bars { gap: 6px; }
#leadCaptureArea .stg-bar-row { gap: 8px; }
#leadCaptureArea .stg-bar-label { color: #475569; min-width: 0; width: 96px; font-size: 0.6rem; }
#leadCaptureArea .stg-bar-track { background: rgba(148, 163, 184, 0.25); filter: blur(2px); height: 4px; }
#leadCaptureArea .stg-bar-fill { background: linear-gradient(90deg, #1e3a8a, #2563eb); }

@media (max-height: 760px) {
  #leadCaptureArea .lead-capture-card > p { display: none; }
  #leadCaptureArea .lead-form-note { display: none; }
}
@media (max-width: 480px) {
  #leadCaptureArea.gate-modal-active { padding: 14px 12px; }
  #leadCaptureArea.gate-modal-active .lead-capture-card { padding: 18px 16px !important; }
}

/* ---- Review dropdowns: collapsed by default, tap to open ---- */
.review-box > h4 { margin-bottom: 12px; }
.review-item { padding: 0; overflow: hidden; transition: box-shadow 0.2s, transform 0.2s; }
.review-item[open] { box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08); }
.review-item:hover { transform: translateY(-1px); }
.review-sum {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
  background: linear-gradient(90deg, rgba(254, 226, 226, 0.45), rgba(255, 255, 255, 0) 70%);
}
.review-sum::-webkit-details-marker { display: none; }
.review-sum .review-q { margin: 0; flex: 1; }
.review-hint {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1e3a8a;
  background: rgba(239, 246, 255, 0.95);
  border: 1px solid rgba(30, 58, 138, 0.2);
  border-radius: 99px;
  padding: 3px 9px;
  transition: background 0.2s;
}
.review-hint::after { content: " \25BE"; display: inline-block; transition: transform 0.2s; }
.review-item[open] .review-hint::after { transform: rotate(180deg); }
.review-sum:hover .review-hint { background: #1e3a8a; color: #fff; }
.review-body { padding: 0 14px 12px; display: grid; gap: 4px; animation: reviewOpen 0.25s ease both; }
@keyframes reviewOpen { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.review-item .review-why { margin-top: 2px; }
.review-item .review-learn { justify-self: start; }

/* Result headline takes focus for screen readers; no visible box */
#resultHeadline:focus { outline: none; }

/* One progress bar: the section segments. Original track stays for screen readers only. */
.quiz-progress-track {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.quiz-progress-wrap { position: relative; }

/* Review: one dropdown for every missed question */
.review-group { border: 1px solid rgba(148, 163, 184, 0.3); border-radius: 14px; background: rgba(255, 255, 255, 0.9); overflow: hidden; }
.review-group[open] { box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08); }
.review-group-sum {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 800;
  color: #0f172a;
  background: linear-gradient(90deg, rgba(254, 226, 226, 0.5), rgba(255, 255, 255, 0) 70%);
}
.review-group-sum::-webkit-details-marker { display: none; }
.review-group-sum:hover .review-hint { background: #1e3a8a; color: #fff; }
.review-group[open] .review-hint::after { transform: rotate(180deg); }
.review-list { display: grid; gap: 8px; padding: 0 12px 12px; }
.review-list .review-item { padding: 12px 14px; }
.review-list .review-item:hover { transform: none; }
.review-item .review-q { display: block; }
.review-item .review-body { padding: 0; }
