:root {
    /* Color Palette - FSBee Light Theme */
    --bg-color: #fffcf3;
    --text-primary: #111827;
    --text-secondary: #4b5563;

    /* FSBee Accents */
    --accent-orange: #ff874c;
    --accent-teal: #0097b2;
    --accent-yellow: #ffca3a;
    --accent-green: #a3b18a;
    --teal:        #0097b2;
    --teal-glow:   rgba(0,151,178,0.2);
    --orange:      #ff874c;
    --orange-glow: rgba(255,135,76,0.2);
    --green:       #a3b18a;

    --primary-action: var(--accent-orange);
    --primary-action-text: #ffffff;

    /* Glassmorphism Tokens for Light Theme */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.05);
    --glass-highlight: rgba(255, 255, 255, 0.9);
    --glass-blur: 16px;
    --glass-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1), 0 0 20px rgba(0, 0, 0, 0.02);
    
    --grad-text:   linear-gradient(135deg, #0097b2, #a3b18a);
    --grad-prog:   linear-gradient(90deg, #7ed957, #43adc9, #0097b2);
    --glass:       rgba(255,255,255,0.7);
    --glass-bd:    rgba(0,0,0,0.05);
    --shadow:      0 20px 40px -10px rgba(0,0,0,0.10), 0 0 20px rgba(0,0,0,0.02);
    --spring:      cubic-bezier(0.16, 1, 0.3, 1);

    --font-display: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* ── Typography & Display ── */
.text-gradient {
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ── Step progress bar (inside wizard card) ── */
.step-progress {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.2rem;
    margin-bottom: 3rem;
    padding: 0 0.25rem;
}
.prog-track {
    flex: 1;
    height: 5px;
    background: rgba(0,0,0,0.07);
    border-radius: 100px;
    overflow: hidden;
}
.prog-fill {
    height: 100%;
    background: var(--grad-prog);
    border-radius: 100px;
    transition: width 0.6s var(--spring);
}
.prog-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--teal);
    white-space: nowrap;
    min-width: 44px;
    text-align: right;
}

/* ── Page layout ────────────────────────── */
.calc-page {
    padding-top: clamp(3rem, 6vw, 5rem);
    padding-bottom: 3rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 10;
}

/* ── Hero ───────────────────────────────── */
.calc-hero {
    text-align: center;
    margin-bottom: 5rem;
    max-width: 720px;
    padding: 0 1.5rem;
    animation: heroIn 0.8s ease both;
}
@keyframes heroIn {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.calc-hero .badge-pill { 
    margin: 0 auto 1.2rem; 
    display: inline-flex; 
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--glass-border);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-teal);
    backdrop-filter: blur(8px);
}
.calc-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.2rem;
    color: var(--text-primary);
}
.calc-hero p {
    color: var(--text-secondary);
    font-size: 1.15rem;
    line-height: 1.7;
    max-width: 640px;
    margin: 0 auto;
}

/* ── Wizard card (matches reference .wizard-card-lg) ── */
.wiz-card {
    width: 95%;
    max-width: 960px;
    background: var(--glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-bd);
    border-radius: 28px;
    padding: 4.5rem 5.5rem;
    box-shadow: var(--shadow);
    margin: 0 auto 5rem;
    position: relative;
    overflow: hidden;
}

/* Faint radial glow behind active question */
.wiz-card::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(0,151,178,0.06) 0%, transparent 70%);
    pointer-events: none;
    transition: opacity 0.5s ease;
}

