/*
 * phoneguru.dk – fælles stylesheet for hjemmesiden.
 *
 * Tokens følger designoverdragelsen (design-hjemmeside/README.md).
 * Ingen inline styles i HTML'en: CSP'en tillader kun style-src 'self'.
 */

@font-face {
  font-family: 'Archivo';
  src: url('/assets/fonts/archivo.woff2') format('woff2-variations'), url('/assets/fonts/archivo.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Hanken Grotesk';
  src: url('/assets/fonts/hanken-grotesk.woff2') format('woff2-variations'), url('/assets/fonts/hanken-grotesk.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Farver */
  --navy: #0e3b43;
  --navy-dark: #0a2e35;
  --navy-raised: #154a54;
  --navy-line: #2c5a63;
  --navy-soft: #1f525c;
  --navy-outline: #5e8890;
  --cyan: #00bfff;
  --cyan-light: #b3ecff;
  --cyan-pale: #e6f8ff;
  --button: #007bb0;
  --bg: #f3f7f8;
  --white: #ffffff;
  --border: #d9e5e8;
  --border-faq: #c9d9dc;
  --border-strong: #9db5ba;
  --muted: #4b676d;
  --muted-strong: #2e5158;
  --on-dark-muted: #c9dee2;
  --link: #0a6f8f;
  --success: #0f8a5f;
  --success-bg: #ddf5ea;
  --success-text: #0b6b49;
  --warning-bg: #fff1e6;
  --warning-text: #8a3a08;
  --danger: #a3361b;

  /* Typografi */
  --font-display: 'Archivo', system-ui, sans-serif;
  --font-body: 'Hanken Grotesk', system-ui, sans-serif;

  /* Form og rytme */
  --radius-pill: 999px;
  --radius-card: 24px;
  --radius-tile: 18px;
  --radius-input: 12px;
  --content: 1200px;
  --gutter: 24px;
  --section-y: 104px;
  --shadow-soft: 0 10px 24px rgba(14, 59, 67, 0.18);
  --shadow-card: 0 20px 44px rgba(14, 59, 67, 0.12);
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ---------- Grundlag ---------- */

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 { text-wrap: balance; margin: 0; }
p, li { text-wrap: pretty; }
p { margin: 0; }

a { color: var(--navy); transition: color 0.15s ease; }
a:hover { color: var(--link); }

::selection { background: var(--cyan-light); color: var(--navy); }

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 8px;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--cyan-light);
  outline-offset: 0;
  border-color: var(--link);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  background: var(--navy);
  color: var(--white);
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--white); }

.container {
  max-width: var(--content);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.section--tint { background: var(--bg); }
.section--dark { background: var(--navy); color: var(--white); }

.stack { display: flex; flex-direction: column; }
.stack--lg { gap: 48px; }

/* ---------- Typografi ---------- */

.eyebrow {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--link);
}
.section--dark .eyebrow { color: var(--cyan); }

.h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 68px;
  line-height: 1;
  letter-spacing: -0.02em;
}

.h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
}

.lead { font-size: 20px; line-height: 1.55; color: var(--muted); max-width: 560px; }
.section--dark .lead { color: var(--on-dark-muted); }

.body-lg { font-size: 18px; line-height: 1.6; color: var(--muted); }

.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }

