/* ==========================================================================
   BigBattery Solar Sizing Tool — Design System
   ========================================================================== */

.bb-solar-calc,
.bb-solar-calc *,
.bb-solar-calc *::before,
.bb-solar-calc *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Brand */
    --bb-blue:        #155ea0;
    --bb-blue-dark:   #0f4a7a;
    --bb-blue-light:  #1a6eb8;
    --bb-blue-50:     #eef5fc;
    --bb-blue-100:    #d6e6f4;

    /* Solar accent */
    --sun:            #f59e0b;
    --sun-soft:       #fef3c7;

    /* Status */
    --success:        #10b981;
    --success-dark:   #059669;
    --success-soft:   #d1fae5;
    --warning:        #f59e0b;
    --danger:         #ef4444;

    /* Neutrals */
    --ink:            #0b1929;
    --ink-700:        #1f2937;
    --ink-500:        #4b5563;
    --ink-400:        #6b7280;
    --ink-300:        #9ca3af;
    --ink-200:        #d1d5db;
    --ink-100:        #e5e7eb;
    --ink-50:         #f3f4f6;
    --bg:             #f7fafc;
    --bg-warm:        #fbf8f3;
    --white:          #ffffff;

    /* Gradients */
    --grad-primary:   linear-gradient(135deg, #155ea0 0%, #1a6eb8 100%);
    --grad-sun:       linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    --grad-success:   linear-gradient(135deg, #10b981 0%, #059669 100%);
    --grad-hero:      linear-gradient(180deg, #f0f7ff 0%, #fffbeb 100%);

    /* Type */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Radii */
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 16px;
    --r-xl: 20px;
    --r-2xl: 24px;
    --r-full: 999px;

    /* Shadows */
    --shadow-sm:  0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow:     0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.06);
    --shadow-md:  0 10px 25px -5px rgba(15, 23, 42, 0.10), 0 8px 10px -6px rgba(15, 23, 42, 0.05);
    --shadow-lg:  0 25px 50px -12px rgba(15, 23, 42, 0.18);
    --shadow-blue: 0 10px 30px -8px rgba(21, 94, 160, 0.45);
    --shadow-green: 0 10px 30px -8px rgba(5, 150, 105, 0.4);
}

html { scroll-behavior: smooth; }

.bb-solar-calc img { max-width: 100%; display: block; }
.bb-solar-calc button { font-family: inherit; cursor: pointer; }

.hidden { display: none !important; }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0;
    margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}

/* ==========================================================================
   Top navigation
   ========================================================================== */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--ink-100);
    padding: 14px 32px;
    display: flex;
    align-items: center;
    gap: 24px;
}
.nav-logo {
    font-weight: 900;
    font-size: 22px;
    color: var(--bb-blue);
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-logo-mark {
    width: 32px; height: 32px;
    background: var(--grad-primary);
    border-radius: 8px;
    display: grid; place-items: center;
    color: white; font-size: 18px;
}
.nav-spacer { flex: 1; }
.nav-link {
    color: var(--ink-500);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: var(--r-sm);
    transition: background 0.2s, color 0.2s;
}
.nav-link:hover { background: var(--ink-50); color: var(--ink-700); }
.nav-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--bb-blue);
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    padding: 8px 14px;
    border: 1.5px solid var(--bb-blue-100);
    border-radius: var(--r-full);
    transition: all 0.2s;
}
.nav-phone:hover {
    background: var(--bb-blue);
    color: white;
    border-color: var(--bb-blue);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    background: var(--grad-hero);
    padding: 64px 32px 80px;
    position: relative;
    overflow: hidden;
}
.hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: var(--bb-blue);
    padding: 6px 14px 6px 8px;
    border-radius: var(--r-full);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--ink-100);
}
.hero-badge-dot {
    width: 18px; height: 18px;
    background: var(--success);
    border-radius: 50%;
    display: grid; place-items: center;
    color: white;
    font-size: 11px;
    animation: pulseRing 2.4s infinite;
}
@keyframes pulseRing {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.5); }
    50%      { box-shadow: 0 0 0 8px rgba(16,185,129,0); }
}
.hero h1 {
    font-size: clamp(34px, 5vw, 56px);
    font-weight: 900;
    color: var(--ink);
    letter-spacing: -0.025em;
    line-height: 1.05;
    margin-bottom: 18px;
}
.hero h1 .accent {
    background: linear-gradient(135deg, var(--bb-blue) 0%, var(--sun) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bb-solar-calc .r-hero h2 {
    color: white;
}
.hero-sub {
    font-size: clamp(15px, 2vw, 18px);
    color: var(--ink-500);
    max-width: 640px;
    margin: 0 auto 32px;
}

/* Inline 3-step "how it works" inside hero */
.hero-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    max-width: 920px;
    margin: 0 auto 32px;
    flex-wrap: wrap;
}
.hero-step {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    border: 1px solid var(--ink-100);
    border-radius: var(--r-md);
    padding: 12px 16px;
    box-shadow: var(--shadow-sm);
    text-align: left;
    flex: 1 1 220px;
    max-width: 280px;
    min-width: 200px;
}
.hero-step-num {
    width: 28px; height: 28px;
    background: var(--grad-primary);
    color: white;
    border-radius: 50%;
    display: grid; place-items: center;
    font-weight: 800;
    font-size: 13px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px -2px rgba(21, 94, 160, 0.45);
}
.hero-step-body {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}
.hero-step-body strong {
    color: var(--ink);
    font-weight: 700;
    font-size: 13px;
}
.hero-step-body span {
    color: var(--ink-500);
    font-size: 12px;
    margin-top: 2px;
}
.hero-step-arrow {
    color: var(--bb-blue);
    font-size: 18px;
    font-weight: 600;
    opacity: 0.6;
    flex-shrink: 0;
}
@media (max-width: 720px) {
    .hero-step-arrow { display: none; }
    .hero-step {
        flex: 1 1 100%;
        max-width: 420px;
    }
}

/* Start card */
.start-card {
    background: white;
    border-radius: var(--r-2xl);
    box-shadow: var(--shadow-lg);
    padding: 28px;
    max-width: 720px;
    margin: 0 auto;
    border: 1px solid var(--ink-100);
    text-align: left;
}
.start-card-wide {
    max-width: 960px;
    padding: 32px;
}

/* Header strip at the top of the start-card mirrors the wizard's progress bar */
.start-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 18px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--ink-100);
}
.progress-dots-mini { gap: 8px; }
.progress-dots-mini .progress-dot {
    height: 6px;
    width: 32px;
}
.progress-dots-mini .progress-dot.active { width: 48px; }
.start-card-step-label {
    color: var(--ink-500);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.start-section {
    margin-bottom: 28px;
}
.start-section:last-of-type {
    margin-bottom: 24px;
}
/* Stack: ZIP input on top (constrained width), graph spans full width below */
.zip-block {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.zip-input { max-width: 340px; }
.zip-preview {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bb-blue-50);
    border: 1px solid var(--bb-blue-100);
    border-radius: var(--r-md);
    padding: 12px 18px;
    animation: zipFadeIn 0.35s ease;
}
@keyframes zipFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}
.zip-preview.hidden { display: none; }
.zip-preview-icon {
    font-size: 26px;
    flex-shrink: 0;
}
.zip-preview-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.zip-preview-body strong {
    color: var(--ink);
    font-size: 15px;
    font-weight: 800;
}
.zip-preview-stats {
    display: flex;
    gap: 18px;
    font-size: 13px;
    color: var(--ink-500);
    flex-wrap: wrap;
}
.zip-preview-stats strong {
    color: var(--ink-700);
    font-weight: 700;
    font-size: 13px;
}
@media (max-width: 720px) {
    .zip-block { grid-template-columns: 1fr; }
    .start-card-wide { padding: 22px; }
}
.start-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 14px;
    display: flex; align-items: center; gap: 10px;
}
.start-card-title-num {
    width: 24px; height: 24px;
    background: var(--bb-blue);
    color: white;
    border-radius: 50%;
    display: grid; place-items: center;
    font-size: 12px;
    font-weight: 700;
}
.start-row {
    display: grid;
    grid-template-columns: 1.1fr 1.4fr auto;
    gap: 12px;
    margin-bottom: 18px;
}
.start-input,
.start-select {
    background: var(--bg);
    border: 2px solid var(--ink-100);
    border-radius: var(--r-md);
    padding: 16px 18px;
    font-size: 16px;
    font-weight: 500;
    color: var(--ink);
    transition: all 0.2s;
    font-family: inherit;
    width: 100%;
    outline: none;
    appearance: none;
}
.start-input:focus,
.start-select:focus {
    border-color: var(--bb-blue);
    background: white;
    box-shadow: 0 0 0 4px var(--bb-blue-50);
}
.start-input::placeholder { color: var(--ink-300); font-weight: 400; }
.start-select {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    font-size: 15px;
    padding: 16px 28px;
    border-radius: var(--r-md);
    border: none;
    transition: all 0.2s;
    text-decoration: none;
    white-space: nowrap;
}
.btn-primary {
    background: var(--grad-primary);
    color: white;
    box-shadow: var(--shadow-blue);
}
.btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 14px 36px -8px rgba(21, 94, 160, 0.55);
}
.btn-primary:disabled { opacity: 0.55; cursor: not-allowed; box-shadow: none; }
.btn-ghost {
    background: transparent;
    color: var(--bb-blue);
    border: 1.5px solid var(--bb-blue-100);
}
.btn-ghost:hover { background: var(--bb-blue-50); border-color: var(--bb-blue); }
.btn-success {
    background: var(--grad-success);
    color: white;
    box-shadow: 0 10px 30px -8px rgba(16,185,129,0.45);
}
.btn-success:hover:not(:disabled) { transform: translateY(-1px); }
.btn-block { width: 100%; }
.btn-lg { padding: 18px 32px; font-size: 16px; }

