/* ================================================================
   Employer Pulse — Mobile-first CSS
   ================================================================ */

:root {
    --green: #22c55e;
    --green-bg: #f0fdf4;
    --yellow: #eab308;
    --yellow-bg: #fefce8;
    --red: #ef4444;
    --red-bg: #fef2f2;
    --accent: #6366f1;
    --accent-light: #818cf8;
    --bg: #f8fafc;
    --surface: #ffffff;
    --text: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --radius: 12px;
    --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.08);
}

html.dark {
    --bg: #0f172a;
    --surface: #1e293b;
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --border: #334155;
    --shadow: 0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.4);
    --green-bg: #052e16;
    --yellow-bg: #422006;
    --red-bg: #450a0a;
}

html.dark .nav { background: #1e293b; border-color: #334155; }
html.dark .footer { background: #1e293b; }
html.dark .data-table td { border-color: #334155; }
html.dark .data-table th { border-color: #475569; color: #94a3b8; }
html.dark input { background: #1e293b; color: #e2e8f0; border-color: #334155; }
html.dark .demo-search-row input { background: #1e293b; color: #e2e8f0; }
html.dark .commute-form input { background: #1e293b; color: #e2e8f0; }
html.dark .email-form input { background: #1e293b; color: #e2e8f0; }
html.dark .amenity-card { background: #1e293b; border-color: #334155; color: #e2e8f0; }
html.dark .amenity-card:hover { border-color: #818cf8; }
html.dark .derived-stat { background: #0f172a; }
html.dark .detail-chip { background: #1e293b; color: #94a3b8; }

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1rem;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.text-green { color: var(--green); }
.text-red { color: var(--red); }

/* ---- Nav ---- */

.nav {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.nav-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-links a {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.theme-toggle {
    background: none;
    border: 2px solid var(--border);
    border-radius: 8px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.2s;
    color: var(--text-muted);
}

.theme-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
}

html.dark .theme-toggle {
    color: #fbbf24;
}

html.dark img {
    border-radius: var(--radius);
}

/* ---- Buttons ---- */

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    text-align: center;
    text-decoration: none;
    transition: all 0.15s ease;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}
.btn-primary:hover {
    background: var(--accent-light);
    text-decoration: none;
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}
.btn-outline:hover {
    background: var(--accent);
    color: #fff;
    text-decoration: none;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* ---- Hero ---- */

.hero {
    text-align: center;
    padding: 3rem 0 2rem;
}

.hero h1 {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-sub {
    color: var(--text-muted);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.search-form {
    max-width: 540px;
    margin: 0 auto;
}

.search-box {
    display: flex;
    gap: 0.5rem;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 0.375rem;
    box-shadow: var(--shadow-lg);
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1.125rem;
    padding: 0.75rem;
    background: transparent;
}

.search-box .btn {
    white-space: nowrap;
}

/* ---- Case Study ---- */

.case-study {
    padding: 3rem 0;
    text-align: center;
}

.case-study h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.case-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

.case-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    text-align: center;
}

.case-red { border-left: 4px solid var(--red); }
.case-green { border-left: 4px solid var(--green); }

.case-ticker {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.case-score {
    font-size: 2rem;
    font-weight: 800;
}

.case-red .case-score { color: var(--red); }
.case-green .case-score { color: var(--green); }

.case-card p {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.case-footnote {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 500px;
    margin: 0 auto;
}

/* ---- How It Works / Signals Grid ---- */

.how-it-works {
    padding: 3rem 0;
}

.how-it-works h2 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.signals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 1rem;
}

.signal-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow);
    text-align: center;
}

.signal-icon {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.signal-card h3 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.signal-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.signal-weight {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 600;
}

/* ---- Pricing ---- */

.pricing {
    padding: 3rem 0;
    text-align: center;
}

.pricing h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.price-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow);
    position: relative;
    text-align: center;
}

.price-card-featured {
    border: 2px solid var(--accent);
    box-shadow: var(--shadow-lg);
}

.price-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #fff;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.price-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.price-desc {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.price-card ul {
    list-style: none;
    text-align: left;
    margin-bottom: 1.5rem;
}

.price-card li {
    padding: 0.35rem 0;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.price-card li::before {
    content: "\2713 ";
    color: var(--green);
    font-weight: 700;
    margin-right: 0.5rem;
}

/* ---- Report Pages ---- */

.report-header {
    padding: 1.5rem 0 1rem;
}

.back-link {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.company-banner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.company-banner h1 {
    font-size: 1.75rem;
    line-height: 1.2;
}

.ticker-tag, .sector-tag {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 0.25rem;
}

.ticker-tag {
    background: var(--accent);
    color: #fff;
}

.sector-tag {
    background: var(--border);
    color: var(--text-muted);
}

.price-display {
    font-size: 1.5rem;
    font-weight: 700;
}

/* ---- Score Ring ---- */

.score-section {
    text-align: center;
    padding: 2rem 0;
}

.score-ring {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    border: 6px solid;
}

.score-green { border-color: var(--green); background: var(--green-bg); }
.score-yellow { border-color: var(--yellow); background: var(--yellow-bg); }
.score-red { border-color: var(--red); background: var(--red-bg); }

.score-number {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.score-green .score-number { color: var(--green); }
.score-yellow .score-number { color: var(--yellow); }
.score-red .score-number { color: var(--red); }

.score-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.score-summary {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.05rem;
    color: var(--text-muted);
}

/* ---- Signal Rows ---- */

.signals-section {
    padding: 1rem 0 2rem;
}

.signals-section h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.signal-row {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 0.75rem;
    box-shadow: var(--shadow);
}

.signal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.signal-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.signal-weight-tag {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.signal-score-badge {
    font-weight: 700;
    font-size: 0.875rem;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
}

.signal-very_bullish .signal-score-badge,
.signal-bullish .signal-score-badge { background: var(--green-bg); color: var(--green); }
.signal-neutral .signal-score-badge { background: var(--yellow-bg); color: var(--yellow); }
.signal-bearish .signal-score-badge,
.signal-very_bearish .signal-score-badge { background: var(--red-bg); color: var(--red); }

.signal-bar-container {
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.signal-bar {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
}

.signal-bar-very_bullish, .signal-bar-bullish { background: var(--green); }
.signal-bar-neutral { background: var(--yellow); }
.signal-bar-bearish, .signal-bar-very_bearish { background: var(--red); }

.signal-summary {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.signal-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.detail-chip {
    background: var(--bg);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ---- Detail Sections (Paid) ---- */

.detail-section {
    padding: 1.5rem 0;
    border-top: 1px solid var(--border);
}

.detail-section h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.detail-count {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.table-wrap {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.data-table th {
    text-align: left;
    padding: 0.5rem;
    border-bottom: 2px solid var(--border);
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.data-table td {
    padding: 0.5rem;
    border-bottom: 1px solid var(--border);
}

/* ---- Upgrade CTA ---- */

.upgrade-cta {
    text-align: center;
    padding: 2.5rem 1.5rem;
    margin: 1rem 0;
    background: linear-gradient(135deg, #6366f1 0%, #818cf8 100%);
    border-radius: var(--radius);
    color: #fff;
}

.upgrade-cta h2 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.upgrade-cta p {
    max-width: 500px;
    margin: 0 auto 1.25rem;
    opacity: 0.9;
}

.upgrade-cta .btn-primary {
    background: #fff;
    color: var(--accent);
}

.upgrade-cta .btn-primary:hover {
    background: #f1f5f9;
}

.cta-sub {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 0.5rem;
}

/* ---- Plain English ---- */

.plain-english {
    padding: 2rem 0;
    border-top: 1px solid var(--border);
}

.plain-english h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.plain-text {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    line-height: 1.8;
}

/* ---- PDF Section ---- */

.pdf-section {
    text-align: center;
    padding: 1.5rem 0;
}

/* ---- Usage / Rate Limit ---- */

.usage-notice {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    padding: 0.5rem;
}

.rate-limited-page {
    text-align: center;
    padding: 3rem 0;
}

.rate-limited-page h1 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.rate-limited-page p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.come-back {
    margin-top: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ---- Legal / Footer ---- */

.legal-footer {
    padding: 2rem 0;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    margin-top: 2rem;
}

.legal-footer p { margin-bottom: 0.5rem; }

.footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    margin-top: 3rem;
    text-align: center;
}

.disclaimer-text {
    font-size: 0.7rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 0.75rem;
    line-height: 1.5;
}

.footer-links {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ---- Disclaimer Page ---- */

.disclaimer-page {
    padding: 2rem 0;
}

.disclaimer-page h1 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.disclaimer-content h2 {
    font-size: 1.125rem;
    margin: 1.5rem 0 0.5rem;
}

.disclaimer-content p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.7;
}

/* ---- Derived Summary Cards (Paid Report) ---- */

.derived-summary {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow);
}

.derived-card {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.derived-stat {
    text-align: center;
    padding: 0.75rem;
    background: var(--bg);
    border-radius: 8px;
}

.derived-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
}

.derived-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.derived-interpretation {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
}

/* ---- Email Gate ---- */

.email-gate {
    background: var(--surface);
    border: 2px solid var(--accent);
    border-radius: var(--radius);
    padding: 2rem;
    margin: 1.5rem 0;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.email-gate h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.email-gate p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.email-form {
    display: flex;
    gap: 0.5rem;
    max-width: 440px;
    margin: 0 auto;
}

.email-form input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
}

.email-form input:focus {
    border-color: var(--accent);
}

.email-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* ---- Responsive ---- */

/* ---- Charlotte Demo ---- */

.demo-hero {
    text-align: center;
    padding: 3rem 1rem 2rem;
}

.demo-badge {
    display: inline-block;
    background: linear-gradient(135deg, #6366f1, #818cf8);
    color: #fff;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    margin-bottom: 1rem;
}

/* ---- Demo Toggle ---- */

.demo-toggle {
    display: inline-flex;
    background: var(--border);
    border-radius: 10px;
    padding: 4px;
    margin-top: 1.25rem;
}

.demo-toggle-btn {
    padding: 0.5rem 1.5rem;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.demo-toggle-btn.active {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.demo-toggle-btn:hover:not(.active) {
    color: var(--text);
}

/* ---- Demo Search ---- */

.demo-search-row {
    display: flex;
    gap: 0.5rem;
    max-width: 480px;
    margin: 1.5rem auto 0;
}

.demo-search-row input {
    flex: 1;
    padding: 0.85rem 1rem;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 1.1rem;
    text-align: center;
    letter-spacing: 0.1em;
    outline: none;
}

.demo-search-row input:focus { border-color: var(--accent); }

.demo-search-sm {
    max-width: 320px;
    margin: 0 auto;
}

.demo-search-sm input {
    font-size: 0.9rem;
    padding: 0.6rem 0.75rem;
}

.demo-search-inline {
    text-align: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1rem;
}

.demo-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 1.25rem;
    align-items: center;
}

.demo-pills-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-right: 0.25rem;
}

.demo-pill {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    background: var(--surface);
    color: var(--accent);
    border: 1px solid var(--border);
    text-decoration: none;
    transition: all 0.15s;
}

.demo-pill:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.demo-error {
    background: var(--red-bg);
    border: 1px solid var(--red);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin: 1.5rem auto;
    max-width: 540px;
    text-align: center;
    color: var(--red);
    font-size: 0.9rem;
}

.demo-error .email-form { max-width: 380px; margin: 0 auto; }
.demo-error .email-note { color: var(--text-muted); font-size: 0.75rem; }

.demo-streetview {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.demo-streetview img {
    width: 100%;
    height: auto;
    display: block;
}

/* ---- Demo Compare Table ---- */

.demo-compare {
    padding: 2rem 0;
}

.demo-compare h2 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.demo-table td a { color: var(--accent); font-weight: 600; text-decoration: none; }
.demo-table td a:hover { text-decoration: underline; }

.btn-sm {
    padding: 0.25rem 0.6rem;
    font-size: 0.7rem;
    border-radius: 6px;
}

/* ---- Demo Features Grid ---- */

.demo-features {
    padding: 2rem 0;
    border-top: 1px solid var(--border);
}

.demo-features h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    text-align: center;
}

.demo-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.demo-feature {
    text-align: center;
    padding: 1.25rem;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.demo-feature-icon { font-size: 1.75rem; margin-bottom: 0.5rem; }
.demo-feature h3 { font-size: 0.95rem; margin-bottom: 0.4rem; }
.demo-feature p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }

.demo-hero h1 {
    font-size: 2.25rem;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

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

.demo-lead {
    max-width: 640px;
    margin: 0 auto;
    color: var(--text-muted);
    line-height: 1.7;
}

.demo-verdict {
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.demo-verdict-green { color: var(--green); }
.demo-verdict-yellow { color: var(--yellow); }
.demo-verdict-red { color: var(--red); }

/* ---- Rent vs Buy ---- */

.rent-vs-buy {
    padding: 2rem 0;
    border-top: 1px solid var(--border);
}

.rent-vs-buy h2 {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
}

.rvb-cards {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.rvb-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
}

.rvb-card-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.rvb-card-value {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.rvb-card-detail {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.rvb-vs {
    font-weight: 800;
    font-size: 1rem;
    color: var(--text-muted);
    text-align: center;
}

.rvb-data-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
    margin-bottom: 1rem;
}

.rvb-verdict {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow);
}

.rvb-verdict p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-top: 0.5rem;
}

.rvb-verdict-icon {
    font-weight: 700;
    font-size: 1rem;
}

.rvb-rent { color: var(--yellow); }
.rvb-close { color: var(--green); }
.rvb-buy { color: var(--green); }

/* ---- Map ---- */

.demo-map {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 0.5rem;
    box-shadow: var(--shadow);
}

.demo-map img {
    width: 100%;
    height: auto;
    display: block;
}

/* ---- Amenities Teaser ---- */

.amenities-teaser {
    padding: 2rem 0;
    border-top: 1px solid var(--border);
}

.amenities-teaser h2 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.amenities-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.amenity-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 1.25rem 0.75rem;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.amenity-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.amenity-card.amenity-clicked {
    border-color: var(--accent);
    background: linear-gradient(135deg, rgba(99,102,241,0.05), rgba(129,140,248,0.08));
}

.amenity-icon {
    font-size: 1.75rem;
}

.amenity-label {
    font-weight: 600;
    font-size: 0.85rem;
}

.amenity-lock {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--accent);
    background: rgba(99,102,241,0.1);
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    letter-spacing: 0.03em;
}

.amenities-cta {
    margin-top: 1.25rem;
    background: var(--surface);
    border: 2px solid var(--accent);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
}

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

.amenities-cta .email-form {
    max-width: 400px;
    margin: 0 auto;
}

.amenities-cta .email-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* ---- Commute Teaser ---- */

.commute-teaser {
    margin-top: 1.5rem;
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.commute-teaser h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.commute-teaser > p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.commute-form {
    display: flex;
    gap: 0.5rem;
}

.commute-form input {
    flex: 1;
    padding: 0.7rem 0.75rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
    outline: none;
}

.commute-form input:focus { border-color: var(--accent); }

.commute-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 1rem 0 0.75rem;
}

#commuteResult .email-form { max-width: 400px; }
#commuteResult .email-note { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.5rem; }

/* ---- TFC Story ---- */

.tfc-story {
    margin: 2rem 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: var(--radius);
    overflow: hidden;
}

.tfc-story-inner {
    padding: 2.5rem;
    color: #e2e8f0;
}

.tfc-eyebrow {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #818cf8;
    margin-bottom: 0.75rem;
}

.tfc-story h2 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.tfc-discovery {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 1.5rem;
}

.tfc-comparison {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: stretch;
    margin-bottom: 1.5rem;
}

.tfc-card {
    padding: 1.25rem;
    border-radius: 10px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
}

.tfc-card-green { border-left: 4px solid var(--green); }
.tfc-card-red { border-left: 4px solid var(--red); }

.tfc-card-header {
    font-weight: 700;
    font-size: 0.85rem;
    color: #cbd5e1;
    margin-bottom: 0.5rem;
}

.tfc-card-signal {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.tfc-card-green .tfc-card-signal { color: var(--green); }
.tfc-card-red .tfc-card-signal { color: var(--red); }

.tfc-card p {
    font-size: 0.8rem;
    color: #94a3b8;
    line-height: 1.5;
}

.tfc-vs {
    display: flex;
    align-items: center;
    font-weight: 800;
    font-size: 1rem;
    color: #475569;
}

.tfc-implication {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #cbd5e1;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.25rem;
}

/* ---- Trend Badges ---- */

.trend-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-left: 0.25rem;
}

.trend-rising { background: var(--green-bg); color: var(--green); }
.trend-falling { background: var(--red-bg); color: var(--red); }
.trend-stable { background: var(--yellow-bg); color: var(--yellow); }

/* ---- Data Sources ---- */

.data-sources-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.source-chip {
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
}

.source-live { background: var(--green-bg); color: var(--green); }
.source-static { background: var(--bg); color: var(--text-muted); border: 1px solid var(--border); }

.source-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
}

/* ---- Demo CTA ---- */

.demo-cta {
    text-align: center;
    padding: 3rem 1.5rem;
    margin: 2rem 0;
    background: linear-gradient(135deg, #6366f1 0%, #818cf8 100%);
    border-radius: var(--radius);
    color: #fff;
}

.demo-cta h2 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.demo-cta p {
    max-width: 500px;
    margin: 0 auto 1.25rem;
    opacity: 0.9;
}

.demo-cta .email-form {
    max-width: 440px;
    margin: 0 auto;
}

.demo-cta .btn-primary {
    background: #fff;
    color: var(--accent);
}

.demo-cta .btn-primary:hover { background: #f1f5f9; }

.demo-cta .email-note {
    color: rgba(255,255,255,0.7);
    margin-top: 0.5rem;
}

/* ---- Responsive ---- */

@media (max-width: 640px) {
    .hero h1 { font-size: 1.75rem; }
    .demo-hero h1 { font-size: 1.75rem; }
    .search-box { flex-direction: column; }
    .search-box .btn { width: 100%; }
    .case-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
    .company-banner { flex-direction: column; }
    .score-ring { width: 120px; height: 120px; }
    .score-number { font-size: 2rem; }
    .tfc-comparison { grid-template-columns: 1fr; }
    .tfc-vs { justify-content: center; padding: 0.25rem 0; }
    .amenities-grid { grid-template-columns: repeat(2, 1fr); }
    .rvb-cards { grid-template-columns: 1fr; }
    .rvb-vs { padding: 0.25rem 0; }
}
