/* ============================================================
   PITI Pro — Unique Mortgage Calculator Stylesheet
   ============================================================ */

:root {
    /* Color palette - sophisticated emerald/gold on midnight */
    --bg-primary: #0a0f1c;
    --bg-secondary: #111827;
    --bg-tertiary: #1a2333;
    --card-bg: rgba(22, 32, 52, 0.65);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-hover-border: rgba(16, 185, 129, 0.3);

    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --accent-emerald: #10b981;
    --accent-emerald-light: #34d399;
    --accent-emerald-dark: #059669;
    --accent-gold: #f59e0b;
    --accent-amber: #fbbf24;
    --accent-blue: #3b82f6;
    --accent-purple: #a855f7;
    --accent-rose: #f43f5e;

    --seg-pi: #10b981;
    --seg-tax: #3b82f6;
    --seg-ins: #a855f7;
    --seg-pmi: #f59e0b;
    --seg-hoa: #f43f5e;

    --shadow-glow: 0 0 40px rgba(16, 185, 129, 0.15);
    --shadow-card: 0 20px 60px -20px rgba(0, 0, 0, 0.6);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --font-display: 'Sora', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Background atmosphere */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 0%, rgba(16, 185, 129, 0.08), transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 100%, rgba(59, 130, 246, 0.06), transparent 60%);
    pointer-events: none;
    z-index: -1;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

.skip-link {
    position: absolute; top: -100px; left: 0;
    background: var(--accent-emerald); color: white;
    padding: 0.75rem 1.25rem; border-radius: 0 0 8px 0;
    z-index: 1000; font-weight: 600;
}
.skip-link:focus { top: 0; }

/* ===================== Header ===================== */
.site-header {
    position: sticky; top: 0; z-index: 100;
    backdrop-filter: blur(20px);
    background: rgba(10, 15, 28, 0.7);
    border-bottom: 1px solid var(--card-border);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 1.5rem; max-width: 1200px; margin: 0 auto;
}
.logo {
    display: flex; align-items: center; gap: 0.65rem;
    text-decoration: none; color: var(--text-primary);
    font-family: var(--font-display); font-weight: 800; font-size: 1.35rem;
    letter-spacing: -0.02em;
}
.logo-text { color: var(--text-primary); }
.logo-accent { color: var(--accent-emerald); }

.main-nav { display: flex; align-items: center; }
.nav-links {
    display: flex; gap: 0.5rem; list-style: none; align-items: center;
}
.nav-links a {
    color: var(--text-secondary); text-decoration: none;
    padding: 0.5rem 0.95rem; border-radius: 8px;
    font-weight: 500; font-size: 0.95rem;
    transition: all 0.2s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] {
    color: var(--text-primary); background: rgba(255,255,255,0.06);
}
.nav-toggle {
    display: none; background: none; border: none; cursor: pointer;
    width: 32px; height: 32px; position: relative;
}
.nav-toggle span {
    display: block; width: 22px; height: 2px; background: var(--text-primary);
    margin: 5px auto; transition: 0.3s;
}

/* ===================== Hero ===================== */
.hero {
    position: relative; padding: 5rem 0 3rem; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-blob {
    position: absolute; border-radius: 50%; filter: blur(80px);
    opacity: 0.4; animation: float 20s ease-in-out infinite;
}
.blob-1 { width: 400px; height: 400px; background: var(--accent-emerald); top: -100px; left: -100px; }
.blob-2 { width: 350px; height: 350px; background: var(--accent-blue); bottom: -50px; right: 10%; animation-delay: -7s; }
.blob-3 { width: 250px; height: 250px; background: var(--accent-purple); top: 20%; right: -50px; animation-delay: -14s; }

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -30px) scale(1.05); }
    66% { transform: translate(-30px, 30px) scale(0.95); }
}

.hero-content { position: relative; z-index: 1; text-align: center; max-width: 850px; margin: 0 auto; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--accent-emerald-light); padding: 0.5rem 1rem;
    border-radius: 999px; font-size: 0.875rem; font-weight: 500;
    margin-bottom: 1.5rem;
}
.pulse-dot {
    width: 8px; height: 8px; background: var(--accent-emerald);
    border-radius: 50%; animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.7); }
    50% { box-shadow: 0 0 0 8px rgba(16,185,129,0); }
}

