/* ==========================================================================
   TAC COMPS — SHARED STYLESHEET (v2026-10-05)
   Option A: Fixed Navy Header + Animated Gradient BG + 1000px Container
   ========================================================================== */

:root {
    --tac-navy: #1a2f4a;
    --tac-blue: #1a5f7a;
    --tac-gold: #c9a227;
    --tac-light: #f8f9fa;
    --tac-white: #ffffff;
    --text-primary: #1a2f4a;
    --text-secondary: #5a6a7a;
    --border-light: #e2e8f0;
    --success-green: #059669;
    --warning-orange: #d97706;
    --error-red: #dc2626;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--tac-light);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
}

/* ==========================================================================
   ANIMATED GRADIENT BACKGROUND (Unified across all pages)
   ========================================================================== */
.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1a2f4a 0%, #1a4a5f 25%, #1a5f7a 50%, #2a5f6a 75%, #1a3f5a 100%);
    background-size: 400% 400%;
    animation: gradientShift 30s ease infinite;
    z-index: -3;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.map-overlay-gradient {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(26, 47, 74, 0.4) 0%, rgba(26, 47, 74, 0.7) 50%, rgba(26, 47, 74, 0.9) 100%);
    z-index: -2;
    pointer-events: none;
}

/* ==========================================================================
   CONTAINER (Unified: 1000px max-width)
   ========================================================================== */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 24px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ==========================================================================
   FIXED NAVY HEADER (Unified: sticky, solid navy bar)
   ========================================================================== */
header {
    background: var(--tac-navy);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content, .main-nav {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--tac-white);
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-text {
    text-align: left;
}

.logo-text h2 {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

.logo-text p {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    margin: 2px 0 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
    color: var(--tac-gold);
}

.nav-cta {
    background: var(--tac-gold) !important;
    color: var(--tac-navy) !important;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none !important;
    font-size: 14px;
}

.nav-cta:hover {
    background: #b8941d !important;
}

.back-link {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.back-link:hover {
    color: var(--tac-gold);
}

/* Breadcrumb (for pages that use it) */
.breadcrumb {
    background: linear-gradient(135deg, rgba(26, 47, 74, 0.03), rgba(26, 95, 122, 0.03));
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
}

.breadcrumb-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    font-size: 13px;
}

.breadcrumb-list a {
    color: var(--text-secondary);
    text-decoration: none;
}

.breadcrumb-list a:hover {
    color: var(--tac-blue);
}

.breadcrumb-list li[aria-current="page"] {
    color: var(--text-primary);
    font-weight: 500;
}

.breadcrumb-separator {
    color: var(--text-secondary);
    opacity: 0.5;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'DM Serif Display', serif;
    color: var(--tac-navy);
    line-height: 1.2;
}

h1 { font-size: clamp(36px, 5vw, 52px); font-weight: 400; }
h2 { font-size: clamp(28px, 4vw, 36px); font-weight: 400; }
h3 { font-size: clamp(20px, 3vw, 24px); font-weight: 600; }
h4 { font-size: 16px; font-weight: 600; }

h1 span { color: var(--tac-gold); }

/* ==========================================================================
   BUTTONS & FORMS
   ========================================================================== */
label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

input, select, textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--tac-white);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--tac-blue);
    box-shadow: 0 0 0 3px rgba(26, 95, 122, 0.1);
}

input::placeholder, textarea::placeholder {
    color: #a0aec0;
}

.submit-btn, .btn-primary, .cta-btn, .cta-gold, .cta-navy, .cta-green, .form-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
    text-decoration: none;
    border: none;
    white-space: nowrap;
}

.submit-btn, .btn-primary, .cta-navy {
    background: var(--tac-navy);
    color: var(--tac-white);
    border: none;
}

.submit-btn:hover, .btn-primary:hover, .cta-navy:hover {
    background: var(--tac-blue);
}

.cta-gold {
    background: var(--tac-gold);
    color: var(--tac-navy);
}

.cta-gold:hover {
    background: #b8941d;
}

.cta-green {
    background: #25D366;
    color: #fff;
}

.cta-green:hover {
    background: #1ebe57;
}

.cta-outline {
    background: transparent;
    color: var(--tac-white);
    border: 2px solid rgba(255,255,255,0.4);
}