/* ---------- Knapper ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: var(--shadow-soft); }
.btn:active { transform: none; box-shadow: none; }

.btn--primary { background: var(--button); color: var(--white); }
.btn--primary:hover { color: var(--white); }

.btn--dark { background: var(--navy); color: var(--white); }
.btn--dark:hover { color: var(--white); }

.btn--ghost-dark { background: transparent; color: var(--white); border-color: var(--navy-outline); }
.btn--ghost-dark:hover { color: var(--white); background: rgba(255, 255, 255, 0.06); }

.btn--sm { min-height: 44px; padding: 0 20px; font-size: 16px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.text-link {
  display: inline-block;
  font-weight: 700;
  font-size: 17px;
  padding: 10px 0;
}

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

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
  font-size: 16px;
  font-weight: 600;
}
.site-nav a:not(.btn) { text-decoration: none; padding: 10px 0; }
.site-nav a[aria-current='page']:not(.btn) {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}

@media (min-width: 721px) {
  .site-header { position: sticky; top: 0; z-index: 20; box-shadow: 0 1px 0 rgba(14, 59, 67, 0.04); }
}

/* Animeret logo: ikonet ringer hvert 6. sekund, lysglimt over ordmærket. */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  padding: 4px 14px 4px 0;
}
.logo__mark { position: relative; display: block; height: 42px; }
.logo__icon { height: 42px; width: auto; transform-origin: 50% 85%; animation: pg-ring 6s ease-in-out 0.4s infinite; }
.logo:hover .logo__icon { animation: pg-ring-fast 0.9s ease-in-out infinite; }
.logo__waves { position: absolute; right: -15px; top: -4px; }
.logo__waves path { opacity: 0; transform-box: fill-box; }
.logo__w1 { animation: pg-wave 6s ease-out 0.45s infinite; }
.logo__w2 { animation: pg-wave 6s ease-out 0.6s infinite; }
.logo:hover .logo__w1,
.logo:hover .logo__w2 { animation-duration: 0.9s; }
.logo__word { position: relative; display: block; height: 24px; margin-top: 6px; }
.logo__word img { height: 24px; width: auto; }
.logo__word::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.9) 50%, transparent 62%);
  background-size: 300% 100%;
  background-position: 100% 0;
  -webkit-mask: url('/assets/img/phoneguru-logo-wordmark.png') left center / contain no-repeat;
  mask: url('/assets/img/phoneguru-logo-wordmark.png') left center / contain no-repeat;
  animation: pg-shine 6s ease-in-out 1s infinite;
}

@keyframes pg-ring {
  0%, 12%, 100% { transform: rotate(0); }
  2% { transform: rotate(-12deg); }
  4% { transform: rotate(10deg); }
  6% { transform: rotate(-8deg); }
  8% { transform: rotate(6deg); }
  10% { transform: rotate(-3deg); }
}
@keyframes pg-ring-fast {
  0%, 100% { transform: rotate(0); }
  15% { transform: rotate(-12deg); }
  30% { transform: rotate(10deg); }
  45% { transform: rotate(-8deg); }
  60% { transform: rotate(6deg); }
  75% { transform: rotate(-3deg); }
}
@keyframes pg-wave {
  0% { opacity: 0; transform: translateX(-3px); }
  3% { opacity: 1; transform: none; }
  12% { opacity: 0; transform: translateX(3px); }
  100% { opacity: 0; }
}
@keyframes pg-shine {
  0% { background-position: 100% 0; }
  20%, 100% { background-position: 0 0; }
}

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

.hero__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
  padding-top: 88px;
  padding-bottom: 96px;
}
.hero__copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero__visual { flex: 1 1 480px; min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }

/* Stiliseret skærm bag popup'en – rent dekorativ. */
.demo {
  position: relative;
  background: var(--navy-raised);
  border-radius: var(--radius-card);
  padding: 28px;
  min-height: 440px;
}
.demo__screen { display: flex; flex-direction: column; gap: 12px; opacity: 0.55; }
.demo__dots { display: flex; gap: 8px; }
.demo__dots span { width: 10px; height: 10px; border-radius: 5px; background: var(--navy-outline); }
.demo__bar { height: 10px; background: var(--navy-line); border-radius: 5px; }
.demo__bar--title { height: 14px; width: 40%; border-radius: 7px; }
.demo__bar--w75 { width: 75%; }
.demo__bar--w62 { width: 62%; }
.demo__block { height: 120px; background: var(--navy-soft); border-radius: 12px; margin-top: 8px; }

.demo__caption { font-size: 13px; color: var(--on-dark-muted); text-align: right; }

