/* Kostlog – fælles stil for forside, login, juridiske sider og app-skallen */
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
	--nn-bg: #F4F3EF;
	--nn-surface: #FFFFFF;
	--nn-surface-2: #F7F6F3;
	--nn-line: #E2E0DB;
	--nn-text: #15171A;
	--nn-muted: #5B5F66;
	--nn-accent: #1E7A50;
	--nn-accent-dark: #165C3C;
	--nn-accent-soft: #DDF1E6;
	--nn-radius: 14px;
	--kl-max: 1080px;
	color-scheme: light;
}
html[data-theme="dark"] {
	--nn-bg: #111316;
	--nn-surface: #1A1D21;
	--nn-surface-2: #212429;
	--nn-line: #2E3238;
	--nn-text: #EDEEF0;
	--nn-muted: #A2A7AF;
	--nn-accent: #3DA874;
	--nn-accent-dark: #8FD8B0;
	--nn-accent-soft: #19362A;
	color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--nn-bg); color: var(--nn-text); font: 16px/1.55 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--nn-accent); }
img, svg { max-width: 100%; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--nn-accent) 55%, transparent); outline-offset: 2px; border-radius: 6px; }

.kl-wrap { width: 100%; max-width: var(--kl-max); margin: 0 auto; padding: 0 20px; }
.kl-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 0; border-radius: 12px; background: var(--nn-accent); color: #fff; font: 600 16px/1 "Inter", system-ui, sans-serif; text-decoration: none; cursor: pointer; }
html[data-theme="dark"] .kl-btn { color: #0B1A12; }
.kl-btn:hover { background: var(--nn-accent-dark); }
html[data-theme="dark"] .kl-btn:hover { background: #57BF8B; }
.kl-btn-sm { min-height: 38px; padding: 0 16px; font-size: 15px; }
.kl-btn-ghost { background: transparent; color: var(--nn-text); border: 1.5px solid var(--nn-line); }
.kl-btn-ghost:hover { background: var(--nn-surface); }
html[data-theme="dark"] .kl-btn-ghost { color: var(--nn-text); }
.kl-btn-wide { width: 100%; }

/* Top og bund */
.kl-top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--nn-bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid color-mix(in srgb, var(--nn-line) 60%, transparent); }
.kl-top-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.kl-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--nn-text); font-weight: 800; font-size: 20px; letter-spacing: -.02em; text-decoration: none; }
.kl-topnav { display: flex; align-items: center; gap: 22px; }
.kl-topnav a:not(.kl-btn) { color: var(--nn-text); text-decoration: none; font-weight: 500; font-size: 15px; }
.kl-topnav a:not(.kl-btn):hover { color: var(--nn-accent); }
@media (max-width: 620px) { .kl-topnav a:not(.kl-btn) { display: none; } }
.kl-foot { margin-top: 72px; padding: 32px 0 calc(32px + env(safe-area-inset-bottom)); border-top: 1px solid var(--nn-line); background: var(--nn-surface); }
.kl-foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.kl-foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.kl-foot nav a { color: var(--nn-text); font-size: 15px; text-decoration: none; }
.kl-foot nav a:hover { color: var(--nn-accent); text-decoration: underline; }
.kl-foot-small { margin: 18px 0 0; color: var(--nn-muted); font-size: 13px; }
.kl-foot-small a { color: inherit; }

/* Forside */
.kl-hero { padding: 64px 0 40px; }
.kl-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.kl-eyebrow { display: inline-block; margin-bottom: 16px; padding: 6px 12px; border-radius: 999px; background: var(--nn-accent-soft); color: var(--nn-accent-dark); font-size: 14px; font-weight: 600; }
.kl-hero h1 { font-size: clamp(36px, 6vw, 58px); font-weight: 800; }
.kl-lead { font-size: 19px; color: var(--nn-muted); max-width: 34em; margin: 0 0 28px; }
.kl-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.kl-cta-note { color: var(--nn-muted); font-size: 14px; margin-top: 14px; }
.kl-phone { justify-self: center; width: min(320px, 100%); aspect-ratio: 9 / 18; border-radius: 36px; padding: 14px; background: #0E1013; box-shadow: 0 30px 70px rgba(20, 40, 30, .25); }
.kl-phone-screen { height: 100%; border-radius: 24px; background: var(--nn-bg); overflow: hidden; display: flex; flex-direction: column; gap: 10px; padding: 18px 14px; }
.kl-ph-title { font-weight: 800; font-size: 20px; }
.kl-ph-card { background: var(--nn-surface); border-radius: 14px; padding: 14px; }
.kl-ph-ring { display: flex; align-items: center; gap: 14px; }
.kl-ph-ring svg { flex: 0 0 auto; }
.kl-ph-ring b { display: block; font-size: 26px; line-height: 1; }
.kl-ph-ring small, .kl-ph-row small { color: var(--nn-muted); font-size: 12px; }
.kl-ph-bars { display: grid; gap: 8px; margin-top: 12px; }
.kl-ph-bar { font-size: 12px; }
.kl-ph-bar i { display: block; height: 6px; margin-top: 3px; border-radius: 3px; background: var(--nn-line); position: relative; overflow: hidden; }
.kl-ph-bar i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--c, var(--nn-accent)); border-radius: 3px; }
.kl-ph-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-top: 1px solid var(--nn-line); font-size: 14px; }
.kl-ph-row:first-of-type { border-top: 0; }

