/* ========================================
   Ecostify — Dark Premium Design
   Inspired by Healvanna cost-estimator
   ======================================== */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Dark palette */
    --bg: #0a0f1a;
    --bg-raised: #0f1525;
    --bg-card: #131a2b;
    --bg-input: #0d1220;

    --border: rgba(255,255,255,0.08);
    --border-dashed: rgba(100,140,255,0.25);
    --border-hover: rgba(100,140,255,0.45);

    --text: #e2e8f0;
    --text-muted: #7a8ba8;
    --text-faint: #4a5568;

    --accent: #4d9aff;
    --accent-hover: #6bb0ff;
    --accent-glow: rgba(77,154,255,0.15);
    --accent-glow-strong: rgba(77,154,255,0.25);

    --green: #34d399;
    --green-hover: #4eeaaa;
    --green-glow: rgba(52,211,153,0.15);

    --amber: #fbbf24;
    --red: #f87171;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    --shadow-card: 0 4px 24px rgba(0,0,0,0.3);
    --shadow-glow-blue: 0 0 40px rgba(77,154,255,0.08);
    --shadow-glow-green: 0 0 40px rgba(52,211,153,0.08);

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* offset for fixed navbar (68px + 12px breathing room) */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== NAV ========== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10,15,26,0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.3rem;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: -0.03em;
    text-transform: lowercase;
}

.logo-e { color: #0F52BA; }
.logo-cost { color: #00C853; }
.logo-ify { color: #0F52BA; }

.nav-links {
    display: flex;
    gap: 36px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text);
}

/* Mobile menu toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    padding: 8px;
}

/* ========== HERO ========== */
.hero {
    padding: 160px 24px 80px;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(77,154,255,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border: 1px solid var(--border-dashed);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 32px;
    background: var(--accent-glow);
}

.hero-label::before {
    content: '✦';
    font-size: 0.8rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 5.5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--text);
    letter-spacing: -0.04em;
    margin-bottom: 20px;
}

.hero h1 .accent {
    color: var(--accent);
}

.hero-sub {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 520px;
    margin: 0 auto 40px;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Hero choice cards — two clear paths */
.hero-cards {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 8px;
}

.hero-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 28px 40px;
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    min-width: 200px;
    text-align: center;
    border: 1.5px solid transparent;
}

.hero-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}

.hero-card svg {
    opacity: 0.9;
}

.hero-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.hero-card-desc {
    font-size: 0.82rem;
    opacity: 0.7;
    line-height: 1.4;
}

.hero-card-auto {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.3);
    color: #fff;
}

.hero-card-auto svg {
    color: var(--accent);
}

.hero-card-auto:hover {
    border-color: var(--accent);
    background: rgba(59, 130, 246, 0.18);
}

.hero-card-home {
    background: rgba(52, 211, 153, 0.12);
    border-color: rgba(52, 211, 153, 0.3);
    color: #fff;
}

.hero-card-home svg {
    color: var(--green);
}

.hero-card-home:hover {
    border-color: var(--green);
    background: rgba(52, 211, 153, 0.18);
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    text-decoration: none;
}

.btn-accent {
    background: var(--accent);
    color: #0a0f1a;
    box-shadow: 0 2px 12px rgba(77,154,255,0.3);
}

.btn-accent:hover {
    background: var(--accent-hover);
    box-shadow: 0 4px 20px rgba(77,154,255,0.4);
    transform: translateY(-1px);
}

.btn-green {
    background: var(--green);
    color: #0a0f1a;
    box-shadow: 0 2px 12px rgba(52,211,153,0.3);
}

.btn-green:hover {
    background: var(--green-hover);
    box-shadow: 0 4px 20px rgba(52,211,153,0.4);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    border-color: rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.04);
}

.btn-full {
    width: 100%;
}

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

/* ========== LIVE ACTIVITY TICKER STRIP ========== */
.activity-ticker-strip {
    overflow: hidden;
    position: relative;
    padding: 6px 0;
    margin-bottom: 24px;
    background: var(--bg-raised);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.ticker-track {
    display: flex;
    gap: 48px;
    white-space: nowrap;
    animation: tickerScroll 40s linear infinite;
    width: max-content;
}

.ticker-track:hover {
    animation-play-state: paused;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    color: var(--text-faint);
    flex-shrink: 0;
}

.ticker-item strong {
    color: var(--text-muted);
    font-weight: 600;
}

.ticker-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--green);
    flex-shrink: 0;
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
    50% { opacity: 0.7; box-shadow: 0 0 0 4px rgba(34,197,94,0); }
}

@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ========== ESTIMATOR SECTION (side-by-side forms) ========== */
.estimator-section {
    padding: 40px 24px 72px;
}

.estimator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

.estimator-col {
    min-width: 0;
}

.estimator-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
}

.estimator-label svg {
    flex-shrink: 0;
}

.estimator-label-auto {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.estimator-label-home {
    color: var(--green);
    border-bottom-color: var(--green);
}

/* ========== CATEGORY SECTIONS ========== */

/* Inline category image (sits inside category-text column, beside form) */
.category-img-inline {
    width: 100%;
    height: 180px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 24px;
}

.category-img-inline img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
    display: block;
}

.category-section {
    padding: 72px 24px;
}

.section-alt {
    background: var(--bg-raised);
    border-top: 1px solid rgba(255,255,255,0.12);
    margin-top: 24px;
    padding-top: 72px;
}

.section-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 20px;
}

.section-alt .section-label {
    color: var(--green);
}

.category-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.category-text {
    position: sticky;
    top: 90px;
    align-self: start;
}

.category-grid-reverse {
    direction: rtl;
}

.category-grid-reverse > * {
    direction: ltr;
}

.category-text h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 16px;
}

.category-text > p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 28px;
}

/* Common issues / chips */
.common-issues {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.issues-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-right: 4px;
}

.chip {
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: 100px;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-family: var(--font);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.chip:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-glow);
}

.section-alt .chip:hover {
    border-color: var(--green);
    color: var(--green);
    background: var(--green-glow);
}

/* ========== ESTIMATE FORM ========== */
.category-form-wrap {
    position: relative;
}

.estimate-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Upload Zone — dashed border like Healvanna */
.upload-zone {
    border: 2px dashed var(--border-dashed);
    border-radius: var(--radius-xl);
    padding: 48px 24px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s, background 0.3s;
    position: relative;
    overflow: hidden;
    background: var(--bg-input);
}