.cta-outline:hover {
    border-color: var(--tac-white);
    background: rgba(255,255,255,0.08);
}

.btn-secondary {
    background: var(--border-light);
    color: var(--text-primary);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
}

.btn-secondary:hover {
    background: var(--tac-navy);
    color: white;
}

.submit-btn:disabled, .btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.submit-btn:active, .btn-primary:active {
    transform: scale(0.98);
}

.form-group {
    margin-bottom: 20px;
}

.form-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    color: #dc2626;
    font-size: 14px;
    display: none;
}

.form-error.show {
    display: block;
}

.form-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
    color: var(--text-secondary);
}

.form-footer a {
    color: var(--tac-blue);
    text-decoration: none;
}

.form-footer a:hover {
    text-decoration: underline;
}

.form-hint {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 5px;
}

/* ==========================================================================
   CARDS & SECTIONS
   ========================================================================== */
.section-card, .form-card, .how-it-works, .persona-section, .faq-section, .contact-section, .content-wrapper, .bottom-cta {
    background: var(--tac-white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.section-card h2, .form-card h2, .how-it-works h2, .persona-section h2, .faq-section h2, .content-wrapper h2, .bottom-cta h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 28px;
    font-weight: 400;
    color: var(--tac-navy);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-light);
}

.section-card h3 { font-size: 18px; font-weight: 600; color: var(--tac-navy); margin: 24px 0 12px; }
.section-card p { color: var(--text-secondary); margin-bottom: 16px; line-height: 1.8; }
.section-card ul { color: var(--text-secondary); padding-left: 24px; margin-bottom: 16px; }
.section-card li { margin-bottom: 8px; line-height: 1.7; }
.section-card a { color: var(--tac-blue); text-decoration: none; font-weight: 500; }
.section-card a:hover { text-decoration: underline; }

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.faq-list { display: flex; flex-direction: column; gap: 16px; }

.faq-item {
    background: var(--tac-light);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.faq-question {
    background: none;
    border: none;
    width: 100%;
    padding: 20px 24px;
    text-align: left;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    color: var(--tac-navy);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.faq-question:hover {
    background: rgba(201, 162, 39, 0.05);
    color: var(--tac-blue);
}

.faq-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--tac-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.faq-item.open .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 0 24px 20px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.faq-item.open .faq-answer {
    display: block;
}

/* Alternative FAQ style (index.html style) */
.faq-section .faq-item {
    border-bottom: 1px solid var(--border-light);
    background: transparent;
    border-radius: 0;
    border: none;
}

.faq-section .faq-item:last-child {
    border-bottom: none;
}

.faq-section .faq-question {
    padding: 20px 0;
    background: none;
}

.faq-section .faq-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--tac-light);
}

.faq-section .faq-answer {
    padding: 0 0 20px 0;
}

/* ==========================================================================
   MARKET LINKS / CARDS
   ========================================================================== */
.market-links-grid, .market-discovery-grid, .nearby-links, .related-searches {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.market-link-card, .market-discovery-link, .leaf-card, .nearby-links a, .related-searches a {
    display: block;
    padding: 18px 20px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(26, 47, 74, 0.05), rgba(26, 95, 122, 0.08));
    border: 1px solid rgba(26, 47, 74, 0.08);
    color: var(--tac-navy);
    text-decoration: none;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.market-link-card:hover, .market-discovery-link:hover, .leaf-card:hover, .nearby-links a:hover, .related-searches a:hover {
    transform: translateY(-2px);
    border-color: rgba(26, 95, 122, 0.22);
    box-shadow: 0 10px 24px rgba(26, 47, 74, 0.08);
}

.market-link-card strong, .market-discovery-link strong, .leaf-card h3 {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--tac-navy);
    margin-bottom: 6px;
}

.market-link-card span, .market-discovery-link span, .leaf-card p {
    display: block;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.5;
}

