/* =========================================
   Tool pages — builds on common.css tokens.
   Only tool-specific values live here.
   ========================================= */

:root {
    --tool-accent:      #0d9488;   /* teal — tool interactive accent */
    --tool-accent-dark: #0f766e;
    --tool-muted:       var(--color-muted);
    --tool-line:        var(--color-border);
    --tool-card:        var(--color-bg);
    --tool-bg-soft:     var(--color-bg-soft);
}

/* Global tool shell — pushes content below the fixed site nav */
body.tool-page {
    background: #fff;
    padding-top: var(--nav-height);
}

/* Small subtitle slot shown in the site nav on tool pages */
.nav-tool-title {
    color: var(--tool-muted);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.2px;
}

@media (max-width: 720px) {
    .nav-tool-title {
        display: none;
    }
}

.tool-shell {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 5% 60px;
}

.tool-shell--narrow {
    max-width: 760px;
    padding-bottom: 160px;
}

/* ── Hero ─────────────────────────────────────────────────────────────── */
.tool-hero-label {
    color: var(--tool-accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.72rem;
    font-weight: 700;
}

.tool-hero h1 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    line-height: 1.2;
    color: #111;
    margin: 10px 0 10px;
}

.tool-hero-sub {
    color: var(--tool-muted);
    max-width: 560px;
    font-size: 1.02rem;
}

.tool-hero-meta {
    color: var(--tool-muted);
    margin-top: 6px;
    font-size: 0.95rem;
}

/* ── Progress bar (assessment) ───────────────────────────────────────── */
.progress-wrap {
    margin: 28px 0 22px;
}

.progress-track {
    height: 6px;
    background: #e7e5de;
    border-radius: 999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: var(--tool-accent);
    transition: width 0.35s ease;
}

.progress-label {
    margin-top: 8px;
    font-size: 0.78rem;
    color: var(--tool-muted);
    font-weight: 500;
}

/* ── Question panels ─────────────────────────────────────────────────── */
.q-stage {
    position: relative;
    min-height: 280px;
}

.q-panel {
    opacity: 0;
    transform: translateX(24px);
    transition: opacity 0.28s ease, transform 0.28s ease;
    pointer-events: none;
    position: absolute;
    inset: 0;
}

.q-panel.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    position: relative;
}

.q-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.35rem;
    line-height: 1.35;
    color: #111;
}

.q-sub {
    margin-top: 8px;
    font-size: 0.82rem;
    color: var(--tool-muted);
}

.options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 22px;
}

.opt {
    background: var(--tool-card);
    border: 1px solid var(--tool-line);
    border-radius: 12px;
    padding: 16px 18px;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    gap: 14px;
    user-select: none;
}

.opt:hover {
    border-color: #c9cec4;
    background: #fbfaf6;
}

.opt .indicator {
    flex: 0 0 22px;
    height: 22px;
    border: 1.5px solid #cfd4c9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    transition: all 0.15s ease;
}

.opt[data-type="multi"] .indicator {
    border-radius: 5px;
}

.opt .indicator::after {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--tool-accent);
    transform: scale(0);
    transition: transform 0.15s ease;
}

.opt[data-type="multi"] .indicator::after {
    border-radius: 2px;
}

.opt.selected {
    border-color: var(--tool-accent);
    background: #f0fdfa;
}

.opt.selected .indicator {
    border-color: var(--tool-accent);
    background: #fff;
}

.opt.selected .indicator::after {
    transform: scale(1);
}

.opt-label {
    flex: 1;
    font-size: 0.98rem;
    color: #1f2937;
}

/* ── Fixed bottom bar (assessment) ───────────────────────────────────── */
.tool-bottombar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    border-top: 1px solid var(--tool-line);
    padding: 14px 24px;
    z-index: 40;
}

.tool-bottombar-inner {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.btn-tool {
    border: none;
    border-radius: 10px;
    padding: 12px 22px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    transition: all 0.15s ease;
    text-decoration: none;
}

.btn-tool-ghost {
    background: transparent;
    color: var(--tool-muted);
}

.btn-tool-ghost:hover {
    color: #111;
}

.btn-tool-ghost[disabled] {
    opacity: 0;
    pointer-events: none;
}

.btn-tool-primary {
    background: var(--tool-accent);
    color: #fff;
}

.btn-tool-primary:hover {
    background: var(--tool-accent-dark);
}

.btn-tool-primary[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
}

/* ── Loading overlays ────────────────────────────────────────────────── */
.fp-overlay,
.submit-overlay {
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 14px;
    padding: 24px;
    text-align: center;
}

.fp-overlay.hidden {
    display: none;
}

.submit-overlay {
    background: rgba(255, 255, 255, 0.96);
    z-index: 300;
    display: none;
}

.submit-overlay.active {
    display: flex;
}

.submit-overlay h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    color: #111;
    margin: 0;
}

.submit-overlay p {
    color: var(--tool-muted);
    max-width: 420px;
    margin: 0;
}

.fp-text {
    color: var(--tool-muted);
    font-size: 0.92rem;
}

.spinner {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 3px solid #e5e5e5;
    border-top-color: var(--tool-accent);
    animation: tool-spin 0.7s linear infinite;
}

@keyframes tool-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ── Report: score block ─────────────────────────────────────────────── */
.score-block {
    display: flex;
    align-items: center;
    gap: 32px;
    margin: 18px 0 10px;
    flex-wrap: wrap;
}

.score-number {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 72px;
    line-height: 1;
    color: #111;
}

.score-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--tool-line);
    color: #111;
    font-weight: 600;
    font-size: 0.92rem;
}

.score-badge.b1 {
    background: #fee2e2;
    border-color: #fecaca;
    color: #991b1b;
}

.score-badge.b2 {
    background: #fef3c7;
    border-color: #fde68a;
    color: #92400e;
}

