/* ============================================================
   Nyetjenester.no - globale stiler
   ============================================================ */
:root {
  --navy: #1d2b64;
  --navy-2: #2a3c86;
  --navy-d: #141d47;
  --orange: #ff5c39;
  --orange-d: #e8471f;
  --orange-l: #fff0eb;
  --bg: #f7f6f1;
  --bg-2: #efede5;
  --card: #ffffff;
  --ink: #16182b;
  --muted: #5d6178;
  --line: #e6e3da;
  --green: #14855c;
  --green-l: #e5f5ee;
  --red: #c8352b;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(22,24,43,.05), 0 8px 24px rgba(22,24,43,.06);
  --shadow-lg: 0 2px 4px rgba(22,24,43,.06), 0 22px 48px rgba(22,24,43,.12);
  --head: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --topbar-h: 70px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.12; margin: 0 0 .5em; color: var(--navy-d); letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 5.4vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
main { min-height: 60vh; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 20px; }
.section { padding: 84px 0; }
.section-tight { padding: 48px 0; }
.section-alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-dark { background: var(--navy-d); color: #dfe3f3; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section-dark .section-head p { color: #b8bfdc; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--orange-d); margin-bottom: 14px;
}
.section-dark .eyebrow { color: #ffb7a5; }
.muted { color: var(--muted); }
.hl { color: var(--orange); }

/* ---------- Knapper ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 22px; border-radius: 12px; border: 2px solid transparent;
  font: 600 .98rem/1.2 var(--body); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-solid { background: var(--orange); color: #fff; box-shadow: 0 6px 18px rgba(255,92,57,.32); }
.btn-solid:hover { background: var(--orange-d); box-shadow: 0 10px 26px rgba(255,92,57,.4); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); background: #fff; }
.btn-light { background: #fff; color: var(--navy-d); }
.btn-danger { color: var(--red); }
.btn-danger:hover { border-color: var(--red); }
.btn-sm { padding: 9px 16px; font-size: .9rem; border-radius: 10px; }
.btn-lg { padding: 15px 28px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: default; transform: none; }

/* ---------- Topplinje ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50; width: 100%;
  background: rgba(247,246,241,.86);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.topbar.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(22,24,43,.05); }
.topbar-inner { height: var(--topbar-h); display: flex; align-items: center; gap: 24px; padding: 0 20px; max-width: 1400px; margin: 0 auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy-d); flex-shrink: 0; }
.brand-mark { width: 38px; height: 38px; border-radius: 10px; transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }
.brand-name { font-family: var(--head); font-weight: 800; font-size: 1.28rem; letter-spacing: -.03em; }
.brand-tld { color: var(--orange); }
.brand-light { color: #fff; }
.topnav { display: flex; gap: 6px; margin-left: 12px; }
.topnav a { padding: 8px 12px; border-radius: 9px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; transition: background .2s; }
.topnav a:hover { background: var(--bg-2); }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.hamburger {
  width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer;
  transition: border-color .2s;
}
.hamburger:hover { border-color: var(--navy); }
.hamburger span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--navy-d); transition: transform .25s; }
.hamburger:hover span:nth-child(2) { transform: translateX(3px); }

.menu-overlay { position: fixed; inset: 0; background: rgba(20,29,71,.35); z-index: 60; opacity: 0; transition: opacity .28s; }
.menu-overlay.show { opacity: 1; }
.mobile-menu {
  position: fixed; top: calc(var(--topbar-h) + 8px); right: 10px; bottom: 10px; z-index: 70;
  width: min(340px, calc(100vw - 20px));
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  transform: translateX(calc(100% + 20px)); transition: transform .32s cubic-bezier(.2,.9,.25,1);
  display: flex; flex-direction: column; overflow: hidden;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.mobile-menu-title { font-family: var(--head); font-weight: 700; font-size: 1.1rem; color: var(--navy-d); }
.menu-close { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 1.05rem; color: var(--ink); }
.mobile-nav { padding: 10px; overflow-y: auto; display: flex; flex-direction: column; }
.mobile-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 500; transition: background .15s, padding-left .2s; }
.mobile-nav a i { width: 20px; text-align: center; color: var(--navy-2); }
.mobile-nav a:hover { background: var(--bg); padding-left: 16px; }
.mobile-nav a.mobile-nav-cta { background: var(--orange); color: #fff; margin: 4px 0 6px; }
.mobile-nav a.mobile-nav-cta i { color: #fff; }
.mobile-nav-sep { height: 1px; background: var(--line); margin: 8px 6px; }
.mobile-nav-head { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 6px 12px 2px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 70px 0 90px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; width: 720px; height: 720px; right: -220px; top: -260px;
  background: radial-gradient(circle, rgba(255,92,57,.18), rgba(255,92,57,0) 62%); pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; width: 640px; height: 640px; left: -260px; bottom: -340px;
  background: radial-gradient(circle, rgba(42,60,134,.14), rgba(42,60,134,0) 62%); pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 99px;
  background: #fff; border: 1px solid var(--line); font-size: .88rem; font-weight: 600; color: var(--navy); margin-bottom: 22px; box-shadow: var(--shadow);
}
.hero-badge b { background: var(--orange); color: #fff; padding: 3px 10px; border-radius: 99px; font-size: .78rem; }
.hero h1 .hl { position: relative; white-space: nowrap; }
.hero h1 .hl::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .04em; height: .18em; z-index: -1;
  background: rgba(255,92,57,.22); border-radius: 4px; transform-origin: left; animation: underline 1s .4s both cubic-bezier(.3,1,.4,1);
}
@keyframes underline { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero-lead { font-size: 1.2rem; color: var(--muted); max-width: 580px; margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 0; color: var(--muted); font-size: .95rem; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points i { color: var(--green); }

/* Stabel med eksempelkort i heroen */
.hero-visual { position: relative; height: 430px; }
.float-card {
  position: absolute; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  padding: 18px; width: 300px; animation: floaty 6s ease-in-out infinite;
}
.float-card:nth-child(1) { top: 10px; left: 8%; }
.float-card:nth-child(2) { top: 150px; right: 0; animation-delay: -2s; }
.float-card:nth-child(3) { top: 290px; left: 0; animation-delay: -4s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.float-head { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.float-logo { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-size: 1.15rem; flex-shrink: 0; }
.float-name { font-weight: 700; color: var(--navy-d); }
.float-sub { font-size: .85rem; color: var(--muted); line-height: 1.35; }
.float-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.float-ping {
  position: absolute; top: -12px; right: -12px; background: var(--navy-d); color: #fff; font-size: .75rem; font-weight: 600;
  padding: 6px 10px; border-radius: 99px; box-shadow: var(--shadow); display: flex; gap: 6px; align-items: center;
}

/* ---------- Tall ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-align: center; }
.stat b { display: block; font-family: var(--head); font-size: 2.4rem; font-weight: 800; color: var(--navy-d); line-height: 1.1; }
.stat span { color: var(--muted); font-size: .92rem; }

/* ---------- Kort / grid ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease;
}
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.3rem; margin-bottom: 16px;
  background: var(--orange-l); color: var(--orange-d); transition: transform .3s cubic-bezier(.3,1.6,.5,1);
}
.card:hover .card-icon { transform: rotate(-8deg) scale(1.08); }
.card-icon.navy { background: #e8ebf7; color: var(--navy-2); }
.card-icon.green { background: var(--green-l); color: var(--green); }
.card p { color: var(--muted); margin: 0; }
.check-list { list-style: none; padding: 0; margin: 14px 0 0; }
.check-list li { display: flex; gap: 10px; padding: 5px 0; color: var(--ink); }
.check-list i { color: var(--orange); margin-top: 5px; }

/* ---------- Steg ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding: 28px 24px 24px; }
.step-nr {
  width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center;
  font-family: var(--head); font-weight: 800; font-size: 1.15rem; margin-bottom: 14px;
}

/* ---------- Utforsk: filtre og tjenestekort ---------- */
.explore-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 16px; }
.search {
  flex: 1 1 280px; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 0 14px; transition: border-color .2s, box-shadow .2s;
}
.search:focus-within { border-color: var(--navy-2); box-shadow: 0 0 0 4px rgba(42,60,134,.1); }
.search i { color: var(--muted); }
.search input { border: 0; outline: 0; background: transparent; font: inherit; padding: 12px 0; width: 100%; }
.toggle-chip, .chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); font: 500 .9rem var(--body); cursor: pointer; transition: all .18s; white-space: nowrap; user-select: none;
}
.toggle-chip:hover, .chip:hover { border-color: var(--navy-2); }
.toggle-chip.on, .chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.toggle-chip.on i, .chip.on i { color: #fff; }
.chip i { color: var(--navy-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 0 6px; margin-bottom: 18px; }
.explore-count { color: var(--muted); font-size: .92rem; margin-bottom: 16px; }

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card {
  position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; text-decoration: none; color: inherit; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s, border-color .25s;
  animation: cardIn .45s both cubic-bezier(.2,.9,.3,1);
}
@keyframes cardIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: #d3cfc2; }
.service-card:hover .sc-logo { transform: scale(1.06) rotate(-3deg); }
.sc-head { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.sc-logo { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; background: var(--bg-2); border: 1px solid var(--line); flex-shrink: 0; transition: transform .3s; }
.sc-name { font-family: var(--head); font-size: 1.15rem; font-weight: 700; color: var(--navy-d); margin: 0; line-height: 1.2; }
.sc-date { font-size: .8rem; color: var(--muted); }
.sc-tagline {
  position: relative; margin: 6px 0 16px; padding: 16px 18px 14px 46px;
  font-family: var(--head); font-size: 1.05rem; font-weight: 500; font-style: italic; line-height: 1.4; color: var(--navy-d);
  background: var(--bg); border-radius: 4px 16px 16px 16px;
  transition: background .3s;
}
.sc-tagline::before {
  content: "\201C"; position: absolute; left: 10px; top: -6px;
  font-family: Georgia, serif; font-style: normal; font-size: 3.6rem; line-height: 1; color: var(--orange);
  transition: transform .35s cubic-bezier(.3,1.6,.5,1);
}
.sc-tagline::after { content: "\201D"; font-family: Georgia, serif; font-style: normal; color: var(--orange); margin-left: 3px; }
.service-card:hover .sc-tagline { background: var(--orange-l); }
.service-card:hover .sc-tagline::before { transform: scale(1.15) rotate(-6deg); }
.sc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: .76rem; font-weight: 600; padding: 4px 9px; border-radius: 99px; background: var(--bg); color: var(--muted); }
.tag-capital { background: var(--green-l); color: var(--green); }
.tag-new { background: var(--orange-l); color: var(--orange-d); }
.tag-verified { background: #e8ebf7; color: var(--navy-2); }
.tag-press { background: #fff6dc; color: #946200; }
.empty {
  text-align: center; padding: 56px 20px; border: 2px dashed var(--line); border-radius: var(--radius); color: var(--muted); background: rgba(255,255,255,.5);
}
.empty i { font-size: 2.2rem; color: var(--orange); margin-bottom: 12px; display: block; }
.empty h3 { color: var(--navy-d); }

/* ---------- Målgruppe-faner ---------- */
.audience { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.audience .card { display: flex; flex-direction: column; }
.audience .card .btn { margin-top: auto; align-self: flex-start; }
.audience .check-list { margin-bottom: 22px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { cursor: pointer; padding: 18px 20px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 14px; color: var(--navy-d); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--orange); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 20px 18px; margin: 0; color: var(--muted); }

/* ---------- CTA-boks ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: 26px; padding: 56px 48px; background: linear-gradient(130deg, var(--navy-2), var(--navy-d));
  color: #dfe3f3; display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center;
}
.cta-band::after { content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(255,92,57,.4), transparent 65%); }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { margin: 0; color: #b8bfdc; }
.cta-band > * { position: relative; z-index: 1; }

/* ---------- Skjema ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 32px; box-shadow: var(--shadow); }
.form-section { margin-bottom: 30px; }
.form-section:last-child { margin-bottom: 0; }
.form-section > h3 { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; margin-bottom: 4px; }
.form-section > h3 i { color: var(--orange); }
.form-section > .hint { color: var(--muted); font-size: .93rem; margin-bottom: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.form-field { margin-bottom: 16px; }
.form-field label, .field-label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; color: var(--navy-d); }
.form-field label .opt { font-weight: 400; color: var(--muted); }
.form-field input[type=text], .form-field input[type=email], .form-field input[type=url], .form-field input[type=tel], .form-field textarea, .form-field select {
  width: 100%; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 11px; padding: 12px 14px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.form-field textarea { min-height: 110px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: 0; border-color: var(--navy-2); background: #fff; box-shadow: 0 0 0 4px rgba(42,60,134,.1); }
.field-foot { display: flex; justify-content: space-between; gap: 10px; font-size: .8rem; color: var(--muted); margin-top: 5px; }
.counter.over { color: var(--red); font-weight: 600; }
.url-field { display: flex; gap: 10px; }
.url-field input { flex: 1; }
.url-status { font-size: .88rem; margin-top: 8px; display: none; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 10px; }
.url-status.show { display: flex; }
.url-status.ok { background: var(--green-l); color: var(--green); }
.url-status.warn { background: #fff6dc; color: #946200; }
.url-status.bad { background: #fdecea; color: var(--red); }
.url-status.busy { background: var(--bg); color: var(--muted); }

.check { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); cursor: pointer; margin-bottom: 10px; transition: border-color .2s, background .2s; }
.check:hover { border-color: var(--navy-2); }
.check input { width: 20px; height: 20px; accent-color: var(--orange); margin: 2px 0 0; flex-shrink: 0; }
.check span { font-size: .95rem; }
.check.big { background: #fff; padding: 16px 18px; }
.check.big:has(input:checked) { border-color: var(--orange); background: var(--orange-l); }

.cat-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-pick .chip { font-size: .87rem; }
.radio-group { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-group label { margin: 0; }
.radio-group input { position: absolute; opacity: 0; pointer-events: none; }
.radio-group input:checked + .chip { background: var(--navy); border-color: var(--navy); color: #fff; }
.radio-group input:checked + .chip i { color: #fff; }

/* Steg-indikator og fremdrift */
.stepper { display: flex; gap: 10px; margin-bottom: 24px; }
.stepper-item { flex: 1; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); color: var(--muted); font-weight: 600; font-size: .92rem; cursor: default; }
.stepper-item b { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); color: var(--muted); flex-shrink: 0; font-size: .85rem; }
.stepper-item.active { border-color: var(--navy); color: var(--navy-d); box-shadow: var(--shadow); }
.stepper-item.active b { background: var(--navy); color: #fff; }
.stepper-item.done b { background: var(--green); color: #fff; }
.stepper-item.clickable { cursor: pointer; }
.progress { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; margin-bottom: 24px; }
.progress-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; font-size: .92rem; }
.progress-top b { font-family: var(--head); font-size: 1.3rem; color: var(--navy-d); }
.bar { height: 10px; border-radius: 99px; background: var(--bg-2); overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--orange), #ff8a5c); transition: width .6s cubic-bezier(.2,.9,.3,1); }
.progress-tip { font-size: .85rem; color: var(--muted); margin-top: 8px; }

/* Logo-opplasting */
.upload { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.upload-preview { width: 84px; height: 84px; border-radius: 18px; border: 2px dashed var(--line); background: var(--bg); display: grid; place-items: center; color: var(--muted); overflow: hidden; flex-shrink: 0; }
.upload-preview img { width: 100%; height: 100%; object-fit: cover; }
.upload input[type=file] { display: none; }
.file-list { list-style: none; padding: 0; margin: 10px 0 0; }
.file-list li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); margin-bottom: 6px; font-size: .92rem; }
.file-list li span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icon-btn { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--navy); display: inline-grid; place-items: center; text-decoration: none; transition: border-color .2s, color .2s; }
.icon-btn:hover { border-color: var(--navy); }
.icon-btn.danger:hover { border-color: var(--red); color: var(--red); }

.mention-row { display: grid; grid-template-columns: 1fr 1.6fr auto; gap: 10px; margin-bottom: 10px; align-items: center; }
.mention-row input { width: 100%; font: inherit; background: var(--bg); border: 1px solid var(--line); border-radius: 11px; padding: 11px 13px; }
.reveal-box { display: none; padding: 20px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); margin-top: 12px; }
.reveal-box.show { display: block; animation: cardIn .35s both; }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: space-between; align-items: center; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.form-foot { text-align: center; color: var(--muted); font-size: .92rem; margin: 16px 0 0; }
.note { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--bg); color: var(--muted); font-size: .9rem; }
.note i { color: var(--navy-2); margin-top: 4px; }
.verified { display: inline-flex; gap: 6px; align-items: center; color: var(--green); font-weight: 600; font-size: .88rem; margin-top: 6px; }

/* ---------- Tjenesteside ---------- */
.svc-hero { padding: 48px 0 30px; }
.svc-head { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.svc-logo { width: 104px; height: 104px; border-radius: 26px; object-fit: cover; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.svc-title h1 { font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: 6px; }
.svc-tagline { font-size: 1.2rem; color: var(--muted); margin: 0; }
.svc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.svc-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.svc-image { border-radius: 22px; border: 1px solid var(--line); box-shadow: var(--shadow-lg); width: 100%; max-height: 520px; object-fit: cover; margin-top: 34px; background: #fff; }
.svc-layout { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; padding-bottom: 80px; }
.svc-main .card { margin-bottom: 22px; }
.svc-main h2 { font-size: 1.4rem; }
.svc-qa h3 { font-size: 1.05rem; margin: 18px 0 6px; color: var(--navy-d); }
.svc-qa h3:first-of-type { margin-top: 0; }
.svc-qa p { color: var(--ink); }
.svc-side { position: sticky; top: calc(var(--topbar-h) + 20px); display: flex; flex-direction: column; gap: 18px; }
.svc-side .card { padding: 22px; }
.svc-side h3 { display: flex; align-items: center; gap: 9px; font-size: 1.05rem; }
.svc-side h3 i { color: var(--orange); }
.kv { list-style: none; padding: 0; margin: 0; }
.kv li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.kv li:last-child { border-bottom: 0; }
.kv li span { color: var(--muted); }
.kv li b { text-align: right; font-weight: 600; word-break: break-word; }
.contact-line { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: .95rem; word-break: break-all; }
.contact-line i { color: var(--navy-2); width: 18px; text-align: center; }
.mentions { list-style: none; padding: 0; margin: 0; }
.mentions li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.mentions li:last-child { border-bottom: 0; }
.mentions b { display: block; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-d); }
.locked { text-align: center; padding: 18px; border-radius: 14px; background: var(--bg); color: var(--muted); font-size: .92rem; }
.locked i { font-size: 1.4rem; color: var(--navy-2); display: block; margin-bottom: 8px; }
.banner { display: flex; gap: 12px; align-items: center; padding: 14px 18px; border-radius: 14px; margin-bottom: 22px; font-weight: 500; }
.banner.warn { background: #fff6dc; color: #7a5200; }
.banner.info { background: #e8ebf7; color: var(--navy); }

/* ---------- Mine tjenester ---------- */
.my-list { display: flex; flex-direction: column; gap: 16px; }
.my-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 18px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); animation: cardIn .4s both; }
.my-item .sc-logo { width: 64px; height: 64px; }
.my-item h3 { margin: 0 0 4px; }
.my-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .86rem; color: var(--muted); margin-top: 8px; }
.my-meta span { display: inline-flex; gap: 6px; align-items: center; }
.my-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: .78rem; font-weight: 700; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-Publisert { background: var(--green-l); color: var(--green); }
.status-Til { background: #fff6dc; color: #946200; }
.status-Avvist { background: #fdecea; color: var(--red); }
.status-Skjult, .status-Venter { background: var(--bg-2); color: var(--muted); }
.mini-bar { width: 120px; height: 6px; border-radius: 99px; background: var(--bg-2); overflow: hidden; display: inline-block; }
.mini-bar > span { display: block; height: 100%; background: var(--orange); }

/* ---------- Admin ---------- */
.adm-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 14px; box-shadow: var(--shadow); }
.adm-item h3 { margin-bottom: 4px; }
.adm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px; font-size: .9rem; margin: 12px 0; color: var(--muted); }
.adm-grid b { color: var(--ink); font-weight: 600; }
.adm-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.adm-tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.lang-ok { color: var(--green); font-weight: 600; }
.lang-bad { color: var(--red); font-weight: 600; }

/* ---------- Tekstsider ---------- */
.prose h2 { font-size: 1.4rem; margin-top: 1.6em; }
.prose p, .prose li { color: #343850; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-d); color: #b8bfdc; padding: 64px 0 0; margin-top: 0; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px 44px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.footer-brand p { margin: 16px 0 0; max-width: 320px; font-size: .95rem; }
.footer-col h4 { color: #fff; font-family: var(--body); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col a { display: block; color: #b8bfdc; text-decoration: none; padding: 4px 0; font-size: .95rem; transition: color .2s, transform .2s; }
.footer-col a:hover { color: #fff; transform: translateX(3px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); max-width: 1200px; margin: 0 auto; padding: 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .85rem; }

/* ---------- Meldingsbokser (showError / showInfo / showConfirm) ---------- */
.msg-wrap { position: fixed; left: 0; right: 0; z-index: 200; display: flex; flex-direction: column; align-items: center; gap: 10px; pointer-events: none; padding: 0 25px; }
.msg-wrap-error { bottom: 28px; }
.msg-wrap-info, .msg-wrap-confirm { top: 50%; transform: translateY(-50%); }
.msg-wrap-confirm::before { content: ""; position: fixed; inset: -100vh 0; background: rgba(20,29,71,.35); pointer-events: auto; }
.msgbox {
  position: relative; pointer-events: auto; width: 100%; max-width: 500px; min-height: 100px; background: #fff; border-radius: 18px;
  box-shadow: 0 24px 60px rgba(20,29,71,.28); border: 1px solid var(--line); overflow: hidden; animation: msgIn .32s cubic-bezier(.2,1.2,.4,1) both;
}
.msgbox-error { border-top: 5px solid var(--red); }
.msgbox-info { border-top: 5px solid var(--navy-2); }
.msgbox-confirm { border-top: 5px solid var(--orange); }
.msgbox-out { animation: msgOut .2s ease both; }
@keyframes msgIn { from { opacity: 0; transform: translateY(18px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes msgOut { to { opacity: 0; transform: translateY(10px) scale(.97); } }
.msgbox-body { display: flex; gap: 16px; align-items: center; padding: 22px 22px 14px; }
.msgbox-ico { font-size: 52px; line-height: 1; flex-shrink: 0; }
.msgbox-error .msgbox-ico { color: var(--red); }
.msgbox-info .msgbox-ico { color: var(--navy-2); }
.msgbox-confirm .msgbox-ico { color: var(--orange); }
.msgbox-msg { font-size: 1rem; color: var(--ink); }
.msgbox-foot { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 12px 16px 16px; }
.msgbox-close { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: 600 .95rem var(--body); cursor: pointer; }
.msgbox-close:hover { border-color: var(--navy); }
.msgbox-ok { background: var(--orange); border-color: var(--orange); color: #fff; }
.msgbox-ok:hover { background: var(--orange-d); border-color: var(--orange-d); }
.msgbox-clock { width: 26px; height: 26px; margin-right: auto; transform: rotate(-90deg); }
.clock-track { fill: none; stroke: var(--line); stroke-width: 2; }
.clock-fill { fill: none; stroke: var(--navy-2); stroke-width: 16; stroke-dasharray: 50.27; stroke-dashoffset: 50.27; animation: clockFill 4s linear forwards; }
.msgbox-error .clock-fill { stroke: var(--red); }
@keyframes clockFill { to { stroke-dashoffset: 0; } }

/* ---------- Scroll reveal ---------- */
.js-reveal .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.9,.3,1); }
.js-reveal .reveal.in { opacity: 1; transform: none; }
.js-reveal .reveal.d1 { transition-delay: .08s; }
.js-reveal .reveal.d2 { transition-delay: .16s; }
.js-reveal .reveal.d3 { transition-delay: .24s; }

/* ---------- Responsivt ---------- */
@media (max-width: 1060px) {
  .topnav { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .service-grid, .grid-3, .audience { grid-template-columns: repeat(2, 1fr); }
  .svc-layout { grid-template-columns: 1fr; }
  .svc-side { position: static; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .section { padding: 60px 0; }
  .hero { padding: 40px 0 60px; }
  .service-grid, .grid-3, .grid-2, .audience, .steps, .stats { grid-template-columns: 1fr; }
  .stats { gap: 10px; }
  .stat { display: flex; align-items: baseline; justify-content: space-between; text-align: left; padding: 16px 18px; }
  .stat b { font-size: 1.8rem; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; gap: 0; }
  .form-card { padding: 22px 18px; border-radius: 18px; }
  .cta-band { grid-template-columns: 1fr; padding: 36px 24px; }
  .mention-row { grid-template-columns: 1fr auto; }
  .mention-row input:first-child { grid-column: 1 / -1; }
  .my-item { grid-template-columns: 52px 1fr; }
  .my-item .sc-logo { width: 52px; height: 52px; }
  .my-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .adm-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 26px; }
  .stepper-item span { display: none; }
  .stepper-item { justify-content: center; }
}
@media (max-width: 420px) {
  .topbar-inner { gap: 10px; padding: 0 14px; }
  .topbar-cta span { display: none; }
  .topbar-cta { padding: 9px 12px; }
  .brand-name { font-size: 1.12rem; }
  .brand-mark { width: 34px; height: 34px; }
  .wrap, .wrap-narrow { padding: 0 16px; }
  .url-field { flex-direction: column; }
  .msgbox-body { padding: 18px 16px 10px; }
  .msgbox-ico { font-size: 50px; }
}

[hidden] { display: none !important; }
