@font-face { font-family: Gotham; src: url(fonts/Gotham-Light.woff2) format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: Gotham; src: url(fonts/Gotham-Book.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Gotham; src: url(fonts/Gotham-Medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: Gotham; src: url(fonts/Gotham-Bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --moerk: #313a42;      /* baggrund-moerk */
  --petrol: #49657d;     /* symbol-moerk */
  --dis: #8da8ae;        /* symbol-lys */
  --tekst: #4a5564;
  --orange: #e18f60;
  --graa: #bdc3c7;
  --lys: #eef0f1;
  --god: #2f8f5b; --delvis: #b07c00; --mangler: #c8402f; --ukendt: #7a8088;
  --font: Gotham, "Montserrat", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-weight: 300; color: var(--tekst); background: #fff; font-size: 17px; line-height: 1.6; }
a { color: var(--petrol); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hp { position: absolute; left: -9999px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 28px; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* --- Hero med R-symbolets diagonal ----------------------------------- */
.hero { position: relative; background: var(--moerk); color: #fff; overflow: hidden; }
.hero-inner { position: relative; z-index: 2; max-width: 1040px; margin: 0 auto; padding: 32px 28px 76px; }
.logo img { display: block; height: 46px; width: auto; }
.hero h1 { font-weight: 300; font-size: clamp(40px, 6.4vw, 76px); line-height: 1.02; letter-spacing: -0.015em; margin: 72px 0 20px; max-width: 11ch; }
.lede { font-size: 19px; max-width: 34em; margin: 0 0 34px; color: #dfe5e8; }
.urlform { display: flex; max-width: 620px; background: #fff; }
.urlform input { flex: 1; min-width: 0; border: 0; padding: 18px 20px; font-size: 19px; color: var(--moerk); font-weight: 400; background: transparent; }
.urlform input::placeholder { color: #8b949e; }
.urlform button, .mailform button { border: 0; cursor: pointer; background: var(--orange); color: var(--moerk); font-weight: 500; font-size: 17px; padding: 0 26px; white-space: nowrap; }
.urlform button:hover, .mailform button:hover { background: #ea9f74; }
.urlform button[disabled], .mailform button[disabled] { opacity: .6; cursor: progress; }
.formerr { min-height: 1.6em; margin: 10px 0 0; color: #ffb59a; font-weight: 400; }
.mailform .formerr { color: var(--mangler); }

.diag { position: absolute; z-index: 1; top: 0; left: 54%; width: 46%; height: 100%; pointer-events: none; }

/* --- Forklaring ------------------------------------------------------ */
.intro { padding-top: 64px; padding-bottom: 72px; }
.intro h2, .preview h2, .done h2 { font-weight: 300; font-size: 34px; line-height: 1.15; color: var(--petrol); margin: 0 0 28px; }
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.cols h3 { font-weight: 500; font-size: 19px; color: var(--moerk); margin: 0 0 8px; }
.cols p { margin: 0; }

/* --- Indlæsning ------------------------------------------------------ */
.load { padding: 90px 28px; text-align: center; }
.spinner { width: 54px; height: 54px; margin: 0 auto 20px; border: 5px solid var(--lys); border-top-color: var(--petrol); border-radius: 50%; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.load p { font-size: 19px; }

/* --- Smagsprøve ------------------------------------------------------ */
.preview { padding-top: 56px; padding-bottom: 80px; }
.pv-top { display: grid; grid-template-columns: 200px 1fr; gap: 40px; align-items: center; }
.pv-top h2 { margin-bottom: 10px; }
.pv-domain { margin: 0 0 4px; font-weight: 500; color: var(--dis); font-size: 15px; }
.gauge { position: relative; width: 200px; height: 200px; }
.gauge svg { width: 100%; height: 100%; }
.gauge path { fill: none; stroke-width: 11; stroke-linecap: round; }
.g-track { stroke: var(--lys); }
.g-val { stroke: var(--delvis); stroke-dasharray: 0 400; transition: stroke-dasharray 1.1s cubic-bezier(.2,.8,.2,1); }
.g-num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.g-num span { font-size: 56px; font-weight: 700; color: var(--moerk); line-height: 1; }
.g-num small { font-size: 14px; }
.pv-h { font-weight: 500; font-size: 20px; color: var(--moerk); margin: 48px 0 14px; }
.findings { list-style: none; margin: 0; padding: 0; }
.findings li { border-left: 5px solid var(--ukendt); background: var(--lys); padding: 16px 20px; margin-bottom: 10px; }
.findings li.god { border-color: var(--god); } .findings li.delvis { border-color: var(--delvis); } .findings li.mangler { border-color: var(--mangler); }
.findings b { display: block; font-weight: 500; color: var(--moerk); }
.findings .st { font-size: 14px; font-weight: 500; }
.findings li.god .st { color: var(--god); } .findings li.delvis .st { color: var(--delvis); } .findings li.mangler .st { color: var(--mangler); }
.findings p { margin: 4px 0 0; font-size: 16px; }
.findings .anb { color: var(--petrol); }

.unlock { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; background: var(--moerk); color: #fff; position: relative; overflow: hidden; }
.unlock::before { content: ""; position: absolute; top: 0; left: 0; width: 46px; height: 46px; background: var(--orange); clip-path: polygon(0 0, 100% 0, 0 100%); }
.unlock-text { padding: 36px 36px 36px 44px; }
.unlock h3 { font-weight: 300; font-size: 30px; line-height: 1.15; margin: 0 0 12px; }
.locked { list-style: none; margin: 16px 0 0; padding: 0; }
.locked li { padding: 6px 0 6px 28px; position: relative; color: #dfe5e8; }
.locked li::before { content: ""; position: absolute; left: 0; top: 13px; width: 11px; height: 8px; border: 2px solid var(--dis); border-radius: 1px; }
.locked li::after { content: ""; position: absolute; left: 3px; top: 7px; width: 5px; height: 6px; border: 2px solid var(--dis); border-bottom: 0; border-radius: 4px 4px 0 0; }
.mailform { background: #fff; color: var(--tekst); padding: 32px 36px; display: flex; flex-direction: column; }
.mailform label { font-size: 15px; font-weight: 500; color: var(--moerk); margin-top: 12px; }
.mailform label:first-child { margin-top: 0; }
.mailform .req { font-weight: 300; color: var(--tekst); }
.mailform input[type=email], .mailform input[type=text] { border: 1px solid var(--graa); padding: 12px 14px; font-size: 17px; margin-top: 4px; color: var(--moerk); font-weight: 400; }
.mailform .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 300; margin-top: 16px; }
.mailform .check input { margin-top: 5px; width: 18px; height: 18px; flex: none; }
.mailform button { margin-top: 20px; padding: 16px 20px; }
.fine { font-size: 13px; margin: 6px 0 0; }

/* --- Bekræftelse ----------------------------------------------------- */
.done { padding-top: 64px; padding-bottom: 88px; max-width: 760px; }
.steps { margin: 28px 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 10px 0 10px 46px; color: #8b949e; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 7px; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--graa); text-align: center; line-height: 26px; font-size: 14px; font-weight: 500; }
.steps li.now { color: var(--moerk); font-weight: 400; }
.steps li.now::before { border-color: var(--petrol); color: var(--petrol); animation: pulse 1.4s ease-in-out infinite; }
.steps li.ok { color: var(--tekst); }
.steps li.ok::before { content: "✓"; background: var(--petrol); border-color: var(--petrol); color: #fff; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(73,101,125,.15); } }
.done-msg { font-weight: 400; color: var(--moerk); }
.ghost { background: none; border: 1px solid var(--petrol); color: var(--petrol); padding: 12px 20px; cursor: pointer; font-weight: 500; }

.foot { border-top: 1px solid var(--lys); padding: 26px 0 34px; font-size: 14px; }
.foot .wrap { display: flex; gap: 14px; align-items: center; }
.foot img { width: 22px; height: auto; flex: none; }
.foot p { margin: 0; }

@media (max-width: 820px) {
  body { font-size: 16px; }
  .hero h1 { margin-top: 48px; }
  .diag { left: 62%; width: 60%; opacity: .5; }
  .cols, .unlock, .pv-top { grid-template-columns: 1fr; }
  .pv-top { gap: 18px; }
  .gauge { width: 170px; height: 170px; }
  .unlock-text, .mailform { padding: 28px 24px; }
}
@media (max-width: 520px) {
  .urlform { flex-direction: column; }
  .urlform button { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* --- Admin ----------------------------------------------------------- */
body.admin { background: var(--lys); font-size: 15px; }
.admin-wrap { max-width: 1200px; margin: 0 auto; padding: 30px 24px; }
.admin h1 { font-weight: 300; color: var(--petrol); margin: 0; }
.admin-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.admin .tbl { overflow-x: auto; background: #fff; }
.admin table { border-collapse: collapse; width: 100%; }
.admin th { background: var(--moerk); color: #fff; font-weight: 500; text-align: left; padding: 10px; font-size: 13px; }
.admin td { border-bottom: 1px solid var(--lys); padding: 10px; vertical-align: top; }
.admin .tag { background: var(--dis); color: var(--moerk); font-size: 11px; padding: 1px 6px; font-weight: 500; }
.admin a.on { font-weight: 500; color: var(--moerk); }
.login { display: flex; gap: 10px; margin-top: 20px; max-width: 420px; }
.login input { flex: 1; padding: 10px; border: 1px solid var(--graa); }
.login button, .admin td button { background: var(--petrol); color: #fff; border: 0; padding: 8px 14px; cursor: pointer; }
.err { color: var(--mangler); }