.start-paths {
    display: flex;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px dashed var(--ink-100);
    font-size: 13px;
    color: var(--ink-500);
    flex-wrap: wrap;
}
.start-path-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--ink-50);
    padding: 6px 12px;
    border-radius: var(--r-full);
    font-weight: 600;
    color: var(--ink-700);
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}
.start-path-pill:hover { background: var(--bb-blue-50); border-color: var(--bb-blue-100); color: var(--bb-blue); }

/* Trust strip */
.trust-strip {
    margin-top: 48px;
    padding: 20px 24px;
    background: white;
    border-radius: var(--r-lg);
    border: 1px solid var(--ink-100);
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--ink-500);
}
.trust-item strong { color: var(--ink); font-weight: 800; }
.trust-icon {
    width: 32px; height: 32px;
    background: var(--bb-blue-50);
    color: var(--bb-blue);
    border-radius: 8px;
    display: grid; place-items: center;
    font-size: 16px;
}
.trust-icon.gold { background: var(--sun-soft); color: var(--sun); }
.trust-icon.green { background: var(--success-soft); color: var(--success-dark); }

/* Hero side decorations */
.hero-deco {
    position: absolute;
    pointer-events: none;
    opacity: 0.35;
    z-index: 0;
}
.hero-deco-sun {
    top: 60px; right: 8%;
    width: 140px; height: 140px;
    background: radial-gradient(circle at center, var(--sun) 0%, transparent 70%);
    border-radius: 50%;
}
.hero-deco-grid {
    bottom: -40px; left: -40px;
    width: 280px; height: 280px;
    background-image: radial-gradient(var(--bb-blue) 1px, transparent 1px);
    background-size: 18px 18px;
    opacity: 0.08;
}

/* ==========================================================================
   How it works (below hero, before wizard starts)
   ========================================================================== */
.how-it-works {
    padding: 64px 32px;
    background: white;
}
.section-shell { max-width: 1100px; margin: 0 auto; }
.section-head {
    text-align: center;
    margin-bottom: 40px;
}
.eyebrow {
    color: var(--bb-blue);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.section-head h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}
.section-head p {
    color: var(--ink-500);
    font-size: 16px;
    max-width: 580px;
    margin: 0 auto;
}
.how-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.how-card {
    background: var(--bg);
    border: 1px solid var(--ink-100);
    border-radius: var(--r-lg);
    padding: 28px 24px;
    transition: all 0.3s;
}
.how-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--bb-blue-100);
}
.how-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    background: var(--bb-blue);
    color: white;
    border-radius: 10px;
    font-weight: 800;
    margin-bottom: 14px;
}
.how-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 6px;
}
.how-card p {
    color: var(--ink-500);
    font-size: 14px;
    line-height: 1.6;
}

/* ==========================================================================
   Wizard
   ========================================================================== */
.wizard {
    display: none;
    min-height: 100vh;
    background: var(--bg);
    padding-bottom: 80px;
}
.wizard.active { display: block; }

.wizard-bar {
    position: sticky;
    top: 60px;
    z-index: 50;
    background: white;
    border-bottom: 1px solid var(--ink-100);
    padding: 14px 32px;
    box-shadow: var(--shadow-sm);
}
.wizard-bar-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
}
.wizard-back {
    background: transparent;
    border: none;
    color: var(--ink-500);
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: var(--r-sm);
    transition: background 0.2s;
}
.wizard-back:hover { background: var(--ink-50); color: var(--ink-700); }
.progress-dots {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
}
.progress-dot {
    height: 6px;
    width: 36px;
    background: var(--ink-100);
    border-radius: 4px;
    transition: all 0.3s;
}
.progress-dot.active {
    background: var(--bb-blue);
    width: 56px;
}
.progress-dot.done { background: var(--success); }

.estimate-pill {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    padding: 6px 14px;
    background: var(--sun-soft);
    border: 1px solid #fde68a;
    border-radius: var(--r-md);
    font-size: 12px;
    color: #b45309;
    line-height: 1.2;
}
.estimate-pill-value {
    font-size: 15px;
    font-weight: 800;
    color: var(--ink);
    margin-top: 1px;
}

/* Wizard content */
.wizard-content {
    max-width: 880px;
    margin: 40px auto 0;
    padding: 0 24px;
}
.wizard-step {
    display: none;
    animation: fadeUp 0.4s ease;
}
.wizard-step.active { display: block; }
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.step-eyebrow {
    color: var(--bb-blue);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.step-title {
    font-size: clamp(24px, 3.6vw, 32px);
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.bb-solar-calculator-page .bb-solar-calc .step-title {
    color: #0a1931 !important;
}
.bb-solar-calculator-page .bb-solar-calc .step-title .step-title-num {
    color: #fff !important;
}
.step-title-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bb-blue);
    color: white;
    border-radius: 50%;
    font-size: 17px;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 4px 12px -2px rgba(21, 94, 160, 0.4);
}
@media (max-width: 560px) {
    .step-title-num { width: 32px; height: 32px; font-size: 14px; }
}
.step-help {
    font-size: 15px;
    color: var(--ink-500);
    margin-bottom: 30px;
    max-width: 600px;
}