.upload-zone:hover,
.upload-zone.drag-over {
    border-color: var(--border-hover);
    background: var(--accent-glow);
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.upload-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(77,154,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 4px;
}

.section-alt .upload-icon {
    background: rgba(52,211,153,0.12);
    color: var(--green);
}

.upload-main {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

.upload-sub {
    font-size: 0.8rem;
    color: var(--text-faint);
}

.upload-preview {
    position: relative;
    display: flex;
    justify-content: center;
}

.upload-preview img {
    max-width: 100%;
    max-height: 220px;
    border-radius: var(--radius-md);
    object-fit: contain;
}

/* Hide preview img when it has no real source */
.upload-preview img:not([src]),
.upload-preview img[src=''] {
    display: none;
}

.upload-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.7);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.upload-remove:hover {
    background: var(--red);
}

/* Upload buttons — side by side */
.upload-buttons {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.btn-upload-camera,
.btn-upload-gallery {
    padding: 14px 24px;
    font-size: 0.9rem;
    min-height: 48px;
}

/* Desktop: show one row. Mobile: stack or show both */
.upload-sub-mobile { display: none; }
.upload-sub-desktop { display: inline; }

/* Larger upload icon for photo-first design */
.upload-icon-lg {
    width: 68px;
    height: 68px;
}

/* Spin icon for loading state */
.spin-icon {
    animation: spin 1s linear infinite;
}

/* Static chips (non-interactive) */
.chip-static {
    cursor: default;
    pointer-events: none;
}

/* ========== SERVICE PICKER ========== */
.service-picker {
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--bg-input);
    overflow: hidden;
}

.picker-tabs {
    display: flex;
    gap: 0;
    padding: 6px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.picker-tabs::-webkit-scrollbar {
    display: none;
}

.picker-tab {
    padding: 8px 14px;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-faint);
    font-family: var(--font);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.picker-tab:hover {
    color: var(--text-muted);
    background: rgba(255,255,255,0.03);
}

.picker-tab.active {
    color: var(--accent);
    background: var(--accent-glow);
}

.service-picker-home .picker-tab.active {
    color: var(--green);
    background: var(--green-glow);
}

.picker-chips {
    padding: 14px;
    max-height: 180px;
    overflow-y: auto;
}

.chip-group {
    display: none;
    flex-wrap: wrap;
    gap: 8px;
}

.chip-group.active {
    display: flex;
}

.chip-service {
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 100px;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.chip-service:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-glow);
}

.service-picker-home .chip-service:hover {
    border-color: var(--green);
    color: var(--green);
    background: var(--green-glow);
}

.chip-service.selected {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-glow);
    box-shadow: 0 0 0 1px var(--accent);
}

.service-picker-home .chip-service.selected {
    border-color: var(--green);
    color: var(--green);
    background: var(--green-glow);
    box-shadow: 0 0 0 1px var(--green);
}

/* Text row beneath service picker */
.service-text-row {
    position: relative;
}

.service-text-row textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-family: var(--font);
    font-size: 0.95rem;
    color: var(--text);
    background: var(--bg-input);
    resize: vertical;
    min-height: 60px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.service-text-row textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.section-alt .service-text-row textarea:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px var(--green-glow);
}

.service-text-row textarea::placeholder {
    color: var(--text-faint);
}

/* Form divider — "or describe manually" */
.form-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 4px 0;
}

.form-divider::before,
.form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.form-divider span {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

/* Textarea */
.estimate-form textarea {
    width: 100%;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-family: var(--font);
    font-size: 0.95rem;
    color: var(--text);
    background: var(--bg-input);
    resize: vertical;
    min-height: 80px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.estimate-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.section-alt .estimate-form textarea:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px var(--green-glow);
}

.estimate-form textarea::placeholder {
    color: var(--text-faint);
}

/* ========== HOW IT WORKS ========== */
.how-section {
    padding: 100px 24px;
    text-align: center;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.03em;
    margin-bottom: 56px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.step-card {
    padding: 36px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    text-align: left;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.step-card:hover {
    border-color: rgba(77,154,255,0.2);
    box-shadow: var(--shadow-glow-blue);
}

.step-num {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.04em;
    margin-bottom: 16px;
    line-height: 1;
}

.step-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.step-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* How It Works — Demo GIF */
.how-demo-wrap {
    margin-top: 56px;
    text-align: center;
}
.how-demo-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
}
.how-demo-gif {
    max-width: 900px;
    margin: 0 auto;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card), 0 0 60px rgba(77,154,255,0.06);
}
.how-demo-gif img {
    width: 100%;
    height: auto;
    display: block;
}

/* ========== FAQ SECTION ========== */
.faq-section {
    padding: 80px 24px;
    border-top: 1px solid var(--border);
}

.faq-section .container {
    max-width: 760px;
}

.faq-list {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color 0.2s;
}

.faq-item[open] {
    border-color: rgba(77,154,255,0.25);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text);
    list-style: none;
    user-select: none;
    transition: color 0.2s;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::marker {
    display: none;
    content: '';
}

.faq-question:hover {
    color: var(--accent);
}

.faq-chevron {
    flex-shrink: 0;
    margin-left: 16px;
    transition: transform 0.25s ease;
    color: var(--text-faint);
}

.faq-item[open] .faq-chevron {
    transform: rotate(180deg);
    color: var(--accent);
}

.faq-answer {
    padding: 0 24px 20px;
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.95rem;
}

.faq-answer p {
    margin: 0;
}

/* ========== FOOTER ========== */
.footer {
    padding: 60px 24px 40px;
    border-top: 1px solid var(--border);
}

.footer-inner {
    max-width: 1120px;
    margin: 0 auto;
}

.footer-top {
    text-align: center;
    margin-bottom: 32px;
}

.footer-top .logo {
    display: inline-block;
    margin-bottom: 8px;
}

.footer-tagline {
    color: var(--text-faint);
    font-size: 0.9rem;
}

.footer-transparency {
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-faint);
    margin-bottom: 24px;
    line-height: 1.5;
}

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

.footer-links {
    display: flex;
    gap: 28px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--text);
}

.footer-copy {
    font-size: 0.78rem;
    color: var(--text-faint);
}

/* ========== ESTIMATE RESULTS PAGE ========== */
.results-page {
    padding: 110px 24px 80px;
    min-height: 100vh;
}

.results-inner {
    max-width: 700px;
    margin: 0 auto;
}

.results-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 40px;
    transition: color 0.2s;
}