/* ==========================================================================
   GRID UTILITIES
   ========================================================================== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.metric-card {
    padding: 20px;
    background: var(--tac-light);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    text-align: center;
}

.metric-card .value { font-size: 24px; font-weight: 700; color: var(--tac-navy); }
.metric-card .label { font-size: 12px; color: var(--text-secondary); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.5px; }

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

.leaf-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--tac-light);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s;
}

.leaf-card:hover {
    background: var(--tac-blue);
    color: var(--tac-white);
    border-color: var(--tac-blue);
    text-decoration: none;
}

.leaf-card:hover h3 { color: var(--tac-white); }
.leaf-card:hover p { color: rgba(255,255,255,0.85); }

.leaf-icon { font-size: 28px; flex-shrink: 0; }
.leaf-info h3 { font-size: 15px; font-weight: 600; color: var(--tac-navy); margin-bottom: 4px; }
.leaf-info p { font-size: 13px; color: var(--text-secondary); margin: 0; }

/* ==========================================================================
   CREDENTIALS / BADGES
   ========================================================================== */
.credentials-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--tac-ivory);
    border: 1px solid rgba(201, 162, 39, 0.3);
    border-radius: 50px;
    padding: 12px 24px;
}

.badge-icon {
    width: 24px;
    height: 24px;
    background: var(--tac-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tac-navy);
    font-weight: 700;
    font-size: 14px;
}

.badge-text { text-align: left; }
.badge-text strong { display: block; color: var(--tac-navy); font-size: 13px; font-weight: 600; }
.badge-text span { display: block; color: var(--text-secondary); font-size: 12px; }

.license-tag {
    background: var(--tac-light);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
}

.license-tag strong { color: var(--tac-navy); }

.credential-item {
    background: var(--tac-light);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid var(--border-light);
}

.credential-icon {
    width: 48px;
    height: 48px;
    background: var(--tac-white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.credential-item h4 { font-size: 16px; font-weight: 600; color: var(--tac-navy); margin-bottom: 8px; }
.credential-item p { font-size: 14px; color: var(--text-secondary); margin: 0; }

.credentials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }

/* ==========================================================================
   SOCIAL PROOF / TRUST BADGES
   ========================================================================== */
.social-proof-bar {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.social-proof-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.9);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

.social-proof-item:hover {
    background: rgba(255,255,255,0.15);
}

.social-proof-item .stars { color: var(--tac-gold); letter-spacing: 1px; }

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    color: var(--tac-white);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
    text-align: center;
    padding: 40px 0 20px;
    color: var(--text-secondary);
    font-size: 13px;
    border-top: 1px solid var(--border-light);
    margin-top: auto;
}

footer a {
    color: var(--tac-blue);
    text-decoration: none;
}

footer a:hover {
    color: var(--tac-navy);
}

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

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

.footer-divider { color: var(--border-light); }

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo-img { height: 40px; width: auto; }

/* ==========================================================================
   FOCUS STATES / ACCESSIBILITY
   ========================================================================== */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--tac-gold);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    z-index: 999;
}

.skip-link:focus {
    position: fixed;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    background: var(--tac-navy);
    color: var(--tac-white);
    padding: 12px 24px;
    border-radius: 0 0 8px 8px;
}

.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    pointer-events: none;
}

/* ==========================================================================
   HERO / HOME PAGE SPECIFIC (keep in shared for consistency)
   ========================================================================== */
.hero {
    text-align: center;
    color: var(--tac-white);
    padding: 60px 0 50px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(201,162,39,0.2);
    border: 1px solid var(--tac-gold);
    color: var(--tac-gold);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero-description {
    font-size: 18px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 32px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cred {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    font-size: 13px;
    color: rgba(255,255,255,0.7);
}

.hero-cred span { display: flex; align-items: center; gap: 6px; }

/* Demo widget (index.html) */
.demo-widget {
    margin-top: 32px;
    padding: 24px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 16px;
}

.demo-widget-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--tac-gold);
    margin-bottom: 12px;
    font-weight: 600;
}

.demo-widget-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.demo-widget-form input {
    flex: 1;
    min-width: 200px;
    padding: 14px 18px;
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 10px;
    background: rgba(255,255,255,0.95);
    color: var(--text-primary);
    font-size: 15px;
}