.hero-title {
    font-family: var(--font-display); font-weight: 800;
    font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.1;
    letter-spacing: -0.03em; margin-bottom: 1.25rem;
}
.gradient-text {
    background: linear-gradient(135deg, var(--accent-emerald-light), var(--accent-amber));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-subtitle {
    font-size: 1.15rem; color: var(--text-secondary);
    max-width: 650px; margin: 0 auto 2rem;
}
.hero-trust {
    display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap;
    margin-top: 2.5rem;
}
.trust-item { display: flex; flex-direction: column; align-items: center; }
.trust-item strong {
    font-family: var(--font-display); font-size: 1.75rem; font-weight: 800;
    color: var(--text-primary);
}
.trust-item span { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }

/* ===================== Calculator ===================== */
.calculator-section { padding: 2rem 0 4rem; }
.calculator-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 1.5rem; align-items: start;
}
@media (max-width: 900px) { .calculator-grid { grid-template-columns: 1fr; } }

.calc-panel {
    background: var(--card-bg); border: 1px solid var(--card-border);
    border-radius: var(--radius-lg); padding: 2rem;
    backdrop-filter: blur(20px); box-shadow: var(--shadow-card);
}
.panel-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1.5rem;
}
.panel-header h2 {
    font-family: var(--font-display); font-size: 1.15rem; font-weight: 700;
    display: flex; align-items: center; gap: 0.75rem;
    letter-spacing: -0.01em;
}
.panel-num {
    font-size: 0.75rem; color: var(--accent-emerald);
    background: rgba(16,185,129,0.1); padding: 0.25rem 0.6rem;
    border-radius: 6px; font-weight: 600;
}

.reset-btn {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: none; border: 1px solid var(--card-border);
    color: var(--text-secondary); padding: 0.4rem 0.85rem;
    border-radius: 8px; font-size: 0.85rem; cursor: pointer;
    transition: all 0.2s;
}
.reset-btn:hover { color: var(--text-primary); border-color: var(--accent-emerald); }

/* Fields */
.field { margin-bottom: 1.25rem; }
.field label {
    display: block; font-size: 0.85rem; font-weight: 600;
    color: var(--text-secondary); margin-bottom: 0.5rem;
    letter-spacing: 0.01em;
}
.label-optional { color: var(--text-muted); font-weight: 400; }

.field-group {
    display: grid; grid-template-columns: 1.5fr 1fr; gap: 0.85rem;
}

.input-wrap {
    position: relative; display: flex; align-items: center;
    background: var(--bg-tertiary); border: 1px solid var(--card-border);
    border-radius: var(--radius-sm); transition: all 0.2s;
}
.input-wrap:focus-within {
    border-color: var(--accent-emerald);
    box-shadow: 0 0 0 3px rgba(16,185,129,0.15);
}
.input-wrap input {
    flex: 1; background: none; border: none; outline: none;
    color: var(--text-primary); font-family: var(--font-body);
    font-size: 1.05rem; font-weight: 600; padding: 0.75rem 1rem;
    width: 100%;
}
.input-prefix, .input-suffix {
    color: var(--text-muted); padding: 0 0.85rem; font-weight: 600;
    pointer-events: none; user-select: none;
}
.input-prefix { padding-right: 0; }

/* Hide number input arrows */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; }

/* Range slider */
.range-slider {
    -webkit-appearance: none; appearance: none;
    width: 100%; height: 4px; background: var(--bg-tertiary);
    border-radius: 2px; margin-top: 0.65rem; cursor: pointer;
    outline: none;
}
.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 18px; height: 18px; background: var(--accent-emerald);
    border-radius: 50%; cursor: pointer;
    box-shadow: 0 0 0 4px rgba(16,185,129,0.2);
    transition: transform 0.15s;
}
.range-slider::-webkit-slider-thumb:hover { transform: scale(1.2); }
.range-slider::-moz-range-thumb {
    width: 18px; height: 18px; background: var(--accent-emerald);
    border-radius: 50%; cursor: pointer; border: none;
    box-shadow: 0 0 0 4px rgba(16,185,129,0.2);
}

