/* Occupant Index - Theme System */

/* Custom Fonts */
@font-face {
    font-family: 'Aminute';
    src: url('/fonts/aminute-regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Dark theme (default) - Neon Blue accent */
    --bg: #0a0a0a;
    --bg-card: #111111;
    --fg: #e8e8e8;
    --fg-dim: #888888;
    --fg-muted: #666666;
    --accent: #00aaff;
    --accent-glow: rgba(0, 170, 255, 0.15);
    --border: #222222;
    --success: #00ff88;
    --warning: #ffaa00;
    --danger: #ff4444;
}

[data-theme="light"] {
    /* Light theme - Electric Blue & Slate */
    --bg: #f8f9fc;
    --bg-card: #ffffff;
    --fg: #1a1f36;
    --fg-dim: #525f7f;
    --fg-muted: #8898aa;
    --accent: #0066ff;
    --accent-glow: rgba(0, 102, 255, 0.1);
    --border: #e3e8ee;
    --success: #00875a;
    --warning: #d97706;
    --danger: #dc2626;
}

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

/* Focus Visible for Modern Browsers */
*:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

body {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', 'Consolas', monospace;
    background: var(--bg);
    color: var(--fg);
    line-height: 1.6;
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

/* Navigation */
nav {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    align-items: center;
    flex-wrap: wrap;
}

nav a {
    color: var(--fg-muted);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
    padding: 0.5rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    margin: -0.5rem;
}

nav a:hover, nav a.active {
    color: var(--accent);
}

nav a:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.nav-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Theme Toggle */
.theme-toggle {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--fg-dim);
    padding: 0.6rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.75rem;
    transition: all 0.2s ease;
    min-height: 44px;
    min-width: 44px;
}

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

.theme-toggle:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Breadcrumbs */
.breadcrumb {
    font-size: 0.75rem;
    color: var(--fg-dim);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.breadcrumb a {
    color: var(--fg-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.breadcrumb-separator {
    margin: 0 0.5rem;
    color: var(--fg-dim);
}

.breadcrumb-current {
    color: var(--fg);
}

/* Header */
header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.logo {
    font-family: 'Aminute', sans-serif;
    font-size: 0.875rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--fg-dim);
    margin-bottom: 0.5rem;
}

/* Homepage Hero (syncretic design) */
.hero {
    margin-bottom: 4rem;
}

.hero-headline {
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    color: var(--fg);
}

.hero-description {
    font-size: 1.1rem;
    color: var(--fg-muted);
    line-height: 1.6;
    max-width: 60ch;
    margin-bottom: 2rem;
}

/* Live Index Display */
.live-index {
    background: var(--fg);
    color: var(--bg);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.live-index-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.7;
}

.live-index-value {
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1;
}

.live-index-change {
    font-size: 1rem;
    opacity: 0.9;
}

.live-index-cta {
    background: var(--bg);
    color: var(--fg);
    padding: 0.875rem 1.5rem;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    border: none;
    transition: opacity 0.2s ease;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.live-index-cta:hover {
    opacity: 0.85;
    text-decoration: none;
}

.live-index-cta:focus {
    outline: 2px solid var(--bg);
    outline-offset: 2px;
}

/* Service Cards (What We Do section) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 2rem;
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--fg);
}

.service-card p {
    font-size: 0.9rem;
    color: var(--fg-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.service-card ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.service-card li {
    font-size: 0.875rem;
    color: var(--fg-dim);
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.service-card li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent);
}

.service-link {
    font-size: 0.875rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.service-link:hover {
    text-decoration: underline;
}

/* Contact/CTA Section */
.contact-section {
    background: var(--accent-glow);
    border: 1px solid var(--border);
    padding: 2rem;
    margin: 3rem 0;
    text-align: center;
}

.contact-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--fg);
    text-transform: none;
    letter-spacing: -0.01em;
    border-bottom: none;
    padding-bottom: 0;
}

.contact-section p {
    font-size: 0.95rem;
    color: var(--fg-muted);
    max-width: 50ch;
    margin: 0 auto 1.5rem;
}

.contact-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.5rem;
    background: var(--accent);
    color: var(--bg);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: opacity 0.2s ease;
    min-height: 44px;
}

.contact-cta:hover {
    opacity: 0.85;
    text-decoration: none;
}

.contact-cta:focus {
    outline: 2px solid var(--fg);
    outline-offset: 2px;
}

/* Index Page Specific Styles */
.hero-insight {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--fg);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}
.hero-insight .highlight {
    color: var(--accent);
}
@media (max-width: 480px) {
    .hero-insight {
        font-size: 1.1rem;
    }
}
.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}
@media (max-width: 600px) {
    .audience-grid {
        grid-template-columns: 1fr;
    }
}
.audience-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 1.5rem;
}
.audience-card h3 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    margin-bottom: 0.75rem;
}
.audience-card p {
    font-size: 0.875rem;
    color: var(--fg-muted);
    line-height: 1.5;
    margin: 0;
}
.market-insight {
    background: var(--accent-glow);
    border-left: 3px solid var(--accent);
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
}
.market-insight h2 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    color: var(--fg);
}
.market-insight p {
    font-size: 0.9rem;
    color: var(--fg-muted);
    line-height: 1.6;
    margin: 0;
}
.market-insight a {
    color: var(--accent);
}
.tier-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}
.tier-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}
.tier-name {
    font-size: 0.875rem;
    color: var(--fg-muted);
}
.tier-price {
    font-weight: 600;
    color: var(--fg);
}
.tier-change {
    font-size: 0.75rem;
    color: var(--accent);
    margin-left: 0.5rem;
}
.cta-row {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}
.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.5rem;
    background: var(--accent);
    color: var(--bg);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    min-height: 44px;
}
.cta-btn:hover {
    opacity: 0.9;
}
.cta-btn:focus {
    outline: 2px solid var(--fg);
    outline-offset: 2px;
}
.cta-btn.secondary {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--fg);
}
.cta-btn.secondary:hover {
    border-color: var(--accent);
}
.cta-btn.secondary:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.tagline {
    font-size: 1.25rem;
    color: var(--fg);
}

