/* ═══════════════════════════════════════════════════════════════════════════
   Finance Tracker — Home / Landing Page Styles
   ═══════════════════════════════════════════════════════════════════════════ */

:root { --brand: #6c63ff; --brand-dark: #4a42cc; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    display: flex; flex-direction: column; min-height: 100vh;
}
body > *:not(footer) { flex-shrink: 0; }
footer { margin-top: auto; }

/* Hero */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 0 60px;
    position: relative; overflow: hidden;
}
.hero::after {
    content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 60px;
    background: #fff; clip-path: ellipse(60% 100% at 50% 100%);
}
.hero-icon {
    width: 80px; height: 80px; border-radius: 20px;
    background: rgba(255,255,255,.15); backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    font-size: 40px; margin: 0 auto 20px;
}
.btn-hero-primary {
    background: white; color: var(--brand); font-weight: 700;
    border: none; border-radius: 14px; padding: 13px 28px; font-size: 16px;
}
.btn-hero-primary:hover { background: #f0eeff; color: var(--brand-dark); }
.btn-hero-outline {
    background: transparent; color: white; font-weight: 600;
    border: 2px solid rgba(255,255,255,.5); border-radius: 14px; padding: 11px 24px; font-size: 16px;
}
.btn-hero-outline:hover { border-color: white; color: white; background: rgba(255,255,255,.1); }

/* Sections */
section { padding: 60px 0; }
.section-label {
    color: var(--brand); font-weight: 700; font-size: 13px;
    text-transform: uppercase; letter-spacing: 1.5px;
}
.feature-icon {
    width: 52px; height: 52px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center; font-size: 24px;
    margin-bottom: 14px;
}

/* Comparison table */
.compare-col { border-radius: 20px; overflow: hidden; }
.compare-col.theirs { background: #fff5f5; border: 2px solid #ffe0e0; }
.compare-col.ours   { background: #f0f9f4; border: 2px solid #c3e6cb; }
.compare-row { padding: 10px 16px; border-bottom: 1px solid rgba(0,0,0,.06); font-size: 14px; }
.compare-row:last-child { border-bottom: none; }

/* Install steps */
.install-step { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
.step-num {
    width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 14px;
}
.device-card {
    border-radius: 20px; padding: 28px 24px;
    background: white; box-shadow: 0 4px 20px rgba(0,0,0,.06);
}

/* Footer */
footer { background: #1a1a2e; color: rgba(255,255,255,.6); padding: 32px 0; }
.powered-bar  { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.powered-pages { display: flex; gap: 1rem; }
.powered-link { display: flex; align-items: center; }

/* Theme toggle (fixed pin — shared with site.css pattern) */
.theme-toggle-fixed {
    position: fixed; top: 10px; right: 14px; z-index: 9999;
    background: rgba(0,0,0,.22); border: none; cursor: pointer;
    font-size: 1rem; padding: .28rem .42rem;
    border-radius: 8px; line-height: 1;
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    transition: background .15s;
}
.theme-toggle-fixed:hover { background: rgba(0,0,0,.38); }
[data-theme="dark"] .theme-toggle-fixed { background: rgba(255,255,255,.15); }
[data-theme="dark"] .theme-toggle-fixed:hover { background: rgba(255,255,255,.28); }
.theme-icon-dark  { display: none; }
[data-theme="dark"] .theme-icon-light { display: none; }
[data-theme="dark"] .theme-icon-dark  { display: inline; }

/* ── Dark mode overrides ─────────────────────────────────────────────────── */
[data-theme="dark"] body { background: #0f172a; color: #f1f5f9; }

[data-theme="dark"] section[style*="background:#f8fafc"],
[data-theme="dark"] section[style*="background:#f8f9fa"],
[data-theme="dark"] section.bg-white { background: #1e293b !important; color: #f1f5f9; }

[data-theme="dark"] section[style*="background:#f8fafc"] h2,
[data-theme="dark"] section[style*="background:#f8f9fa"] h2,
[data-theme="dark"] section.bg-white h2 { color: #f1f5f9; }

[data-theme="dark"] section[style*="background:#f8fafc"] .text-muted,
[data-theme="dark"] section[style*="background:#f8f9fa"] .text-muted,
[data-theme="dark"] section.bg-white .text-muted { color: #94a3b8 !important; }

[data-theme="dark"] .rounded-4[style*="background:"] { background: #0f172a !important; border-color: #334155 !important; }
[data-theme="dark"] .rounded-4[style*="background:"] h5 { color: #f1f5f9 !important; }
[data-theme="dark"] .rounded-4[style*="background:"] p  { color: #94a3b8 !important; }
[data-theme="dark"] .rounded-4 > div[style*="background:white"] { background: #1e293b !important; }

[data-theme="dark"] .compare-col.ours   { background: #0f2318 !important; border-color: #166534 !important; }
[data-theme="dark"] .compare-col.theirs { background: #1f0f0f !important; border-color: #7f1d1d !important; }
[data-theme="dark"] .compare-col .compare-row { border-bottom-color: rgba(255,255,255,.08) !important; color: #f1f5f9; }
[data-theme="dark"] .compare-col .text-muted { color: #94a3b8 !important; }
[data-theme="dark"] .compare-col > div[style*="background:linear-gradient"] { background: rgba(255,255,255,.05) !important; }

[data-theme="dark"] .device-card { background: #1e293b !important; box-shadow: 0 4px 20px rgba(0,0,0,.4) !important; color: #f1f5f9; }
[data-theme="dark"] .device-card .text-muted { color: #94a3b8 !important; }
[data-theme="dark"] .device-card > div[style*="background:#f0"],
[data-theme="dark"] .device-card > div[style*="background:#e8"],
[data-theme="dark"] .device-card > div[style*="background:#f5"] { background: rgba(255,255,255,.08) !important; }

[data-theme="dark"] .col-6.col-md-3 > div[style*="background:"] { background: #1e293b !important; border-color: #334155 !important; }
[data-theme="dark"] .col-6.col-md-3 .text-muted { color: #94a3b8 !important; }
[data-theme="dark"] .col-6.col-md-3 .fw-bold.small { color: #f1f5f9; }

[data-theme="dark"] .hero::after { background: #1e293b; }