.kl-section { padding: 56px 0; }
.kl-section h2 { font-size: clamp(28px, 4vw, 38px); font-weight: 800; }
.kl-section > .kl-wrap > p.kl-lead { margin-bottom: 32px; }
.kl-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.kl-feature { background: var(--nn-surface); border: 1px solid var(--nn-line); border-radius: var(--nn-radius); padding: 22px; }
.kl-feature h3 { font-size: 18px; margin: 12px 0 6px; }
.kl-feature p { margin: 0; color: var(--nn-muted); font-size: 15px; }
.kl-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--nn-accent-soft); color: var(--nn-accent-dark); }

.kl-prices { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 820px; }
.kl-price { background: var(--nn-surface); border: 1px solid var(--nn-line); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; }
.kl-price.is-plus { border: 2px solid var(--nn-accent); }
.kl-price h3 { font-size: 22px; margin: 0; }
.kl-price-amt { font-size: 34px; font-weight: 800; margin: 10px 0 2px; letter-spacing: -.02em; }
.kl-price-amt small { font-size: 15px; font-weight: 500; color: var(--nn-muted); }
.kl-price-sub { color: var(--nn-muted); font-size: 14px; margin: 0 0 16px; }
.kl-check { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 9px; flex: 1; }
.kl-check li { position: relative; padding-left: 28px; font-size: 15px; }
.kl-check li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--nn-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat; }

.kl-faq { max-width: 760px; }
.kl-faq details { background: var(--nn-surface); border: 1px solid var(--nn-line); border-radius: 12px; margin-bottom: 10px; }
.kl-faq summary { cursor: pointer; padding: 16px 18px; font-weight: 600; list-style: none; position: relative; padding-right: 44px; }
.kl-faq summary::-webkit-details-marker { display: none; }
.kl-faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--nn-muted); }
.kl-faq details[open] summary::after { content: "–"; }
.kl-faq details p { margin: 0; padding: 0 18px 16px; color: var(--nn-muted); }

@media (max-width: 860px) {
	.kl-hero { padding-top: 36px; }
	.kl-hero-grid { grid-template-columns: 1fr; gap: 36px; }
	.kl-features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
	.kl-features, .kl-prices { grid-template-columns: 1fr; }
	.kl-section { padding: 40px 0; }
	.kl-lead { font-size: 17px; }
}

/* Juridiske sider */
.kl-legal { max-width: 760px; padding-top: 40px; }
.kl-legal h1 { font-size: clamp(30px, 5vw, 42px); font-weight: 800; }
.kl-legal h2 { font-size: 21px; margin-top: 2em; }
.kl-legal p, .kl-legal li { color: var(--nn-text); }
.kl-legal .kl-meta { color: var(--nn-muted); font-size: 14px; }
.kl-legal table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; }
.kl-legal th, .kl-legal td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--nn-line); }
.kl-legal th { font-weight: 600; }
.kl-box { background: var(--nn-surface); border: 1px solid var(--nn-line); border-radius: var(--nn-radius); padding: 20px 22px; margin: 20px 0; }
.kl-box ol { margin: 8px 0 0; padding-left: 22px; }
.kl-box li { margin-bottom: 6px; }
@media (max-width: 560px) { .kl-legal table, .kl-legal tbody, .kl-legal tr, .kl-legal td, .kl-legal th { display: block; } .kl-legal thead { display: none; } .kl-legal td { border: 0; padding: 2px 0; } .kl-legal tr { padding: 10px 0; border-bottom: 1px solid var(--nn-line); } }

/* Login og opret */
.kl-auth-body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.kl-auth { flex: 1; display: flex; align-items: center; justify-content: center; padding: calc(24px + env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom)); }
.kl-auth-card { width: 100%; max-width: 420px; background: var(--nn-surface); border: 1px solid var(--nn-line); border-radius: 20px; padding: 28px 24px; box-shadow: 0 10px 40px rgba(0, 0, 0, .05); }
.kl-auth-logo { text-decoration: none; color: var(--nn-text); display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 22px; text-align: center; }
.kl-auth-logo b { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.kl-auth h1 { font-size: 22px; text-align: center; margin-bottom: 18px; }
.kl-field { margin-bottom: 14px; }
.kl-field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.kl-input { width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--nn-line); border-radius: 12px; background: var(--nn-surface); color: var(--nn-text); font: 16px "Inter", system-ui, sans-serif; }
.kl-input:focus { outline: none; border-color: var(--nn-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--nn-accent) 22%, transparent); }
.kl-checkline { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin: 4px 0 18px; }
.kl-checkline input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--nn-accent); flex: 0 0 auto; }
.kl-alert { padding: 12px 14px; border-radius: 12px; margin-bottom: 16px; font-size: 15px; }
.kl-alert-err { background: #FDF0EF; color: #8C1D18; border: 1px solid #F1B8B3; }
.kl-alert-ok { background: var(--nn-accent-soft); color: var(--nn-accent-dark); border: 1px solid color-mix(in srgb, var(--nn-accent) 30%, transparent); }
html[data-theme="dark"] .kl-alert-err { background: #3A1F1D; color: #F6C2BD; border-color: #7A3A35; }
.kl-auth-links { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 18px; font-size: 15px; }
.kl-auth-legal { text-align: center; font-size: 13px; color: var(--nn-muted); margin-top: 18px; }
.kl-auth-legal a { color: inherit; }

/* App-skal */
.kl-app-body { min-height: 100vh; min-height: 100dvh; }
.kl-app-body #jbk { min-height: 100vh; }
.kl-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 70vh; color: var(--nn-muted); }
@media (max-width: 860px) { .kl-phone { aspect-ratio: auto; width: min(340px, 100%); } }
