/* ══════════════════════════════════════════════════
   HouseHack — The Duplex ROI Simulator
   Design: Deep blue/navy theme with teal accent
   Mobile-first, glassmorphism accents, micro-animations
   ══════════════════════════════════════════════════ */

/* ── CSS Custom Properties ── */
:root {
    --clr-bg: #0b1120;
    --clr-bg-gradient: linear-gradient(135deg, #0b1120 0%, #0e1730 50%, #0b1120 100%);
    --clr-surface: #111b2e;
    --clr-surface-2: #172240;
    --clr-surface-3: #1e2d4a;
    --clr-border: #243352;
    --clr-border-hover: #344a6e;
    --clr-text: #e4eaf5;
    --clr-text-muted: #7e92b5;
    --clr-text-dim: #4e6080;
    --clr-accent: #14b8a6;
    --clr-accent-hover: #0d9488;
    --clr-accent-glow: rgba(20, 184, 166, 0.12);
    --clr-accent-glow-strong: rgba(20, 184, 166, 0.25);
    --clr-danger: #ef4444;
    --clr-danger-glow: rgba(239, 68, 68, 0.12);
    --clr-danger-glow-strong: rgba(239, 68, 68, 0.25);
    --clr-gold: #f59e0b;
    --clr-gold-glow: rgba(245, 158, 11, 0.15);
    --clr-blue: #3b82f6;
    --clr-waterfall-revenue: linear-gradient(90deg, #14b8a6, #2dd4bf);
    --clr-waterfall-deduct: linear-gradient(90deg, #dc2626, #ef4444);
    --clr-waterfall-net-pos: linear-gradient(90deg, #14b8a6, #5eead4);
    --clr-waterfall-net-neg: linear-gradient(90deg, #dc2626, #f87171);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-xs: 4px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.45);
    --shadow-glow-teal: 0 0 30px rgba(20, 184, 166, 0.2);
    --shadow-glow-red: 0 0 30px rgba(239, 68, 68, 0.2);
    --font-sans: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    background: var(--clr-bg);
    color: var(--clr-text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.container { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }

/* ═══════════════════════════════════════════
   AD SLOTS
   ═══════════════════════════════════════════ */
.ad-slot {
    display: flex; align-items: center; justify-content: center;
    border: 1px dashed var(--clr-border); color: var(--clr-text-dim);
    font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em;
    background: var(--clr-surface); border-radius: var(--radius-xs);
}
.ad-slot--mobile { height: 50px; max-width: 320px; margin: 0 auto 1rem; }
.ad-slot--desktop { display: none; height: 90px; max-width: 728px; margin: 1.5rem auto; }
@media (min-width: 768px) {
    .ad-slot--mobile { display: none; }
    .ad-slot--desktop { display: flex; }
}

/* ═══════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════ */
.site-header {
    text-align: center;
    padding: 2.5rem 1rem 1.5rem;
    background: linear-gradient(180deg, var(--clr-surface) 0%, var(--clr-bg) 100%);
    border-bottom: 1px solid var(--clr-border);
    position: relative;
    overflow: hidden;
}
.site-header::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 600px; height: 200px;
    background: radial-gradient(ellipse, rgba(20, 184, 166, 0.08) 0%, transparent 70%);
    pointer-events: none;
}
.brand { display: flex; align-items: center; justify-content: center; gap: 0.6rem; position: relative; }
.brand-icon { font-size: 2.2rem; filter: drop-shadow(0 0 8px rgba(20, 184, 166, 0.3)); }
.brand-name { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; }
.brand-accent { color: var(--clr-accent); }
.brand-tagline {
    font-size: 0.95rem; color: var(--clr-accent); margin-top: 0.3rem;
    font-weight: 600; letter-spacing: 0.03em;
}
.brand-subtitle {
    font-size: 0.85rem; color: var(--clr-text-muted); margin-top: 0.4rem;
    opacity: 0.8;
}

/* ═══════════════════════════════════════════
   PRIVACY BADGE
   ═══════════════════════════════════════════ */
.privacy-badge {
    display: flex; align-items: center; gap: 0.5rem; justify-content: center;
    padding: 0.55rem 1.1rem; margin: 1.5rem auto 0.75rem; max-width: 420px;
    background: var(--clr-accent-glow);
    border: 1px solid rgba(20, 184, 166, 0.3);
    border-radius: 100px;
    font-size: 0.76rem; font-weight: 500; color: var(--clr-accent);
    letter-spacing: 0.02em;
}

/* ═══════════════════════════════════════════
   APP GRID
   ═══════════════════════════════════════════ */
.app-grid { display: grid; gap: 1.5rem; margin-top: 1.5rem; }
@media (min-width: 768px) {
    .app-grid { grid-template-columns: 1fr 1.2fr; }
}

/* ═══════════════════════════════════════════
   PANELS
   ═══════════════════════════════════════════ */
.panel {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: border-color var(--transition);
}
.panel:hover { border-color: var(--clr-border-hover); }
.panel-title {
    font-size: 1.05rem; font-weight: 700; margin-bottom: 1.25rem;
    padding-bottom: 0.75rem; border-bottom: 1px solid var(--clr-border);
    display: flex; align-items: center; gap: 0.5rem;
}
.panel-title-icon { font-size: 1.1rem; }
.section-subtitle {
    font-size: 0.88rem; font-weight: 700; color: var(--clr-text-muted);
    margin-bottom: 0.85rem; margin-top: 0.5rem;
    text-transform: uppercase; letter-spacing: 0.04em;
}

/* ═══════════════════════════════════════════
   INPUT STYLING
   ═══════════════════════════════════════════ */
.input-fieldset {
    border: 1px solid var(--clr-border); border-radius: var(--radius-sm);
    padding: 1rem; margin-bottom: 1rem;
}
.input-fieldset legend {
    font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.06em; color: var(--clr-accent); padding: 0 0.4rem;
}
.input-group { margin-bottom: 0.85rem; }
.input-group:last-child { margin-bottom: 0; }
.input-group label {
    display: block; font-size: 0.75rem; font-weight: 600;
    color: var(--clr-text-muted); margin-bottom: 0.3rem;
    text-transform: uppercase; letter-spacing: 0.04em;
}
.input-group input,
.input-group select {
    width: 100%; padding: 0.65rem 0.85rem; font-size: 0.95rem;
    font-family: var(--font-mono); background: var(--clr-surface-2);
    border: 1px solid var(--clr-border); border-radius: var(--radius-sm);
    color: var(--clr-text);
    transition: border-color var(--transition), box-shadow var(--transition);
    appearance: none; -webkit-appearance: none;
}
.input-group input:focus,
.input-group select:focus {
    outline: none; border-color: var(--clr-accent);
    box-shadow: 0 0 0 3px var(--clr-accent-glow);
}
.input-group input::placeholder { color: var(--clr-text-dim); opacity: 0.6; }

/* ═══════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════ */
.btn-calculate {
    display: flex; align-items: center; justify-content: center; gap: 0.4rem;
    width: 100%; padding: 0.85rem; margin-top: 0.75rem;
    font-size: 1rem; font-weight: 700; font-family: var(--font-sans);
    color: #fff; background: linear-gradient(135deg, var(--clr-accent), #0d9488);
    border: none; border-radius: var(--radius-sm); cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
    text-transform: uppercase; letter-spacing: 0.04em;
}
.btn-calculate:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(20, 184, 166, 0.4);
}
.btn-calculate:active { transform: translateY(0); }
.btn-icon { font-size: 1.1rem; }

/* Export buttons */
.export-bar {
    display: flex; gap: 0.5rem; margin-top: 0.75rem;
}
.btn-export {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 0.35rem;
    padding: 0.6rem 0.75rem; font-size: 0.78rem; font-weight: 600;
    font-family: var(--font-sans); color: var(--clr-text-muted);
    background: var(--clr-surface-2); border: 1px solid var(--clr-border);
    border-radius: var(--radius-sm); cursor: pointer;
    transition: all var(--transition);
}
.btn-export:hover {
    color: var(--clr-text); border-color: var(--clr-border-hover);
    transform: translateY(-1px);
}
.btn-export-icon { font-size: 0.9rem; }

/* ═══════════════════════════════════════════
   WATERFALL CHART
   ═══════════════════════════════════════════ */
.waterfall-section { margin-bottom: 1.5rem; }
.waterfall-chart {
    min-height: 180px; position: relative;
    overflow: hidden;
}
.waterfall-placeholder {
    color: var(--clr-text-dim); text-align: center;
    padding: 3rem 1rem; font-size: 0.9rem; line-height: 1.7;
}
.placeholder-hint {
    font-size: 0.75rem; opacity: 0.6; display: block; margin-top: 0.25rem;
}

/* Waterfall row */
.wf-row {
    display: flex; align-items: center; gap: 0; margin-bottom: 0.35rem;
    position: relative;
    opacity: 0;
    transform: translateX(-30px);
    animation: wfSlideIn 0.5s ease forwards;
}
.wf-row:nth-child(1) { animation-delay: 0.05s; }
.wf-row:nth-child(2) { animation-delay: 0.1s; }
.wf-row:nth-child(3) { animation-delay: 0.15s; }
.wf-row:nth-child(4) { animation-delay: 0.2s; }
.wf-row:nth-child(5) { animation-delay: 0.25s; }
.wf-row:nth-child(6) { animation-delay: 0.3s; }
.wf-row:nth-child(7) { animation-delay: 0.35s; }
.wf-row:nth-child(8) { animation-delay: 0.4s; }
.wf-row:nth-child(9) { animation-delay: 0.45s; }
.wf-row:nth-child(10) { animation-delay: 0.5s; }

@keyframes wfSlideIn {
    to { opacity: 1; transform: translateX(0); }
}

.wf-label {
    width: 90px; flex-shrink: 0;
    font-size: 0.68rem; font-weight: 600;
    color: var(--clr-text-muted);
    text-align: right; padding-right: 0.6rem;
    line-height: 1.2;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wf-track {
    flex: 1; position: relative; height: 26px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-xs);
    overflow: visible;
}

/* Bar */
.wf-bar {
    position: absolute; top: 0; height: 100%;
    border-radius: var(--radius-xs);
    transition: width 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex; align-items: center;
    min-width: 2px;
}
.wf-bar--revenue {
    left: 0;
    background: var(--clr-waterfall-revenue);
    box-shadow: 0 0 12px rgba(20, 184, 166, 0.25);
}
.wf-bar--deduct {
    background: var(--clr-waterfall-deduct);
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.15);
}
.wf-bar--net-pos {
    left: 0;
    background: var(--clr-waterfall-net-pos);
    box-shadow: 0 0 12px rgba(20, 184, 166, 0.3);
}
.wf-bar--net-neg {
    left: 0;
    background: var(--clr-waterfall-net-neg);
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.3);
    animation: pulseRed 1.5s ease-in-out infinite;
}
@keyframes pulseRed {
    0%, 100% { box-shadow: 0 0 12px rgba(239, 68, 68, 0.3); }
    50% { box-shadow: 0 0 25px rgba(239, 68, 68, 0.6); }
}

/* Bar value label */
.wf-value {
    font-size: 0.65rem; font-weight: 700;
    font-family: var(--font-mono);
    color: #fff;
    padding: 0 0.5rem;
    white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}
.wf-value-outside {
    position: absolute; top: 50%; transform: translateY(-50%);
    font-size: 0.63rem; font-weight: 700;
    font-family: var(--font-mono);
    color: var(--clr-text-muted);
    white-space: nowrap;
    padding-left: 0.3rem;
}

/* Connector lines */
.wf-connector {
    position: absolute;
    top: 100%;
    width: 1px;
    height: 10px;
    border-left: 1px dotted var(--clr-text-dim);
    z-index: 2;
}

/* ═══════════════════════════════════════════
   SUMMARY GRID
   ═══════════════════════════════════════════ */
.summary-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem;
    margin-bottom: 1.25rem;
}
@media (min-width: 480px) {
    .summary-grid { grid-template-columns: repeat(2, 1fr); }
}
.summary-card {
    background: var(--clr-surface-2);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-sm);
    padding: 0.85rem 0.75rem; text-align: center;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    position: relative; overflow: hidden;
}
.summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
.summary-card--highlight {
    border-color: var(--clr-accent);
    background: linear-gradient(135deg, var(--clr-accent-glow), var(--clr-surface-2));
    box-shadow: var(--shadow-glow-teal);
}
.summary-card--highlight::before {
    content: '★';
    position: absolute; top: 0.4rem; right: 0.5rem;
    font-size: 0.7rem; color: var(--clr-accent); opacity: 0.6;
}
.summary-card--danger {
    border-color: var(--clr-danger);
    background: linear-gradient(135deg, var(--clr-danger-glow), var(--clr-surface-2));
    box-shadow: var(--shadow-glow-red);
}
.summary-card--danger::before {
    content: '⚠';
    position: absolute; top: 0.4rem; right: 0.5rem;
    font-size: 0.7rem; color: var(--clr-danger); opacity: 0.6;
}
.summary-label {
    display: block; font-size: 0.68rem; text-transform: uppercase;
    letter-spacing: 0.06em; color: var(--clr-text-muted); margin-bottom: 0.3rem;
    font-weight: 600;
}
.summary-value {
    display: block; font-size: 1.3rem; font-weight: 800;
    font-family: var(--font-mono); line-height: 1.2;
}

/* ═══════════════════════════════════════════
   CHART.JS WRAPPER
   ═══════════════════════════════════════════ */
.chart-wrapper { margin-top: 1rem; }
.chart-title { font-size: 1rem; font-weight: 700; margin-bottom: 0.75rem; }
.chart-container {
    position: relative;
    height: 320px;
    width: 100%;
}
#roi-chart { width: 100% !important; height: 100% !important; }

/* ═══════════════════════════════════════════
   YEAR-BY-YEAR TABLE
   ═══════════════════════════════════════════ */
.panel--table {
    margin-top: 1.5rem;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}
.panel--table.visible {
    opacity: 1; transform: translateY(0);
}
.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -0.5rem; padding: 0 0.5rem;
}
.projection-table {
    width: 100%; border-collapse: collapse;
    font-size: 0.82rem;
}
.projection-table thead th {
    text-align: left; padding: 0.65rem 0.75rem;
    font-size: 0.7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.06em;
    color: var(--clr-text-muted);
    border-bottom: 2px solid var(--clr-border);
    white-space: nowrap;
}
.projection-table tbody td {
    padding: 0.6rem 0.75rem;
    font-family: var(--font-mono); font-weight: 500;
    border-bottom: 1px solid rgba(36, 51, 82, 0.5);
    white-space: nowrap;
}
.projection-table tbody tr {
    transition: background var(--transition);
}
.projection-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}
.projection-table .row-muted td {
    opacity: 0.5;
}
.projection-table .row-breakeven {
    background: var(--clr-accent-glow);
    border-left: 3px solid var(--clr-accent);
}
.projection-table .row-breakeven td {
    color: var(--clr-accent); font-weight: 700; opacity: 1;
}
.projection-table .row-breakeven td:first-child::before {
    content: '▸ ';
}
.projection-table .row-positive td {
    color: var(--clr-accent); opacity: 1;
}
.placeholder-row td {
    text-align: center; color: var(--clr-text-dim);
    padding: 2rem 1rem; font-family: var(--font-sans);
    font-style: italic;
}

