:root {
    --brand-primary: #F1FF2E;
    --brand-light: #adc6ff;
    --brand-ink: #030852;
    --brand-accent: #fadb14;
    --bg: #0A0A0A;
    --card: #151515;
    --muted: #6b7280;
    --radius: 16px;

    /* AX1 — Alignment & Execution (indigo) */
    --ax1-item-bg: #f5f7ff;
    /* very light indigo */
    --ax1-item-border: #c7d2fe;
    /* soft indigo */
    --ax1-chip-bg: #e0e7ff;
    /* pale badge */
    --ax1-accent: #112094;
    /* left-bar / emphasis */

    /* AX2 — Motivation & Coaching (magenta/rose) */
    --ax2-item-bg: #fbeaf6;
    /* very light rose */
    --ax2-item-border: #f5c6e5;
    /* soft rose */
    --ax2-chip-bg: #fce7f3;
    /* pale badge */
    --ax2-accent: #9f1f7d;
    /* left-bar / emphasis */

    /* AX3 — Signals & Planning Health (amber) */
    --ax3-item-bg: #fff7cc;
    /* very light amber */
    --ax3-item-border: #ffe58f;
    /* soft amber */
    --ax3-chip-bg: #fff1b8;
    /* pale badge */
    --ax3-accent: #fadb14;
    /* left-bar / emphasis */
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    background: var(--bg);
    color: #fff;
    font-family: "Source Sans 3", Helvetica, Arial,
        sans-serif;
}

body {
    min-height: 100vh;
    padding-top: 1px;
    background: var(--bg) url(./bq-graphic.svg) no-repeat right center;
}

a {
    color: var(--brand-primary);
}

.wrap {
    max-width: 1280px;
    margin: 36px auto;
    padding: 0 20px;
    z-index: 1;
    position: relative;
}

.wrap-flex {
    max-width: 1280px;
    margin: 36px auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1;
    position: relative;
    gap: 12px;
}

.card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 28px;
    border: 1px solid #9e9e9e;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Source Serif 4", serif;
    font-weight: 500;
}

h1 {
    margin: 0 0 10px;
}

.subtitle {
    color: #fff;
    margin: 0 0 18px;
    font-size: 1.15em;
    line-height: 1.5;
}

.pill {
    float: right;
    padding: 2px 14px;
    border-radius: 8px;
    margin-bottom: 24px;
    background: #2F8286;
    color: #FFF;
    font-size: 14px;
    font-style: italic;
}

.progress {
    height: 10px;
    background: #e7ecff;
    border-radius: 999px;
    overflow: hidden;
    margin: 18px 0 6px;
}

.bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--bg), var(--brand-primary));
    transition: width 0.5s;
    border-radius: 999px;
}

.tiny {
    margin-top: 40px;
    font-size: 1em;
    background: #222;
    font-style: italic;
    border-radius: 8px;
    align-self: flex-start;
    padding: 2px 16px;
}

#spot-light-logo {
    color: #FFF;
    font-family: "Source Serif 4";
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
    line-height: 29px;
    text-decoration: none;
}

#qcard-wrap {
    flex: 1 0 0;
}

.row {
    display: flex;
}

.row>div {
    flex: 0 0 auto;
    width: auto;
}

.question {
    font-size: 2.15em;
    line-height: 1.2;
    margin: 0 0 14px;
    font-family: "Source Serif 4", serif;
    margin-bottom: 1em;
}

.options {
    display: grid;
    gap: 18px;
}

.opt {
    border: 1px solid #F1FF2E;
    border-radius: 2em;
    padding: 12px 14px;
    cursor: pointer;
    transition: 0.5s;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.35em;
    color: #9E9E9E;
}

.opt:hover {
    /* border-color: var(--brand-primary);
    background: #ecf4fe;
    box-shadow: 0 6px 16px rgba(43, 79, 244, 0.08); */
}

