/* SMV-klar – fælles styles for smvklar.dk, startmedai.dk og produktpas-klar.dk.
   Farver besluttet 09.11.2026: primær #296CF2, mørk #0E0826, baggrund #F2F2F2, "klar"-grøn #3FBF9B kun til flueben/badges,
   #5C9DF2 og #5EC8F2 til hover/illustration. Skrifttyper som BoardVerity: Newsreader (overskrifter), Source Sans 3 (brødtekst, UI).
   Fonte er selv-hostet (OFL). */

@font-face { font-family: "Source Sans 3"; src: url("/fonts/source-sans-3.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/fonts/newsreader.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Newsreader"; src: url("/fonts/newsreader-ext.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --blue: #296CF2; --blue-dark: #1f55c4; --blue-light: #5C9DF2; --cyan: #5EC8F2; --blue-tint: #eaf1fe;
  --green: #3FBF9B; --green-tint: #e8f8f3; --green-text: #117a5e;
  --ink: #0E0826; --ink-2: #2a2440; --muted: #5a5670; --line: #d9d9e3; --input: #8a879a;
  --grey: #F2F2F2; --paper: #ffffff;
  --warn-tint: #fff6e5; --error: #a12020; --error-tint: #fde8e8;
  --heading: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", Arial, Helvetica, sans-serif;
  --wrap: 1100px; --gutter: clamp(16px, 5vw, 40px); --section: clamp(48px, 7vw, 88px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; min-height: 100vh; display: flex; flex-direction: column; text-rendering: optimizeLegibility; }
body.site-startmedai { font-size: 19px; }
main { flex-grow: 1; }
img, svg { max-width: 100%; }
a { color: var(--blue-dark); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }
h1, h2, h3, h4 { font-family: var(--heading); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(32px, 4.6vw, 50px); }
h2 { font-size: clamp(26px, 3.2vw, 36px); }
h3 { font-size: clamp(20px, 2.2vw, 25px); }
h4 { font-size: 18px; font-family: var(--sans); font-weight: 700; }
p, ul, ol { margin: 0 0 1em; }
.lead { font-size: clamp(18px, 1.5vw, 22px); color: var(--ink-2); font-family: var(--heading); }
.small { font-size: 15px; color: var(--muted); }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; background: var(--blue); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 17px; font-family: var(--sans); }
.brand-name { font-family: var(--heading); font-weight: 700; font-size: 22px; }
.header-collapse { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a { text-decoration: none; color: var(--ink-2); padding: 8px 10px; border-radius: 6px; font-weight: 600; font-size: 16px; }
.site-nav a:hover { background: var(--grey); color: var(--ink); }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1.5px solid var(--line); border-radius: 8px; padding: 8px 14px; font: inherit; font-weight: 600; cursor: pointer; }
@media (max-width: 900px) {
  .menu-toggle { display: inline-block; }
  .header-collapse { display: none; position: absolute; left: 0; right: 0; top: 68px; background: #fff; border-bottom: 1px solid var(--line); padding: 12px var(--gutter) 18px; flex-direction: column; align-items: stretch; gap: 10px; }
  .header-collapse.open { display: flex; }
  .site-nav { flex-direction: column; gap: 0; }
  .site-nav a { padding: 12px 8px; font-size: 18px; }
}

/* Knapper */
.btn { display: inline-block; background: var(--blue); color: #fff; border: 2px solid var(--blue); border-radius: 10px; padding: 13px 22px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; line-height: 1.2; }
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.btn-ghost { background: #fff; color: var(--blue); }
.btn-ghost:hover { background: var(--blue-tint); color: var(--blue-dark); }
.btn-sm { padding: 9px 16px; font-size: 15px; border-radius: 8px; }
.btn-lg { padding: 16px 28px; font-size: 19px; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .6; cursor: progress; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 18px 0 8px; }
.note { font-size: 15px; color: var(--muted); margin-top: 8px; }
.mt-l { margin-top: 28px; }

/* Sektioner */
.hero { padding: var(--section) 0 calc(var(--section) * .8); background: linear-gradient(180deg, var(--blue-tint) 0%, #fff 100%); }
.hero .wrap { max-width: 860px; }
.section { padding: var(--section) 0; }
.section-grey { background: var(--grey); }
.section-dark { background: var(--ink); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p, .section-dark .lead, .section-dark li { color: #e6e4ef; }
.section-dark .eyebrow, .section-dark .note, .section-dark .small { color: #b9b4cc; }
.section-dark a { color: var(--cyan); }
.section-dark .btn-ghost { background: transparent; color: #fff; border-color: #fff; }
.section-dark .btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.eyebrow { font-family: var(--sans); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 10px; }
.cols-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.cols-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.card h3 { font-size: 22px; }
.card .price { font-family: var(--heading); font-size: 30px; font-weight: 700; margin: 6px 0 2px; }
.card .price small { display: block; font-family: var(--sans); font-size: 14px; font-weight: 400; color: var(--muted); }
.card.featured { border-color: var(--blue); box-shadow: 0 8px 30px rgba(41,108,242,.12); }
ul.checks { list-style: none; padding: 0; }
ul.checks li { position: relative; padding-left: 30px; margin-bottom: 10px; }
ul.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--green-text); font-weight: 800; }
ol.steps { counter-reset: s; list-style: none; padding: 0; }
ol.steps li { counter-increment: s; position: relative; padding-left: 48px; margin-bottom: 16px; }
ol.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-family: var(--sans); }
.faq details { border-top: 1px solid var(--line); padding: 14px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 18px; font-family: var(--heading); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; color: var(--blue); font-weight: 400; font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { margin-top: 10px; }
.badge { display: inline-block; font-size: 13px; padding: 3px 10px; border-radius: 999px; background: var(--grey); color: var(--muted); font-weight: 700; }
.badge-green { background: var(--green-tint); color: var(--green-text); }
.badge-red { background: var(--error-tint); color: var(--error); }
.badge-yellow { background: #fff3cd; color: #6b5400; }
.box { background: var(--grey); border-radius: 12px; padding: 18px 22px; margin: 18px 0; }
.box-blue { background: var(--blue-tint); border-left: 4px solid var(--blue); }
.box-green { background: var(--green-tint); border-left: 4px solid var(--green); }
.box-warn { background: var(--warn-tint); border-left: 4px solid #e0a300; }
table.prices { width: 100%; border-collapse: collapse; margin: 16px 0 24px; }
table.prices th, table.prices td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.prices th { font-family: var(--sans); font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
table.prices .p { font-weight: 700; white-space: nowrap; }
.legal h2 { font-size: 28px; margin-top: 1.6em; }
.legal h3 { font-size: 20px; margin-top: 1.4em; }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; }
.legal table th, .legal table td { border: 1px solid var(--line); padding: 8px; text-align: left; vertical-align: top; }
.legal table th { background: var(--grey); }
.prose { max-width: 760px; }

/* Formularer */
form { max-width: 640px; }
.field { margin-bottom: 18px; }
.field label, fieldset legend { display: block; font-weight: 700; margin-bottom: 6px; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field select, .field textarea {
  width: 100%; font: inherit; padding: 12px 14px; border: 1.5px solid var(--input); border-radius: 10px; background: #fff; color: var(--ink); }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--blue-light); outline-offset: 1px; border-color: var(--blue); }
[aria-invalid="true"] { border-color: var(--error) !important; background: #fff8f8; }
.group-invalid { outline: 2px solid var(--error); outline-offset: 6px; border-radius: 6px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 10px 0; }
.check input { margin-top: 5px; width: 20px; height: 20px; flex: none; }
.hp { position: absolute; left: -9999px; }
.form-msg { margin-top: 14px; padding: 14px 16px; border-radius: 10px; display: none; }
.form-msg.ok { display: block; background: var(--green-tint); color: var(--green-text); }
.form-msg.err { display: block; background: var(--error-tint); color: var(--error); }
fieldset { border: 0; padding: 0; margin: 0 0 18px; }

/* Tjek (quiz) */
.quiz { max-width: 720px; }
.quiz .q { display: none; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 26px; }
.quiz .q.active { display: block; }
.quiz .q h3 { font-size: 24px; }
.quiz .help { color: var(--muted); font-size: 16px; }
.quiz .opts { display: grid; gap: 10px; margin: 18px 0; }
.quiz .opts label { display: flex; gap: 12px; align-items: center; border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; cursor: pointer; font-weight: 600; }
.quiz .opts label:hover { border-color: var(--blue-light); background: var(--blue-tint); }
.quiz .opts input { width: 20px; height: 20px; }
.quiz .opts select { width: 100%; font: inherit; padding: 12px; border: 1.5px solid var(--input); border-radius: 10px; }
.quiz .progress { height: 6px; background: var(--grey); border-radius: 3px; margin-bottom: 16px; overflow: hidden; }
.quiz .progress span { display: block; height: 100%; background: var(--blue); width: 0; transition: width .3s; }
.quiz .nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; }
.result { display: none; }
.result.show { display: block; }
.result .band { font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.result h2 { margin-top: 6px; }

/* Footer */
.site-footer { background: var(--ink); color: #cfcbdc; padding: 40px 0 28px; margin-top: var(--section); font-size: 15px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-top { display: flex; flex-wrap: wrap; gap: 24px 40px; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-legal { border-top: 1px solid #2a2440; padding-top: 16px; }

/* Start med AI – roligere og større */
.site-startmedai .hero { background: linear-gradient(180deg, #f3f8ff 0%, #fff 100%); }
.site-startmedai h1 { font-size: clamp(34px, 5vw, 54px); }
.site-startmedai .btn { padding: 16px 26px; font-size: 19px; }
.site-startmedai .site-nav a { font-size: 17px; }
.site-startmedai p, .site-startmedai li { max-width: 68ch; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .quiz .progress span { transition: none; } }
@media print { .site-header, .site-footer, .actions, .quiz .nav, .noprint { display: none !important; } body { font-size: 12pt; } }