/* ═══════════════════════════════════════════
   RENT VS OWN COMPARISON
   ═══════════════════════════════════════════ */
.panel--comparison {
    margin-top: 1.5rem;
}
.comparison-header {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 0.75rem;
}
.comparison-header .panel-title {
    margin-bottom: 0; padding-bottom: 0; border-bottom: none;
}

/* Toggle switch */
.toggle-switch {
    display: flex; align-items: center; gap: 0.5rem; cursor: pointer;
    font-size: 0.78rem; font-weight: 600; color: var(--clr-text-muted);
}
.toggle-switch input { display: none; }
.toggle-slider {
    width: 40px; height: 22px;
    background: var(--clr-surface-2);
    border: 1px solid var(--clr-border);
    border-radius: 100px;
    position: relative;
    transition: all var(--transition);
}
.toggle-slider::after {
    content: '';
    position: absolute; top: 2px; left: 2px;
    width: 16px; height: 16px;
    background: var(--clr-text-muted);
    border-radius: 50%;
    transition: all var(--transition);
}
.toggle-switch input:checked + .toggle-slider {
    background: var(--clr-accent-glow);
    border-color: var(--clr-accent);
}
.toggle-switch input:checked + .toggle-slider::after {
    transform: translateX(18px);
    background: var(--clr-accent);
}

