/* ===========================================================
   Hejitsupport — frontend design system
   Palette: 81A6C6 / AACDDC / F3E3D0 / D2C4B4
   =========================================================== */

:root {
  --blue:  #81A6C6;
  --sky:   #AACDDC;
  --cream: #F3E3D0;
  --taupe: #D2C4B4;

  --blue-600: #5f88aa;
  --blue-700: #4a7193;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(44,58,69,.06), 0 4px 14px rgba(44,58,69,.05);
  --shadow-md: 0 8px 30px rgba(44,58,69,.10);
  --shadow-lg: 0 30px 60px -25px rgba(44,58,69,.35);

  --maxw: 1180px;
  --ease: cubic-bezier(.22,.61,.36,1);

  /* Apple system font (SF Pro on Apple devices) — one font across the whole site */
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", "Segoe UI", Roboto, sans-serif;
}

/* ---------- Light theme (default) ---------- */
:root, [data-theme="light"] {
  --bg:        #ffffff;
  --bg-2:      #ffffff;
  --surface:   #ffffff;
  --surface-2: #F7F8FA;
  --text:      #2A3A46;
  --heading:   #21303B;
  --muted:     #6C7A86;
  --border:    rgba(42,58,70,.12);
  --nav-bg:    #ffffff;
  --accent:    var(--blue);
  --accent-ink:#23323d;
  --chip-bg:   #ffffff;
  --blob-a:    rgba(170,205,220,.55);
  --blob-b:    rgba(129,166,198,.45);
  --blob-c:    rgba(210,196,180,.55);
}

/* ---------- Dark theme ---------- */
[data-theme="dark"] {
  --bg:        #14191F;
  --bg-2:      #11161B;
  --surface:   #1C232B;
  --surface-2: #222A33;
  --text:      #D8DEE4;
  --heading:   #F1ECE3;
  --muted:     #97A6B2;
  --border:    rgba(170,205,220,.13);
  --nav-bg:    rgba(20,25,31,.72);
  --accent:    var(--sky);
  --accent-ink:#0f1419;
  --chip-bg:   #222A33;
  --blob-a:    rgba(129,166,198,.30);
  --blob-b:    rgba(170,205,220,.22);
  --blob-c:    rgba(210,196,180,.16);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .4s var(--ease), color .4s var(--ease);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }

/* Accessibility: visible keyboard focus (ui-ux-pro-max priority 1) */
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}
[data-theme="dark"] a:focus-visible,
[data-theme="dark"] button:focus-visible { outline-color: var(--sky); }

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

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--border); margin-top: 64px; padding: 48px 0 36px; }
.site-footer .foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h4 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; font-weight: 700; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 9px; }
.site-footer a { color: var(--heading); text-decoration: none; font-size: 14.5px; }
.site-footer a:hover { color: var(--accent); }
.site-footer .foot-brand { font-weight: 800; font-size: 18px; color: var(--heading); }
.site-footer .foot-tag { color: var(--muted); font-size: 14px; line-height: 1.7; margin: 10px 0 0; max-width: 34ch; }
.site-footer .foot-bottom { margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }
@media (max-width: 720px) { .site-footer .foot-grid { grid-template-columns: 1fr; gap: 26px; } }

/* ===========================================================
   Header
   =========================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 76px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -.03em;
  color: var(--heading);
}
.brand .mark { width: 36px; height: 36px; }
.brand .wordmark { display: inline-flex; align-items: baseline; }
.brand .brace {
  color: var(--accent);
  font-weight: 700;
}
.brand .brace:first-child { margin-right: .14em; }
.brand .brace:last-child { margin-left: .14em; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 14px;
  list-style: none;
}
.nav-links a {
  position: relative;
  padding: 9px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15.5px;
  color: var(--muted);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-links a:hover { color: var(--heading); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.nav-links a.active { color: var(--heading); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  height: 2px; border-radius: 2px;
  background: var(--accent);
}

.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* stacked control with a small caption above */
.ctrl { display: inline-flex; flex-direction: column; align-items: center; gap: 5px; }
.ctrl-label {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--heading);
  line-height: 1;
}

/* language flag toggle — same chip as the theme toggle, small round flag inside */
.lang-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  background: var(--chip-bg);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform .25s var(--ease);
  flex: none;
}
.lang-toggle:hover { transform: translateY(-2px) rotate(-8deg); border-color: var(--accent); }
.lang-toggle svg { width: 22px; height: 22px; border-radius: 50%; display: block; }

/* theme toggle */
.theme-toggle {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--chip-bg);
  color: var(--heading);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), background .25s var(--ease), border-color .25s;
}
.theme-toggle:hover { transform: translateY(-2px) rotate(-8deg); border-color: var(--accent); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .sun { display: none; }
.theme-toggle .moon { display: block; }
[data-theme="dark"] .theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: block; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body);
  font-weight: 700; font-size: 15.5px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), background .22s, color .22s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue-700);
  color: #fff;
}
.btn-primary:hover { transform: translateY(-2px); background: #3d617f; }
[data-theme="dark"] .btn-primary { background: var(--blue); color: #0f1419; }
[data-theme="dark"] .btn-primary:hover { background: var(--sky); }
.btn-ghost {
  background: var(--chip-bg);
  color: var(--heading);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--accent); }

/* lightweight account buttons in customer header */
.account-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body);
  font-weight: 600; font-size: 14.5px;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: color .18s var(--ease), background .18s var(--ease);
}
.account-btn svg { width: 17px; height: 17px; flex: none; }
.account-btn:hover {
  color: var(--heading);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}
/* Customer header: collapse to icon-only so the controls fit beside the brand on phones */
@media (max-width: 680px) {
  .nav-right { gap: 2px; }
  .account-btn { padding: 9px; gap: 0; }
  .account-btn svg { width: 20px; height: 20px; }
  .account-label { display: none; }
}

/* light / soft buttons — colored but low-weight */
.btn-soft {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 14.5px;
  padding: 10px 18px; border-radius: 10px;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  background: color-mix(in srgb, var(--blue) 12%, var(--surface));
  color: var(--blue-700);
  transition: background .18s var(--ease), color .18s var(--ease);
}
.btn-soft svg { width: 16px; height: 16px; flex: none; }
.btn-soft:hover { background: color-mix(in srgb, var(--blue) 20%, var(--surface)); }
[data-theme="dark"] .btn-soft { color: var(--sky); }

/* light back-link button with subtle background */
.btn-back {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-body); font-weight: 600; font-size: 14px;
  padding: 8px 15px; border-radius: 10px;
  border: 1px solid var(--border); cursor: pointer; white-space: nowrap;
  background: var(--chip-bg); color: var(--muted);
  transition: color .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease);
  margin-bottom: 18px;
}
.btn-back svg { width: 16px; height: 16px; flex: none; }
.btn-back:hover { color: var(--heading); background: color-mix(in srgb, var(--accent) 8%, var(--chip-bg)); border-color: var(--accent); }

.menu-btn { display: none; }

/* ===========================================================
   Hero (clean, centered)
   =========================================================== */
