:root {
  --navy: #0d1b3d;
  --navy-soft: #1a2c57;
  --blue: #3b82eb;
  --blue-soft: #a8d4fc;
  --purple: #8a94ff;
  --green: #2db872;
  --bg: #ffffff;
  --shell: #f5f7fb;
  --shell-deep: #eef2f9;
  --card: #ffffff;
  --text: #0d1b3d;
  --text-secondary: rgba(13, 27, 61, 0.80);
  --text-muted: rgba(13, 27, 61, 0.60);
  --border: rgba(13, 27, 61, 0.10);
  --border-strong: rgba(13, 27, 61, 0.16);
  --shadow: 0 10px 28px rgba(13, 27, 61, 0.07);
  --shadow-lg: 0 18px 44px rgba(13, 27, 61, 0.12);
  --radius: 18px;
  --page: 1120px;
  --text-col: 720px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 96px; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

/* Language: only the chosen language is shown; Danish without JavaScript. */
html[data-ui-lang="da"] [data-lang]:not([data-lang="da"]),
html[data-ui-lang="en"] [data-lang]:not([data-lang="en"]),
html[data-ui-lang="de"] [data-lang]:not([data-lang="de"]) { display: none !important; }

.container { max-width: var(--page); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: var(--text-col); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  margin-right: auto;
}
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }

.wordmark { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.02em; }
.wordmark .line {
  background: linear-gradient(90deg, var(--blue-soft), var(--blue), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 10px;
}
.main-nav a:hover { color: var(--navy); background: var(--shell); text-decoration: none; }
.main-nav a[aria-current="page"] { color: var(--navy); background: var(--shell-deep); }
.main-nav a.nav-cta { color: #fff; background: var(--navy); margin-left: 6px; }
.main-nav a.nav-cta:hover { background: var(--navy-soft); }

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--shell);
}
.lang-switch button {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
}
.lang-switch button[aria-pressed="true"] { color: #fff; background: var(--navy); }

/* Sections */
.section { padding: 88px 0; }
.section.tight { padding: 64px 0; }
.section.shell { background: var(--shell); }
.section.dark { background: var(--navy); color: #fff; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 14px;
}

h1, h2, h3 { color: var(--navy); letter-spacing: -0.02em; line-height: 1.2; }
.dark h2, .dark h3 { color: #fff; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); font-weight: 800; margin: 0 0 18px; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin: 0 0 14px; }
h3 { font-size: 1.08rem; font-weight: 700; margin: 0 0 8px; }

.lead { font-size: 1.15rem; color: var(--text-secondary); margin: 0 0 28px; max-width: 38rem; }
.dark .lead, .dark p { color: rgba(255, 255, 255, 0.82); }
.section-intro { max-width: 40rem; margin-bottom: 40px; }
.section-intro p { color: var(--text-secondary); margin: 0; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-soft); }
.btn-secondary { background: #fff; color: var(--navy); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--shell); }
.dark .btn-primary { background: #fff; color: var(--navy); }
.dark .btn-secondary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.35); }

/* Hero */
.hero { padding: 84px 0 72px; background: linear-gradient(180deg, var(--shell) 0%, #fff 100%); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }

/* Product preview card (built in HTML, no screenshots needed) */
.preview {
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow-lg);
}
.preview-meta {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 6px;
}
.preview-title { font-size: 1.05rem; margin: 0 0 12px; }
.bubble {
  max-width: 88%;
  margin: 0 0 8px;
  padding: 10px 14px;
  border-radius: 16px;
  background: var(--shell);
  border: 1px solid var(--border);
  font-size: 0.93rem;
}
.bubble b { display: block; font-size: 0.72rem; color: var(--text-muted); margin-bottom: 2px; }
.bubble.right { margin-left: auto; background: rgba(59, 130, 235, 0.09); }
.bubble .gloss { display: block; margin-top: 4px; font-size: 0.8rem; color: var(--text-muted); }
.preview-tags {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.preview-tags b { color: var(--navy); }

/* Grids and cards */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.card p { margin: 0; color: var(--text-secondary); font-size: 0.95rem; }
.card .num {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(59, 130, 235, 0.10);
  color: var(--blue);
  font-weight: 800;
  font-size: 0.92rem;
  margin-bottom: 14px;
}

.link-arrow { font-weight: 700; display: inline-block; margin-top: 18px; }

.stat-card { padding: 28px; }
.stat-card strong { display: block; font-size: 2.2rem; letter-spacing: -0.03em; color: var(--navy); line-height: 1.1; }
.stat-card p { margin: 10px 0 0; }
.stat-card .source { display: block; margin-top: 12px; font-size: 0.78rem; color: var(--text-muted); }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 30px; color: var(--text-secondary); }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--green); font-weight: 900; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.steps li { counter-increment: step; position: relative; padding-left: 52px; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
}
.steps li strong { display: block; color: var(--navy); }
.steps li span { color: var(--text-secondary); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }

.cta-band { text-align: center; }
.cta-band .lead { margin-left: auto; margin-right: auto; }
.cta-band .btn-row { justify-content: center; }

/* Page header for sub pages */
.page-head { padding: 72px 0 40px; background: linear-gradient(180deg, var(--shell) 0%, #fff 100%); }
.page-head .lead { margin-bottom: 0; }

/* Legal / long text */
.prose h2 { font-size: 1.35rem; margin-top: 40px; }
.prose h3 { margin-top: 28px; }
.prose p, .prose li { color: var(--text-secondary); }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose li { margin-bottom: 8px; }
.updated { color: var(--text-muted); font-size: 0.9rem; margin: 0; }

.contact-box {
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  padding: 36px;
  box-shadow: var(--shadow-lg);
}
.mail-big { font-size: 1.35rem; font-weight: 800; color: var(--navy); }

/* Footer */
.site-footer { background: var(--shell); border-top: 1px solid var(--border); padding: 56px 0 36px; font-size: 0.92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 {
  margin: 0 0 12px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--text-secondary); }
.footer-grid p { color: var(--text-muted); margin: 10px 0 0; max-width: 18rem; }
.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Mobile */
@media (max-width: 900px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 40px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .header-row { flex-wrap: wrap; gap: 8px 12px; padding: 10px 0; min-height: 0; }
  .main-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 2px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav a { white-space: nowrap; font-size: 0.84rem; padding: 7px 9px; }
  .main-nav a.nav-cta { margin-left: 0; }
  .section { padding: 64px 0; }
  .hero { padding: 56px 0 48px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .container { padding: 0 16px; }
  .contact-box { padding: 24px; }
}