.opt input {
    accent-color: var(--brand-primary);
    transform: scale(1.15);
}

.nav {
    margin-top: 16px;
    display: flex;
}

#btn-restart {
    margin-left: auto;
}

#btn-finish,
#btn-next {
    min-width: 120px;
    float: right
}
#btn-prev {
    float: left;
    display: flex;
    align-items: center;
}
#btn-prev:disabled {
    display: none;
}
#btn-prev svg {
    margin-right: 6px;
}

input[type="submit"],
button {
    border: none;
    border-radius: 6px;
    padding: 6px 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.5s;
    font-family: "Source Sans 3", Helvetica, Arial,
        sans-serif;
    font-size: 16px;
}

.btn-primary {
    background: var(--brand-primary);
    color: #000;
    border-radius: 2em;
}

.btn-primary:hover {
    background: #f9ffa9;
    color: #000;
}

.btn-secondary {
    background: transparent;
    color: var(--brand-primary);
}

.btn-secondary:hover {
    color: var(--brand-primary);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.results-grid {
    display: grid;
    gap: 18px;
}

.axis-card {
    border: 1px solid #9e9e9e;
    border-radius: 8px;
    padding: 18px;
    color: #fff;
    background: #222;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.axis-header {
    margin: -18px -18px 0;
    padding: 18px;
    background: #151515;
}

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

.meter {
    height: 3px;
    background: #9e9e9e;
    overflow: hidden;
}

.meter>div {
    border-radius: 999px;
    height: 100%;
    background: var(--brand-primary);
    width: 0;
    transition: width 1s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.scoreline {
    display: flex;
    justify-content: start;
    gap: 10px;
    font-weight: 700;
    margin: 6px 0 10px;
    color: #9f1f7d;
    font-size: 1.15em;
}

.axis-blurb {
    margin-top: 18px;
    border-radius: 12px;
}

.axis-headline {
    color: var(--brand-primary);
    margin: 8px 0 6px;
    font-size: 1.05em;
    font-style: italic;
}

.axis-question {
    margin-bottom: 6px;
    font-size: 1.25rem;
}

.axis-copy {
    font-size: 0.9em;
    line-height: 1.5;
    margin: 0;
}

.axis-more {
    margin-top: 12px;
    transition: background 0.5s, color 0.5s;
}

.axis-more:hover {
    background: #701558;
    color: #fff;
}

/* Mobile-only collapse for the axis blurb */
.axis-blurb-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--brand-primary);
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 0;
}

.axis-blurb-toggle .chev {
    display: inline-block;
    transition: transform 0.2s ease;
}

/* Axis accordion header */
.axis-toggle {
    width: 100%;
    background: transparent;
    border: none;
    padding: 6px 0 14px;
    cursor: pointer;
    color: inherit;
    text-align: left;
    position: relative;
    border-radius: 0;
    border-bottom: 2px solid var(--ax1-chip-bg);
    margin-bottom: 12px;
}
.insights-axis[data-axis="AX2"] .axis-toggle {
    border-bottom: 2px solid var(--ax2-chip-bg);
}
.insights-axis[data-axis="AX3"] .axis-toggle {
    border-bottom: 2px solid var(--ax3-chip-bg);
}

.axis-toggle .chev {
    position: absolute;
    right: 0;
    top: calc(50% - 16px);
    width: 32px;
    height: 32px;
    transition: transform 0.2s ease;
    transform: rotate(-90deg);
    background: transparent url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='32' height='32' transform='translate(32 32) rotate(180)' style='mix-blend-mode:multiply'/%3E%3Cpath d='M16 22L6 12L7.4 10.6L16 19.2L24.6 10.6L26 12L16 22Z' fill='%23F7F800'/%3E%3C/svg%3E%0A") no-repeat center center;
}

.insights-axis[data-collapsed="false"] .axis-toggle .chev {
    transform: rotate(0deg);
}

