/* Finvo.dk - marketing-site. Deler designtokens med Finvo-webappen. */

:root {
    color-scheme: light;

    --page:           #f7f6f2;
    --surface:        #ffffff;
    --surface-sunken: #f1f0ea;
    --text-primary:   #14171c;
    --text-secondary: #52514e;
    --text-muted:     #8b8a83;
    --border:         rgba(20, 23, 28, 0.11);
    --hairline:       #e5e3da;

    --ink:            #0f1b30;
    --ink-strong:     #0a1322;
    --on-ink:         #f4f6fb;
    --on-ink-muted:   rgba(244, 246, 251, 0.62);
    --on-ink-border:  rgba(244, 246, 251, 0.14);

    --accent:         #1f4fa3;
    --accent-strong:  #163a7c;
    --accent-wash:    rgba(31, 79, 163, 0.08);

    --success:        #1a7a3d;
    --success-wash:   rgba(26, 122, 61, 0.10);
    --warn:           #a6650c;
    --warn-wash:      rgba(166, 101, 12, 0.10);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 22px;

    --shadow-sm: 0 1px 2px rgba(15, 27, 48, 0.05), 0 1px 1px rgba(15, 27, 48, 0.04);
    --shadow-md: 0 8px 24px rgba(15, 27, 48, 0.08), 0 2px 6px rgba(15, 27, 48, 0.04);
    --shadow-lg: 0 24px 60px rgba(15, 27, 48, 0.14), 0 6px 18px rgba(15, 27, 48, 0.06);
}

@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
        --page:           #0c0d10;
        --surface:        #17181c;
        --surface-sunken: #131417;
        --text-primary:   #f3f3f1;
        --text-secondary: #c3c2b7;
        --text-muted:     #8f8e87;
        --border:         rgba(255, 255, 255, 0.11);
        --hairline:       #2a2b2f;

        --ink:            #10131a;
        --ink-strong:     #0a0d13;

        --accent:         #5c93e0;
        --accent-strong:  #7dabe8;
        --accent-wash:    rgba(92, 147, 224, 0.14);

        --success:        #4fbb7a;
        --success-wash:   rgba(79, 187, 122, 0.12);
        --warn:           #d29a4a;
        --warn-wash:      rgba(210, 154, 74, 0.12);

        --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
        --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
        --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
    }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--page);
    color: var(--text-primary);
    font-family: -apple-system, "SF Pro Text", system-ui, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; }

a { color: var(--accent); }

/* ---------- Containere: topbar fylder hele bredden, indholdet er smallere ---------- */

.container {
    width: 100%;
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Logo ---------- */

.logo-mark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.logo-mark .mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: var(--accent);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    flex-shrink: 0;
}

.logo-mark .word {
    font-size: 19px;
    font-weight: 750;
    letter-spacing: -0.01em;
}

/* ---------- Topbar (fuld bredde, sticky) ---------- */

.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--ink) 88%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--ink-strong);
}

.topbar-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 14px 28px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.topbar .logo-mark .word { color: var(--on-ink); }

.topbar .nav {
    display: flex;
    gap: 2px;
    flex: 1;
    flex-wrap: wrap;
}

.topbar .nav a {
    color: var(--on-ink-muted);
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 550;
    padding: 8px 13px;
    border-radius: var(--radius-sm);
    transition: color .15s, background-color .15s;
}

.topbar .nav a:hover { color: var(--on-ink); background: rgba(244, 246, 251, 0.08); }
.topbar .nav a.active { color: var(--on-ink); background: rgba(244, 246, 251, 0.12); }

.topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-ghost {
    display: inline-block;
    font: inherit;
    font-size: 14.5px;
    font-weight: 550;
    text-decoration: none;
    color: var(--on-ink-muted);
    background: transparent;
    border: 1px solid var(--on-ink-border);
    border-radius: var(--radius-sm);
    padding: 8px 15px;
    transition: color .15s, border-color .15s, background-color .15s;
}