.demo-widget-form input::placeholder { color: #718096; }

.demo-widget-form input:focus {
    outline: none;
    border-color: var(--tac-gold);
    box-shadow: 0 0 0 2px rgba(201, 162, 39, 0.25);
}

.demo-widget-btn {
    padding: 14px 24px;
    background: var(--tac-gold);
    color: var(--tac-navy);
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, transform 0.1s;
}

.demo-widget-btn:hover { background: #d4ab29; }
.demo-widget-btn:active { transform: scale(0.98); }

.demo-widget-hint {
    margin-top: 12px;
    font-size: 13px;
    color: rgba(255,255,255,0.75);
}

.mobile-scroll-cta {
    display: none;
    width: 100%;
    background: var(--tac-gold);
    color: var(--tac-navy);
    border: none;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 24px;
    transition: background 0.2s, transform 0.1s;
}

.mobile-scroll-cta:hover { background: #d4ab29; }

/* ==========================================================================
   VIDEO HERO (equity.html)
   ========================================================================== */
.video-hero {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto 40px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 48px rgba(0,0,0,0.25);
}

.video-hero video {
    width: 100%;
    height: auto;
    display: block;
}

.video-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 32px 20px;
    background: linear-gradient(0deg, rgba(11,22,40,0.85) 0%, transparent 100%);
    color: #fff;
    pointer-events: none;
}

.video-hero-overlay h3 {
    font-family: 'DM Serif Display', serif;
    font-size: 24px;
    margin: 0 0 4px;
    color: var(--tac-white);
}

.video-hero-overlay p {
    font-size: 13px;
    opacity: 0.7;
    margin: 0;
}

/* ==========================================================================
   WALKTHROUGH (equity.html)
   ========================================================================== */
.how-it-works-section {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    padding: 48px 40px 40px;
    margin: 0 auto 40px;
    text-align: center;
    max-width: 640px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
}

.walkthrough-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 28px;
}

.walkthrough-progress .step-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--tac-navy);
    min-width: 72px;
}

.walkthrough-progress .progress-bar {
    width: 120px;
    height: 6px;
    background: var(--border-light);
    border-radius: 3px;
    overflow: hidden;
}

.walkthrough-progress .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--tac-gold), var(--tac-blue));
    border-radius: 3px;
    transition: width 0.5s ease;
}

.walkthrough-dots {
    display: flex;
    gap: 8px;
}

.walkthrough-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-light);
    transition: background 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.walkthrough-dots span.active {
    background: var(--tac-gold);
    transform: scale(1.2);
}

.walkthrough-card {
    min-height: 200px;
    text-align: left;
    padding: 28px 32px;
    background: var(--tac-light);
    border-radius: 12px;
    border: 1px solid var(--border-light);
    position: relative;
}