/* Location confirm card */
.location-card {
    background: white;
    border: 1px solid var(--ink-100);
    border-radius: var(--r-lg);
    padding: 24px;
    margin-bottom: 24px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: center;
    box-shadow: var(--shadow-sm);
}
.location-icon {
    width: 56px; height: 56px;
    background: var(--bb-blue-50);
    color: var(--bb-blue);
    border-radius: 14px;
    display: grid; place-items: center;
    font-size: 26px;
}
.location-info { display: flex; flex-direction: column; gap: 4px; }
.location-where {
    font-weight: 700;
    font-size: 18px;
    color: var(--ink);
}
.location-stats {
    font-size: 13px;
    color: var(--ink-500);
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.location-stat { display: inline-flex; align-items: center; gap: 6px; }
.location-stat-val { font-weight: 700; color: var(--ink-700); }
.location-edit {
    background: white;
    border: 1.5px solid var(--ink-100);
    color: var(--ink-700);
    padding: 8px 14px;
    border-radius: var(--r-sm);
    font-weight: 600;
    font-size: 13px;
}
.location-edit:hover { border-color: var(--bb-blue); color: var(--bb-blue); }

/* Option cards (choice tiles) */
.option-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.option-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.option-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.option-tile {
    background: white;
    border: 2px solid var(--ink-100);
    border-radius: var(--r-lg);
    padding: 22px 20px;
    cursor: pointer;
    transition: all 0.25s;
    text-align: left;
    position: relative;
    overflow: hidden;
    font-family: inherit;
    width: 100%;
    color: var(--ink-700);
}
.option-tile:hover {
    border-color: var(--bb-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.option-tile.selected {
    border-color: var(--bb-blue);
    background: var(--bb-blue-50);
    box-shadow: 0 0 0 4px rgba(21, 94, 160, 0.08);
}
.option-tile.selected::after {
    content: "✓";
    position: absolute;
    top: 14px; right: 14px;
    width: 26px; height: 26px;
    background: var(--bb-blue);
    color: white;
    border-radius: 50%;
    display: grid; place-items: center;
    font-size: 14px; font-weight: 800;
}
.option-tile-icon {
    width: 56px; height: 56px;
    margin-bottom: 14px;
    background: var(--bg);
    border-radius: 12px;
    display: grid; place-items: center;
    font-size: 28px;
    overflow: hidden;
}
.option-tile-icon .lottie-icon {
    width: 100%; height: 100%;
}
.option-tile-title {
    font-weight: 700;
    font-size: 16px;
    color: var(--ink);
    margin-bottom: 4px;
}
.option-tile-desc {
    font-size: 13px;
    color: var(--ink-500);
    line-height: 1.45;
}
.option-tile-badge {
    position: absolute;
    top: 12px; right: 12px;
    background: var(--sun);
    color: white;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: var(--r-full);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.option-tile.selected .option-tile-badge { display: none; }

/* Method picker (3 paths) */
.method-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.method-tile {
    background: white;
    border: 2px solid var(--ink-100);
    border-radius: var(--r-lg);
    padding: 24px;
    cursor: pointer;
    transition: all 0.25s;
    text-align: left;
    position: relative;
    font-family: inherit;
    color: var(--ink-700);
}
.method-tile:hover {
    border-color: var(--bb-blue);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.method-tile.recommended::before {
    content: "Most Accurate";
    position: absolute;
    top: -10px; left: 16px;
    background: var(--success);
    color: white;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: var(--r-full);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.method-tile.selected {
    border-color: var(--bb-blue);
    background: var(--bb-blue-50);
    box-shadow: 0 0 0 4px rgba(21, 94, 160, 0.08);
}
.method-tile.selected::after {
    content: "✓";
    position: absolute;
    top: 14px; right: 14px;
    width: 26px; height: 26px;
    background: var(--bb-blue);
    color: white;
    border-radius: 50%;
    display: grid; place-items: center;
    font-size: 14px; font-weight: 800;
}
.method-tile.recommended.selected {
    border-color: var(--success);
    background: linear-gradient(180deg, var(--success-soft) 0%, var(--bb-blue-50) 100%);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}
.method-tile.recommended.selected::after {
    background: var(--success-dark);
}
.method-icon {
    width: 48px; height: 48px;
    background: var(--bb-blue-50);
    color: var(--bb-blue);
    border-radius: 12px;
    display: grid; place-items: center;
    font-size: 22px;
    margin-bottom: 14px;
}
.method-tile.recommended .method-icon {
    background: var(--success-soft);
    color: var(--success-dark);
}
.method-title {
    font-weight: 700;
    font-size: 16px;
    color: var(--ink);
    margin-bottom: 4px;
}
.method-desc {
    font-size: 13px;
    color: var(--ink-500);
    line-height: 1.5;
}
.method-time {
    margin-top: 12px;
    font-size: 12px;
    color: var(--bb-blue);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Bill input */
.bill-pad {
    background: white;
    border-radius: var(--r-lg);
    border: 1px solid var(--ink-100);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}
.bill-pad-tabs {
    display: flex;
    gap: 6px;
    background: var(--bg);
    padding: 4px;
    border-radius: var(--r-md);
    margin-bottom: 24px;
    width: fit-content;
}
.bill-tab {
    background: transparent;
    border: none;
    padding: 10px 18px;
    border-radius: var(--r-sm);
    color: var(--ink-500);
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s;
}
.bill-tab.active {
    background: white;
    color: var(--ink);
    box-shadow: var(--shadow-sm);
}
.bill-input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.field-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-700);
}
.field-input {
    background: var(--bg);
    border: 2px solid var(--ink-100);
    border-radius: var(--r-md);
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 500;
    color: var(--ink);
    transition: all 0.2s;
    font-family: inherit;
    outline: none;
    width: 100%;
}
.field-input:focus {
    border-color: var(--bb-blue);
    background: white;
    box-shadow: 0 0 0 3px var(--bb-blue-50);
}
.field-hint {
    font-size: 12px;
    color: var(--ink-400);
}
.field-input-suffix {
    position: relative;
}
.field-input-suffix span {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ink-400);
    font-size: 13px;
    font-weight: 600;
    pointer-events: none;
}
.bill-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin-top: 20px;
    border: 2px dashed var(--bb-blue-100);
    border-radius: var(--r-md);
    padding: 32px 24px;
    text-align: center;
    background: var(--bb-blue-50);
    cursor: pointer;
    transition: all 0.2s;
}
.bill-upload:hover {
    border-color: var(--bb-blue);
    background: #eef5fc;
    box-shadow: 0 0 0 4px rgba(21, 94, 160, 0.08);
}
.bill-upload-icon {
    font-size: 32px;
    margin-bottom: 8px;
}
.bill-upload-text {
    font-weight: 600;
    color: var(--ink-700);
    font-size: 14px;
}
.bill-upload-sub {
    color: var(--ink-400);
    font-size: 12px;
    margin-top: 4px;
}

/* Electricity rate input (shared by Quick Estimate + Appliance paths) */
.rate-pad {
    background: white;
    border-radius: var(--r-lg);
    border: 1px solid var(--ink-100);
    padding: 20px 28px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 16px;
}
.rate-pad.hidden { display: none; }
.rate-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 360px;
}
.rate-prefix,
.rate-suffix {
    font-weight: 700;
    color: var(--ink-700);
    font-size: 16px;
    flex-shrink: 0;
}
.rate-input {
    flex: 1;
    text-align: center;
    font-weight: 700;
}
.rate-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    background: var(--bb-blue-50);
    color: var(--bb-blue);
    border: 1px solid var(--bb-blue-100);
    border-radius: 50%;
    font-size: 10px;
    font-weight: 800;
    margin-left: 6px;
    cursor: help;
    transition: all 0.15s;
}
.rate-info:hover {
    background: var(--bb-blue);
    color: white;
}

/* Quick estimate form */
.quick-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.quick-grid .field { margin-bottom: 0; }
.quick-grid .field.full { grid-column: 1 / -1; }

/* Appliance list */
.appl-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}
.appl-row {
    background: white;
    border: 1.5px solid var(--ink-100);
    border-radius: var(--r-md);
    padding: 14px 18px;
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 16px;
    align-items: center;
    transition: all 0.2s;
}
.appl-row:hover { border-color: var(--bb-blue-100); }
.appl-row.on { border-color: var(--success); background: linear-gradient(90deg, var(--success-soft) 0%, white 60%); }
.appl-icon {
    width: 40px; height: 40px;
    background: var(--bg);
    border-radius: 10px;
    display: grid; place-items: center;
    font-size: 20px;
}
.appl-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.appl-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--ink);
}
.appl-meta {
    font-size: 12px;
    color: var(--ink-400);
}
.appl-kwh {
    font-size: 13px;
    color: var(--ink-500);
    font-weight: 600;
    background: var(--bg);
    padding: 4px 10px;
    border-radius: var(--r-sm);
}
.appl-row.on .appl-kwh { background: white; color: var(--success-dark); }