.field-hint {
    font-size: 0.8rem; color: var(--text-muted); margin-top: 0.5rem;
}
.field-hint strong { color: var(--text-secondary); }
.pmi-status.not-required { color: var(--accent-emerald-light); }
.pmi-status.required { color: var(--accent-gold); }

.field-help { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.5rem; }
.field-help a { color: var(--accent-emerald-light); text-decoration: none; }
.field-help a:hover { text-decoration: underline; }

/* Segmented control */
.segmented {
    display: flex; background: var(--bg-tertiary); padding: 4px;
    border-radius: var(--radius-sm); gap: 2px; margin-top: 0.25rem;
}
.segmented.small { padding: 3px; }
.segmented input[type="radio"] { display: none; }
.segmented label {
    flex: 1; text-align: center; padding: 0.55rem 0.5rem;
    font-size: 0.9rem; font-weight: 600; color: var(--text-secondary);
    cursor: pointer; border-radius: 6px; transition: all 0.2s;
    margin: 0;
}
.segmented input[type="radio"]:checked + label {
    background: var(--accent-emerald); color: white;
    box-shadow: 0 2px 8px rgba(16,185,129,0.3);
}
.segmented label:hover { color: var(--text-primary); }

/* Save scenario button */
.save-scenario-btn {
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    width: 100%; padding: 0.85rem; margin-top: 1rem;
    background: rgba(16,185,129,0.1); border: 1px dashed rgba(16,185,129,0.4);
    color: var(--accent-emerald-light); border-radius: var(--radius-sm);
    font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.save-scenario-btn:hover {
    background: rgba(16,185,129,0.18); border-style: solid;
}

/* ===================== Results Panel ===================== */
.live-indicator {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-size: 0.75rem; color: var(--accent-emerald-light);
    text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600;
}

.total-payment {
    text-align: center; padding: 1.5rem 0 1.25rem;
    border-bottom: 1px solid var(--card-border); margin-bottom: 1.5rem;
}
.total-label {
    display: block; font-size: 0.8rem; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.4rem;
}
.total-amount {
    font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800; letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--accent-emerald-light) 0%, var(--accent-amber) 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block; line-height: 1.1;
}
.total-sub { font-size: 0.85rem; color: var(--text-muted); }

/* Donut chart */
.chart-container {
    display: flex; justify-content: center; padding: 1rem 0;
}
.donut-chart { width: 200px; height: 200px; transform: rotate(-90deg); }
.donut-bg { fill: none; stroke: rgba(255,255,255,0.05); stroke-width: 24; }
.donut-seg {
    fill: none; stroke-width: 24; stroke-linecap: butt;
    transition: stroke-dashoffset 0.6s ease, stroke-dasharray 0.6s ease;
}
.seg-pi { stroke: var(--seg-pi); }
.seg-tax { stroke: var(--seg-tax); }
.seg-ins { stroke: var(--seg-ins); }
.seg-pmi { stroke: var(--seg-pmi); }
.seg-hoa { stroke: var(--seg-hoa); }

.donut-center-label, .donut-center-value {
    transform: rotate(90deg); transform-origin: center;
    fill: var(--text-secondary); font-family: var(--font-body);
}
.donut-center-label { font-size: 11px; }
.donut-center-value {
    font-size: 22px; font-weight: 700; fill: var(--text-primary);
    font-family: var(--font-display);
}

/* Breakdown */
.breakdown { margin-bottom: 1.5rem; }
.breakdown-row {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.65rem 0.85rem; border-radius: 8px;
    transition: background 0.2s;
}
.breakdown-row:hover { background: rgba(255,255,255,0.03); }
.bd-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.dot-pi { background: var(--seg-pi); }
.dot-tax { background: var(--seg-tax); }
.dot-ins { background: var(--seg-ins); }
.dot-pmi { background: var(--seg-pmi); }
.dot-hoa { background: var(--seg-hoa); }
.bd-label { flex: 1; font-size: 0.9rem; color: var(--text-secondary); }
.bd-value { font-weight: 700; font-variant-numeric: tabular-nums; }

