/* 1-5.io – markedsføringsnettsted. Egen palett, systemfonter, lys/mørk, mobil først. */
:root {
  --bg: #ffffff;
  --bg-alt: #f4f6fb;
  --surface: #ffffff;
  --ink: #12172b;
  --muted: #4a5470;
  --line: #dfe3ee;
  --brand: #4338ca;
  --brand-ink: #ffffff;
  --brand-soft: #eceafd;
  --brand-line: #c9c5f7;
  --good: #0a6b52;
  --good-soft: #e0f4ec;
  --bad: #a8321f;
  --bad-soft: #fdeae6;
  --star: #f2a30f;
  --focus: #4338ca;
  --code-bg: #101631;
  --code-ink: #e6eaff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(18, 23, 43, .06), 0 10px 30px rgba(18, 23, 43, .07);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --gutter: 16px;
  --header-h: 64px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1224; --bg-alt: #111833; --surface: #161e3a; --ink: #e9edfa; --muted: #a6b1cf; --line: #263050;
    --brand: #8f8aff; --brand-ink: #0d1224; --brand-soft: #23285c; --brand-line: #3c4294;
    --good: #52d9ac; --good-soft: #0f2f2b; --bad: #ff8f84; --bad-soft: #3a1b1f; --star: #fbbf24; --focus: #b0acff;
    --code-bg: #0a0f22; --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 10px 30px rgba(0, 0, 0, .35);
  }
}
:root[data-theme="dark"] {
  --bg: #0d1224; --bg-alt: #111833; --surface: #161e3a; --ink: #e9edfa; --muted: #a6b1cf; --line: #263050;
  --brand: #8f8aff; --brand-ink: #0d1224; --brand-soft: #23285c; --brand-line: #3c4294;
  --good: #52d9ac; --good-soft: #0f2f2b; --bad: #ff8f84; --bad-soft: #3a1b1f; --star: #fbbf24; --focus: #b0acff;
  --code-bg: #0a0f22; --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 10px 30px rgba(0, 0, 0, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; min-width: 320px;
}
img, svg { max-width: 100%; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
p { margin: 0 0 1em; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2rem, 6.2vw, 3.4rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.55rem, 4vw, 2.2rem); }
h3 { font-size: 1.15rem; letter-spacing: -.01em; }
ul, ol { margin: 0; padding-left: 1.2em; }
.plain { list-style: none; padding: 0; margin: 0; }
code { font-family: var(--mono); font-size: .9em; background: var(--brand-soft); color: var(--ink); padding: .1em .45em; border-radius: 6px; overflow-wrap: anywhere; }
em { font-style: normal; color: var(--brand); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--brand); color: var(--brand-ink); padding: 10px 16px; border-radius: 0 0 10px 10px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 0; }
.muted { color: var(--muted); }
.center { text-align: center; }
.fine { font-size: .875rem; color: var(--muted); }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-inline: var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 24px; } }

