* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #ffffff;
    --surface-alt: #f8fafc;
    --text: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --primary: #1e3a8a;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --accent: #f97316;
    --accent-dark: #ea580c;
    --accent-light: #fb923c;
    --success: #10b981;
    --hero: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #1e40af 100%);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --container: 1200px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

img {
    max-width: 100%;
}

.container {
    width: min(var(--container), calc(100% - 40px));
    margin: 0 auto;
}

.section {
    padding: 100px 0;
}

.section-light {
    background: var(--surface-alt);
}

.chat-bubble.bot {
    white-space: pre-line;
}

.citation-box {
    white-space: pre-line;
}

.section-heading {
    display: flex;
    gap: 24px;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 100px;
}

.steps-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 80px;
}

.section-heading.centered {
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
}

.section-heading.narrow {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-heading h2,
.final-cta-copy h2,
.hero-copy h1 {
    line-height: 1.2;
}

.section-heading h2,
.final-cta-copy h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 16px;
    font-weight: 700;
}

.section-heading p,
.section-text,
.final-cta-copy p {
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1.7;
}

.section-eyebrow,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 16px;
}

.eyebrow {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 999px;
}

.btn {
    border: 0;
    border-radius: 999px;
    padding: 14px 28px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--line);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(30, 64, 175, 0.05);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.full-width {
    width: 100%;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
}

.nav-container {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nav-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.25rem;
}

.nav-logo i,
.footer-logo i {
    color: var(--accent);
}

.nav-menu,
.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    color: var(--muted);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--primary);
    background: rgba(30, 64, 175, 0.05);
}

.nav-btn {
    padding: 10px 20px;
    font-size: 0.95rem;
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: 0;
    font-size: 1.5rem;
    color: var(--text);
    cursor: pointer;
}

.hero {
    background: var(--hero);
    color: #fff;
    padding: 80px 0 120px;
    position: relative;
    overflow: hidden;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
}

.hero::before {
    width: 600px;
    height: 600px;
    background: rgba(249, 115, 22, 0.12);
    top: -200px;
    right: -200px;
    animation: floatGlow 8s ease-in-out infinite;
}

.hero::after {
    width: 500px;
    height: 500px;
    background: rgba(59, 130, 246, 0.12);
    left: -200px;
    bottom: -150px;
    animation: floatGlow 10s ease-in-out infinite reverse;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

@keyframes floatGlow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}

.hero-copy h1 {
    font-size: clamp(3rem, 7vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero-title .highlight {
    color: var(--accent);
    position: relative;
}

.hero-flow-inline {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.flow-step {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
}

.flow-step.highlight {
    background: var(--accent);
    border-color: var(--accent);
}

.flow-arrow {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.15rem;
    max-width: 55ch;
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-support-line {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    margin-bottom: 24px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}

.hero .btn-secondary {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
}

.hero .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
}

.trust-strip span {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: particleFloat 15s ease-in-out infinite;
    animation-delay: var(--delay);
}

.particle:nth-child(1) { left: calc(50% + var(--x)); top: var(--y); }
.particle:nth-child(2) { left: calc(50% + var(--x)); top: var(--y); }
.particle:nth-child(3) { left: calc(50% + var(--x)); top: var(--y); }
.particle:nth-child(4) { left: calc(50% + var(--x)); top: var(--y); }
.particle:nth-child(5) { left: calc(50% + var(--x)); top: var(--y); }

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-100px) scale(1.5);
        opacity: 0.6;
    }
}

.floating-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.floating-icon {
    position: absolute;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    animation: iconFloat var(--duration, 6s) ease-in-out infinite;
    animation-delay: var(--delay);
}

.floating-icon:nth-child(1) { top: 10%; right: 10%; }
.floating-icon:nth-child(2) { top: 60%; left: 5%; }
.floating-icon:nth-child(3) { bottom: 20%; right: 5%; }
.floating-icon:nth-child(4) { top: 30%; left: 15%; }
.floating-icon:nth-child(5) { bottom: 40%; right: 20%; }

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(5deg);
    }
    50% {
        transform: translateY(-40px) rotate(0deg);
    }
    75% {
        transform: translateY(-20px) rotate(-5deg);
    }
}