.results-back:hover {
    color: var(--text);
}

.results-back svg {
    width: 16px;
    height: 16px;
}

.results-header {
    text-align: center;
    margin-bottom: 40px;
}

.badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.badge-auto {
    background: var(--accent-glow);
    color: var(--accent);
    border: 1px solid rgba(77,154,255,0.2);
}

.badge-home {
    background: var(--green-glow);
    color: var(--green);
    border: 1px solid rgba(52,211,153,0.2);
}

.results-header h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.03em;
    margin-bottom: 8px;
}

.results-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Estimate Card */
.estimate-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 36px;
    box-shadow: var(--shadow-card);
    margin-bottom: 24px;
}

.estimate-price {
    text-align: center;
    padding: 32px 24px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(77,154,255,0.04) 0%, rgba(52,211,153,0.04) 100%);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(77,154,255,0.08);
    margin: -12px -12px 28px -12px;
    padding: 32px;
}

.estimate-price .label {
    font-size: 0.72rem;
    color: var(--text-faint);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}

.estimate-price .range {
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.04em;
}

.estimate-detail {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.estimate-detail:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.estimate-detail h3 {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.estimate-detail p,
.estimate-detail ul {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.estimate-detail p {
    padding: 14px 18px;
    background: var(--bg-raised);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.estimate-detail ul {
    padding-left: 20px;
}

.estimate-detail li {
    margin-bottom: 4px;
}

.detail-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

.icon-tip { background: rgba(52,211,153,0.15); color: var(--green); }
.icon-warn { background: rgba(251,191,36,0.15); color: var(--amber); }
.icon-flag { background: rgba(248,113,113,0.15); color: var(--red); }

/* ========== CLICKABLE BADGE ========== */
.badge-clickable {
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.badge-clickable:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* ========== TIPS GRID ========== */
.tips-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.tip-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(52,211,153,0.04);
    border: 1px solid rgba(52,211,153,0.1);
    border-radius: var(--radius-md);
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.tip-icon {
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ========== FLAGS LIST ========== */
.flags-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.flag-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(248,113,113,0.04);
    border: 1px solid rgba(248,113,113,0.1);
    border-radius: var(--radius-md);
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.flag-icon {
    font-size: 0.7rem;
    flex-shrink: 0;
    margin-top: 3px;
}

/* ========== CTA BUTTON ========== */
.estimate-cta {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.btn-cta-providers {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-cta-providers:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(77,154,255,0.25);
}

/* ========== DETECTED VEHICLE / MATERIALS BANNER ========== */
.detected-banner {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 18px;
    margin-bottom: 20px;
    background: rgba(77,154,255,0.05);
    border: 1px solid rgba(77,154,255,0.12);
    border-radius: var(--radius-md);
}

.detected-item {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.5;
}

/* ========== PRICE TIERS ========== */
.price-tiers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.price-tier {
    padding: 18px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    text-align: center;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.price-tier:hover {
    border-color: rgba(255,255,255,0.15);
}

.tier-budget { background: rgba(52,211,153,0.04); }
.tier-mid    { background: rgba(77,154,255,0.04); }
.tier-premium { background: rgba(251,191,36,0.04); }

.tier-budget:hover  { border-color: rgba(52,211,153,0.25); box-shadow: 0 0 20px rgba(52,211,153,0.06); }
.tier-mid:hover     { border-color: rgba(77,154,255,0.25); box-shadow: 0 0 20px rgba(77,154,255,0.06); }
.tier-premium:hover { border-color: rgba(251,191,36,0.25); box-shadow: 0 0 20px rgba(251,191,36,0.06); }

.tier-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-faint);
    margin-bottom: 8px;
}

.tier-range {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

.tier-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ========== TRUST BADGE / PRICE CHECK ========== */
.trust-badge-strip {
    margin-bottom: 24px;
    padding: 20px;
    background: rgba(52,211,153,0.04);
    border: 1px solid rgba(52,211,153,0.12);
    border-radius: var(--radius-md);
}

.trust-badge {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}

.trust-badge-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(52,211,153,0.1);
    border-radius: 50%;
    color: var(--green);
}

.trust-badge-title {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--green);
    margin-bottom: 4px;
}

.trust-badge-desc {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.trust-stats {
    display: flex;
    gap: 0;
    border-top: 1px solid rgba(52,211,153,0.1);
    padding-top: 14px;
}

.trust-stat {
    flex: 1;
    text-align: center;
    position: relative;
}

.trust-stat:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 2px;
    bottom: 2px;
    width: 1px;
    background: rgba(52,211,153,0.1);
}

.trust-stat-num {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
}

.trust-stat-label {
    display: block;
    font-size: 0.68rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 2px;
}

@media (max-width: 600px) {
    .trust-badge-strip {
        padding: 16px;
    }
    .trust-badge-icon {
        width: 36px;
        height: 36px;
    }
    .trust-badge-icon svg {
        width: 18px;
        height: 18px;
    }
    .trust-stat-num {
        font-size: 0.95rem;
    }
}

/* ========== CONFIDENCE BADGE ========== */
.confidence-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    border: 1px solid;
}

.confidence-badge .confidence-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    line-height: 1;
}

.confidence-badge .confidence-text {
    flex: 1;
    min-width: 0;
}

.confidence-badge .confidence-text strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.confidence-badge .confidence-text span {
    display: block;
    font-size: 0.78rem;
    line-height: 1.5;
    opacity: 0.85;
}

.confidence-badge .confidence-score {
    flex-shrink: 0;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.confidence-badge .confidence-score span {
    font-size: 0.7rem;
    font-weight: 500;
    opacity: 0.6;
}

.confidence-high {
    background: rgba(52, 211, 153, 0.06);
    border-color: rgba(52, 211, 153, 0.2);
    color: var(--green);
}

.confidence-high .confidence-text span {
    color: var(--text-muted);
}

.confidence-medium {
    background: rgba(251, 191, 36, 0.06);
    border-color: rgba(251, 191, 36, 0.18);
    color: var(--amber);
}

.confidence-medium .confidence-text span {
    color: var(--text-muted);
}

.confidence-low {
    background: rgba(122, 139, 168, 0.06);
    border-color: rgba(122, 139, 168, 0.15);
    color: var(--text-muted);
}

.confidence-low .confidence-text span {
    color: var(--text-faint);
}

/* ========== ENHANCED TRUST BADGE VARIANTS ========== */
.trust-badge-strip.trust-badge-data-high {
    background: rgba(52, 211, 153, 0.06);
    border-color: rgba(52, 211, 153, 0.18);
}

.trust-badge-strip.trust-badge-data-high .trust-badge-title {
    color: var(--green);
}

.trust-badge-strip.trust-badge-data-medium {
    background: rgba(77, 154, 255, 0.05);
    border-color: rgba(77, 154, 255, 0.15);
}

.trust-badge-strip.trust-badge-data-medium .trust-badge-title {
    color: var(--accent);
}

.trust-badge-strip.trust-badge-data-medium .trust-badge-icon {
    background: rgba(77, 154, 255, 0.1);
    color: var(--accent);
}

.trust-badge-strip.trust-badge-data-medium .trust-stats {
    border-top-color: rgba(77, 154, 255, 0.1);
}

.trust-badge-strip.trust-badge-data-medium .trust-stat:not(:last-child)::after {
    background: rgba(77, 154, 255, 0.1);
}

/* ========== CITY COMPARISON ========== */
.city-comparison {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.city-comparison .comparison-arrow {
    font-size: 0.65rem;
}

.comparison-higher {
    background: rgba(248, 113, 113, 0.08);
    color: var(--red);
    border: 1px solid rgba(248, 113, 113, 0.15);
}

.comparison-lower {
    background: rgba(52, 211, 153, 0.08);
    color: var(--green);
    border: 1px solid rgba(52, 211, 153, 0.15);
}

/* ========== DATA CITATION ========== */
.data-citation {
    margin-bottom: 24px;
    padding: 16px 20px;
    background: rgba(77, 154, 255, 0.03);
    border: 1px solid rgba(77, 154, 255, 0.1);
    border-radius: var(--radius-md);
}

.data-citation .citation-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.data-citation .citation-icon {
    font-size: 1rem;
    line-height: 1;
}

.data-citation .citation-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.data-citation .citation-body p {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 4px;
}

.data-citation .citation-rate {
    color: var(--text) !important;
}

.data-citation .citation-rate strong {
    color: var(--accent);
    font-weight: 700;
}

.data-citation .citation-year {
    display: inline-block;
    font-size: 0.68rem;
    color: var(--text-faint);
    margin-top: 4px;
    padding: 2px 8px;
    background: rgba(77, 154, 255, 0.06);
    border-radius: 4px;
}

/* ========== RESPONSIVE: Confidence, Comparison, Citation ========== */
@media (max-width: 600px) {
    .confidence-badge {
        padding: 12px 16px;
        gap: 10px;
    }
    .confidence-badge .confidence-text strong {
        font-size: 0.8rem;
    }
    .confidence-badge .confidence-text span {
        font-size: 0.73rem;
    }
    .confidence-badge .confidence-score {
        font-size: 1.1rem;
    }
    .city-comparison {
        font-size: 0.7rem;
        padding: 5px 12px;
    }
    .data-citation {
        padding: 12px 16px;
    }
    .data-citation .citation-body p {
        font-size: 0.73rem;
    }
}

/* ========== URGENCY & DIY BADGES ========== */
.estimate-badges-row {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.estimate-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.urgency-high {
    background: rgba(248,113,113,0.12);
    color: var(--red);
    border: 1px solid rgba(248,113,113,0.2);
}

.urgency-medium {
    background: rgba(251,191,36,0.1);
    color: var(--amber);
    border: 1px solid rgba(251,191,36,0.2);
}

.urgency-low {
    background: rgba(52,211,153,0.1);
    color: var(--green);
    border: 1px solid rgba(52,211,153,0.2);
}

.diy-yes {
    background: rgba(52,211,153,0.1);
    color: var(--green);
    border: 1px solid rgba(52,211,153,0.2);
}

.diy-partial {
    background: rgba(77,154,255,0.1);
    color: var(--accent);
    border: 1px solid rgba(77,154,255,0.2);
}

.diy-no {
    background: rgba(251,191,36,0.1);
    color: var(--amber);
    border: 1px solid rgba(251,191,36,0.2);
}

/* Urgency & DIY notes */
.urgency-diy-notes {
    margin-bottom: 24px;
    padding: 16px 20px;
    background: var(--bg-raised);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.note-item {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 6px;
}

.note-item:last-child {
    margin-bottom: 0;
}

.note-item strong {
    color: var(--text);
    font-weight: 600;
}

/* ========== COST BREAKDOWN BAR ========== */
.cost-breakdown {
    margin-top: 12px;
}

.breakdown-bar {
    display: flex;
    height: 14px;
    border-radius: 100px;
    overflow: hidden;
    gap: 2px;
    margin-bottom: 14px;
}

.breakdown-segment {
    border-radius: 100px;
    min-width: 8px;
    transition: opacity 0.2s;
}

.breakdown-segment:hover {
    opacity: 0.8;
}

.breakdown-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.legend-label {
    color: var(--text-muted);
}

.legend-pct {
    color: var(--text);
    font-weight: 600;
}

/* ========== META ROW (time, season) ========== */
.estimate-meta-row {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}

.meta-icon {
    font-size: 0.9rem;
}

/* ========== LOCATION TAG ========== */
.location-tag {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--accent);
    background: var(--accent-glow);
    padding: 3px 10px;
    border-radius: 100px;
    margin-left: 8px;
    letter-spacing: 0;
    text-transform: none;
    vertical-align: middle;
}

/* ========== MULTI-PHOTO PREVIEW GRID ========== */
.upload-preview-grid {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.preview-thumbs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.preview-thumb {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
}

.preview-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-remove-thumb {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.7);
    color: white;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.2s;
}

.upload-remove-thumb:hover {
    background: var(--red);
}

.thumb-number {
    position: absolute;
    bottom: 4px;
    left: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0,0,0,0.65);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-add-photo {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-md);
    border: 2px dashed var(--border-dashed);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.btn-add-photo:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-glow);
}

/* Result page photo display */
.result-photo-single {
    max-width: 100%;
    max-height: 240px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
}

.result-photos-grid {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.result-photo-thumb {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,0.08);
}

/* ========== FOLLOW-UP CHAT ========== */
.followup-section {
    margin-bottom: 24px;
}

.followup-inner {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.followup-messages {
    max-height: 400px;
    overflow-y: auto;
    padding: 0;
}

.followup-messages:empty {
    display: none;
}

.followup-messages:not(:empty) {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.followup-msg {
    margin-bottom: 14px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    line-height: 1.65;
    max-width: 90%;
}

.followup-msg:last-child {
    margin-bottom: 0;
}

.followup-user {
    background: var(--accent-glow);
    border: 1px solid rgba(77,154,255,0.15);
    color: var(--text);
    margin-left: auto;
    text-align: right;
}

.followup-ai {
    background: var(--bg-raised);
    border: 1px solid var(--border);
    color: var(--text-muted);
}

.followup-system {
    background: rgba(251,191,36,0.06);
    border: 1px solid rgba(251,191,36,0.15);
    color: var(--text-muted);
    font-size: 0.8rem;
    text-align: center;
    max-width: 100%;
}

.followup-updated-range {
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(52,211,153,0.08);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--green);
}

.followup-updated-range strong {
    color: var(--text);
}

.followup-tip {
    margin-top: 6px;
    font-size: 0.82rem;
    color: var(--text-faint);
}

.followup-tip strong {
    color: var(--text-muted);
}

/* Typing dots animation */
.typing-dots span {
    animation: typingBounce 1.2s infinite;
    display: inline-block;
    font-size: 1.4rem;
    line-height: 1;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-4px); opacity: 1; }
}

/* Follow-up form */
.followup-form {
    display: flex;
    gap: 0;
    padding: 14px 16px;
}

.followup-form input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-right: none;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    font-family: var(--font);
    font-size: 0.9rem;
    color: var(--text);
    background: var(--bg-input);
    transition: border-color 0.2s;
}

.followup-form input:focus {
    outline: none;
    border-color: var(--accent);
}

.followup-form input::placeholder {
    color: var(--text-faint);
    font-size: 0.82rem;
}

.btn-followup-send {
    padding: 12px 18px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    min-height: 46px;
}

/* ========== DISCLAIMER BANNER ========== */
.disclaimer-banner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(251,191,36,0.06);
    border: 1px solid rgba(251,191,36,0.15);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.disclaimer-banner svg {
    flex-shrink: 0;
    color: var(--amber);
    margin-top: 2px;
}

.disclaimer-banner p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ========== SCOPING QUESTIONNAIRE ========== */
.scoping-section {
    margin-bottom: 32px;
}

.scoping-inner {
    padding: 28px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
}

.scoping-header h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.scoping-header p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.scoping-q {
    margin-bottom: 18px;
    animation: scopeFadeIn 0.35s ease;
}

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

.scoping-q-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
}

.scoping-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.scoping-opt {
    padding: 10px 18px;
    font-family: var(--font);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.scoping-opt:hover {
    border-color: var(--accent);
    color: var(--text);
    background: rgba(77,154,255,0.06);
}

.scoping-opt.selected {
    border-color: var(--accent);
    background: rgba(77,154,255,0.12);
    color: var(--accent);
    font-weight: 600;
    box-shadow: 0 0 0 2px var(--accent-glow);
}

.scoping-result-inner {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
    background: rgba(52,211,153,0.05);
    border: 1px solid rgba(52,211,153,0.15);
    border-radius: var(--radius-md);
    animation: scopeFadeIn 0.35s ease;
}

.scoping-result-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.scoping-result-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--green);
    margin-bottom: 2px;
}