.btn-ghost:hover { color: var(--on-ink); border-color: rgba(244, 246, 251, 0.34); background: rgba(244, 246, 251, 0.06); }

.btn-cta {
    display: inline-block;
    font: inherit;
    font-size: 14.5px;
    font-weight: 650;
    text-decoration: none;
    color: #fff;
    background: var(--accent);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    padding: 8px 16px;
    transition: background-color .15s, transform .15s;
}

.btn-cta:hover { background: var(--accent-strong); }

/* ---------- Knapper i indholdet ---------- */

.btn-primary-lg,
.btn-secondary-lg {
    display: inline-block;
    font: inherit;
    font-size: 16px;
    font-weight: 650;
    text-decoration: none;
    border-radius: var(--radius-md);
    padding: 13px 26px;
    transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}

.btn-primary-lg {
    color: #fff;
    background: var(--accent);
    border: 1px solid transparent;
    box-shadow: var(--shadow-sm);
}

.btn-primary-lg:hover { background: var(--accent-strong); transform: translateY(-1px); }

.btn-secondary-lg {
    color: var(--text-primary);
    background: var(--surface);
    border: 1px solid var(--border);
}

.btn-secondary-lg:hover { border-color: var(--text-muted); transform: translateY(-1px); }

/* ---------- Hero ---------- */

.hero {
    position: relative;
    overflow: hidden;
    padding: 92px 0 72px;
}

.hero::before {
    content: "";
    position: absolute;
    inset: -40% -20% auto;
    height: 130%;
    background:
        radial-gradient(560px 340px at 22% 18%, var(--accent-wash), transparent 70%),
        radial-gradient(640px 400px at 82% 4%, var(--success-wash), transparent 72%);
    pointer-events: none;
}

.hero-inner { position: relative; text-align: center; }

.hero .kicker { justify-content: center; }

.hero h1 {
    margin: 18px auto 0;
    max-width: 15em;
    font-size: clamp(34px, 5.4vw, 58px);
    font-weight: 750;
    line-height: 1.08;
    letter-spacing: -0.025em;
}

.hero .lead {
    margin: 22px auto 0;
    max-width: 36em;
    font-size: clamp(17px, 2vw, 19px);
    color: var(--text-secondary);
}

.hero-actions {
    margin-top: 34px;
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-points {
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 8px 26px;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 14.5px;
}

.hero-points li { display: inline-flex; align-items: center; gap: 7px; }
.hero-points .check { color: var(--success); }

/* ---------- Kicker + sektionsoverskrifter ---------- */

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
}

.section { padding: 76px 0; }
.section + .section { padding-top: 0; }

.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head.centered { margin-inline: auto; text-align: center; }

.section-head h2 {
    margin: 12px 0 0;
    font-size: clamp(26px, 3.4vw, 36px);
    font-weight: 720;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.section-head p {
    margin: 14px 0 0;
    color: var(--text-secondary);
    font-size: 17px;
}

/* ---------- Mock-UI (eksempler) ---------- */

.mock-window {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.mock-titlebar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 11px 16px;
    border-bottom: 1px solid var(--hairline);
    background: var(--surface-sunken);
}

.mock-titlebar .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--hairline); }

.mock-titlebar .mock-title {
    margin-left: 8px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-muted);
}

.mock-body { padding: 22px; }

.hero-mock {
    margin: 56px auto 0;
    max-width: 880px;
    position: relative;
}

/* Dashboard-fliser */

.tile-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.tile {
    background: var(--surface-sunken);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    text-align: left;
}

.tile .tile-label { font-size: 12.5px; font-weight: 600; color: var(--text-muted); }
.tile .tile-value { margin-top: 6px; font-size: 24px; font-weight: 720; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.tile .tile-note { margin-top: 4px; font-size: 12.5px; color: var(--text-muted); }
.tile .up { color: var(--success); }

/* Badges */

.badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 650;
    padding: 3px 9px;
    border-radius: 999px;
}