/* ── Step indicator (inside card) ───────── */
.step-row {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4rem;
}
.step-dot {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: #9ca3af;
    flex-shrink: 0;
    position: relative;
    transition: all 0.4s var(--spring);
    cursor: default;
    z-index: 1;
}
.step-dot.done {
    background: var(--teal);
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0,151,178,0.3);
}
.step-dot.done:hover { background: #007a96; transform: scale(1.08); }
.step-dot.active {
    background: var(--orange);
    color: white;
    box-shadow: 0 0 0 5px rgba(255,135,76,0.18), 0 6px 18px rgba(255,135,76,0.35);
    transform: scale(1.08);
}
/* Pulse ring on active dot */
.step-dot.active::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(255,135,76,0.3);
    animation: pulse-ring 2s ease infinite;
}
@keyframes pulse-ring {
    0%   { transform: scale(1);   opacity: 1; }
    100% { transform: scale(1.45); opacity: 0; }
}

.step-dot i { font-size: 1rem; }

.step-line {
    flex: 1;
    max-width: 90px;
    height: 2px;
    background: #e5e7eb;
    transition: background 0.5s ease;
}
.step-line.done { background: var(--teal); }

.step-label-row {
    display: flex;
    justify-content: center;
    margin-top: -2.8rem;
    margin-bottom: 0;
    padding: 0 0.5rem;
}
.step-label-item {
    flex: 1;
    max-width: 120px;
    text-align: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
    opacity: 0.45;
    transition: opacity 0.3s, color 0.3s;
    padding-top: 3rem;
}
.step-label-item.active { color: var(--orange); opacity: 1; }
.step-label-item.done   { color: var(--teal);   opacity: 0.75; }

/* ── Question screen ─────────────────────── */
.q-screen { display: none; }
.q-screen.active {
    display: block;
    animation: screenIn 0.48s var(--spring) both;
}
.q-screen.active.back-dir {
    animation: screenInBack 0.48s var(--spring) both;
}

@keyframes screenIn {
    from { opacity: 0; transform: translateY(30px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}
@keyframes screenInBack {
    from { opacity: 0; transform: translateY(-30px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0)     scale(1); }
}

/* Question heading */
.q-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--teal);
    margin-bottom: 0.75rem;
}
.q-heading {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3.5vw, 2.4rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    line-height: 1.25;
}
.q-heading .q-ico {
    font-size: 2.2rem;
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    flex-shrink: 0;
    line-height: 1;
}
.q-sub {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.65;
    max-width: 580px;
}
.q-sub strong { color: var(--text-primary); }

/* ── Selection tiles (matches reference .selection-card) ── */
.sel-grid {
    display: grid;
    gap: 1.5rem;
}
.sel-grid.g2 { grid-template-columns: repeat(2, 1fr); }
.sel-grid.g3 { grid-template-columns: repeat(3, 1fr); }
.sel-grid.g3-auto { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.sel-tile {
    background: rgba(255,255,255,0.6);
    border: 2px solid var(--glass-bd);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s var(--spring);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    user-select: none;
    /* stagger set via nth-child */
    opacity: 0;
    animation: tileIn 0.42s var(--spring) forwards;
}
.sel-tile:hover {
    transform: translateY(-8px);
    background: rgba(255,255,255,0.95);
    border-color: rgba(0,151,178,0.3);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}
.sel-tile.active {
    background: #ffffff;
    border-color: var(--teal);
    box-shadow: 0 15px 35px var(--teal-glow);
}
.sel-tile .t-ico {
    font-size: 2.8rem;
    color: var(--teal);
    transition: color 0.3s, transform 0.3s var(--spring);
    line-height: 1;
}
.sel-tile.active .t-ico {
    color: var(--orange);
    transform: scale(1.12);
}
.sel-tile .t-label {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-primary);
    line-height: 1.3;
}
.sel-tile .t-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

/* Tile stagger delays */
.sel-tile:nth-child(1) { animation-delay: 0.10s; }
.sel-tile:nth-child(2) { animation-delay: 0.17s; }
.sel-tile:nth-child(3) { animation-delay: 0.24s; }
.sel-tile:nth-child(4) { animation-delay: 0.31s; }
.sel-tile:nth-child(5) { animation-delay: 0.38s; }
.sel-tile:nth-child(6) { animation-delay: 0.45s; }

