/* MinBiz: felles stil. Rolig, nordisk, lys og mørk modus. */
:root {
  --bg: #f6f5f1;
  --surface: #ffffff;
  --surface-2: #eeece6;
  --ink: #1b2430;
  --muted: #4d5765;
  --line: #d6d2c8;
  --accent: #1d5a82;
  --accent-ink: #ffffff;
  --accent-soft: #e2edf4;
  --ok: #24693f;
  --ok-soft: #e3f1e8;
  --warn: #7a5300;
  --warn-soft: #f6ecd6;
  --focus: #b3561d;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(20, 30, 40, .06), 0 4px 14px rgba(20, 30, 40, .05);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #11161c;
    --surface: #19212a;
    --surface-2: #212b36;
    --ink: #e7ebef;
    --muted: #a9b3bf;
    --line: #2f3a46;
    --accent: #8cc0e4;
    --accent-ink: #0d1b26;
    --accent-soft: #1d3142;
    --ok: #7fd3a0;
    --ok-soft: #173326;
    --warn: #e6bd62;
    --warn-soft: #362b12;
    --focus: #f0a46c;
    --shadow: none;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #11161c; --surface: #19212a; --surface-2: #212b36; --ink: #e7ebef; --muted: #a9b3bf;
  --line: #2f3a46; --accent: #8cc0e4; --accent-ink: #0d1b26; --accent-soft: #1d3142;
  --ok: #7fd3a0; --ok-soft: #173326; --warn: #e6bd62; --warn-soft: #362b12; --focus: #f0a46c;
  --shadow: none; color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 6vw, 2.9rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.35rem, 4vw, 1.75rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--surface); color: var(--ink); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { top: 8px; }