/* Switch toggle */
.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}
.switch input {
    opacity: 0; width: 0; height: 0;
}
.switch-slider {
    position: absolute;
    inset: 0;
    background: var(--ink-200);
    border-radius: 26px;
    cursor: pointer;
    transition: 0.25s;
}
.switch-slider::before {
    content: "";
    position: absolute;
    height: 20px; width: 20px;
    left: 3px; top: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.25s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}
.switch input:checked + .switch-slider { background: var(--success); }
.switch input:checked + .switch-slider::before { transform: translateX(22px); }
.switch input:focus-visible + .switch-slider {
    box-shadow: 0 0 0 3px var(--bb-blue-50);
}

/* Backup priorities */
.backup-banner {
    background: var(--bb-blue-50);
    border: 1px solid var(--bb-blue-100);
    border-radius: var(--r-md);
    padding: 16px 18px;
    margin-bottom: 20px;
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 13px;
    color: var(--ink-700);
}
.backup-banner-icon {
    font-size: 22px;
}
.slider-row {
    background: white;
    border: 1px solid var(--ink-100);
    border-radius: var(--r-md);
    padding: 20px 22px;
    margin-bottom: 16px;
}
.slider-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}
.slider-label {
    font-weight: 700;
    font-size: 15px;
    color: var(--ink);
}
.slider-value {
    font-weight: 800;
    font-size: 20px;
    color: var(--bb-blue);
}
.slider-input {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: var(--ink-100);
    border-radius: 3px;
    outline: none;
}
.slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px; height: 22px;
    background: var(--bb-blue);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(21,94,160,0.4);
    transition: transform 0.15s;
}
.slider-input::-webkit-slider-thumb:hover { transform: scale(1.15); }
.slider-input::-moz-range-thumb {
    width: 22px; height: 22px;
    background: var(--bb-blue);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}
/* Slider wraps a value bubble above the thumb (positioned by JS) */
.slider-track-wrap {
    position: relative;
    padding-top: 38px;     /* room for the floating value bubble */
}
.slider-bubble {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    background: white;
    color: var(--bb-blue);
    border: 2px solid var(--bb-blue);
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(21, 94, 160, 0.18);
    pointer-events: none;
    transition: left 0.06s ease-out;
    z-index: 2;
}
.slider-bubble::after {
    content: "";
    position: absolute;
    bottom: -7px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 7px solid var(--bb-blue);
}
.slider-bubble::before {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid white;
    z-index: 1;
}

.slider-anchors {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 11px;
    color: var(--ink-400);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Wizard nav */
.wizard-nav {
    display: flex;
    gap: 12px;
    margin-top: 32px;
    align-items: center;
}
.wizard-nav .btn-ghost { padding: 14px 22px; }
.wizard-nav .btn-primary { padding: 16px 32px; flex: 1; max-width: 300px; }

/* Side note */
.side-note {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    background: var(--sun-soft);
    border-left: 3px solid var(--sun);
    border-radius: 0 var(--r-md) var(--r-md) 0;
    margin-top: 20px;
    font-size: 13px;
    color: #78350f;
    line-height: 1.5;
}
.side-note strong { color: #78350f; font-weight: 700; }

/* ==========================================================================
   Computing screen
   ========================================================================== */
.computing {
    display: none;
    text-align: center;
    padding: 80px 24px;
}
.computing.active { display: block; }
.compute-spinner {
    width: 64px; height: 64px;
    border: 5px solid var(--bb-blue-100);
    border-top-color: var(--bb-blue);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
    margin: 0 auto 24px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.compute-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 8px;
}
.compute-sub {
    color: var(--ink-500);
    font-size: 14px;
    margin-bottom: 24px;
}
.compute-checks {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 360px;
    margin: 0 auto;
    text-align: left;
}
.compute-check {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--ink-400);
    padding: 10px 14px;
    background: var(--bg);
    border-radius: var(--r-md);
    transition: all 0.3s;
}
.compute-check.done {
    color: var(--ink-700);
    background: var(--success-soft);
}
.compute-check-dot {
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--ink-200);
    display: grid; place-items: center;
    color: white;
    font-size: 11px;
    font-weight: 800;
    flex-shrink: 0;
}
.compute-check.done .compute-check-dot { background: var(--success); }
.compute-check.done .compute-check-dot::after { content: "✓"; }

/* ==========================================================================
   Results
   ========================================================================== */
.results {
    display: none;
    background: var(--bg);
    padding: 48px 24px 80px;
}
.results.active { display: block; }
.results-shell {
    max-width: 1100px;
    margin: 0 auto;
}

/* Hero block */
.r-hero {
    background: linear-gradient(135deg, #0b3d6a 0%, #155ea0 50%, #1a6eb8 100%);
    color: white;
    border-radius: var(--r-2xl);
    padding: 40px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}
.r-hero::after {
    content: "";
    position: absolute;
    top: -40px; right: -40px;
    width: 240px; height: 240px;
    background: radial-gradient(circle, rgba(245,158,11,0.35) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.r-hero-eyebrow {
    color: #fef3c7;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.r-hero h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 24px;
}
.r-hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    position: relative;
    z-index: 1;
}
.r-stat {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--r-md);
    padding: 16px 18px;
}
.r-stat-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.85;
    margin-bottom: 6px;
}
.r-stat-value {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
}
.r-stat-value .small {
    font-size: 14px;
    opacity: 0.8;
    font-weight: 600;
    margin-left: 4px;
}
.r-stat.gold .r-stat-value { color: #fde68a; }
.r-stat.green .r-stat-value { color: #86efac; }

/* ==========================================================================
   Solar Production Forecast — Daily Energy Flow Chart
   ========================================================================== */
.solar-forecast {
    background: white;
    border: 1px solid var(--ink-100);
    border-radius: var(--r-2xl);
    padding: 32px;
    margin-bottom: 24px;
}
.forecast-head {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--ink-100);
}
.forecast-head h3 {
    font-size: 22px;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.01em;
    margin: 4px 0 6px;
}
.forecast-head h3 span { color: var(--sun); }
.forecast-head p {
    color: var(--ink-500);
    font-size: 13px;
    line-height: 1.5;
}

/* Day chart layout */
.day-chart {
    position: relative;
    background: linear-gradient(180deg, #eef5fb 0%, #f9fafb 60%, #f3f4f6 100%);
    border: 1px solid var(--ink-100);
    border-radius: var(--r-lg);
    padding: 12px 14px 6px;
    overflow: visible;
}
.day-chart-sky {
    position: relative;
    height: 36px;
}
.sky-icon {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    font-size: 22px;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.08));
    animation: skyFloat 4s ease-in-out infinite;
}
.sky-icon.sky-cloud {
    font-size: 26px;
    animation-duration: 6s;
}
@keyframes skyFloat {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(-3px); }
}