.comparison-body {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--clr-border);
}
.comparison-body.hidden { display: none; }

.comparison-result {
    margin-top: 1rem;
}
.comparison-placeholder {
    color: var(--clr-text-dim); text-align: center;
    padding: 1.5rem; font-size: 0.85rem; font-style: italic;
}

/* Verdict cards */
.verdict-card {
    background: var(--clr-surface-2);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 0.75rem;
    text-align: center;
}
.verdict-card--positive {
    border-color: var(--clr-accent);
    background: linear-gradient(135deg, var(--clr-accent-glow), var(--clr-surface-2));
}
.verdict-card--negative {
    border-color: var(--clr-danger);
    background: linear-gradient(135deg, var(--clr-danger-glow), var(--clr-surface-2));
}
.verdict-icon { font-size: 2rem; display: block; margin-bottom: 0.5rem; }
.verdict-title {
    font-size: 1rem; font-weight: 800; margin-bottom: 0.4rem;
}
.verdict-detail {
    font-size: 0.82rem; color: var(--clr-text-muted); line-height: 1.6;
}
.verdict-detail .mono {
    font-family: var(--font-mono); font-weight: 700;
}
.verdict-detail .accent { color: var(--clr-accent); }
.verdict-detail .danger { color: var(--clr-danger); }

