/* Valident – salgsside. Farver og skrift følger appen (navy, teal, sandhvid, Inter). */
/* Skrifttyper hostes lokalt (ingen Google Fonts). Se assets/fonts/LICENSE.txt. */
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/assets/fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #142B44;
  --navy-mid: #1D3A5A;
  --navy-deep: #0F2236;
  --teal: #0E8A80;
  --teal-dark: #0B6E66;
  --teal-light: #E3F2F0;
  --sand: #F5F3EF;
  --sand-mid: #ECE8E2;
  --white: #FFFFFF;
  --steel: #4A5561;
  --muted: #6B7480;
  --line: #E2DDD5;

  --g: #1E8E5A; --g-bg: #E6F4EA; --g-line: #B9DEC7;
  --y: #C77C0E; --y-bg: #FDEFD6; --y-line: #F0C97E;
  --r: #D64545; --r-bg: #FCE8E6; --r-line: #EFAAA4;

  --display: "Schibsted Grotesk", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-lg: 20px;
  --radius: 12px;
  --radius-sm: 8px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--navy);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0; letter-spacing: -0.015em; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 14px; border-radius: var(--radius-sm); z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

/* Knapper */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px;
  font: 600 16px/1 var(--body);
  color: var(--white); background: var(--teal);
  border: 0; border-radius: 999px; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease;
}
.btn:hover { background: var(--teal-dark); }
.btn--small { min-height: 40px; padding: 0 18px; font-size: 15px; }
.btn--light { background: var(--white); color: var(--navy); }
.btn--light:hover { background: var(--teal-light); }
.btn--ghost { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); }
.btn--ghost:hover { background: var(--navy); color: var(--white); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(20, 43, 68, .96); backdrop-filter: saturate(140%) blur(8px); color: var(--white); }
.nav__inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 21px/1 var(--display); letter-spacing: -0.02em; }
.nav__links { display: flex; gap: 26px; margin-left: auto; font-size: 15px; }
.nav__links a { text-decoration: none; color: rgba(255,255,255,.78); }
.nav__links a:hover { color: var(--white); }
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav .btn { margin-left: auto; }
}

/* Hero */
.hero { background: var(--navy); color: var(--white); padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 9vw, 112px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1fr minmax(0, 540px); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); font-weight: 800; letter-spacing: -0.03em; max-width: 13ch; }
.lead { margin-top: 24px; font-size: clamp(17px, 1.6vw, 19px); color: rgba(255,255,255,.8); max-width: 52ch; }
.hero__actions { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.hero__price { font-size: 15px; color: rgba(255,255,255,.7); }
@media (max-width: 960px) { .hero__grid { grid-template-columns: 1fr; } }

/* Tilsynspanel (hero) */
.panel { margin: 0; background: var(--white); color: var(--navy); border-radius: var(--radius-lg); padding: 24px 24px 18px; box-shadow: 0 30px 80px rgba(5, 15, 28, .45); }
.panel__kicker { font-size: 13px; color: var(--muted); }
.panel__title { font: 700 24px/1.2 var(--display); margin-top: 4px; font-variant-numeric: tabular-nums; }
.bar { display: flex; height: 8px; border-radius: 99px; overflow: hidden; background: var(--sand-mid); margin: 16px 0 6px; }
.bar span { display: block; height: 100%; width: 0; transition: width .5s ease; }
.bar__g { background: var(--g); } .bar__y { background: #E3AE3A; } .bar__r { background: var(--r); }
.rows { list-style: none; margin: 0; padding: 0; }
.row { display: grid; grid-template-columns: 12px minmax(0, 11rem) 1fr; gap: 12px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--sand-mid); font-size: 14px; }
.row:first-child { border-top: 0; }
.row i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); align-self: center; transition: background-color .3s ease, transform .3s ease; }
.row b { font-weight: 600; }
.row span { color: var(--steel); font-size: 13.5px; }
.row.is-on[data-s="g"] i { background: var(--g); }
.row.is-on[data-s="y"] i { background: #E3AE3A; }
.row.is-on[data-s="r"] i { background: var(--r); }
.row.is-on[data-s="r"] span { color: var(--r); font-weight: 600; }
.panel figcaption { margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--sand-mid); font-size: 13px; color: var(--muted); }
@media (max-width: 520px) {
  .row { grid-template-columns: 12px 1fr; row-gap: 2px; }
  .row span { grid-column: 2; }
}

/* Kunder */
.customers { background: var(--navy-deep); color: rgba(255,255,255,.7); }
.customers__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 40px; min-height: 84px; padding-top: 18px; padding-bottom: 18px; font-size: 15px; }
.customers ul { display: flex; flex-wrap: wrap; gap: 12px 40px; list-style: none; margin: 0; padding: 0; }
.customers li a { font: 700 21px/1 var(--display); color: var(--white); text-decoration: none; letter-spacing: -0.01em; }
.customers li a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Sektioner */
section { scroll-margin-top: 68px; }
.section-title { font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; letter-spacing: -0.025em; max-width: 20ch; }
.section-lead { margin-top: 16px; font-size: 18px; color: var(--steel); max-width: 62ch; }