/* ---------- knapper ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 12px;
  font: inherit; font-weight: 700; line-height: 1.2; text-decoration: none; border: 2px solid transparent; cursor: pointer; text-align: center;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-outline { background: transparent; color: var(--brand); border-color: var(--brand-line); }
.btn-outline:hover { border-color: var(--brand); background: var(--brand-soft); }
.btn-light { background: #fff; color: #2c2494; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: .95rem; }
.btn-lg { min-height: 52px; padding: 12px 26px; font-size: 1.05rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 8px 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.3rem; letter-spacing: -.03em; color: var(--ink); text-decoration: none; }
.brand:hover { text-decoration: none; }
.logo-mark .lm-bg { fill: var(--brand); }
.logo-mark .lm-star { fill: #fbbf24; }
.menu-btn { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px; background: transparent; color: var(--ink); border: 2px solid var(--line); border-radius: 12px; font: inherit; font-weight: 600; cursor: pointer; }
.menu-ic, .menu-ic::before, .menu-ic::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.menu-ic { position: relative; }
.menu-ic::before, .menu-ic::after { content: ""; position: absolute; left: 0; }
.menu-ic::before { top: -6px; } .menu-ic::after { top: 6px; }
.nav-open .menu-ic { background: transparent; }
.nav-open .menu-ic::before { top: 0; transform: rotate(45deg); }
.nav-open .menu-ic::after { top: 0; transform: rotate(-45deg); }
.nav-panel { width: 100%; padding-bottom: 14px; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 4px; }
.nav-list a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--ink); font-weight: 600; text-decoration: none; }
.nav-list a:hover { background: var(--brand-soft); }
.nav-list a[aria-current="page"] { color: var(--brand); background: var(--brand-soft); }
.nav-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 10px; }
.nav-login { color: var(--ink); font-weight: 600; text-decoration: none; padding: 8px 4px; }
.nav-login:hover { text-decoration: underline; }
.lang { display: inline-flex; border: 2px solid var(--line); border-radius: 12px; overflow: hidden; }
.lang a { padding: 6px 11px; min-height: 36px; display: inline-flex; align-items: center; font-size: .82rem; font-weight: 700; letter-spacing: .04em; color: var(--muted); text-decoration: none; }
.lang a:hover { background: var(--brand-soft); color: var(--ink); }
.lang a[aria-current="true"] { background: var(--brand); color: var(--brand-ink); }
.js .menu-btn { display: inline-flex; }
.js .nav-panel { display: none; }
.js .nav-open .nav-panel { display: block; }
@media (min-width: 980px) {
  .js .menu-btn, .menu-btn { display: none; }
  .nav-panel, .js .nav-panel { display: flex !important; align-items: center; justify-content: space-between; flex: 1; width: auto; padding: 0; gap: 16px; }
  .nav-actions { margin: 0; flex-wrap: nowrap; }
  .nav-list { flex-wrap: nowrap; margin-left: 12px; }
  .nav-list a { padding: 8px 10px; font-size: .95rem; }
}
@media (min-width: 980px) and (max-width: 1139px) { .nav-list a { padding: 8px 7px; font-size: .9rem; } }

/* ---------- seksjoner ---------- */
.section { padding: 56px 0; }
.section.tight { padding: 32px 0 40px; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section.narrow .wrap { max-width: 800px; }
@media (min-width: 900px) { .section { padding: 80px 0; } .section.tight { padding: 40px 0 56px; } }
.section-head { max-width: 720px; margin-bottom: 32px; }
.kicker { margin: 0 0 12px; color: var(--brand); font-weight: 800; font-size: .8rem; letter-spacing: .09em; text-transform: uppercase; }
.sub, .lead { font-size: 1.1rem; color: var(--muted); max-width: 680px; }
.lead { font-size: clamp(1.05rem, 2.4vw, 1.25rem); }
.page-hero { padding: 48px 0 32px; background: radial-gradient(900px 300px at 15% -20%, var(--brand-soft), transparent 70%); }
.page-hero h1 { max-width: 900px; }
.page-hero .chips { margin-top: 24px; }
@media (min-width: 900px) { .page-hero { padding: 72px 0 40px; } }

/* ---------- hero ---------- */
.hero { padding: 40px 0 56px; background: radial-gradient(1000px 420px at 85% -10%, var(--brand-soft), transparent 70%); }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero h1 { margin-bottom: .45em; }
.hero .lead { margin-bottom: 28px; }
.hero-points { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 8px; color: var(--muted); font-size: .95rem; }
.hero-points li, .checks li { display: flex; gap: 10px; align-items: flex-start; }
.hero-art { min-width: 0; }
.flow-svg { width: 100%; height: auto; display: block; max-width: 620px; margin-inline: auto; filter: drop-shadow(0 12px 28px rgba(18, 23, 43, .12)); }
@media (min-width: 940px) { .hero { padding: 72px 0 88px; } .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 48px; } }
.fl-body { fill: var(--surface); stroke: var(--line); stroke-width: 2; }
.fl-notch { fill: var(--line); }
.fl-biz { fill: var(--muted); font: 700 11px var(--font); letter-spacing: .08em; }
.fl-q { fill: var(--ink); font: 800 16px var(--font); }
.fl-star { fill: var(--star); }
.fl-star.off { fill: var(--line); }
.fl-line { fill: var(--line); }
.fl-btn { fill: var(--brand); }
.fl-arrow { fill: none; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2 7; }
.fl-arrow.good { stroke: var(--good); } .fl-arrow.bad { stroke: var(--bad); } .fl-arrow.all { stroke: var(--brand); }
.fl-box { stroke-width: 2; }
.fl-box.good { fill: var(--good-soft); stroke: var(--good); }
.fl-box.bad { fill: var(--bad-soft); stroke: var(--bad); }
.fl-box.all { fill: var(--brand-soft); stroke: var(--brand-line); }
.fl-t1 { font: 800 21px var(--font); } .fl-t1.good { fill: var(--good); } .fl-t1.bad { fill: var(--bad); }
.fl-t2 { fill: var(--ink); font: 600 16px var(--font); }