.day-chart-title {
    text-align: center;
    font-size: 15px;
    font-weight: 800;
    color: var(--ink);
    margin: 4px 0 14px;
    letter-spacing: -0.01em;
    line-height: 1.35;
}
.day-chart-svg-wrap {
    height: 320px;
    width: 100%;
    position: relative;
}
.day-chart-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.day-chart-axis {
    position: relative;
    height: 22px;
    border-top: 1px solid var(--ink-200);
    margin-top: -1px;
}
.day-chart-axis span {
    position: absolute;
    top: 6px;
    transform: translateX(-50%);
    font-size: 11px;
    font-weight: 700;
    color: var(--ink-500);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.day-chart-batt {
    position: relative;
    height: 40px;
    border-top: 1px dashed var(--ink-200);
    margin-top: 4px;
}
.batt-cell {
    position: absolute;
    top: 6px;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 2px;
}
.batt-glyph {
    font-size: 22px;
    filter: hue-rotate(80deg) saturate(1.3);
}
.batt-arrow {
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
}
.batt-up   { color: var(--success-dark); }
.batt-down { color: var(--sun); }

/* Legend */
.day-chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 18px;
    padding: 14px 16px;
    background: var(--bg);
    border-radius: var(--r-md);
    font-size: 12px;
    color: var(--ink-700);
    font-weight: 600;
}
.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.legend-swatch {
    width: 16px;
    height: 10px;
    border-radius: 2px;
    flex-shrink: 0;
}
.sw-yellow { background: #facc15; height: 4px; margin-top: 3px; border-radius: 2px; }
.sw-lgreen { background: rgba(134, 239, 172, 0.95); }
.sw-dgreen { background: rgba(34, 197, 94, 0.95); }
.sw-orange { background: rgba(245, 158, 11, 0.95); }
.sw-gray   { background: rgba(156, 163, 175, 0.85); }

.day-chart-caption {
    color: var(--ink-400);
    font-size: 12px;
    margin-top: 12px;
    line-height: 1.5;
}

@media (max-width: 720px) {
    .solar-forecast { padding: 22px; }
    .day-chart-svg-wrap { height: 170px; }
    .day-chart-sky { height: 30px; }
    .sky-icon { font-size: 18px; }
    .sky-icon.sky-cloud { font-size: 22px; }
    .batt-glyph { font-size: 18px; }
    .day-chart-axis span { font-size: 10px; }
}

/* ==========================================================================
   Hero ZIP preview — production-forecast graph (full width below ZIP input)
   ========================================================================== */
.zip-graph {
    background: white;
    border: 1px solid var(--ink-100);
    border-radius: var(--r-md);
    padding: 12px 14px 10px;
    box-shadow: var(--shadow-sm);
    animation: zipFadeIn 0.35s ease;
}
.zip-graph.hidden { display: none; }
.zip-curve-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 6px;
}
.zip-curve-title {
    font-size: 11px;
    font-weight: 800;
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: 0.09em;
}
.zip-curve-zip {
    font-size: 10px;
    font-weight: 700;
    color: var(--bb-blue);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* State outline locator map (top-right of forecast card) */
.zip-state-map {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}
.zip-state-svg {
    width: 92px;
    height: 84px;
    display: block;
    overflow: visible;
}
.zip-state-label {
    font-size: 12px;
    font-weight: 800;
    color: var(--bb-blue);
    letter-spacing: 0.04em;
}
.zip-state-fallback {
    font-size: 11px;
    font-weight: 700;
    color: var(--bb-blue);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
/* Pin drop-in + pulsing rings */
.zip-pin {
    transform-origin: center bottom;
    animation: pinDrop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.25));
}
@keyframes pinDrop {
    0%   { transform: translateY(-8px) scale(0.6); opacity: 0; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}
/* Soft glow that breathes in place behind the pin */
.zip-glow {
    transform-box: fill-box;
    transform-origin: center;
    filter: blur(3px);
    animation: zipGlow 1.8s ease-in-out infinite;
}
@keyframes zipGlow {
    0%, 100% { opacity: 0.22; transform: scale(0.85); }
    50%      { opacity: 0.55; transform: scale(1.18); }
}
.zip-curve-svg {
    width: 100%;
    height: 280px;
    display: block;
}
.zip-curve-caption {
    margin-top: 6px;
    padding-top: 8px;
    border-top: 1px dashed var(--ink-100);
    font-size: 11px;
    color: var(--ink-500);
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.zip-curve-caption strong { color: var(--ink-700); font-weight: 700; }
.zip-curve-caption em { font-style: italic; color: var(--ink-500); }
.zip-curve-legend-band {
    display: inline-block;
    width: 16px;
    height: 12px;
    background: rgba(251, 191, 36, 0.30);
    border: 1px dashed rgba(245, 158, 11, 0.65);
    border-radius: 2px;
    flex-shrink: 0;
    margin-top: 3px;
}

/* ESS disclaimer under the use-case tiles */
.ess-disclaimer {
    margin-top: 14px;
    padding: 12px 16px;
    background: var(--bb-blue-50);
    border: 1px solid var(--bb-blue-100);
    border-radius: var(--r-md);
    font-size: 13px;
    color: var(--ink-700);
    line-height: 1.45;
}
.ess-disclaimer strong {
    color: var(--bb-blue);
    font-weight: 800;
}

/* Compatible-solar-array info card on results page */
.panel-spec {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fde68a;
    border-radius: var(--r-lg);
    padding: 20px 22px;
    margin-bottom: 24px;
}
.panel-spec-header {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.panel-spec-icon {
    font-size: 32px;
    flex-shrink: 0;
    line-height: 1;
}
.panel-spec-body {
    flex: 1;
}
.panel-spec-title {
    font-size: 11px;
    font-weight: 800;
    color: #b45309;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}
.panel-spec-line {
    font-size: 17px;
    color: var(--ink);
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 6px;
}
.panel-spec-line strong {
    color: var(--ink);
    font-weight: 800;
}
.panel-spec-note {
    font-size: 12px;
    color: #78350f;
    line-height: 1.5;
}

.nec-string-config {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed rgba(180, 83, 9, 0.35);
}
.nec-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: white;
    border: 1px solid #fde68a;
    border-radius: var(--r-md);
    padding: 12px 14px;
}
.nec-row {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) 2.4fr;
    align-items: baseline;
    gap: 14px;
    padding: 4px 0;
    border-bottom: 1px dashed rgba(180, 83, 9, 0.10);
    font-size: 13px;
}
.nec-row:last-child { border-bottom: none; }
.nec-label {
    font-size: 11px;
    font-weight: 700;
    color: #92400e;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.nec-value { color: var(--ink); font-size: 13px; line-height: 1.45; }
.nec-value strong { font-weight: 800; color: var(--ink); }
.nec-sub { font-size: 11px; color: #78350f; margin-left: 4px; }
.nec-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: var(--r-full);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
}
.nec-ok   { background: #d1fae5; color: #047857; border: 1px solid #6ee7b7; }
.nec-warn { background: #fee2e2; color: #b91c1c; border: 1px solid #fca5a5; }
.nec-warnings {
    margin-top: 10px;
    padding: 10px 12px;
    background: #fee2e2;
    border: 1px solid #fca5a5;
    border-radius: var(--r-sm);
    font-size: 12px;
    color: #991b1b;
    line-height: 1.5;
}
.nec-note {
    margin-top: 10px;
    font-size: 11px;
    color: #78350f;
    line-height: 1.5;
    opacity: 0.9;
}

.forecast-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}
.forecast-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    background: var(--bb-blue-50);
    border: 1px solid var(--bb-blue-100);
    border-radius: var(--r-full);
    font-size: 12px;
    color: var(--ink-700);
    font-weight: 600;
    white-space: nowrap;
}
.forecast-chip strong {
    color: var(--bb-blue);
    font-weight: 800;
}
@media (max-width: 720px) {
    .nec-row { grid-template-columns: 1fr; gap: 2px; }
}

/* Compare panel */
.compare {
    background: white;
    border: 1px solid var(--ink-100);
    border-radius: var(--r-2xl);
    padding: 32px;
    margin-bottom: 24px;
}
.compare-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}
.compare-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--ink);
}
.compare-subtitle {
    color: var(--ink-500);
    font-size: 14px;
    line-height: 1.55;
    margin-top: 6px;
}
.compare-subtitle strong {
    color: var(--ink-700);
    font-weight: 700;
}
.compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}
.compare-card {
    border-radius: var(--r-lg);
    padding: 24px;
    position: relative;
}
.compare-card.without {
    background: #fee2e2;
    border: 1px solid #fecaca;
}
.compare-card.with {
    background: var(--success-soft);
    border: 1px solid #a7f3d0;
}
.compare-card-title {
    font-weight: 700;
    color: var(--ink);
    font-size: 14px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.compare-bill {
    font-size: 36px;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}
.compare-bill .small {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-500);
    margin-left: 4px;
}
.compare-bill-sub {
    color: var(--ink-500);
    font-size: 13px;
    margin-bottom: 16px;
}
.compare-bars { margin-top: 16px; }
.compare-bar-row {
    display: grid;
    grid-template-columns: 50px 1fr auto;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 11px;
    color: var(--ink-500);
}
.compare-bar {
    height: 8px;
    background: #fca5a5;
    border-radius: 3px;
}
.compare-card.with .compare-bar { background: #6ee7b7; }
.compare-bar.tiny { width: 12%; }

.payback-vis {
    background: var(--bg);
    border-radius: var(--r-md);
    padding: 20px;
    text-align: center;
}
.payback-bar {
    height: 14px;
    background: var(--ink-100);
    border-radius: 7px;
    margin: 16px 0 8px;
    position: relative;
    overflow: hidden;
}
.payback-fill {
    height: 100%;
    background: var(--grad-success);
    border-radius: 7px;
    transition: width 1s ease;
}
.payback-marker {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--ink-500);
}