/* Collapse/expand behavior (global) */
.insights-axis[data-collapsed="true"] .insight-grid {
    display: none;
}

.insights-axis[data-collapsed="false"] .insight-grid {
    display: grid;
}

.insights-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.insights-header h3 {
    margin: 0;
}
.insights-count {
}

/* Master controls */
.axis-controls {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin: -2px 0 10px;
}

.axis-ctrl {
    background: transparent;
    border: none;
    padding: 6px 14px;
    color: var(--brand-primary);
    cursor: pointer;
    border-radius: 2rem;
    font-size: 0.9em;
    border: 1px solid var(--brand-primary);
}

.axis-ctrl:hover {
    background: rgba(159, 31, 125, 0.08);
}

/* Insight cards */
.insights-wrapper {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
}

.insights-axis {
}

.insights-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.insights-title {
    font-size: 16px;
    margin-bottom: 1px;
}

.insights-badge {
    font-size: 14px;
    font-weight: normal;
    font-style: italic;
}

.insight-item {
    border: 1px solid #eef2ff;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #222;
    overflow: hidden;
}

.insight-grid {
    display: grid;
    gap: 14px;
}

.insight-top {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-start;
}

.chip {
    background: #E2E2E2;
    border-radius: 8px;
    padding: 1px 12px;
    font-size: 14px;
    color: #000;
}

.chip.positive {
    background: #72BCBF;
}

.chip.risk {
    background: #FF9B9B;
}

.insight-choice {
    font-size: 14px;
}

.insight-q {
    margin: 6px 0 6px;
}

.insight-reveal {
    font-size: 0.95em;
}

.insight-divider {
    height: 1px;
    background: #e6e8f5;
    margin: 6px 0;
}