/* Popup-kortet: 8 sekunders loop – glider ind, slår op, viser felterne. */
.call {
  position: absolute;
  right: 24px; bottom: 24px; left: 24px;
  max-width: 380px;
  margin-left: auto;
  background: var(--white);
  color: var(--navy);
  border-radius: var(--radius-tile);
  overflow: hidden;
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.35);
  animation: pg-call 8s var(--ease-out) infinite;
}
.call__head {
  position: relative;
  overflow: hidden;
  background: var(--cyan);
  padding: 14px 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 12px;
  font-weight: 700;
  font-size: 15px;
}
.call__head::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  background-size: 300% 100%;
  animation: pg-sweep 2.2s ease-in-out infinite;
  pointer-events: none;
}
.call__title { display: flex; align-items: center; gap: 10px; }
.call__ring { transform-origin: 50% 50%; animation: pg-ring-fast 1.1s ease-in-out infinite; }
.call__body { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.call__who { display: flex; flex-direction: column; gap: 2px; }
.call__status {
  position: relative;
  display: block;
  height: 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.call__status span { position: absolute; left: 0; top: 0; white-space: nowrap; }
.call__look { animation: pg-look 8s infinite; }
.call__look::after { content: ''; animation: pg-dots 1s steps(4) infinite; }
.call__found { color: var(--success-text); animation: pg-found 8s infinite; }
.call__name { font-family: var(--font-display); font-weight: 800; font-size: 24px; }
.call__meta { font-size: 14px; color: var(--muted); }
.call__figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.call__figure { background: var(--bg); border-radius: 10px; padding: 10px 12px; }
.call__figure--due { background: var(--warning-bg); color: var(--warning-text); }
.call__label { font-size: 12px; color: var(--muted); }
.call__figure--due .call__label { color: var(--warning-text); }
.call__value { font-weight: 800; font-size: 18px; }
.call__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.call__action {
  flex: 1 1 auto;
  text-align: center;
  border: 1px solid var(--navy);
  border-radius: var(--radius-pill);
  padding: 9px 14px;
  font-weight: 700;
  font-size: 14px;
}
.call__action--primary { background: var(--navy); color: var(--white); }

.call__s1, .call__s2, .call__s3 { animation: pg-row1 8s ease-out infinite; }
.call__s2 { animation-name: pg-row2; }
.call__s3 { animation-name: pg-row3; }

@keyframes pg-call {
  0% { opacity: 0; transform: translateY(24px) scale(0.97); }
  6% { opacity: 1; transform: none; }
  90% { opacity: 1; transform: none; }
  97%, 100% { opacity: 0; transform: translateY(10px) scale(0.98); }
}
@keyframes pg-sweep { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
@keyframes pg-look { 0%, 13% { opacity: 1; } 16%, 100% { opacity: 0; } }
@keyframes pg-found { 0%, 14% { opacity: 0; } 17%, 100% { opacity: 1; } }
@keyframes pg-dots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }
@keyframes pg-row1 { 0%, 15% { opacity: 0; transform: translateY(8px); } 21%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes pg-row2 { 0%, 19% { opacity: 0; transform: translateY(8px); } 25%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes pg-row3 { 0%, 23% { opacity: 0; transform: translateY(8px); } 29%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }

/* ---------- "Virker med" ---------- */

.works-with { border-bottom: 1px solid var(--border); }
.works-with__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 48px;
  padding-top: 28px;
  padding-bottom: 28px;
  margin: 0 auto;
  list-style: none;
}
.works-with__label { font-size: 15px; font-weight: 600; color: var(--muted); }
.works-with__name { font-family: var(--font-display); font-weight: 800; font-size: 24px; }

/* ---------- Kort ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.card {
  text-decoration: none;
  background: var(--bg);
  border-radius: var(--radius-card);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--navy);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); color: var(--navy); }
.card--accent { background: var(--cyan-pale); }
.card__top { display: flex; justify-content: space-between; align-items: center; }
.card__icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--cyan-light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.card--accent .card__icon { background: var(--cyan); }
.card__text { font-size: 17px; line-height: 1.6; color: var(--muted); }
.card--accent .card__text { color: var(--muted-strong); }
.card__more { font-weight: 700; font-size: 17px; margin-top: auto; }

.badge {
  display: inline-block;
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 700;
  background: var(--navy);
  color: var(--white);
}

/* ---------- Feature-split ---------- */

.split {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  align-items: center;
}
.split__copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }

.tile-grid {
  flex: 1 1 480px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.tile {
  background: var(--white);
  border-radius: var(--radius-tile);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tile__title { font-family: var(--font-display); font-weight: 800; font-size: 19px; }
.tile__text { font-size: 16px; line-height: 1.55; color: var(--muted); }

/* ---------- Hvorfor PhoneGuru ---------- */

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.why {
  position: relative;
  border-top: 4px solid var(--cyan);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.3s var(--ease-out);
}
.why::before {
  content: '';
  position: absolute;
  left: 0; top: -4px;
  height: 4px; width: 0;
  background: var(--navy);
  transition: width 0.45s var(--ease-out);
}
.why:hover { transform: translateY(-4px); }
.why:hover::before { width: 100%; }
.why__n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 18px;
  background: var(--cyan-pale);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 15px;
  color: var(--link);
  transition: background 0.3s, color 0.3s, transform 0.3s;
}
.why:hover .why__n { background: var(--cyan); color: var(--navy); transform: rotate(-8deg) scale(1.08); }
.why__title { font-family: var(--font-display); font-weight: 800; font-size: 20px; }
.why__text { font-size: 16px; line-height: 1.6; color: var(--muted); }

@supports (animation-timeline: view()) {
  .why { animation: pg-reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 90%; }
  .why:nth-child(2) { animation-range: entry 8% entry 98%; }
  .why:nth-child(3) { animation-range: entry 16% cover 30%; }
  .why:nth-child(4) { animation-range: entry 24% cover 36%; }
}
@keyframes pg-reveal { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

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

.faq { max-width: 880px; display: flex; flex-direction: column; gap: 32px; }
.faq__list { border-top: 1px solid var(--border-faq); }
.faq details { border-bottom: 1px solid var(--border-faq); padding: 22px 0; }
.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 19px;
  min-height: 28px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  flex: 0 0 auto;
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
  color: var(--link);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 12px; font-size: 17px; line-height: 1.6; color: var(--muted); }

/* ---------- CTA-bånd ---------- */

.cta-wrap { background: var(--bg); padding: 0 var(--gutter) var(--section-y); }
.cta {
  max-width: var(--content);
  margin: 0 auto;
  background: var(--cyan);
  border-radius: 28px;
  padding: 64px 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.cta__copy { display: flex; align-items: center; gap: 28px; flex: 1 1 480px; min-width: 0; }
.cta__mascot { width: 96px; height: auto; flex: 0 0 auto; }
.cta__title { font-family: var(--font-display); font-weight: 900; font-size: 40px; line-height: 1.1; }
.cta__text { font-size: 18px; line-height: 1.5; margin-top: 10px; }

/* ---------- Footer ---------- */

.site-footer { background: var(--navy-dark); color: var(--on-dark-muted); }
.site-footer a { color: var(--on-dark-muted); }
.site-footer a:hover { color: var(--white); }
.site-footer__inner { padding-top: 64px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 40px; }
.site-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.site-footer__about { display: flex; flex-direction: column; gap: 12px; max-width: 360px; font-size: 15px; line-height: 1.6; }
.wordmark { font-family: var(--font-display); font-weight: 900; font-size: 28px; color: var(--white); }
.wordmark span { color: var(--cyan); }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 48px; font-size: 15px; }
.site-footer__col { display: flex; flex-direction: column; gap: 10px; }
.site-footer__col strong { color: var(--white); }
.site-footer__bottom {
  border-top: 1px solid var(--navy-line);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* ---------- Flydende kontaktboks ---------- */

.cw {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  max-width: calc(100% - 24px);
}
.cw__toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 18px 0 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--navy);
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(14, 59, 67, 0.22);
}
.cw__avatar {
  width: 44px; height: 44px;
  border-radius: 22px;
  background: var(--cyan-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.cw__avatar img { height: 28px; width: auto; }
.cw__dot { width: 9px; height: 9px; border-radius: 5px; background: var(--success); animation: pg-dot 2s infinite; }
@keyframes pg-dot {
  0% { box-shadow: 0 0 0 0 rgba(15, 138, 95, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(15, 138, 95, 0); }
  100% { box-shadow: 0 0 0 0 rgba(15, 138, 95, 0); }
}

.cw__panel {
  width: 360px;
  max-width: 100%;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: 0 24px 60px rgba(14, 59, 67, 0.25);
  animation: pg-panel 0.25s var(--ease-out);
}
.cw__panel[hidden] { display: none; }
@keyframes pg-panel { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }

.cw__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 12px 14px 18px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius-card) var(--radius-card) 0 0;
}
.cw__head .cw__avatar { width: 48px; height: 48px; border-radius: 24px; }
.cw__head .cw__avatar img { height: 30px; }
.cw__who { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; }
.cw__who strong { font-size: 17px; }
.cw__who span { font-size: 14px; color: var(--muted); }
.cw__close {
  width: 44px; height: 44px;
  border: 0;
  background: transparent;
  border-radius: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
}
.cw__close:hover { background: var(--border); }
.cw__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 14px; }

.contact-line { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--navy); }
.contact-line__icon {
  width: 40px; height: 40px;
  border-radius: 20px;
  background: var(--cyan-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.contact-line__text { display: flex; flex-direction: column; gap: 1px; }
.contact-line__text strong { font-size: 16px; }
.contact-line__text span { font-size: 13px; color: var(--muted); }

.divider-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-top: 4px;
}
.divider-label::before,
.divider-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ---------- Formularer ---------- */

.form { display: flex; flex-direction: column; gap: 12px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; min-width: 0; }
.field input,
.field textarea,
.field select {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-input);
  padding: 0 12px;
  font: inherit;
  font-weight: 400;
  font-size: 15px;
  color: var(--navy);
  background: var(--white);
  min-width: 0;
}
.field input,
.field select { height: 44px; }
.field textarea { padding: 10px 12px; resize: vertical; min-height: 88px; }
.field--honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__note { font-size: 12px; color: var(--muted); text-align: center; }
.form__error { font-size: 14px; color: var(--danger); }
.form__error:empty { display: none; }
.form .btn { width: 100%; }

.notice {
  background: var(--cyan-pale);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 15px;
  line-height: 1.5;
}

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

.prose { max-width: 760px; display: flex; flex-direction: column; gap: 16px; font-size: 17px; line-height: 1.65; }
.prose h2 { font-family: var(--font-display); font-weight: 800; font-size: 24px; margin-top: 24px; }
.prose ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.prose a { color: var(--link); }
.prose__updated { font-size: 15px; color: var(--muted); }

/* ---------- Responsivt ---------- */

@media (max-width: 720px) {
  :root { --section-y: 64px; }
  .site-nav { gap: 4px 18px; font-size: 15px; }
  .site-nav a:not(.btn) { padding: 6px 0; }
  .h1 { font-size: 40px; line-height: 1.08; }
  .h2 { font-size: 32px; }
  .cta__title { font-size: 30px; }
  .hero__inner { padding-top: 56px; padding-bottom: 64px; }
  .lead { font-size: 18px; }
  .demo { min-height: 400px; padding: 20px; }
  .call { right: 12px; left: 12px; bottom: 12px; }
  .card { padding: 28px; }
  .works-with__inner { gap: 10px 24px; }
  .works-with__name { font-size: 20px; }
  .works-with__label:first-child { flex-basis: 100%; text-align: center; }
  .cta { padding: 40px 24px; }
  .cta__copy { flex-direction: column; align-items: flex-start; }
  .cw { right: 12px; bottom: 12px; }
}

/* ---------- Bevægelse slås fra efter ønske ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .call, .call__s1, .call__s2, .call__s3, .call__found { opacity: 1; }
  .call__look { display: none; }
}