.hero { padding: 96px 0 110px; }
.hero-inner { max-width: 740px; text-align: left; }

/* hero two-column: form + illustration cards */
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 56px;
  align-items: start;
}
.hero-main { text-align: left; min-width: 0; }

/* Brandet intro-animation over hero-teksten — ren CSS, transparent, tema-bevidst.
   Kun den tynde border (som kasserne). Designet i remotion/. */
.hero-anim {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  margin-bottom: 22px;
  padding: 52px 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
.ha-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  font-family: var(--font-display);
  text-align: center;
}
.ha-word {
  display: flex;
  justify-content: center;
  font-weight: 700;
  color: var(--heading);
  opacity: 0;
  animation: haFadeUp .5s var(--ease) forwards .1s;
}
/* Klammerne sidder inline i teksten (hugger fra "{" ved Software til "}" ved idé),
   i brand-blå så de står anderledes end den mørke tekst men passer til designet. */
.ha-brace { color: var(--accent); font-weight: 700; font-size: 1.12em; margin: 0 .06em; }
.ha-letters {
  position: relative;
  display: block;
  max-width: 420px;
  text-align: left;
  font-size: clamp(18px, 2.3vw, 25px);
  letter-spacing: -.3px;
  line-height: 1.3;
}
.ha-ghost { visibility: hidden; }
.ha-typewrap { position: absolute; inset: 0; }
.ha-cursor {
  display: inline-block;
  width: .09em;
  height: .92em;
  margin-left: .03em;
  vertical-align: -.12em;
  background: var(--accent);
  animation: haBlink 1.05s steps(1) infinite;
}
.ha-tagline {
  font-size: clamp(13px, 1.7vw, 18px);
  font-weight: 500;
  color: var(--heading);
  letter-spacing: -.3px;
  opacity: 0;
  animation: haFadeUp .5s var(--ease) forwards 1.45s;
}
@keyframes haBraceL { from { opacity: 0; transform: translateX(-30px); } 70% { transform: translateX(4px); } to { opacity: 1; transform: translateX(0); } }
@keyframes haBraceR { from { opacity: 0; transform: translateX(30px); } 70% { transform: translateX(-4px); } to { opacity: 1; transform: translateX(0); } }
@keyframes haChar { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes haFadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes haBlink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

/* ===== Roterende mini-reklame (loop) ===== */
.ha-show {
  position: relative;
  width: 100%;
  max-width: 600px;
  height: 156px;
  margin-top: 4px;
  overflow: hidden;
  opacity: 0;
  animation: haFadeUp .6s var(--ease) forwards 2s;
}
.ha-track {
  display: flex;
  width: 400%;
  height: 100%;
  animation: haRotate 15s cubic-bezier(.7,0,.2,1) infinite;
  animation-delay: 2.1s;
}
.ha-scene {
  flex: 0 0 25%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
}
.ha-copy { text-align: left; max-width: 240px; }
.ha-copy h3 { font-size: clamp(17px, 2vw, 22px); font-weight: 700; color: var(--heading); letter-spacing: -.4px; line-height: 1.15; margin: 0 0 5px; }
.ha-copy p { font-size: clamp(12.5px, 1.5vw, 14.5px); color: var(--muted); line-height: 1.35; margin: 0; }

/* --- Scene 1: Mobilapps --- */
.ha-art-app {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "phone copy" "phone badges";
  align-items: center;
  gap: 8px 26px;
}
.ha-phone { grid-area: phone; width: 80px; height: 144px; border-radius: 16px; border: 2px solid var(--heading); padding: 9px 8px; background: var(--surface); position: relative; }
.ha-phone::before { content: ""; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 26px; height: 4px; border-radius: 3px; background: var(--border); }
.ha-screen { margin-top: 10px; height: calc(100% - 14px); display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 6px; }
.ha-screen span { border-radius: 7px; background: var(--accent); opacity: 0; transform: scale(.3); animation: haTile 3.4s var(--ease) infinite; animation-delay: calc(var(--a) * .13s); }
.ha-screen span:nth-child(3n+2) { background: var(--heading); }
.ha-screen span:nth-child(3n) { background: color-mix(in srgb, var(--accent) 55%, transparent); }
.ha-badges { grid-area: badges; display: flex; gap: 8px; }
.ha-badge {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 11px; border-radius: 9px;
  background: var(--heading); color: var(--bg);
  animation: haFloat 3s ease-in-out infinite;
}
.ha-badge:last-child { animation-delay: .4s; }
.ha-bic { width: 19px; height: 19px; flex: none; }
.ha-btx { display: flex; flex-direction: column; line-height: 1; text-align: left; }
.ha-btx small { font-size: 7px; opacity: .8; letter-spacing: .2px; }
.ha-btx b { font-size: 12px; font-weight: 700; margin-top: 2px; }
.ha-shine { position: absolute; top: 0; left: 0; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent); transform: translateX(-200%) skewX(-18deg); animation: haShine 3.2s ease-in-out infinite; }
.ha-badge:last-child .ha-shine { animation-delay: .5s; }

/* --- Scene 2: Hjemmesider --- */
.ha-art-web { display: flex; align-items: center; gap: 26px; }
.ha-browser { width: 210px; height: 134px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); overflow: hidden; position: relative; box-shadow: 0 8px 22px rgba(33,48,59,.08); }
.ha-bbar { height: 26px; display: flex; align-items: center; gap: 5px; padding: 0 10px; border-bottom: 1px solid var(--border); }
.ha-bbar i { width: 7px; height: 7px; border-radius: 50%; background: var(--border); }
.ha-bbar i:first-child { background: #FF5F57; } .ha-bbar i:nth-child(2) { background: #FEBC2E; } .ha-bbar i:nth-child(3) { background: #28C840; }
.ha-url { position: relative; overflow: hidden; flex: 1; height: 12px; margin-left: 6px; border-radius: 6px; background: var(--surface-2); }
.ha-url::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 0; background: color-mix(in srgb, var(--accent) 45%, transparent); animation: haUrl 3.6s var(--ease) infinite; }
.ha-bbody { padding: 12px; position: relative; }
.ha-bhero { height: 34px; border-radius: 6px; background: linear-gradient(100deg, var(--surface-2), color-mix(in srgb, var(--accent) 30%, var(--surface-2)), var(--surface-2)); background-size: 220% 100%; animation: haSheen 2.4s linear infinite; }
.ha-bline { height: 7px; border-radius: 4px; background: var(--surface-2); margin-top: 8px; transform: scaleX(0); transform-origin: left; animation: haLine 3.6s var(--ease) infinite; animation-delay: calc(.5s + var(--l) * .22s); }
.ha-bline:nth-child(3) { width: 88%; } .ha-bline:nth-child(4) { width: 64%; }
.ha-bcta { width: 58px; height: 18px; border-radius: 6px; background: var(--accent); margin-top: 11px; transform: scale(0); transform-origin: left; animation: haCtaIn 3.6s var(--ease) infinite; }
.ha-cursor2 { position: absolute; left: 0; top: 0; width: 15px; height: 15px; border-radius: 50%; border: 2px solid var(--accent); background: color-mix(in srgb, var(--accent) 22%, transparent); animation: haCur 3.6s var(--ease) infinite; }

