/* 
 * SolVantage Solar Lead Gen Engine - Premium Stylesheet
 * Obsessively designed to maximize user trust and conversion rate.
 */

:root {
    --color-bg-primary: #020C1B;
    --color-bg-secondary: #0A192F;
    --color-bg-tertiary: #172A45;
    
    --color-text-primary: #F2F5FA;
    --color-text-secondary: #8892B0;
    --color-text-muted: #64748B;
    
    --color-accent-gold: #FFB800;
    --color-accent-gold-hover: #E0A200;
    --color-accent-green: #00E8C6;
    --color-accent-green-dark: #10B981;
    --color-accent-blue: #1E3E62;
    --color-accent-crimson: #F43F5E;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --glass-bg: rgba(10, 25, 47, 0.7);
    --glass-border: rgba(255, 255, 255, 0.06);
    --glass-border-focus: rgba(0, 232, 198, 0.4);
    
    --shadow-premium: 0 20px 40px -15px rgba(2, 12, 27, 0.8);
    --shadow-glow-green: 0 0 15px rgba(0, 232, 198, 0.3);
    --shadow-glow-gold: 0 0 15px rgba(255, 184, 0, 0.3);
    
    --radius-lg: 16px;
    --radius-md: 10px;
    --radius-sm: 6px;
    
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Base resets & styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-body);
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    line-height: 1.6;
}

body {
    background-image: 
        radial-gradient(at 0% 0%, rgba(23, 42, 69, 0.4) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(0, 232, 198, 0.05) 0px, transparent 50%);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Helper Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* Header UI */
.site-header {
    background-color: rgba(2, 12, 27, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 16px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 8px;
}

.logo-icon {
    font-size: 28px;
    color: var(--color-accent-gold);
    line-height: 1;
    filter: drop-shadow(0 0 5px rgba(255, 184, 0, 0.5));
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 22px;
    color: var(--color-text-primary);
    letter-spacing: -0.03em;
}

.header-cta-block {
    display: flex;
    align-items: center;
    gap: 16px;
}

.trust-badge-mini {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-accent-gold);
    background: rgba(255, 184, 0, 0.1);
    padding: 4px 10px;
    border-radius: 100px;
    border: 1px solid rgba(255, 184, 0, 0.2);
}

/* Button & Action Physics */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-smooth);
    padding: 14px 28px;
}

.btn-primary {
    background-color: var(--color-accent-green);
    color: var(--color-bg-primary);
}

.btn-primary:hover {
    background-color: #00ffd9;
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-green);
}

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

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--color-text-primary);
    border-color: var(--color-text-secondary);
}

.btn-submit {
    background-color: var(--color-accent-gold);
    color: var(--color-bg-primary);
    font-size: 16px;
    letter-spacing: -0.01em;
    width: 100%;
}

.btn-submit:hover {
    background-color: var(--color-accent-gold-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-gold);
}

.header-phone-btn {
    display: inline-flex;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    background: var(--color-bg-tertiary);
    border: 1px solid var(--glass-border);
    color: var(--color-text-primary);
    text-decoration: none;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    transition: var(--transition-smooth);
}

.header-phone-btn:hover {
    background: var(--color-accent-green);
    color: var(--color-bg-primary);
    border-color: var(--color-accent-green);
}

/* Micro-Interaction Animation: Subtle Pulse Action */
@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(0, 232, 198, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(0, 232, 198, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 232, 198, 0); }
}

.btn-action-glow {
    animation: pulseGlow 2.5s infinite;
}

/* Glassmorphism Containers */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-premium);
    overflow: hidden;
}