/* ---------- rutenett og kort ---------- */
.grid { display: grid; gap: 16px; }
.grid > * { min-width: 0; }
@media (min-width: 640px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cols-3 { grid-template-columns: repeat(3, 1fr); } .cols-4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
.card > p { color: var(--muted); }
.card-link h3 a { color: inherit; text-decoration: none; }
.card-link h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card-link { position: relative; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.card-link:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-2px); }
.card-link:focus-within { border-color: var(--brand); }
.icon-badge { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); margin-bottom: 14px; }
.icon-badge.lg { width: 56px; height: 56px; border-radius: 16px; }
.ic { width: 24px; height: 24px; flex: none; }
.ic-check { width: 20px; height: 20px; margin-top: 3px; color: var(--good); }
.num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--brand); color: var(--brand-ink); font-weight: 800; flex: none; }
.step .num { margin-bottom: 14px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li span { min-width: 0; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chip-pill { display: inline-block; padding: 8px 16px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; font-weight: 600; font-size: .95rem; color: var(--ink); text-decoration: none; }
a.chip-pill:hover { border-color: var(--brand); color: var(--brand); }
.chip-sm { display: inline-block; padding: 2px 10px; background: var(--brand-soft); color: var(--brand); border-radius: 999px; font-size: .78rem; font-weight: 700; }
.center .btn, p.center { margin-top: 0; }
.section .center { margin-top: 32px; margin-bottom: 0; }

/* split */
.split { display: grid; gap: 28px; align-items: start; }
.split-copy .sub { margin-bottom: 0; }
.split-copy p { max-width: 560px; }
.split-list { align-self: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 56px; }
  .split.flip > :first-child { order: 2; }
}
.trig code { white-space: nowrap; margin-right: 4px; }
.sms-demo { align-self: center; }
.sms-label { margin: 0 0 10px; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sms-bubble { background: var(--brand-soft); border: 1px solid var(--brand-line); border-radius: 22px 22px 22px 6px; padding: 18px 20px; max-width: 460px; color: var(--ink); overflow-wrap: anywhere; }
.sms-bubble p { margin: 0; }

/* trinn-liste */
.steps-list { display: grid; gap: 16px; counter-reset: s; }
.step-row { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; }
.step-row .checks { margin-top: 14px; }
.step-row p { color: var(--muted); }

/* integrasjoner */
.int-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 8px; }
.mono { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); font-weight: 800; font-size: 1.2rem; }
pre.code { margin: 0 0 16px; background: var(--code-bg); color: var(--code-ink); border-radius: var(--radius-sm); padding: 18px; overflow: auto; font-family: var(--mono); font-size: .85rem; line-height: 1.6; max-width: 100%; }
pre.code code { background: none; color: inherit; padding: 0; font-size: inherit; overflow-wrap: normal; }