/* --- Scene 3: Webshop & systemer --- */
.ha-art-shop { display: flex; align-items: center; gap: 26px; }
.ha-shopwrap { position: relative; width: 150px; height: 126px; display: flex; align-items: center; justify-content: center; }
.ha-cart { width: 76px; height: 76px; color: var(--heading); animation: haBob 2.6s ease-in-out infinite; }
.ha-prod { position: absolute; width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); }
.ha-prod[style*="--p:0"] { top: 6px; left: 8px; background: color-mix(in srgb, var(--accent) 30%, var(--surface)); animation: haDrop 2.6s var(--ease) infinite; }
.ha-prod[style*="--p:1"] { top: 14px; right: 6px; background: color-mix(in srgb, var(--heading) 18%, var(--surface)); animation: haDrop 2.6s var(--ease) infinite .5s; }
.ha-plus { position: absolute; top: 18px; right: 30px; font-size: 13px; font-weight: 800; color: var(--accent); opacity: 0; animation: haPlus 2.6s var(--ease) infinite; }
.ha-paid { position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%) scale(.6); display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; background: var(--heading); color: var(--bg); font-size: 11px; font-weight: 700; white-space: nowrap; opacity: 0; animation: haPaid 2.6s var(--ease) infinite; }
.ha-paid svg { width: 12px; height: 12px; }

/* --- Dots --- */
.ha-dots { position: absolute; bottom: 0; left: 0; right: 0; display: flex; justify-content: center; gap: 7px; }
.ha-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--border); animation-duration: 15s; animation-timing-function: linear; animation-iteration-count: infinite; animation-delay: 2.1s; }
.ha-dots i:nth-child(1) { animation-name: haDot0; }
.ha-dots i:nth-child(2) { animation-name: haDot1; }
.ha-dots i:nth-child(3) { animation-name: haDot2; }

/* ===== Showcase keyframes ===== */
@keyframes haRotate {
  0%, 20% { transform: translateX(0); }
  25%, 45% { transform: translateX(-25%); }
  50%, 70% { transform: translateX(-50%); }
  75%, 95% { transform: translateX(-75%); }
  100% { transform: translateX(-75%); }
}
@keyframes haTile { 0% { opacity: 0; transform: scale(.3); } 14% { opacity: 1; transform: scale(1); } 82% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(.3); } }
@keyframes haFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes haShine { 0%, 18% { transform: translateX(-200%) skewX(-18deg); } 45%, 100% { transform: translateX(320%) skewX(-18deg); } }
@keyframes haUrl { 0% { width: 0; } 22% { width: 86%; } 82% { width: 86%; } 100% { width: 0; } }
@keyframes haSheen { to { background-position: -220% 0; } }
@keyframes haLine { 0% { transform: scaleX(0); } 22% { transform: scaleX(1); } 88% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@keyframes haCtaIn { 0%, 30% { transform: scale(0); } 42% { transform: scale(1.08); } 50%, 88% { transform: scale(1); } 100% { transform: scale(0); } }
@keyframes haCur { 0% { transform: translate(28px, 26px); opacity: 0; } 12% { opacity: 1; } 40% { transform: translate(28px, 26px); } 60% { transform: translate(36px, 104px); } 66% { transform: translate(36px, 104px) scale(.7); } 72% { transform: translate(36px, 104px) scale(1); } 90% { opacity: 1; } 100% { transform: translate(28px, 26px); opacity: 0; } }
@keyframes haBob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-4px) rotate(-3deg); } }
@keyframes haDrop { 0% { opacity: 0; transform: translateY(-12px); } 18% { opacity: 1; transform: translateY(0); } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-12px); } }
@keyframes haPlus { 0%, 30% { opacity: 0; transform: translateY(6px); } 42% { opacity: 1; transform: translateY(-6px); } 60% { opacity: 0; transform: translateY(-14px); } 100% { opacity: 0; } }
@keyframes haPaid { 0%, 55% { opacity: 0; transform: translateX(-50%) scale(.6); } 66% { opacity: 1; transform: translateX(-50%) scale(1.06); } 74%, 92% { opacity: 1; transform: translateX(-50%) scale(1); } 100% { opacity: 0; transform: translateX(-50%) scale(.6); } }
@keyframes haDot0 { 0%, 22% { background: var(--accent); transform: scale(1.3); } 23%, 74% { background: var(--border); transform: scale(1); } 75%, 100% { background: var(--accent); transform: scale(1.3); } }
@keyframes haDot1 { 0%, 24% { background: var(--border); transform: scale(1); } 25%, 47% { background: var(--accent); transform: scale(1.3); } 48%, 100% { background: var(--border); transform: scale(1); } }
@keyframes haDot2 { 0%, 49% { background: var(--border); transform: scale(1); } 50%, 72% { background: var(--accent); transform: scale(1.3); } 73%, 100% { background: var(--border); transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
  .ha-brace-l, .ha-brace-r, .ha-letters span, .ha-tagline, .ha-show { animation: none; opacity: 1; transform: none; }
  .ha-cursor, .ha-track, .ha-screen span, .ha-badge, .ha-shine, .ha-bline, .ha-bcta, .ha-bhero, .ha-url::after, .ha-cursor2, .ha-cart, .ha-prod, .ha-plus, .ha-paid, .ha-dots i { animation: none; }
  .ha-screen span, .ha-bline, .ha-bcta, .ha-prod { opacity: 1; transform: none; }
}

.showcase { display: flex; flex-direction: column; gap: 16px; padding-top: 4px; }
.show-card {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 18px;
  background: transparent;
}
.show-card .sc-ico { display: flex; align-items: center; gap: 10px; flex: none; }
.show-card .sc-ico svg,
.show-card .sc-ico img { display: block; width: 40px; height: 40px; }
.show-card .sc-ico img { object-fit: contain; }
/* App Store badge is full-bleed, so scale it down to match the others' visual size */
.show-card .sc-ico img.sc-default { width: 34px; height: 34px; }
.show-card .sc-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.show-card .sc-text b { font-size: 14.5px; font-weight: 600; color: var(--heading); }
.show-card .sc-text span { font-size: 12.5px; color: var(--muted); }

@media (max-width: 900px) {
  .hero-layout { grid-template-columns: 1fr; gap: 40px; }
  .showcase { max-width: 520px; }
}
/* Eyebrow-chip over overskriften */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 11px;
  margin: 0 0 16px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--border));
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--heading);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .01em;
}
.hero-eyebrow i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 70%, transparent);
  animation: heroPulse 2.4s ease-out infinite;
}
@keyframes heroPulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); }
  70%, 100% { box-shadow: 0 0 0 7px transparent; }
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.35rem, 2.3vw, 1.8rem);
  line-height: 1.32;
  letter-spacing: -.01em;
  color: var(--heading);
  margin: 0 0 18px;
  max-width: 34ch;
  text-wrap: pretty;
}
/* Den grå tekst som accent-callout i stedet for løs grå tekst */
.hero .lead {
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--text);
  margin: 0 0 22px;
  max-width: 36em;
  padding: 16px 20px;
  border-left: 3px solid var(--accent);
  background: var(--surface-2);
  border-radius: 0 12px 12px 0;
  text-wrap: pretty;
}
/* Trust-chips med flueben */
.hero-trust {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 0;
  margin: 0;
}
.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--heading);
  font-size: .85rem;
  font-weight: 500;
  white-space: nowrap;
}
.hero-trust li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 800;
  font-size: .95em;
}