.scanner-animation {
    position: relative;
    width: 320px;
    height: 380px;
    z-index: 10;
}

.scanner-base {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 12px;
    background: linear-gradient(90deg, #334155 0%, #475569 50%, #334155 100%);
    border-radius: 6px;
}

.scanner-arm {
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 280px;
    background: linear-gradient(180deg, #475569 0%, #334155 100%);
    border-radius: 4px;
    animation: scanMove 4s ease-in-out infinite;
}

.scanner-camera {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(249, 115, 22, 0.4);
}

.scanner-camera::after {
    content: "";
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    animation: cameraPulse 2s ease-in-out infinite;
}

.scanned-document {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: 240px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent);
    box-shadow: 0 0 20px var(--accent);
    animation: scan 3s ease-in-out infinite;
}

.document-content {
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.doc-line {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    animation: docPulse 3s ease-in-out infinite;
}

.doc-line:nth-child(1) { width: 90%; animation-delay: 0s; }
.doc-line:nth-child(2) { width: 70%; animation-delay: 0.2s; }
.doc-line:nth-child(3) { width: 85%; animation-delay: 0.4s; }
.doc-line:nth-child(4) { width: 60%; animation-delay: 0.6s; }
.doc-line:nth-child(5) { width: 80%; animation-delay: 0.8s; }

.digital-output {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 24px rgba(30, 64, 175, 0.4);
    animation: float 4s ease-in-out infinite;
}

.output-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
}

.output-text {
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@keyframes scan {
    0%, 100% { top: 0; opacity: 0; }
    10%, 90% { opacity: 1; }
    50% { top: calc(100% - 4px); }
}

@keyframes scanMove {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(20px); }
}

@keyframes cameraPulse {
    0%, 100% { opacity: 0.9; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.1); }
}

@keyframes docPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.three-col-grid,
.tile-grid,
.steps-grid,
.path-grid,
.footer-grid,
.card-grid {
    display: grid;
    gap: 24px;
    margin-top: 0;
}

.three-col-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.use-case-card,
.outcome-tile,
.step-card,
.path-card,
.trust-card,
.highlight-panel,
.sample-chat-card,
.calculator-card,
.estimate-card,
.contact-form-card,
.faq-item {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.feature-card:hover,
.use-case-card:hover,
.step-card:hover,
.path-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.feature-card,
.use-case-card,
.step-card,
.path-card,
.highlight-panel,
.trust-card,
.contact-form-card,
.calculator-card,
.estimate-card,
.sample-chat-card {
    padding: 32px;
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.feature-card h3,
.use-case-card h3,
.step-card h3,
.path-card h3,
.highlight-panel h3,
.trust-row h3,
.sample-chat-card h3,
.estimate-block h3,
.contact-form-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.feature-card p,
.use-case-card p,
.step-card p,
.path-card p,
.highlight-panel p,
.trust-row p,
.calculator-note,
.contact-form-card label,
.estimate-block,
.path-label,
.sample-chat-header span,
.footer p,
.footer li a,
.faq-answer p {
    color: var(--muted);
}

.use-case-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.use-case-card {
    min-height: 100%;
}

.tile-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.outcome-tile {
    padding: 32px;
    font-weight: 700;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.5;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.outcome-tile:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
}

.two-col-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 440px);
    gap: 40px;
    align-items: start;
}

.check-list {
    list-style: none;
    display: grid;
    gap: 16px;
}

.check-list li {
    position: relative;
    padding-left: 36px;
    font-weight: 500;
    font-size: 1.05rem;
}

.check-list li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--success);
}

.large-list li {
    font-size: 1.1rem;
}

.highlight-panel {
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.1);
}

.highlight-panel p,
.highlight-panel .panel-metrics span {
    color: rgba(255, 255, 255, 0.8);
}

.panel-badge,
.status-pill,
.path-label {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-weight: 600;
}

.panel-badge,
.status-pill {
    font-size: 0.8rem;
    padding: 8px 14px;
}

.panel-badge {
    background: rgba(255, 255, 255, 0.15);
    margin-bottom: 16px;
}

