/* The test sheets drawn inside the pages' visuals: figure matrices, answer figures, charts, the
   question view in the app frame, the statistics window and the score scale. Everything here sits
   inside a visual; the page system (system.css and the kit) does the rest. */

.kv-sheet {
  /* v2b: v3's sheet tokens (v3.css .kv-sheet); grey, s1, ok and bad were already the same in v2 and v3 */
  --kv-ink: #0e1217; --kv-sheet: #ffffff; --kv-grey: #a3aaae; --kv-rule: #d8dbd6; --kv-muted: #474d55;
  --kv-s1: #1c2227; --kv-s2: #5f7f9c; --kv-s3: #8a6a12; --kv-ok: #1d7a4a; --kv-bad: #b3261e; --kv-mark: #f2d13a;
  background: var(--kv-sheet); color: var(--kv-ink);
}

/* figure matrix: three by three, the missing field marked with a question mark */
.kv-matrix { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 2px solid var(--kv-ink); background: var(--kv-sheet); }
.kv-matrix > div { aspect-ratio: 1; border: 1px solid var(--kv-rule); min-width: 0; }
.kv-matrix .kv-blank { display: grid; place-items: center; font: 500 clamp(16px, 4cqw, 30px)/1 var(--font-text); color: var(--kv-muted); }
.kv-fig { display: block; width: 100%; height: auto; }

/* the eight answer figures */
.kv-opts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.kv-opt { position: relative; display: block; min-width: 44px; min-height: 44px; padding: 4px; border: 1.5px solid var(--kv-rule); border-radius: 4px;
  background: var(--kv-sheet); color: var(--kv-ink); cursor: pointer; }
.kv-opt__n { position: absolute; left: 5px; top: 3px; font: 500 13px/1 var(--font-mono); color: var(--kv-muted); }
.kv-opt:hover { border-color: var(--kv-ink); }
.kv-opt[aria-pressed="true"] { border-color: var(--kv-ink); box-shadow: inset 0 0 0 1.5px var(--kv-ink); }
.kv-opt.is-right { border-color: var(--kv-ok); box-shadow: inset 0 0 0 2px var(--kv-ok); }
.kv-opt.is-wrong { border-color: var(--kv-bad); box-shadow: inset 0 0 0 2px var(--kv-bad); }

/* charts: the app's line, bar and table drawing */
.kv-chart { display: block; width: 100%; height: auto; overflow: visible; }
.kv-chart text { fill: var(--kv-ink); font: 400 15px/1 var(--font-text); }
.kv-series { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 6px; font: 400 13px/1.4 var(--font-text); color: var(--kv-ink); }
.kv-series i { display: inline-block; width: 14px; height: 3px; margin-right: 6px; vertical-align: middle; }
.kv-chart-title { font: 500 14px/1.35 var(--font-text); color: var(--kv-ink); margin-bottom: 8px; }
.kv-note { font: 400 13px/1.4 var(--font-text); color: var(--kv-muted); }

