/* =============================================================================
 * Growth Bridge — single global stylesheet
 * Palette: vibrant purple + soft lavender. Modern, minimal, growth-focused.
 * ============================================================================= */

:root {
    --bg: #ffffff;
    --surface: #ffffff;
    --soft: #faf5ff;
    --navy: #2e0a4f;        /* deep purple (was navy) */
    --navy-2: #3d1466;      /* deep purple alt (was navy-2) */
    --ink: #1e1b2e;
    --muted: #6b6580;
    --border: #ece4f3;
    --gold: #a020d0;        /* brand purple (was gold) */
    --gold-2: #b943e0;      /* purple hover (was gold-2) */
    --good: #16a34a;
    --warn: #f59e0b;
    --bad: #dc2626;

    --radius: 14px;
    --radius-lg: 22px;
    --shadow-sm: 0 1px 2px rgba(46, 10, 79, .06);
    --shadow-md: 0 8px 24px rgba(46, 10, 79, .10);
    --shadow-lg: 0 24px 60px rgba(46, 10, 79, .20);

    --maxw: 1180px;
    --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    /* Modern purple tokens */
    --purple-50: #faf5ff;
    --purple-100: #f3e8ff;
    --purple-grad: linear-gradient(135deg, #a020d0 0%, #6b21a8 100%);
    --shadow-purple: 0 12px 32px rgba(160, 32, 208, .22);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }

body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.gold { color: var(--gold); }

/* Typography */
h1, h2, h3, h4, h5 { margin: 0 0 .4em; color: var(--navy); line-height: 1.15; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p  { margin: 0 0 1em; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: .95rem;
    border: 1px solid transparent;
    transition: transform .15s, box-shadow .15s, background .15s, color .15s, filter .15s;
}
.btn-lg { padding: 16px 28px; font-size: 1rem; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn-primary {
    background: var(--purple-grad);
    color: #ffffff;
    box-shadow: var(--shadow-purple);
}
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn-ghost {
    background: transparent; color: var(--navy);
    border-color: rgba(46, 10, 79, .18);
}
.btn-ghost:hover { background: rgba(46, 10, 79, .04); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); }

/* Header */
.header {
    position: static; z-index: 30;
    background: #ffffff;
    border-bottom: 1px solid rgba(46, 10, 79, .06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.brand-logo { height: 80px; width: auto; display: block; }
.brand-name { color: var(--navy); }
.brand-name strong { color: var(--gold); }

/* =========================================================================
 * Hero (index.html) — minimal Growth Bridge landing
 * ========================================================================= */
.hero {
    position: relative;
    min-height: calc(100vh - 108px);
    display: grid; place-items: center;
    padding: 80px 24px;
    background:
        radial-gradient(720px 480px at 80% 10%, rgba(160, 32, 208, .14), transparent 60%),
        radial-gradient(620px 420px at 10% 90%, rgba(107, 33, 168, .10), transparent 60%),
        #ffffff;
    text-align: center;
    overflow: hidden;
    isolation: isolate;
}
.hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
}
.hero-content { position: relative; z-index: 2; max-width: 820px; }
.hero .eyebrow {
    display: inline-block;
    font-size: .75rem; letter-spacing: .24em; font-weight: 700;
    color: var(--gold);
    margin-bottom: 24px;
    text-transform: uppercase;
}
.hero h1 {
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -.025em;
    background: linear-gradient(135deg, #2e0a4f 0%, #a020d0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    max-width: 820px; margin: 0 auto 20px;
    line-height: 1.05;
}
.hero p {
    color: var(--muted); font-size: 1.18rem;
    max-width: 580px; margin: 0 auto 36px;
}
.hero-actions {
    display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center;
}

/* =========================================================================
 * Questionnaire
 * ========================================================================= */

.progress-wrap {
    position: sticky; top: 60px; z-index: 25;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 14px 0 12px;
}
.progress-bar {
    height: 6px; background: var(--soft); border-radius: 999px; overflow: hidden;
}
.progress-bar-fill {
    height: 100%; width: 0;
    background: linear-gradient(90deg, var(--gold) 0%, var(--gold-2) 100%);
    transition: width .35s ease;
}
.progress-meta {
    display: flex; justify-content: space-between;
    margin-top: 8px;
    font-size: .85rem; color: var(--muted);
}
.progress-meta b { color: var(--navy); }

.quiz-main { padding: 40px 0 80px; }
.quiz-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
    align-items: start;
}

.quiz-sidebar { position: sticky; top: 150px; align-self: start; }
.quiz-sidebar h4 {
    text-transform: uppercase;
    font-size: .72rem; letter-spacing: .12em;
    color: var(--muted); margin-bottom: 12px;
}
.sidebar-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px; border-radius: 10px;
    font-size: .92rem; color: var(--muted);
    transition: all .15s;
}
.sidebar-item span {
    width: 26px; height: 26px;
    display: grid; place-items: center;
    border-radius: 50%; background: var(--soft);
    color: var(--muted); font-weight: 700; font-size: .8rem;
    flex-shrink: 0;
}
.sidebar-item:hover { background: var(--soft); color: var(--navy); }
.sidebar-item.active { background: var(--navy); color: #fff; }
.sidebar-item.active span { background: var(--gold); color: #fff; }
.sidebar-item.done span  { background: var(--good); color: #fff; }

.quiz-step {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-sm);
    animation: fadein .25s ease;
}
@keyframes fadein {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
}

.step-head {
    display: flex; align-items: center; gap: 18px;
    margin-bottom: 28px; padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}
.step-letter {
    width: 52px; height: 52px;
    display: grid; place-items: center;
    background: var(--purple-grad); color: #fff;
    font-weight: 700; font-size: 1.4rem;
    border-radius: 12px;
    flex-shrink: 0;
}
.step-head h2 { font-size: 1.4rem; margin-bottom: 4px; }
.step-head p  { margin: 0; }

.field { margin-bottom: 24px; }
.field > label {
    display: block;
    color: var(--navy);
    margin-bottom: 10px;
    font-size: .98rem;
}
.field > label b { color: var(--gold); margin-right: 4px; }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    font: inherit; color: var(--ink);
    transition: border .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 80px; font-family: inherit; }
.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(160, 32, 208, .22);
}

.options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.option {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--border); border-radius: 10px;
    background: #fff;
    cursor: pointer;
    font-size: .92rem; color: var(--ink);
    transition: border .15s, background .15s;
}
.option:hover { border-color: rgba(160, 32, 208, .55); background: rgba(160, 32, 208, .04); }
.option input { accent-color: var(--gold); width: 16px; height: 16px; cursor: pointer; }

.step-actions {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 36px; padding-top: 24px;
    border-top: 1px solid var(--border);
}

.contact-block .grid-2 {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}

/* =========================================================================
 * Report
 * ========================================================================= */

.report-hero {
    padding: 60px 0 40px;
    background:
        radial-gradient(900px 500px at 80% -10%, rgba(160, 32, 208, .18), transparent 60%),
        linear-gradient(180deg, #faf5ff 0%, var(--bg) 100%);
}
.report-header {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: center;
    background: linear-gradient(180deg, #3d1466 0%, #1e0a36 100%);
    color: #e9d5ff;
    padding: 32px 36px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.report-header h1 { color: #fff; margin-bottom: 8px; }
.report-header .muted { color: #c9b8e0; }
.report-header .date  { color: #c9b8e0; font-size: .9rem; margin: 4px 0 0; }
.score-donut {
    position: relative;
    width: 160px; height: 160px;
}
.score-donut svg { width: 100%; height: 100%; }
.score-donut-text {
    position: absolute; inset: 0;
    display: grid; place-items: center;
    color: #fff; font-weight: 700;
}
.score-donut-text span { font-size: 2.4rem; line-height: 1; }
.score-donut-text small { color: var(--gold-2); font-size: .85rem; margin-top: 4px; }

.section { padding: 60px 0; }
.section h2 { margin-bottom: 24px; }

.summary-block {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 32px;
    font-size: 1.05rem;
    box-shadow: var(--shadow-sm);
}

.dim-row {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 14px;
}
.dim-head {
    display: flex; justify-content: space-between; align-items: baseline;
    margin-bottom: 10px;
}
.dim-name { font-weight: 600; color: var(--navy); }
.dim-score { color: var(--gold); font-weight: 700; }
.dim-bar { height: 8px; background: var(--soft); border-radius: 999px; overflow: hidden; }
.dim-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--warn) 0%, var(--gold) 100%);
}
.dim-bar-fill.good { background: linear-gradient(90deg, var(--gold) 0%, var(--good) 100%); }
.dim-bar-fill.warn { background: linear-gradient(90deg, var(--bad) 0%, var(--warn) 100%); }
.dim-blurb { margin: 10px 0 0; color: var(--muted); font-size: .9rem; }

.problem {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--muted);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 14px;
    box-shadow: var(--shadow-sm);
}
.problem.critical { border-left-color: var(--bad); }
.problem.warn     { border-left-color: var(--warn); }
.problem.info     { border-left-color: var(--muted); }
.problem h4 { margin: 8px 0; }
.problem p  { margin: 0; }
.problem-pill {
    display: inline-block;
    font-size: .7rem; text-transform: uppercase; letter-spacing: .12em;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--soft); color: var(--muted);
}
.problem.critical .problem-pill { background: rgba(220, 38, 38, .12); color: var(--bad); }
.problem.warn .problem-pill     { background: rgba(245, 158, 11, .15); color: #b45309; }

.reco-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}
.reco {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow-sm);
}
.reco h4 { color: var(--navy); margin-bottom: 8px; }
.reco p  { margin: 0; color: var(--ink); font-size: .92rem; }

.roadmap-step {
    display: flex; gap: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 28px;
    margin-bottom: 14px;
    box-shadow: var(--shadow-sm);
}
.roadmap-num {
    width: 44px; height: 44px;
    background: var(--purple-grad); color: #fff;
    display: grid; place-items: center;
    border-radius: 50%; font-weight: 700;
    flex-shrink: 0;
}
.roadmap-items { margin: 12px 0 0; padding-left: 22px; list-style: disc; color: var(--ink); }
.roadmap-items li { margin-bottom: 4px; }

.report-cta {
    margin-top: 40px;
    padding: 36px;
    background: linear-gradient(135deg, #2e0a4f 0%, #6b21a8 100%);
    color: #fff;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-purple);
}
.report-cta h2 { color: #fff; }
.report-cta p  { color: #e0d4f0; margin-bottom: 24px; }
.report-cta .actions { display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* =========================================================================
 * Solution page
 * ========================================================================= */

.solution-hero {
    padding: 100px 0 60px;
    background:
        radial-gradient(900px 500px at 80% -10%, rgba(160, 32, 208, .22), transparent 60%),
        linear-gradient(180deg, #3d1466 0%, #2e0a4f 100%);
    color: #e9d5ff;
    text-align: center;
}
.solution-hero h1 { color: #fff; }
.solution-hero p  { color: #d4c0e8; max-width: 640px; margin: 0 auto 28px; font-size: 1.1rem; }

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}
.module {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.module:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: rgba(160, 32, 208, .3);
}
.module h4 { margin-bottom: 8px; color: var(--navy); }
.module p { color: var(--ink); margin: 0; font-size: .92rem; }

/* =========================================================================
 * Responsive
 * ========================================================================= */

@media (max-width: 880px) {
    .quiz-layout { grid-template-columns: 1fr; }
    .quiz-sidebar { position: static; }
    .progress-wrap { top: 58px; }
    .report-header { grid-template-columns: 1fr; text-align: center; }
    .score-donut { margin: 0 auto; }
    .contact-block .grid-2 { grid-template-columns: 1fr; }
    .options { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .step-actions { flex-direction: column-reverse; gap: 12px; align-items: stretch; }
    .step-actions .btn { width: 100%; }
    .quiz-step { padding: 24px 20px; }
    .brand-logo { height: 60px; }
}

/* =========================================================================
 * Print fallback for the report (in case user uses Cmd+P)
 * ========================================================================= */

@media print {
    .header, .progress-wrap, .report-cta, .btn { display: none !important; }
    body { background: #fff; color: #000; }
    .report-header { background: #fff; color: #000; box-shadow: none; border: 1px solid #ccc; }
    .report-header h1, .report-header .muted, .report-header .date { color: #000; }
    .section { padding: 20px 0; page-break-inside: avoid; }
    .problem, .reco, .dim-row, .roadmap-step { box-shadow: none; }
}