.badge-ok    { color: var(--success); background: var(--success-wash); }
.badge-warn  { color: var(--warn); background: var(--warn-wash); }
.badge-muted { color: var(--text-muted); background: var(--surface-sunken); }

/* Tabeller i mock-ui */

.mock-table { width: 100%; border-collapse: collapse; font-size: 14px; }

.mock-table th {
    text-align: left;
    font-size: 12px;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    padding: 0 10px 8px;
    border-bottom: 1px solid var(--hairline);
}

.mock-table td { padding: 9px 10px; border-bottom: 1px solid var(--hairline); }
.mock-table tr:last-child td { border-bottom: 0; }
.mock-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mock-table .total td { font-weight: 700; border-top: 2px solid var(--border); }

/* Faktura-mock */

.invoice-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
}

.invoice-head .inv-no { font-size: 17px; font-weight: 720; letter-spacing: -0.01em; }
.invoice-head .inv-meta { font-size: 13px; color: var(--text-muted); margin-top: 3px; }

/* ---------- Eksempel-sektioner (skiftevis tekst/medie) ---------- */

.example {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 48px;
    align-items: center;
    padding: 38px 0;
}

.example.flip .example-media { order: -1; }

.example h3 {
    margin: 12px 0 0;
    font-size: clamp(22px, 2.6vw, 28px);
    font-weight: 720;
    letter-spacing: -0.015em;
    line-height: 1.2;
}

.example p { margin: 12px 0 0; color: var(--text-secondary); }

.example .example-list {
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 9px;
    color: var(--text-secondary);
    font-size: 15px;
}

.example .example-list li { display: flex; gap: 10px; align-items: baseline; }
.example .check { color: var(--success); font-weight: 700; flex-shrink: 0; }

/* ---------- Feature-kort (forside) ---------- */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: transform .18s, box-shadow .18s;
}

.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.feature-card .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: var(--accent-wash);
    color: var(--accent);
    margin-bottom: 14px;
}

.feature-card h3 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.feature-card p { margin: 8px 0 0; font-size: 14.5px; color: var(--text-secondary); }

/* ---------- Kodeblok (API-sektion) ---------- */

.code-block {
    background: var(--ink);
    color: var(--on-ink);
    border: 1px solid var(--ink-strong);
    border-radius: var(--radius-lg);
    padding: 20px 22px;
    overflow-x: auto;
    font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
    font-size: 13.5px;
    line-height: 1.65;
    box-shadow: var(--shadow-md);
}

.code-block .c-dim { color: var(--on-ink-muted); }
.code-block .c-str { color: #9ec49a; }
.code-block .c-key { color: #8db4ee; }

/* ---------- CTA-baand ---------- */

.cta-band {
    background: var(--ink);
    border-radius: var(--radius-xl);
    padding: 56px 32px;
    text-align: center;
    color: var(--on-ink);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.cta-band::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(480px 260px at 50% -10%, rgba(92, 147, 224, 0.25), transparent 70%);
    pointer-events: none;
}

.cta-band > * { position: relative; }

.cta-band h2 {
    margin: 0;
    font-size: clamp(24px, 3.2vw, 34px);
    font-weight: 720;
    letter-spacing: -0.02em;
}

.cta-band p { margin: 12px auto 0; max-width: 34em; color: var(--on-ink-muted); }

.cta-band .hero-actions { margin-top: 28px; }

.cta-band .btn-secondary-lg {
    color: var(--on-ink);
    background: transparent;
    border-color: var(--on-ink-border);
}

.cta-band .btn-secondary-lg:hover { border-color: rgba(244, 246, 251, 0.4); }

/* ---------- Funktionsside ---------- */

.page-hero { padding: 72px 0 8px; text-align: center; }

.page-hero h1 {
    margin: 14px 0 0;
    font-size: clamp(30px, 4.4vw, 46px);
    font-weight: 750;
    letter-spacing: -0.022em;
    line-height: 1.1;
}

.page-hero .lead {
    margin: 16px auto 0;
    max-width: 38em;
    color: var(--text-secondary);
    font-size: 17.5px;
}

.feature-groups {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.feature-group {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 26px 28px;
    box-shadow: var(--shadow-sm);
}

.feature-group h2 {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 0 0 14px;
    font-size: 18px;
    font-weight: 720;
    letter-spacing: -0.01em;
}

.feature-group .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--accent-wash);
    color: var(--accent);
    flex-shrink: 0;
}

.feature-group ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 9px;
    font-size: 15px;
    color: var(--text-secondary);
}