.comparison-stats {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem;
    margin-top: 0.75rem;
}
.comp-stat {
    background: var(--clr-surface-2);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-sm);
    padding: 0.75rem; text-align: center;
}
.comp-stat-label {
    display: block; font-size: 0.62rem; text-transform: uppercase;
    letter-spacing: 0.06em; color: var(--clr-text-dim); margin-bottom: 0.2rem;
    font-weight: 600;
}
.comp-stat-value {
    display: block; font-size: 1rem; font-weight: 800;
    font-family: var(--font-mono);
}

/* ═══════════════════════════════════════════
   INFO SECTION (HOW IT WORKS)
   ═══════════════════════════════════════════ */
.info-section { margin-top: 2.5rem; padding-bottom: 0.5rem; }
.info-section h2 {
    text-align: center; font-size: 1.3rem; margin-bottom: 1.25rem;
    font-weight: 800;
}
.info-grid {
    display: grid; gap: 0.85rem;
}
@media (min-width: 640px) {
    .info-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
    .info-grid { grid-template-columns: repeat(4, 1fr); }
}
.info-card {
    background: var(--clr-surface); border: 1px solid var(--clr-border);
    border-radius: var(--radius); padding: 1.25rem 1rem; text-align: center;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.info-card:hover {
    transform: translateY(-3px); border-color: var(--clr-border-hover);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.info-icon { font-size: 1.75rem; display: block; margin-bottom: 0.6rem; }
.info-card h3 { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.35rem; }
.info-card p { font-size: 0.78rem; color: var(--clr-text-muted); line-height: 1.5; }

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.site-footer {
    text-align: center; padding: 2rem 1rem; margin-top: 2.5rem;
    border-top: 1px solid var(--clr-border);
    font-size: 0.78rem; color: var(--clr-text-dim);
}
.footer-privacy {
    color: var(--clr-accent); margin-bottom: 0.3rem; font-weight: 500;
}
.footer-disclaimer {
    margin-bottom: 0.6rem; font-style: italic; opacity: 0.7;
}

/* ═══════════════════════════════════════════
   TOAST
   ═══════════════════════════════════════════ */
.toast {
    position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%) translateY(120%);
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--clr-surface-3);
    border: 1px solid var(--clr-accent);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg), var(--shadow-glow-teal);
    font-size: 0.85rem; font-weight: 600; color: var(--clr-text);
    z-index: 1000;
    opacity: 0; pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}
