/* =========================================================
   DETECTsystem – site.css
   Ét fælles stylesheet for hele sitet. Ingen eksterne kilder.
   ========================================================= */

/* ---------- Fonts (lokale, subset til latin) ---------- */
@font-face { font-family: "Space Grotesk"; src: url("../fonts/space-grotesk-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("../fonts/space-grotesk-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("../fonts/space-grotesk-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Noto Sans"; src: url("../fonts/noto-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Noto Sans"; src: url("../fonts/noto-sans-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Noto Sans"; src: url("../fonts/noto-sans-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Noto Sans"; src: url("../fonts/noto-sans-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Noto Sans"; src: url("../fonts/noto-sans-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Noto Sans Mono"; src: url("../fonts/noto-sans-mono.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url("../fonts/space-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url("../fonts/space-mono-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Alumni Sans"; src: url("../fonts/alumni-sans-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }

/* ---------- Design tokens ---------- */
:root {
  --ink: #181922;          /* mørk (tekst + mørke flader) */
  --paper: #f7f7fa;        /* lys baggrund */
  --white: #ffffff;
  --red: #ff3042;          /* brand-rød */
  --red-dark: #e0353c;
  --grey: #999999;
  --ink-75: rgba(24, 25, 34, .75);
  --paper-60: rgba(247, 247, 250, .6);

  --f-head: "Space Grotesk", system-ui, sans-serif;
  --f-body: "Noto Sans", system-ui, sans-serif;
  --f-mono: "Space Mono", ui-monospace, monospace;
  --f-btn:  "Noto Sans Mono", ui-monospace, monospace;
  --f-logo: "Alumni Sans", "Arial Narrow", sans-serif;

  --radius: 16px;
  --wrap: 1200px;
  --nav-h: 80px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 16px/1.5 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.accent { color: var(--red); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
main { padding-top: var(--nav-h); }

/* ---------- Typografi ---------- */
.h1 { font: 700 clamp(36px, 4.25vw, 61px)/1.1 var(--f-head); letter-spacing: -.02em; }
.h2 { font: 600 clamp(26px, 2.75vw, 39px)/1.15 var(--f-head); letter-spacing: -.02em; }
.h3 { font: 500 clamp(22px, 1.75vw, 25px)/1.22 var(--f-head); }
.h6 { font: 400 20px/1.3 var(--f-body); }
.lead { font: 500 20px/1.3 var(--f-body); }
.mono { font-family: var(--f-mono); }

/* ---------- Knapper ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 12px;
  background: var(--red); color: var(--ink);
  font: 500 16px/1 var(--f-btn);
  border: 0; border-radius: 4px; cursor: pointer;
  transition: background-color .2s, color .2s;
}
.btn:hover { background: #ed182a; color: var(--paper); }

/* ---------- Logo (DETECT SYSTEM) ---------- */
.ds-logo { display: inline-flex; align-items: center; gap: 4px; font-family: var(--f-logo); font-weight: 800; line-height: 1; color: var(--ink); }
.ds-logo svg { width: 32px; height: 31px; color: var(--ink); --eye-inner: var(--white); }
.ds-logo b { font-size: 40px; font-weight: 800; }
.ds-logo small { font-size: 21px; align-self: flex-end; padding-bottom: 2px; }
.ds-logo--light, .ds-logo--light svg { color: var(--paper); --eye-inner: var(--ink); }

/* ---------- Header / navigation ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; justify-content: center; pointer-events: none; }
.nav {
  pointer-events: auto;
  width: 100%; max-width: var(--wrap); height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 12px 16px 12px 24px;
  background: var(--ink); color: var(--paper);
  border-radius: 0 0 var(--radius) var(--radius);
}
.nav__brand { display: flex; align-items: center; gap: 8px; font: 800 40px/1 var(--f-logo); color: var(--paper); }
.nav__brand svg { width: 40px; height: 40px; }
.nav__links { display: flex; gap: 8px; }
.nav__links a {
  position: relative; display: inline-block; font: 400 16px/1.2 var(--f-mono); padding: 8px 8px;
  --c: var(--red);
  background:
    linear-gradient(var(--c), var(--c)) top left / 12px 1.5px, linear-gradient(var(--c), var(--c)) top left / 1.5px 12px,
    linear-gradient(var(--c), var(--c)) top right / 12px 1.5px, linear-gradient(var(--c), var(--c)) top right / 1.5px 12px,
    linear-gradient(var(--c), var(--c)) bottom left / 12px 1.5px, linear-gradient(var(--c), var(--c)) bottom left / 1.5px 12px,
    linear-gradient(var(--c), var(--c)) bottom right / 12px 1.5px, linear-gradient(var(--c), var(--c)) bottom right / 1.5px 12px;
  background-repeat: no-repeat;
  background-size: 0 0;
}
/* Røde hjørne-klammer ved hover/fokus (som i originalen) */
.nav__links a:hover, .nav__links a:focus-visible {
  outline: none;
  background-size: 12px 1.5px, 1.5px 12px, 12px 1.5px, 1.5px 12px, 12px 1.5px, 1.5px 12px, 12px 1.5px, 1.5px 12px;
}
.nav__actions { display: flex; align-items: center; gap: 16px; }
.nav__toggle { display: none; width: 40px; height: 40px; background: none; border: 0; color: var(--paper); cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; height: 2px; background: currentColor; margin: 5px 0; transition: transform .2s, opacity .2s; }

@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.nav .dots--nav { display: none; position: relative; flex: 1; height: 28px; width: auto; max-width: 220px; margin: 0 8px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent); mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent); }
@media (max-width: 960px) {
  :root { --nav-h: 64px; }
  .nav { border-radius: 0; padding: 12px 16px; }
  .nav__brand { font-size: 32px; }
  .nav__brand svg { width: 34px; height: 34px; }
  .nav__toggle { display: block; }
  .nav__links, .nav__actions { display: none; }
  .nav.is-open { height: auto; flex-wrap: wrap; padding-bottom: 24px; }
  .nav.is-open .nav__links { display: flex; flex-direction: column; align-items: center; width: 100%; order: 3; gap: 8px; padding: 24px 0 16px; }
  .nav.is-open .nav__links li { animation: menu-in .35s ease both; }
  .nav.is-open .nav__links li:nth-child(2) { animation-delay: .04s; }
  .nav.is-open .nav__links li:nth-child(3) { animation-delay: .08s; }
  .nav.is-open .nav__links li:nth-child(4) { animation-delay: .12s; }
  .nav.is-open .nav__links li:nth-child(5) { animation-delay: .16s; }
  .nav.is-open .nav__actions { animation: menu-in .35s .2s ease both; }
  .nav.is-open .nav__links a { font-size: 16px; padding: 8px 10px; }
  .nav .dots--nav { display: block; }
  .nav.is-open .dots--nav { visibility: hidden; }
  .nav.is-open .nav__actions { display: flex; width: 100%; order: 4; }
  .nav.is-open .nav__actions { flex-direction: column; gap: 12px; }
  .nav.is-open .nav__actions .btn { width: 100%; }
  .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Dekorative prikker ---------- */
.dots {
  position: absolute; width: 192px; height: 298px; pointer-events: none;
  --dot: var(--ink); --dot-red: var(--red);
  /* Samme fade som originalen */
  -webkit-mask-image: radial-gradient(75% 50% at 20% 50%, #000 0%, transparent 100%);
          mask-image: radial-gradient(75% 50% at 20% 50%, #000 0%, transparent 100%);
}
.dots i { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--dot); opacity: 0; transition: opacity .18s linear; }
.dots i.is-red { background: var(--dot-red); }
.dots i.is-on { opacity: 1; }
.fds-box .dots, .nav .dots { --dot: var(--paper); }

/* ---------- Footer ---------- */
.site-footer { padding: 0 80px 24px; margin-top: 60px; }
.footer {
  max-width: 1280px; margin-inline: auto;
  display: grid; grid-template-columns: 1fr auto; gap: 48px;
  padding: 80px 80px 80px 20px;
  background: var(--ink); color: var(--paper);
  border-radius: var(--radius);
}
.footer__brand { display: flex; flex-direction: column; gap: 24px; }
.footer__social { display: flex; gap: 20px; color: var(--paper); }
.footer__social a { display: block; width: 24px; height: 24px; opacity: .5; transition: opacity .2s; }
.footer__social a:hover { opacity: .3; }
.footer__cols { display: flex; gap: 64px; }
.footer__col h2 { font: 400 16px/1.5 var(--f-body); color: #faf4ff; margin-bottom: 16px; }
.footer__col li + li { margin-top: 14px; }
.footer__col a { font: 400 14px/1.3 var(--f-body); letter-spacing: -.2px; color: var(--grey); transition: color .2s; }
.footer__col a:hover { color: var(--red); }

@media (max-width: 1100px) {
  .site-footer { padding: 0 16px; }
  .footer { grid-template-columns: 1fr; padding: 48px 24px; border-radius: var(--radius); margin-bottom: 16px; }
  .footer__cols { flex-wrap: wrap; gap: 32px 48px; }
}
@media (max-width: 600px) {
  .footer__cols { flex-direction: column; }
}

/* =========================================================
   Forside
   ========================================================= */
.hero { position: relative; text-align: center; padding: 48px 24px 64px; overflow: hidden; }
.hero .ds-logo { margin: 0 auto 24px; }
.hero .h1 { max-width: 980px; margin-inline: auto; }
.hero .lead { max-width: 940px; margin: 24px auto 32px; }
.hero .dots--l { left: 0; top: 32px; }
.hero .dots--r { right: 0; top: 32px; transform: scaleX(-1); }

/* Logo-bånd (uendelig rulning) */
.ticker {
  max-width: 800px; margin: 48px auto 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12.5%, #000 87.5%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 12.5%, #000 87.5%, transparent);
}
.ticker__track { display: flex; align-items: center; gap: 32px; width: max-content; animation: ticker 40s linear infinite; }
.ticker__track img { height: 26px; width: auto; filter: grayscale(1); opacity: .65; }
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* FDS-boks */
.fds-box {
  position: relative; overflow: hidden;
  max-width: 1140px; margin: 0 auto;
  padding: 96px;
  background: var(--ink); color: var(--paper);
  border-radius: var(--radius);
}
.fds-box__inner { max-width: 948px; }
.fds-box__logo { display: flex; align-items: center; gap: 12px; font: 800 80px/1.1 var(--f-logo); margin-bottom: 24px; }
.fds-box__logo svg { width: 72px; height: 72px; }
.fds-box .h2 { margin-bottom: 32px; }
.fds-box .lead { margin-bottom: 24px; }
.fds-box p + p { margin-top: 20px; }
.fds-box .btn { margin-top: 32px; }
.fds-box .dots { right: 24px; top: 0; transform: rotate(90deg); opacity: .9; }

/* Teknologi-kort */
.tech { padding: 80px 24px 0; text-align: center; }
.tech .h3 { margin-bottom: 48px; }
.tech__grid { display: grid; grid-template-columns: repeat(2, 394px); gap: 32px; justify-content: center; text-align: left; }
.card { min-height: 280px; padding: 16px; background: var(--paper); border: 1px solid #e6e6ec; border-radius: var(--radius); }
.card__icon { width: 48px; height: 48px; padding: 8px; background: var(--ink); color: var(--red); border-radius: 4px; margin-bottom: 24px; }
.card .h6 { margin-bottom: 8px; }
.card p { max-width: 330px; }

/* Citater */
.quotes { padding: 128px 24px 80px; text-align: center; }
.quotes .h2 { color: var(--red); }
.quotes .lead { margin: 16px 0 64px; font-weight: 400; }
.quotes__grid { display: grid; grid-template-columns: repeat(3, 304px); gap: 24px; justify-content: center; text-align: left; }
.quote { margin: 0; display: flex; flex-direction: column; min-height: 360px; padding: 24px 24px 32px; background: var(--paper); border: 1px solid #e6e6ec; border-radius: 20px; }
.quote__top { display: flex; justify-content: space-between; align-items: center; height: 40px; margin-bottom: 16px; }
.quote__top img { height: 28px; width: auto; max-width: 120px; object-fit: contain; filter: grayscale(1); opacity: .75; }
.quote__top svg { width: 32px; height: 32px; color: var(--red); }
.quote blockquote { flex: 1; margin: 0 0 24px; padding-left: 10px; border-left: 2px solid var(--red); }
.quote cite { font-style: normal; }
.quote cite span { display: block; font: 400 12.8px/1.2 var(--f-mono); text-transform: uppercase; color: var(--ink-75); }

/* Hvorfor os */
.why { padding: 0 24px; text-align: center; }
.why .h2 { margin-bottom: 24px; }
.why__box { max-width: 1140px; margin: 0 auto; padding: 64px 24px; background: var(--ink); color: var(--paper); border-radius: var(--radius); }
.why__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; max-width: 1092px; margin: 0 auto; }
.why__item svg { width: 48px; height: 48px; margin: 0 auto 20px; color: var(--red); }

/* Afsluttende CTA */
.outro { position: relative; text-align: center; padding: 64px 24px 0; }
.outro img { width: 240px; height: 240px; margin: 0 auto; }
.outro .h2 { margin-top: 8px; }
.outro .lead { font-weight: 400; margin: 16px 0 32px; }
.outro .dots--l { left: 18%; top: 64px; }
.outro .dots--r { right: 18%; top: 64px; transform: scaleX(-1); }

@media (max-width: 1040px) {
  .quotes__grid { grid-template-columns: repeat(2, 304px); }
}
@media (max-width: 960px) {
  .fds-box { padding: 48px 24px; margin-inline: 16px; }
  .fds-box__logo { font-size: 64px; }
  .tech__grid, .quotes__grid { grid-template-columns: min(100%, 420px); }
  .fds-box .dots { display: none; }
  .fds-box .h2 { max-width: 640px; }
  .why__grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .why__box { margin-inline: 0; }
  .quotes { padding-top: 80px; }
  .hero .dots, .outro .dots { display: none; }
}
@media (max-width: 600px) {
  .why__grid { grid-template-columns: 1fr; }
  .hero .btn, .outro .btn, .fds-box .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   Product
   ========================================================= */
.hero__fds { display: flex; align-items: center; justify-content: center; gap: 8px; font: 800 72px/1 var(--f-logo); margin-bottom: 24px; }
.hero__fds svg { width: 64px; height: 64px; }
.hero .lead--small { font: 400 16px/1.5 var(--f-body); max-width: 740px; }

.features { display: grid; gap: 32px; max-width: 1140px; margin: 16px auto 0; padding-inline: 0; }
.feature {
  display: grid; grid-template-columns: 1fr 528px; gap: 24px; align-items: center;
  padding: 32px; border-radius: var(--radius);
  background: var(--paper); border: 1px solid #d9d9e0;
}
.feature--dark { background: var(--ink); color: var(--paper); border-color: var(--ink); grid-template-columns: 528px 1fr; }
.feature--dark .feature__media { order: -1; }
.feature .h2 { margin-bottom: 16px; }
.feature__media { position: relative; aspect-ratio: 528 / 299; border-radius: 8px; overflow: hidden; background: #e9e9ef; }
.feature__media > img { width: 100%; height: 100%; object-fit: cover; }

/* Mærkat på billeder (fx "98% probability") */
.badge-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; padding: 16px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 8px; background: var(--paper); border-radius: 4px; font: 400 12.8px/1 var(--f-mono); text-transform: uppercase; color: var(--ink); }
.badge svg { width: 20px; height: 20px; color: var(--red); }
.badge-note { font: 400 12.8px/1.3 var(--f-mono); text-transform: uppercase; color: var(--paper); text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.badge-overlay a { color: #2f9bff; font-size: 15px; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.badge-overlay a:hover { color: #0088ff; text-decoration: underline; }

/* Metadata: vis/skjul flag */
.flags__panel {
  position: absolute; inset: 0; padding: 16px 16px 64px;
  background: rgba(240, 247, 250, .86); backdrop-filter: blur(2px);
  font: 400 16px/1.5 var(--f-body); color: var(--ink);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.flags__panel li::before { content: "• "; }
.flags.is-open .flags__panel { opacity: 1; visibility: visible; }
.flags__btn {
  position: absolute; right: 12px; bottom: 12px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 8px 8px 8px; border: 0; border-radius: 4px; cursor: pointer;
  background: var(--paper); color: var(--ink);
  font: 400 12.8px/1 var(--f-mono); text-transform: uppercase;
  transition: background-color .2s, color .2s;
}
.flags__btn svg { width: 20px; height: 20px; }
.flags.is-open .flags__btn { background: var(--ink); color: var(--paper); }
.flags.is-open .flags__btn svg { transform: scaleX(-1); }

/* Før/efter-slider */
.compare { --pos: 50%; user-select: none; touch-action: pan-y; }
.compare > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare__after { clip-path: inset(0 0 0 var(--pos)); }
.compare__line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--white); pointer-events: none; }
.compare__line--dark { background: var(--ink); }
.compare__knob {
  position: absolute; top: 50%; left: var(--pos); width: 64px; height: 64px; margin: -32px 0 0 -32px;
  display: flex; align-items: center; justify-content: center; gap: 2px;
  border-radius: 50%; background: rgba(255,255,255,.35); backdrop-filter: blur(4px); pointer-events: none;
  color: var(--ink);
}
.compare__knob svg { width: 20px; height: 20px; }
.compare__label { position: absolute; top: 24px; padding: 2px 16px; font: 400 14px/1.5 var(--f-body); color: #000; background: rgba(255,255,255,.48); border: 1px solid rgba(255,255,255,.24); border-radius: 6px; pointer-events: none; }
.compare__label--before { left: 24px; }
.compare__label--after { right: 24px; }
.compare input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare input[type="range"]:focus-visible ~ .compare__knob { outline: 2px solid var(--red); outline-offset: 2px; }

.product-why { padding: 88px 24px 0; }

@media (max-width: 1100px) {
  .features { margin-inline: 16px; }
  .feature, .feature--dark { grid-template-columns: 1fr; padding: 24px; }
  .feature--dark .feature__media { order: 0; }
}
@media (max-width: 600px) {
  .hero__fds { font-size: 56px; }
  .flags__panel { font-size: 14px; padding: 12px 12px 56px; }
}

/* =========================================================
   Contact
   ========================================================= */
.hero .lead--small.contact-lead { max-width: 860px; }
.offices { padding: 72px 24px 64px; text-align: center; }
.offices .h2 { max-width: 840px; margin: 0 auto 24px; }
.offices__box { display: grid; grid-template-columns: repeat(2, minmax(0, 430px)); gap: 20px; justify-content: center; max-width: 960px; margin: 0 auto; padding: 40px; background: var(--paper); border: 1px solid #d9d9e0; border-radius: 20px; text-align: left; }
.office { padding: 16px; background: var(--white); border-radius: 12px; }
.office img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; margin-bottom: 16px; }
.office address { font-style: normal; }
.office strong { font-weight: 600; }

.demo { max-width: 1080px; margin: 80px auto 0; padding: 32px; display: grid; grid-template-columns: 1fr 508px; gap: 40px; align-items: center; background: #f0f0f4; border-radius: 4px; }
.demo__intro { padding: 0 0 0 0; }
.demo__intro .h2 { margin-bottom: 32px; }
.demo__formwrap > p { text-align: center; margin-bottom: 12px; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; padding: 20px; background: var(--white); border: 1px solid #d9d9e0; border-radius: 4px; }
.form__field { display: flex; flex-direction: column; gap: 8px; }
.form__field--wide { grid-column: 1 / -1; }
.form label { font: 400 12.8px/1.2 var(--f-mono); text-transform: uppercase; color: var(--ink-75); }
.form input, .form textarea {
  width: 100%; padding: 10px 12px; font: 400 14px/1.4 var(--f-body); color: var(--ink);
  background: #f2f2f2; border: 1px solid #e4e4e8; border-radius: 6px; transition: border-color .2s, box-shadow .2s;
}
.form input { height: 40px; }
.form textarea { min-height: 100px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(255, 48, 66, .15); }
.form input:user-invalid { border-color: var(--red); }
.form .btn { grid-column: 1 / -1; width: 100%; height: 40px; border-radius: 6px; color: var(--white); }
.form .btn[disabled] { opacity: .7; cursor: default; }
.form__status { grid-column: 1 / -1; margin: -8px 0 0; font-size: 14px; min-height: 1.4em; }
.form__status.is-error { color: var(--red-dark); }
.form__status.is-ok { color: #198754; }
.form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 960px) {
  .offices__box { grid-template-columns: 1fr; padding: 16px; }
  .demo { grid-template-columns: 1fr; margin: 48px 16px 0; padding: 24px 16px; }
}
@media (max-width: 520px) {
  .form { grid-template-columns: 1fr; }
}

/* =========================================================
   About
   ========================================================= */
.about-hero .h1 { margin-bottom: 24px; }
.about-hero .lead { margin: 0 auto 24px; }
.split { max-width: 1008px; margin: 0 auto; padding: 0 24px; display: grid; gap: 24px; }
.split__row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
.split__text { padding: 0 0 0 80px; }
.split__row--rev .split__text { order: 2; padding: 0 0 0 64px; }
.split__text .h2 { margin-bottom: 20px; }
.split__text p { max-width: 320px; }
.split__row img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 20px; }

.ceo { position: relative; overflow: hidden; max-width: 960px; margin: 80px auto 0; padding: 72px 24px 80px; text-align: center; background: var(--ink); color: var(--paper); border-radius: var(--radius); }
.ceo .h2 { margin-bottom: 40px; }
.ceo blockquote { max-width: 560px; margin: 0 auto 32px; }
.ceo blockquote p + p { margin-top: 20px; }
.ceo img { width: 100px; height: 100px; border-radius: 50%; margin: 0 auto 16px; }
.ceo figcaption { font: 400 12.8px/1.2 var(--f-mono); text-transform: uppercase; }
.ceo .dots { width: 192px; height: 160px; }
.ceo .dots--tr { right: 0; top: 0; transform: rotate(90deg); }
.ceo .dots--bl { left: 24px; bottom: 0; transform: rotate(-90deg); }
.about-outro { margin-top: 80px; }

@media (max-width: 860px) {
  .split__row, .split__row--rev { grid-template-columns: 1fr; }
  .split__row--rev .split__text { order: 0; }
  .split__text, .split__row--rev .split__text { padding: 24px 0 0; }
  .split__text p { max-width: none; }
  .ceo { margin-inline: 16px; padding: 48px 24px; }
  .ceo .dots { display: none; }
}

/* =========================================================
   Tekstsider (juridiske sider m.m.)
   ========================================================= */
.legal { max-width: 1128px; margin: 0 auto; padding: 48px 24px 40px; font-size: 16px; line-height: 1.5; }
.legal h1 { font: 700 clamp(36px, 4.25vw, 61px)/1.1 var(--f-head); letter-spacing: -.02em; margin-bottom: 40px; }
.legal .revision { font: 500 25px/1.2 var(--f-head); margin-bottom: 8px; }
.legal .revision strong { font-weight: 700; }
.legal h2 { font: 600 clamp(24px, 2.2vw, 31px)/1.18 var(--f-body); margin: 40px 0 20px; }
.legal h3 { font: 600 20px/1.3 var(--f-body); margin: 32px 0 12px; }
.legal p { margin: 0 0 20px; max-width: 920px; }
.legal ul, .legal ol { margin: 0 0 20px; padding-left: 20px; max-width: 920px; }
.legal ul { list-style: none; }
.legal ul li { position: relative; }
.legal ul li::before { content: "•"; position: absolute; left: -18px; }
.legal ol { list-style: decimal; }
.legal li + li { margin-top: 4px; }
.legal a { color: #0a84ff; text-decoration: underline; }
.legal strong { font-weight: 600; }
.legal .note { padding: 16px; background: #eef0f4; border-radius: 8px; }

/* =========================================================
   Cookie-banner
   ========================================================= */
.cookie {
  position: fixed; z-index: 100; left: 16px; right: 16px; bottom: 16px;
  max-width: 560px; margin-inline: auto;
  display: flex; flex-direction: column; gap: 16px;
  padding: 20px; background: var(--white); color: var(--ink);
  border: 1px solid #d9d9e0; border-radius: var(--radius); box-shadow: 0 10px 40px rgba(24,25,34,.25);
  font-size: 14px; line-height: 1.5;
}
.cookie[hidden] { display: none; }
.cookie a { color: var(--ink); text-decoration: underline; }
.cookie__actions { display: flex; gap: 12px; }
.cookie__btn {
  flex: 1; height: 44px; border: 1px solid var(--ink); border-radius: 4px; cursor: pointer;
  background: transparent; color: var(--ink); font: 500 15px/1 var(--f-btn);
  transition: background-color .2s, color .2s;
}
.cookie__btn:hover { background: var(--ink); color: var(--white); }
.cookie__btn:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.footer__cookie { background: none; border: 0; padding: 0; cursor: pointer; font: 400 14px/1.3 var(--f-body); letter-spacing: -.2px; color: var(--grey); transition: color .2s; }
.footer__cookie:hover { color: var(--red); }
/* Sløret baggrund indtil der er valgt Accept/Reject */
.cookie-backdrop { position: fixed; inset: 0; z-index: 99; background: rgba(24, 25, 34, .35); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.cookie-backdrop[hidden] { display: none; }
html.cookie-open { overflow: hidden; }

/* =========================================================
   Resources
   ========================================================= */
.res-hero { max-width: 1128px; margin: 0 auto; padding: 48px 24px 40px; display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: center; }
.res-hero p { max-width: 560px; margin-top: 24px; }
.res-hero .res-hero__cat { font: 500 25px/1.2 var(--f-head); color: var(--red); margin-top: 8px; }
.res-hero__art { position: relative; width: 280px; height: 280px; display: flex; align-items: center; justify-content: center; }
.res-hero__art .dots { inset: 0; width: 100%; height: 100%; }
.res-hero__art svg { position: relative; width: 88px; height: 88px; }

.res-list { max-width: 1128px; margin: 0 auto; padding: 0 24px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.tabs--center { justify-content: center; margin-bottom: 0; }
.tab { padding: 10px 12px; border-radius: 8px; background: var(--paper); font: 400 12.8px/1.2 var(--f-mono); text-transform: uppercase; transition: background-color .2s, color .2s; }
.tab:hover { background: #e9e9ef; }
.tab.is-active { background: var(--red); color: var(--white); }

.rgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 23px; }
.rcard { display: flex; flex-direction: column; background: var(--paper); border: 1px solid #e4e4ea; border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s; }

.rcard__img { position: relative; aspect-ratio: 344 / 174; overflow: hidden; }
.rcard__img img { width: 100%; height: 100%; object-fit: cover; }
.tag { display: inline-block; padding: 6px 8px; background: var(--red); color: var(--white); border-radius: 2px; font: 400 12.8px/1 var(--f-mono); text-transform: uppercase; }
.rcard__img .tag { position: absolute; top: 16px; left: 12px; }
.rcard__body { flex: 1; display: flex; flex-direction: column; padding: 20px 12px 16px; }
.rcard__title { font: 500 20px/1.3 var(--f-body); margin-bottom: 20px; }
.rcard__body p { flex: 1; max-width: 320px; margin-bottom: 20px; }
.rcard__more { font: 400 12.8px/1.2 var(--f-mono); text-transform: uppercase; color: #2737cc; }

/* Artikel */
.article { max-width: 1140px; margin: 48px auto 0; padding: 24px 24px 48px; background: var(--paper); border-radius: 24px; }
.article .tag { font-size: 11px; }
.article h1 { font: 700 clamp(32px, 4vw, 56px)/1.12 var(--f-head); letter-spacing: -.02em; margin: 24px 0; }
.article__lead { font: 500 18px/1.4 var(--f-body); margin-bottom: 40px; }
.article__hero { width: 100%; aspect-ratio: 1092 / 427; object-fit: cover; border-radius: 8px; margin-bottom: 40px; }
.article__body { max-width: 980px; font-size: 16px; line-height: 1.5; }
.article__body h2 { font: 700 clamp(28px, 3vw, 44px)/1.15 var(--f-head); margin: 48px 0 20px; }
.article__body > h2:first-child { margin-top: 0; }
.article__body h3 { font: 600 24px/1.25 var(--f-body); margin: 40px 0 16px; }
.article__body p { margin-bottom: 20px; }
.article__body img { max-width: 100%; border-radius: 8px; margin: 8px 0 28px; }
.article__body blockquote { margin: 0 0 24px; padding: 4px 0 4px 16px; border-left: 2px solid var(--red); font-style: italic; font-weight: 600; }
.article__body blockquote p:last-child { margin-bottom: 0; }
.article__body a { color: #2737cc; text-decoration: underline; word-break: break-word; }
.back { text-align: center; padding: 40px 24px 0; }
.back p { margin-bottom: 12px; }

@media (max-width: 960px) {
  .res-hero { grid-template-columns: 1fr; }
  .res-hero__art { display: none; }
  .rgrid { grid-template-columns: repeat(2, 1fr); }
  .article { margin: 24px 16px 0; padding: 20px 16px 32px; border-radius: var(--radius); }
}
@media (max-width: 600px) {
  .rgrid { grid-template-columns: 1fr; }
}

/* =========================================================
   Training videos
   ========================================================= */
.training .revision { font: 400 18px/1.4 var(--f-body); color: var(--ink-75); margin-bottom: 40px; }
.video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
.video { padding: 22px; background: var(--paper); border: 1px solid #e4e4ea; border-radius: var(--radius); }
.video h2 { font: 600 22px/1.3 var(--f-body); margin: 0 0 8px; }
.video p { color: var(--ink-75); margin: 0; }
.video video { display: block; width: 100%; aspect-ratio: 16 / 9; margin-top: 18px; border-radius: 12px; background: var(--ink); }
@media (max-width: 760px) { .video-grid { grid-template-columns: 1fr; } }

/* =========================================================
   Animationer (som i originalen)
   ========================================================= */
/* FDS-fingeraftryk: fader ind og "tegner" stregerne, når det kommer i syne */
.fp { transition: opacity .4s ease; }
.fp path[style] { transition: stroke-dashoffset 1.4s cubic-bezier(.4, 0, .2, 1) .15s; }
html.js .fp:not(.is-drawn) { opacity: 0; }
html.js .fp:not(.is-drawn) path[style] { stroke-dashoffset: var(--l); transition: none; }

/* "Why choose us" på forsiden: vokser op fra 50 % og glider op */
html.js .appear { opacity: 0; transform: translateY(50px) scale(.5); }
.appear { transition: opacity .5s ease .2s, transform .7s cubic-bezier(.34, 1.3, .64, 1) .2s; }
html.js .appear.is-in { opacity: 1; transform: none; }

/* Logo-båndet toner ind */
html.js .ticker { animation: fade-in .8s ease .2s both; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* =========================================================
   Søgning
   ========================================================= */
.nav__search { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 8px; background: none; border: 0; color: var(--paper); cursor: pointer; border-radius: 6px; }
.nav__search svg { width: 24px; height: 24px; }
.nav__search:hover { opacity: .7; }
html.search-open { overflow: hidden; }
.search { position: fixed; inset: 0; z-index: 120; display: flex; justify-content: center; align-items: flex-start; padding: 96px 16px 16px; background: rgba(24, 25, 34, .5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.search[hidden] { display: none; }
.search__panel { width: 100%; max-width: 640px; background: var(--white); border-radius: var(--radius); box-shadow: 0 20px 60px rgba(24,25,34,.3); overflow: hidden; }
.search__bar { display: flex; align-items: center; gap: 8px; padding: 12px 12px 12px 20px; border-bottom: 1px solid #e4e4ea; }
.search__bar input { flex: 1; height: 44px; border: 0; outline: none; font: 400 18px/1.3 var(--f-body); color: var(--ink); background: transparent; }
.search__close { padding: 6px 10px; border: 1px solid #d9d9e0; border-radius: 4px; background: var(--paper); font: 400 12px/1 var(--f-mono); color: var(--ink-75); cursor: pointer; }
.search__results { max-height: min(60vh, 520px); overflow-y: auto; }
.search__results a { display: block; padding: 14px 20px; border-bottom: 1px solid #f0f0f4; }
.search__results a:hover, .search__results a:focus-visible { background: var(--paper); outline: none; }
.search__results strong { display: block; font-weight: 600; margin-bottom: 4px; }
.search__results span { display: block; font-size: 14px; color: var(--ink-75); }
.search__results mark { background: rgba(255, 48, 66, .18); color: inherit; border-radius: 2px; }
.search__empty { padding: 20px; color: var(--ink-75); }

/* =========================================================
   404 – "Oops! You found a page that doesn't exist"
   ========================================================= */
.nf { position: relative; overflow: hidden; text-align: center; padding: 56px 24px 0; }
.nf .dots--l { left: 0; top: 40px; }
.nf .dots--r { right: 0; top: 40px; transform: scaleX(-1); }
.nf .h1 { margin-top: 32px; }
.nf .lead { margin: 20px auto 32px; }

/* Scanner-rammen om 404 */
.nf__scan { position: relative; display: inline-block; padding: 18px 40px 10px; }
.nf__corner { position: absolute; width: 28px; height: 28px; border: 0 solid var(--red); }
.nf__corner--tl { top: 0; left: 0; border-top-width: 3px; border-left-width: 3px; }
.nf__corner--tr { top: 0; right: 0; border-top-width: 3px; border-right-width: 3px; }
.nf__corner--bl { bottom: 0; left: 0; border-bottom-width: 3px; border-left-width: 3px; }
.nf__corner--br { bottom: 0; right: 0; border-bottom-width: 3px; border-right-width: 3px; }
.nf__scan { animation: nf-pulse 2.4s ease-in-out infinite; }
@keyframes nf-pulse { 50% { transform: scale(1.03); } }
.nf__code { display: block; font: 800 clamp(120px, 18vw, 200px)/1 var(--f-logo); color: var(--ink); letter-spacing: .02em; }
.nf__zero { display: inline-block; color: var(--red); animation: nf-wobble 3s ease-in-out infinite; }
@keyframes nf-wobble { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-12deg); } 40% { transform: rotate(10deg) scale(.95); } 60% { transform: rotate(0); } }
.nf__beam { position: absolute; left: 8px; right: 8px; top: 10%; height: 3px; border-radius: 2px; background: var(--red); box-shadow: 0 0 18px 4px rgba(255, 48, 66, .45); animation: nf-beam 2.2s ease-in-out infinite alternate; }
@keyframes nf-beam { from { top: 8%; } to { top: 88%; } }
.nf__flag { position: absolute; right: -36px; top: -10px; padding: 6px 8px; background: var(--red); color: var(--white); border-radius: 2px; font: 400 12.8px/1 var(--f-mono); text-transform: uppercase; transform: rotate(8deg); box-shadow: 0 6px 16px rgba(255, 48, 66, .3); animation: nf-flag .5s 1.2s cubic-bezier(.34, 1.56, .64, 1) both; }
@keyframes nf-flag { from { opacity: 0; transform: rotate(8deg) scale(.3); } }

/* Sagsrapport */
.nf__report { max-width: 560px; margin: 0 auto 32px; padding: 20px 24px; text-align: left; background: var(--ink); color: var(--paper); border-radius: var(--radius); font: 400 14px/1.6 var(--f-mono); }
.nf__report-title { color: var(--grey); text-transform: uppercase; font-size: 12.8px; margin-bottom: 12px; }
.nf__url { color: var(--paper); text-transform: none; word-break: break-all; }
.nf__log { list-style: none; padding: 0; margin: 0; }
.nf__log li { position: relative; padding-left: 28px; opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .3s; }
.nf__log li.is-shown { opacity: 1; transform: none; }
.nf__log li::before { content: "…"; position: absolute; left: 0; color: var(--grey); }
.nf__log li.is-done[data-ok="1"]::before { content: "✓"; color: #3ddc84; }
.nf__log li.is-done[data-ok="0"]::before { content: "✗"; color: var(--red); }
.nf__found { margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(247, 247, 250, .15); font-family: var(--f-body); }
.nf__found strong { color: #3ddc84; font-weight: 600; }
.nf__leads { margin-top: 10px; display: grid; gap: 6px; }
.nf__leads a { display: block; padding: 10px 12px; border-radius: 8px; background: rgba(247, 247, 250, .06); transition: background-color .2s; }
.nf__leads a:hover { background: rgba(255, 48, 66, .25); }
.nf__leads a span { display: block; font: 400 12px/1.4 var(--f-mono); color: var(--grey); }

.nf__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.nf__robot { width: 220px; height: 220px; margin: 32px auto 0; animation: nf-bob 3s ease-in-out infinite; }
@keyframes nf-bob { 50% { transform: translateY(-10px) rotate(-2deg); } }
@media (max-width: 600px) { .nf__flag { right: -8px; } .nf .dots { display: none; } .br-d { display: none; } }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

/* Privacy Policy-vindue fra cookie-banneret */
.cookie-policy {
  position: fixed; z-index: 101; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(760px, calc(100% - 32px)); max-height: calc(100vh - 48px);
  display: flex; flex-direction: column;
  background: var(--white); color: var(--ink); border: 1px solid #d9d9e0; border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(24, 25, 34, .35); overflow: hidden;
}
.cookie-policy[hidden] { display: none; }
.cookie-policy__head { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid #e4e4ea; font: 600 18px/1.2 var(--f-head); }
.cookie-policy__back { padding: 8px 12px; border: 1px solid #d9d9e0; border-radius: 4px; background: var(--paper); font: 400 13px/1 var(--f-mono); cursor: pointer; }
.cookie-policy__back:hover { background: #e9e9ef; }
.cookie-policy__body { flex: 1; overflow-y: auto; padding: 8px 24px 16px; font-size: 14px; outline: none; }
.cookie-policy__body h1 { font-size: 32px; margin: 16px 0 16px; }
.cookie-policy__body h2 { font-size: 20px; margin: 24px 0 10px; }
.cookie-policy__body .revision { font-size: 16px; }
.cookie-policy__foot { padding: 14px 20px 18px; border-top: 1px solid #e4e4ea; background: var(--paper); }
.cookie-policy__foot p { margin: 0 0 10px; font-size: 14px; color: var(--ink-75); }
.res-hero .res-hero__cat--top { margin: 0 0 8px; font-size: 20px; }