/* Cost breakdown */
.cost-block {
    background: white;
    border: 1px solid var(--ink-100);
    border-radius: var(--r-2xl);
    padding: 28px 32px;
    margin-bottom: 24px;
}
.cost-block h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.cost-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--ink-50);
    font-size: 14px;
}
.cost-line:last-of-type { border-bottom: none; }
.cost-line-label {
    color: var(--ink-500);
    display: flex;
    align-items: center;
    gap: 6px;
}
.cost-line-label .info {
    width: 16px; height: 16px;
    background: var(--ink-100);
    border-radius: 50%;
    display: grid; place-items: center;
    font-size: 10px;
    color: var(--ink-400);
    cursor: help;
    font-weight: 700;
}
.cost-line-value {
    font-weight: 700;
    color: var(--ink);
}
.cost-line-value.credit { color: var(--success-dark); }
.cost-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 2px solid var(--ink-100);
}
.cost-total--solo {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}
.cost-block-note {
    margin-top: 14px;
    font-size: 12px;
    color: var(--ink-400);
    line-height: 1.5;
    max-width: 640px;
}
.cost-total-label {
    color: var(--ink);
    font-weight: 700;
    font-size: 15px;
}
.cost-total-value {
    color: var(--bb-blue);
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.financing-card {
    background: var(--bb-blue-50);
    border: 1px solid var(--bb-blue-100);
    border-radius: var(--r-md);
    padding: 18px 20px;
    margin-top: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.financing-text {
    flex: 1;
    min-width: 200px;
}
.financing-rate {
    font-size: 13px;
    color: var(--bb-blue);
    font-weight: 700;
    margin-bottom: 4px;
}
.financing-amt {
    font-size: 22px;
    font-weight: 800;
    color: var(--ink);
}
.financing-amt .small {
    font-size: 14px;
    color: var(--ink-500);
    font-weight: 600;
}

/* Kit recommendations */
.kits {
    margin-bottom: 32px;
}
.kits-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}
.kits-head h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--ink);
}
.kits-tier-blurbs {
    color: var(--ink-500);
    margin-top: 10px;
    line-height: 1.55;
    font-size: 14px;
}
.kits-tier-blurbs p {
    margin-bottom: 6px;
}
.kits-tier-blurbs p:last-child { margin-bottom: 0; }
.kits-tier-blurbs strong {
    color: var(--ink);
    font-weight: 800;
}
.kits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.kit-card {
    background: white;
    border: 2px solid var(--ink-100);
    border-radius: var(--r-xl);
    padding: 24px;
    position: relative;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}
.kit-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--bb-blue-100);
}
.kit-card.featured {
    border-color: var(--bb-blue);
    box-shadow: 0 0 0 4px var(--bb-blue-50), var(--shadow);
    transform: translateY(-4px);
}
.kit-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--grad-primary);
    color: white;
    padding: 6px 14px;
    border-radius: var(--r-full);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: var(--shadow);
}
.kit-tier {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 800;
    color: var(--bb-blue);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
    flex-wrap: wrap;
}
.kit-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--bb-blue-50);
    color: var(--bb-blue);
    border: 1px solid var(--bb-blue-100);
    padding: 2px 4px 2px 8px;
    border-radius: var(--r-full);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: none;
}
.kit-pill-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: white;
    color: var(--bb-blue);
    border: 1px solid var(--bb-blue-100);
    border-radius: 50%;
    font-size: 10px;
    font-weight: 800;
    cursor: help;
    transition: all 0.15s;
}
.kit-pill-info:hover {
    background: var(--bb-blue);
    color: white;
    border-color: var(--bb-blue);
}
.kit-name {
    font-size: 18px;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}
.kit-image {
    background: var(--bg);
    border-radius: var(--r-md);
    height: 130px;
    display: grid; place-items: center;
    margin-bottom: 16px;
    overflow: hidden;
}
.kit-image img {
    max-width: 80%;
    max-height: 120px;
    object-fit: contain;
}
.kit-price {
    font-size: 30px;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.02em;
    line-height: 1;
}
.kit-price-sub {
    font-size: 13px;
    color: var(--ink-500);
    margin-top: 4px;
    margin-bottom: 18px;
}
.kit-price-sub .credit {
    color: var(--success-dark);
    font-weight: 700;
}
.kit-finance {
    background: var(--bb-blue-50);
    color: var(--bb-blue);
    padding: 6px 12px;
    border-radius: var(--r-sm);
    font-size: 12px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 16px;
}
.kit-bom {
    list-style: none;
    margin-bottom: 18px;
    padding: 16px 0;
    border-top: 1px dashed var(--ink-100);
    border-bottom: 1px dashed var(--ink-100);
    flex: 1;
}
.kit-bom li {
    padding: 5px 0;
    font-size: 13px;
    color: var(--ink-700);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.kit-bom li::before {
    content: "▸";
    color: var(--bb-blue);
    font-weight: 700;
    flex-shrink: 0;
}
.kit-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 18px;
}
.kit-stat {
    background: var(--bg);
    border-radius: var(--r-sm);
    padding: 10px 8px;
    text-align: center;
}
.kit-stat-val {
    font-weight: 800;
    color: var(--ink);
    font-size: 15px;
    line-height: 1.1;
}
.kit-stat-lbl {
    font-size: 10px;
    color: var(--ink-400);
    text-transform: uppercase;
    margin-top: 2px;
    letter-spacing: 0.04em;
}
.kit-cta {
    background: var(--grad-success);
    color: white;
    border: none;
    padding: 14px;
    border-radius: var(--r-md);
    font-weight: 700;
    font-size: 14px;
    width: 100%;
    cursor: pointer;
    transition: all 0.2s;
}
.kit-cta:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: var(--shadow-green);
    filter: brightness(1.03);
}
.kit-cta:disabled {
    opacity: 0.7;
    cursor: wait;
}
.kit-cta--added {
    filter: brightness(1.08);
    box-shadow: var(--shadow-green);
}
.kit-card.featured .kit-cta { font-size: 15px; padding: 16px; }
.kit-secondary {
    background: transparent;
    color: var(--ink-500);
    border: none;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 600;
    width: 100%;
    padding: 8px;
}
.kit-secondary:hover { color: var(--bb-blue); }