/* Summary grid */
.summary-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.summary-card {
    background: rgba(0,0,0,0.25); border: 1px solid var(--card-border);
    border-radius: var(--radius-sm); padding: 0.85rem;
}
.summary-label {
    display: block; font-size: 0.7rem; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.25rem;
}
.summary-value {
    font-family: var(--font-display); font-weight: 700;
    font-size: 1.05rem; font-variant-numeric: tabular-nums;
}

.view-schedule-btn {
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    width: 100%; padding: 0.85rem;
    background: var(--accent-emerald); color: white;
    border: none; border-radius: var(--radius-sm);
    font-weight: 600; font-size: 0.95rem; cursor: pointer;
    transition: all 0.2s;
}
.view-schedule-btn:hover {
    background: var(--accent-emerald-dark);
    transform: translateY(-1px); box-shadow: 0 8px 20px rgba(16,185,129,0.3);
}

/* ===================== Amortization ===================== */
.amortization-section {
    margin-top: 2rem; background: var(--card-bg);
    border: 1px solid var(--card-border); border-radius: var(--radius-lg);
    padding: 2rem; backdrop-filter: blur(20px);
    animation: slideUp 0.4s ease;
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.amortization-header {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem;
}
.amortization-header h2 {
    font-family: var(--font-display); font-size: 1.4rem; font-weight: 700;
}
.amort-controls { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.btn-secondary {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: var(--bg-tertiary); border: 1px solid var(--card-border);
    color: var(--text-secondary); padding: 0.55rem 0.9rem;
    border-radius: 8px; font-size: 0.85rem; cursor: pointer;
    transition: all 0.2s;
}
.btn-secondary:hover { color: var(--text-primary); border-color: var(--accent-emerald); }

.amortization-chart-wrapper {
    background: rgba(0,0,0,0.25); border-radius: var(--radius-md);
    padding: 1rem; margin-bottom: 1.5rem; overflow: hidden;
}
#amort-chart { width: 100%; height: auto; display: block; }

.amortization-table-wrapper {
    max-height: 500px; overflow-y: auto;
    border: 1px solid var(--card-border); border-radius: var(--radius-md);
}
.amortization-table-wrapper::-webkit-scrollbar { width: 8px; }
.amortization-table-wrapper::-webkit-scrollbar-track { background: var(--bg-tertiary); }
.amortization-table-wrapper::-webkit-scrollbar-thumb {
    background: var(--card-border); border-radius: 4px;
}
.amortization-table-wrapper::-webkit-scrollbar-thumb:hover { background: var(--accent-emerald); }

.amortization-table {
    width: 100%; border-collapse: collapse; font-size: 0.88rem;
}
.amortization-table thead {
    position: sticky; top: 0; background: var(--bg-secondary); z-index: 2;
}
.amortization-table th {
    padding: 0.85rem 1rem; text-align: right;
    font-weight: 600; color: var(--text-secondary);
    font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em;
    border-bottom: 1px solid var(--card-border);
}
.amortization-table th:first-child, .amortization-table td:first-child { text-align: center; }
.amortization-table th:nth-child(2), .amortization-table td:nth-child(2) { text-align: left; }
.amortization-table td {
    padding: 0.7rem 1rem; text-align: right;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-variant-numeric: tabular-nums;
}
.amortization-table tbody tr { transition: background 0.15s; }
.amortization-table tbody tr:hover { background: rgba(16,185,129,0.05); }
.amortization-table .year-row {
    background: rgba(16,185,129,0.1); font-weight: 700;
    color: var(--accent-emerald-light);
}

/* ===================== Content Section ===================== */
.content-section { padding: 4rem 0; }
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 {
    font-family: var(--font-display); font-size: 2rem; font-weight: 700;
    margin-bottom: 1rem; letter-spacing: -0.02em;
}
.prose h3 {
    font-family: var(--font-display); font-size: 1.3rem; font-weight: 600;
    margin-top: 2rem; margin-bottom: 0.75rem; color: var(--accent-emerald-light);
}
.prose p { color: var(--text-secondary); margin-bottom: 1rem; font-size: 1.02rem; }
.prose ul, .prose ol { margin: 1rem 0 1rem 1.5rem; color: var(--text-secondary); }
.prose li { margin-bottom: 0.5rem; }
.prose strong { color: var(--text-primary); }
.prose code {
    background: var(--bg-tertiary); padding: 0.15rem 0.4rem;
    border-radius: 4px; font-size: 0.9em; color: var(--accent-emerald-light);
}
.prose a { color: var(--accent-emerald-light); }

/* ===================== Modal ===================== */
.modal {
    position: fixed; inset: 0; z-index: 1000;
    display: flex; align-items: center; justify-content: center;
    padding: 1rem;
}
.modal[hidden] { display: none; }
.modal-backdrop {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.7); backdrop-filter: blur(8px);
    animation: fadeIn 0.2s ease;
}
.modal-card {
    position: relative; background: var(--bg-secondary);
    border: 1px solid var(--card-border); border-radius: var(--radius-lg);
    padding: 2rem; max-width: 460px; width: 100%;
    animation: modalIn 0.3s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-close {
    position: absolute; top: 0.75rem; right: 1rem;
    background: none; border: none; color: var(--text-secondary);
    font-size: 1.75rem; cursor: pointer; line-height: 1;
}
.modal-card h2 {
    font-family: var(--font-display); font-size: 1.5rem; font-weight: 700;
    margin-bottom: 0.5rem;
}
.modal-sub { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 1.5rem; }
.modal-foot { font-size: 0.8rem; color: var(--text-muted); text-align: center; margin-top: 1rem; }

.btn-primary {
    background: var(--accent-emerald); color: white; border: none;
    padding: 0.85rem 1.5rem; border-radius: var(--radius-sm);
    font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.btn-primary:hover { background: var(--accent-emerald-dark); }
.btn-primary.full-width { width: 100%; }

/* ===================== Toast ===================== */
.toast {
    position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%) translateY(20px);
    background: var(--bg-secondary); border: 1px solid var(--accent-emerald);
    color: var(--text-primary); padding: 0.85rem 1.5rem;
    border-radius: var(--radius-sm); box-shadow: var(--shadow-card);
    z-index: 2000; opacity: 0; transition: all 0.3s ease;
    font-weight: 500; max-width: 90vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { border-color: var(--accent-rose); }

/* ===================== Footer ===================== */
.site-footer {
    background: var(--bg-secondary); border-top: 1px solid var(--card-border);
    padding: 3rem 0 0; margin-top: 4rem;
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 2rem; padding-bottom: 2.5rem;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-logo {
    font-family: var(--font-display); font-weight: 800; font-size: 1.5rem;
    margin-bottom: 0.75rem;
}
.footer-tagline { color: var(--text-secondary); font-size: 0.9rem; }
.footer-col h3 {
    font-family: var(--font-display); font-size: 0.95rem; font-weight: 700;
    margin-bottom: 1rem; color: var(--text-primary);
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: var(--text-secondary); text-decoration: none; font-size: 0.9rem; }
.footer-col a:hover { color: var(--accent-emerald-light); }
.footer-disclaimer { font-size: 0.8rem; color: var(--text-muted); }
.footer-bottom {
    border-top: 1px solid var(--card-border); padding: 1.25rem 0;
    text-align: center; font-size: 0.85rem; color: var(--text-muted);
}

/* ===================== Mobile ===================== */
@media (max-width: 700px) {
    .nav-toggle { display: block; }
    .nav-links {
        position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; background: var(--bg-secondary);
        padding: 1rem; gap: 0; border-bottom: 1px solid var(--card-border);
        transform: translateY(-100%); opacity: 0; pointer-events: none;
        transition: all 0.3s;
    }
    .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
    .nav-links a { padding: 0.85rem 1rem; border-radius: 0; }
    .nav-links a:hover { background: rgba(255,255,255,0.04); }
    .calc-panel { padding: 1.25rem; }
    .summary-grid { grid-template-columns: 1fr; }
    .hero { padding: 3rem 0 2rem; }
    .hero-trust { gap: 1.5rem; }
    .field-group { grid-template-columns: 1fr; }
}

/* ===================== Print ===================== */
@media print {
    body { background: white; color: black; }
    .site-header, .site-footer, .hero-bg, .view-schedule-btn,
    .save-scenario-btn, .reset-btn, .amort-controls, .chart-container { display: none; }
    .calc-panel, .amortization-section {
        background: white; border: 1px solid #ccc; backdrop-filter: none;
    }
    .amortization-table-wrapper { max-height: none; }
}