/* Next-step toggle */
.tip-toggle {
    background: transparent;
    border: none;
    padding: 6px 0;
    color: var(--brand-primary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9em;
}

.tip-toggle .chev {
    display: inline-block;
    transform: rotate(0deg);
    transition: transform 0.2s ease;
}

.insight-item.show-tip .tip-toggle .chev {
    transform: rotate(90deg);
}

.tip {
    margin-top: 6px;
    padding: 12px;
    margin: 0 -12px -12px;
    font-size: 0.9em;
    line-height: 1.4;
    background: #000;
}

.tip strong {
    font-weight: 700;
    margin-right: 4px;
    font-size: 1em;
}

.tip[hidden] {
    display: none !important;
}

/* Axis containers (keep white card, tint borders/title/badge) */
.insights-axis[data-axis="AX1"] {
    border-color: var(--ax1-item-border);
}

.insights-axis[data-axis="AX2"] {
    border-color: var(--ax2-item-border);
}

.insights-axis[data-axis="AX3"] {
    border-color: var(--ax3-item-border);
}

.insights-axis[data-axis="AX1"] .insights-badge {
    color: var(--ax1-chip-bg);
}

.insights-axis[data-axis="AX2"] .insights-badge {
    color: var(--ax2-chip-bg);
}

.insights-axis[data-axis="AX3"] .insights-badge {
    color: var(--ax3-chip-bg);
}

/* Individual insight cards (soft bg + border) */
.insights-axis[data-axis="AX1"] .insight-item {
    border-color: var(--ax1-item-border);
}

.insights-axis[data-axis="AX2"] .insight-item {
    border-color: var(--ax2-item-border);
}

.insights-axis[data-axis="AX3"] .insight-item {
    border-color: var(--ax3-item-border);
}

/* Subtle axis-colored divider line */
.insights-axis[data-axis="AX1"] .insight-divider {
    background: var(--ax1-item-border);
}

.insights-axis[data-axis="AX2"] .insight-divider {
    background: var(--ax2-item-border);
}

.insights-axis[data-axis="AX3"] .insight-divider {
    background: var(--ax3-item-border);
}

/* Axis-tinted chips (tone class remains: .positive / .risk handled by your existing rules) 
.insights-axis[data-axis="AX1"] .chip{ background: var(--ax1-chip-bg); color:#1E3A8A; border:1px solid var(--ax1-item-border); }
.insights-axis[data-axis="AX2"] .chip{ background: var(--ax2-chip-bg); color:#9F1F7D; border:1px solid var(--ax2-item-border); }
.insights-axis[data-axis="AX3"] .chip{ background: var(--ax3-chip-bg); color:#7A6200; border:1px solid var(--ax3-item-border); }
*/

/* “Next step” callout: keep your layout, tint the left bar + background per axis */
.insights-axis[data-axis="AX1"] .tip {
    /* slightly richer than item bg for contrast */
}

.insights-axis[data-axis="AX2"] .tip {
}

.insights-axis[data-axis="AX3"] .tip {
}

/* Optional: faint left accent on each insight card */
.insights-axis[data-axis="AX1"] .insight-item {
    border: 2px solid var(--ax1-item-border);
}

.insights-axis[data-axis="AX2"] .insight-item {
    border: 2px solid var(--ax2-item-border);
}

.insights-axis[data-axis="AX3"] .insight-item {
    border: 2px solid var(--ax3-item-border);
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-up {
    animation: fadeUp 0.45s ease-out both;
    will-change: transform, opacity;
}

@media (prefers-reduced-motion: reduce) {
    .fade-up {
        animation: none;
    }

    .axis-card {
        transition: none;
    }

    .meter>div {
        transition: none;
    }
}

.intro-title {
    max-width: 700px;
    font-size: 4.375em;
    line-height: 1;
    margin-bottom: 16px;
}

.badge {
    display: inline-block;
    padding: 12px 3em 14px 3em;
    border-radius: 8px;
    margin: 1.25em 0;
    background: #222222;
    font-style: italic;
}

.intro-copy {
    font-size: 1em;
    line-height: 1.6;
    color: #fff;
    max-width: 720px;
}

.intro-copy a {
    color: #F1FF2E;
    font-weight: 600;
}

.header-main {
    font-size: 1.75em;
    font-weight: 500;
    margin-bottom: .75em;
}

.subtitle {
    margin: 0 0 18px;
}

#screen-start {
    padding-top: 75px;
}

/* Insights Gate */
.insights-card {
    position: relative;
    padding-top: 90px;
    padding-bottom: 90px;
    border-width: 2px;
    margin-top: 24px;
}

.insights-card.locked .insights-wrapper {
    max-height: 160px;
    overflow: hidden;
    filter: blur(0.6px);
    opacity: 0.7;
    transform: scale(0.995);
    transition: max-height 0.3s ease, filter 0.3s ease, opacity 0.3s ease,
        transform 0.3s ease;
}

.insights-card .insights-fade-edge {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 48px;
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0) 0%,
            #fff 100%);
    border-bottom-left-radius: inherit;
    border-bottom-right-radius: inherit;
    display: none;
}

.insights-card.locked .insights-fade-edge {
    display: block;
}

.insights-gate {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(17, 32, 148, 0.35);
    backdrop-filter: blur(2px);
    border-radius: inherit;
}

.gate-modal {
    background: #2F8286;
    color: #FFF;
    border-radius: 14px;
    padding: 18px;
    width: min(520px, 92%);
    box-shadow: 0 12px 28px rgba(3, 8, 82, 0.18);
    border: 1px solid #e6e8f5;
    font-size: 16px;
}

.gate-modal a {
    color: var(--brand-primary);
}

.gate-modal h4 {
    margin: 0 0 6px;
    font-size: 1.5em;
    font-weight: 500;
}

.legal-consent-container,
.gate-copy {
    margin: 0 0 12px;
    font-size: 16px;
}
.legal-consent-container {
    margin-top: 12px;
}

.gate-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    font-size: 1em;
}

.gate-btn {
    margin-top: 10px;
    width: 100%;
}