/* Hero: animation-banner i toppen, derefter to kolonner (tekst | form-kort) */
.hero-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 540px;
  gap: 36px;
  align-items: stretch;
  margin-top: 0;
}
/* Kontakt-kort i venstre kolonne under trust-chips */
.hero-contact-left { margin-top: 18px; }
/* Status ("Åbner mandag…") ved siden af telefonnummeret, ikke skubbet til højre */
.hero-contact-left .cc-row .cc-status { margin-left: 0; }
.hero-contact-left .cc-row > span:not(.cc-status) { flex: 0 0 auto; }
.hero-copy { min-width: 0; }
/* Overskrift, undertekst, chips og kontakt følger alle kolonnens (hero'ens) bredde */
.hero-copy h1, .hero-copy .lead { max-width: 100%; }
.hero-formcol { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.lead-form-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  padding: 24px 24px 22px;
  box-shadow: 0 12px 32px rgba(33, 48, 59, .07);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.form-card-title {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--heading);
  margin: 0 0 16px;
}
.hero-formcol .lead-form { max-width: none; flex: 1; display: flex; flex-direction: column; }
/* Noten centreres i det hvide felt i bunden af form-kortet */
.hero-formcol .lead-form .note { margin-top: auto; margin-bottom: auto; }
.hero-formcol .contact-card { margin: 0; }

/* Top: animation (mindre) ved siden af de fire ydelses-kort */
.hero-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 540px;
  gap: 36px;
  align-items: stretch;
  margin-bottom: 18px;
}
.hero-top .hero-anim { margin-bottom: 0; }
.hero-services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  align-content: stretch;
}
/* App-kort: App Store + Google Play ikoner oven på hinanden */
.hero-services .show-card:first-child .sc-ico { flex-direction: column; align-items: flex-start; gap: 6px; }

/* Divider + kontakt-sektion i fuld bredde */
.hero-divider {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 40px 0 26px;
}
.hero-contact-wide {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
}
.hero-contact-wide .cc-title { font-size: 1.05rem; font-weight: 700; color: var(--heading); }
.hcw-item { display: inline-flex; align-items: center; gap: 9px; color: var(--heading); font-size: .95rem; transition: color .2s; }
.hcw-item svg { width: 18px; height: 18px; color: var(--blue); flex: none; }
[data-theme="dark"] .hcw-item svg { color: var(--sky); }
.hcw-item:hover { color: var(--blue-700); }
[data-theme="dark"] .hcw-item:hover { color: var(--sky); }
.hcw-item .cc-status { margin-left: 2px; }
/* lodret divider-streg mellem kontakt-items */
.hero-contact-wide > * + * { border-left: 1px solid var(--border); padding-left: 26px; }

@media (max-width: 900px) {
  .hero-cols { grid-template-columns: 1fr; gap: 30px; }
  .hero-top { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 540px) {
  .hero-services { grid-template-columns: 1fr; }
  .hero-contact-wide > * + * { border-left: 0; padding-left: 0; }
  .hero-trust { grid-template-columns: 1fr; }
}

/* idea field */
.idea {
  display: flex;
  gap: 8px;
  max-width: 560px;
  margin: 0;
  padding: 7px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.idea:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 18%, transparent); }
.idea input {
  flex: 1;
  border: 0;
  background: transparent;
  outline: none;
  padding: 0 18px;
  font: inherit;
  font-size: 16px;
  color: var(--heading);
}
.idea input::placeholder { color: var(--muted); }
.idea .btn-primary { flex: none; }
.hero .note { margin-top: 16px; font-size: 14px; color: var(--muted); }