/* ---------- priser ---------- */
.plans { display: grid; gap: 16px; align-items: stretch; }
.plans > * { min-width: 0; }
@media (min-width: 680px) { .plans { grid-template-columns: repeat(2, 1fr); } .plans-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1080px) { .plans:not(.plans-3) { grid-template-columns: repeat(4, 1fr); } }
.plan { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px 24px; }
.plan.is-featured { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.plan .badge { position: absolute; top: -13px; left: 24px; background: var(--brand); color: var(--brand-ink); font-size: .75rem; font-weight: 800; padding: 3px 12px; border-radius: 999px; letter-spacing: .03em; }
.plan-name { font-size: 1.35rem; margin-bottom: .2em; }
.plan .tag { color: var(--muted); font-size: .95rem; min-height: 3em; }
.price { margin: 4px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.price .amt { font-size: 2.4rem; font-weight: 800; letter-spacing: -.04em; line-height: 1.1; }
.price .amt-text { font-size: 1.6rem; }
.price .cur, .price .per { color: var(--muted); font-weight: 600; }
.price .per { margin-left: -4px; }
.vat { margin: 0 0 16px; font-size: .85rem; color: var(--muted); }
.limits { list-style: none; padding: 14px 0; margin: 0 0 16px; border-block: 1px solid var(--line); display: grid; gap: 4px; font-weight: 600; }
.lead-in { font-weight: 700; margin: 0 0 10px; }
.plan .checks { flex: 1; margin-bottom: 22px; font-size: .95rem; }
.plan-cta .btn { width: 100%; }
.plan.mini { padding-bottom: 12px; }
.plan.mini .limits { border-bottom: 0; }

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); -webkit-overflow-scrolling: touch; }
table.cmp { width: 100%; min-width: 720px; border-collapse: collapse; font-size: .95rem; }
.cmp th, .cmp td { padding: 12px 16px; text-align: center; border-bottom: 1px solid var(--line); }
.cmp thead th { background: var(--bg-alt); font-size: 1rem; position: sticky; top: 0; }
.cmp tbody th[scope="row"] { text-align: left; font-weight: 500; width: 34%; }
.cmp tr.grp th { text-align: left; background: var(--brand-soft); color: var(--brand); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; padding: 8px 16px; }
.cmp tr:last-child th, .cmp tr:last-child td { border-bottom: 0; }
.cmp .yes { display: inline-flex; color: var(--good); } .cmp .yes .ic { margin: 0; width: 22px; height: 22px; }
.cmp .no { color: var(--muted); }