/* Princip */
.principle { padding: clamp(64px, 9vw, 112px) 0; }
.principle__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.principle h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 800; letter-spacing: -0.025em; max-width: 14ch; }
.principle p { margin-top: 20px; color: var(--steel); max-width: 54ch; }
.legend { margin: 0; display: grid; gap: 12px; }
.legend__item { display: grid; grid-template-columns: 72px 1fr; gap: 16px; padding: 18px 20px; border-radius: var(--radius); border: 1.5px solid; }
.legend dt { font: 700 17px/1.4 var(--display); }
.legend dd { margin: 0; font-size: 15.5px; color: var(--navy); }
.legend__item--g { background: var(--g-bg); border-color: var(--g-line); } .legend__item--g dt { color: var(--g); }
.legend__item--y { background: var(--y-bg); border-color: var(--y-line); } .legend__item--y dt { color: var(--y); }
.legend__item--r { background: var(--r-bg); border-color: var(--r-line); } .legend__item--r dt { color: var(--r); }
@media (max-width: 860px) { .principle__grid { grid-template-columns: 1fr; } }

/* Hverdagen */
.how { padding: clamp(64px, 9vw, 112px) 0; background: var(--white); }
.week { margin: 40px 0 0; border-radius: var(--radius-lg); background: var(--sand); border: 1px solid var(--line); overflow: hidden; }
.week__bar { display: flex; gap: 16px; align-items: baseline; padding: 14px 20px; background: var(--navy); color: var(--white); font-size: 14px; }
.week__bar strong { font: 700 18px/1 var(--display); }
.week__bar span { color: rgba(255,255,255,.7); }
.week__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 16px; }
.day { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; display: grid; gap: 8px; align-content: start; }
.day--today { background: #FFFAF1; border: 2px solid #E3AE3A; }
.day__head { display: flex; justify-content: space-between; gap: 8px; font-weight: 700; font-size: 15px; margin-bottom: 2px; }
.day__head em { font-style: normal; font-weight: 600; font-size: 12.5px; }
.ok { color: var(--g); } .bad { color: var(--r); } .todo { color: var(--y); }
.card { display: grid; padding: 9px 11px; border-radius: var(--radius-sm); border: 1.5px solid; font-size: 13px; line-height: 1.35; }
.card b { font-size: 14px; }
.card span { color: var(--steel); }
.card small { font-size: 12.5px; font-weight: 600; margin-top: 2px; }
.card--g { background: var(--g-bg); border-color: var(--g-line); } .card--g small { color: var(--g); }
.card--y { background: var(--y-bg); border-color: var(--y-line); } .card--y small { color: #8A5507; }
.card--r { background: var(--r-bg); border-color: var(--r-line); } .card--r small { color: var(--r); }
@media (max-width: 860px) {
  .week__cols { grid-template-columns: repeat(4, minmax(170px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; }
  .day { scroll-snap-align: start; }
}

.steps { list-style: none; counter-reset: step; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.steps li { counter-increment: step; border-top: 2px solid var(--navy); padding-top: 18px; }
.steps li::before { content: counter(step); display: block; font: 700 14px/1 var(--display); color: var(--teal); margin-bottom: 10px; }
.steps h3 { font-size: 21px; font-weight: 700; }
.steps p { margin-top: 8px; font-size: 15.5px; color: var(--steel); }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Myndigheder */
.authorities { padding: clamp(64px, 9vw, 112px) 0; }
.auth { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.auth__item { padding: 26px 26px 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.auth__item h3 { font-size: 19px; font-weight: 700; }
.auth__item p { margin-top: 8px; font-size: 15.5px; color: var(--steel); }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .auth { grid-template-columns: 1fr; } }

/* Funktioner */
.features { padding: clamp(64px, 9vw, 112px) 0; background: var(--navy); color: var(--white); }
.features__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.features__intro { position: sticky; top: 108px; }
.features__intro h2 { font-size: clamp(30px, 3.4vw, 42px); font-weight: 800; letter-spacing: -0.025em; }
.features__intro p { margin: 20px 0 32px; color: rgba(255,255,255,.75); max-width: 46ch; }
.flist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.flist li { padding: 22px 0 24px; border-top: 1px solid rgba(255,255,255,.16); }
.flist h3 { font-size: 18px; font-weight: 700; }
.flist p { margin-top: 6px; font-size: 15px; color: rgba(255,255,255,.72); }
@media (max-width: 960px) { .features__grid { grid-template-columns: 1fr; } .features__intro { position: static; } }
@media (max-width: 560px) { .flist { grid-template-columns: 1fr; } }

/* Specialklinikker */
.surgery { padding: clamp(56px, 8vw, 96px) 0; background: var(--teal-light); }
.surgery__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 72px); }
.surgery h2 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 800; letter-spacing: -0.025em; max-width: 16ch; color: var(--teal-dark); }
.surgery p { max-width: 54ch; color: var(--navy); }
.surgery p + p { margin-top: 14px; font-weight: 600; }
@media (max-width: 760px) { .surgery__grid { grid-template-columns: 1fr; } }

/* Tryghed */
.trust { padding: clamp(56px, 8vw, 88px) 0; }
.trust__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.trust__item h3 { font-size: 20px; font-weight: 700; }
.trust__item p { margin-top: 8px; font-size: 15.5px; color: var(--steel); }
@media (max-width: 760px) { .trust__grid { grid-template-columns: 1fr; gap: 24px; } }

/* Pris */
.pricing { padding: clamp(64px, 9vw, 112px) 0; background: var(--white); }
.plans { margin-top: 40px; display: grid; grid-template-columns: 7fr 5fr; gap: 20px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 32px; border-radius: var(--radius-lg); border: 1.5px solid var(--line); background: var(--sand); }
.plan--main { background: var(--white); border: 2px solid var(--navy); }
.plan h3 { font-size: 20px; font-weight: 700; }
.plan__price { margin-top: 12px; font: 800 clamp(40px, 5vw, 56px)/1.05 var(--display); letter-spacing: -0.03em; }
.plan__price span { font-size: .42em; font-weight: 600; letter-spacing: 0; vertical-align: .55em; margin-right: 4px; }
.plan__price small { display: block; margin-top: 8px; font: 500 15px/1.4 var(--body); letter-spacing: 0; color: var(--muted); }
.plan__price--text { font-size: clamp(28px, 3vw, 34px); }
.plan ul { margin: 24px 0 32px; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 15.5px; }
.plan li { position: relative; padding-left: 26px; }
.plan li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px; border-left: 2.5px solid var(--teal); border-bottom: 2.5px solid var(--teal); transform: rotate(-45deg); }
.plan .btn { margin-top: auto; align-self: flex-start; }
.pricing__note { margin-top: 24px; color: var(--muted); font-size: 15px; max-width: 62ch; }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; } }