/* Lead capture */
.lead {
    background: var(--grad-primary);
    color: white;
    border-radius: var(--r-2xl);
    padding: 36px 40px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}
.lead-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.lead-eyebrow {
    color: #fde68a;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.lead h3 {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    color: white;
}
.lead p {
    color: rgba(255,255,255,0.85);
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 0;
}
.lead-form {
    background: white;
    color: var(--ink);
    border-radius: var(--r-lg);
    padding: 24px;
    box-shadow: var(--shadow-lg);
}
.lead-form .field { margin-bottom: 14px; }
.lead-form .row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.lead-checkbox {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 12px;
    color: var(--ink-500);
    line-height: 1.4;
    margin-bottom: 14px;
}
.lead-checkbox input { margin-top: 3px; flex-shrink: 0; }
.lead-success {
    background: var(--success-soft);
    border: 2px solid var(--success);
    color: var(--ink);
    padding: 24px;
    border-radius: var(--r-lg);
    text-align: center;
}
.lead-success-icon {
    width: 56px; height: 56px;
    background: var(--success);
    color: white;
    border-radius: 50%;
    display: grid; place-items: center;
    font-size: 28px;
    margin: 0 auto 12px;
}

/* Reviews / Social proof */
.proof {
    background: white;
    border: 1px solid var(--ink-100);
    border-radius: var(--r-2xl);
    padding: 32px;
    margin-bottom: 24px;
}
.proof-head {
    text-align: center;
    margin-bottom: 24px;
}
.proof-stars {
    margin-bottom: 6px;
    line-height: 1;
}
/* Layered stars: gray background ★★★★★ with a clipped gold ★★★★★ on top */
.stars-wrap {
    position: relative;
    display: inline-block;
    font-size: 22px;
    letter-spacing: 2px;
    line-height: 1;
}
.stars-bg { color: var(--ink-200); }
.stars-fg {
    position: absolute;
    top: 0;
    left: 0;
    color: var(--sun);
    overflow: hidden;
    white-space: nowrap;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.proof-head h3 {
    font-size: 22px;
    font-weight: 800;
    color: var(--ink);
}
.proof-head p { color: var(--ink-500); font-size: 14px; margin-top: 4px; }
.proof-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.proof-card {
    background: var(--bg);
    border-radius: var(--r-md);
    padding: 20px;
}
.proof-card-stars {
    color: var(--sun);
    margin-bottom: 8px;
    font-size: 14px;
    letter-spacing: 1px;
}
.proof-card-quote {
    font-size: 13px;
    color: var(--ink-700);
    line-height: 1.55;
    margin-bottom: 12px;
}
.proof-card-name {
    font-weight: 700;
    font-size: 13px;
    color: var(--ink);
}
.proof-card-where {
    font-size: 12px;
    color: var(--ink-400);
}

/* FAQ */
.faq {
    background: white;
    border: 1px solid var(--ink-100);
    border-radius: var(--r-2xl);
    padding: 32px;
    margin-bottom: 24px;
}
.faq h3 {
    font-size: 22px;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 16px;
}
.faq-item {
    border-bottom: 1px solid var(--ink-100);
}
.faq-item:last-child { border-bottom: none; }
.faq-q {
    width: 100%;
    background: transparent;
    border: none;
    padding: 18px 12px;
    margin: 0 -12px;
    text-align: left;
    font-weight: 700;
    font-size: 15px;
    color: var(--ink);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-family: inherit;
    cursor: pointer;
    border-radius: var(--r-sm);
    transition: background 0.2s ease, color 0.2s ease;
}
.faq-q:hover {
    background: var(--bb-blue-50);
    color: var(--bb-blue);
}
.faq-q:focus-visible {
    outline: 2px solid var(--bb-blue);
    outline-offset: 2px;
}
.faq-q::after {
    content: "+";
    color: var(--bb-blue);
    font-size: 24px;
    font-weight: 400;
    transition: transform 0.2s;
    flex-shrink: 0;
    line-height: 1;
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
    display: none;
    padding: 0 0 18px;
    color: var(--ink-500);
    font-size: 14px;
    line-height: 1.6;
}
.faq-item.open .faq-a { display: block; }

/* Override theme global button:hover (white text) inside FAQ — keep custom hover */
.bb-solar-calculator-page .bb-solar-calc .faq-q,
.bb-solar-calculator-page .bb-solar-calc .faq-q:focus-visible {
    color: var(--ink) !important;
    opacity: 1 !important;
    box-shadow: none;
}
.bb-solar-calculator-page .bb-solar-calc .faq-q:hover {
    background: var(--bb-blue-50) !important;
    color: var(--bb-blue) !important;
}
.bb-solar-calculator-page .bb-solar-calc .faq-item.open .faq-q {
    color: var(--bb-blue) !important;
    background: var(--bb-blue-50) !important;
}
.bb-solar-calculator-page .bb-solar-calc .faq h3 {
    color: var(--ink);
}

/* Override theme global button:hover (white text) on back / ghost controls */
.bb-solar-calculator-page .bb-solar-calc .wizard-back,
.bb-solar-calculator-page .bb-solar-calc .wizard-back:hover,
.bb-solar-calculator-page .bb-solar-calc .wizard-back:focus-visible {
    background: transparent !important;
    color: var(--ink-500) !important;
    opacity: 1 !important;
}
.bb-solar-calculator-page .bb-solar-calc .wizard-back:hover {
    background: var(--ink-50) !important;
    color: var(--ink-700) !important;
}
.bb-solar-calculator-page .bb-solar-calc .wizard-nav .btn-ghost,
.bb-solar-calculator-page .bb-solar-calc .wizard-nav .btn-ghost:hover,
.bb-solar-calculator-page .bb-solar-calc .wizard-nav .btn-ghost:focus-visible {
    color: var(--bb-blue) !important;
    opacity: 1 !important;
}
.bb-solar-calculator-page .bb-solar-calc .wizard-nav .btn-ghost:hover {
    background: var(--bb-blue-50) !important;
    border-color: var(--bb-blue) !important;
}

/* Method tiles — override theme button:hover (white text) */
.bb-solar-calculator-page .bb-solar-calc .method-tile,
.bb-solar-calculator-page .bb-solar-calc .method-tile:hover,
.bb-solar-calculator-page .bb-solar-calc .method-tile:focus-visible,
.bb-solar-calculator-page .bb-solar-calc .method-tile.selected,
.bb-solar-calculator-page .bb-solar-calc .method-tile.selected:hover {
    color: var(--ink-700) !important;
    opacity: 1 !important;
}
.bb-solar-calculator-page .bb-solar-calc .method-tile .method-title {
    color: var(--ink) !important;
}

/* Bill tabs + upload dropzone — override theme button/label hover (white text) */
.bb-solar-calculator-page .bb-solar-calc .bill-tab,
.bb-solar-calculator-page .bb-solar-calc .bill-tab:hover,
.bb-solar-calculator-page .bb-solar-calc .bill-tab:focus-visible,
.bb-solar-calculator-page .bb-solar-calc .bill-tab.active,
.bb-solar-calculator-page .bb-solar-calc .bill-tab.active:hover {
    color: var(--ink-500) !important;
    background: transparent !important;
    opacity: 1 !important;
}
.bb-solar-calculator-page .bb-solar-calc .bill-tab.active,
.bb-solar-calculator-page .bb-solar-calc .bill-tab.active:hover {
    color: var(--ink) !important;
    background: #fff !important;
}
.bb-solar-calculator-page .bb-solar-calc .bill-upload,
.bb-solar-calculator-page .bb-solar-calc .bill-upload:hover,
.bb-solar-calculator-page .bb-solar-calc .bill-upload:focus-within {
    color: var(--ink-700) !important;
}
.bb-solar-calculator-page .bb-solar-calc .bill-upload-text {
    color: var(--ink-700) !important;
}
.bb-solar-calculator-page .bb-solar-calc .bill-upload-sub {
    color: var(--ink-500) !important;
}
.bb-solar-calculator-page .bb-solar-calc .bill-upload:hover {
    background: #eef5fc !important;
    border-color: var(--bb-blue) !important;
}

/* Final CTA bar */
.cta-bar {
    background: var(--ink);
    color: white;
    border-radius: var(--r-2xl);
    padding: 28px 36px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.cta-bar-text h4 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 4px;
}
.cta-bar-text p {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}
.cta-bar-actions {
    display: flex;
    gap: 12px;
}
.bb-solar-calculator-page .bb-solar-calc .cta-bar .btn-ghost,
.bb-solar-calculator-page .bb-solar-calc .cta-bar .btn-ghost:hover,
.bb-solar-calculator-page .bb-solar-calc .cta-bar .btn-ghost:focus-visible {
    color: #fff !important;
    background: transparent !important;
    border-color: rgba(255, 255, 255, 0.28) !important;
    opacity: 1 !important;
}
.bb-solar-calculator-page .bb-solar-calc .cta-bar .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.14) !important;
    border-color: rgba(255, 255, 255, 0.55) !important;
    color: #fff !important;
    transform: translateY(-1px);
}