@keyframes tileIn {
    from { opacity: 0; transform: translateY(18px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}

/* Re-trigger on revisit: screens that become active again re-animate */
.q-screen.active .sel-tile { animation-play-state: running; }

/* ── Yes/No tiles ───────────────────────── */
.yn-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
.yn-tile {
    background: rgba(255,255,255,0.6);
    border: 2px solid var(--glass-bd);
    border-radius: 16px;
    padding: 2rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s var(--spring);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    user-select: none;
    opacity: 0;
    animation: tileIn 0.42s var(--spring) forwards;
}
.yn-tile:nth-child(1) { animation-delay: 0.10s; }
.yn-tile:nth-child(2) { animation-delay: 0.18s; }
.yn-tile .t-ico { font-size: 2.4rem; transition: color 0.3s, transform 0.3s var(--spring); }
.yn-tile .t-label { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--text-primary); }

.yn-tile:hover { transform: translateY(-6px); background: rgba(255,255,255,0.95); }

.yn-yes:hover, .yn-yes.active {
    border-color: var(--teal);
    box-shadow: 0 12px 30px var(--teal-glow);
    background: rgba(255,255,255,0.95);
}
.yn-yes .t-ico { color: var(--teal); }
.yn-yes.active .t-ico { color: var(--orange); transform: scale(1.12); }

.yn-no:hover, .yn-no.active {
    border-color: #9ca3af;
    box-shadow: 0 12px 30px rgba(0,0,0,0.06);
    background: rgba(255,255,255,0.95);
}
.yn-no .t-ico { color: #9ca3af; }
.yn-no.active  { border-color: #6b7280; }

/* ── Branch reveal ───────────────────────── */
.branch {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition:
        max-height 0.55s var(--spring),
        opacity    0.38s ease,
        margin-top 0.4s ease;
    margin-top: 0;
}
.branch.open {
    max-height: 520px;
    opacity: 1;
    margin-top: 1.75rem;
}
.branch-inner {
    padding: 1.75rem 2rem;
    background: rgba(0,151,178,0.04);
    border: 1.5px solid rgba(0,151,178,0.13);
    border-radius: 18px;
}
.branch-label {
    font-size: 0.8rem;
    font-family: var(--font-body);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--teal);
    margin-bottom: 1rem;
}

/* ── Large input (matches reference .form-input-lg) ── */
.inp-group { margin-bottom: 0; }
.inp-wrap-lg { position: relative; }
.inp-pre-lg {
    position: absolute;
    left: 1.75rem;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 700;
    color: var(--text-secondary);
    font-size: 1.25rem;
    pointer-events: none;
    z-index: 1;
}
.form-inp-lg {
    width: 100%;
    padding: 1.5rem 1.75rem 1.5rem 3.5rem;
    border-radius: 16px;
    border: 2px solid rgba(0,0,0,0.06);
    background: rgba(255,255,255,0.7);
    font-family: var(--font-body);
    font-size: 1.25rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
    -moz-appearance: textfield;
}
.form-inp-lg::-webkit-outer-spin-button,
.form-inp-lg::-webkit-inner-spin-button { -webkit-appearance: none; }
.form-inp-lg:focus {
    outline: none;
    border-color: var(--teal);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0,151,178,0.10);
}
.form-inp-lg::placeholder { color: #9ca3af; }

/* Location pill */
.loc-pill {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.4rem 1.75rem;
    border: 2px solid rgba(0,151,178,0.22);
    border-radius: 16px;
    background: rgba(0,151,178,0.04);
    font-size: 1.1rem;
    font-weight: 600;
}
.loc-pill i { color: var(--teal); font-size: 1.3rem; }
.loc-note { font-size: 0.85rem; color: var(--text-secondary); margin-top: 0.75rem; line-height: 1.55; }
.loc-note i { color: var(--teal); margin-right: 0.35rem; }

/* Privacy note */
.priv-note {
    margin-top: 2rem;
    padding: 1.1rem 1.5rem;
    background: rgba(0,151,178,0.04);
    border: 1.5px solid rgba(0,151,178,0.1);
    border-radius: 14px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.65;
}
.priv-note i { color: var(--teal); margin-right: 0.4rem; }

/* ── Wizard navigation (matches ref .wizard-actions) ── */
.wiz-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4rem;
    padding-top: 0;
}
.btn-skip {
    font-size: 0.875rem;
    color: var(--text-secondary);
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    opacity: 0.7;
    transition: opacity 0.2s;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.btn-skip:hover { opacity: 1; }

.btn-wiz-back {
    padding: 1rem 2rem;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 100px;
    background: transparent;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.btn-wiz-back:hover {
    background: rgba(0,0,0,0.04);
    color: var(--text-primary);
}

.btn-wiz-next {
    padding: 1rem 2.25rem;
    border: none;
    border-radius: 100px;
    background: var(--accent-orange);
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 6px 20px rgba(255,135,76,0.3);
}
.btn-wiz-next:hover {
    transform: translateY(-2px);
    background: var(--bg-color);
    color: var(--orange);
    border: 1px solid var(--orange);
    box-shadow: 0 10px 20px -5px rgba(255,135,76,0.2);
}
.btn-wiz-next:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
.btn-wiz-next.calc-btn {
    background: var(--teal);
    box-shadow: 0 6px 20px rgba(0,151,178,0.3);
}
.btn-wiz-next.calc-btn:hover {
    background: var(--bg-color);
    color: var(--teal);
    border: 1px solid var(--teal);
    box-shadow: 0 10px 20px -5px rgba(0,151,178,0.2);
}

.nav-right { display: flex; align-items: center; gap: 1rem; }

/* ════════════════════════════════════════════
   RESULTS PAGE
════════════════════════════════════════════ */
#results-section {
    display: none;
    width: 95%;
    max-width: 960px;
    padding-top: 3rem;
    margin: 0 auto 6rem;
    position: relative;
    z-index: 10;
}
#results-section.visible { display: block; animation: screenIn 0.5s var(--spring) both; }

/* Results hero */
.res-hero { text-align: center; margin-bottom: 2.5rem; }
.res-hero .badge-pill { margin: 0 auto 1rem; display: inline-flex; }
.res-hero h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.res-hero p { font-size: 0.95rem; color: var(--text-secondary); }

/* Total hero card — matches reference gradient */
.total-card {
    background: linear-gradient(135deg, var(--teal), var(--green));
    border-radius: 24px;
    padding: 4rem 2.5rem;
    text-align: center;
    color: white;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px -10px rgba(0,151,178,0.4);
    animation: resCardIn 0.5s var(--spring) 0.1s both;
}
.total-card-leaf {
    position: absolute;
    right: -20px; bottom: -50px;
    font-size: 14rem;
    opacity: 0.08;
    transform: rotate(-20deg);
    line-height: 1;
    pointer-events: none;
}
.total-card-inner { position: relative; z-index: 2; }
.total-lbl { font-family: var(--font-body); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; opacity: 0.7; margin-bottom: 0.5rem; }
.total-num {
    font-family: var(--font-display);
    font-size: clamp(4rem, 12vw, 6rem);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.4rem;
}
.total-unit { font-size: 1.1rem; opacity: 0.85; font-family: var(--font-body); }
.total-note { font-family: var(--font-body); font-size: 0.73rem; opacity: 0.6; margin-top: 1rem; max-width: 380px; margin-left: auto; margin-right: auto; line-height: 1.5; }

/* Results cards */
.res-card {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 22px;
    padding: 2rem 2.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 30px -10px rgba(0,0,0,0.08);
}
.res-card.stagger-1 { animation: resCardIn 0.5s var(--spring) 0.18s both; }
.res-card.stagger-2 { animation: resCardIn 0.5s var(--spring) 0.28s both; }
.res-card.stagger-3 { animation: resCardIn 0.5s var(--spring) 0.38s both; }
.res-card.stagger-4 { animation: resCardIn 0.5s var(--spring) 0.48s both; }
.res-card.stagger-5 { animation: resCardIn 0.5s var(--spring) 0.58s both; }

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

.res-card-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.res-card-title i { color: var(--teal); }

/* Breakdown grid (3 cols matching reference scope cards) */
.scope-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.scope-card {
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 18px;
    padding: 2rem 1.5rem;
    text-align: center;
}
.scope-val {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--teal);
    margin-bottom: 0.4rem;
}
.scope-lbl { font-family: var(--font-body); font-size: 0.82rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.06em; }

/* Chart area */
.chart-row { display: flex; align-items: center; gap: 2.5rem; flex-wrap: wrap; }
.chart-box { flex: 0 0 180px; width: 180px; height: 180px; }
.chart-legend { flex: 1; min-width: 200px; font-family: var(--font-body); }
.leg-row { display: flex; align-items: center; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px solid rgba(0,0,0,0.04); }
.leg-row:last-child { border-bottom: none; }
.leg-left { display: flex; align-items: center; gap: 0.6rem; }
.leg-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.leg-name { font-size: 0.88rem; font-weight: 500; color: var(--text-primary); }
.leg-right { text-align: right; }
.leg-val { font-size: 0.88rem; font-weight: 700; color: var(--text-primary); display: block; }
.leg-pct { font-size: 0.73rem; color: var(--text-secondary); display: block; }

/* Drivers */
.driver-sum { font-family: var(--font-body); font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 1.25rem; line-height: 1.55; }
.driver-item { margin-bottom: 1rem; font-family: var(--font-body); }
.driver-hdr { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.4rem; }
.driver-name { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); }
.driver-pct { font-size: 0.9rem; font-weight: 700; color: var(--orange); }
.driver-track { height: 8px; background: rgba(0,0,0,0.06); border-radius: 100px; overflow: hidden; }
.driver-fill { height: 100%; border-radius: 100px; transition: width 1.2s var(--spring); }