.scoping-result-answers {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.scoping-result-hint {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.btn-update-estimate {
    margin-top: 16px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.refined-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    margin-bottom: 16px;
    background: rgba(52,211,153,0.06);
    border: 1px solid rgba(52,211,153,0.15);
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--green);
    animation: scopeFadeIn 0.35s ease;
}

@media (max-width: 600px) {
    .scoping-options {
        flex-direction: column;
    }
    .scoping-opt {
        text-align: center;
    }
}

/* ========== EMAIL CAPTURE ========== */
.email-capture {
    margin-bottom: 48px;
}

.email-capture-inner {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    text-align: center;
}

.email-capture h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.email-capture > .email-capture-inner > p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.email-form {
    display: flex;
    gap: 10px;
    max-width: 420px;
    margin: 0 auto;
}

.email-form input[type="email"] {
    flex: 1;
    padding: 12px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-family: var(--font);
    font-size: 0.9rem;
    color: var(--text);
    background: var(--bg-input);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.email-form input[type="email"]:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.email-form input[type="email"]::placeholder {
    color: var(--text-faint);
}

.email-form .btn {
    padding: 12px 28px;
    white-space: nowrap;
}

.email-success {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    color: var(--green);
    font-size: 0.9rem;
    font-weight: 500;
}

.email-success svg {
    color: var(--green);
}

/* ========== PROVIDERS SECTION ========== */
.providers-section {
    margin-top: 48px;
}

.providers-section h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.providers-section > p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

/* ── Provider Cards v2 — Rich visual cards ── */

.providers-map-wrap {
    margin-bottom: 24px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
}

.providers-map {
    width: 100%;
    height: 280px;
    border: none;
    display: block;
    filter: brightness(0.85) contrast(1.1) saturate(0.8);
}

.providers-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

/* No location / no results message */
.providers-no-location {
    text-align: center;
    padding: 48px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.providers-msg-icon {
    margin-bottom: 16px;
    color: var(--text-faint);
    opacity: 0.6;
}

.providers-no-location h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.providers-no-location p {
    color: var(--text-muted);
    max-width: 420px;
    margin: 0 auto 24px;
    line-height: 1.6;
}

.providers-msg-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.providers-msg-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.provider-card-v2 {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.provider-card-v2:hover {
    border-color: rgba(77,154,255,0.25);
    box-shadow: var(--shadow-glow-blue);
    transform: translateY(-2px);
}

/* Provider photo */
.provider-photo {
    width: 100%;
    height: 160px;
    background-color: var(--bg-raised);
    position: relative;
    overflow: hidden;
}

.provider-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.provider-photo-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-raised) 0%, rgba(77,154,255,0.08) 100%);
}

.provider-photo-fallback span {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-faint);
    opacity: 0.5;
}