.walkthrough-step {
    display: none;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.walkthrough-step.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.walkthrough-step .step-badge {
    display: inline-block;
    background: var(--tac-gold);
    color: var(--tac-navy);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.walkthrough-step h3 { font-size: 20px; color: var(--tac-navy); margin-bottom: 12px; font-weight: 600; }

.walkthrough-step .you-do {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    padding-left: 14px;
    border-left: 3px solid var(--tac-gold);
}

.walkthrough-step .you-get {
    font-size: 14px;
    color: var(--tac-blue);
    font-weight: 500;
}

.walkthrough-step .you-get strong { color: var(--tac-navy); }

.replay-wrap { margin-top: 28px; }
.replay-btn {
    background: transparent;
    border: 2px solid var(--tac-gold);
    color: var(--tac-navy);
    padding: 10px 24px;
    border-radius: 24px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.replay-btn:hover {
    background: var(--tac-gold);
    color: var(--tac-white);
}

/* ==========================================================================
   COMPS TOOL SPECIFIC
   ========================================================================== */
.header-badge {
    background: var(--tac-gold);
    color: var(--tac-navy);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.tab-btn {
    background: transparent;
    border: 1px solid var(--border-light);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    color: var(--text-secondary);
}

.tab-btn.active {
    background: var(--tac-navy);
    color: white;
    border-color: var(--tac-navy);
}

.tab-btn:hover:not(.active) {
    border-color: var(--tac-blue);
    color: var(--tac-blue);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

.progress-state { display: none; padding: 40px 20px; }
.progress-bar { height: 6px; background: var(--border-light); border-radius: 3px; margin-bottom: 30px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--tac-blue), var(--tac-gold)); width: 0%; transition: width 0.4s ease; }

.progress-stages { display: flex; flex-direction: column; gap: 15px; }
.progress-stage { display: flex; align-items: center; gap: 12px; color: var(--text-secondary); font-size: 14px; }
.progress-stage .icon { width: 24px; height: 24px; border-radius: 50%; background: var(--border-light); display: flex; align-items: center; justify-content: center; font-size: 12px; }
.progress-stage.active { color: var(--tac-blue); font-weight: 500; }
.progress-stage.active .icon { background: rgba(26, 95, 122, 0.1); color: var(--tac-blue); }
.progress-stage.complete .icon { background: var(--success-green); color: white; }

.error-state { display: none; padding: 30px 20px; text-align: center; }
.error-state i { font-size: 48px; color: var(--error-red); margin-bottom: 20px; }
.error-message { white-space: pre-line; text-align: left; max-width: 500px; margin: 0 auto 20px; padding: 20px; background: #fef2f2; border-radius: 10px; font-size: 14px; color: var(--text-primary); }

.results-container { display: none; }
.results-header { background: linear-gradient(135deg, var(--tac-navy), var(--tac-blue)); color: white; padding: 30px; border-radius: 16px 16px 0 0; text-align: center; }
.results-body { background: white; padding: 30px; border-radius: 0 0 16px 16px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }

.subject-card { background: var(--tac-light); padding: 25px; border-radius: 12px; margin-bottom: 25px; }
.subject-address { font-family: 'DM Serif Display', serif; font-size: 20px; color: var(--tac-navy); margin-bottom: 15px; }
.subject-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.stat-item { text-align: center; }
.stat-value { font-size: 20px; font-weight: 600; color: var(--tac-navy); }
.stat-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-secondary); }

.value-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 25px; padding: 20px; background: linear-gradient(135deg, rgba(26, 47, 74, 0.05), rgba(26, 95, 122, 0.05)); border-radius: 12px; }
.value-item { text-align: center; }
.value-item .value { font-family: 'DM Serif Display', serif; font-size: 24px; color: var(--tac-navy); }
.value-item .label { font-size: 12px; color: var(--text-secondary); }

.comps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-bottom: 25px; }
.comp-card { background: var(--tac-light); padding: 15px; border-radius: 10px; position: relative; }
.comp-rank { position: absolute; top: -8px; left: -8px; width: 24px; height: 24px; background: var(--tac-gold); color: var(--tac-navy); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.comp-price { font-size: 18px; font-weight: 600; color: var(--tac-navy); margin-bottom: 5px; }
.comp-address { font-size: 13px; color: var(--text-secondary); margin-bottom: 8px; }
.comp-meta { font-size: 12px; color: var(--text-secondary); display: flex; justify-content: space-between; }
.comp-match { color: var(--success-green); font-weight: 500; }

.email-sent-notice { background: #d4edda; padding: 15px 20px; border-radius: 10px; text-align: center; margin-bottom: 20px; }
.email-sent-notice i { color: var(--success-green); margin-right: 8px; }

.action-buttons { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; align-items: center; }

.disclaimer { max-width: 700px; margin: 0 auto 20px; padding: 15px; background: #fff8e6; border-radius: 8px; font-size: 12px; color: #856404; }

.market-discovery { background: white; border: 1px solid var(--border-light); border-radius: 16px; padding: 28px 30px; margin: 0 auto 30px; box-shadow: 0 4px 20px rgba(0,0,0,0.05); }
.market-discovery h2 { font-family: 'DM Serif Display', serif; font-size: 28px; font-weight: 400; color: var(--tac-navy); margin-bottom: 10px; text-align: center; }

/* ==========================================================================
   CITY PAGE SPECIFIC
   ========================================================================== */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 24px; color: rgba(255,255,255,0.82); font-size: 13px; }
.breadcrumb a { color: rgba(255,255,255,0.9); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: rgba(255,255,255,0.6); }

.badge { display: inline-flex; align-items: center; background: rgba(201,162,39,0.2); border: 1px solid var(--tac-gold); color: var(--tac-gold); padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; }
.updated-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.18); color: rgba(255,255,255,0.88); padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; }

.cta-row { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.cta-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 10px; font-size: 15px; font-weight: 700; text-decoration: none; transition: background 0.2s, transform 0.1s; }
.cta-btn:hover { transform: scale(1.02); }