/* Insights */
.insights-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; font-family: var(--font-body); padding:0; margin:0;}
.insight-item { display: flex; align-items: flex-start; gap: 0.85rem; padding: 1rem 1.25rem; background: rgba(0,151,178,0.05); border: 1px solid rgba(0,151,178,0.1); border-radius: 14px; }
.insight-item i { color: var(--teal); font-size: 1rem; flex-shrink: 0; margin-top: 0.1rem; }
.insight-text { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }

/* Methodology */
.method-box { font-family: var(--font-body); background: rgba(0,0,0,0.02); border: 1px solid rgba(0,0,0,0.07); border-radius: 14px; padding: 1.25rem 1.5rem; font-size: 0.8rem; color: var(--text-secondary); line-height: 1.75; }
.method-box strong { color: var(--text-primary); }

/* Results actions */
.res-actions { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; margin-top: 0.75rem; }
.btn-dl {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 1rem 2rem;
    border: 1px solid rgba(0,0,0,0.1); border-radius: 100px;
    background: white; font-family: var(--font-body);
    font-size: 1rem; font-weight: 600; cursor: pointer;
    color: var(--text-primary); transition: all 0.3s ease;
}
.btn-dl:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-2px); }

.btn-save {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 1rem 2rem;
    border: none; border-radius: 100px;
    background: var(--teal); color: white;
    font-family: var(--font-body); font-size: 1rem;
    font-weight: 700; cursor: pointer;
    box-shadow: 0 6px 20px rgba(0,151,178,0.3);
    transition: all 0.3s ease;
}
.btn-save:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,151,178,0.4); }

