﻿/* Samtykke.net-designsprog (som WebsiteService/Admin og "SamtykkeNet Redesign" – Kunde-sider) */
/* Skrifterne ligger lokalt, så besøgendes IP-adresser ikke sendes til Google Fonts.
   Variable fonte: én fil pr. tegnsæt dækker alle vægte. */
@font-face {
    font-family: Figtree;
    font-style: normal;
    font-weight: 300 900;
    font-display: swap;
    src: url(../fonts/figtree-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: Figtree;
    font-style: normal;
    font-weight: 300 900;
    font-display: swap;
    src: url(../fonts/figtree-latin-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: Inter;
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url(../fonts/inter-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: Inter;
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url(../fonts/inter-latin-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --petrol: #011B1F;
    --petrol-2: #0E3036;
    --teal: #007C8E;
    --teal-dark: #005E6C;
    --turkis: #00A1B7;
    --cyan: #00E1EA;
    --tint: #E6F7F9;
    --ground: #F3F6F7;
    --border: #DCE3E6;
    --border-strong: #B9C6CA;
    --ink: #0B2A30;
    --muted: #5A6B70;
    --danger: #B42318;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
    font-family: Inter, system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--ink);
    background: var(--ground);
}

a { color: var(--teal); }
a:hover { color: var(--teal-dark); }

h1, h2 { font-family: Figtree, system-ui, sans-serif; color: var(--petrol); margin: 0; }

p { margin: 0; }

.note { font-size: 14px; color: var(--muted); }

/* ---------- Layout: mørk introspalte + indhold ---------- */
.shell {
    display: grid;
    grid-template-columns: 440px minmax(0, 1fr);
    min-height: 100vh;
}

.intro {
    background: var(--petrol);
    color: #FFFFFF;
    padding: 48px 48px 40px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
}

/* Signaturstriben */
.intro::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--cyan), var(--turkis));
}

.intro::after {
    content: "";
    position: absolute;
    right: -140px;
    bottom: -140px;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    border: 56px solid rgba(0, 225, 234, .10);
    pointer-events: none;
}

.brand { display: flex; flex-direction: column; gap: 2px; }

.brand-name {
    font-family: Figtree, system-ui, sans-serif;
    font-weight: 900;
    font-size: 26px;
    letter-spacing: .08em;
    text-transform: uppercase;
    line-height: 1.1;
}

.brand-sub {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #9FB7BC;
}

.intro-text { display: flex; flex-direction: column; gap: 14px; }

.intro h1 {
    color: #FFFFFF;
    font-size: 40px;
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.intro-text p { font-size: 16px; line-height: 1.6; color: #C9D8DB; }

.trust {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
    font-size: 15px;
    color: #E4EEF0;
}

.trust li { display: flex; gap: 14px; align-items: flex-start; }
.trust svg { flex-shrink: 0; margin-top: 1px; color: var(--cyan); }

.credit {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.credit-aside { margin-top: auto; color: #9FB7BC; }
.credit-aside strong { color: #7FE9EF; }
.credit-foot { display: none; color: var(--muted); justify-content: center; padding: 8px 0 4px; }
.credit-foot strong { color: var(--teal); }

.content {
    padding: 72px 96px 48px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 880px;
    min-width: 0;
}

/* ---------- Kort ---------- */
.card {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px 36px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 1px 2px rgba(1, 27, 31, .04);
}

.card h2 { font-size: 24px; font-weight: 700; }

.eyebrow {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 6px;
}

.consent-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.consent-text {
    font-size: 17px;
    line-height: 1.7;
    overflow-wrap: anywhere;
    margin-top: 4px;
}

.consent-text p { margin: 0 0 12px; }
.consent-text p:last-child { margin-bottom: 0; }

.consent-details > summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--petrol);
}

.consent-details[open] > summary { margin-bottom: 8px; }

/* ---------- Status-chips ---------- */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.chip .dot { width: 7px; height: 7px; border-radius: 50%; }
.chip-ok { background: #E3F5EC; color: #146C43; }
.chip-ok .dot { background: #1E9E5E; }
.chip-muted { background: #EEF1F2; color: #44555A; }
.chip-muted .dot { background: #8A9AA0; }

/* ---------- Knapper ---------- */
.btn {
    font-family: Inter, system-ui, sans-serif;
    font-size: 16px;
    font-weight: 700;
    height: 56px;
    padding: 0 28px;
    border-radius: 12px;
    border: 1px solid transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary { background: var(--teal); border-color: var(--teal); color: #FFFFFF; }
.btn-primary:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
.btn:focus-visible { outline: 3px solid #BFEFF4; outline-offset: 2px; }

.withdraw {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* ---------- Kvittering ---------- */
.receipt {
    display: flex;
    align-items: center;
    gap: 20px;
}

.receipt-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cyan), var(--turkis));
    color: var(--petrol);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 161, 183, .35);
    flex-shrink: 0;
}

.receipt h2 { font-size: 26px; font-weight: 900; letter-spacing: -0.01em; }

.kv { margin: 0; }

.kv > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-top: 1px solid #E7ECEE;
    font-size: 15px;
}

.kv > div:first-child { border-top: 0; padding-top: 0; }
.kv > div:last-child { padding-bottom: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.kv code { font-family: Consolas, 'Courier New', monospace; font-size: 13px; }

/* ---------- Beskeder ---------- */
.msg-box {
    border-radius: 14px;
    padding: 16px 20px;
    border: 1px solid;
}

.msg-box.is-error { background: #FDECEA; border-color: #F1B8B2; color: #7A1712; }
.msg-box .msg-title { display: block; font-family: Figtree, system-ui, sans-serif; font-size: 17px; margin-bottom: 4px; }

/* ---------- Mobil ---------- */
@media (max-width: 960px) {
    .shell { display: block; }

    .intro {
        position: relative;
        height: auto;
        padding: 32px 20px 28px;
        gap: 24px;
    }

    .intro::after { display: none; }
    .intro h1 { font-size: 28px; line-height: 1.15; }
    .intro-text p { font-size: 15px; }
    .brand-name { font-size: 20px; }
    .trust, .credit-aside { display: none; }
    .credit-foot { display: flex; }

    .content { padding: 24px 20px 24px; gap: 20px; }
    .card { padding: 20px; border-radius: 16px; }
    .card h2 { font-size: 19px; }
    .consent-text { font-size: 15px; line-height: 1.6; }
    .consent-head { flex-direction: column-reverse; gap: 8px; }
    .withdraw .btn { width: 100%; }
    .receipt h2 { font-size: 22px; }
    .receipt-icon { width: 60px; height: 60px; }
}
