/* Skrifter ligger på vores eget domæne (ingen opslag hos Google). Latin-udsnit inkl. æ, ø og å. */
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(fonts/inter.woff2) format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-display: swap; font-weight: 300 700; src: url(fonts/space-grotesk.woff2) format('woff2'); }

:root {
  --brand: #f2b705;
  --brand-deep: #d99f00;
  --brand-soft: #fff4cc;
  --ink: #141414;
  --ink-2: #1f1f1f;
  --text: #1b1b1b;
  --muted: #5c5a55;
  --paper: #faf8f2;
  --card: #ffffff;
  --line: #e7e2d6;
  --green: #1a9e4b;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 20, 20, 0.06), 0 12px 32px rgba(20, 20, 20, 0.08);
  --head: 'Space Grotesk', 'Segoe UI', sans-serif;
  --body: 'Inter', 'Segoe UI', sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--paper); color: var(--text); font: 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 700; }
h3 { font-size: 20px; font-weight: 600; }
p { margin: 0; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }

/* Knapper */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 16px var(--body); text-decoration: none; padding: 14px 24px; border-radius: 999px; border: 2px solid transparent; transition: transform 0.15s, background 0.15s, box-shadow 0.15s; cursor: pointer; }
.btn:hover { transform: translateY(-1px); }
.btn-brand { background: var(--brand); color: var(--ink); box-shadow: 0 6px 0 var(--brand-deep); }
.btn-brand:hover { box-shadow: 0 8px 0 var(--brand-deep); }
.btn-brand:active { transform: translateY(3px); box-shadow: 0 3px 0 var(--brand-deep); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-sm { padding: 9px 18px; font-size: 15px; }
.btn-block { width: 100%; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(250, 248, 242, 0.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 32px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 20px var(--head); letter-spacing: -0.02em; }
.logo svg { width: 32px; height: 32px; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 96px;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 40px 40px; background-position: calc(-1px + var(--gx, 0px)) calc(-1px + var(--gy, 0px)); transition: background-position 0.4s ease-out; }
.hero::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 40%, transparent 0%, var(--paper) 75%); pointer-events: none; }
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: 0.9fr 1.3fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; background: var(--card); border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; margin-bottom: 24px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(26, 158, 75, 0.18); }
h1 { font-size: clamp(40px, 4.4vw, 62px); font-weight: 700; letter-spacing: -0.035em; }
mark { background: linear-gradient(var(--brand), var(--brand)) no-repeat 0 88% / 100% 34%; color: inherit; padding: 0 4px; }
.lead { font-size: 19px; color: var(--muted); margin: 24px 0 32px; max-width: 520px; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.partner-line { margin-top: 28px; font-size: 14px; color: var(--muted); }
.partner-line strong { color: var(--ink); }

.hero-shot { position: relative; }
.hero-shot::before { content: ''; position: absolute; inset: 28px -24px -24px 28px; background: var(--brand); border-radius: 22px; }
.frame { position: relative; background: var(--card); border-radius: 16px; overflow: hidden; box-shadow: 0 30px 60px rgba(20, 20, 20, 0.2); border: 1px solid var(--line); }
.frame-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: #f1eee6; border-bottom: 1px solid var(--line); }
.frame-bar i { width: 11px; height: 11px; border-radius: 50%; background: #d6d1c4; }
.frame-bar span { margin-left: 10px; font-size: 12px; color: var(--muted); }
.badge-float { position: absolute; right: 20px; top: -18px; display: flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow); }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: #3ddc84; animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.6); } 70% { box-shadow: 0 0 0 10px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }

/* Interaktivt selvhold */
.demo { user-select: none; -webkit-user-select: none; }
.demo-svg { display: block; width: 100%; height: auto; background: #fff; }
.demo-svg .pb { touch-action: none; }
.demo-svg .w { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.2s; }
.demo-svg .rail-l, .demo-svg .w.live { stroke: #e8590c; }
.demo-svg .w.flow { stroke: var(--green); stroke-width: 3.5; stroke-dasharray: 8 7; animation: flow 0.55s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -15; } }
.demo-svg .blade { transition: transform 0.14s cubic-bezier(0.3, 1.6, 0.5, 1), stroke 0.2s; }
.demo-svg .blade.open { transform: rotate(-26deg); }
.demo-svg .coil { fill: #fff; stroke: var(--ink); stroke-width: 3; transition: fill 0.2s; }
.demo-svg .coil.on { fill: #3ddc84; }
.demo-svg .lamp circle { fill: #fff; stroke: var(--ink); stroke-width: 3; transition: fill 0.2s, filter 0.3s; }
.demo-svg .lamp path { stroke: var(--ink); stroke-width: 2.5; }
.demo-svg .lamp.on circle { fill: #ffd23f; filter: drop-shadow(0 0 14px rgba(255, 196, 0, 0.95)); }
.demo-svg .dots circle { fill: var(--ink); }
.demo-svg .lbl { font: 600 15px var(--body); fill: var(--ink); }
.demo-svg .lbl.sm { font-size: 11px; font-weight: 500; fill: var(--muted); }
.demo-svg .lbl.big { font: 700 18px var(--head); }
.demo-svg .pb { cursor: pointer; outline: none; }
.demo-svg .pb .hit { fill: transparent; }
.demo-svg .pb .act { stroke: var(--ink); stroke-width: 2; stroke-dasharray: 4 4; }
.demo-svg .pb .knob { fill: var(--brand); stroke: var(--ink); stroke-width: 2.5; transition: transform 0.1s; }
.demo-svg .pb:hover .knob { fill: #ffcd2e; }
.demo-svg .pb.down .knob { transform: translateX(7px); }
.demo-svg .pb:focus-visible .knob { stroke: #1f6feb; stroke-width: 4; }
.demo-ctrl { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 16px; border-top: 1px solid var(--line); background: var(--card); }
.hold { font: 600 14px var(--body); border-radius: 999px; padding: 9px 16px; border: 2px solid var(--ink); background: #fff; color: var(--ink); cursor: pointer; touch-action: none; transition: transform 0.1s, background 0.15s; }
.hold.start { background: var(--brand); }
.hold.down { transform: translateY(2px) scale(0.97); background: var(--ink); color: #fff; }
.demo-status { margin-left: auto; font-size: 14px; font-weight: 600; color: var(--muted); transition: color 0.2s; }
.demo.running .demo-status { color: var(--green); }
.demo-legend { display: flex; gap: 16px; flex-wrap: wrap; padding: 0 16px 14px; background: var(--card); font-size: 12px; color: var(--muted); }
.demo-legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg { display: inline-block; width: 18px; height: 0; border-top: 3px solid var(--ink); }
.lg.flow { border-top: 3px dashed var(--green); }
.lg.live { border-color: #e8590c; }
.badge-float { transition: opacity 0.4s, transform 0.4s; }
.badge-float.hide { opacity: 0; transform: translateY(8px); pointer-events: none; }

/* Scroll-streg under menuen */
.scroll-bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--brand); transform: scaleX(0); transform-origin: 0 50%; }

/* Animationer (kun med JavaScript og uden "reducer bevægelse") */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-copy > * { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .js .hero-copy > :nth-child(2) { animation-delay: 0.08s; }
  .js .hero-copy > :nth-child(3) { animation-delay: 0.16s; }
  .js .hero-copy > :nth-child(4) { animation-delay: 0.24s; }
  .js .hero-copy > :nth-child(5) { animation-delay: 0.32s; }
  .js .hero-shot { animation: rise 0.9s 0.15s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .js mark { animation: highlight 0.8s 0.6s cubic-bezier(0.6, 0, 0.2, 1) both; }
  .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .reveal.in { opacity: 1; transform: none; }
  .show-img img { transition: transform 0.25s ease-out; will-change: transform; }
}
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes highlight { from { background-size: 0% 34%; } to { background-size: 100% 34%; } }
@media (prefers-reduced-motion: reduce) {
  .demo-svg .w.flow { animation: none; stroke-dasharray: none; }
  .pulse { animation: none; }
  html { scroll-behavior: auto; }
}

/* Tal */
.stats { background: var(--ink); color: #fff; }
.stats-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats-in div { padding: 28px 16px; display: flex; flex-direction: column; align-items: center; gap: 2px; border-left: 1px solid #2c2c2c; }
.stats-in div:first-child { border-left: 0; }
.stats strong { font: 700 40px var(--head); color: var(--brand); }
.stats span { font-size: 14px; color: #bdb9ae; }

/* Sektioner */
.section { padding: 112px 0; }
.kicker { font: 600 13px var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand-deep); margin-bottom: 14px; }
.sub { font-size: 19px; color: var(--muted); max-width: 620px; margin-top: 16px; }

.grid-6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.feat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.feat:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand); }
.feat p { color: var(--muted); font-size: 16px; margin-top: 10px; }
.ico { width: 48px; height: 48px; border-radius: 12px; background: var(--brand-soft); display: grid; place-items: center; margin-bottom: 20px; }
.ico svg { width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Showcase */
.showcase { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.show-row { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: center; }
.show-row + .show-row { margin-top: 112px; }
.show-row.rev .show-copy { order: 2; }
.show-copy h2 { font-size: clamp(28px, 3.4vw, 38px); }
.show-copy > p { color: var(--muted); margin-top: 18px; }
.show-img img { border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before { content: ''; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141414' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* Mørk sektion */
.dark { background: var(--ink); color: #fff; }
.dark .kicker { color: var(--brand); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.who { background: var(--ink-2); border: 1px solid #2e2e2e; border-radius: var(--radius); padding: 32px; }
.who p { color: #bdb9ae; margin-top: 12px; font-size: 16px; }
.who-tag { display: inline-block; font-size: 13px; font-weight: 600; background: var(--brand); color: var(--ink); padding: 4px 12px; border-radius: 999px; margin-bottom: 20px; }

/* Trin */
.steps { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.steps li { position: relative; padding: 28px; border-top: 3px solid var(--ink); }
.steps span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--brand); font: 700 20px var(--head); margin-bottom: 18px; }
.steps p { color: var(--muted); margin-top: 8px; font-size: 16px; }

/* Priser */
.pricing { background: var(--brand-soft); text-align: center; }
.pricing h2 { margin: 0 auto; }
.billing { display: inline-flex; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin-top: 32px; }
.billing button { font: 600 15px var(--body); border: 0; background: transparent; padding: 10px 20px; border-radius: 999px; cursor: pointer; color: var(--muted); }
.billing button[aria-pressed='true'] { background: var(--ink); color: #fff; }
.billing em { font-style: normal; font-size: 12px; background: var(--brand); color: var(--ink); padding: 2px 8px; border-radius: 999px; margin-left: 6px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; text-align: left; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 32px; }
.plan.featured { border: 2px solid var(--ink); box-shadow: 0 20px 40px rgba(20, 20, 20, 0.12); }
.ribbon { position: absolute; top: -13px; left: 32px; background: var(--ink); color: var(--brand); font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 999px; }
.plan-for { color: var(--muted); font-size: 15px; margin-top: 4px; }
.price { margin-top: 24px; color: var(--muted); }
.price strong { font: 700 48px var(--head); color: var(--ink); letter-spacing: -0.03em; }
.price .price-text { font-size: 34px; }
.billed { font-size: 14px; color: var(--muted); min-height: 22px; }
.plan .checks { margin: 24px 0 32px; flex: 1; font-size: 15px; align-content: start; }
.fine { margin-top: 28px; font-size: 14px; color: var(--muted); }
.sub.center { margin-left: auto; margin-right: auto; }
.offer { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; max-width: 860px; margin: 48px auto 0; text-align: left; align-items: stretch; }
.offer form { margin: 0; }
.pay-error { max-width: 560px; margin: 24px auto 0; background: #fdecea; color: #8a1c13; border: 1px solid #f3b8b1; border-radius: 12px; padding: 12px 16px; font-size: 15px; }
.pay-note { text-align: center; font-size: 13px; color: var(--muted); margin-top: 12px; }
details a, .fine a { color: var(--ink); }
.final .cta-row { justify-content: center; }
.final .btn-ghost:hover { background: var(--ink); color: var(--brand); }

/* Undersider: tak, handelsbetingelser, privatliv */
.page { padding: 72px 0 112px; }
.doc { max-width: 760px; }
.doc h1 { font-size: clamp(34px, 4.4vw, 48px); margin-bottom: 12px; }
.doc h2 { font-size: 22px; margin: 40px 0 10px; }
.doc p, .doc li { color: #34322e; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 20px; }
.doc .updated { color: var(--muted); font-size: 15px; }
.doc .todo { background: var(--brand-soft); border: 1px dashed var(--brand-deep); padding: 1px 6px; border-radius: 6px; }

.thanks { text-align: center; max-width: 640px; margin: 0 auto; }
.thanks h1 { font-size: clamp(34px, 4.4vw, 52px); }
.thanks .lead { margin: 16px auto 32px; }
.key-box { display: flex; align-items: center; gap: 12px; justify-content: center; flex-wrap: wrap; background: var(--ink); color: var(--brand); border-radius: 16px; padding: 22px 24px; }
.key-box code { font: 700 clamp(20px, 3.4vw, 28px) Consolas, 'Courier New', monospace; letter-spacing: 1px; }
.key-box button { font: 600 14px var(--body); border: 1px solid #3a3a3a; background: transparent; color: #fff; border-radius: 999px; padding: 8px 16px; cursor: pointer; }
.key-box button:hover { border-color: var(--brand); }
.thanks .mail-note { margin-top: 14px; color: var(--muted); font-size: 15px; }
.thanks-steps { text-align: left; margin: 40px auto 32px; display: grid; gap: 14px; counter-reset: s; list-style: none; padding: 0; }
.thanks-steps li { display: flex; gap: 14px; align-items: flex-start; }
.thanks-steps li::before { counter-increment: s; content: counter(s); flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--brand); font: 700 16px var(--head); }
.state-box { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.spinner { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--brand-deep); border-radius: 50%; margin: 0 auto 14px; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-links a { color: #bdb9ae; font-size: 14px; text-decoration: none; }
.foot-links a:hover { color: #fff; }

/* Partner */
.partner { padding: 80px 0; }
.partner-in { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; }
.partner-logos { display: flex; align-items: center; gap: 24px; font: 700 26px var(--head); }
.pl-mark { display: inline-flex; align-items: center; gap: 10px; }
.pl-mark svg { width: 40px; height: 40px; }
.pl-x { color: var(--muted); font-weight: 500; }
.pl-elk { padding: 6px 16px; border: 2px dashed var(--line); border-radius: 10px; color: var(--muted); }
.partner p { max-width: 560px; color: var(--muted); }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 4px 0; }
details:first-of-type { margin-top: 40px; border-top: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font: 600 18px var(--head); }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font: 500 26px var(--body); transition: transform 0.2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); padding: 0 0 22px; }

/* Afslutning */
.final { background: var(--brand); padding: 96px 0; text-align: center;
  background-image: linear-gradient(rgba(20, 20, 20, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(20, 20, 20, 0.06) 1px, transparent 1px);
  background-size: 40px 40px; }
.final-in { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.final h2 { font-size: clamp(34px, 5vw, 56px); }
.final p { font-size: 19px; margin-bottom: 12px; }

/* Footer */
.foot { background: var(--ink); color: #fff; padding: 40px 0; }
.foot-in { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot-in p { color: #bdb9ae; font-size: 14px; }
.foot .muted { margin-left: auto; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 10px; font-size: 15px; box-shadow: var(--shadow); z-index: 20; }

/* Tablet */
@media (max-width: 960px) {
  .hero-in, .show-row { grid-template-columns: 1fr; gap: 48px; }
  .show-row.rev .show-copy { order: 0; }
  .grid-6 { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .steps, .plans, .offer { grid-template-columns: 1fr; }
  .plans, .offer { max-width: 460px; margin-left: auto; margin-right: auto; }
}

/* Mobil */
@media (max-width: 680px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav-links { display: none; }
  .nav-in { justify-content: space-between; }
  .hero { padding: 40px 0 72px; }
  .lead { font-size: 17px; }
  .hero-shot::before { inset: 16px -8px -12px 16px; }
  .badge-float { display: none; }
  .demo-status { margin-left: 0; width: 100%; }
  .stats-in { grid-template-columns: repeat(2, 1fr); }
  .stats-in div:nth-child(3) { border-left: 0; }
  .stats-in div:nth-child(n + 3) { border-top: 1px solid #2c2c2c; }
  .section { padding: 72px 0; }
  .grid-6 { grid-template-columns: 1fr; }
  .show-row + .show-row { margin-top: 72px; }
  .partner-logos { flex-direction: column; gap: 8px; }
  .foot .muted { margin-left: 0; }
}