.toast.show {
    opacity: 1; pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.toast-icon { font-size: 1.1rem; }

/* ═══════════════════════════════════════════
   UTILITY CLASSES
   ═══════════════════════════════════════════ */
.text-positive { color: var(--clr-accent) !important; }
.text-negative { color: var(--clr-danger) !important; }
.text-gold { color: var(--clr-gold) !important; }
.hidden { display: none !important; }

/* ═══════════════════════════════════════════
   RESPONSIVE TWEAKS
   ═══════════════════════════════════════════ */
@media (max-width: 480px) {
    .brand-name { font-size: 1.5rem; }
    .brand-tagline { font-size: 0.82rem; }
    .summary-value { font-size: 1.1rem; }
    .wf-label { width: 70px; font-size: 0.6rem; }
    .wf-value { font-size: 0.58rem; }
    .projection-table { font-size: 0.75rem; }
    .projection-table thead th { font-size: 0.62rem; padding: 0.5rem; }
    .projection-table tbody td { padding: 0.5rem; }
    .export-bar { flex-direction: column; }
    .comparison-stats { grid-template-columns: 1fr; }
    .chart-container { height: 260px; }
}

@media (min-width: 768px) {
    .brand-name { font-size: 2.1rem; }
    .summary-value { font-size: 1.45rem; }
    .wf-label { width: 110px; font-size: 0.72rem; }
    .chart-container { height: 360px; }
}

/* ═══════════════ AFFILIATE & SEO ═══════════════ */
.seo-card {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin: 2rem 0;
}
.seo-card h2 {
    color: var(--clr-text);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}
.seo-card p {
    color: var(--clr-text-muted);
    line-height: 1.6;
}
.affiliate-gear a {
    color: var(--clr-blue);
    font-weight: 600;
    text-decoration: none;
}
.affiliate-gear a:hover {
    color: var(--clr-text);
    text-decoration: underline;
}