/* Hero Section */
.hero-section {
    padding: 60px 24px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.eyebrow-badge {
    display: inline-block;
    color: var(--color-accent-green);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.highlight-badge {
    color: var(--color-accent-gold);
    background: rgba(255, 184, 0, 0.08);
    border: 1px solid rgba(255, 184, 0, 0.15);
    padding: 4px 12px;
    border-radius: 100px;
}

.hero-text-content h1 {
    font-size: 48px;
    line-height: 1.15;
    margin-bottom: 20px;
    color: var(--color-text-primary);
}

.hero-subtitle {
    font-size: 18px;
    color: var(--color-text-secondary);
    margin-bottom: 30px;
}

.trust-indicators-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: var(--color-text-primary);
}

.trust-icon {
    width: 20px;
    height: 20px;
    background: rgba(0, 232, 198, 0.1);
    border-radius: 50%;
    color: var(--color-accent-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
}

/* Multi-Step Calculator Layout */
.calculator-card {
    padding: 36px;
}

.calc-progress-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.step-badge {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    letter-spacing: 0.05em;
}

.progress-bar-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 100px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--color-accent-green);
    border-radius: 100px;
    transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Multi-step logic (handled by calculator.js) */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: stepEnter 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes stepEnter {
    from { opacity: 0; transform: translateX(15px); }
    to { opacity: 1; transform: translateX(0); }
}

.form-step h2 {
    font-size: 20px;
    margin-bottom: 8px;
    line-height: 1.3;
}

.step-desc {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-bottom: 24px;
}

/* Slider physics styling */
.bill-slider-wrapper {
    background: var(--color-bg-tertiary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 24px;
    text-align: center;
}

.bill-value-display {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 800;
    color: var(--color-accent-gold);
    margin-bottom: 12px;
    text-shadow: 0 0 10px rgba(255, 184, 0, 0.2);
}

.bill-range-input {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    margin: 15px 0;
}

.bill-range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--color-accent-gold);
    cursor: pointer;
    transition: transform 0.1s;
    box-shadow: 0 0 10px rgba(255, 184, 0, 0.5);
}

.bill-range-input::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--color-text-muted);
}

/* Inputs & Form Controls */
.form-group {
    margin-bottom: 20px;
}

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

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-secondary);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    background: var(--color-bg-tertiary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--color-text-primary);
    padding: 14px 18px;
    font-family: var(--font-body);
    font-size: 15px;
    outline: none;
    transition: var(--transition-smooth);
}

.form-control:focus {
    border-color: var(--color-accent-green);
    box-shadow: 0 0 8px rgba(0, 232, 198, 0.15);
}

.error-msg {
    color: var(--color-accent-crimson);
    font-size: 12px;
    margin-top: 6px;
    display: none;
}

.step-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.step-actions .btn-prev {
    flex: 0.35;
}

.step-actions .btn-next,
.step-actions .btn-submit {
    flex: 0.65;
}

/* TCPA Disclosure */
.tcpa-disclosure {
    font-size: 11px;
    color: var(--color-text-muted);
    line-height: 1.4;
    margin-top: 15px;
}

/* Dynamic Location feedback */
.location-feedback-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    padding: 6px 14px;
    margin-top: 10px;
    font-size: 12px;
    color: var(--color-text-secondary);
}

.location-feedback-pill.verified {
    background: rgba(0, 232, 198, 0.05);
    border-color: rgba(0, 232, 198, 0.2);
    color: var(--color-text-primary);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--color-accent-green);
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    50% { opacity: 0.3; }
}

/* Social Proof Toast Widget */
.social-proof-toast {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    padding: 12px 18px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.4;
    max-width: 90%;
}

.live-indicator {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 10px;
    color: var(--color-accent-crimson);
    background: rgba(244, 63, 94, 0.1);
    border: 1px solid rgba(244, 63, 94, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
    letter-spacing: 0.05em;
}

.pulse-indicator {
    width: 6px;
    height: 6px;
    background-color: var(--color-accent-crimson);
    border-radius: 50%;
    animation: blink 1s infinite;
}

/* Quick Stats Grid */
.quick-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 30px;
}

.stat-card {
    background: var(--color-bg-secondary);
    border: 1px solid var(--glass-border);
    padding: 16px;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
}

.stat-lbl {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
}

.stat-val {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-top: 4px;
}

/* Loading Spinner Step */
.loader-wrapper {
    text-align: center;
    padding: 40px 0;
}

.solar-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0, 232, 198, 0.1);
    border-top: 3px solid var(--color-accent-green);
    border-radius: 50%;
    animation: rotateSpinner 1s linear infinite;
    margin: 0 auto 20px auto;
}