/* faq */
.faq { max-width: 820px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 18px 4px; font-weight: 700; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s ease; margin-right: 6px; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq summary:hover { color: var(--brand); }
.faq-a { padding: 0 4px 18px; color: var(--muted); max-width: 720px; }
.faq-a p { margin: 0; }

/* cta-bånd */
.cta-band { background: linear-gradient(135deg, #3730a3, #4f46e5); color: #fff; border-radius: 24px; padding: 40px 24px; text-align: center; }
.cta-band h2 { color: #fff; max-width: 720px; margin-inline: auto; }
.cta-band p { color: rgba(255, 255, 255, .88); max-width: 600px; margin-inline: auto; }
.cta-band .cta-row { justify-content: center; margin-top: 24px; }
.cta-band .fine { margin: 18px 0 0; color: rgba(255, 255, 255, .78); }
@media (min-width: 720px) { .cta-band { padding: 56px 48px; } }

/* kontakt og tekst */
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; margin: 0; }
.facts dt { color: var(--muted); font-weight: 600; } .facts dd { margin: 0; overflow-wrap: anywhere; }
.contact-card .btn { margin-top: 4px; }
.prose { overflow-wrap: break-word; }
.prose h1 { margin-bottom: .3em; }
.prose h2 { font-size: 1.5rem; margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose p, .prose li { color: var(--ink); }
.prose li { margin-bottom: .4em; }
.prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.nf { text-align: center; padding: 96px 0; } .nf .lead { margin-inline: auto; }

/* ---------- footer ---------- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding: 48px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.3fr; } }
.foot-brand p { color: var(--muted); max-width: 320px; margin-top: 14px; }
.foot-h { font-size: .8rem; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--brand); text-decoration: underline; }
.site-footer address { font-style: normal; color: var(--muted); }
.site-footer address strong { color: var(--ink); }
.foot-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; color: var(--muted); font-size: .875rem; }
.foot-bottom p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .btn:hover, .card-link:hover { transform: none; }
}
@media print { .site-header, .skip-link, .cta-band, .menu-btn { display: none !important; } .section { padding: 16px 0; } }

.nav-list a, .nav-login, .nav-actions a { white-space: nowrap; }
@media (min-width: 980px) and (max-width: 1239px) { .nav-list a { padding: 8px 6px; font-size: .88rem; } .nav-login { padding: 8px 2px; } }

/* ---- interaktiv demo ---- */
.demo-grid { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 32px; align-items: center; max-width: 960px; margin: 0 auto; }
.demo-card { background: var(--surface, #fff); border: 1px solid var(--line, #e5e8f0); border-radius: 22px; box-shadow: 0 12px 36px rgba(15,23,42,.10); padding: 26px 22px; text-align: center; }
.demo-biz { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted, #64748b); font-weight: 700; }
.demo-q { margin: 8px 0 14px; font-size: 1.4rem; line-height: 1.2; }
.demo-stars { display: flex; justify-content: center; gap: 4px; }
.demo-star { background: none; border: 0; font-size: 46px; line-height: 1; color: var(--line, #d9deea); cursor: pointer; padding: 2px; transition: transform .12s, color .12s; }
.demo-star:hover { transform: scale(1.12); } .demo-star.on { color: #f5a623; }
.demo-star:focus-visible { outline: 3px solid var(--brand, #4f46e5); outline-offset: 2px; border-radius: 8px; }
.demo-word { min-height: 1.6em; font-weight: 700; margin-top: 6px; }
.demo-hint { margin: 10px 0 0; font-size: .8rem; color: var(--muted, #64748b); }
.demo-out { min-height: 220px; }
.demo-res { background: var(--surface, #fff); border: 1.5px solid var(--line, #e5e8f0); border-radius: 18px; padding: 20px 22px; animation: demoin .25s ease; }
.demo-good { border-color: #0f9d7a; } .demo-bad { border-color: #d98a1f; }
.demo-res h3 { margin: 10px 0 6px; font-size: 1.15rem; } .demo-res p { margin: 0; color: var(--muted, #64748b); }
.demo-ic { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #fff; border: 1px solid var(--line, #e5e8f0); }
.demo-case { background: var(--bg, #f6f7fb); border-radius: 12px; padding: 12px 14px; margin-bottom: 4px; }
.demo-case-top { display: flex; justify-content: space-between; align-items: center; }
.demo-case-stars { color: #f5a623; letter-spacing: 2px; } .demo-case-comment { margin: 8px 0 4px !important; color: var(--ink, #0f172a) !important; }
.demo-case-deadline { font-size: .85rem; font-weight: 600; color: #b7791f !important; }
.demo-reset { margin-top: 14px; }
@keyframes demoin { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) { .demo-grid { grid-template-columns: 1fr; } .demo-out { min-height: 0; } }
@media (prefers-reduced-motion: reduce) { .demo-res { animation: none; } .demo-star { transition: none; } }
/* ---- kontaktskjema ---- */
.contact-form .field { margin: 0 0 14px; } .contact-form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; padding: 11px 12px; border: 1.5px solid var(--line, #d9deea); border-radius: 10px; font: inherit; background: var(--surface, #fff); color: inherit; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--brand, #4f46e5); box-shadow: 0 0 0 3px rgba(79,70,229,.18); }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.4em; margin: 12px 0 0; font-weight: 600; } .form-status.ok { color: #0f9d7a; } .form-status.err { color: #c0262b; }
.stack { display: grid; gap: 18px; align-content: start; } .small { font-size: .82rem; }

/* sr-only-elementer i brede tabeller må klippes av rullecontaineren, ellers utvider de hele siden på mobil */
.table-scroll { position: relative; max-width: 100%; }
html, body { overflow-x: clip; }

/* ---------- løft: animasjoner og interaksjon (alt respekterer prefers-reduced-motion, se bunn) ---------- */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--brand), #8b5cf6, var(--star)); pointer-events: none; }
.site-header { transition: box-shadow .25s ease, background-color .25s ease; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(18, 23, 43, .08); }

/* scroll-reveal: skjules kun for elementer under bretten når JS kjører */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0ms); will-change: opacity, transform; }
.js .reveal.in { opacity: 1; transform: none; }

/* knapper og kort */
.btn-primary { position: relative; overflow: hidden; box-shadow: 0 6px 18px color-mix(in srgb, var(--brand) 35%, transparent); }
.btn-primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .35) 50%, transparent 65%); transform: translateX(-120%); transition: transform .6s ease; }
.btn-primary:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0) scale(.98); }
.card { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 38px rgba(18, 23, 43, .12); border-color: var(--brand-line); }
.icon-badge { transition: transform .3s cubic-bezier(.3, 1.6, .5, 1), background-color .2s; }
.card:hover .icon-badge { transform: scale(1.12) rotate(-4deg); }
.plan { transition: transform .25s ease, box-shadow .25s ease; }
.plan:hover { transform: translateY(-5px); box-shadow: 0 18px 44px rgba(18, 23, 43, .14); }
.chip-pill { transition: transform .2s ease, background-color .2s ease, border-color .2s ease; }
.chip-pill:hover { transform: translateY(-2px) scale(1.04); border-color: var(--brand); }

/* hero: levende bakgrunn og tegnet illustrasjon */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero::before, .hero::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); opacity: .55; animation: blob 18s ease-in-out infinite alternate; }
.hero::before { width: 420px; height: 420px; left: -120px; top: -140px; background: color-mix(in srgb, var(--brand) 38%, transparent); }
.hero::after { width: 380px; height: 380px; right: -100px; bottom: -160px; background: color-mix(in srgb, var(--star) 40%, transparent); animation-delay: -9s; }
@keyframes blob { from { transform: translate(0, 0) scale(1); } to { transform: translate(60px, 40px) scale(1.18); } }
.hero-copy > * { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; } .hero-copy > :nth-child(3) { animation-delay: .16s; } .hero-copy > :nth-child(4) { animation-delay: .24s; } .hero-copy > :nth-child(5) { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.hero h1 em, .hero h1 .em { background: linear-gradient(90deg, var(--brand), #8b5cf6, var(--brand)); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 6s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.flow-svg { animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-8px); } }
.flow-svg .fl-star { transform-box: fill-box; transform-origin: center; animation: pop .5s cubic-bezier(.3, 1.8, .5, 1) both; }
.flow-svg .fl-star:nth-of-type(1) { animation-delay: .5s; } .flow-svg .fl-star:nth-of-type(2) { animation-delay: .7s; } .flow-svg .fl-star:nth-of-type(3) { animation-delay: .9s; } .flow-svg .fl-star:nth-of-type(4) { animation-delay: 1.1s; } .flow-svg .fl-star:nth-of-type(5) { animation-delay: 1.3s; }
@keyframes pop { from { transform: scale(0) rotate(-40deg); opacity: 0; } to { transform: none; opacity: 1; } }
.flow-svg .fl-arrow { animation: dash 1.4s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -18; } }
.flow-svg .fl-box, .flow-svg .fl-t1, .flow-svg .fl-t2 { animation: slidein .7s cubic-bezier(.2, .7, .2, 1) both; }
.flow-svg .fl-box.good, .flow-svg .fl-t1.good { animation-delay: 1.5s; } .flow-svg .fl-box.bad, .flow-svg .fl-t1.bad { animation-delay: 1.75s; } .flow-svg .fl-box.all { animation-delay: 2s; }
.flow-svg .fl-t2 { animation-delay: 1.9s; }
@keyframes slidein { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }

/* rating-seksjon */
.rate-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .rate-grid { grid-template-columns: 1fr 1.1fr; gap: 48px; } }
.rate-meter { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 28px; box-shadow: var(--shadow); }
.rate-big { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.rate-num { font-size: clamp(3.4rem, 9vw, 5rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.rate-stars { color: var(--star); font-size: 1.6rem; letter-spacing: 3px; }
.rate-lbl { flex-basis: 100%; color: var(--muted); font-size: .95rem; }
.rate-bar { position: relative; height: 14px; border-radius: 99px; background: var(--bg-alt); border: 1px solid var(--line); margin: 28px 0 8px; }
.rate-fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--bad) 0, var(--star) 50%, var(--good) 100%); transition: width 1.6s cubic-bezier(.2, .7, .2, 1) .2s; }
.rate-meter.in .rate-fill { width: calc((var(--r, 4.6) - 1) / 4 * 100%); }
.rate-mark { position: absolute; left: 75%; top: -10px; bottom: -10px; width: 2px; background: var(--ink); opacity: .7; }
.rate-mark b { position: absolute; top: -26px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: .78rem; background: var(--ink); color: var(--bg); padding: 2px 9px; border-radius: 99px; }
.rate-scale { display: flex; justify-content: space-between; color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
.rate-items { display: grid; gap: 14px; padding: 0; list-style: none; }
.rate-items .card { padding: 18px 20px; } .rate-items h3 { margin-bottom: 4px; font-size: 1.05rem; }

/* cta-bånd med glød og flytende stjerner */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(135deg, #3730a3, #4f46e5, #6d28d9); background-size: 200% 200%; animation: bandshift 14s ease infinite; }
@keyframes bandshift { 50% { background-position: 100% 50%; } }
.cta-band::before, .cta-band::after { content: "★"; position: absolute; color: rgba(251, 191, 36, .35); font-size: 90px; line-height: 1; animation: drift 9s ease-in-out infinite alternate; pointer-events: none; }
.cta-band::before { left: 5%; top: 12%; } .cta-band::after { right: 6%; bottom: 8%; font-size: 130px; animation-delay: -4s; }
@keyframes drift { to { transform: translateY(-18px) rotate(14deg); } }
.cta-band > * { position: relative; z-index: 1; }

/* sticky mobil-CTA */
.sticky-cta { display: none; }
@media (max-width: 719px) {
  .sticky-cta { display: block; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; transform: translateY(140%); transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
  .sticky-cta.show { transform: none; }
  .sticky-cta .btn { width: 100%; box-shadow: 0 10px 30px rgba(18, 23, 43, .3); }
  body { padding-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
  .hero::before, .hero::after, .cta-band, .cta-band::before, .cta-band::after, .flow-svg, .flow-svg * { animation: none !important; }
  .rate-fill { transition: none; }
}

/* prøv selv */
.section-try { padding: 36px 0; }
.try-box { max-width: 760px; margin: 0 auto; text-align: center; background: linear-gradient(135deg, var(--brand-soft), var(--surface)); border: 1px solid var(--brand-line); border-radius: 24px; padding: 30px 22px; box-shadow: var(--shadow); }
.try-box .section-head { margin: 0 auto 20px; text-align: center; }
.try-form { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; position: relative; }
.try-form input[type=text] { flex: 1 1 240px; min-height: 52px; padding: 12px 16px; border: 2px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; font-size: 1.05rem; }
.try-form input[type=text]:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.try-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.try-status { min-height: 1.6em; margin: 12px 0 0; font-weight: 700; }
.try-status.ok { color: var(--good); animation: rise .4s ease both; } .try-status.err { color: var(--bad); }
.try-box .fine { margin: 6px 0 0; color: var(--muted); font-size: .85rem; }
.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; }

/* logo (bilde) */
.brand-logo{display:block;height:auto;border-radius:8px}
:root[data-theme="dark"] .brand-logo{background:#fff;padding:3px 8px}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand-logo { background: #fff; padding: 3px 8px; } }
@media (max-width: 420px) { .brand-logo { height: 34px; width: auto; } }
@media (min-width: 900px) { .bar { flex-wrap: nowrap; } .brand { flex: none; } .nav-panel { min-width: 0; } }