.btn-recalc {
    display: inline-flex; align-items: center; gap: 0.45rem;
    padding: 1rem 1.75rem;
    border: none; border-radius: 100px;
    background: transparent; font-family: var(--font-body);
    font-size: 0.95rem; font-weight: 600; cursor: pointer;
    color: var(--text-secondary); text-decoration: underline;
    text-underline-offset: 3px; transition: color 0.2s;
}
.btn-recalc:hover { color: var(--text-primary); }

/* Upgrade CTA */
.upgrade-card {
    background: linear-gradient(135deg, #fff8f1 0%, #fff3e8 100%);
    border: 2px solid rgba(255,135,76,0.18);
    border-radius: 24px;
    padding: 2.5rem 2.25rem;
    text-align: center;
    margin-bottom: 1.5rem;
    animation: resCardIn 0.5s var(--spring) 0.68s both;
}
.upgrade-card h3 {
    font-family: var(--font-display);
    font-size: 1.6rem; font-weight: 700;
    color: var(--text-primary); margin-bottom: 0.6rem;
}
.upgrade-card p { font-size: 0.9rem; font-family: var(--font-body); color: var(--text-secondary); margin-bottom: 1.5rem; line-height: 1.65; max-width: 520px; margin-left: auto; margin-right: auto; }
.up-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-bottom: 1.5rem; font-family: var(--font-body); }
.up-pill { padding: 0.32rem 0.85rem; background: rgba(255,135,76,0.1); border: 1px solid rgba(255,135,76,0.2); border-radius: 100px; font-size: 0.77rem; font-weight: 600; color: #c05520; }
.btn-primary.large {
    display: inline-block;
    padding: 1rem 2.25rem;
    border: none;
    border-radius: 100px;
    background: var(--accent-orange);
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(255,135,76,0.3);
}
.btn-primary.large:hover {
    transform: translateY(-2px);
    background: var(--bg-color);
    color: var(--accent-orange);
    border: 1px solid var(--accent-orange);
    box-shadow: 0 10px 20px -5px rgba(255,135,76,0.2);
}

/* ── Responsive ─────────────────────────── */

@media (max-width: 1024px) {
    .wiz-card { padding: 4rem 4rem; }
}
@media (max-width: 900px) {
    .wiz-card { padding: 3.5rem 3rem; }
    .step-dot { width: 44px; height: 44px; font-size: 1rem; }
}
@media (max-width: 768px) {
    .calc-page { padding-top: clamp(2rem, 5vw, 4rem); }
    .calc-hero { margin-bottom: 3rem; }
    .calc-hero p { font-size: 1rem; }
    .wiz-card { padding: 2.75rem 2.25rem; border-radius: 24px; width: 96%; }
    .sel-grid.g3-auto { grid-template-columns: repeat(2, 1fr); }
    .sel-grid.g2     { grid-template-columns: repeat(2, 1fr); }
    .sel-tile { padding: 2rem 1.5rem; }
    .sel-tile .t-ico { font-size: 2.2rem; }
    .yn-tile { padding: 1.75rem 1.5rem; }
    .step-progress { margin-top: 0.8rem; margin-bottom: 2rem; }
    .q-heading { gap: 0.65rem; }
    .q-heading .q-ico { font-size: 1.8rem; }
    .q-sub { margin-bottom: 2rem; }
    .wiz-actions { margin-top: 3rem; }
    .chart-row { flex-direction: column; align-items: center; }
    .chart-box { flex: 0 0 180px; width: 180px; height: 180px; }
    .scope-grid { grid-template-columns: repeat(2, 1fr); }
    .res-card { padding: 1.75rem 1.5rem; }
}
@media (max-width: 600px) {
    .wiz-card { padding: 2.25rem 1.75rem; border-radius: 20px; }
    .step-dot { width: 40px; height: 40px; font-size: 0.95rem; }
    .step-line { max-width: 50px; }
    .step-label-item { font-size: 0.65rem; }
    .sel-grid.g3 { grid-template-columns: repeat(2, 1fr); }
    .sel-tile { padding: 1.75rem 1.25rem; gap: 0.75rem; }
    .sel-tile .t-ico { font-size: 2rem; }
    .sel-tile .t-desc { display: none; }
    .yn-grid { gap: 1rem; }
    .branch-inner { padding: 1.25rem 1.25rem; }
    .scope-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .scope-card { padding: 1.5rem 1rem; }
    .scope-val { font-size: 1.8rem; }
    .res-actions { flex-direction: column; align-items: stretch; gap: 0.85rem; }
    .res-actions button, .res-actions .btn-dl { justify-content: center; width: 100%; }
    .upgrade-card { padding: 2rem 1.5rem; }
}
@media (max-width: 480px) {
    .wiz-card { padding: 2rem 1.25rem; border-radius: 18px; width: 98%; }
    .step-dot { width: 36px; height: 36px; font-size: 0.85rem; }
    .step-dot.active { transform: scale(1.05); }
    .step-line { max-width: 32px; }
    .step-label-item span { display: none; }
    .step-label-item.active span { display: inline; }
    .sel-grid.g2, .sel-grid.g3, .sel-grid.g3-auto { grid-template-columns: repeat(2, 1fr); gap: 0.85rem; }
    .sel-tile { padding: 1.5rem 0.85rem; gap: 0.6rem; border-radius: 14px; }
    .sel-tile .t-ico { font-size: 1.75rem; }
    .sel-tile .t-label { font-size: 0.88rem; }
    .yn-tile { padding: 1.5rem 1rem; }
    .yn-tile .t-ico { font-size: 2rem; }
    .form-inp-lg { padding: 1.2rem 1.25rem 1.2rem 3rem; font-size: 1.1rem; }
    .inp-pre-lg { font-size: 1.1rem; left: 1.25rem; }
    .btn-wiz-back, .btn-wiz-next { padding: 0.85rem 1.5rem; font-size: 0.95rem; }
    .btn-skip { font-size: 0.8rem; }
    .wiz-actions { margin-top: 2.5rem; }
    .q-sub { font-size: 0.9rem; }
    .chart-box { flex: 0 0 150px; width: 150px; height: 150px; }
    .scope-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
    .total-card { padding: 2.5rem 1.5rem; }
    .total-num { font-size: 4rem; }
}
@media (max-width: 360px) {
    .wiz-card { padding: 1.75rem 1rem; }
    .step-dot { width: 32px; height: 32px; font-size: 0.8rem; }
    .step-line { max-width: 24px; }
    .sel-tile { padding: 1.25rem 0.75rem; }
    .sel-tile .t-ico { font-size: 1.5rem; }
}

/* ── Print styles (PDF via window.print) ── */
@media print {
    @page { margin: 18mm 14mm; size: A4; }
    body { background: white !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .calc-page, #header, #footer, .upgrade-card, .res-actions-card, .btn-recalc, header, footer { display: none !important; }
    #results-section { display: block !important; padding-top: 0 !important; width: 100% !important; max-width: none !important; margin: 0 !important; }
    .res-hero { margin-bottom: 1.5rem; }
    .res-hero .badge-pill { display: none; }
    .total-card { -webkit-print-color-adjust: exact; print-color-adjust: exact; padding: 2.5rem 2rem; border-radius: 16px; }
    .res-card { box-shadow: none !important; border: 1px solid #e5e7eb !important; background: white !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; page-break-inside: avoid; animation: none !important; opacity: 1 !important; transform: none !important; }
    .driver-fill, #chart-legend .leg-dot { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    #results-section::before { content: 'FSBee · Free Carbon Calculator Report · ' attr(data-date); display: block; font-family: 'Inter', sans-serif; font-size: 0.75rem; color: #9ca3af; margin-bottom: 1rem; padding-bottom: 0.75rem; border-bottom: 1px solid #e5e7eb; }
}