.panel-metrics {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

.panel-metrics div {
    padding: 18px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.panel-metrics strong,
.path-label,
.summary-row strong,
.estimate-line strong {
    display: block;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
    margin-bottom: 20px;
}

.section-cta {
    margin-top: 40px;
}

.centered-cta {
    text-align: center;
}

.sample-grid,
.final-cta-grid,
.calculator-layout {
    display: grid;
    gap: 32px;
    align-items: start;
}

.sample-grid,
.final-cta-grid,
.calculator-layout {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 480px);
}

.prompt-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 32px;
}

.prompt-chip {
    padding: 12px 18px;
    border-radius: 999px;
    border: 2px solid var(--line);
    background: var(--bg);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.prompt-chip:hover,
.prompt-chip.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.sample-chat-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.sample-chat-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: start;
    margin-bottom: 24px;
}

.sample-chat-header strong {
    display: block;
    margin-bottom: 6px;
    font-size: 1.1rem;
}

.status-pill {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.sample-chat-body {
    display: grid;
    gap: 16px;
    margin-bottom: 24px;
}

.chat-bubble,
.citation-box {
    border-radius: 18px;
    padding: 18px 20px;
}

.chat-bubble.user {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    margin-left: auto;
    max-width: 90%;
    font-weight: 600;
}

.chat-bubble.bot {
    background: var(--bg);
    border: 1px solid var(--line);
}

.citation-box {
    background: rgba(249, 115, 22, 0.08);
    border: 1px solid rgba(249, 115, 22, 0.2);
    color: #9a4d0e;
    font-size: 0.95rem;
}

.trust-card {
    display: grid;
    gap: 20px;
}

.trust-row {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 16px;
    align-items: start;
}

.trust-row i {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    color: var(--primary);
    font-size: 1.4rem;
}

.path-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.path-card.featured {
    border-color: rgba(249, 115, 22, 0.3);
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.15);
}

.path-label {
    font-size: 0.8rem;
    color: var(--primary);
    background: rgba(30, 64, 175, 0.1);
    padding: 8px 14px;
    margin-bottom: 16px;
}

.calculator-heading {
    align-items: start;
}

.calculator-note {
    max-width: 340px;
    padding: 20px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 16px;
    font-weight: 500;
    font-size: 0.95rem;
}

.calculator-group {
    margin-bottom: 24px;
}

.calculator-group label,
.contact-form-card label {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: var(--text);
}

.calculator-group input,
.calculator-group select,
.calculator-group textarea,
.contact-form-card input,
.contact-form-card select,
.contact-form-card textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 10px;
    border: 2px solid var(--line);
    background: #fff;
    color: var(--text);
    font-size: 1rem;
    transition: all 0.2s ease;
}

.calculator-group input:focus,
.calculator-group select:focus,
.calculator-group textarea:focus,
.contact-form-card input:focus,
.contact-form-card select:focus,
.contact-form-card textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.two-up {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.calculator-options-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.option-panel {
    background: var(--surface-alt);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 24px;
}

.option-panel h3 {
    margin-bottom: 16px;
    font-size: 1.1rem;
    font-weight: 700;
}

.check-option {
    display: flex;
    gap: 12px;
    align-items: start;
    padding: 10px 0;
    font-weight: 500;
    cursor: pointer;
    font-size: 0.95rem;
}

.check-option input {
    margin-top: 4px;
    accent-color: var(--primary);
    width: 18px;
    height: 18px;
}

.estimate-card {
    display: grid;
    gap: 24px;
    position: sticky;
    top: 98px;
}

.estimate-block {
    padding: 24px;
    border-radius: 16px;
    background: var(--surface-alt);
    border: 1px solid var(--line);
}

.estimate-line,
.summary-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.estimate-line:last-child,
.summary-row:last-child {
    border-bottom: 0;
}

.estimate-line span,
.summary-row span {
    color: var(--muted);
    font-weight: 500;
}

.estimate-line strong,
.summary-row strong {
    text-align: right;
    max-width: 55%;
    font-weight: 700;
}

.estimate-line.total {
    padding-top: 20px;
    margin-top: 8px;
    border-top: 2px solid var(--line);
    border-bottom: 0;
}

.estimate-line.total strong {
    color: var(--accent-dark);
    font-size: 1.4rem;
}

.discount-banner {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    font-weight: 600;
    font-size: 0.95rem;
}

.estimate-actions {
    display: grid;
    gap: 12px;
}

.faq-list {
    max-width: 920px;
    margin: 0 auto;
    display: grid;
    gap: 16px;
}

.faq-item {
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: none;
    border: 0;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    text-align: left;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--text);
    transition: background 0.2s ease;
}