/* Topp og bunn */
.top { border-bottom: 1px solid var(--line); background: var(--surface); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.brand svg { width: 32px; height: 32px; }
.top nav { display: flex; gap: 6px 14px; flex-wrap: wrap; align-items: center; }
.top nav a { color: var(--ink); text-decoration: none; padding: 6px 2px; }
.top nav a:hover { text-decoration: underline; }
footer.foot { border-top: 1px solid var(--line); margin-top: 56px; padding: 28px 0 40px; color: var(--muted); font-size: .95rem; }
footer.foot a { color: var(--muted); }
footer.foot ul { list-style: none; padding: 0; margin: 0 0 10px; display: flex; gap: 8px 18px; flex-wrap: wrap; }

/* Knapper og skjema */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 10px; border: 1px solid var(--accent);
  background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 600;
  text-decoration: none; cursor: pointer;
}
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.quiet { background: var(--surface-2); color: var(--ink); border-color: var(--line); }
.btn.small { min-height: 36px; padding: 6px 12px; font-size: .9rem; }
.btn.danger { background: transparent; color: var(--ink); border-color: var(--warn); }
.btn[disabled] { opacity: .6; cursor: not-allowed; }
.btnrow { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
label { display: block; font-weight: 600; margin: 0 0 4px; }
.hint { display: block; font-weight: 400; color: var(--muted); font-size: .9rem; }
input[type="text"], input[type="email"], input[type="number"], input[type="date"], textarea, select {
  width: 100%; font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--muted); border-radius: 8px; padding: 10px 12px; min-height: 44px;
}
textarea { min-height: 96px; resize: vertical; }
.field { margin: 0 0 18px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { width: 22px; height: 22px; margin-top: 3px; flex: none; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin: 0 0 18px; }
legend { font-weight: 700; padding: 0 6px; }

/* Kort og flater */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.stack > * + * { margin-top: 16px; }
.grid { display: grid; gap: 16px; }
@media (min-width: 720px) {
  .grid.two { grid-template-columns: 1fr 1fr; }
  .grid.three { grid-template-columns: repeat(3, 1fr); }
}
.tag {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .02em;
  padding: 2px 10px; border-radius: 99px; border: 1px solid currentColor; white-space: nowrap;
}
.tag.soon { color: var(--warn); background: var(--warn-soft); }
.tag.trad { color: var(--warn); background: var(--warn-soft); }
.tag.ok { color: var(--ok); background: var(--ok-soft); }
.tag.demo { color: var(--accent); background: var(--accent-soft); }
.missing { color: var(--warn); font-weight: 600; }
.note { background: var(--accent-soft); border-radius: var(--radius); padding: 14px 16px; }
.note.ok { background: var(--ok-soft); }
.note.warn { background: var(--warn-soft); }

/* Forside */
.hero { padding-top: 48px; padding-bottom: 32px; }
.hero .lead { font-size: 1.2rem; max-width: 40rem; color: var(--ink); }
.steps3 { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps3 li { counter-increment: s; position: relative; padding-left: 52px; }
.steps3 li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; background: var(--accent-soft); color: var(--accent);
}
section.block { padding-top: 36px; padding-bottom: 8px; }
.plan-example ol { padding-left: 1.3em; margin: 0; }
.plan-example li { margin: 6px 0; }
.plan-example .when { color: var(--muted); font-size: .9rem; }
.agents { list-style: none; padding: 0; margin: 0; }
.agents li h3 { margin-bottom: 4px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* App */
.appnav { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0; border-bottom: 1px solid var(--line); margin-bottom: 20px; scrollbar-width: thin; }
.appnav button {
  font: inherit; border: 1px solid transparent; background: transparent; color: var(--ink);
  padding: 8px 12px; border-radius: 8px; cursor: pointer; white-space: nowrap; min-height: 44px;
}
.appnav button[aria-current="page"] { background: var(--accent-soft); border-color: var(--accent); color: var(--ink); font-weight: 700; }
.view[hidden] { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 8px 0 0; }
.chips li { display: inline-flex; align-items: center; gap: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 99px; padding: 2px 4px 2px 12px; }
.chips button { border: 0; background: transparent; color: var(--muted); font: inherit; cursor: pointer; min-width: 32px; min-height: 32px; border-radius: 50%; }
.chips button:hover { color: var(--ink); }
.inline-add { display: flex; gap: 8px; }
.inline-add input { flex: 1; min-width: 0; }
progress { width: 100%; height: 14px; accent-color: var(--ok); }
.board { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .board { grid-template-columns: repeat(4, 1fr); } }
.col { background: var(--surface-2); border-radius: var(--radius); padding: 12px; min-width: 0; }
.col .colh { font-size: 1rem; display: flex; justify-content: space-between; margin: 0 0 .6em; }
.col ul { list-style: none; padding: 0; margin: 0; }
.col li + li { margin-top: 10px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.step .t { font-weight: 700; margin: 0 0 2px; }
.step .d { font-size: .88rem; color: var(--muted); margin: 0 0 6px; }
.step ul.detail { list-style: disc; padding-left: 1.2em; margin: 0 0 8px; font-size: .92rem; }
.step ul.detail li + li { margin-top: 2px; }
.step .moves { display: flex; flex-wrap: wrap; gap: 6px; }
.today-list { list-style: none; padding: 0; margin: 0; }
.today-list li + li { margin-top: 10px; }
.ptypes { display: grid; gap: 10px; }
.ptype { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: var(--surface); font-weight: 400; cursor: pointer; }
.ptype input { width: 22px; height: 22px; margin-top: 3px; flex: none; }
.ptype:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.ptype b { display: block; }
.preview { padding-left: 1.3em; }
.preview li { margin: 4px 0; }
.badge { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); border: 2px solid var(--ok); flex: none; }
.badge svg { width: 28px; height: 28px; }
.celebrate { display: flex; gap: 16px; align-items: flex-start; }
.merits { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.merits li { display: flex; gap: 10px; align-items: center; }
.merits .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--ok); flex: none; }
.sources { padding-left: 1.2em; }
.sources li { margin: 6px 0; }
.idea-card dl { margin: 0; display: grid; grid-template-columns: minmax(7rem, max-content) 1fr; gap: 6px 14px; }
.idea-card dt { font-weight: 700; }
.idea-card dd { margin: 0; overflow-wrap: anywhere; }
.toast { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); max-width: calc(100% - 32px); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; z-index: 20; }
.toast[hidden] { display: none; }
.demo-bar { background: var(--accent-soft); border-bottom: 1px solid var(--accent); padding: 8px 0; font-size: .95rem; }
@media (prefers-reduced-motion: no-preference) {
  .btn, .appnav button, .ptype { transition: background-color .15s ease, border-color .15s ease, filter .15s ease; }
}
@media print {
  .top, .appnav, footer.foot, .btn, .moves { display: none !important; }
}
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.btnrow.end { justify-content: flex-end; }
