/* KlarBedrift – felles stilark for klarbedrift.com og underdomenene (25.10.2026) */
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 600; font-display: swap; src: url(/static/fonts/source-serif-4-latin.woff2) format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/static/fonts/source-sans-3-latin.woff2) format("woff2"); }

:root {
  --paper: #F4F5F7;
  --sheet: #FFFFFF;
  --ink: #13233A;
  --ink-2: #4E5A6B;
  --ink-3: #7B8595;
  --line: #D3D9E1;
  --line-2: #E6EAEF;
  --navy: #1B4A8A;
  --navy-2: #143A6E;
  --navy-soft: #EAF0F8;
  --seal: #B4182D;
  --ok: #1E6B45;
  --err: #A1281C;
  --radius: 4px;
  --display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  font-feature-settings: "kern", "liga";
}
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy-2); }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
h1, h2, h3 { margin: 0; font-weight: 600; }
h1, h2 { font-family: var(--display); letter-spacing: -0.012em; }
p { margin: 0; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* Top bar */
.top { background: var(--sheet); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 66px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--display); font-size: 22px; letter-spacing: -0.01em; }
.brand .mark { width: 11px; height: 11px; background: var(--seal); flex: none; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15.5px; }
.nav a { color: var(--ink-2); text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: var(--radius); border: 1px solid var(--navy); background: var(--navy); color: #fff; font: 600 15.5px/1 var(--body); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--navy-2); border-color: var(--navy-2); color: #fff; }
.btn.secondary { background: var(--sheet); color: var(--navy); }
.btn.secondary:hover { background: var(--navy-soft); color: var(--navy-2); }
.btn[disabled] { opacity: .6; cursor: default; }

/* Hero */
.hero { padding: 72px 0 64px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr); gap: 64px; align-items: start; }
.hero h1 { font-size: clamp(32px, 4vw, 46px); line-height: 1.14; max-width: 22ch; }
.hero .lead { margin-top: 22px; font-size: 19px; color: var(--ink-2); max-width: 52ch; }
.hero .facts { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 26px; font-size: 14.5px; color: var(--ink-3); }
.hero .facts span { white-space: nowrap; }