/* Disclaimer */
.disclaimer {
    margin-top: 24px;
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: var(--r-md);
    padding: 16px 20px;
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #78350f;
    line-height: 1.6;
}
.disclaimer-icon { font-size: 18px; flex-shrink: 0; }

/* ==========================================================================
   Mobile
   ========================================================================== */
@media (max-width: 900px) {
    .start-row { grid-template-columns: 1fr; }
    .how-grid { grid-template-columns: 1fr; }
    .option-grid,
    .option-grid.cols-3,
    .option-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
    .method-grid { grid-template-columns: 1fr; }
    .bill-input-row,
    .quick-grid { grid-template-columns: 1fr; }
    .r-hero-stats { grid-template-columns: repeat(2, 1fr); }
    .compare-grid { grid-template-columns: 1fr; }
    .kits-grid { grid-template-columns: 1fr; }
    .lead-grid { grid-template-columns: 1fr; gap: 24px; }
    .lead-form .row-2 { grid-template-columns: 1fr; }
    .proof-grid { grid-template-columns: 1fr; }
    .r-hero { padding: 28px 24px; }
    .compare,
    .cost-block,
    .proof,
    .faq { padding: 24px 22px; }
    .lead { padding: 24px; }
    .nav-link { display: none; }
}

@media (max-width: 560px) {
    .nav { padding: 12px 16px; gap: 8px; }
    .nav-logo { font-size: 18px; }
    .nav-phone { font-size: 13px; padding: 6px 10px; }
    .hero { padding: 40px 16px 60px; }
    .start-card { padding: 20px; }
    .how-it-works { padding: 40px 16px; }
    .wizard-bar { padding: 12px 16px; top: 56px; }
    .wizard-bar-inner { grid-template-columns: 1fr; gap: 10px; }
    .wizard-back { justify-self: start; }
    .estimate-pill { justify-self: end; }
    .wizard-content { padding: 0 16px; margin-top: 28px; }
    .results { padding: 28px 16px 60px; }
    .option-grid,
    .option-grid.cols-3,
    .option-grid.cols-4 { grid-template-columns: 1fr; }
    .compare-card { padding: 18px; }
    .compare-bill { font-size: 28px; }
    .kit-card { padding: 20px; }
    .cta-bar { flex-direction: column; align-items: stretch; text-align: center; }
    .cta-bar-actions { justify-content: stretch; }
    .cta-bar-actions .btn { flex: 1; }
    .trust-strip { padding: 16px; gap: 12px; }
    .trust-item { font-size: 13px; }
}

/* ==========================================================================
   WordPress theme integration (shoptimizer-child)
   ========================================================================== */
.bb-solar-calculator-page .site-content,
.bb-solar-calculator-page .content-area {
    padding-top: 0;
}

.bb-solar-calculator-page .entry-header,
.bb-solar-calculator-page .archive-header,
.bb-solar-calculator-page .woocommerce-breadcrumb,
.bb-solar-calculator-page .shoptimizer-archive-header {
    display: none !important;
}

.bb-solar-calculator-page .bb-solar-calc {
    width: 100vw;
    max-width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--ink-700);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Site footer — child.css owns layout; block prototype/tool leakage from this file. */
.bb-solar-calculator-page #footer-new-section .footer {
    text-align: initial;
    background-image: linear-gradient(180deg, #235480 0%, #225E96 100%);
    background-color: transparent;
    border-top: none;
    color: #fff;
    font-size: inherit;
}
.bb-solar-calculator-page #footer-new-section .footer a {
    margin: 0;
}
.bb-solar-calculator-page #footer-new-section .footer__menu-list a,
.bb-solar-calculator-page #footer-new-section .footer__address-list a {
    color: #fff;
}
.bb-solar-calculator-page #footer-new-section .footer__body {
    display: flex;
    flex-direction: column;
    gap: 40px;
}
@media (min-width: 768px) {
    .bb-solar-calculator-page #footer-new-section .footer__body {
        flex-direction: row;
    }
}
@media (max-width: 1023px) {
    .bb-solar-calculator-page #footer-new-section .footer__body {
        display: grid;
        grid-template-areas:
            "menu contact"
            "social social"
            "members members";
        padding-bottom: 0;
        gap: 0;
    }
    .bb-solar-calculator-page #footer-new-section nav {
        grid-area: menu;
    }
    .bb-solar-calculator-page #footer-new-section address {
        grid-area: contact;
    }
    .bb-solar-calculator-page #footer-new-section .footer__social {
        grid-area: social;
        margin-bottom: 40px;
    }
    .bb-solar-calculator-page #footer-new-section .footer__members {
        grid-area: members;
    }
}

.bb-solar-calculator-page .bb-solar-calc .kit-secondary {
    display: block;
    width: 100%;
    text-align: center;
    text-decoration: none;
    margin-top: 8px;
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
}

/* Cart drawer / mobile sheet must sit above the calculator UI */
body.bb-solar-calculator-page.bb-basket-open #bb-header .bb-header__in-basket,
body.bb-solar-calculator-page.bb-basket-open #bb-header .bb-header {
    z-index: 10050;
    pointer-events: auto;
}
body.bb-solar-calculator-page.bb-basket-open #bb-header .bb-header__in-basket-body,
body.bb-solar-calculator-page.bb-basket-open #bb-header .bb-header__in-basket-items {
    pointer-events: auto;
}

body.bb-solar-calculator-page.bb-sheet-open .bb-sheet-overlay,
body.bb-solar-calculator-page.bb-sheet-open .bb-sheet.active {
    z-index: 10050;
}