.hero-meta { display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.hero-subtitle { font-size: 18px; color: rgba(255,255,255,0.85); margin-bottom: 30px; max-width: 660px; margin-left: auto; margin-right: auto; }

.sms-hint { font-size: 14px; color: rgba(255,255,255,0.7); margin-bottom: 40px; }
.sms-cta, .web-cta { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 16px 32px; border-radius: 12px; font-size: 20px; font-weight: 700; text-decoration: none; transition: background 0.2s, transform 0.1s; margin-bottom: 16px; }
.sms-cta { background: var(--tac-gold); color: var(--tac-navy); }
.web-cta { background: var(--tac-navy); color: var(--tac-white); }
.sms-cta:hover { background: #b8941d; transform: scale(1.02); }
.web-cta:hover { background: #14253a; transform: scale(1.02); }

.cta-secondary { display: inline-block; color: rgba(255,255,255,0.85); text-decoration: none; font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.cta-secondary:hover { color: var(--tac-white); text-decoration: underline; }

.trust-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.1); color: var(--tac-white); border: 1px solid rgba(255,255,255,0.14); border-radius: 999px; padding: 10px 16px; font-size: 13px; font-weight: 600; }

.cred-line { font-size: 12px; color: rgba(255,255,255,0.7); margin-top: 10px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; text-align: center; }
.step-number { width: 56px; height: 56px; background: var(--tac-gold); color: var(--tac-navy); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; margin: 0 auto 16px; }
.step h3 { font-size: 16px; font-weight: 600; color: var(--tac-navy); margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--text-secondary); }

.card { padding: 24px; background: var(--tac-light); border-radius: 12px; border: 1px solid var(--border-light); }
.card h3 { font-size: 16px; font-weight: 600; color: var(--tac-navy); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.card p { font-size: 14px; color: var(--text-secondary); margin-bottom: 0; }

.price { font-size: 28px; font-weight: 700; color: var(--tac-navy); }

.data-freshness { margin-top: 18px; font-size: 13px; color: var(--text-secondary); font-weight: 600; letter-spacing: 0.2px; }

.bar-chart { display: flex; align-items: flex-end; gap: 8px; min-height: 180px; padding-top: 8px; }
.bar-wrap { flex: 1; text-align: center; }
.bar { width: 100%; background: linear-gradient(180deg, var(--tac-blue) 0%, var(--tac-navy) 100%); border-radius: 6px 6px 0 0; min-height: 10px; }
.bar-label { font-size: 10px; text-align: center; color: var(--text-secondary); margin-top: 6px; }
.bar-value { font-size: 10px; color: var(--text-secondary); margin-bottom: 6px; }

.notice-card { background: var(--success-bg); border: 1px solid #d4e9dd; }

.video-carousel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 0; }
.video-card { border-radius: 12px; overflow: hidden; aspect-ratio: 16/9; position: relative; background: #000; }
.video-card iframe { width: 100%; height: 100%; border: none; }

.lead-form { background: var(--tac-light); border: 2px solid var(--border-light); border-radius: 16px; padding: 32px; margin-bottom: 0; }
.lead-form h3 { font-family: 'DM Serif Display', serif; font-size: 22px; color: var(--tac-navy); margin-bottom: 6px; }
.lead-form p { font-size: 14px; color: var(--text-secondary); margin-bottom: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid input, .form-grid select { padding: 12px 14px; border: 1px solid var(--border-light); border-radius: 8px; font-size: 14px; font-family: inherit; background: var(--tac-white); color: var(--text-primary); }
.form-grid input::placeholder { color: #999; }
.form-full { grid-column: 1 / -1; }
.form-submit { grid-column: 1 / -1; padding: 14px; background: var(--tac-gold); color: var(--tac-navy); border: none; border-radius: 8px; font-size: 16px; font-weight: 700; font-family: inherit; cursor: pointer; transition: background 0.2s; }
.form-submit:hover { background: #b8941d; }
.form-note { grid-column: 1 / -1; font-size: 12px; color: var(--text-secondary); margin-top: 4px; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
    .mobile-scroll-cta { display: block; }
    .grid-2, .grid-3, .leaf-grid, .metric-grid, .subject-stats, .value-summary, .comps-grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; gap: 24px; }
    .video-carousel { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .cta-row { flex-direction: column; align-items: stretch; }
    .cta-btn { justify-content: center; }
    .market-links-grid, .market-discovery-grid { grid-template-columns: 1fr; }
    .market-link-card, .market-discovery-link { justify-content: center; }
    .hero { padding: 40px 0 30px; }
    .hero h1 { font-size: 32px; }
    .section-card, .form-card, .how-it-works, .persona-section, .faq-section, .contact-section, .content-wrapper, .bottom-cta { padding: 32px 24px; }
    .how-it-works-section h2, .faq-section h2, .content-wrapper h2 { font-size: 24px; }
    .nav-links { gap: 14px; }
    .header-content, nav.main-nav { flex-direction: column; gap: 16px; }
    .nav-links { gap: 12px; }
}

@media (max-width: 768px) {
    .container { padding: 24px 16px; }
    .form-card { padding: 28px 24px; }
    .features { margin-bottom: 20px; }
    .how-it-works-section, .faq-section, .market-links-section { padding: 30px 20px; margin-top: 40px; }
    .how-it-works-section h2, .faq-section h2, .market-links-section h2 { font-size: 24px; }
    nav.main-nav { flex-direction: column; gap: 16px; }
    .nav-links { gap: 12px; }
}

@media (max-width: 600px) {
    .container { padding: 24px 16px; }
    .hero { padding: 40px 0 30px; }
    .hero h1 { font-size: 32px; }
}
/* ==========================================================================
   LEGACY HERO/FORM COMPAT (index.html, benefits.html)
   Restores classes dropped in the v2 stylesheet modernization.
   ========================================================================== */
.hero-content {
    text-align: center;
    color: var(--tac-white);
    padding: 20px 0 40px;
}

.hero-content h1 { color: var(--tac-white); }

.hero-cta { color: var(--tac-white); }

.hidden { display: none !important; }

.success-message { display: none; }

.success-message.show {
    display: block;
    text-align: center;
    padding-top: 8px;
}

.success-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: rgba(22, 163, 74, 0.12);
    color: #16a34a;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(26, 47, 74, 0.25);
    border-top-color: var(--tac-navy);
    border-radius: 50%;
    animation: tac-spin 0.7s linear infinite;
    vertical-align: -2px;
    margin-right: 6px;
}

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

/* ==========================================================================
   DARK-BACKDROP CONTRAST FIX
   Pages with the fixed .bg-pattern navy backdrop need light text on
   transparent sections (market links, benefits heads, footer).
   ========================================================================== */

.market-links-section .market-links-kicker { color: var(--tac-gold); }
.market-links-section h2 { color: var(--tac-white); }
.market-links-section .market-links-intro { color: rgba(255, 255, 255, 0.78); }

.market-links-section .market-link-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
}
.market-links-section .market-link-card:hover {
    background: rgba(255, 255, 255, 0.13);
    border-color: rgba(201, 162, 39, 0.55);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}
.market-links-section .market-link-card strong { color: var(--tac-white); }
.market-links-section .market-link-card span { color: rgba(255, 255, 255, 0.68); }

.market-links-all { text-align: center; margin-top: 6px; }
.market-links-all a { color: var(--tac-gold) !important; font-weight: 600; }
.market-links-all a:hover { color: #d4ab29; }

body:has(> .bg-pattern) footer {
    color: rgba(255, 255, 255, 0.75);
    border-top-color: rgba(255, 255, 255, 0.18);
}
body:has(> .bg-pattern) footer a { color: var(--tac-gold); }
body:has(> .bg-pattern) footer a:hover { color: #d4ab29; }
body:has(> .bg-pattern) .footer-links a { color: rgba(255, 255, 255, 0.8); }
body:has(> .bg-pattern) .footer-links a:hover { color: var(--tac-gold); }

.ba-section:not([style]) .ba-section-head .kicker { color: var(--tac-gold); }
.ba-section:not([style]) .ba-section-head h2 { color: var(--tac-white); }
.ba-section:not([style]) .ba-section-head p { color: rgba(255, 255, 255, 0.75); }

.ba-disclaimer { color: rgba(255, 255, 255, 0.65); }
.ba-disclaimer a { color: var(--tac-gold); }