.feature-group li { display: flex; gap: 10px; align-items: baseline; }
.feature-group .check { color: var(--success); font-weight: 700; flex-shrink: 0; }

/* ---------- Prisside ---------- */

.price-card {
    max-width: 460px;
    margin: 48px auto 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    text-align: center;
}

.price-card-top {
    padding: 38px 32px 30px;
    background:
        radial-gradient(320px 180px at 50% -20%, var(--accent-wash), transparent 75%);
}

.price-card .plan-name {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
}

.price-amount {
    margin-top: 14px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
}

.price-amount .amount {
    font-size: 64px;
    font-weight: 780;
    letter-spacing: -0.035em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.price-amount .unit { font-size: 17px; color: var(--text-muted); font-weight: 550; }

.price-card .price-note { margin: 10px 0 0; font-size: 14px; color: var(--text-muted); }

.price-card-body { padding: 26px 34px 34px; border-top: 1px solid var(--hairline); }

.price-includes {
    margin: 0 0 26px;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
    text-align: left;
    font-size: 15px;
    color: var(--text-secondary);
}

.price-includes li { display: flex; gap: 11px; align-items: baseline; }
.price-includes .check { color: var(--success); font-weight: 700; flex-shrink: 0; }

.price-card .btn-primary-lg { width: 100%; }

.price-fallback {
    max-width: 460px;
    margin: 48px auto 0;
    text-align: center;
    color: var(--text-secondary);
}

.price-faq { margin-top: 64px; }

.price-faq h2 { font-size: 22px; font-weight: 720; letter-spacing: -0.015em; margin: 0 0 8px; }

.price-faq dl { margin: 0; }
.price-faq dt { font-weight: 650; margin-top: 22px; }
.price-faq dd { margin: 6px 0 0; color: var(--text-secondary); }

/* ---------- Footer ---------- */

.footer {
    margin-top: auto;
    border-top: 1px solid var(--hairline);
    background: var(--surface);
    padding: 44px 0 28px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.footer-brand { max-width: 320px; }
.footer-brand p { margin: 12px 0 0; font-size: 14px; color: var(--text-muted); }

.footer-links { display: flex; flex-direction: column; gap: 9px; }

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14.5px;
}

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

.footer-meta {
    margin-top: 30px;
    padding-top: 18px;
    border-top: 1px solid var(--hairline);
    font-size: 13px;
    color: var(--text-muted);
}

/* ---------- 404 ---------- */

.error-page { padding: 110px 0; text-align: center; }
.error-page h1 { font-size: clamp(30px, 4vw, 44px); margin: 0; letter-spacing: -0.02em; }
.error-page p { color: var(--text-secondary); margin: 14px 0 26px; }

/* ---------- Responsivt ---------- */

@media (max-width: 900px) {
    .example { grid-template-columns: 1fr; gap: 26px; }
    .example.flip .example-media { order: 0; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-groups { grid-template-columns: 1fr; }
    .tile-grid { grid-template-columns: 1fr 1fr; }
    .tile-grid .tile:last-child { grid-column: span 2; }
}

@media (max-width: 640px) {
    .topbar-inner { padding: 12px 16px; gap: 14px; }
    .topbar .nav { order: 3; flex-basis: 100%; }
    .topbar-right { margin-left: auto; }
    .hero { padding: 64px 0 48px; }
    .section { padding: 56px 0; }
    .feature-grid { grid-template-columns: 1fr; }
    .price-amount .amount { font-size: 52px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .feature-card, .btn-primary-lg, .btn-secondary-lg { transition: none; }
}