.faq-question:hover {
    background: var(--surface-alt);
}

.faq-question i {
    color: var(--primary);
    transition: transform 0.2s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding: 0 24px 20px;
    font-size: 1rem;
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
}

.final-cta-section {
    background: linear-gradient(180deg, #0f172a 0%, #1e3a8a 100%);
    color: #fff;
}

.final-cta-section .section-eyebrow {
    color: rgba(255, 255, 255, 0.9);
}

.final-cta-copy p,
.contact-points {
    color: rgba(255, 255, 255, 0.8);
}

.cta-button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 28px 0 32px;
}

.final-cta-copy .btn-secondary {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
}

.contact-points {
    display: grid;
    gap: 14px;
}

.contact-points div {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 1rem;
}

.contact-form-card {
    background: #fff;
    color: var(--text);
}

.form-row {
    margin-bottom: 20px;
}

.footer {
    background: #0f172a;
    color: #fff;
    padding: 64px 0 32px;
}

.footer-simple {
    display: grid;
    gap: 24px;
    justify-items: center;
    text-align: center;
}

.footer-simple p {
    max-width: 700px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-links-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    justify-content: center;
}

.footer-links-inline a {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-links-inline a:hover {
    color: #fff;
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.notification {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1200;
    padding: 18px 22px;
    border-radius: 14px;
    background: #fff;
    color: var(--text);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-xl);
    max-width: 360px;
    font-weight: 500;
}

.notification.success {
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.05);
}

.notification.error {
    border-color: rgba(234, 88, 12, 0.3);
    background: rgba(234, 88, 12, 0.05);
}

@media (max-width: 1200px) {
    .use-case-grid,
    .tile-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .steps-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sample-grid,
    .final-cta-grid,
    .calculator-layout,
    .two-col-split,
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        margin-top: 40px;
    }

    .estimate-card {
        position: static;
    }

    /* Center button groups on portrait orientation */
    .hero-flow-inline {
        justify-content: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .trust-strip {
        justify-content: center;
    }
}

@media (max-width: 900px) {
    .nav-container {
        flex-wrap: wrap;
        padding: 16px 0;
    }

    .mobile-menu-toggle {
        display: block;
        margin-left: auto;
    }

    .nav-menu,
    .nav-actions {
        width: 100%;
        display: none;
        flex-direction: column;
        align-items: stretch;
    }

    .nav-menu.active,
    .nav-actions.active {
        display: flex;
    }

    .nav-link,
    .nav-btn {
        width: 100%;
        text-align: center;
    }

    .three-col-grid,
    .path-grid,
    .calculator-options-grid,
    .use-case-grid,
    .tile-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .section {
        padding: 80px 0;
    }

    .container {
        width: min(var(--container), calc(100% - 24px));
    }

    .hero {
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .hero-copy h1 {
        max-width: none;
    }

    .hero-actions,
    .cta-button-row {
        flex-direction: column;
    }

    .hero-actions .btn,
    .cta-button-row .btn {
        width: 100%;
    }

    .three-col-grid,
    .path-grid,
    .calculator-options-grid,
    .footer-grid,
    .use-case-grid,
    .tile-grid,
    .steps-grid,
    .two-up {
        grid-template-columns: 1fr;
    }

    .feature-card,
    .use-case-card,
    .step-card,
    .path-card,
    .highlight-panel,
    .trust-card,
    .contact-form-card,
    .calculator-card,
    .estimate-card,
    .sample-chat-card {
        padding: 24px;
    }

    .section-heading {
        align-items: start;
        flex-direction: column;
        gap: 16px;
    }

    .estimate-line,
    .summary-row {
        flex-direction: column;
        gap: 8px;
    }

    .estimate-line strong,
    .summary-row strong {
        max-width: 100%;
        text-align: left;
    }

    .notification {
        left: 16px;
        right: 16px;
        bottom: 16px;
        max-width: none;
    }

    .scanner-animation {
        width: 280px;
        height: 340px;
    }

}