.score-badge.b3 {
    background: #dbeafe;
    border-color: #bfdbfe;
    color: #1e40af;
}

.score-badge.b4 {
    background: #dcfce7;
    border-color: #bbf7d0;
    color: #166534;
}

.hero-summary {
    color: #374151;
    font-size: 1.02rem;
    margin-top: 6px;
    max-width: 700px;
}

/* ── Section cards (report) ──────────────────────────────────────────── */
.tool-card {
    background: var(--tool-card);
    border: 1px solid var(--tool-line);
    border-radius: 16px;
    padding: 28px;
    margin-top: 24px;
}

.tool-card h2 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: #111;
    margin: 0 0 6px;
}

.tool-card .sub {
    color: var(--tool-muted);
    font-size: 0.92rem;
    margin-bottom: 18px;
}

/* ── Radar + legend ──────────────────────────────────────────────────── */
.radar-wrap {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 24px;
    align-items: start;
}

.radar svg {
    max-width: 100%;
    height: auto;
    display: block;
}

.legend {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.legend-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.legend-name {
    flex: 1;
    font-size: 0.95rem;
    color: #1f2937;
    font-weight: 500;
}

.legend-bar {
    flex: 1.2;
    height: 8px;
    background: #f1f0ea;
    border-radius: 999px;
    overflow: hidden;
}

.legend-bar-fill {
    height: 100%;
    border-radius: 999px;
}

.legend-score {
    width: 44px;
    text-align: right;
    font-weight: 600;
    font-size: 0.92rem;
    color: #111;
}

@media (max-width: 720px) {
    .radar-wrap {
        grid-template-columns: 1fr;
    }
}

/* ── Action plan ─────────────────────────────────────────────────────── */
.actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.action {
    background: var(--tool-bg-soft);
    border: 1px solid var(--tool-line);
    border-left: 5px solid var(--tool-accent);
    border-radius: 10px;
    padding: 16px 18px;
}

.action .head {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.action .num {
    width: 26px;
    height: 26px;
    background: #111;
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}

.action .title {
    font-weight: 600;
    color: #111;
    font-size: 1rem;
}

.action .cat {
    margin-left: auto;
    font-size: 0.72rem;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f0f0eb;
    color: #555;
    font-weight: 600;
}

.action .desc {
    margin-top: 8px;
    color: #374151;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ── Lead capture form ───────────────────────────────────────────────── */
.capture {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.capture label {
    flex: 1 1 180px;
    margin: 0;
}

.capture input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--tool-line);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    background: #fff;
}

.capture input:focus {
    outline: none;
    border-color: var(--tool-accent);
}

.capture-status {
    margin-top: 10px;
    font-size: 0.88rem;
    color: var(--tool-muted);
    min-height: 1.2em;
}

.capture-status.ok {
    color: #166534;
}

.capture-status.err {
    color: #991b1b;
}

/* ── Dark CTA section ────────────────────────────────────────────────── */
.tool-cta {
    background: #1a1a2e;
    color: #fff;
    border-radius: 16px;
    padding: 40px 32px;
    margin-top: 32px;
    text-align: center;
}

.tool-cta h2 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    margin-bottom: 12px;
    color: #fff;
}

.tool-cta p {
    color: #cbd5e1;
    max-width: 560px;
    margin: 0 auto 22px;
}

/* ── Returning visitor card ──────────────────────────────────────────── */
.return-wrap {
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 5%;
}

.return-card {
    background: #fff;
    border: 1px solid var(--tool-line);
    border-radius: 16px;
    padding: 48px 40px;
    max-width: 560px;
    width: 100%;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.return-check {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #ccfbf1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.return-check svg {
    width: 36px;
    height: 36px;
    color: var(--tool-accent);
}

.return-card h1 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    margin: 12px 0 14px;
    color: #111;
    line-height: 1.25;
}

.return-card p.sub {
    color: var(--tool-muted);
    font-size: 0.98rem;
    max-width: 440px;
    margin: 0 auto 28px;
}

.return-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.return-actions .btn-tool {
    min-width: 240px;
    justify-content: center;
}

.return-or {
    font-size: 0.78rem;
    color: var(--tool-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 4px 0;
}

/* =========================================================================
   Report dashboard (update.md spec)
   Scoped via body.report-page so other tool pages are unaffected.
   ========================================================================= */
body.report-page {
    background: #f7f6f2;
    padding-top: var(--nav-height);
}

.report-page nav {
    background: #fff;
    border-bottom: 0.5px solid #e8e6de;
}

.report-shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px;
}

@media (max-width: 640px) {
    .report-shell {
        padding: 24px 16px;
    }
}

.report-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.report-meta-label {
    color: #0d9488;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.report-meta-sep {
    color: #c0bdb5;
}

.report-meta-info {
    font-size: 12px;
    color: #9a9890;
}

.report-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 24px;
    line-height: 1.25;
}

/* ── KPI cards ─────────────────────────────────────────────────────── */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 28px;
}

.kpi-card {
    background: #fff;
    border: 0.5px solid #e2e0d8;
    border-radius: 12px;
    padding: 18px 20px;
}

.kpi-label {
    font-size: 11px;
    color: #9a9890;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    margin-bottom: 10px;
}

.kpi-value {
    font-family: 'Outfit', sans-serif;
    font-size: 60px;
    color: #1a1a2e;
    line-height: 1.1;
    font-weight: bold;
}

.kpi-value--stage {
    font-size: 22px;
}

.kpi-value--gap {
    color: #e24b4a;
}

.kpi-value .pct {
    font-size: 20px;
    color: #0d9488;
    margin-left: 2px;
}

.kpi-sub {
    font-size: 12px;
    color: #9a9890;
    margin-top: 6px;
}

.kpi-dot-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #9a9890;
    margin-top: 6px;
}

.kpi-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.kpi-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    margin-top: 8px;
    border-width: 1px;
    border-style: solid;
}