@keyframes rotateSpinner {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Success Step Layout */
.success-wrapper {
    text-align: center;
}

.success-circle {
    width: 60px;
    height: 60px;
    background: rgba(0, 232, 198, 0.15);
    border: 2px solid var(--color-accent-green);
    border-radius: 50%;
    color: var(--color-accent-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    margin: 0 auto 20px auto;
}

.success-hero-text {
    font-size: 18px;
    margin-top: 8px;
}

.savings-highlights-card {
    background: var(--color-bg-tertiary);
    border: 1px solid var(--glass-border);
    padding: 24px;
    border-radius: var(--radius-md);
    margin: 24px 0;
}

.success-wrapper h3 {
    font-size: 22px;
}

.highlight-val {
    font-family: var(--font-heading);
    font-size: 38px;
    font-weight: 800;
    color: var(--color-accent-gold);
}

.highlight-lbl {
    font-size: 12px;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    margin-top: 4px;
}

.success-instruction {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-bottom: 24px;
}

/* Trust-Building Savings Breakdown Styles */
.savings-breakdown-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 20px;
    margin: 20px 0 24px 0;
    text-align: left;
}

.savings-breakdown-box h4 {
    font-size: 13px;
    color: var(--color-text-primary);
    margin-bottom: 12px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--color-text-secondary);
    margin-bottom: 8px;
}

.breakdown-row strong {
    color: var(--color-accent-green);
}

.breakdown-row.total {
    border-top: 1px dashed var(--glass-border);
    padding-top: 10px;
    margin-top: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-primary);
}

.breakdown-row.total strong {
    color: var(--color-accent-gold);
    font-size: 16px;
}

.breakdown-note {
    font-size: 11px;
    color: var(--color-text-muted);
    margin-top: 12px;
    line-height: 1.4;
}

/* pSEO Rich Semantic Content Layout */
.pseo-content-section {
    padding: 60px 24px;
    border-top: 1px solid var(--glass-border);
}

.pseo-content-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.5fr;
    gap: 48px;
}

.main-body-content {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.content-block h2 {
    font-size: 28px;
    color: var(--color-text-primary);
    margin-bottom: 16px;
}

.content-block p {
    color: var(--color-text-secondary);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.content-block p strong {
    color: var(--color-text-primary);
}

/* Incentives Table Styling */
.incentives-table-wrapper {
    background: var(--color-bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin: 24px 0;
}

.incentives-summary-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.incentives-summary-table th, 
.incentives-summary-table td {
    padding: 16px;
    text-align: left;
}

.incentives-summary-table th {
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--glass-border);
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-text-primary);
}

.incentives-summary-table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--color-text-secondary);
}

.incentives-summary-table tr:last-child td {
    border-bottom: none;
}

/* ROI Summary Card */
.roi-summary-card {
    background: radial-gradient(circle at 0% 0%, rgba(0, 232, 198, 0.08) 0px, transparent 60%), var(--color-bg-secondary);
    border: 1px solid var(--glass-border);
    padding: 24px;
    border-radius: var(--radius-md);
    margin: 24px 0;
}

.roi-summary-card h3 {
    font-size: 18px;
    margin-bottom: 20px;
}

.roi-stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.roi-stat-box {
    display: flex;
    flex-direction: column;
    padding: 12px;
    border-left: 2px solid var(--color-accent-green);
}

.roi-val {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text-primary);
}

.roi-lbl {
    font-size: 11px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    margin-top: 4px;
}

/* FAQ Styling */
.faq-section {
    border-top: 1px solid var(--glass-border);
    padding-top: 36px;
}

.faq-section h3 {
    margin-bottom: 24px;
}

.faq-item {
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.01);
    padding: 20px;
    border-radius: var(--radius-md);
    border-left: 3px solid var(--color-accent-gold);
}

.faq-item h4 {
    font-size: 16px;
    color: var(--color-text-primary);
    margin-bottom: 8px;
}

.faq-item p {
    font-size: 14px;
    margin-bottom: 0;
    color: var(--color-text-secondary);
}