.gate-note {
    margin-top: 8px;
    font-size: 0.85em;
    color: #6b7280;
}

.insights-card.unlocked {
    padding-top: 21px;
    padding-bottom: 21px;
}

/* Responsive tweaks */
@media (max-width: 1024px) {
    .question {
        font-size: 1.9em;
    }

    #bg-graph {
        height: 45vh !important;
    }
}

@media (min-width: 900px) {
    .insights-wrapper {
        grid-template-columns: repeat(3, 1fr);
        /* desktop */
    }

    .results-grid {
        grid-template-columns: repeat(3, 1fr);
        /* desktop */
    }

    /* Desktop: tips open by default, even if [hidden] was set earlier */
    .insight-item .tip[hidden] {
        display: block !important;
    }

    /* When the user collapses an item on desktop, FORCE it closed */
    .insight-item.collapsed .tip,
    .insight-item.collapsed .tip[hidden] {
        display: none !important;
    }

    .insight-item .tip {
        display: none !important;
    }

    .insight-item:not(.collapsed) .tip {
        display: block !important;
    }
}

.wrap-flex img[alt="2025 Market Spotlight Benchmark Quiz"] {
    width: 100%;
    height: auto;
    max-width: 600px;
}

/* Desktop: always open, no toggle shown */
@media (min-width: 601px) {
    .axis-blurb {
        display: block;
    }

    .axis-blurb-toggle {
        display: none;
    }
}

@media (max-width: 600px) {
    #screen-start {
        padding-top: 25px;
    }

    .card {
        padding: 12px;
    }

    .wrap {
        margin: 24px auto;
        padding: 0 16px;
    }

    .wrap-flex {
        flex-direction: column-reverse;
        align-items: start;
        gap: 8px;
    }

    .intro-title {
        font-size: 2.4em;
    }

    .intro-copy {
        font-size: 1.05em;
    }

    .header-main {
        font-size: 1.15em;
    }

    .subtitle {
        font-size: 1em;
    }

    .question {
        font-size: 1.4em;
    }

    .opt {
        font-size: 1em;
    }

    #bg-graph {
        height: 24vh !important;
        right: 0;
        opacity: 0.45;
        max-height: 550px;
    }

    .wrap-flex img[alt="Varicent"] {
        height: 40px;
    }

    .wrap-flex img[alt="2025 Market Spotlight Benchmark Quiz"] {
        width: 300px;
        min-width: 300px;
        max-width: 100%;
        height: auto;
        display: block;
    }

    .insights-card {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    #qcard .card {
        padding: 5px;
    }

    .result {
        display: none;
    }

    .axis-blurb {
        display: none;
    }

    .axis-card[data-blurb-open="true"] .axis-blurb {
        display: block;
    }

    .axis-card[data-blurb-open="true"] .axis-blurb-toggle .chev {
        transform: rotate(90deg);
    }
}

.wrap #screen-quiz .card,
.wrap #screen-results>.card {
    min-width: 320px;
}

.hbspt-form .hs-form-field>label {
    display: none;
}

.hbspt-form .hs-form-field>.input>.hs-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    font-size: 1em;
}

.hbspt-form input[type="submit"] {
    margin-top: 10px;
    width: 100%;
    background: var(--brand-primary);
    border-radius: 2em;
}

.hbspt-form .inputs-list {
    padding: 0;
    list-style: none;
    margin: 6px 0 12px;
}

.hbspt-form .hs-form-booleancheckbox>label {
    display: flex;
    align-items: flex-start;
    font-size: 14px;
    color: #4b5563;
}

.hbspt-form .hs-form-booleancheckbox>label input {
    flex: 0 0 auto;
    width: auto;
}

.hbspt-form .hs-form-booleancheckbox>label>span {
    flex: 1 0 0;
    margin-left: 0.5em;
}

.hs-error-msg {
    color: #f2545b;
    font-size: 14px;
}