.kpi-badge.b1 {
    background: #fff0f0;
    color: #a32d2d;
    border-color: #f09595;
}

.kpi-badge.b2 {
    background: #fffbeb;
    color: #854f0b;
    border-color: #fac775;
}

.kpi-badge.b3 {
    background: #f0fdfb;
    color: #0a6b61;
    border-color: #99f6e4;
}

.kpi-badge.b4 {
    background: #eff6ff;
    color: #1e40af;
    border-color: #93c5fd;
}

.kpi-counts {
    display: inline-flex;
    gap: 8px;
}

.kpi-counts span {
    font-weight: 600;
}

.kpi-counts .c-high {
    color: #e24b4a;
}

.kpi-counts .c-med {
    color: #ef9f27;
}

.kpi-counts .c-low {
    color: #0d9488;
}

/* ── Two-column radar + score bars ─────────────────────────────────── */
.report-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

@media (max-width: 640px) {
    .report-two-col {
        grid-template-columns: 1fr;
    }
}

.report-panel {
    background: #fff;
    border: 0.5px solid #e2e0d8;
    border-radius: 14px;
    padding: 24px;
}

@media (max-width: 640px) {
    .report-panel {
        padding: 16px;
    }
}

.report-panel-title {

    color: #1a1a2e;
    margin: 0 0 4px;
}

.report-panel-sub {
    font-size: 12px;
    color: #9a9890;
    margin: 0 0 20px;
}

.radar-svg {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

.score-bar-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 14px;
}

.score-bar-row:last-child {
    margin-bottom: 0;
}

.score-bar-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.score-bar-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #1a1a2e;
}

.score-bar-val {
    font-size: 13px;
    font-weight: 500;
}

.score-bar-track {
    height: 7px;
    background: #f0ede8;
    border-radius: 4px;
    overflow: hidden;
}

.score-bar-fill {
    height: 100%;
    border-radius: 4px;
}

/* ── Action plan ───────────────────────────────────────────────────── */
.report-section-head {
    margin-bottom: 16px;
}

.report-section-head h2 {

    color: #1a1a2e;
    margin: 0 0 4px;
}

.report-section-head p {
    font-size: 13px;
    color: #9a9890;
    margin: 0;
}

.action-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.action-card {
    background: #fff;
    border: 0.5px solid #e2e0d8;
    border-radius: 0 12px 12px 0;
    padding: 16px 20px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.action-card.p-high {
    border-left: 3px solid #e24b4a;
}

.action-card.p-mid {
    border-left: 3px solid #ef9f27;
}

.action-card.p-low {
    border-left: 3px solid #0d9488;
}

.action-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #1a1a2e;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.action-body {
    flex: 1;
    min-width: 0;
}

.action-card .action-title {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a2e;
    margin-bottom: 4px;
}

.action-card .action-desc {
    font-size: 13px;
    color: #7a7870;
    line-height: 1.55;
}

.action-tag {
    display: inline-block;
    font-size: 11px;
    padding: 2px 10px;
    border-radius: 20px;
    margin-top: 8px;
    border-width: 1px;
    border-style: solid;
}

.action-tag.p-high {
    background: #fff0f0;
    color: #a32d2d;
    border-color: #f09595;
}

.action-tag.p-mid {
    background: #fffbeb;
    color: #854f0b;
    border-color: #fac775;
}

.action-tag.p-low {
    background: #f0fdfb;
    color: #0a6b61;
    border-color: #5dcaa5;
}

/* ── Lead capture (restyled) ───────────────────────────────────────── */
.lead-capture-v2 {
    background: #fff;
    border: 0.5px solid #e2e0d8;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

@media (max-width: 640px) {
    .lead-capture-v2 {
        padding: 16px;
    }
}

.lead-capture-v2 .text h3 {

    color: #1a1a2e;
    margin: 0 0 3px;
}

.lead-capture-v2 .text p {
    font-size: 12px;
    color: #9a9890;
    margin: 0;
}

.lead-form {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.lead-form input {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    padding: 9px 14px;
    border: 0.5px solid #e2e0d8;
    border-radius: 8px;
    background: #f7f6f2;
    width: 160px;
}

.lead-form input:focus {
    outline: none;
    border-color: #0d9488;
}

.lead-form button {
    background: #1a1a2e;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    padding: 9px 18px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.lead-form button:hover {
    background: #000;
}

/* ── Dark CTA ──────────────────────────────────────────────────────── */
.report-cta {
    background: #1a1a2e;
    border-radius: 14px;
    padding: 36px;
    text-align: center;
    margin-bottom: 32px;
}

@media (max-width: 640px) {
    .report-cta {
        padding: 28px 20px;
    }
}

.report-cta h2 {
    font-family: 'Outfit', sans-serif;

    color: #fff;
    margin: 0 0 8px;
    font-weight: 600;
}

.report-cta p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.6;
    margin: 0 auto 22px;
    max-width: 560px;
}

.report-cta a.btn {
    display: inline-block;
    background: #0d9488;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    padding: 13px 32px;
    border-radius: 8px;
    text-decoration: none;
}

.report-cta a.btn:hover {
    background: #0f766e;
}

.report-cta .note {
    margin-top: 12px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
}

/* ── Responsive tweaks ───────────────────────────────────────────────── */
@media (max-width: 600px) {
    .tool-shell {
        padding: 24px 5% 40px;
    }

    .tool-shell--narrow {
        padding-bottom: 140px;
    }

    .tool-card {
        padding: 22px 18px;
    }

    .score-number {
        font-size: 56px;
    }

    .tool-cta {
        padding: 32px 20px;
    }

    .q-text {
        font-size: 1.15rem;
    }

    .opt {
        padding: 14px 16px;
    }

    .tool-bottombar {
        padding: 12px 18px;
    }

    .return-card {
        padding: 36px 24px;
    }

    .return-card h1 {
        font-size: 1.5rem;
    }
}

/* =========================================
   TOOL INTRO PAGE (www/tool/index.html)
   Lightweight — leans on style.css for layout.
   ========================================= */
.tool-terms-note {
    margin-top: 20px;
    font-size: 0.82rem;
    color: var(--text-light);
    max-width: 520px;
    font-weight: 400;
}

.tool-terms-note a {
    color: var(--brand-blue);
    text-decoration: underline;
}

.tool-terms-note a:hover {
    color: var(--brand-black);
}

/* =========================================
   TOOL HUB — tool/index.html
   .tool-card scoped under .tools-grid to
   avoid conflict with report-page cards.
   ========================================= */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.tools-grid .tool-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    gap: 0;
    transition: box-shadow 0.2s, transform 0.2s;
}