/* Registry sheet */
.sheet { background: var(--sheet); border: 1px solid var(--line); border-top: 4px solid var(--navy); border-radius: var(--radius); padding: 24px 26px 22px; box-shadow: 0 1px 2px rgba(19,35,58,.05), 0 18px 36px -24px rgba(19,35,58,.25); }
.sheet-head { display: flex; align-items: baseline; justify-content: space-between; gap: 4px 12px; flex-wrap: wrap; }
.sheet-head h2 { font-family: var(--body); font-size: 17px; letter-spacing: 0; }
.sheet-head .src { font-size: 13px; color: var(--ink-3); }
.lookup { margin-top: 16px; }
label { display: block; font-size: 13.5px; color: var(--ink-2); margin-bottom: 6px; }
.field { display: flex; gap: 8px; }
input, select { min-width: 0; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); font: 16px var(--body); font-variant-numeric: tabular-nums; }
.field input { flex: 1; }
input::placeholder { color: var(--ink-3); }
input:focus, select:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px var(--navy-soft); }
.status { min-height: 20px; margin-top: 8px; font-size: 13.5px; color: var(--ink-3); }
.status.err { color: var(--err); }
.status.ok { color: var(--ok); }
.fields { margin: 14px 0 0; display: grid; grid-template-columns: 11.5em minmax(0, 1fr); column-gap: 16px; border-top: 1px solid var(--line-2); }
.fields dt, .fields dd { margin: 0; padding: 9px 0; border-bottom: 1px solid var(--line-2); font-size: 15px; }
.fields dt { color: var(--ink-2); }
.fields dd { color: var(--ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.fields dd:empty::before { content: "–"; color: var(--ink-3); }
.lead-form { display: none; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.lead-form.show { display: block; }
.lead-form h3 { font-size: 16px; }
.lead-form .hint { margin-top: 4px; font-size: 14px; color: var(--ink-2); }
.lead-form .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; margin-top: 12px; }
.lead-form select, .lead-form input { width: 100%; }
.lead-form .btn { width: 100%; min-height: 44px; margin-top: 2px; }
.lead-form .grid > div:last-child { grid-column: 1 / -1; }
.sheet-foot { margin-top: 14px; font-size: 13px; color: var(--ink-3); }

/* Sections */
.section { padding: 64px 0; border-top: 1px solid var(--line); }
.section h2 { font-size: clamp(26px, 2.6vw, 32px); line-height: 1.2; }
.section .intro { margin-top: 12px; font-size: 17.5px; color: var(--ink-2); max-width: 60ch; }

/* Service rows */
.rows { margin-top: 36px; border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr) minmax(200px, 0.75fr); gap: 32px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.row h3 { font-size: 21px; line-height: 1.25; }
.row .for { display: block; margin-top: 6px; font-size: 14px; color: var(--ink-3); }
.row .desc { color: var(--ink-2); font-size: 16.5px; }
.row ul { margin: 14px 0 0; padding: 0; list-style: none; font-size: 15.5px; color: var(--ink); }
.row li { position: relative; padding-left: 18px; margin-top: 5px; }
.row li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 9px; height: 1px; background: var(--ink-3); }
.row .buy { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.row .price { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.2; }
.row .price small { font-size: 15px; font-weight: 400; color: var(--ink-2); }
.row .terms { font-size: 13.5px; color: var(--ink-3); }
.row .buy .btn { margin-top: 10px; }

/* Comparison table */
.tablewrap { margin-top: 32px; overflow-x: auto; background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 15.5px; min-width: 720px; }
caption { text-align: left; padding: 14px 18px 0; font-size: 13.5px; color: var(--ink-3); }
th, td { text-align: left; padding: 14px 18px; vertical-align: top; }
thead th { font-weight: 400; font-size: 13.5px; color: var(--ink-2); border-bottom: 1px solid var(--line); background: var(--paper); }
tbody tr + tr td, tbody tr + tr th { border-top: 1px solid var(--line-2); }
tbody th { font-weight: 600; color: var(--ink); }
tbody td { color: var(--ink-2); }
tbody td:last-child, thead th:last-child { color: var(--navy); font-weight: 600; border-left: 1px solid var(--line-2); }
.tablenote { margin-top: 12px; font-size: 13.5px; color: var(--ink-3); }

/* FAQ */
.faq { margin-top: 28px; border-top: 1px solid var(--line); max-width: 820px; }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; font-size: 18px; font-weight: 600; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 24px; font-weight: 400; color: var(--ink-3); }
details[open] summary::after { content: "–"; }
details p { padding: 0 0 20px; color: var(--ink-2); max-width: 68ch; }

/* Footer */
footer { border-top: 1px solid var(--line); background: var(--sheet); padding: 36px 0 40px; font-size: 14.5px; color: var(--ink-2); }
footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
footer .brand { font-size: 19px; }
footer .col p { margin-top: 10px; }
footer nav { display: flex; flex-direction: column; gap: 6px; }
footer nav a { color: var(--ink-2); text-decoration: none; }
footer nav a:hover { color: var(--navy); text-decoration: underline; }
footer .legal { width: 100%; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line-2); font-size: 13px; color: var(--ink-3); }

@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { max-width: none; }
  .row { grid-template-columns: 1fr; gap: 14px; padding: 26px 0; }
  .row .buy { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 6px 16px; }
  .row .buy .btn { margin-top: 0; margin-left: auto; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav { display: none; }
  .hero { padding: 44px 0 48px; }
  .hero .lead { font-size: 17.5px; }
  .section { padding: 48px 0; }
  .sheet { padding: 20px 18px 18px; }
  .fields { grid-template-columns: 9.5em minmax(0, 1fr); }
  .lead-form .grid { grid-template-columns: 1fr; }
  .row .buy .btn { margin-left: 0; flex: 1 1 100%; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn, .nav a, input, select { transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s; }
}