/* project request form — minimal, boxless, sharp underline fields */
.lead-form {
  max-width: 520px;
  margin: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.lead-form .field { display: flex; flex-direction: column; gap: 8px; }
.lead-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.lead-form label {
  font-size: 13px;
  font-weight: 600;
  color: var(--heading);
}
.lead-form input,
.lead-form textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--heading);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 13px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.lead-form textarea { resize: vertical; min-height: 64px; line-height: 1.5; }
.lead-form input::placeholder,
.lead-form textarea::placeholder { color: var(--muted); }
.lead-form input:focus,
.lead-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 16%, transparent);
}
.lead-form .btn-primary {
  align-self: flex-start;
  margin-top: 6px;
  border-radius: 8px;
  background: var(--blue);
  color: #1e2c37;
  box-shadow: none;
}
.lead-form .btn-primary:hover { background: #6f97b8; transform: translateY(-2px); box-shadow: none; }
[data-theme="dark"] .lead-form .btn-primary { background: var(--blue); color: #11171d; }
[data-theme="dark"] .lead-form .btn-primary:hover { background: var(--sky); }
.lead-form .note { margin: 0; }
.field-error { font-size: 13px; color: #d14343; }
.form-success {
  border-left: 3px solid #4ec98a;
  color: var(--heading);
  padding: 4px 0 4px 14px;
  font-weight: 600;
  font-size: 15px;
}
@media (max-width: 540px) {
  .lead-form .field-row { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 540px) {
  .hero { padding: 70px 0 80px; }
  .idea { flex-direction: column; border-radius: 18px; padding: 12px; }
  .idea input { padding: 12px 14px; text-align: left; }
  .idea .btn-primary { justify-content: center; }
}

/* ---- Mobil-optimering: forhindrer vandret overflow + tilpasser hero ---- */
@media (max-width: 900px) {
  html, body { overflow-x: hidden; }
  .hero { padding-top: 40px; }
}
@media (max-width: 640px) {
  .hero-anim { padding: 26px 16px; }
  /* konkret max-bredde tvinger typewriter-teksten til at ombryde (undgår vandret overflow) */
  .ha-stage, .ha-word { max-width: 100%; min-width: 0; }
  .ha-letters { max-width: calc(100vw - 84px); min-width: 0; font-size: clamp(16px, 4.8vw, 21px); }
  .ha-brace { font-size: 1.1em; }

  /* Reklame-animationen vises også på mobil — scenerne stables kompakt (illustration over tekst) */
  .ha-show { height: 235px; max-width: 100%; }
  .ha-scene { flex-direction: column; gap: 10px; padding: 0 6px 16px; }
  .ha-art-app, .ha-art-web, .ha-art-shop { display: flex; flex-direction: column; align-items: center; gap: 10px; }
  .ha-art-app .ha-copy { order: 1; }
  .ha-art-app .ha-badges { order: 2; justify-content: center; }
  .ha-copy { text-align: center; max-width: 86vw; }
  .ha-copy h3 { font-size: 15.5px; }
  .ha-copy p { font-size: 12px; }
  .ha-phone { width: 54px; height: 96px; }
  .ha-screen { gap: 4px; }
  .ha-browser { width: 200px; height: 104px; }
  .ha-shopwrap { width: 120px; height: 86px; }
  .ha-cart { width: 54px; height: 54px; }

  .hero-contact-left .cc-hours span,
  .hero-contact-left .cc-row > span:not(.cc-status) { white-space: normal; min-width: 0; }
}

/* ===========================================================
   Hero
   =========================================================== */
.hero { position: relative; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 14px 7px 9px;
  border-radius: 999px;
  background: var(--chip-bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  font-size: 13.5px; font-weight: 600;
  color: var(--muted);
}
.eyebrow .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #4ec98a;
  box-shadow: 0 0 0 4px rgba(78,201,138,.18);
  animation: pulse 2s infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(78,201,138,0); } }

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.hero-meta { display: flex; gap: 26px; flex-wrap: wrap; }
.hero-meta .stat b {
  display: block; font-family: var(--font-display); font-size: 26px;
  font-weight: 800; color: var(--heading); letter-spacing: -.02em;
}
.hero-meta .stat span { font-size: 14px; color: var(--muted); }

/* floating support card visual */
.hero-visual { position: relative; }
.support-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 26px;
  box-shadow: var(--shadow-lg);
}
.support-card .sc-head { display: flex; align-items: center; gap: 13px; margin-bottom: 20px; }
.sc-avatar {
  width: 50px; height: 50px; border-radius: 16px;
  background: linear-gradient(135deg, var(--sky), var(--blue));
  display: grid; place-items: center; color: #fff; flex: none;
}
.sc-avatar svg { width: 26px; height: 26px; }
.sc-head .who b { display: block; color: var(--heading); font-weight: 700; }
.sc-head .who span { font-size: 13.5px; color: var(--muted); }
.sc-head .online { margin-left: auto; font-size: 12.5px; color: #3aa56e; font-weight: 700; display:flex; align-items:center; gap:6px;}
.sc-head .online i { width:8px;height:8px;border-radius:50%;background:#4ec98a;display:inline-block; }

.bubble {
  padding: 12px 16px; border-radius: 16px; font-size: 14.5px;
  max-width: 84%; margin-bottom: 12px; line-height: 1.45;
}
.bubble.them { background: var(--surface-2); color: var(--text); border-bottom-left-radius: 5px; }
.bubble.me {
  margin-left: auto; color: #1a2630; border-bottom-right-radius: 5px;
  background: linear-gradient(135deg, var(--sky), var(--blue));
}
.typing { display: inline-flex; gap: 5px; padding: 14px 16px; background: var(--surface-2); border-radius: 16px; border-bottom-left-radius:5px;}
.typing i { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); opacity: .5; animation: blink 1.2s infinite; }
.typing i:nth-child(2){ animation-delay:.2s } .typing i:nth-child(3){ animation-delay:.4s }
@keyframes blink { 0%,60%,100%{opacity:.35;transform:translateY(0)} 30%{opacity:1;transform:translateY(-3px)} }

.float-chip {
  position: absolute; display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 11px 15px; box-shadow: var(--shadow-md);
  font-weight: 700; font-size: 14px; color: var(--heading);
}
.float-chip svg { width: 20px; height: 20px; color: var(--blue); }
.float-chip.one { top: -22px; right: 18px; animation: floaty 5s ease-in-out infinite; }
.float-chip.two { bottom: -20px; left: -24px; animation: floaty 6s ease-in-out infinite .6s; }
@keyframes floaty { 50% { transform: translateY(-12px); } }

/* ===========================================================
   Trust strip (Trust & Authority style — brand palette only)
   =========================================================== */
.trust {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, color-mix(in srgb, var(--cream) 40%, var(--bg)), var(--bg));
}
[data-theme="dark"] .trust {
  background: linear-gradient(180deg, var(--surface-2), var(--bg));
}
.trust-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 22px; flex-wrap: wrap; padding: 22px 0;
}
.trust-label { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.trust-items { display: flex; gap: 14px; flex-wrap: wrap; }
.trust-item {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 15px; border-radius: 999px;
  background: var(--chip-bg); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  font-weight: 700; font-size: 14px; color: var(--heading);
  transition: transform .25s var(--ease), border-color .25s;
}
.trust-item:hover { transform: translateY(-3px); border-color: var(--accent); }
.trust-item svg { width: 18px; height: 18px; color: var(--blue); flex: none; }
[data-theme="dark"] .trust-item svg { color: var(--sky); }

/* ===========================================================
   Features
   =========================================================== */
.section { padding: 70px 0; }
.section-head { max-width: 620px; margin-bottom: 44px; }
.section-head .kicker { color: var(--accent); font-weight: 700; font-size: 14px; letter-spacing:.08em; text-transform: uppercase; }
.section-head h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2rem, 3.6vw, 2.9rem); letter-spacing: -.02em;
  color: var(--heading); margin: 10px 0 12px; line-height: 1.06;
}
.section-head p { color: var(--muted); font-size: 18px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.card .ico {
  width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center;
  margin-bottom: 18px; color: #1a2630;
  background: linear-gradient(135deg, var(--cream), var(--taupe));
}
.card:nth-child(2) .ico { background: linear-gradient(135deg, var(--sky), var(--blue)); color:#fff;}
.card:nth-child(3) .ico { background: linear-gradient(135deg, var(--taupe), var(--blue)); color:#fff;}
.card .ico svg { width: 27px; height: 27px; }
.card h3 { font-family: var(--font-display); font-size: 21px; color: var(--heading); margin-bottom: 8px; font-weight: 700; }
.card p { color: var(--muted); font-size: 15.5px; }

/* CTA band */
.cta-band {
  margin: 30px 0 0;
  border-radius: 28px;
  padding: 54px 48px;
  background: linear-gradient(130deg, var(--blue), var(--sky));
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
}
.cta-band::after {
  content:""; position:absolute; inset:auto -10% -60% auto; width:60%; height:160%;
  background: radial-gradient(circle, rgba(243,227,208,.5), transparent 60%);
}
.cta-band h2 { font-family: var(--font-display); color: #18242e; font-size: clamp(1.7rem,3vw,2.4rem); letter-spacing:-.02em; position: relative; }
.cta-band p { color: #1c2c37; opacity:.85; position: relative; margin-top:6px; }
.cta-band .btn-primary { background: #18242e; color: #fff; box-shadow: 0 12px 26px -10px rgba(0,0,0,.5); position:relative;}
.cta-band .btn-primary:hover { background:#0f1820;}

/* ===========================================================
   Footer
   =========================================================== */
.site-footer { border-top: 1px solid var(--border); margin-top: 80px; padding: 46px 0 38px; color: var(--muted); }
.foot-grid { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot-brand { display:flex; align-items:center; gap:11px; font-family:var(--font-display); font-weight:700; color:var(--heading); font-size:20px;}
.foot-brand .mark{width:34px;height:34px;}
.foot-brand b{color:var(--accent);}
.foot-links { display:flex; gap:22px; flex-wrap:wrap; }
.foot-links a:hover { color: var(--heading); }
.foot-copy { font-size:14px; }

/* ===========================================================
   Entrance animations
   =========================================================== */
.reveal { opacity: 0; transform: translateY(18px); animation: rise .8s var(--ease) forwards; }
.d1{animation-delay:.05s}.d2{animation-delay:.15s}.d3{animation-delay:.25s}
.d4{animation-delay:.35s}.d5{animation-delay:.45s}.d6{animation-delay:.55s}
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce){ .reveal{animation:none;opacity:1;transform:none} *{scroll-behavior:auto!important} }

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 46px; }
  .hero-visual { max-width: 460px; margin-inline: auto; width: 100%; }
  .cards { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .menu-btn {
    display: grid; place-items: center; width: 44px; height: 44px;
    border-radius: 50%; border: 1px solid var(--border); background: var(--chip-bg);
    color: var(--heading); cursor: pointer; box-shadow: var(--shadow-sm);
  }
  .nav-links {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--nav-bg); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border); padding: 14px 24px 20px;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: .25s var(--ease);
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 13px 14px; font-size: 17px; }
  .nav-links a.active::after { display:none; }
  .nav .btn-primary.header-cta { display: none; }
  .cta-band { padding: 38px 26px; }
}

/* ===========================================================
   Customer portal
   =========================================================== */
.portal { max-width: 920px; margin-inline: auto; padding: 48px 24px 80px; }
.portal-narrow { max-width: 720px; }
.portal-h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.7rem, 3.4vw, 2.3rem); letter-spacing: -.02em; color: var(--heading); margin: 0 0 8px; }
.portal-lead { color: var(--muted); font-size: 1.05rem; margin: 0 0 28px; }
.portal-email { font-size: 14px; color: var(--muted); }

.back-link { display: inline-block; color: var(--muted); font-weight: 600; font-size: 14px; margin-bottom: 18px; }
.back-link:hover { color: var(--heading); }

/* request list */
.req-card {
  display: flex; align-items: center; gap: 18px;
  border: 1px solid var(--border); border-radius: 12px;
  padding: 18px 20px; margin-bottom: 14px;
  background: var(--surface); transition: border-color .2s, transform .2s;
}
a.req-card:hover { border-color: var(--blue); transform: translateY(-2px); }
.req-main { min-width: 0; flex: 1; }
.req-msg { color: var(--heading); font-weight: 500; margin: 0 0 4px; }
.req-meta { color: var(--muted); font-size: 13px; margin: 0; }
.req-side { display: flex; align-items: center; gap: 10px; flex: none; }

/* status badge */
.status-badge {
  display: inline-block; padding: 5px 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .01em; white-space: nowrap;
  border: 1px solid transparent;
}
.status-ny       { background: #eef4fb; color: #2f628f; border-color: #cfe0f1; }
.status-i_gang   { background: #fff5e6; color: #9a6512; border-color: #f3dcb4; }
.status-afventer { background: #fdeeee; color: #a63d3d; border-color: #f3cccc; }
.status-faerdig  { background: #eaf7ef; color: #2f7d4f; border-color: #c7e8d3; }
[data-theme="dark"] .status-badge { background: var(--surface-2); color: var(--text); border-color: var(--border); }

.unread-dot {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--blue-700); color: #fff; font-size: 12px; font-weight: 700;
  display: grid; place-items: center;
}

/* task detail + chat */
.task-head { margin-bottom: 24px; }
.task-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 24px; align-items: start; }
.task-detail, .chat {
  border: 1px solid var(--border); border-radius: 14px; padding: 22px; background: var(--surface);
}
.task-label { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; margin: 0 0 6px; }
.task-detail .task-label:not(:first-child) { margin-top: 18px; }
.task-text { color: var(--heading); margin: 0; white-space: pre-line; line-height: 1.6; }

.chat { display: flex; flex-direction: column; }
.chat-thread { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 16px; max-height: 420px; overflow-y: auto; }
.chat-empty { color: var(--muted); font-size: 14px; }
.bubble {
  max-width: 85%; padding: 10px 14px; border-radius: 14px; font-size: 14.5px; line-height: 1.45;
  position: relative; color: var(--heading);
}
.bubble .bubble-who { display: block; font-size: 11px; font-weight: 700; opacity: .7; margin-bottom: 2px; }
.bubble .bubble-time { display: block; font-size: 11px; opacity: .55; margin-top: 4px; }
.bubble.them { align-self: flex-start; background: var(--surface-2); border-bottom-left-radius: 4px; }
.bubble.me { align-self: flex-end; background: color-mix(in srgb, var(--blue) 22%, var(--surface)); border-bottom-right-radius: 4px; }
.chat-form { display: flex; gap: 10px; align-items: flex-end; }
.chat-form textarea {
  flex: 1; font: inherit; font-size: 15px; color: var(--heading);
  background: transparent; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; outline: none; resize: vertical;
}
.chat-form textarea:focus { border-color: var(--blue); }

@media (max-width: 720px) {
  .task-grid { grid-template-columns: 1fr; }
}

/* ===========================================================
   Ticket thread (customer task page)
   =========================================================== */
.ticket-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 6px; }
.ticket-head .portal-h1 { margin: 0; }
.ticket-meta { color: var(--muted); font-size: 14px; margin: 0 0 26px; }

.thread {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: transparent;
  margin: 18px 0; overflow: hidden;
}
.thread-toggle {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px; font-weight: 700; color: var(--heading);
  cursor: pointer; user-select: none; list-style: none;
}
.thread-toggle::-webkit-details-marker { display: none; }
.thread-count {
  background: color-mix(in srgb, var(--blue) 18%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--blue) 35%, var(--border));
  color: var(--blue-700);
  font-size: 12.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px;
}
[data-theme="dark"] .thread-count { color: var(--sky); }
.thread-chev { margin-left: auto; width: 18px; height: 18px; color: var(--blue-700); transition: transform .2s var(--ease); }
[data-theme="dark"] .thread-chev { color: var(--sky); }
.thread[open] .thread-chev { transform: rotate(180deg); }
.thread-body {
  padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 14px;
  border-top: 1px solid color-mix(in srgb, var(--blue) 22%, var(--border));
}

/* customer message — cream/taupe accent */
.msg-card {
  border: 1px solid color-mix(in srgb, var(--taupe) 60%, var(--border));
  border-radius: 11px; padding: 16px 18px;
  background: color-mix(in srgb, var(--cream) 30%, var(--surface));
  box-shadow: inset 3px 0 0 var(--taupe), 0 6px 16px -12px rgba(210,196,180,.7);
}
/* admin message — blue/sky accent */
.msg-card.admin {
  border-color: color-mix(in srgb, var(--blue) 55%, var(--border));
  background: color-mix(in srgb, var(--sky) 22%, var(--surface));
  box-shadow: inset 3px 0 0 var(--blue), 0 8px 18px -12px rgba(129,166,198,.75);
}
.msg-user { width: 15px; height: 15px; color: color-mix(in srgb, var(--taupe) 45%, var(--heading)); flex: none; }
.msg-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 2px 12px; margin-bottom: 10px; }
.msg-who { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 7px; }
.msg-name { font-weight: 700; color: var(--heading); }
.msg-card.admin .msg-name { color: var(--blue-700); }
[data-theme="dark"] .msg-card.admin .msg-name { color: var(--sky); }
.msg-role { color: var(--muted); font-size: 13px; }
.msg-bolt { width: 15px; height: 15px; color: var(--blue-700); flex: none; }
[data-theme="dark"] .msg-bolt { color: var(--sky); }
.msg-time { color: var(--muted); font-size: 12.5px; font-style: italic; white-space: nowrap; margin-left: auto; }
.msg-body { color: var(--text); line-height: 1.6; white-space: pre-line; }

/* header login link */
.login-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; font-weight: 400; color: var(--muted);
  padding: 8px 6px; transition: color .2s var(--ease);
}
.login-link:hover { color: var(--heading); }
.login-link svg { width: 19px; height: 19px; }
@media (max-width: 540px) { .login-link span { display: none; } }