.tools-grid .tool-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.09);
    transform: translateY(-3px);
}

.tool-card-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 20px;
    width: fit-content;
}

.badge-assessment {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

.badge-audit {
    background: rgba(52, 168, 83, 0.1);
    color: #16a34a;
}

.tools-grid .tool-card h3 {
    font-size: 1.45rem;
    font-weight: 700;
    color: #0a0a0a;
    margin: 0 0 10px;
    line-height: 1.25;
}

.tool-card-desc {
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.65;
    margin: 0 0 24px;
    font-weight: 300;
}

.tool-card-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.tool-meta-item {
    font-size: 0.78rem;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

.tool-meta-item::before {
    content: '✓';
    color: #16a34a;
    font-weight: 700;
}

.tool-card-list {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tool-card-list li {
    font-size: 0.9rem;
    color: #374151;
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

.tool-card-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #9ca3af;
    font-size: 0.85rem;
}

.tool-card-cta {
    margin-top: auto;
}

.tool-card-divider {
    border: none;
    border-top: 1px solid #f3f4f6;
    margin: 0 0 28px;
}

@media (max-width: 960px) {
    .tools-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .tools-grid .tool-card {
        padding: 28px 24px;
    }
}

/* =========================================
   VISIBILITY TOOL — visibility.php
   ========================================= */
.vis-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.vis-form-grid .vis-full { grid-column: 1 / -1; }

.vis-optional-label {
    font-size: 0.72rem;
    color: var(--tool-muted);
    font-weight: 400;
    margin-left: 6px;
    text-transform: none;
    letter-spacing: 0;
}

.vis-card {
    background: #fff;
    border: 1px solid var(--tool-line);
    border-radius: 12px;
    padding: 32px;
    margin-top: 28px;
}

.vis-section-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--tool-accent);
    margin-bottom: 16px;
    margin-top: 24px;
}

.vis-section-title:first-child { margin-top: 0; }

.vis-progress-messages {
    font-size: 0.9rem;
    color: #374151;
    min-height: 26px;
    margin: 16px 0 8px;
    font-weight: 500;
    transition: opacity 0.3s;
}

.vis-progress-sub {
    font-size: 0.82rem;
    color: var(--tool-muted);
    min-height: 20px;
}

@media (max-width: 600px) {
    .vis-form-grid              { grid-template-columns: 1fr; }
    .vis-form-grid .vis-full    { grid-column: 1; }
}

/* =========================================
   VISIBILITY REPORT — visibility_report.php
   ========================================= */
.vis-report-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--tool-line);
}

.vis-business-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 4px;
}

.vis-domain-badge   { font-size: 0.9rem; color: var(--tool-accent); font-weight: 600; }
.vis-meta           { font-size: 0.8rem; color: var(--tool-muted); margin-top: 4px; }

.vis-level-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: 8px;
}

.vis-section-heading { font-size: 1rem; font-weight: 700; color: #1e293b; margin: 36px 0 4px; }
.vis-section-sub     { color: var(--tool-muted); font-size: 0.85rem; margin-bottom: 16px; }

.vis-gap-list { list-style: none; margin: 0; padding: 0; }

.vis-gap-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 0;
    border-bottom: 1px solid #f1f5f9;
}

.vis-gap-item:last-child { border-bottom: none; }

.vis-gap-num {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    margin-top: 1px;
}

