/* Aveliq salgsside. Bevidst kun lyst tema: hvid baggrund som i Aveliq-appen.
   Ingen frameworks og ingen inline-styles (siden kører med en stram Content-Security-Policy). */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  --bg: #ffffff;
  --fg: #16131f;
  --muted: #625e70;
  --line: #e6e3ee;
  --soft: #faf8fd;

  --accent: #8200d0;
  --accent-dk: #5e0098;
  --accent-fg: #ffffff;
  --accent-soft: #f1e4fd;

  /* --ok bruges til ikoner. Tekst på lys baggrund bruger de mørkere *-ink for at holde WCAG AA (4.5:1). */
  --ok: #0b8f3e;
  --ok-ink: #0a6b2d;
  --ok-soft: #e3f6ea;
  --bad: #c4002a;
  --bad-soft: #fde6ea;
  --warn: #8a5200;
  --warn-soft: #fff1d6;

  /* Kanten på formularfelter skal have 3:1 mod hvid (WCAG 1.4.11), så den er mørkere end --line. */
  --field-border: #8f89a3;

  --font: "Inter", "Segoe UI", system-ui, sans-serif;
  --header-h: 62px;
}

*, *::before, *::after { box-sizing: border-box; }

/* Komponenter med display: grid/flex må ikke overstyre hidden-attributten. */
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  padding-inline: 16px;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-underline-offset: 3px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: 1120px; margin-inline: auto; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 18px; height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

section { padding-block: 60px 0; }
@media (min-width: 821px) { section { padding-block: 80px 0; } }

.eyebrow { margin-bottom: 10px; font-size: 13px; font-weight: 600; color: var(--accent); }
.h2 { max-width: 24ch; font-size: clamp(28px, 4vw, 42px); font-weight: 800; }
.lead { max-width: 60ch; margin-top: 14px; color: var(--muted); font-size: 17px; }
.muted { color: var(--muted); }

/* ---------- Knapper og pille-badges ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 22px;
  border: 1px solid var(--accent);
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-fg);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn:hover { background: var(--accent-dk); border-color: var(--accent-dk); }
.btn.ghost { background: #fff; color: var(--fg); border-color: var(--line); }
.btn.ghost:hover { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-soft); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.btn[disabled] { opacity: 0.7; cursor: progress; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.pill.ok { background: var(--ok-soft); color: var(--ok-ink); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.p { background: var(--accent-soft); color: var(--accent); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }

/* ---------- Header ---------- */

header.top {
  position: sticky;
  top: 0;
  z-index: 20;
  margin-inline: -16px;
  padding-inline: 16px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
header.top .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--header-h);
  padding-block: 10px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.logo img { width: 32px; height: 32px; }

.site-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.site-nav a {
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.site-nav a:hover { background: var(--accent-soft); color: var(--accent); }

.top-actions { display: flex; align-items: center; gap: 8px; }
.logo + .top-actions { margin-left: auto; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--field-border);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}
.nav-toggle .icon { width: 22px; height: 22px; stroke-width: 2; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 900px) {
  /* Uden JavaScript: menuen står som en række under logoet. */
  header.top .wrap { flex-wrap: wrap; }
  .site-nav { order: 3; width: 100%; margin-left: 0; flex-wrap: wrap; }
  .top-actions { margin-left: auto; }

  /* Med JavaScript: menuknap, og "Book demo" bliver stående i headeren. */
  @media (scripting: enabled) {
    header.top .wrap { flex-wrap: nowrap; }
    .nav-toggle { display: inline-flex; }
    .site-nav {
      position: absolute;
      left: 0; right: 0;
      top: 100%;
      display: none;
      flex-direction: column;
      align-items: stretch;
      padding: 8px 16px 16px;
      background: #fff;
      border-bottom: 1px solid var(--line);
      box-shadow: 0 16px 24px rgba(22, 19, 31, 0.08);
    }
    .site-nav.is-open { display: flex; }
    .site-nav a { padding: 12px 14px; font-size: 16px; }
  }
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  gap: 36px;
  align-items: center;
  padding-block: 44px 0;
}
.hero h1 { font-size: clamp(34px, 6vw, 64px); font-weight: 800; overflow-wrap: break-word; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { font-size: 18px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.promises { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 24px; font-size: 14px; font-weight: 600; }
.promises li { display: flex; align-items: center; gap: 8px; }
.promises .icon { color: var(--ok); }

@media (min-width: 821px) {
  .hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 44px; padding-block: 60px 0; }
}

/* "Find alt"-arkivet (tegnet eksempel) */

.archive {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(60, 20, 100, 0.12);
}
.search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1.5px solid var(--accent);
  border-radius: 12px;
  font-size: 15px;
}
.search .icon { color: var(--accent); stroke-width: 2.2; }
.search .caret { width: 1.5px; height: 18px; margin-left: -8px; background: var(--fg); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .search .caret { animation: none; } }