/* Card body */
.provider-card-body {
    padding: 16px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.provider-card-top {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.provider-name-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.provider-name-v2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    line-height: 1.3;
}

.provider-badges-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

/* Status badge (Open/Closed) */
.provider-status-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.provider-status-badge.open {
    color: var(--green);
    background: var(--green-glow);
    border: 1px solid rgba(34,197,94,0.25);
}

.provider-status-badge.closed {
    color: var(--red);
    background: rgba(239,68,68,0.08);
    border: 1px solid rgba(239,68,68,0.2);
}

/* Verified badge */
.provider-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 100px;
    color: var(--green);
    background: var(--green-glow);
    border: 1px solid rgba(34,197,94,0.2);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.provider-verified-badge svg {
    fill: var(--green);
}

/* Address */
.provider-address-v2 {
    font-size: 0.8rem;
    color: var(--text-faint);
    line-height: 1.3;
    margin: 0;
}

/* Rating row */
.provider-rating-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    flex-wrap: wrap;
}

.provider-stars-v2 {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--amber);
}

.provider-stars-v2 strong {
    color: var(--text);
    font-weight: 600;
}

.provider-reviews-v2 {
    color: var(--text-faint);
}

.provider-distance-v2 {
    color: var(--text-muted);
    font-weight: 500;
    padding-left: 4px;
    border-left: 1px solid var(--border);
}