/* answer rows: a statement and its three choices */
.kv-stmt { font: 400 15px/1.45 var(--font-text); color: var(--kv-ink); }
.kv-choices { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.kv-choice { display: inline-flex; align-items: center; height: 32px; padding: 0 10px; border: 1.5px solid var(--kv-ink); border-radius: 3px;
  font: 400 14px/1 var(--font-text); color: var(--kv-ink); background: var(--kv-sheet); }
.kv-choice.is-sel { background: var(--kv-mark); border-color: var(--kv-mark); color: #fff; }
.kv-verdict { display: inline-flex; align-items: center; gap: 6px; font: 500 14px/1.3 var(--font-text); }
.kv-verdict.is-ok { color: var(--kv-ok); } .kv-verdict.is-bad { color: var(--kv-bad); }
.kv-why { font: 400 15px/1.5 var(--font-text); color: var(--kv-ink); }
.kv-tag { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 3px; font: 500 13px/1 var(--font-mono);
  background: color-mix(in oklab, var(--kv-ink) 8%, var(--kv-sheet)); color: var(--kv-ink); }
.kv-tag--time { background: color-mix(in oklab, var(--kv-bad) 12%, var(--kv-sheet)); color: var(--kv-bad); }
.kv-input { display: inline-flex; align-items: center; height: 40px; min-width: 120px; padding: 0 12px; border: 1.5px solid var(--kv-ink); border-radius: 3px;
  font: 500 16px/1 var(--font-mono); color: var(--kv-ink); background: var(--kv-sheet); }

/* the hero collage: pieces are sized in % of the collage, their text in container units */
.ly-collage { container-type: inline-size; }
.ly-collage .ly-piece { background: #ffffff; box-shadow: 0 1px 2px rgb(0 0 0 / .08), 0 18px 40px -24px rgb(0 0 0 / .35); border: 1px solid rgb(17 17 17 / .08); }
.pc { padding: 4cqw 4cqw; display: grid; align-content: start; gap: 2.4cqw; }
.pc-head { display: flex; align-items: center; justify-content: space-between; gap: 2cqw; font: 500 max(13px, 2.2cqw)/1.2 var(--font-text); color: var(--kv-muted); }
.pc-head b { color: var(--kv-ink); font-weight: 500; }
.pc .kv-opts { gap: 1.4cqw; }
.pc .kv-opt { min-height: 0; padding: .6cqw; }
.pc .kv-opt__n { font-size: max(11px, 1.7cqw); }
.pc-timer { font: 500 max(20px, 6.2cqw)/1 var(--font-mono); letter-spacing: -0.02em; color: var(--kv-ink); }
.pc-sub { font: 400 max(13px, 2.1cqw)/1.4 var(--font-text); color: var(--kv-muted); }
.pc .kv-stmt { font-size: max(13px, 2.5cqw); }
.pc .kv-why { font-size: max(13px, 2.3cqw); }
.pc .kv-chart text { font-size: 17px; }
.pc .kv-series { font-size: max(12px, 1.9cqw); }
.pc-list { display: grid; gap: 0; }
.pc-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2cqw; padding: 1.6cqw 0; border-top: 1px solid var(--kv-rule); font: 400 max(13px, 2.2cqw)/1.35 var(--font-text); }
.pc-list li span:last-child { font-family: var(--font-mono); color: var(--kv-muted); white-space: nowrap; }
.pc-list li b { font-weight: 500; color: var(--kv-bad); }
.pc-list small { display: block; color: var(--kv-muted); font-size: max(12px, 1.8cqw); }
.pc-meters { display: grid; gap: 1.6cqw; }
.pc-meter { display: grid; grid-template-columns: 34% minmax(0, 1fr) 11%; align-items: center; gap: 2cqw; font: 400 max(12px, 2cqw)/1.2 var(--font-text); }
.pc-meter span:last-child { text-align: right; font-family: var(--font-mono); }
.kv-bar-track { position: relative; height: max(8px, 1.8cqw); background: color-mix(in oklab, var(--kv-ink) 8%, #fff); border-radius: 2px; overflow: hidden; }
.kv-bar-track > i { position: absolute; inset: 0; background: var(--kv-ink); transform-origin: left; transform: scaleX(var(--v, .5)); }
.kv-bar-track > u { position: absolute; top: 0; bottom: 0; left: 80%; width: 2px; background: var(--kv-bad); }

/* the drawing on entry: the chart's lines and the result bars come in when their set is shown.
   At rest (no script, a phone, reduced motion) they stand finished. */
@media (prefers-reduced-motion: no-preference) and (min-width: 640px) {
  html.kv-anim :is(.ly-collage__set, .kv-set) .kv-draw { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.2s cubic-bezier(.22, 1, .36, 1) .25s; }
  html.kv-anim :is(.ly-collage__set, .kv-set).is-on .kv-draw { stroke-dashoffset: 0; }
  html.kv-anim :is(.ly-collage__set, .kv-set) .kv-bar-track > i { transform: scaleX(0); transition: transform .9s cubic-bezier(.22, 1, .36, 1) .2s; }
  html.kv-anim :is(.ly-collage__set, .kv-set).is-on .kv-bar-track > i { transform: scaleX(var(--v, .5)); }
  html.kv-anim :is(.ly-collage__set, .kv-set).is-on .pc-meter:nth-child(2) .kv-bar-track > i { transition-delay: .3s; }
  html.kv-anim :is(.ly-collage__set, .kv-set).is-on .pc-meter:nth-child(3) .kv-bar-track > i { transition-delay: .4s; }
  html.kv-anim :is(.ly-collage__set, .kv-set).is-on .pc-meter:nth-child(4) .kv-bar-track > i { transition-delay: .5s; }
  html.kv-anim :is(.ly-collage__set, .kv-set).is-on .pc-meter:nth-child(5) .kv-bar-track > i { transition-delay: .6s; }
  html.kv-anim :is(.ly-collage__set, .kv-set).is-on .pc-meter:nth-child(6) .kv-bar-track > i { transition-delay: .7s; }
}

/* the open question in the app frame */
.kv-q { display: grid; grid-template-rows: auto minmax(0, 1fr); height: 100%; background: var(--kv-sheet); color: var(--kv-ink); }
.kv-q__bar { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 20px; border-bottom: 1px solid var(--kv-rule); font: 500 14px/1.3 var(--font-text); }
.kv-q__bar .ui-spacer { flex: 1; }
.kv-q__time { font: 500 15px/1 var(--font-mono); }
.kv-q__report { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border: 1px solid var(--kv-rule); border-radius: 4px; background: var(--kv-sheet);
  font: 500 14px/1 var(--font-text); color: var(--kv-ink); cursor: pointer; }
.kv-q__report:hover { border-color: var(--kv-ink); }
.kv-q__body { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 24px; align-content: start; padding: 20px; overflow: hidden; }
.kv-q__instr { grid-column: 1 / -1; font: 400 16px/1.5 var(--font-text); }
.kv-q__answer { display: grid; gap: 12px; align-content: start; }
.kv-q__answer .kv-opts { gap: 8px; }
.kv-q__answer .kv-why { margin-top: 4px; }
.kv-q__hint { font: 400 14px/1.45 var(--font-text); color: var(--kv-muted); }
@media (max-width: 1279px) { .kv-q__body { grid-template-columns: minmax(0, 220px) minmax(0, 1fr); } }
@media (max-width: 639px) {
  .kv-q__body { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 16px; }
  .kv-q__body .kv-matrix { width: min(100%, 240px); }
  .kv-q__bar { padding: 8px 16px; }
}

/* feature panels: one sheet of paper per card, cut by the panel's bottom */
.kv-card-sheet { position: absolute; left: 24px; right: 24px; top: 32px; padding: 20px; border-radius: 8px; border: 1px solid rgb(17 17 17 / .1);
  box-shadow: 0 1px 2px rgb(0 0 0 / .06), 0 16px 36px -24px rgb(0 0 0 / .3); display: grid; gap: 14px; align-content: start; }
.kv-card-sheet .pc-head { font-size: 14px; }
.kv-card-sheet .kv-matrix { width: min(100%, 230px); }
.kv-card-row { display: grid; grid-template-columns: minmax(0, 230px) minmax(0, 1fr); gap: 20px; align-items: start; }
.kv-geo { width: 100%; max-width: 300px; height: auto; }
.kv-geo text { font: 500 15px/1 var(--font-mono); fill: var(--kv-ink); }
@media (max-width: 639px) {
  .kv-card-sheet { left: 16px; right: 16px; top: 20px; padding: 16px; gap: 12px; }
  .kv-card-row { grid-template-columns: minmax(0, 1fr); }
  .kv-card-row > :last-child { display: none; }
}

/* the statistics window on the dark band */
.kv-stats { padding: 24px; border-radius: var(--r-lg); display: grid; gap: 20px; align-content: start; }
.kv-stats__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.kv-stats h3 { font: 500 16px/1.3 var(--font-text); letter-spacing: 0; color: var(--kv-ink); margin-bottom: 4px; }
.kv-stats .pc-list li { font-size: 14px; padding: 10px 0; }
.kv-stats .pc-list small { font-size: 13px; }
.kv-stats .pc-meters { gap: 10px; }
.kv-stats .pc-meter { font-size: 14px; grid-template-columns: 38% minmax(0, 1fr) 13%; }
.kv-stats .kv-bar-track { height: 10px; }
@media (max-width: 1023px) { .kv-stats__cols { grid-template-columns: minmax(0, 1fr); gap: 16px; } }

/* the score scale: six categories of 0 to 10, with the 2026 lines */
.kv-scale { display: grid; gap: 16px; }
.kv-scale__bar { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 3px; height: 56px; margin-top: 56px; }
.kv-scale__bar > span { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; display: grid; place-items: end start; padding: 8px; font: 500 13px/1.2 var(--font-text); color: var(--muted); }
.kv-scale__mark { position: absolute; top: -56px; bottom: 0; width: 0; border-left: 2px solid var(--ink); }
.kv-scale__mark > b { position: absolute; top: 0; left: 8px; white-space: nowrap; font: 500 14px/1.3 var(--font-text); color: var(--ink); }
.kv-scale__mark > b small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
.kv-scale__mark--left > b { left: auto; right: 8px; text-align: right; }
.kv-scale__mark--accent { border-left-color: var(--action); }
.kv-scale__ticks { display: flex; justify-content: space-between; font: 400 13px/1 var(--font-mono); color: var(--muted); }

/* page furniture that the kit has no class for */
.kv-stack { display: grid; gap: var(--s-5); align-content: start; }
.kv-soon { display: inline-flex; align-items: center; height: 24px; padding: 0 var(--s-2); margin-left: var(--s-1); border-radius: var(--r-sm);
  border: 1px solid var(--line-strong); font: 500 var(--t-label)/1 var(--font-text); color: var(--ink); vertical-align: 1px; white-space: nowrap; }
.kv-menu-panel { display: grid; place-items: center; background: var(--surface); }
.kv-menu-sheet { width: 112px; }
.kv-scale-frame { align-items: stretch; justify-content: stretch; }
.kv-scale-frame > .kv-scale { width: 100%; align-content: center; }
.kv-stats { gap: 16px; }
.kv-stats .pc-list li span:last-child { white-space: nowrap; }
.kv-scale__names { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 3px; font: 500 13px/1.2 var(--font-text); color: var(--muted); }
@media (max-width: 479px) { .kv-scale__names span { font-size: 0; } .kv-scale__names span::before { content: attr(data-s); font-size: 13px; } }
.kv-scale__bar > span { padding: 0; }
.kv-weigh__head { margin-top: var(--s-4); }
.kv-weigh { display: grid; gap: 10px; }
.kv-weigh__row { display: grid; grid-template-columns: 112px minmax(0, 1fr) 28px; gap: 12px; align-items: center; font: 400 14px/1.2 var(--font-text); }
.kv-weigh__row > span:last-child { font-family: var(--font-mono); text-align: right; }
.kv-weigh__cells { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 2px; height: 28px; }
.kv-weigh__cells > i { background: var(--ink); border-radius: 1px; }
.kv-weigh__row + .kv-weigh__row .kv-weigh__cells > i { background: var(--action); background: var(--p-accent); }
.kv-levels { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding-top: 12px; border-top: 1px solid var(--kv-rule); }
.kv-next { margin-left: auto; display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 999px; background: var(--kv-ink); color: #fff; font: 500 14px/1 var(--font-text); }
.kv-card-sheet { bottom: -24px; }
@media (max-width: 639px) { .kv-weigh__row { grid-template-columns: 88px minmax(0, 1fr) 24px; gap: 8px; } .kv-levels { display: none; } }
.kv-phone-only { display: none; }
.kv-q__report { min-height: 0; padding: 0; border: 0; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--kv-rule); }
.app .ui-win__nav.is-on { background: none; box-shadow: none; font-weight: 500; color: var(--u-ink); }
.kv-tag { white-space: nowrap; }
@media (max-width: 639px) {
  .kv-phone-hide, .kv-desk-only { display: none; }
  .kv-phone-only { display: grid; gap: 4px; }
  .kv-q__body .kv-matrix { width: 196px; }
  .kv-card-sheet .kv-why, .kv-card-sheet .kv-verdict, .kv-card-sheet .kv-input { display: none; }
  .kv-card-sheet .kv-matrix { width: 132px; }
  .kv-card-sheet .kv-stmt { font-size: 15px; }
  /* the hero collage on a phone: the first set only, its pieces cut to what a 342px collage holds */
  .ly-collage .pc { padding: 10px; gap: 6px; }
  .ly-collage .pc-head span { display: none; }
  .ly-collage .pc .kv-opts > :nth-child(n+5) { display: none; }
  .ly-collage .pc-sub:last-child { display: none; }
  .ly-collage .pc-timer { font-size: 20px; }
}

/* comparison table on the pricing page */
.kv-cmp__h2 { margin-bottom: var(--head-gap); }
.kv-cmp { width: 100%; border-collapse: collapse; font: 400 var(--t-body)/1.4 var(--font-text); color: var(--ink); }
.kv-cmp th, .kv-cmp td { padding: 12px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.kv-cmp thead th { font-weight: 500; padding-top: 0; }
.kv-cmp tbody th { font-weight: 400; padding-right: var(--s-5); width: 40%; }
.kv-cmp td { width: 15%; padding-right: var(--s-3); }
.kv-cmp .kv-no { color: var(--muted); }
.kv-cmp .kv-note { color: var(--muted); font-size: var(--t-small); }
@media (max-width: 639px) {
  .kv-cmp { font-size: 14px; }
  .kv-cmp tbody th { width: 32%; padding-right: var(--s-3); }
  .kv-cmp td { padding-right: 6px; }
  /* the row label column is about 60 px at 320: the date reads as a note under the label, like "skrives nu" */
  .kv-cmp .kv-soon { display: block; height: auto; padding: 0; margin: 2px 0 0; border: 0; font: 400 var(--t-small)/1.35 var(--font-text);
    color: var(--muted); white-space: normal; overflow-wrap: normal; word-break: normal; hyphens: manual; }
}

/* the three upgrade prices under the plan cards (Komplet session, 2026-11-19) */
.kv-upgrades { margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--line); display: grid; gap: var(--s-3); }
.kv-upgrades h3 { font: 500 var(--t-card)/1.3 var(--font-text); }
.kv-upgrades p { font: 400 var(--t-body)/1.5 var(--font-text); color: var(--muted); max-width: 60ch; }
.kv-upgrades ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-7); }
.kv-upgrades li { font: 400 var(--t-body)/1.4 var(--font-text); color: var(--ink); }
.kv-upgrades li > span:first-child { color: var(--muted); margin-right: var(--s-2); }
.kv-upgrades .kv-full { font-weight: 500; }

/* a statement section: one large line and what it means */
.kv-statement { display: grid; gap: var(--s-7); }
.kv-statement__big { font-size: clamp(40px, 5.6vw, 88px); line-height: 1.02; max-width: 14ch; }
.kv-statement__cols p { font: 400 var(--t-lead)/1.55 var(--font-text); color: var(--ink); }
.kv-statement__cols .link { margin-top: var(--s-3); }
.kv-wh { font: var(--display-weight) clamp(28px, 3.4vw, 48px)/1.18 var(--font-display); letter-spacing: -0.02em; max-width: 26ch; }
@media (max-width: 639px) {
  .kv-cmp { table-layout: fixed; }
  .kv-cmp th, .kv-cmp td { hyphens: auto; overflow-wrap: anywhere; }
  .kv-cmp td, .kv-cmp thead th { width: 17%; }
  .kv-cmp thead th:first-child { width: 32%; } /* fixed layout takes the widths from the header row: 32 + 4 x 17 */
}
@media (max-width: 379px) { .kv-cmp { font-size: 13px; } .kv-cmp tbody th { padding-right: 6px; } }
.kv-pay { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); margin-top: var(--s-6); }
.kv-pay p { margin-left: var(--s-2); font: 400 var(--t-body)/1.5 var(--font-text); color: var(--ink); }

/* the about page: the owner's draft block and the steps' sheets */
.kv-draft { margin-top: var(--s-5); padding: var(--s-4) 0; border-block: 2px dashed var(--line-strong); max-width: 62ch; }
.kv-draft p { font: 500 var(--t-lead)/1.5 var(--font-text); color: var(--ink); }
.kv-pc-visual { display: grid; place-items: center; padding: clamp(16px, 3vw, 40px); background: var(--ground-bg); }
.kv-pc-sheet { width: 100%; padding: 20px; border-radius: 8px; border: 1px solid rgb(17 17 17 / .1); display: grid; gap: 14px; align-content: start;
  box-shadow: 0 1px 2px rgb(0 0 0 / .06), 0 16px 36px -24px rgb(0 0 0 / .3); }
.kv-pc-sheet .pc-head { font-size: 14px; }
.kv-pc-row { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 20px; align-items: start; }
.kv-report { display: flex; flex-wrap: wrap; gap: 6px; }
.kv-report__text { min-height: 72px; padding: 10px 12px; border: 1.5px solid var(--kv-ink); border-radius: 3px; font: 400 15px/1.45 var(--font-text); color: var(--kv-ink); }
.kv-next--left { margin-left: 0; justify-self: start; }
@media (max-width: 639px) { .kv-pc-row { grid-template-columns: minmax(0, 1fr); } .kv-pc-row .kv-matrix { width: 180px; } }
.rows__value, .rows__name { min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
.kv-pc-sheet .pc-head span, .kv-card-sheet .pc-head span { color: var(--kv-ink); }

/* legal drafts */
.kv-draft-banner { display: block; padding: var(--s-2) 0; border-block: 2px solid var(--ink); font-weight: 500; max-width: 62ch; }
.kv-legal { display: grid; gap: var(--s-3); align-content: start; }
.kv-legal h3 { font: 500 var(--t-card)/1.3 var(--font-text); letter-spacing: 0; margin-top: var(--s-4); }
.kv-legal h3:first-child { margin-top: 0; }
.kv-legal p, .kv-legal li { font: 400 var(--t-body)/1.6 var(--font-text); color: var(--ink); max-width: 66ch; }
.kv-list { display: grid; gap: var(--s-2); }
.kv-inline { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); overflow-wrap: anywhere; }
.kv-inline:hover { text-decoration-color: currentColor; }

/* trader details in every footer (legal L-H2) */
.footer__trader p { font: 400 var(--t-small)/1.5 var(--font-text); color: var(--muted); max-width: 96ch; overflow-wrap: anywhere; }
.footer__trader a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* "Eksempel" on mock-up statistics (legal L-M4) */
.kv-example { display: inline-flex; align-items: center; width: max-content; height: 24px; padding: 0 8px; border-radius: 3px;
  font: 500 13px/1 var(--font-text); letter-spacing: 0; color: var(--kv-ink, var(--ink)); white-space: nowrap;
  background: color-mix(in oklab, var(--kv-mark, var(--action)) 14%, #fff); }
.kv-head-tags { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.ly-collage .kv-example--set { position: absolute; right: 4%; bottom: calc(96% + 8px); z-index: 2; }

/* legal pages: the version line, the order steps and the quoted checkbox text */
.kv-version { margin-top: var(--s-3); font: 500 var(--t-small)/1.4 var(--font-mono); color: var(--muted); }
.kv-steps { list-style: decimal; padding-left: 1.4em; }
.kv-quote { margin: 0; padding: var(--s-3) 0 var(--s-3) var(--s-4); border-left: 2px solid var(--ink); max-width: 62ch; }
.kv-quote p { font-weight: 500; }

/* the bar at 320-359px: logo, main button and menu button did not fit (the menu button stood 4px past the
   edge). The button drops its verb and its arrow there, so all three fit with the usual gaps. */
@media (max-width: 359px) {
  .nav:not(.is-open) .nav__actions .kv-nav-verb { display: none; }
  .nav:not(.is-open) .nav__actions .btn::after { display: none; }
}
.kv-card-sheet { grid-template-columns: minmax(0, 1fr); }
.kv-card-sheet .pc-head { flex-wrap: wrap; row-gap: 6px; }

/* about and the two legal pages on a phone: the statement hero hides its facts below 640px, so a full
   first screen left about 470px of blank page under the buttons (390x844). There the hero is as tall as
   its words and the first section follows at its usual spacing. Desktop keeps the kit's full-screen hero. */
@media (max-width: 639px) {
  main > .hero.kv-hero--fit { min-height: 0; padding-bottom: 0; }
  .hero--statement .kv-draft-banner + h1 { margin-top: var(--s-4); }
}

/* a sale from brand.json (build.py renders it hidden; site.js shows it while it runs and hides the full price) */
.is-sale > .kv-full { display: none; }
.kv-sale { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: var(--s-2); row-gap: 4px; }
.kv-sale__was { color: var(--muted); font-size: max(1em, var(--t-body)); }
.price .kv-sale { row-gap: 8px; }
.kv-sale__was s { text-decoration-thickness: 1.5px; }
.kv-sale__now { color: var(--ink); font-weight: 600; }
.price .kv-sale__now { font-size: var(--t-stat); font-weight: var(--display-weight, 500); letter-spacing: var(--display-tracking, 0); }
.kv-sale__save { font: 500 13px/1 var(--font-mono); color: var(--action); border: 1px solid currentColor; border-radius: var(--r-sm); padding: 4px 6px; }
.kv-sale__until { flex-basis: 100%; font: 400 var(--t-small)/1.35 var(--font-text); color: var(--muted); }
/* the launch price's line: the later price smaller and unstruck under the price (status/legal.md 15) */
.kv-launch { display: block; margin-top: 6px; font: 400 var(--t-small)/1.35 var(--font-text); color: var(--muted); }
.kv-upgrades li .kv-launch { margin-top: 2px; }
.price:has(.kv-launch) { flex-wrap: wrap; row-gap: 0; }
.price .kv-launch { flex-basis: 100%; margin-top: 4px; }
.price .kv-full { white-space: nowrap; }
dd .kv-launch { margin-top: 2px; }

/* the newsletter form (footer and /nyhedsbrev): the address, the consent text beside an unticked box, one button.
   The consent text is the legal text, so it keeps body size and full contrast, never muted fine print. */
.kv-nl { display: grid; gap: var(--s-3); max-width: 46ch; }
.kv-nl[hidden] { display: none; }
.kv-nl h3 { font: 600 var(--t-small)/1.3 var(--font-text); }
.kv-nl__lead { font-size: var(--t-small); color: var(--muted); }
.kv-nl .field :is(input)[aria-invalid="true"], .kv-nl__consent input[aria-invalid="true"] { outline: 2px solid color-mix(in oklab, #d92d20 72%, var(--ink)); outline-offset: 2px; }
.kv-nl__consent { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: var(--s-3); align-items: start; font-size: var(--t-small); line-height: 1.45; cursor: pointer; }
.kv-nl__consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); cursor: pointer; }
.kv-nl__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.kv-nl .btn { justify-self: start; }
.kv-nl__status:empty, .kv-nl__result:empty { display: none; }
.kv-nl__status, .kv-nl__result { font-size: var(--t-small); line-height: 1.45; }
.kv-nl-page .kv-nl h3 { display: none; } /* the section heading names it there */
.kv-nl-page .kv-nl__result { font-size: var(--t-body); }
.footer .kv-nl .btn--secondary { box-shadow: inset 0 0 0 1.5px var(--line-strong); } /* the dark ground's secondary button is nearly black on black */
/* the footer is one screen with a close row that may shrink to nothing; with the newsletter form the links row is
   taller than that leaves, and the big name slid over the columns. From 640px the footer grows to fit both rows
   instead (on a phone the close and the links already get a screen each, .g2m). */
@media (min-width: 640px) {
  footer.closing:has(.kv-nl) { height: auto; }
  footer.closing:has(.kv-nl) > .wrap { grid-template-rows: auto auto; height: auto; }
  footer.closing:has(.kv-nl) .closing__cta { min-height: auto; }
}

/* the phone app (owner 2026-11-20): announced in every tier, not built. A hollow ring where the others have a tick. */
.checks li.kv-later { color: var(--muted); }
.checks li.kv-later::before { background: none; -webkit-mask: none; mask: none; box-sizing: border-box; border: 1.5px dashed currentColor; border-radius: 50%; }
.kv-cmp .kv-later-row td { color: var(--muted); }
/* »Ikke med: …« (owner 2026-11-22, package-cards): what the next package up adds. A minus where the others have a tick. */
/* a planned feature on its card (owner 2026-11-22): under the list, never in it, so it doesn't read as part of the purchase (legal review 2.8) */
.card--plan .kv-card-planned { margin: 0; padding-top: var(--s-3); border-top: 1px dashed var(--line-strong, var(--line)); font: 400 var(--t-small)/1.45 var(--font-text); color: var(--muted); text-wrap: pretty; }
.checks li.kv-lacks { color: var(--muted); padding-top: var(--s-3); border-top: 1px solid var(--line); }
.checks li.kv-lacks::before { background: var(--muted); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cmask id='m'%3E%3Crect width='20' height='20' fill='white'/%3E%3Cpath d='M6.5 10h7' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/mask%3E%3Ccircle cx='10' cy='10' r='10' mask='url(%23m)'/%3E%3C/svg%3E") center / 20px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cmask id='m'%3E%3Crect width='20' height='20' fill='white'/%3E%3Cpath d='M6.5 10h7' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/mask%3E%3Ccircle cx='10' cy='10' r='10' mask='url(%23m)'/%3E%3C/svg%3E") center / 20px no-repeat; }

/* ---------------------------------------------------------------- Sammenlign pakkerne (/sammenlign, owner 2026-11-22)
   One table in groups. From 768 px all four packages side by side; under it two at a time, picked with the two radio
   rows (.kv-pick) through :has(), no script. A browser without :has() hides the picker and shows all four. */
.kv-sml-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--s-3) var(--s-5); margin: 0 0 var(--s-2); }
.kv-sml-cats div { display: grid; gap: 2px; padding-top: var(--s-2); border-top: 1px solid var(--line); }
.kv-sml-cats dt { font: 400 var(--t-small)/1.35 var(--font-text); color: var(--muted); }
.kv-sml-cats dd { margin: 0; font: 500 var(--t-card)/1.2 var(--font-text); color: var(--ink); }
.kv-sml-cats__note { margin: 0 0 var(--s-7); font: 400 var(--t-small)/1.45 var(--font-text); color: var(--muted); }
.kv-pick { display: none; }
/* the table is longer than two screens: the section grows with it, as the FAQ and legal sections do (merge.css) */
main > .section:has(.kv-sml) { height: auto; min-height: calc(var(--h, 1) * 100svh); }
main > .section:has(.kv-sml) > .wrap { height: auto; }
.kv-sml { width: 100%; border-collapse: collapse; font: 400 var(--t-body)/1.4 var(--font-text); color: var(--ink); }
.kv-sml th, .kv-sml td { padding: 12px var(--s-3) 12px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; text-wrap: pretty; }
.kv-sml thead th { position: sticky; top: var(--nav); z-index: 2; background: var(--bg); font-weight: 500; border-bottom-color: var(--ink); }
.kv-sml tbody th { font-weight: 400; width: 28%; }
.kv-sml td { width: 18%; }
.kv-sml .kv-no { color: var(--muted); }
.kv-sml .kv-note { display: block; margin-top: 2px; font-size: var(--t-small); color: var(--muted); }
.kv-sml .kv-soon { margin: 4px 0 0; }
.kv-sml .kv-sml-group th { padding-top: var(--s-7); font: 500 var(--t-card)/1.3 var(--font-text); border-bottom-color: var(--ink); }
.kv-sml tfoot td { border-bottom: 0; padding-top: var(--s-5); }
.kv-sml tfoot .btn { width: 100%; justify-content: center; }
.kv-sml-after { margin-top: var(--s-5); font: 400 var(--t-body)/1.5 var(--font-text); color: var(--muted); }
@media (max-width: 767px) {
  .kv-pick { display: grid; gap: var(--s-3); margin-bottom: var(--s-5); }
  .kv-pick__lead { margin: 0; font: 500 var(--t-body)/1.3 var(--font-text); }
  .kv-pick__row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
  .kv-pick__row legend { float: left; width: 100%; margin-bottom: 4px; font: 400 var(--t-small)/1.3 var(--font-text); color: var(--muted); }
  .kv-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
  .kv-pick label { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line-strong, var(--line)); border-radius: 999px; font: 500 14px/1 var(--font-text); color: var(--ink); cursor: pointer; }
  .kv-pick input:checked + label { background: var(--ink); border-color: var(--ink); color: var(--bg); }
  .kv-pick input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
  .kv-sml-scroll { overflow-x: auto; }
  .kv-sml, .kv-sml thead, .kv-sml tbody, .kv-sml tfoot { display: block; }
  .kv-sml { font-size: 15px; }
  .kv-sml thead { position: sticky; top: var(--nav); z-index: 2; background: var(--bg); }
  .kv-sml thead th { position: static; }
  .kv-sml tr { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 10px; }
  .kv-sml th, .kv-sml td { width: auto; padding-right: 0; hyphens: auto; overflow-wrap: break-word; }
  .kv-sml thead th:first-child, .kv-sml tfoot td:first-child { display: none; }
  .kv-sml thead th { padding: 10px 0; }
  .kv-sml tbody th { grid-column: 1 / -1; width: auto; padding: 14px 0 2px; border-bottom: 0; }
  .kv-sml td { padding: 4px 0 14px; }
  .kv-sml .kv-sml-group th { padding-top: var(--s-6); border-bottom: 1px solid var(--ink); }
  .kv-sml tfoot .btn { padding-left: 8px; padding-right: 8px; font-size: 14px; }
  .kv-sml-wrap:has(.kv-pick input:checked) .kv-sml tr { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kv-sml-wrap:has(.kv-pick input:checked) .kv-sml [data-p] { display: none; }
  .kv-sml-wrap:has(#kv-a-gratis:checked, #kv-b-gratis:checked) .kv-sml [data-p="gratis"],
  .kv-sml-wrap:has(#kv-a-standard:checked, #kv-b-standard:checked) .kv-sml [data-p="standard"],
  .kv-sml-wrap:has(#kv-a-premium:checked, #kv-b-premium:checked) .kv-sml [data-p="premium"],
  .kv-sml-wrap:has(#kv-a-komplet:checked, #kv-b-komplet:checked) .kv-sml [data-p="komplet"] { display: block; }
}
@supports not selector(:has(*)) { .kv-pick { display: none !important; } }

/* ---------------------------------------------------------------- Ja/Nej as marks (owner 2026-11-22: "see if ja/nej is better
   than tick and cross"). A table with data-marks="icons" shows the site's tick (as on the plan cards) for Ja and a quiet dash
   for Nej; the word stays for screen readers. data-marks="text" (the default) shows the words. Cells with a value stay text. */
[data-marks="icons"] .kv-mark > span { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
[data-marks="icons"] .kv-mark::before { content: ""; display: inline-block; vertical-align: middle; }
[data-marks="icons"] .kv-yes::before { width: 20px; height: 20px; background: var(--action);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cmask id='m'%3E%3Crect width='20' height='20' fill='white'/%3E%3Cpath d='M6 10.2l2.6 2.6L14 7.4' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/mask%3E%3Ccircle cx='10' cy='10' r='10' mask='url(%23m)'/%3E%3C/svg%3E") center / 20px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cmask id='m'%3E%3Crect width='20' height='20' fill='white'/%3E%3Cpath d='M6 10.2l2.6 2.6L14 7.4' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/mask%3E%3Ccircle cx='10' cy='10' r='10' mask='url(%23m)'/%3E%3C/svg%3E") center / 20px no-repeat; }
[data-marks="icons"] .kv-no.kv-mark::before { width: 14px; height: 2px; margin: 9px 3px; border-radius: 1px; background: var(--muted); }

/* footer with five link columns (FAQ and Hjælp, owner 2026-11-22): from 1024 the lede and the newsletter keep their
   width and the five columns share the rest of the row; below 1024 the kit's rules stack them as before */
@media (min-width: 1024px) {
  .footer .closing__links > .grid { grid-template-columns: minmax(0, 4fr) repeat(5, minmax(0, 1.7fr)); }
  .footer .closing__links > .grid > * { grid-column: auto; }
}

/* a link to a heading in running text (/hjaelp#fortryd, /handelsbetingelser#formular) lands below the sticky nav, not under it */
.kv-legal :is(h3, p, li)[id] { scroll-margin-top: calc(var(--nav) + var(--s-5)); }