/* Sidebar Styling */
.sidebar-widgets {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sticky-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-lead-card, 
.local-news-card {
    padding: 24px;
    margin-bottom: 24px;
}

.sidebar-lead-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.sidebar-lead-card p {
    font-size: 13px;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
}

.sidebar-lead-card .btn {
    width: 100%;
}

.local-news-card h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.news-date {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--color-accent-gold);
    display: block;
    margin-bottom: 12px;
}

.local-news-card p {
    font-size: 13px;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

/* National Hub Directory */
.directory-section {
    padding: 60px 24px;
    border-top: 1px solid var(--glass-border);
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 32px;
    margin: 8px 0 12px 0;
}

.section-header p {
    color: var(--color-text-secondary);
    font-size: 16px;
}

.directory-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.state-directory-card {
    background: var(--color-bg-secondary);
    border: 1px solid var(--glass-border);
    padding: 24px;
    border-radius: var(--radius-md);
    transition: var(--transition-smooth);
}

.state-directory-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.state-directory-card h3 {
    font-size: 15px;
    margin-bottom: 16px;
    color: var(--color-text-primary);
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 8px;
}

.state-directory-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.state-directory-card a {
    color: var(--color-text-secondary);
    font-size: 13px;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.state-directory-card a:hover {
    color: var(--color-accent-green);
}

/* Error/404 Page Styles */
.error-page {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
}

.error-card {
    max-width: 600px;
    width: 100%;
    padding: 48px;
    text-align: center;
}

.warning-badge {
    color: var(--color-accent-crimson);
    background: rgba(244, 63, 94, 0.1);
    border: 1px solid rgba(244, 63, 94, 0.2);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 100px;
    display: inline-block;
    margin-bottom: 16px;
}

.error-card h1 {
    font-size: 32px;
    margin-bottom: 16px;
}

.error-card p {
    color: var(--color-text-secondary);
    margin-bottom: 24px;
}

.tech-log {
    font-family: monospace;
    background: #000;
    padding: 10px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    color: #64748B;
    text-align: left;
    overflow-x: auto;
}

/* Site Footer */
.site-footer {
    background-color: var(--color-bg-primary);
    border-top: 1px solid var(--glass-border);
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 48px 24px;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-brand-info {
    max-width: 400px;
}

.footer-tagline {
    font-size: 13px;
    color: var(--color-text-secondary);
    margin-top: 12px;
}

.footer-badges {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.seal-badge {
    background: var(--color-bg-secondary);
    border: 1px solid var(--glass-border);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge-icon {
    color: var(--color-accent-green);
    font-weight: bold;
    font-size: 14px;
}

.seal-badge:nth-child(2) .badge-icon {
    color: var(--color-accent-gold);
}

.badge-label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 11px;
    color: var(--color-text-secondary);
    letter-spacing: 0.05em;
}

.footer-bottom {
    background-color: rgba(2, 12, 27, 0.5);
    border-top: 1px solid var(--glass-border);
    padding: 24px 0;
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--color-text-muted);
    flex-wrap: wrap;
    gap: 16px;
}

.copyright {
    max-width: 70%;
    line-height: 1.5;
}

.legal-links {
    display: flex;
    gap: 16px;
}

.legal-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.legal-links a:hover {
    color: var(--color-accent-green);
}

/* Tablet & Mobile Responsiveness */
@media (max-width: 991px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .hero-text-content {
        text-align: center;
    }
    .eyebrow-badge {
        margin-left: auto;
        margin-right: auto;
    }
    .trust-indicators-list {
        align-items: center;
    }
    .social-proof-toast {
        margin-left: auto;
        margin-right: auto;
    }
    .quick-stats-grid {
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }
    .pseo-content-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .sidebar-widgets {
        display: none; /* Simplify on mobile for pSEO layout prioritization */
    }
    .directory-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .hero-text-content h1 {
        font-size: 32px;
    }
    .hero-subtitle {
        font-size: 15px;
    }
    .calculator-card {
        padding: 24px;
    }
    .directory-grid {
        grid-template-columns: 1fr;
    }
    .footer-content {
        flex-direction: column;
        align-items: flex-start;
    }
    .footer-bottom-flex {
        flex-direction: column;
        align-items: flex-start;
    }
    .copyright {
        max-width: 100%;
    }
    .form-group-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}
