﻿/* XL Finans Support - same colours and fonts as the sales site xlfinans.dk (navy #0B2236, blue #0B6E99, green #147A37). */
:root {
    --brand: #0B6E99; --brand-2: #3C9CC4; --brand-dark: #08506F; --navy: #0B2236; --navy-2: #12324D; --cta: #147A37; --cta-dark: #0F6A2E;
    --ink: #0B2236; --muted: #4A5B6B; --soft: #5B6B7A; --line: #E3EAF0; --line-2: #D6E0E8;
    --bg: #F3F7FA; --card: #ffffff; --tint: #E3F1F7; --ok: #147A37; --warn-bg: #fff7e0; --warn: #7a5600;
    --err-bg: #fdecec; --err: #a12626;
    --radius: 18px; --shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(11,34,54,.04);
    --head: "Poppins", "Segoe UI", -apple-system, Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: "Inter", "Segoe UI", -apple-system, Roboto, Arial, sans-serif; color: var(--ink); background: #fff; font-size: 16px; line-height: 1.55; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4, h5 { line-height: 1.25; font-family: var(--head); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; width: 100%; }
.wrap.narrow { max-width: 820px; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }

/* Header */
.site-header { background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 700; font-size: 20px; letter-spacing: -.5px; color: var(--navy); }
.logo:hover { text-decoration: none; }
.logo svg { width: 30px; height: 30px; color: var(--brand); }
.logo span { font-family: "Inter", "Segoe UI", sans-serif; font-weight: 600; font-size: 13px; letter-spacing: 0; color: var(--brand); background: var(--tint); border-radius: 999px; padding: 3px 10px; }
.nav { display: flex; gap: 22px; margin-left: 8px; }
.nav a { color: #33475B; font-weight: 500; font-size: 15px; padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--ink); text-decoration: none; }
.nav a.on { color: var(--ink); font-weight: 600; border-bottom-color: var(--brand); }
.header-cta { margin-left: auto; display: flex; gap: 10px; }
.btn { display: inline-block; border-radius: 999px; padding: 10px 20px; font-family: var(--head); font-weight: 600; font-size: 15px; border: 1px solid #C9D5DF; background: #fff; color: var(--ink); }
.btn:hover { text-decoration: none; border-color: #8FA3B4; }
.btn.primary { background: var(--cta); border-color: var(--cta); color: #fff; }
.btn.primary:hover { background: var(--cta-dark); border-color: var(--cta-dark); }
/* "Gå til XL Finans" in the header is an outline button, as "Log ind" on the sales site. */
.header-cta .btn.primary { background: #fff; border-color: #C9D5DF; color: var(--ink); }
.header-cta .btn.primary:hover { background: #fff; border-color: #8FA3B4; }
.btn.big { padding: 14px 26px; font-size: 16px; }

/* Ask box */
.ask { background: #fff; border: 1px solid var(--line-2); border-radius: 999px; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 18px; max-width: 760px; }
.ask svg.spark { flex: none; width: 24px; height: 24px; color: var(--brand); }
.ask input { flex: 1; border: 0; outline: 0; font: inherit; font-size: 18px; color: var(--ink); padding: 12px 4px; min-width: 0; background: transparent; }
.ask button { background: var(--cta); color: #fff; border: 0; border-radius: 999px; padding: 12px 22px; font-family: var(--head); font-weight: 600; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.ask button:hover { background: var(--cta-dark); }
.ask:focus-within { box-shadow: 0 0 0 3px rgba(11,110,153,.25); }
.ask.small { border: 1px solid var(--line); padding: 6px 6px 6px 14px; max-width: 420px; width: 100%; }
.ask.small svg.spark { width: 20px; height: 20px; }
.ask.small input { font-size: 15px; padding: 8px 2px; }
.ask.small button { padding: 8px 12px; }

/* Hero */
.hero { background: var(--bg); border-bottom: 1px solid var(--line); color: var(--ink); padding: 64px 0 56px; }
.hero h1 { font-size: 48px; line-height: 1.1; margin: 0 0 14px; font-weight: 700; letter-spacing: -1.2px; }
.hero p.lead { font-size: 18px; color: var(--muted); margin: 0 0 28px; max-width: 700px; }
.hero .ask { box-shadow: 0 12px 32px rgba(11,34,54,.10); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; max-width: 1000px; }
.chip { background: #fff; border: 1px solid var(--line-2); color: #33475B; border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 500; }
.chip:hover { border-color: #8FA3B4; text-decoration: none; }
.hero .hint { font-size: 13px; color: var(--soft); margin-top: 14px; }

/* Front page */
section.block { padding: 56px 0 8px; }
.section-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 16px; gap: 12px; }
.section-head h2 { font-size: 24px; margin: 0; font-weight: 700; }
.section-head a { font-weight: 700; font-size: 15px; }
.cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 40px; position: relative; }
.cat { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; display: flex; gap: 16px; align-items: center; border: 1px solid transparent; color: var(--ink); transition: border-color .15s, transform .15s; }
.cat:hover { border-color: #8FA3B4; transform: translateY(-2px); text-decoration: none; }
.cat .ic { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--tint); color: var(--brand); display: grid; place-items: center; }
.cat .ic svg { width: 22px; height: 22px; }
.cat h3 { margin: 0 0 2px; font-size: 16px; font-weight: 600; }
.cat small { display: block; color: var(--soft); font-size: 13px; }
.two { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
.two.single { grid-template-columns: 1fr; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px 0; }
.list a { display: flex; align-items: center; gap: 14px; padding: 13px 22px; color: var(--ink); border-top: 1px solid var(--line); }
.list a:first-child { border-top: 0; }
.list a:hover { background: #F7FAFC; text-decoration: none; }
.list .t { flex: 1; min-width: 0; }
.list .t b { display: block; font-size: 15px; }
.list .t span { color: var(--soft); font-size: 13px; }
.list svg { width: 18px; height: 18px; color: var(--soft); flex: none; }
.video { display: flex; gap: 14px; padding: 13px 22px; border-top: 1px solid var(--line); align-items: center; color: var(--ink); }
.video:first-child { border-top: 0; }
.video:hover { background: #F7FAFC; text-decoration: none; }
.thumb { flex: none; width: 96px; height: 56px; border-radius: 8px; background: var(--navy); display: grid; place-items: center; color: #fff; }
.thumb svg { width: 20px; height: 20px; }
.video b { font-size: 15px; display: block; }
.video span { font-size: 13px; color: var(--soft); }
.contact { margin: 56px 0; background: var(--bg); border-radius: 24px; padding: 36px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.contact h3 { margin: 0 0 4px; font-size: 20px; }
.contact p { margin: 0; color: var(--muted); }
.contact .acts { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }

footer { background: var(--navy); color: #C3D1DD; font-size: 14px; margin-top: 64px; }
footer .wrap { padding-top: 48px; padding-bottom: 28px; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 28px; }
.foot-grid h4 { margin: 0 0 10px; font-size: 14px; font-weight: 600; color: #fff; }
.foot-grid p { margin: 12px 0 0; line-height: 1.6; }
.foot-grid a { display: block; padding: 6px 0; color: #C3D1DD; }
.foot-grid a:hover { color: #fff; text-decoration: none; }
footer .logo { display: flex; padding: 0; color: #fff; }
footer .logo svg { color: #fff; }
footer .logo span { background: rgba(255,255,255,.14); color: #fff; }
.foot-legal { display: flex; gap: 8px 24px; justify-content: space-between; flex-wrap: wrap; margin-top: 32px; padding-top: 18px; border-top: 1px solid #1F4664; font-size: 13px; }

/* Inner pages */
.crumbs { font-size: 14px; color: var(--soft); padding: 20px 0 0; }
.crumbs a { color: var(--muted); }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin: 14px 0 22px; }
.page-head h1 { font-size: 32px; margin: 0; font-weight: 700; }
.page-head p { margin: 4px 0 0; }
.cat-list .t span { display: block; margin-top: 2px; }
.empty-page { padding: 48px 0; max-width: 560px; }
.empty-page h1 { font-size: 28px; margin: 0 0 8px; }

/* Answer page */
.qbar { background: #fff; border-bottom: 1px solid var(--line); padding: 16px 0; }
.qbar .ask { border: 1px solid var(--line); max-width: none; }
.qbar .ask input { font-size: 16px; padding: 9px 4px; }
.qbar .ask button { padding: 9px 18px; }
.answer-grid { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 28px; padding: 32px 0 16px; align-items: start; }
.you { display: flex; justify-content: flex-end; margin: 0 0 14px; }
/* Newest exchange first; earlier ones below with a divider. */
.exchange + .exchange { border-top: 1px solid var(--line); padding-top: 22px; opacity: .85; }
.you div { background: var(--navy); color: #fff; border-radius: 16px 16px 4px 16px; padding: 12px 18px; max-width: 80%; font-weight: 700; overflow-wrap: anywhere; }
.ai { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 28px; margin-bottom: 26px; }
.ai-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: 6px; background: var(--tint); color: var(--brand-dark); border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 700; }
.badge svg { width: 14px; height: 14px; }
.ai-head .meta { color: var(--soft); font-size: 13px; }
.ai-body h4 { margin: 18px 0 6px; font-size: 16px; }
.ai-body p { margin: 0 0 10px; }
.ai-body p:last-child { margin-bottom: 0; }
.ai-body ol, .ai-body ul { margin: 0 0 10px; padding-left: 22px; }
.ai-body li { margin: 4px 0; }
.ai-body a { font-weight: 700; }
.ai-disc { margin: 12px 0 0; color: var(--soft); font-size: 13px; }
.cite { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 6px; background: var(--tint); color: var(--brand-dark); font-size: 12px; font-weight: 700; vertical-align: 1px; margin-left: 2px; }
.thinking { color: var(--muted); display: flex; align-items: center; gap: 10px; }
.dots span { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); margin-right: 4px; animation: bounce 1.2s infinite; }
.dots span:nth-child(2) { animation-delay: .15s; }
.dots span:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .dots span { animation: none; opacity: .6; } .cat { transition: none; } }
.sources { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.ai-body:empty + .sources { margin-top: 0; border-top: 0; padding-top: 0; }
.sources h5 { margin: 0 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .6px; color: var(--soft); }
.src { display: grid; gap: 10px; }
.src a { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; color: var(--ink); font-size: 14px; display: flex; gap: 12px; align-items: flex-start; }
.src a:hover { border-color: #8FA3B4; text-decoration: none; background: #F7FAFC; }
.src .n { flex: none; min-width: 22px; height: 22px; border-radius: 6px; background: var(--tint); color: var(--brand-dark); font-weight: 700; font-size: 12px; display: grid; place-items: center; }
.src b { display: block; font-size: 15px; }
.src small { display: block; color: var(--soft); }
.src .snip { display: block; color: var(--muted); margin-top: 4px; }
.feedback { display: flex; align-items: center; gap: 10px; margin-top: 16px; color: var(--muted); font-size: 14px; flex-wrap: wrap; }
.feedback button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 12px; display: flex; align-items: center; gap: 6px; color: var(--ink); }
.feedback button svg { width: 15px; height: 15px; }
.feedback button.sel { background: var(--tint); border-color: #8FA3B4; color: var(--brand-dark); }
.feedback button:disabled { cursor: default; }
.feedback .disc { margin-left: auto; color: var(--soft); font-size: 13px; }
.side .box { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 18px; }
.side h4 { margin: 0 0 10px; font-size: 15px; }
.side .rel a { display: block; padding: 9px 0; border-top: 1px solid var(--line); color: var(--ink); font-size: 15px; }
.side .rel a:first-of-type { border-top: 0; }
.side .rel a small { display: block; color: var(--soft); font-size: 12px; }
.side .app { background: var(--navy); color: #fff; }
.side .app p { color: #C3D1DD; font-size: 14px; margin: 0 0 12px; }
.side .app code { background: rgba(255,255,255,.14); border-radius: 6px; padding: 2px 6px; font-size: 13px; font-family: inherit; }
.side .human p, .ask-article p { color: var(--muted); font-size: 14px; margin: 0 0 12px; }
.ask-article .ask { border: 1px solid var(--line); padding: 6px 6px 6px 14px; }
.ask-article .ask input { font-size: 15px; padding: 8px 2px; }
.ask-article .ask button { padding: 8px 12px; font-size: 14px; }
.error-box { background: var(--err-bg); color: var(--err); border-radius: 10px; padding: 12px 16px; }

/* Article page */
.article-grid { display: grid; grid-template-columns: 220px minmax(0,1fr) 260px; gap: 32px; padding: 20px 0 16px; align-items: start; }
.toc { position: sticky; top: 92px; font-size: 14px; }
.toc h5 { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: var(--soft); }
.toc a { display: block; color: var(--muted); padding: 5px 0 5px 12px; border-left: 2px solid var(--line); }
.toc a:hover { color: var(--ink); text-decoration: none; }
.toc a.on { color: var(--brand-dark); border-left-color: var(--brand); font-weight: 700; }
.article-grid.no-toc { grid-template-columns: minmax(0,1fr) 260px; }
article { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 36px 40px; min-width: 0; }
article .cat-tag { font-size: 13px; font-weight: 700; color: var(--brand-dark); }
article h1 { font-size: 32px; margin: 4px 0 6px; font-weight: 700; letter-spacing: -.3px; }
article .ameta { color: var(--soft); font-size: 14px; margin-bottom: 22px; }
.video-frame { margin: 0 0 24px; border-radius: 12px; overflow: hidden; background: #000; }
.video-frame video { display: block; width: 100%; height: auto; max-height: 70vh; }

/* Article HTML from Help_Item (old help site classes) */
.article-body { overflow-wrap: break-word; }
.article-body p:empty { display: none; }
.article-body p, .article-body .HelpItem_P { margin: 0 0 12px; }
.article-body .HelpItem_H1 { font-size: 24px; font-weight: 700; margin: 28px 0 8px; }
.article-body .HelpItem_H2, .article-body h2 { font-size: 21px; font-weight: 700; margin: 30px 0 8px; scroll-margin-top: 88px; }
.article-body .HelpItem_H3, .article-body h3 { font-size: 17px; font-weight: 700; margin: 20px 0 6px; scroll-margin-top: 88px; }
.article-body ul, .article-body ol { margin: 0 0 12px; padding-left: 22px; }
.article-body li { margin: 4px 0; }
.article-body img { max-width: 100%; height: auto; border-radius: 8px; }
.article-body table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 6px 0 16px; }
.article-body th { text-align: left; background: #F3F7FA; color: var(--muted); font-weight: 700; border-bottom: 1px solid var(--line); padding: 9px 12px; }
.article-body td { border-bottom: 1px solid var(--line); padding: 9px 12px; vertical-align: top; }
.article-body .alert, .article-body .alert-warning { background: var(--warn-bg); color: var(--warn); border-radius: 10px; padding: 12px 16px; margin: 0 0 14px; }
.helpful { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.helpful .feedback { margin: 0; }
.feedback-comment { flex-basis: 100%; display: grid; gap: 8px; }
.feedback-comment label { font-size: 14px; color: var(--muted); }
.feedback-comment textarea { font: inherit; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; resize: vertical; }
.feedback-comment .btn { justify-self: start; }
.feedback-thanks { color: var(--ok); font-weight: 700; font-size: 14px; }

/* Videos */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.video-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; color: var(--ink); display: flex; flex-direction: column; gap: 4px; border: 1px solid transparent; }
.video-card:hover { border-color: #8FA3B4; text-decoration: none; }
.thumb.big { width: 100%; height: 128px; margin-bottom: 8px; }
.thumb.big svg { width: 32px; height: 32px; }
.video-card span { color: var(--soft); font-size: 13px; }

/* Contact form */
.form-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px 36px; margin: 16px 0 0; }
.form-card h1 { font-size: 30px; margin: 0 0 4px; font-weight: 700; }
.form-card > p { margin: 0 0 20px; }
.form-card.done p { margin-bottom: 20px; }
.contact-form { display: grid; gap: 16px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: 14px; }
.field input, .field textarea { font: inherit; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; color: var(--ink); background: #fff; width: 100%; }
.field input:focus, .field textarea:focus, .feedback-comment textarea:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(11,110,153,.2); }
.field textarea { resize: vertical; }
.contact-form .btn.primary { justify-self: start; }
.form-error { background: var(--err-bg); color: var(--err); border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; }
.from-question { background: var(--tint); border-radius: 10px; padding: 12px 16px; margin-bottom: 18px; font-size: 15px; }
.from-question div { margin-top: 4px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Medium screens: drop the table of contents so the article keeps a useful width. */
@media (max-width: 1200px) {
    .article-grid { grid-template-columns: minmax(0,1fr) 260px; }
    .toc { display: none; }
}
@media (max-width: 980px) {
    .two, .answer-grid { grid-template-columns: 1fr; }
    .article-grid, .article-grid.no-toc { grid-template-columns: minmax(0,1fr); }
    .toc { display: none; }
}
@media (max-width: 640px) {
    .wrap { padding: 0 16px; }
    .site-header .wrap { gap: 12px; }
    .nav { display: none; }
    .header-cta .btn { padding: 7px 12px; font-size: 14px; }
    .hero { padding: 36px 0 40px; }
    .hero h1 { font-size: 32px; }
    .hero p.lead { font-size: 16px; }
    .ask input { font-size: 16px; }
    .ask button .lbl { display: none; }
    .ask button { padding: 12px 14px; }
    article { padding: 24px 20px; }
    .ai { padding: 20px; }
    .form-card { padding: 24px 20px; }
    .row2 { grid-template-columns: 1fr; }
    .feedback .disc { margin-left: 0; flex-basis: 100%; }
    .page-head h1 { font-size: 26px; }
}

/* Product switch (Alle / Windows / Web) - Help_Item.Platform, Update_4649. With Alle the titles get (Web) / (Windows). */
.product-switch { display: inline-flex; gap: 2px; padding: 3px; background: var(--bg); border: 1px solid var(--line-2); border-radius: 999px; margin-left: auto; }
.product-switch a { padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: #33475B; }
.product-switch a:hover { color: var(--ink); text-decoration: none; }
.product-switch a.on { background: var(--navy); color: #fff; }
.product-switch a.on:hover { color: #fff; }
.product-switch + .header-cta { margin-left: 0; }
@media (max-width: 760px) { .product-switch a { padding: 4px 8px; font-size: 13px; } }