/* Service tags */
.provider-tags-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.provider-tag {
    font-size: 0.68rem;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 100px;
    background: rgba(77,154,255,0.08);
    color: var(--accent);
    border: 1px solid rgba(77,154,255,0.15);
}

/* Action buttons */
.provider-actions-v2 {
    display: flex;
    gap: 8px;
    padding-top: 4px;
    border-top: 1px solid var(--border);
    margin-top: 4px;
}

.provider-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    font-family: var(--font);
    white-space: nowrap;
}

.provider-btn svg {
    flex-shrink: 0;
}

.provider-btn-call {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
}

.provider-btn-call:hover {
    border-color: var(--green);
    color: var(--green);
    background: var(--green-glow);
}

.provider-btn-details {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
}

.provider-btn-details:hover {
    border-color: rgba(255,255,255,0.2);
    color: var(--text);
}

.provider-btn-website {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
}

.provider-btn-website:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.provider-btn-quote {
    background: var(--accent);
    color: #0a0f1a;
}

.provider-btn-quote:hover {
    background: var(--accent-hover);
}

/* Star rating */
.stars {
    color: var(--amber);
    font-size: 0.72rem;
    letter-spacing: 1px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
}

.btn-outline:hover {
    border-color: rgba(255,255,255,0.2);
    color: var(--text);
}

.btn-quote {
    background: var(--accent);
    color: #0a0f1a;
    border: none;
}

.btn-quote:hover {
    background: var(--accent-hover);
}

/* Location prompt */
.location-prompt {
    text-align: center;
    padding: 48px 24px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px dashed var(--border-dashed);
}

.location-prompt p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.btn-location {
    background: var(--text);
    color: var(--bg);
}

.btn-location:hover {
    background: #fff;
}

/* Providers loading state */
.providers-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px 24px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.providers-loading[hidden] {
    display: none !important;
}

.providers-loading span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.spinner-sm {
    width: 22px;
    height: 22px;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* (provider-maps removed — now inline in expanded card) */

/* Loading */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
    gap: 16px;
}

.loading-spinner[hidden] {
    display: none !important;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-spinner p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ========== BLOG ========== */
.blog-hero {
    padding: 160px 24px 60px;
    text-align: center;
}

.blog-hero h1 {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.04em;
    margin-bottom: 16px;
}

.blog-section {
    padding: 0 24px 100px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.blog-card {
    display: flex;
    flex-direction: column;
    padding: 32px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    text-decoration: none;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.blog-card:hover {
    border-color: rgba(77,154,255,0.25);
    box-shadow: var(--shadow-glow-blue);
    transform: translateY(-2px);
}

.blog-card-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
    background: var(--accent-glow);
    color: var(--accent);
    border: 1px solid rgba(77,154,255,0.2);
    width: fit-content;
}

.blog-card-badge.badge-home {
    background: var(--green-glow);
    color: var(--green);
    border-color: rgba(52,211,153,0.2);
}

.blog-card h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin-bottom: 10px;
}

.blog-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    flex: 1;
}

.blog-card-meta {
    font-size: 0.75rem;
    color: var(--text-faint);
    margin-top: 16px;
    font-weight: 500;
}

/* Blog Article */
.blog-article {
    padding: 110px 24px 80px;
}

.blog-article .container {
    max-width: 740px;
}

.article-header {
    margin-bottom: 48px;
}

.article-header h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 12px;
}

.article-meta {
    font-size: 0.85rem;
    color: var(--text-faint);
    font-weight: 500;
}

.article-body h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
    margin: 40px 0 16px;
}

.article-body p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 16px;
}

.article-body ul {
    padding-left: 24px;
    margin-bottom: 20px;
}

.article-body li {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 8px;
}

.article-body strong {
    color: var(--text);
    font-weight: 600;
}

/* Cost Table */
.cost-table {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: 20px 0 32px;
}

.cost-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
}

.cost-row:last-child {
    border-bottom: none;
}

.cost-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.cost-value {
    font-size: 0.95rem;
    color: var(--text);
    font-weight: 700;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

/* Article CTA */
.article-cta {
    margin-top: 48px;
    padding: 36px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    text-align: center;
}

.article-cta h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.article-cta p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Active nav link */
.nav-links a.active {
    color: var(--accent);
}

/* ── Desktop: 2-col provider grid ── */
@media (min-width: 769px) {
    .providers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ── City Cost Guide Grid ── */
.city-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin: 32px 0 40px;
}

.city-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 24px;
    transition: border-color 0.2s, background 0.2s;
}

.city-card:hover {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.05);
}

.city-card h3 {
    margin: 0 0 4px;
    font-size: 1.15rem;
}

.city-card h3 a {
    color: var(--text);
    text-decoration: none;
}

.city-card h3 a:hover {
    color: var(--accent);
}

.city-meta {
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-bottom: 16px;
}

.city-services {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.city-services li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.15s;
}

.city-services li a:hover {
    color: var(--accent);
}

