/* finapi.one. Every colour is a token, set for light and again for dark (the visitor's own preference). */
:root {
    color-scheme: light;
    --bg: #f6f7fb;
    --surface: #ffffff;
    --surface-2: #eef0f8;
    --text: #151a2d;
    --muted: #586178;
    --line: #e1e4ee;
    --primary: #4f46e5;
    --primary-ink: #ffffff;
    --primary-soft: #e8e7ff;
    --good: #15803d;
    --shadow: 0 18px 40px rgba(30, 36, 70, .08);
}
@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
        --bg: #0a0d19;
        --surface: #121730;
        --surface-2: #171d3a;
        --text: #e6e9f7;
        --muted: #9aa3c2;
        --line: #252d52;
        --primary: #818cf8;
        --primary-ink: #0a0d19;
        --primary-soft: #1f2452;
        --good: #4ade80;
        --shadow: 0 18px 40px rgba(0, 0, 0, .35);
    }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, sans-serif; line-height: 1.6; }
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Header */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; text-decoration: none; letter-spacing: -.01em; }
.mark { width: 30px; height: 30px; }
.mark-tile { fill: var(--primary); }
.mark-dot { fill: var(--primary-ink); }
.mark-line { stroke: var(--primary-ink); stroke-width: 2; stroke-linecap: round; fill: none; }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: .92rem; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-links .nav-cta { color: var(--primary); font-weight: 700; }

/* Hero */
.hero { padding: 88px 0 72px; background: radial-gradient(900px 480px at 85% -10%, var(--primary-soft), transparent 65%); }
.hero-grid { display: grid; grid-template-columns: 1.25fr .9fr; gap: 56px; align-items: center; }
.eyebrow { margin: 0 0 14px; color: var(--primary); font-size: .78rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
h1 { margin: 0 0 20px; font-size: clamp(2.3rem, 5.4vw, 4rem); line-height: 1.05; letter-spacing: -.04em; }
h2 { margin: 0 0 28px; font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.15; letter-spacing: -.03em; }
h3 { margin: 0 0 8px; font-size: 1.08rem; }
.lead { margin: 0; max-width: 620px; color: var(--muted); font-size: 1.12rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn { display: inline-block; padding: 13px 20px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-ghost { border: 1px solid var(--line); background: var(--surface); }
.btn-lg { padding: 16px 26px; font-size: 1.05rem; white-space: nowrap; }

.hero-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: var(--shadow); }
.hc-row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: .92rem; }
.hc-label { color: var(--muted); }
.hc-value { font-weight: 600; text-align: right; }
.hc-good { color: var(--good); }
.hc-foot { margin-top: 14px; font-size: .82rem; color: var(--muted); }

/* Bands and sections */
.band { padding: 80px 0; background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section { padding: 80px 24px; }

.flow { display: grid; grid-template-columns: 1fr auto 1.2fr auto 1fr; gap: 18px; align-items: center; }
.flow-col { display: flex; flex-direction: column; gap: 10px; }
.flow-title { font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.chip { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-weight: 600; font-size: .95rem; }
.flow-core { background: var(--surface); border: 2px solid var(--primary); border-radius: 16px; padding: 18px; box-shadow: var(--shadow); }
.core-item { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.core-item:last-child { border-bottom: 0; }
.flow-arrow { font-size: 1.8rem; color: var(--primary); font-weight: 700; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.card p { margin: 0; color: var(--muted); }

.who { display: flex; align-items: center; justify-content: space-between; gap: 32px; }

/* Footer */
.foot { padding: 28px 0; color: var(--muted); font-size: .88rem; }
.foot-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot a { color: var(--primary); text-decoration: none; font-weight: 600; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* About, contact and privacy */
.doc { padding: 64px 24px 80px; max-width: 780px; }
.doc h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
.doc h2 { margin: 40px 0 12px; font-size: 1.35rem; letter-spacing: -.02em; }
.doc p, .doc li { color: var(--muted); }
.doc strong { color: var(--text); }
.doc ul { padding-left: 22px; }
.doc a { color: var(--primary); font-weight: 600; }
.doc .updated { margin: 0 0 28px; font-size: .9rem; color: var(--muted); }

@media (max-width: 900px) {
    .hero { padding: 56px 0 48px; }
    .hero-grid, .cards { grid-template-columns: 1fr; }
    .flow { grid-template-columns: 1fr; }
    .flow-arrow { transform: rotate(90deg); justify-self: center; }
    .who { flex-direction: column; align-items: flex-start; }
    .nav-links a:not(.nav-cta) { display: none; }
}