/* FAQ */
.faq { padding: clamp(64px, 9vw, 112px) 0; }
.faq__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 6vw, 80px); }
.faq h2 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 800; letter-spacing: -0.025em; max-width: 12ch; }
.faq__list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-weight: 600; font-size: 17px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; margin-top: -7px; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(45deg); transition: transform .2s ease; }
details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
details p { padding: 0 40px 22px 0; color: var(--steel); max-width: 64ch; }
@media (max-width: 760px) { .faq__grid { grid-template-columns: 1fr; } }

/* Demo */
.demo { padding: clamp(64px, 9vw, 112px) 0; background: var(--navy); color: var(--white); }
.demo__grid { display: grid; grid-template-columns: 1fr minmax(0, 520px); gap: clamp(32px, 6vw, 80px); align-items: start; }
.demo h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 800; letter-spacing: -0.025em; max-width: 13ch; }
.demo__copy p { margin-top: 20px; color: rgba(255,255,255,.78); max-width: 46ch; }
.demo__direct a { color: var(--white); font-weight: 600; }
.form { background: var(--white); color: var(--navy); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 32px); display: grid; gap: 16px; }
.field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }
.field label, .field legend { font-size: 14px; font-weight: 600; padding: 0; }
.opt { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%; font: 400 16px/1.4 var(--body); color: var(--navy);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--white);
}
input:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-light); }
input[aria-invalid="true"] { border-color: var(--r); }
textarea { resize: vertical; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.choices label { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 999px; font-size: 14.5px; font-weight: 500; cursor: pointer; }
.choices label:has(input:checked) { border-color: var(--teal); background: var(--teal-light); }
.choices input { accent-color: var(--teal); margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { font-size: 15px; font-weight: 600; min-height: 1px; }
.form__status.is-ok { color: var(--g); }
.form__status.is-err { color: var(--r); }
.form__fine { font-size: 13px; color: var(--muted); }
.form__fine a { color: var(--steel); }
@media (max-width: 860px) { .demo__grid { grid-template-columns: 1fr; } }

/* Footer */
.footer { background: var(--navy-deep); color: rgba(255,255,255,.7); padding: 36px 0; font-size: 14.5px; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; }
.footer__inner p:last-child { margin-left: auto; }
.brand--footer { color: var(--white); font-size: 18px; }
@media (max-width: 760px) { .footer__inner p:last-child { margin-left: 0; } }

/* Simpel tekstside (privatliv) */
.doc { padding: clamp(48px, 7vw, 88px) 0; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(32px, 4vw, 44px); font-weight: 800; }
.doc h2 { font-size: 22px; margin-top: 36px; }
.doc p, .doc ul { margin-top: 12px; color: var(--steel); }