.city-view-all {
    font-size: 0.85rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.city-view-all:hover {
    text-decoration: underline;
}

/* Cost table links within city pages */
.cost-row a {
    color: var(--text);
    text-decoration: none;
}

.cost-row a:hover {
    color: var(--accent);
}

/* ========== RESPONSIVE ========== */

/* Tablet */
@media (max-width: 900px) {
    .category-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .category-grid-reverse {
        direction: ltr;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
}

/* Mobile — primary breakpoint */
@media (max-width: 768px) {

    /* ── Nav ── */
    .nav-links {
        display: none;
    }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        padding: 20px 24px;
        gap: 20px;
    }

    .nav-links.open a {
        font-size: 1rem;
        padding: 8px 0;
    }

    .nav-toggle {
        display: block;
    }

    /* ── Hero ── */
    .hero {
        padding: 120px 20px 50px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-sub {
        font-size: 1rem;
    }

    /* ── Estimator Grid ── */
    .estimator-section {
        padding: 24px 16px 48px;
    }

    .estimator-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* ── Category Sections ── */
    .category-section {
        padding: 48px 16px;
    }

    .category-img-inline {
        height: 140px;
        margin-bottom: 16px;
    }

    .category-text {
        position: static;
    }

    .category-text h2 {
        font-size: 1.7rem;
    }

    .category-text > p {
        font-size: 0.92rem;
    }

    /* ── Upload Zone — mobile-optimized ── */
    .upload-zone {
        padding: 40px 20px;
    }

    .upload-sub-desktop { display: none; }
    .upload-sub-mobile { display: inline; }

    .upload-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn-upload-camera,
    .btn-upload-gallery {
        width: 100%;
        padding: 16px 24px;
        font-size: 1rem;
        min-height: 52px;
        justify-content: center;
    }

    .btn-upload-camera {
        font-size: 1.05rem;
        font-weight: 700;
    }

    .upload-icon-lg {
        width: 72px;
        height: 72px;
    }

    .upload-icon-lg svg {
        width: 36px;
        height: 36px;
    }

    .upload-main {
        font-size: 1.05rem;
    }

    /* ── Service Picker ── */
    .picker-tabs {
        padding: 4px;
    }

    .picker-tab {
        padding: 7px 10px;
        font-size: 0.68rem;
    }

    .picker-chips {
        padding: 10px;
        max-height: 160px;
    }

    .chip-service {
        padding: 7px 12px;
        font-size: 0.78rem;
    }

    .service-text-row textarea {
        font-size: 16px;
        min-height: 50px;
    }

    /* ── Textarea ── */
    .estimate-form textarea {
        font-size: 16px; /* prevents iOS zoom on focus */
        padding: 14px 16px;
        min-height: 70px;
    }

    /* ── Submit Button ── */
    .estimate-form .btn-full {
        padding: 16px 28px;
        font-size: 1rem;
        min-height: 52px;
    }

    /* ── Chips — wrap nicely ── */
    .common-issues {
        gap: 6px;
    }

    .chip {
        font-size: 0.72rem;
        padding: 5px 12px;
    }

    /* ── How It Works ── */
    .how-section {
        padding: 60px 16px;
    }

    .section-title {
        font-size: 1.6rem;
        margin-bottom: 36px;
    }

    /* ── Provider Cards v2 ── */
    .provider-photo {
        height: 130px;
    }

    .provider-card-body {
        padding: 14px 16px 16px;
    }

    .provider-actions-v2 {
        flex-direction: column;
    }

    .provider-btn {
        min-height: 44px;
    }

    .providers-map {
        height: 220px;
    }

    /* ── Results Page ── */
    .results-page {
        padding: 90px 16px 60px;
    }

    .results-header h1 {
        font-size: 1.4rem;
    }

    .estimate-card {
        padding: 24px 18px;
    }

    .estimate-price .range {
        font-size: 2.2rem;
    }

    /* ── Email Capture ── */
    .email-capture-inner {
        padding: 24px 18px;
    }

    .email-form {
        flex-direction: column;
    }

    .email-form .btn {
        width: 100%;
        min-height: 48px;
    }

    .email-form input[type="email"] {
        font-size: 16px; /* prevents iOS zoom */
        padding: 14px 16px;
    }

    /* ── Footer ── */
    .footer {
        padding: 40px 16px 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    /* ── Blog ── */
    .blog-hero {
        padding: 120px 16px 40px;
    }

    .blog-section {
        padding: 0 16px 60px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-card {
        padding: 24px 20px;
    }

    /* ── Blog Article ── */
    .blog-article {
        padding: 90px 16px 60px;
    }

    .article-header h1 {
        font-size: 1.5rem;
    }

    .article-body h2 {
        font-size: 1.15rem;
        margin: 32px 0 12px;
    }

    .article-body p {
        font-size: 0.92rem;
        line-height: 1.75;
    }

    .article-cta {
        padding: 28px 20px;
    }

    .article-cta .btn {
        width: 100%;
        min-height: 48px;
    }

    .cost-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 14px 18px;
    }

    .cost-label {
        font-size: 0.82rem;
    }

    .cost-value {
        font-size: 0.88rem;
    }

    .city-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* ── Price Tiers ── */
    .price-tiers {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .price-tier {
        padding: 14px 16px;
        text-align: left;
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        gap: 2px 12px;
    }

    .tier-label {
        grid-row: 1 / 3;
        align-self: center;
        margin-bottom: 0;
    }

    .tier-range {
        font-size: 1rem;
        margin-bottom: 0;
    }

    .tier-desc {
        font-size: 0.72rem;
    }

    /* ── Urgency / DIY badges ── */
    .estimate-badges-row {
        gap: 8px;
    }

    .estimate-badge {
        font-size: 0.72rem;
        padding: 6px 14px;
    }

    /* ── Cost breakdown ── */
    .breakdown-legend {
        gap: 6px 14px;
    }

    .legend-item {
        font-size: 0.72rem;
    }

    /* ── Meta row ── */
    .estimate-meta-row {
        gap: 8px;
    }

    .meta-chip {
        font-size: 0.72rem;
        padding: 6px 14px;
    }

    /* ── Multi-photo thumbs ── */
    .preview-thumb {
        width: 80px;
        height: 80px;
    }

    .btn-add-photo {
        width: 80px;
        height: 80px;
    }

    .result-photo-thumb {
        width: 80px;
        height: 60px;
    }

    /* ── Tips grid ── */
    .tips-grid {
        grid-template-columns: 1fr;
    }

    .tip-item, .flag-item {
        font-size: 0.8rem;
        padding: 10px 12px;
    }

    .btn-cta-providers {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 0.88rem;
    }

    /* ── Follow-up chat ── */
    .followup-messages:not(:empty) {
        padding: 16px;
    }

    .followup-msg {
        max-width: 95%;
        font-size: 0.84rem;
        padding: 10px 14px;
    }

    .followup-form {
        padding: 12px;
    }

    .followup-form input {
        font-size: 16px; /* prevent iOS zoom */
        padding: 12px 14px;
    }

    .followup-form input::placeholder {
        font-size: 0.75rem;
    }

    /* ── Disclaimer ── */
    .disclaimer-banner {
        padding: 14px 16px;
    }

    .disclaimer-banner p {
        font-size: 0.75rem;
    }
}

/* Small phones */
@media (max-width: 380px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-ctas {
        flex-direction: column;
    }

    .hero-ctas .btn {
        width: 100%;
    }

    .hero-cards {
        flex-direction: column;
        gap: 12px;
    }

    .hero-card {
        padding: 20px 24px;
        min-width: unset;
        flex-direction: row;
        gap: 12px;
        text-align: left;
    }

    .hero-card-desc {
        display: none;
    }

    .category-text h2 {
        font-size: 1.5rem;
    }

    .upload-zone {
        padding: 32px 16px;
    }

    .estimate-price .range {
        font-size: 1.8rem;
    }
}

/* ── Touch-friendly: ensure all interactive elements are at least 44px ── */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 48px;
    }

    .btn-sm {
        min-height: 44px;
        padding: 10px 18px;
    }

    .chip {
        min-height: 36px;
        display: inline-flex;
        align-items: center;
    }

    .nav-toggle {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .upload-remove {
        width: 40px;
        height: 40px;
        font-size: 1.4rem;
    }

    /* Bigger tap area for "Back to home" link */
    .results-back {
        padding: 10px 0;
        font-size: 0.9rem;
    }
}

/* ========== TRUST BAR ========== */
.trust-bar {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    background: var(--bg-card);
}

.trust-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-faint);
    white-space: nowrap;
}

.trust-item svg {
    color: var(--accent);
    flex-shrink: 0;
}

/* ========== TESTIMONIALS ========== */
.testimonials-section {
    padding: 80px 0;
    background: var(--bg);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.testimonial-card:hover {
    border-color: rgba(77,154,255,0.2);
    box-shadow: var(--shadow-glow-blue);
}

.testimonial-stars {
    color: var(--amber);
    font-size: 1rem;
    letter-spacing: 2px;
}

.testimonial-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    font-style: italic;
    flex: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}

.testimonial-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bg-raised);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
    flex-shrink: 0;
}