/* login circle — same style as theme/flag toggles */
.icon-circle {
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--border);
  background: var(--chip-bg); color: var(--heading);
  box-shadow: var(--shadow-sm); cursor: pointer;
  transition: transform .25s var(--ease), border-color .25s;
  flex: none;
}
.icon-circle:hover { transform: translateY(-2px) rotate(-8deg); border-color: var(--accent); }
.icon-circle svg { width: 20px; height: 20px; }

/* profile — kundetype radios */
.radio-row { display: flex; gap: 10px; flex-wrap: wrap; }
.radio-pill {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--border); border-radius: 8px; padding: 10px 16px;
  cursor: pointer; font-size: 15px; color: var(--heading); user-select: none;
  transition: border-color .2s, background .2s;
}
.radio-pill:has(input:checked) { border-color: var(--blue); background: color-mix(in srgb, var(--blue) 12%, var(--surface)); }
.radio-pill input[type="radio"] {
  width: 16px; height: 16px; flex: none; margin: 0;
  padding: 0; border-radius: 50%; background: transparent;
  accent-color: var(--blue-700);
}
.portal-actions { display: inline-flex; align-items: center; gap: 10px; }

/* contact card with open/closed indicator */
.contact-card { display: block; padding: 18px; }
.cc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.cc-title { font-weight: 700; color: var(--heading); font-size: 15px; }
.cc-status { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 700; white-space: nowrap; flex: none; padding-left: 5px; }
.cc-status.is-open { color: #2f8a5b; }
.cc-status.is-closed { color: #c0453f; }
.cc-status .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.cc-status.is-open .dot { background: #3aa56e; animation: pulse-dot 1.8s infinite; }
.cc-status.is-closed .dot { background: #d14343; }
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(58,165,110,.55); }
  70% { box-shadow: 0 0 0 8px rgba(58,165,110,0); }
  100% { box-shadow: 0 0 0 0 rgba(58,165,110,0); }
}
.cc-row { display: flex; align-items: center; gap: 8px; padding: 9px 0; color: var(--heading); font-weight: 400; font-size: 12px; transition: color .2s; }
.cc-row > span:not(.cc-status) { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-row + .cc-row,
.cc-hours + .cc-row { border-top: 1px solid var(--border); }
.cc-row svg { width: 16px; height: 16px; color: var(--blue); flex: none; }
[data-theme="dark"] .cc-row svg { color: var(--sky); }
.cc-row:hover { color: var(--blue-700); }
[data-theme="dark"] .cc-row:hover { color: var(--sky); }
.cc-row .cc-status { margin-left: auto; }
.cc-hours { display: flex; align-items: center; gap: 10px; padding: 11px 0 4px; margin-top: 4px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13.5px; }
.cc-hours svg { width: 17px; height: 17px; color: var(--muted); flex: none; }

/* attachment in chat message */
.msg-attach { display: inline-flex; flex-direction: column; gap: 6px; margin-top: 8px; max-width: 220px; }
.msg-attach img { width: 100%; border-radius: 8px; border: 1px solid var(--border); display: block; }
.msg-attach span { font-size: 12.5px; color: var(--blue-700); font-weight: 600; }
[data-theme="dark"] .msg-attach span { color: var(--sky); }

/* attach-files box */
.attach-box { margin-top: 22px; border: 1px solid var(--border); border-radius: 12px; padding: 18px; background: var(--surface); }
.attach-head { display: flex; align-items: center; gap: 9px; font-weight: 700; color: var(--heading); margin-bottom: 8px; }
.attach-head svg { width: 18px; height: 18px; color: var(--blue); }
[data-theme="dark"] .attach-head svg { color: var(--sky); }
.attach-note { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.attach-note.ok { color: #2f8a5b; font-weight: 600; }
.attach-note.pending { color: #9a6512; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.attach-note .pdot { width: 9px; height: 9px; border-radius: 50%; background: #e0a93a; flex: none; animation: pulse-dot 1.8s infinite; }
.attach-form { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.attach-form input[type="file"] { font: inherit; font-size: 14px; color: var(--text); max-width: 100%; }
.attach-form input[type="file"]::file-selector-button {
  font: inherit; font-size: 13px; font-weight: 600;
  margin-right: 10px; padding: 8px 14px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--heading); cursor: pointer;
}

/* handelsbetingelser */
.terms-box { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); margin: 0 0 22px; overflow: hidden; }
.terms-toggle { display: flex; align-items: center; gap: 12px; padding: 14px 18px; cursor: pointer; user-select: none; list-style: none; }
.terms-toggle::-webkit-details-marker { display: none; }
.terms-title { font-weight: 700; color: var(--heading); }
.terms-ok { font-size: 13px; font-weight: 700; color: #2f8a5b; }
.terms-pending { font-size: 13px; font-weight: 700; color: #9a6512; }
.terms-toggle .thread-chev { margin-left: auto; }
.terms-body { padding: 4px 18px 18px; border-top: 1px solid var(--border); }
.terms-text {
  white-space: pre-line; color: var(--text); font-size: 14px; line-height: 1.6;
  max-height: 260px; overflow-y: auto; padding: 14px 0; margin-bottom: 6px;
}
.terms-accept { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--heading); cursor: pointer; }
.terms-accept input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--blue-700); flex: none; }
.terms-accept input:disabled { cursor: default; }

/* draft approval box */
.draft-box { border: 1px solid color-mix(in srgb, var(--blue) 35%, var(--border)); border-radius: 12px; padding: 16px 18px; margin: 0 0 20px; background: color-mix(in srgb, var(--sky) 12%, var(--surface)); }
.draft-box.is-approved { border-color: color-mix(in srgb, #4ec98a 45%, var(--border)); background: color-mix(in srgb, #4ec98a 12%, var(--surface)); }
.draft-text { color: var(--text); font-size: 14.5px; margin: 0 0 12px; }
.draft-row { display: flex; align-items: center; gap: 10px; color: var(--heading); font-size: 14.5px; }
.draft-row svg { width: 20px; height: 20px; color: #2f8a5b; flex: none; }

/* task page two-column layout */
.task-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; align-items: start; }
.task-main { min-width: 0; }
.task-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 96px; }
.side-card { border: 1px solid var(--border); border-radius: 12px; padding: 18px; background: var(--surface); }
.side-title { font-size: 15px; font-weight: 700; color: var(--heading); margin: 0 0 12px; }
.side-btn { width: 100%; justify-content: center; border-radius: 8px !important; }
.side-pending { display: flex; align-items: center; gap: 8px; color: #9a6512; font-weight: 600; font-size: 14px; margin: 0; }
.side-pending .pdot { width: 9px; height: 9px; border-radius: 50%; background: #e0a93a; flex: none; animation: pulse-dot 1.8s infinite; }
.side-divider { height: 1px; background: var(--border); margin: 16px 0; }
.side-note { color: var(--muted); font-size: 13.5px; margin: 0 0 12px; line-height: 1.5; }
.side-approved { display: flex; align-items: flex-start; gap: 8px; color: #2f8a5b; font-weight: 700; font-size: 14px; margin: 0; }
.side-approved svg { width: 18px; height: 18px; flex: none; color: #2f8a5b; }
.side-approved small { color: var(--muted); font-weight: 400; }
@media (max-width: 820px) { .task-layout { grid-template-columns: 1fr; } .task-side { position: static; } }

/* Login — one-time code */
.login-email-shown { font-weight: 700; color: var(--heading); margin: -10px 0 20px; }
.code-input { letter-spacing: .35em; font-size: 1.4rem; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.field-hint { display: block; color: var(--muted); font-size: 12.5px; margin-top: 5px; }
.login-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.login-actions .btn { flex: 1 1 0; min-width: 140px; justify-content: center; }
.link-btn { background: none; border: 0; padding: 0; cursor: pointer; color: var(--blue-700); font-weight: 600; font-size: 14px; }
.link-btn:hover { text-decoration: underline; }
[data-theme="dark"] .link-btn { color: var(--sky); }

/* Offers — customer picks one */
.offers { margin: 18px 0 26px; }
.offers-title { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; color: var(--heading); margin: 0 0 14px; }
.offers-chosen-msg { display: flex; align-items: center; gap: 8px; color: #2f8a5b; font-weight: 700; font-size: 14.5px; margin: 0 0 16px; }
.offers-chosen-msg svg { width: 18px; height: 18px; flex: none; }
.offers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: stretch; }
.offer-card {
  position: relative;
  height: 100%;
  display: flex; flex-direction: column;
  border: 1px solid var(--border); border-radius: 14px;
  padding: 20px 18px; background: var(--surface);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.offer-card:hover { border-color: var(--blue-700); box-shadow: 0 10px 24px -16px rgba(74,113,147,.7); }
.offer-card.chosen { border-color: #2f8a5b; box-shadow: inset 0 0 0 1px #2f8a5b; }
.offer-card.dimmed { opacity: .55; }
.offer-card.dimmed:hover { border-color: var(--border); box-shadow: none; }
.offer-badge {
  position: absolute; top: 12px; right: 12px;
  display: inline-flex; align-items: center; gap: 4px;
  background: #2f8a5b; color: #fff; font-weight: 700; font-size: 12px;
  padding: 4px 9px; border-radius: 999px;
}
.offer-name { font-size: 1.05rem; font-weight: 700; color: var(--heading); margin: 0 0 4px; }
.offer-price { font-size: 1.25rem; font-weight: 700; color: var(--blue-700); margin: 0 0 10px; }
[data-theme="dark"] .offer-price { color: var(--sky); }
.offer-desc { color: var(--text); font-size: 14px; line-height: 1.55; white-space: pre-line; margin: 0 0 16px; }
.offer-btn { width: 100%; justify-content: center; margin-top: auto; border-radius: 8px !important; background: var(--blue-700); color: #fff; }
@media (max-width: 700px) { .offers-grid { grid-template-columns: 1fr; } }

/* ===========================================================
   Referenceside — browser-ramme-kort med scroll-on-hover
   =========================================================== */
.ref-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
/* Foldbare sektioner (Hjemmesider, Webshops & systemer, apps …) */
.ref-section {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  margin-bottom: 18px;
  overflow: hidden;
  transition: box-shadow .25s var(--ease);
}
.ref-section[open] { box-shadow: var(--shadow-sm); }
.ref-section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.ref-section-head::-webkit-details-marker { display: none; }
.ref-section-head:hover .ref-section-title { color: var(--accent); }
.ref-section-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -.3px;
  color: var(--heading);
  transition: color .2s var(--ease);
}
.ref-section-count {
  font-size: .78rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 11px;
}
.ref-section-chevron {
  margin-left: auto;
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--muted);
  transition: transform .25s var(--ease);
}
.ref-section[open] .ref-section-chevron { transform: rotate(180deg); }
.ref-section .ref-grid { padding: 2px 24px 28px; }
.ref-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.ref-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.ref-bar {
  height: 32px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.ref-bar i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.ref-bar i:nth-child(1) { background: #FF5F57; }
.ref-bar i:nth-child(2) { background: #FEBC2E; }
.ref-bar i:nth-child(3) { background: #28C840; }
.ref-url {
  flex: 1;
  margin-left: 8px;
  font-size: 12px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 3px 12px;
  border-radius: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ref-shot {
  height: 230px;
  overflow: hidden;
  position: relative;
  background: var(--surface-2);
}
.ref-shot img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top;
  transition: object-position 3.5s ease;
}
.ref-card:hover .ref-shot img { object-position: bottom; }
.ref-ph {
  height: 230px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: -.2px;
  background:
    radial-gradient(120% 120% at 0 0, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%),
    radial-gradient(120% 120% at 100% 100%, color-mix(in srgb, var(--taupe) 30%, transparent), transparent 60%),
    var(--surface-2);
}
.ref-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px;
}
.ref-info b { display: block; color: var(--heading); font-size: 1rem; letter-spacing: -.2px; }
.ref-info span { color: var(--muted); font-size: .86rem; }
.ref-visit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  font-weight: 600;
  font-size: .9rem;
  color: var(--blue-700);
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: background .2s, color .2s;
}
.ref-visit:hover { background: var(--accent); color: var(--bg); }
[data-theme="dark"] .ref-visit { color: var(--sky); }
.ref-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 44px;
  text-align: center;
}
.ref-cta p { margin: 0; font-size: 1.1rem; font-weight: 600; color: var(--heading); }
/* CTA-knap: samme kantede stil som hero-formularens knap (mindre radius) */
.ref-cta .btn-primary { border-radius: 8px; background: var(--blue); color: #1e2c37; box-shadow: none; }
.ref-cta .btn-primary:hover { background: #6f97b8; }
[data-theme="dark"] .ref-cta .btn-primary { background: var(--blue); color: #11171d; }
[data-theme="dark"] .ref-cta .btn-primary:hover { background: var(--sky); }
@media (max-width: 540px) {
  .ref-grid { grid-template-columns: 1fr; }
  .ref-section-head { padding: 16px 16px; }
  .ref-section .ref-grid { padding: 2px 16px 22px; }
  .ref-section-title { font-size: 1.05rem; }
}
