/* ============================================================
   EMD International — design-baseline CSS (1:1 mod live-site)
   Alle værdier er verificeret mod kompileret live-CSS.
   Kilde: DESIGN-BASELINE.md + docs/baseline/07-10
   ============================================================ */

/* ---------- Fonte (selvhostet, kun de vægte sitet reelt bruger) ---------- */
@font-face { font-family: "Apfel Grotezk"; src: url("../fonts/ApfelGrotezk-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Apfel Grotezk"; src: url("../fonts/ApfelGrotezk-Mittel.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Apfel Grotezk"; src: url("../fonts/ApfelGrotezk-Brukt.woff") format("woff"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Apfel Grotezk"; src: url("../fonts/ApfelGrotezk-Fett.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Apfel Grotezk"; src: url("../fonts/ApfelGrotezk-Satt.woff") format("woff"); font-weight: 800; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --accent: #72f25f;            --accent-rgb: 114,242,95;
  --main-frontier-orange: #d1673c;
  --main-easy-beige: #caba94;
  --main-warm-green: #869665;
  --main-humble-green: #354334;
  --black-calm-black-100: #1d1e24;
  --black-calm-black-80: #8e8f91;
  --black-calm-black-60: #bbbcbd;
  --vibrant-energy-blue: #85f1fb;
  --vibrant-brave-green: #72f25f;
  --vibrant-curious-yellow: #feffa8;
  --dark: #222326;  --light: #f8f9fb;  --borders: #e3e6ec;
  --text: #2c2a29;  --headings: #1d1e24;
  --radius_1: 4px; --radius_2: 6px; --radius_3: 8px; --radius_4: 10px;
  --radius_5: 12px; --radius_6: 16px; --radius_7: 16px;
  --layout-gutter: 24px;
  --scroll-offset: 66px;
}

/* ---------- Base ---------- */
*, *:before, *:after { box-sizing: border-box; }
html { font-size: 100%; scrollbar-gutter: stable; }
body {
  margin: 0; background: #fff; color: var(--text);
  font-family: "Apfel Grotezk", sans-serif; font-size: 1rem; font-weight: 400; line-height: 1.2;
  overflow-wrap: normal; hyphens: none;
}
b, strong { font-weight: 500; }
p, blockquote, ul, ol { margin: 0 0 24px; }
hr { border: 0; border-top: 1px solid var(--borders); margin: 24px 0; }
img { max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.text-arrow { color: var(--accent); }

/* ---------- Headings (verificeret skala, desktop-first) ---------- */
h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6, .display {
  color: var(--headings); font-family: "Apfel Grotezk", sans-serif; font-weight: 400; margin: 0 0 24px;
}
h1 b, h2 b, h3 b, h1 strong, h2 strong, h3 strong { font-weight: 500; }
.display { font-size: 4.5rem;  line-height: 1.11; }
h1, .h1 { font-size: 5rem;    line-height: 1; }
h2, .h2 { font-size: 3.5rem;  line-height: 1.16; }
h3, .h3 { font-size: 2rem;    line-height: 1.25; }
h4, .h4 { font-size: 1.38rem; line-height: 1.1; }
h5, .h5 { font-size: 1.13rem; line-height: 1.33; }
h6, .h6 { font-size: 1rem;    line-height: 1.25; }
@media (max-width: 1139px) {
  .display { font-size: 3.5rem; }
  h1, .h1 { font-size: 2.75rem; }
  h2, .h2 { font-size: 2.25rem; }
  h3, .h3 { font-size: 1.63rem; }
  h4, .h4 { font-size: 1.25rem; }
}
@media (max-width: 767px) {
  .display { font-size: 2.75rem; }
  h1, .h1 { font-size: 2.25rem; }
  h2, .h2 { font-size: 2rem; }
  h3, .h3 { font-size: 1.38rem; }
}

/* ---------- Tekst-utilities ---------- */
.small-text  { font-size: .89rem; }
.large-text  { font-size: 1.1rem; }
.xlarge-text { font-size: 1.375rem; line-height: 1.1; }
@media (max-width: 1139px) { .xlarge-text { font-size: 1.25rem; } }
@media (max-width: 767px)  { .xlarge-text { font-size: 1.1875rem; } }
.super-text { display: block; font-size: .8rem; color: var(--text); }
.ui-label { font-size: 1rem; font-weight: 400; line-height: 1.28; color: var(--dark); }

/* Lys tekst på mørk baggrund (parent-konvention: .txt--dark = sektionen ER mørk) */
.txt--dark { color: hsla(0,0%,100%,.8); }
.txt--dark h1, .txt--dark h2, .txt--dark h3, .txt--dark h4, .txt--dark h5, .txt--dark h6,
.txt--dark .h1, .txt--dark .h2, .txt--dark .h3, .txt--dark .display, .txt--dark .ui-label { color: #fff; }
.txt--light { color: var(--text); }
.txt--main-easy-beige, .txt--main-easy-beige h1, .txt--main-easy-beige h2, .txt--main-easy-beige h3,
.txt--main-easy-beige .h1, .txt--main-easy-beige .display { color: var(--main-easy-beige); }

/* Brandfarve-utilities */
.section-bg--main-frontier-orange { background: var(--main-frontier-orange); }
.section-bg--main-easy-beige     { background: var(--main-easy-beige); }
.section-bg--main-warm-green     { background: var(--main-warm-green); }
.section-bg--main-humble-green   { background: var(--main-humble-green); }
.section-bg--black-100           { background: var(--black-calm-black-100); }
.section-bg--dark                { background: var(--dark); }
.section-bg--light               { background: var(--light); }
.bg-black { background: #000; }

/* Kontekst-regel: humble-green-sektion → beige typografi (verificeret :has()-regel) */
.section--humble-green, .section--humble-green h2, .section--humble-green h3,
.section--humble-green .heading__element, .section--humble-green a:not(.btn) { color: var(--main-easy-beige); }

/* ---------- Layout ---------- */
.container { width: 1888px; max-width: 100%; margin: 0 auto; padding: 0 24px; }
.container.half { width: 944px; }
.row { display: flex; flex-wrap: wrap; align-items: flex-start; margin: 0 -12px; }
.col { display: flex; flex-direction: column; align-items: stretch; flex-shrink: 0; padding: 0 12px; }
.s1{width:8.3333%}.s2{width:16.6667%}.s3{width:25%}.s4{width:33.3333%}.s5{width:41.6667%}
.s6{width:50%}.s7{width:58.3333%}.s8{width:66.6667%}.s9{width:75%}.s10{width:83.3333%}.s12{width:100%}
@media (max-width: 1139px) {
  .md-s3{width:25%}.md-s4{width:33.3333%}.md-s5{width:41.6667%}.md-s6{width:50%}.md-s9{width:75%}.md-s12{width:100%}
}
@media (max-width: 767px) {
  .col{width:100%}
  .sm-s4{width:33.3333%}.sm-s8{width:66.6667%}.sm-s12{width:100%}
  .sm-hidden{display:none}
}
@media (max-width: 1139px) and (min-width: 768px) { .md-hidden{display:none} }
.items-center{align-items:center}.items-end{align-items:flex-end}.items-stretch{align-items:stretch}
.justify-center{justify-content:center}.justify-start{justify-content:flex-start}
.flex-row{flex-direction:row}

.section { padding: 120px 0; }
.dnd-section { padding: 120px 24px; }
@media (max-width: 767px) { .section { padding: 64px 0; } .dnd-section { padding: 64px 24px; } }

/* ---------- Skygger ---------- */
.shadow-sm { box-shadow: 0 8px 16px rgba(34,35,38,.05), 0 4px 8px rgba(34,35,38,.05); }
.shadow-md { box-shadow: 0 16px 32px rgba(34,35,38,.05), 0 8px 16px rgba(34,35,38,.05); }
.shadow-lg { box-shadow: 0 32px 64px rgba(34,35,38,.05), 0 16px 32px rgba(34,35,38,.05); }

/* ---------- Knapper ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  font-family: "Apfel Grotezk", sans-serif; font-weight: 400; line-height: 1.2;
  background: none; border: none; cursor: pointer; overflow: hidden; position: relative;
  text-decoration: none; transform: scale(1); user-select: none; vertical-align: middle;
  transition: box-shadow .1s ease-in-out, background-color .1s ease-in-out, transform .1s ease-in-out;
}
.btn:hover { transform: scale(1.07); text-decoration: none; }
.btn:active { transform: scale(.93); transition-duration: .05s; }
.btn--small  { font-size: .83rem; padding: .45rem .68rem; border-radius: 8px; }
.btn--medium { font-size: 1rem;   padding: .5875rem 1rem;  border-radius: 10px; }  /* child-override */
.btn--large  { font-size: 1rem;   padding: .91rem 1.36rem; border-radius: 12px; }
.btn--pill   { border-radius: 999px; }

/* Fyldt accent: SORT tekst + grøn glow (child-override, verificeret) */
.btn--fill.btn--accent {
  background: var(--accent); color: #000;
  box-shadow: 0 0 16px 0 rgba(var(--accent-rgb), .5);
}
.btn--fill.btn--accent:focus-visible { box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .15); }
/* Header-CTA "Download trial": energy-blue + glow (modul-setting, verificeret) */
.btn--fill.btn--energy-blue {
  background: var(--vibrant-energy-blue); color: var(--black-calm-black-100);
  box-shadow: 0 0 16px 0 rgba(133,241,251,.5);
}
.btn--fill.btn--dark  { background: var(--dark); color: #fff; }
.btn--fill.btn--white { background: #fff; color: var(--dark); }

/* Outline = tekst-CTA med glidende pil (child har omdefineret varianten totalt) */
.btn--outline {
  border: 0; border-bottom: 1px solid; border-radius: 0;
  padding: .5rem 4rem .5rem 0;
  background-color: transparent !important;
  background-position: 100% 50%; background-repeat: no-repeat; background-size: 12px 12px;
  transform: none !important;
  transition: padding-right .15s;
}
.btn--outline:hover { padding-right: 4.5rem; }
.btn--outline.btn--accent {
  color: var(--accent); border-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2372f25f' d='m6 11.5-1-1.2 3.72-3.52H.36V5.22h8.4L4.96 1.6 6 .52 11.64 6z'/%3E%3C/svg%3E");
}
.btn--outline.btn--dark {
  color: var(--dark); border-color: var(--dark);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23222326' d='m6 11.5-1-1.2 3.72-3.52H.36V5.22h8.4L4.96 1.6 6 .52 11.64 6z'/%3E%3C/svg%3E");
}
.btn--outline.btn--white {
  color: #fff; border-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23fff' d='m6 11.5-1-1.2 3.72-3.52H.36V5.22h8.4L4.96 1.6 6 .52 11.64 6z'/%3E%3C/svg%3E");
}
/* Form-udgaven af outline-CTA'en (padding .64rem, verificeret) */
.form .btn--outline, .hs-button.btn--outline { padding: .64rem 4rem .64rem 0; }
.form .btn--outline:hover { padding-right: 4.5rem; }

/* ---------- Badges ---------- */
.badge {
  display: inline-block; font-weight: 500; line-height: 1.28;
  text-transform: uppercase; vertical-align: middle; border-radius: 100px;
}
.badge--large { font-size: .73rem; padding: .22rem .44rem; }
.badge--large.badge--lowercase { font-size: 1rem; font-weight: 400; padding: 5px 13px; text-transform: none; }
.badge--dark   { background: var(--dark); color: #fff; }
.badge--accent { background: var(--accent); color: #fff; }
.badge--orange { background: var(--main-frontier-orange); color: #fff; }

/* ---------- Formularer (underline-stil, verificeret --hsf-*) ---------- */
.form-title { margin-bottom: 39px; }
.hs-input {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--text);
  border-radius: 0; padding: 10px 0; color: var(--dark);
  font-family: "Apfel Grotezk", sans-serif; font-size: 1rem; line-height: 1.2;
  transition: .2s ease-in-out; outline: none;
}
.hs-input::placeholder { color: var(--text); opacity: 1; }
.form--dark .hs-input { border-color: #fff; color: #fff; }
.form--dark .hs-input::placeholder { color: #fff; opacity: .6; }
.form--dark label { color: #fff; }
.hs-form-field { margin-bottom: 25px; }
.hs-form-field label { display: block; margin-bottom: 2px; }

/* ---------- Header (overlap-tilstand) ---------- */
.header { position: absolute; top: 0; left: 0; right: 0; z-index: 6; }
.header__center { padding-block: 1rem; }
.header__logo img { width: 72px; height: auto; display: block; }
.header__nav-container { position: relative; display: flex; justify-content: center; }
.header__nav-container:before {
  content: ""; position: absolute; inset: 0;
  background: rgba(0,0,0,.5); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-radius: 999px;
}
.nav__list { display: flex; list-style: none; margin: 0; padding: 4px 8px; position: relative; }
.nav__link {
  display: inline-block; color: #fff; padding: .5rem 1rem; font-size: 1rem;
  text-decoration: none; white-space: nowrap;
}
.nav__link:hover { text-decoration: none; opacity: .85; }
.header__buttons { display: flex; gap: 10px; justify-content: center; }
@media (max-width: 1139px) and (min-width: 768px) { .header__buttons { display: none; } }
.site-search__open { background: none; border: 0; cursor: pointer; color: #fff; padding: .5rem; line-height: 0; }

/* ---------- Hero-slider ---------- */
.hero-slider { position: relative; overflow: hidden; }
.hero-slider__slide {
  min-height: 100vh; display: none; position: relative;
  background-size: cover; background-position: center;
  padding: 100px 0;
}
.hero-slider__slide--active { display: flex; flex-direction: column; justify-content: center; }
.hero-slider__overlay { position: absolute; inset: 0; }
.hero-slider__content {
  position: relative; z-index: 1; max-width: 1020px; text-align: right;
  margin-left: auto; width: 100%;
  animation: heroIn 1s ease-out;
}
@keyframes heroIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.hero-slider__title { margin-bottom: 0; }

/* Navigation-tabs på glas (verificeret css-20) */
.splide__navigation_tabs {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  width: 1840px; max-width: calc(100% - 40px); color: #fff; display: flex; z-index: 2;
}
@media (max-width: 767px) { .splide__navigation_tabs { bottom: 24px; } }
.splide__navigation_tabs_inner {
  display: flex; overflow: auto hidden; border-radius: 16px;
  background: rgba(0,0,0,.5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.splide__navigation_tab {
  cursor: pointer; display: flex; flex-direction: column; flex-shrink: 0;
  gap: 8px; padding: 16px; width: 410px; max-width: 100%;
  transition: opacity .15s, box-shadow .15s;
}
.splide__navigation_tab:not(.splide__navigation_tab--active) { opacity: .3; }
.splide__navigation_tab:not(.splide__navigation_tab--active):hover { opacity: .45; }
.splide__navigation_tab--active { box-shadow: inset 0 -4px 0 -2px var(--accent); }
.splide__navigation_tab_heading { display: flex; align-items: center; gap: 12px; font-size: 22px; line-height: 1.1; }
.splide__navigation_tab_heading img { width: 32px; height: auto; }
.splide__navigation_tab_text { opacity: .8; margin: 0; }
.splide__navigation_tab_subheading { margin: 0; }

/* ---------- Presentation-slider (verificeret css-13) ---------- */
.presentation-slider { display: flex; gap: 3rem; align-items: center; }
.presentation-slider__text { width: 40%; }
.presentation-slider__image {
  width: 55%; aspect-ratio: 1.52; border-radius: var(--radius_7);
  overflow: hidden; position: relative; height: auto; min-height: 0;
}
.presentation-slider__image-tag {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; pointer-events: none; transition: opacity .6s ease; z-index: 0;
}
.presentation-slider__image-tag--active { opacity: 1; z-index: 1; }
.presentation-slider__list { list-style: none; margin: 0; padding: 0; max-width: 570px; }
.presentation-slider__item {
  cursor: pointer; margin-bottom: 64px; opacity: .3; padding-left: 24px;
  position: relative; transition: opacity .3s ease;
}
.presentation-slider__item:last-child { margin-bottom: 0; }
.presentation-slider__item--active { opacity: 1; }
.presentation-slider__progress-container {
  position: absolute; left: 0; top: 4px; bottom: 0; width: 4px;
  border-radius: 2px; overflow: hidden; background: transparent; transition: background-color .2s;
}
.presentation-slider__item--active .presentation-slider__progress-container { background: hsla(0,0%,100%,.1); top: 6px; }
.presentation-slider__progress-bar {
  width: 100%; height: 0; border-radius: 2px; background: var(--accent);
}
.presentation-slider__item--active .presentation-slider__progress-bar { animation: fillBar 5s linear forwards; }
@keyframes fillBar { from { height: 0; } to { height: 100%; } }
.presentation-slider__heading { line-height: 1.1; margin-bottom: .375rem; transition: font-size .2s; }
.presentation-slider__item:not(.presentation-slider__item--active) .presentation-slider__heading { font-size: 22px; }
.presentation-slider__text-block { margin-bottom: 0; }
.presentation-slider__button-container { display: grid; grid-template-rows: 0fr; overflow: hidden; transition: grid-template-rows .35s; }
.presentation-slider__button-container-inner { min-height: 0; visibility: hidden; transition: visibility 1s; }
.presentation-slider__item--active .presentation-slider__button-container { grid-template-rows: 1fr; }
.presentation-slider__item--active .presentation-slider__button-container-inner { visibility: visible; }
.presentation-slider__button { margin-top: 16px; }
@media (max-width: 1139px) {
  .presentation-slider { flex-direction: column; }
  .presentation-slider__text, .presentation-slider__image { width: 100%; }
  .presentation-slider__item { margin-bottom: 26px; }
}

/* ---------- Logos ---------- */
.logos { overflow: hidden; }
.logos__track { display: flex; align-items: center; gap: 24px; }
.logos__logo { display: flex; align-items: center; justify-content: center; width: 100%; padding: 12px 0; flex: 1 0 calc((100% - 5 * 24px) / 6); }
.logos__logo__img { width: 100%; max-width: 160px; height: auto; }
@media (max-width: 1139px) { .logos__logo { flex-basis: calc((100% - 3 * 24px) / 4); } }
@media (max-width: 767px)  { .logos__logo { flex-basis: calc((100% - 24px) / 2); } }

/* ---------- Numbers (verificeret css-15) ---------- */
.numbers__number {
  color: var(--accent); font-family: "Apfel Grotezk", sans-serif;
  font-size: 3.5rem; font-weight: 400; line-height: 1.05; margin-bottom: 3.89rem;
}
.numbers--light .numbers__number { color: #fff; }
@media (max-width: 767px) { .numbers__number { margin-bottom: 2rem; } }

/* ---------- Billeder ---------- */
.img--radius { border-radius: 16px; }
.video--radius video, .video--radius img { border-radius: 16px; width: 100%; display: block; }

/* ---------- Footer (verificeret) ---------- */
.footer { background: var(--dark); }
.footer__section--main { padding: 120px 0 calc(120px - 2.78rem); }
@media (max-width: 767px) { .footer__section--main { padding: 64px 0 calc(64px - 2.78rem); } }
.footer__logo img { width: 96px; height: auto; }
.footer__logo { margin-bottom: 3rem; }
.col-nav__col { margin-bottom: 2.78rem; }
.col-nav__title { font-size: 1.1rem; margin-bottom: 1.11rem; }
.col-nav__title a { color: var(--main-easy-beige); }   /* child-override, verificeret */
.col-nav__list { list-style: none; margin: 0; padding: 0; }
.col-nav__link { display: inline-block; color: var(--black-calm-black-80); padding: 3px 5px 3px 0; }
.col-nav__link:hover { color: #fff; text-decoration: none; }
.cookie-btn {
  background: #313131; border: 1px solid #313131; border-radius: 3px;
  padding: 10px 16px; color: #fff; text-align: left; cursor: pointer;
  font-family: "Apfel Grotezk", sans-serif; font-size: 1rem;
}