.testimonial-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
}

.testimonial-role {
    font-size: 0.75rem;
    color: var(--text-faint);
}

/* ========== DEMO ESTIMATE SECTION ========== */
.demo-section {
    padding: 80px 0;
    background: var(--bg);
}

.demo-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    text-align: center;
    margin-bottom: 40px;
}

.demo-estimate-card {
    max-width: 720px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 32px;
    position: relative;
    overflow: hidden;
}

.demo-header {
    text-align: center;
    margin-bottom: 24px;
}

.demo-header h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text);
    margin: 10px 0 6px;
}

.demo-header p {
    font-size: 0.85rem;
    color: var(--text-faint);
}

.demo-price {
    text-align: center;
    padding: 24px;
    background: linear-gradient(135deg, rgba(77,154,255,0.06), rgba(34,197,94,0.04));
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    margin-bottom: 24px;
}

.demo-price .label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-faint);
    margin-bottom: 8px;
}

.demo-price .range {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), var(--green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.demo-tiers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.demo-tier {
    padding: 16px 12px;
    border-radius: var(--radius-md);
    background: var(--bg-raised);
    border: 1px solid var(--border);
    text-align: center;
}

.demo-tier.tier-highlight {
    border-color: rgba(77,154,255,0.3);
    box-shadow: var(--shadow-glow-blue);
}

.demo-tier-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 6px;
}

.demo-tier-range {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.demo-tier-desc {
    font-size: 0.72rem;
    color: var(--text-faint);
}

.demo-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
}

.demo-badge-time {
    background: rgba(77,154,255,0.08);
    border: 1px solid rgba(77,154,255,0.2);
    color: var(--accent);
}

.demo-breakdown {
    margin-bottom: 20px;
}

.demo-breakdown-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.demo-tips {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.demo-tip {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    padding: 12px 16px;
    background: var(--bg-raised);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.demo-tip span:first-child {
    flex-shrink: 0;
}

.demo-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, var(--bg-card) 60%, var(--bg-card));
    pointer-events: none;
}

.demo-cta {
    text-align: center;
    margin-top: 32px;
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1.05rem;
    font-weight: 700;
}

/* ========== FEEDBACK WIDGET ========== */
.feedback-widget {
    margin-top: 32px;
    text-align: center;
}

.feedback-inner {
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.feedback-inner h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.feedback-inner > p {
    font-size: 0.85rem;
    color: var(--text-faint);
    margin-bottom: 18px;
}

.feedback-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.feedback-buttons[hidden] {
    display: none !important;
}

.feedback-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.25s, color 0.25s, background 0.25s;
}

.feedback-yes:hover { border-color: var(--green); color: var(--green); background: rgba(34,197,94,0.06); }
.feedback-close:hover { border-color: var(--accent); color: var(--accent); background: rgba(77,154,255,0.06); }
.feedback-high:hover { border-color: var(--amber); color: var(--amber); background: rgba(245,158,11,0.06); }
.feedback-low:hover { border-color: var(--red); color: var(--red); background: rgba(239,68,68,0.06); }

.feedback-thanks {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--green);
    font-size: 0.9rem;
    font-weight: 500;
}

.feedback-thanks[hidden] {
    display: none !important;
}

/* ========== RESPONSIVE — NEW SECTIONS ========== */
@media (max-width: 768px) {
    .trust-inner {
        gap: 16px;
        justify-content: center;
    }

    .trust-item {
        font-size: 0.75rem;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .demo-estimate-card {
        padding: 20px;
    }

    .demo-tiers {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .demo-price .range {
        font-size: 1.6rem;
    }

    .feedback-buttons {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .feedback-btn {
        justify-content: center;
    }
}

/* ── Safe area insets for notched phones ── */
@supports (padding-top: env(safe-area-inset-top)) {
    .nav {
        padding-top: env(safe-area-inset-top);
    }

    .footer {
        padding-bottom: calc(32px + env(safe-area-inset-bottom));
    }

    .results-page {
        padding-bottom: calc(60px + env(safe-area-inset-bottom));
    }
}

/* Cost guide disclaimer */
.cost-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: #f4f5f7;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    line-height: 1.55;
    color: #555;
}
.cost-disclaimer-icon {
    flex-shrink: 0;
    font-size: 1.1rem;
    margin-top: 0.1rem;
}
.cost-disclaimer p {
    margin: 0;
}