h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 0.75rem;
    color: var(--accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.subtitle {
    font-size: 0.875rem;
    color: var(--fg-dim);
}

/* Cards & Sections */
.card, .section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 1.5rem;
    margin-bottom: 2rem;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.section-header {
    margin-bottom: 1rem;
}

.section-title {
    font-size: 0.625rem;
    color: var(--fg-dim);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.section-subtitle {
    font-size: 0.75rem;
    color: var(--accent);
    margin-top: 0.25rem;
}

/* CPI Main Display */
.cpi-main {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 2rem;
    margin-bottom: 2rem;
}

.cpi-ticker {
    font-size: 0.75rem;
    color: var(--accent);
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.cpi-value {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.cpi-changes {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
}

.change {
    font-size: 0.875rem;
}

.change-label {
    color: var(--fg-dim);
}

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

.change-value.negative {
    color: var(--danger);
}

.cpi-base {
    font-size: 0.75rem;
    color: var(--fg-dim);
}

/* Subindices Grid */
.subindices {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .subindices {
        grid-template-columns: repeat(4, 1fr);
    }
}

.subindex {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 1.25rem;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.subindex-ticker {
    font-size: 0.625rem;
    color: var(--accent);
    letter-spacing: 0.1em;
    margin-bottom: 0.25rem;
}

.subindex-value {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.subindex-name {
    font-size: 0.75rem;
    color: var(--fg-dim);
}

.subindex-unit {
    font-size: 0.625rem;
    color: var(--fg-muted);
    margin-top: 0.25rem;
}

.subindex-change {
    font-size: 0.625rem;
    margin-top: 0.25rem;
    font-weight: 600;
}

/* Basket Detail */
.basket-detail {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

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

.basket-item {
    text-align: center;
    padding: 1rem;
    border: 1px solid var(--border);
}

.basket-label {
    font-size: 0.625rem;
    color: var(--fg-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.basket-value {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.basket-weight {
    font-size: 0.625rem;
    color: var(--accent);
}

/* Spreads */
.spreads {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.spreads-title {
    font-size: 0.625rem;
    color: var(--fg-dim);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

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

.spread-item {
    text-align: center;
    padding: 1rem;
    border: 1px solid var(--border);
}

.spread-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

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

.spread-ticker {
    font-size: 0.625rem;
    color: var(--accent);
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.spread-name {
    font-size: 0.75rem;
    color: var(--fg);
    margin-bottom: 0.25rem;
}

.spread-desc {
    font-size: 0.625rem;
    color: var(--fg-dim);
}

.spread-value {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

/* Exchange Rates */
.exchange-rates {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.exchange-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.exchange-item {
    text-align: center;
    padding: 1rem;
    border: 1px solid var(--border);
}

.exchange-ticker {
    font-size: 0.625rem;
    color: var(--accent);
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.exchange-rate {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.exchange-display {
    font-size: 0.625rem;
    color: var(--fg-dim);
}

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

.rate-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.rate-ticker {
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 600;
}

.rate-value {
    font-size: 0.75rem;
    color: var(--fg);
}

/* Persona Grid */
.persona-cpis {
    margin-bottom: 2rem;
}

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

.persona-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 1.25rem;
    text-align: center;
}

.persona-ticker {
    font-size: 0.625rem;
    color: var(--accent);
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.persona-value {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.persona-name {
    font-size: 0.75rem;
    color: var(--fg);
    margin-bottom: 0.25rem;
}

.persona-change {
    font-size: 0.625rem;
    color: var(--accent);
    margin-bottom: 0.25rem;
}

.persona-change.negative {
    color: var(--danger);
}

.persona-insight {
    font-size: 0.625rem;
    color: var(--fg-dim);
    font-style: italic;
}

/* Index Series */
.index-series {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

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

.series-item {
    text-align: center;
    padding: 1rem;
    border: 1px solid var(--border);
}

.series-ticker {
    font-size: 0.625rem;
    color: var(--accent);
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.series-value {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.series-name {
    font-size: 0.75rem;
    color: var(--fg);
    margin-bottom: 0.25rem;
}

.series-date {
    font-size: 0.625rem;
    color: var(--fg-dim);
}

.series-label {
    font-size: 0.625rem;
    color: var(--fg-dim);
    margin-top: 0.25rem;
}

/* Methodology Variants */
.methodology-variants {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.variants-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.variant-item {
    text-align: center;
    padding: 1rem;
    border: 1px solid var(--border);
}

.variant-ticker {
    font-size: 0.625rem;
    color: var(--accent);
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.variant-value {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.variant-name {
    font-size: 0.75rem;
    color: var(--fg);
    margin-bottom: 0.25rem;
}

.variant-desc {
    font-size: 0.625rem;
    color: var(--fg-dim);
}

/* Yield Curve */
.yield-curve {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.yield-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.yield-item {
    text-align: center;
    padding: 1rem;
    border: 1px solid var(--border);
}

.yield-period {
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.yield-deflation {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.yield-annualized {
    font-size: 0.625rem;
    color: var(--fg-dim);
}

/* Trend Analysis */
.trend-analysis {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.trend-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.trend-item {
    text-align: center;
}

.trend-label {
    font-size: 0.625rem;
    color: var(--fg-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.trend-value {
    font-size: 1.25rem;
    font-weight: 600;
}

.trend-value.deflating {
    color: var(--success);
}

.trend-value.inflating {
    color: var(--danger);
}

.trend-unit {
    font-size: 0.625rem;
    color: var(--fg-dim);
}

/* Tables */
.leaders-table {
    width: 100%;
    border-collapse: collapse;
}

.leaders-table th {
    text-align: left;
    padding: 0.5rem;
    border-bottom: 1px solid var(--border);
    color: var(--fg-dim);
    font-size: 0.75rem;
    font-weight: 400;
}

.leaders-table td {
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.875rem;
}

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

.model-name {
    font-weight: 500;
}

.value-cell {
    font-family: 'SF Mono', monospace;
}

/* Signals */
.signal {
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 600;
}

.signal.buy {
    background: rgba(0, 255, 136, 0.15);
    color: var(--success);
}

.signal.sell {
    background: rgba(255, 68, 68, 0.15);
    color: var(--danger);
}

.signal.fair {
    background: rgba(255, 170, 0, 0.15);
    color: var(--warning);
}

/* Tier Analysis */
.tier-grid {
    display: grid;
    gap: 1rem;
}

.tier-row {
    display: grid;
    grid-template-columns: 100px 1fr 100px 80px;
    align-items: center;
    padding: 0.75rem;
    background: var(--bg);
    border: 1px solid var(--border);
}

.tier-name {
    font-weight: 600;
    color: var(--accent);
}

.tier-bar {
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.tier-bar-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 4px;
}

.tier-price {
    text-align: right;
    font-size: 0.875rem;
}

.tier-elo {
    text-align: right;
    font-size: 0.75rem;
    color: var(--fg-dim);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.stat-card {
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 1rem;
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--fg-dim);
    margin-top: 0.25rem;
}

/* Glossary Terms */
.term {
    margin-bottom: 2rem;
}

.term-header {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.term-name {
    font-weight: 600;
    color: var(--fg);
}

.term-ticker {
    font-size: 0.75rem;
    color: var(--accent);
    background: var(--accent-glow);
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
}

.term-def {
    color: var(--fg-dim);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.term-insight {
    font-size: 0.8rem;
    color: var(--fg);
    background: var(--bg-card);
    border-left: 2px solid var(--accent);
    padding: 0.75rem 1rem;
}

/* About Page */
.highlight {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.highlight p {
    margin-bottom: 0;
}

.ticker {
    color: var(--accent);
    font-weight: 600;
}

/* Methodology */
.methodology {
    margin-bottom: 3rem;
}

.methodology p {
    font-size: 0.875rem;
    color: var(--fg);
    margin-bottom: 1rem;
    max-width: 60ch;
}

.methodology-link {
    font-size: 0.875rem;
    color: var(--accent);
    text-decoration: none;
}

.methodology-link:hover {
    text-decoration: underline;
}

/* Trust Signal */
.trust-signal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 1.5rem;
    margin-bottom: 3rem;
}

.trust-signal p {
    font-size: 0.75rem;
    color: var(--fg-dim);
    margin-bottom: 0.5rem;
}

.trust-signal p:last-child {
    margin-bottom: 0;
}

/* Coming Soon */
.coming-soon {
    margin-bottom: 3rem;
}

.coming-soon ul {
    list-style: none;
    font-size: 0.875rem;
}

.coming-soon li {
    padding: 0.25rem 0;
    color: var(--fg-dim);
}

.coming-soon li::before {
    content: "-> ";
    color: var(--accent);
}

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    margin-top: 2rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    font-size: 0.75rem;
}

.footer-links a {
    color: var(--fg-dim);
    text-decoration: none;
}

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

.last-updated {
    margin-top: 2rem;
    font-size: 0.625rem;
    color: var(--fg-dim);
}

/* Links */
a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Paragraphs */
p {
    font-size: 0.875rem;
    margin-bottom: 1rem;
    max-width: 65ch;
}

ul {
    font-size: 0.875rem;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    /* Mobile Nav - stack nicely */
    nav {
        display: flex;
        flex-wrap: wrap;
        gap: 0.75rem 1.25rem;
        padding-bottom: 1rem;
    }

    nav a {
        font-size: 0.8rem;
    }

    .nav-right {
        order: -1;
        width: 100%;
        margin-left: 0;
        margin-bottom: 0.5rem;
        justify-content: flex-end;
    }

    /* Header */
    header {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }

    .tagline {
        font-size: 1.1rem;
    }

    h1 {
        font-size: 1.25rem;
    }

    /* Syncretic Hero */
    .hero-headline {
        font-size: 1.75rem;
    }

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

    .live-index {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.25rem 1.5rem;
    }

    .live-index-value {
        font-size: 2rem;
    }

    .live-index-cta {
        width: 100%;
        text-align: center;
    }

    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .contact-section {
        padding: 1.5rem;
    }

    /* CPI Hero */
    .cpi-main {
        padding: 1.5rem;
    }

    .cpi-value {
        font-size: 3rem;
    }

    .cpi-changes {
        flex-direction: column;
        gap: 0.5rem;
    }

    /* Grids to single column */
    .subindices {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .subindex {
        padding: 1rem;
    }

    .subindex-value {
        font-size: 1.5rem;
    }

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

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

    .persona-card {
        padding: 1rem;
    }

    .persona-value {
        font-size: 1.75rem;
    }

    .basket-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .exchange-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .series-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .variants-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .yield-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .trend-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .trend-value {
        font-size: 1rem;
    }

    .tier-row {
        grid-template-columns: 80px 1fr;
        gap: 0.5rem;
    }

    .tier-bar, .tier-elo {
        display: none;
    }

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

    /* Tables */
    .leaders-table {
        font-size: 0.75rem;
    }

    .leaders-table th,
    .leaders-table td {
        padding: 0.5rem 0.25rem;
    }

    /* Footer */
    .footer-links {
        flex-wrap: wrap;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0.75rem;
    }

    /* Extra small - nav stacks fully */
    nav {
        gap: 0.5rem 1rem;
    }

    nav a {
        font-size: 0.75rem;
    }

    .tagline {
        font-size: 1rem;
    }

    /* Hero even smaller */
    .hero-headline {
        font-size: 1.5rem;
    }

    .hero-description {
        font-size: 0.9rem;
    }

    .live-index {
        padding: 1rem 1.25rem;
    }

    .live-index-value {
        font-size: 1.75rem;
    }

    /* CPI even smaller */
    .cpi-main {
        padding: 1rem;
    }

    .cpi-value {
        font-size: 2.5rem;
    }

    .cpi-ticker {
        font-size: 0.625rem;
    }

    /* Subindices single column on very small */
    .subindices {
        grid-template-columns: 1fr;
    }

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

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

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

    .series-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

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

    /* Audience cards stack */
    .audience-grid {
        grid-template-columns: 1fr !important;
    }

    .audience-card {
        padding: 1rem !important;
    }

    /* CTA buttons stack */
    .cta-row {
        flex-direction: column;
    }

    .cta-btn {
        width: 100%;
        text-align: center;
    }
}