.eq { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-top: 16px; }
.eq b { display: block; font-size: 16px; }
.eq small { color: var(--muted); font-size: 13px; }

.tl { margin-top: 14px; }
.tl li {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 4px 10px;
  align-items: start;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
}
.tl li .pill { grid-column: 2; justify-self: start; }
.tl .d { font-variant-numeric: tabular-nums; color: var(--muted); }
.tl .w b { display: block; font-weight: 600; }
.tl .w span { color: var(--muted); font-size: 12.5px; }
@media (min-width: 821px) {
  .tl li { grid-template-columns: 92px minmax(0, 1fr) auto; gap: 10px; }
  .tl li .pill { grid-column: auto; justify-self: auto; }
}

.archive .foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12.5px;
}
.archive .foot b { color: var(--accent); }

/* ---------- Kender du det ---------- */

.scenes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 16px;
  margin-top: 30px;
}
.scene { min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: 16px; }
.scene h3 { margin-bottom: 8px; font-size: 19px; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
.scene q { quotes: "“" "”"; }
.scene p { color: var(--muted); font-size: 15px; }

/* ---------- Før og efter ---------- */

.ba { margin-top: 30px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.ba-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.ba-row > div { min-width: 0; padding: 14px 16px; }
.ba-row .lbl { grid-column: 1 / -1; padding-bottom: 4px; border-top: 1px solid var(--line); background: #fff; font-weight: 600; }
.ba-row:first-child > div { font-size: 14px; font-weight: 700; }
.ba-row:first-child .lbl { display: none; }
.ba-row .before { background: var(--soft); color: var(--muted); }
.ba-row .after { background: #fff; }
.ba-row .after::before { content: "✓"; margin-right: 8px; color: var(--accent); font-weight: 800; }
.ba-row:first-child .after::before { content: none; }
.ba-row:first-child .after { color: var(--accent); }

@media (min-width: 821px) {
  .ba-row { grid-template-columns: minmax(150px, 0.7fr) minmax(0, 1fr) minmax(0, 1fr); }
  .ba-row > div { padding: 16px 18px; border-top: 1px solid var(--line); }
  .ba-row .lbl { grid-column: auto; padding-bottom: 16px; }
  .ba-row:first-child > div { border-top: 0; }
  .ba-row:first-child .lbl { display: block; }
}

/* ---------- Når nogen spørger ---------- */

.asks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 16px;
  margin-top: 30px;
}
.ask {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.ask .who { color: var(--muted); font-size: 12px; font-weight: 700; line-height: 1.6; letter-spacing: 0.04em; text-transform: uppercase; }
.ask .q { padding: 10px 12px; border-radius: 12px 12px 12px 4px; background: var(--soft); font-weight: 600; }
.ask .a { align-self: flex-end; padding: 10px 12px; border-radius: 12px 12px 4px 12px; background: var(--accent-soft); color: #3d0066; font-size: 15px; }

/* ---------- Løftet (sidens ene lilla felt) ---------- */

.promise {
  margin-top: 60px;
  padding: clamp(28px, 5vw, 60px);
  border-radius: 24px;
  background: var(--accent);
  color: #fff;
}
@media (min-width: 821px) { .promise { margin-top: 80px; } }
.promise h2 { max-width: 20ch; font-size: clamp(30px, 4.6vw, 48px); font-weight: 800; }
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 24px;
  margin-top: 32px;
}
.pillars div { padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.35); }
.pillars h3 { margin-bottom: 6px; font-size: 19px; }
.pillars p { color: rgba(255, 255, 255, 0.9); font-size: 15px; }

/* ---------- Tre trin ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 20px;
  margin-top: 30px;
  counter-reset: s;
}
.step { padding-top: 16px; border-top: 3px solid var(--accent); counter-increment: s; }
.step::before { content: "Trin " counter(s); display: block; margin-bottom: 6px; color: var(--accent); font-size: 12px; font-weight: 700; }
.step h3 { margin-bottom: 6px; font-size: 19px; font-weight: 700; }
.step p { color: var(--muted); font-size: 15px; }

.built-label { margin-top: 36px; color: var(--muted); font-size: 15px; }
.built { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.built li { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 500; }

/* ---------- Klar i dag ---------- */

.pilot { display: grid; gap: 16px; margin-top: 28px; }
@media (min-width: 821px) { .pilot { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.col { padding: 22px; border: 1px solid var(--line); border-radius: 16px; }
.col h3 { margin-bottom: 12px; font-size: 17px; }
.col ul { display: grid; gap: 9px; font-size: 15px; }
.col li { display: flex; gap: 10px; align-items: baseline; }

/* ---------- FAQ ---------- */

.faq { margin-top: 20px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 16px;
  font-size: 17px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { max-width: 70ch; margin-top: -6px; padding-bottom: 16px; color: var(--muted); }
.faq details p a { color: var(--accent-dk); font-weight: 600; }

/* ---------- Demo-formular ---------- */

.demo-section { padding-block: 0; }
.band {
  margin-top: 60px;
  padding: clamp(22px, 5vw, 52px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--soft);
}
.demo { display: grid; gap: 28px; align-items: start; }
@media (min-width: 821px) {
  .band { margin-top: 80px; }
  .demo { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 36px; }
}
.contact { margin-top: 20px; font-size: 15px; }
.contact a { color: var(--accent-dk); }

.form-card { min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px 12px; }
@media (min-width: 560px) {
  .form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .full { grid-column: 1 / -1; }
}

.required-note { color: var(--muted); font-size: 13px; }
.f { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.f label { font-size: 14px; font-weight: 600; }
.req { color: var(--accent); }
.f input[type="text"], .f input[type="email"], .f input[type="tel"], .f select, .f textarea {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--field-border);
  border-radius: 10px;
  background: #fff;
  font-size: 16px; /* 16px forhindrer, at iOS zoomer ind på feltet */
  line-height: 1.4;
}
.f select {
  appearance: none;
  padding-right: 40px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23625E70' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 12px center / 18px no-repeat;
}
.f textarea { min-height: 96px; resize: vertical; }
.f ::placeholder { color: var(--muted); opacity: 1; }
.f input:focus-visible, .f select:focus-visible, .f textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
/* Samme specificitet som feltreglen ovenfor, så den røde kant også gælder tekstfelterne. */
.f input[aria-invalid="true"], .f select[aria-invalid="true"], .f textarea[aria-invalid="true"] {
  border-color: var(--bad);
  border-width: 2px;
  background-color: #fff7f8;
}

.err { color: var(--bad); font-size: 13px; font-weight: 500; }
.err::before { content: "Fejl: "; font-weight: 700; }

.check { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: 14px; }
.check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); }
.check label { font-size: 14px; font-weight: 400; line-height: 1.5; }
.check a { color: var(--accent-dk); }
.check input[aria-invalid="true"] { outline: 2px solid var(--bad); outline-offset: 2px; }

/* Honeypot: uden for skærmen i stedet for display:none, så robotter stadig ser feltet. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.error-summary, .form-failure {
  padding: 14px 16px;
  border: 2px solid var(--bad);
  border-radius: 12px;
  background: #fff7f8;
  font-size: 14.5px;
}
.error-summary-title { margin-bottom: 6px; color: var(--bad); font-weight: 700; }
.error-summary ul { display: grid; gap: 4px; padding-left: 1.1em; list-style: disc; }
.error-summary a, .form-failure a { color: var(--bad); font-weight: 600; }
.form-failure p + p { margin-top: 6px; }

.form-success { display: grid; gap: 12px; justify-items: start; }
.form-success h3 { font-size: 22px; }
.form-success h3:focus { outline: none; }
.form-success a { color: var(--accent-dk); }
.success-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--ok-soft);
  color: var(--ok-ink);
}
.success-mark .icon { width: 24px; height: 24px; stroke-width: 2.6; }

/* ---------- Sidefod ---------- */

.site-footer { padding-block: 40px 36px; color: var(--muted); font-size: 13px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 16px; }

/* ---------- Juridiske sider ---------- */

.legal { padding-block: 48px 64px; }
.legal .wrap { max-width: 720px; }
.legal h1 { margin-bottom: 20px; font-size: clamp(30px, 4vw, 40px); font-weight: 800; }
.legal p { margin-bottom: 14px; }
.legal a:not(.btn) { color: var(--accent-dk); }
.legal .error-summary { margin-bottom: 18px; }
.legal .error-summary p { margin-bottom: 6px; }
.draft-note {
  padding: 14px 16px;
  border: 1px solid #f0cf87;
  border-radius: 12px;
  background: var(--warn-soft);
  color: var(--warn);
  font-weight: 600;
}

/* ---------- Print ---------- */

@media print {
  header.top, .nav-toggle, .demo-section { display: none; }
  section { padding-block: 24px 0; }
}