.vis-gap-content  { flex: 1; }
.vis-gap-name     { font-weight: 600; font-size: 0.9rem; color: #1e293b; }
.vis-gap-finding  { font-size: 0.83rem; color: var(--tool-muted); margin-top: 3px; line-height: 1.4; }
.vis-gap-cat      { font-size: 0.72rem; color: var(--tool-muted); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.5px; }

.vis-premium-gate {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    margin-top: 36px;
}

.vis-premium-gate h3          { color: #f8fafc; font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.vis-premium-gate p           { color: #94a3b8; font-size: 0.9rem; margin-bottom: 20px; }
.vis-premium-gate .btn-cta    { display: inline-block; }

.vis-ai-summary {
    background: linear-gradient(135deg, #f0fdfa 0%, #ecfdf5 100%);
    border-left: 4px solid #0d9488;
    border-radius: 8px;
    padding: 20px 24px;
    font-size: 0.9rem;
    line-height: 1.65;
    color: #1e293b;
    margin-bottom: 20px;
}

.vis-ai-rec-list { list-style: none; margin: 0; padding: 0; }

.vis-ai-rec-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 0;
    border-bottom: 1px solid #f1f5f9;
}

.vis-ai-rec-item:last-child { border-bottom: none; }

.vis-ai-rec-num {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #0d9488;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
}

.vis-ai-rec-content   { flex: 1; }
.vis-ai-rec-action    { font-weight: 600; font-size: 0.9rem; color: #1e293b; }
.vis-ai-rec-rationale { font-size: 0.83rem; color: var(--tool-muted); margin-top: 3px; line-height: 1.4; }
.vis-ai-rec-outcome   { font-size: 0.8rem; color: #0d9488; margin-top: 4px; }

.vis-risk-list { list-style: none; margin: 0; padding: 0; }

.vis-risk-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 8px;
}

.vis-risk-item:last-child { margin-bottom: 0; }
.vis-risk-critical { background: #fff1f2; border-left: 3px solid #dc2626; }
.vis-risk-high     { background: #fff7ed; border-left: 3px solid #ea580c; }
.vis-risk-medium   { background: #fefce8; border-left: 3px solid #ca8a04; }
.vis-risk-low      { background: #f0fdf4; border-left: 3px solid #16a34a; }

.vis-risk-badge {
    flex-shrink: 0;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 7px;
    border-radius: 4px;
    margin-top: 2px;
    white-space: nowrap;
}

.badge-critical { background: #fee2e2; color: #dc2626; }
.badge-high     { background: #ffedd5; color: #ea580c; }
.badge-medium   { background: #fef9c3; color: #ca8a04; }
.badge-low      { background: #dcfce7; color: #16a34a; }

.vis-risk-name { font-weight: 600; font-size: 0.88rem; color: #1e293b; }
.vis-risk-desc { font-size: 0.82rem; color: var(--tool-muted); margin-top: 3px; line-height: 1.4; }

.vis-pdf-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 12px;
    padding: 28px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 32px;
}

.vis-pdf-banner-text h3 { color: #f8fafc; font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.vis-pdf-banner-text p  { color: #94a3b8; font-size: 0.88rem; }

.loading-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--tool-muted);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e5e7eb;
    border-top-color: var(--tool-accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin { to { transform: rotate(360deg); } }

.error-state         { text-align: center; padding: 60px 20px; }
.error-state h2      { color: #b91c1c; margin-bottom: 8px; }
.error-state p       { color: var(--tool-muted); }

/* =========================================
   AUDIT TOOL — audit.css merged
   ========================================= */

/* =========================================================
   Website Audit Tool — audit.css
   Builds on style.css + tool.css (:root vars, tool-page,
   tool-shell, tool-hero, progress-track/fill, spinner).
   New components only; no duplication of existing rules.
   ========================================================= */

/* ── Audit buttons — match site's .btn-cta / .btn-secondary ────────────────── */
.btn-cta {
    text-decoration: none;
    transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn-secondary {
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
    transition: background-color 0.2s, border-color 0.2s;
}

/* ── Step flow ─────────────────────────────────────────────────────────────── */
.audit-step { display: none; }
.audit-step.active { display: block; }

/* ── URL Input card ────────────────────────────────────────────────────────── */
.audit-url-card {
    background: #fff;
    border: 1px solid var(--tool-line);
    border-radius: 12px;
    padding: 32px;
    margin-top: 32px;
}

.audit-url-row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.audit-url-row .field-group {
    flex: 2;
    min-width: 200px;
}

.audit-url-row .field-group-select {
    flex: 1;
    min-width: 160px;
}

.audit-field-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--tool-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
}

.audit-input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--tool-line);
    border-radius: 8px;
    font-size: 0.97rem;
    font-family: inherit;
    color: #111;
    background: #fafaf7;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}
.audit-input:focus {
    border-color: var(--tool-accent);
    box-shadow: 0 0 0 3px rgba(13,148,136,0.12);
    background: #fff;
}
.audit-input.error {
    border-color: #ef4444;
}

/* ── Gate form (Step 2) ────────────────────────────────────────────────────── */
.audit-gate-card {
    background: #fff;
    border: 1px solid var(--tool-line);
    border-radius: 12px;
    padding: 32px;
    margin-top: 24px;
    max-width: 520px;
    box-sizing: border-box;
}

.audit-gate-domain {
    background: var(--tool-bg-soft);
    border: 1px solid var(--tool-line);
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 0.95rem;
    color: var(--tool-accent);
    font-weight: 600;
    margin-bottom: 24px;
    word-break: break-all;
}

.audit-field {
    margin-bottom: 16px;
}

.audit-checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 20px 0;
    width: 100%;
}
.audit-checkbox-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: var(--tool-accent);
    flex-shrink: 0;
    cursor: pointer;
}
.audit-checkbox-row label {
    font-size: 0.85rem;
    color: var(--tool-muted);
    line-height: 1.5;
    cursor: pointer;
    flex: 1;
}

/* ── Progress screen (Step 3) ──────────────────────────────────────────────── */
.audit-progress-shell {
    max-width: 560px;
    margin: 40px auto 0;
    text-align: center;
}

.audit-clock {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto 32px;
}

.audit-clock svg {
    transform: rotate(-90deg);
    width: 160px;
    height: 160px;
}

.audit-clock-track {
    fill: none;
    stroke: #e5e7eb;
    stroke-width: 10;
}

.audit-clock-fill {
    fill: none;
    stroke: var(--tool-accent);
    stroke-width: 10;
    stroke-linecap: round;
    stroke-dasharray: 440;
    stroke-dashoffset: 440;
    transition: stroke-dashoffset 0.6s ease;
}

.audit-clock-label {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.audit-clock-pct {
    font-size: 2rem;
    font-weight: 700;
    color: #111;
    line-height: 1;
}

.audit-clock-sub {
    font-size: 0.72rem;
    color: var(--tool-muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.audit-checkpoint-log {
    font-size: 0.85rem;
    color: var(--tool-muted);
    min-height: 22px;
    margin-top: 8px;
    transition: color 0.3s;
}

.audit-status-msg {
    font-size: 1rem;
    color: #374151;
    font-weight: 500;
    margin-bottom: 8px;
}

/* ── Report view (Step 4) ──────────────────────────────────────────────────── */
.audit-report-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--tool-line);
}

.audit-domain-badge {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--tool-accent);
    word-break: break-all;
}

.audit-date-badge {
    font-size: 0.82rem;
    color: var(--tool-muted);
}

/* Overall score dial */
.audit-score-dial {
    text-align: center;
    margin: 0 auto 36px;
    max-width: 320px;
}

.audit-score-svg-wrap {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto;
}

.audit-score-svg-wrap svg {
    transform: rotate(-90deg);
}

.audit-score-track {
    fill: none;
    stroke: #e5e7eb;
    stroke-width: 14;
}

.audit-score-arc {
    fill: none;
    stroke-width: 14;
    stroke-linecap: round;
    stroke-dasharray: 502;
    stroke-dashoffset: 502;
    transition: stroke-dashoffset 1s ease, stroke 0.5s;
}

.audit-score-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.audit-score-num {
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1;
    color: #111;
}

.audit-score-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

/* Category score cards grid */
.audit-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 36px;
}

.audit-cat-card {
    background: #fff;
    border: 1px solid var(--tool-line);
    border-radius: 10px;
    padding: 16px 18px;
}

.audit-cat-name {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--tool-muted);
    text-transform: uppercase;
    letter-spacing: 0.7px;
    margin-bottom: 10px;
}

.audit-cat-score-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.audit-cat-score-num {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    min-width: 44px;
}

.audit-cat-bar-wrap {
    flex: 1;
    height: 6px;
    background: #e5e7eb;
    border-radius: 99px;
    overflow: hidden;
}

.audit-cat-bar-fill {
    height: 100%;
    border-radius: 99px;
    width: 0;
    transition: width 0.8s ease;
}

/* Score colours */
.score-excellent { color: #16a34a; }
.score-good      { color: #ca8a04; }
.score-needswork { color: #ea580c; }
.score-poor      { color: #dc2626; }
.bg-excellent    { background: #16a34a; }
.bg-good         { background: #ca8a04; }
.bg-needswork    { background: #ea580c; }
.bg-poor         { background: #dc2626; }
.stroke-excellent{ stroke: #16a34a; }
.stroke-good     { stroke: #ca8a04; }
.stroke-needswork{ stroke: #ea580c; }
.stroke-poor     { stroke: #dc2626; }

/* Checkpoint sections */
.audit-section {
    background: #fff;
    border: 1px solid var(--tool-line);
    border-radius: 10px;
    margin-bottom: 16px;
    overflow: hidden;
}

.audit-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s;
}
.audit-section-header:hover { background: #fafaf7; }

.audit-section-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #1e293b;
}

.audit-section-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.audit-section-score {
    font-size: 0.85rem;
    font-weight: 700;
}

.audit-section-chevron {
    color: var(--tool-muted);
    font-size: 0.8rem;
    transition: transform 0.2s;
}
.audit-section.open .audit-section-chevron { transform: rotate(180deg); }

.audit-section-body {
    display: none;
    border-top: 1px solid var(--tool-line);
}
.audit-section.open .audit-section-body { display: block; }

.audit-checkpoint-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 20px;
    border-bottom: 1px solid #f8fafc;
    font-size: 0.875rem;
}
.audit-checkpoint-row:last-child { border-bottom: none; }

.audit-cp-badge {
    flex-shrink: 0;
    width: 52px;
    text-align: center;
    padding: 3px 0;
    border-radius: 5px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 1px;
}
.audit-cp-badge.badge-pass    { background: #dcfce7; color: #16a34a; }
.audit-cp-badge.badge-fail    { background: #fee2e2; color: #dc2626; }
.audit-cp-badge.badge-warning { background: #fef3c7; color: #d97706; }
.audit-cp-badge.badge-info    { background: #f1f5f9; color: #64748b; }

.audit-cp-content { flex: 1; }
.audit-cp-name    { font-weight: 600; color: #1e293b; margin-bottom: 2px; }
.audit-cp-details { color: var(--tool-muted); font-size: 0.82rem; line-height: 1.4; }
.audit-cp-rec     { color: var(--tool-accent); font-size: 0.8rem; margin-top: 4px; line-height: 1.4; }

/* Priority actions */
.audit-actions-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.audit-action-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 0;
    border-bottom: 1px solid #f1f5f9;
}
.audit-action-item:last-child { border-bottom: none; }

.audit-action-num {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    margin-top: 1px;
}
.audit-action-num.fail-num    { background: #dc2626; }
.audit-action-num.warning-num { background: #d97706; }

.audit-action-content { flex: 1; }
.audit-action-name    { font-weight: 600; font-size: 0.9rem; color: #1e293b; }
.audit-action-rec     { font-size: 0.83rem; color: var(--tool-muted); margin-top: 3px; line-height: 1.4; }
.audit-action-cat     { font-size: 0.72rem; color: var(--tool-muted); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.5px; }

/* PDF CTA banner */
.audit-pdf-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 12px;
    padding: 28px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 32px;
}

.audit-pdf-banner-text h3 {
    color: #f8fafc;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.audit-pdf-banner-text p {
    color: #94a3b8;
    font-size: 0.88rem;
}

/* Error state */
.audit-error-card {
    background: #fff5f5;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 24px;
    text-align: center;
    margin-top: 24px;
}
.audit-error-card p { color: #b91c1c; font-size: 0.95rem; }

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .audit-url-row { flex-direction: column; }
    .audit-cat-grid { grid-template-columns: 1fr 1fr; }
    .audit-pdf-banner { flex-direction: column; text-align: center; }
    .audit-report-header { flex-direction: column; }
}

@media (max-width: 400px) {
    .audit-cat-grid { grid-template-columns: 1fr; }
}

/* =========================================
   ROI CALCULATOR — roi-calculator.css merged
   ========================================= */

/* roi-calculator.css — Digital Growth ROI Calculator */
/* Fonts: Outfit (headings) + Inter (body) — loaded by style.css */

:root {
  --primary: #1a1a2e;
  --accent: #e94560;
  --accent-light: #f5a623;
  --bg: #f8f9fc;
  --card-bg: #ffffff;
  --text: #2d2d2d;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --success: #10b981;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(0, 0, 0, .08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, .12);
}

/* ── Wrapper ── */
#roi-calc {
  background: var(--bg);
  padding: 0;
}

.roi-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 5% 80px;
}

/* ── Progress Bar ── */
.roi-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 40px;
}

.roi-progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
}

.roi-progress-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 16px;
  left: calc(50% + 16px);
  width: calc(100% - 0px);
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.roi-progress-step.done:not(:last-child)::after,
.roi-progress-step.active:not(:last-child)::after {
  background: var(--accent);
}

.step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-size: .8rem;
  font-weight: 700;
  color: var(--text-muted);
  z-index: 1;
  transition: all .3s;
}

.roi-progress-step.done .step-dot {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.roi-progress-step.active .step-dot {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(26, 26, 46, .15);
}

.step-label {
  font-size: .65rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  white-space: nowrap;
}

.roi-progress-step.active .step-label {
  color: var(--primary);
}

.roi-progress-step.done .step-label {
  color: var(--accent);
}

/* ── Step Panel ── */
.roi-step {
  display: none;
  animation: fadeIn .3s ease;
}

.roi-step.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.roi-step-header {
  text-align: center;
  margin-bottom: 32px;
}

.roi-step-header h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0 0 10px;
  line-height: 1.2;
}

.roi-step-header p {
  color: var(--text-muted);
  font-size: 1rem;
  margin: 0;
}

/* ── Card Grid ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 32px;
}

.card-grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card-grid.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 600px) {

  .card-grid,
  .card-grid.cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-grid.cols-2 {
    grid-template-columns: 1fr;
  }
}

/* ── Selection Cards ── */
.sel-card {
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  cursor: pointer;
  transition: all .25s;
  text-align: center;
  user-select: none;
}

.sel-card:hover {
  border-color: #c4c9d4;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.sel-card.selected {
  border-color: var(--accent);
  background: rgba(233, 69, 96, .05);
  box-shadow: 0 0 0 3px rgba(233, 69, 96, .15);
}

.sel-card .card-icon {
  font-size: 1.8rem;
  margin-bottom: 10px;
  display: block;
}

.sel-card .card-title {
  font-family: 'Outfit', sans-serif;
  font-size: .9rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.sel-card .card-desc {
  font-size: .78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.sel-card.selected .card-title {
  color: var(--accent);
}

/* Stage cards show cost range when selected */
.sel-card .card-cost {
  display: none;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(233, 69, 96, .2);
  font-size: .78rem;
  font-weight: 600;
  color: var(--accent);
}

.sel-card.selected .card-cost {
  display: block;
}

/* ── Timeframe Cards ── */
.tf-card {
  padding: 28px 20px;
}

.tf-card .tf-period {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}

.tf-card .tf-label {
  font-size: .82rem;
  color: var(--text-muted);
}

/* ── Running Total Bar ── */
.roi-total-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--primary);
  color: white;
  padding: 16px 24px;
  border-radius: var(--radius);
  margin-top: 12px;
  flex-wrap: wrap;
  gap: 10px;
}

.roi-total-bar .total-label {
  font-size: .85rem;
  opacity: .75;
}

.roi-total-bar .total-amount {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
}

.roi-total-bar .total-note {
  font-size: .75rem;
  opacity: .6;
  width: 100%;
}

/* ── Benchmark Review Table ── */
.bench-table-wrap {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 24px;
}

.bench-table {
  width: 100%;
  border-collapse: collapse;
}

.bench-table th {
  background: var(--primary);
  color: rgba(255, 255, 255, .85);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 12px 16px;
  text-align: left;
}

.bench-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.bench-table tr:last-child td {
  border-bottom: none;
}

.bench-table .stage-name {
  font-weight: 600;
  font-size: .9rem;
}

.bench-table .stage-icon {
  font-size: 1.1rem;
  margin-right: 6px;
}

.bench-table input[type="number"] {
  width: 90px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: .88rem;
  color: var(--text);
  transition: border-color .2s;
}

.bench-table input[type="number"]:focus {
  outline: none;
  border-color: var(--accent);
}

.outcome-pill {
  display: inline-block;
  background: rgba(16, 185, 129, .1);
  color: #065f46;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
}

.outcome-pill.qualitative {
  background: rgba(245, 166, 35, .12);
  color: #92400e;
}

/* ── Lead Form ── */
.lead-form {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  max-width: 540px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 520px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: .95rem;
  color: var(--text);
  transition: border-color .2s, box-shadow .2s;
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(233, 69, 96, .12);
}

.form-group .req {
  color: var(--accent);
  margin-left: 2px;
}

/* ── Buttons (scoped inside calculator to avoid style.css conflicts) ── */
#roi-calc .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: 'Outfit', sans-serif;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .25s;
  text-decoration: none;
}

#roi-calc .btn-primary:hover {
  background: #d63651;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(233, 69, 96, .35);
}

#roi-calc .btn-primary:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
}

#roi-calc .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #555;
  border: 1px solid #ddd;
  padding: 12px 24px;
  border-radius: 50px;
  font-family: inherit;
  font-size: .92rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
}

#roi-calc .btn-secondary:hover {
  border-color: #aaa;
  color: #111;
}

.roi-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  gap: 12px;
}

/* ── Loading Spinner ── */
.roi-loading {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 46, .7);
  backdrop-filter: blur(4px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  color: white;
  text-align: center;
}

.roi-loading.show {
  display: flex;
}

.roi-spinner {
  width: 56px;
  height: 56px;
  border: 4px solid rgba(255, 255, 255, .2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.roi-loading h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0;
}

.roi-loading p {
  opacity: .7;
  font-size: .9rem;
  max-width: 280px;
  line-height: 1.5;
  margin: 0;
}

/* ── Results Screen ── */
.results-header {
  text-align: center;
  margin-bottom: 40px;
  padding: 40px 24px;
  background: linear-gradient(135deg, var(--primary) 0%, #0f3460 100%);
  border-radius: 16px;
  color: white;
}

.results-header .company-badge {
  display: inline-block;
  background: rgba(255, 255, 255, .15);
  padding: 4px 14px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  margin-bottom: 14px;
  letter-spacing: .5px;
}

.results-header h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 14px;
  color: #fff;
}

.results-header .exec-summary {
  opacity: .85;
  font-size: .97rem;
  line-height: 1.65;
  max-width: 600px;
  margin: 0 auto;
}

/* Result Sections */
.result-section {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  margin-bottom: 20px;
}

.result-section h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.result-section h3 .section-icon {
  width: 32px;
  height: 32px;
  background: rgba(233, 69, 96, .1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  color: var(--accent);
  flex-shrink: 0;
}

/* Phased Plan Timeline */
.phase-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.phase-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.phase-dot-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 4px;
}

.phase-dot {
  width: 14px;
  height: 14px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.phase-line {
  width: 2px;
  flex: 1;
  background: var(--border);
  margin-top: 4px;
  min-height: 24px;
}

.phase-item:last-child .phase-line {
  display: none;
}

.phase-content {
  flex: 1;
}

.phase-tag {
  display: inline-block;
  background: var(--primary);
  color: white;
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
  font-family: 'Outfit', sans-serif;
}

.phase-focus {
  font-weight: 600;
  font-size: .92rem;
  margin-bottom: 4px;
}

.phase-outcome {
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.phase-stages {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.phase-stage-tag {
  background: rgba(233, 69, 96, .08);
  color: var(--accent);
  font-size: .72rem;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
}

/* ROI Projection */
.roi-proj-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

@media (max-width: 480px) {
  .roi-proj-grid {
    grid-template-columns: 1fr;
  }
}

.proj-card {
  background: var(--bg);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
}

.proj-card .proj-label {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.proj-card .proj-value {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

.proj-card.high .proj-value {
  color: var(--success);
}

.assumptions-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.assumptions-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: .85rem;
  color: var(--text-muted);
}

.assumptions-list li::before {
  content: '→';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

/* Quick Wins */
.quick-wins-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quick-wins-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .9rem;
  line-height: 1.5;
}

.quick-wins-list li .win-num {
  width: 24px;
  height: 24px;
  background: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Risk Note */
.risk-note-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(245, 166, 35, .1);
  border-left: 4px solid var(--accent-light);
  border-radius: 0 8px 8px 0;
  padding: 16px;
}

.risk-note-box .risk-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.risk-note-box p {
  margin: 0;
  font-size: .88rem;
  line-height: 1.6;
  color: var(--text);
}

/* Priority */
.priority-box {
  background: rgba(233, 69, 96, .06);
  border-left: 4px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 16px;
  font-size: .9rem;
  line-height: 1.6;
}

/* CTA */
.result-cta {
  text-align: center;
  padding: 40px 24px;
  background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
  border-radius: 16px;
  color: white;
  margin-top: 8px;
}

.result-cta h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 10px;
  color: #fff;
}

.result-cta p {
  opacity: .75;
  margin: 0 0 24px;
  font-size: .95rem;
}

/* CTA button inside the results block only */
.result-cta .btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: white !important;
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: 'Outfit', sans-serif;
  font-size: .95rem;
  font-weight: 600;
  transition: all .25s;
}

.result-cta .btn-cta:hover {
  background: #d63651;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(233, 69, 96, .4);
}

/* ── Error / Empty States ── */
.roi-error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: 8px;
  padding: 16px;
  color: #b91c1c;
  font-size: .88rem;
  margin-bottom: 20px;
  display: none;
}

.stage-empty {
  text-align: center;
  padding: 32px;
  color: var(--text-muted);
  font-size: .9rem;
}

/* ── Hero Banner ── */
.roi-hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
  color: #fff;
  padding: 60px 5% 56px;
  text-align: center;
}

.roi-hero-badge {
  display: inline-block;
  background: rgba(233, 69, 96, .25);
  color: #f87b92;
  font-size: .72rem;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.roi-hero h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 700;
  margin: 0 0 16px;
  line-height: 1.2;
  color: #e5e7eb;
}

.roi-hero p {
  opacity: .75;
  font-size: 1.02rem;
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.65;
  font-weight: 300;
}

.roi-hero-trust {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
  font-size: .82rem;
  opacity: .65;
}

/* ── Step sub-labels ── */
.roi-step-label {
  font-family: 'Outfit', sans-serif;
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: #6b7280;
  margin: 0 0 14px;
}

.roi-step-label.mt {
  margin-top: 28px;
}

/* ── Timeframe card grid override ── */
.tf-card-grid {
  max-width: 560px;
  margin: 0 auto 32px;
}

.tf-card-item {
  padding: 32px 20px;
}

/* ── Nav right-aligned ── */
.roi-nav-end {
  justify-content: flex-end;
}

/* ── Privacy note ── */
.privacy-note {
  margin-top: 8px;
  padding: 14px 16px;
  background: #f8f9fc;
  border-radius: 8px;
  font-size: .8rem;
  color: #6b7280;
  line-height: 1.6;
  border: 1px solid #e5e7eb;
}

.privacy-note i {
  color: #34A853;
  margin-right: 6px;
}

/* ── Results: Investment Summary row ── */
.res-invest-row {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.res-stat-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #6b7280;
  margin-bottom: 6px;
}

.res-stat-value {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #1a1a2e;
}

.res-stat-value-md {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a2e;
}

.res-stat-value-accent {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
}

/* ── Results: Assumptions heading ── */
.res-assumptions-heading {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #6b7280;
  margin-bottom: 10px;
}

/* ── Misc layout helpers ── */
.roi-total-bar-top {
  margin-top: 24px;
}

.roi-form-submit {
  margin-top: 24px;
  text-align: center;
}

.roi-back-form {
  margin-right: 12px;
}