:root {
  --primary: #08667c;
  --primary-light: #3298dc;
  --accent: #18b89e;
  --bg: #f5f7fa;
  --surface: #ffffff;
  --text: #2e3c54;
  --text-strong: #102033;
  --muted: #5a6b80;
  --border: #e2e8f0;
  --warning: #f39c12;
  --error: #e74c3c;
  --shadow-1: 0 1px 2px rgba(16, 32, 51, 0.04);
  --shadow-2: 0 8px 24px -12px rgba(16, 32, 51, 0.08);
  --shadow-3: 0 30px 60px -20px rgba(8, 102, 124, 0.18);
  --radius: 8px;
  --radius-lg: 12px;
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font, "DM Sans", system-ui, sans-serif);
  font-size: 16px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; }
html, body { overflow-x: hidden; } /* Safety net against unexpected horizontal scroll on mobile */
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Cookie-banner — fast nederst, dekker ikke skjermen */
.cookie-banner {
  position: fixed;
  left: 18px;
  right: auto;
  bottom: 16px;
  z-index: 200;
  background: var(--text-strong);
  color: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0,0,0,0.28);
  padding: 14px 16px;
  width: min(640px, calc(100% - 36px));
}
.cookie-banner-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}
.cookie-banner-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #d8e3ea;
}
.cookie-banner-text a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-banner-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.cookie-btn-decline {
  background: transparent;
  color: #d8e3ea;
  border-color: rgba(255,255,255,0.32);
}
.cookie-btn-decline:hover {
  border-color: #fff;
  color: #fff;
}
.cookie-btn-accept {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text-strong);
}
.cookie-btn-accept:hover {
  background: #14a48b;
  border-color: #14a48b;
  color: var(--text-strong);
}
@media (max-width: 720px) {
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
  }
  .cookie-banner-inner {
    grid-template-columns: 1fr;
  }
  .cookie-banner-actions {
    justify-content: stretch;
  }
  .cookie-banner-actions .btn {
    flex: 1;
  }
}

/* Announcement bar — topp-banner for tidsavgrensede annonseringer */
.announcement-bar {
  background: linear-gradient(135deg, var(--primary), #0a7a93);
  color: #fff;
  padding: 10px clamp(18px, 4vw, 58px);
  text-align: center;
  font-size: 14px;
  font-weight: 700;
}
.announcement-bar a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.5);
  text-underline-offset: 3px;
  margin-left: 6px;
}
.announcement-bar a:hover {
  text-decoration-color: #fff;
}
.announcement-bar .pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 8px;
  vertical-align: 1px;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}
@media (prefers-reduced-motion: reduce) {
  .announcement-bar .pulse-dot { animation: none; }
}

/* Skip-link */
.skip-link {
  position: absolute;
  left: -1000px;
  top: 0;
  background: var(--text-strong);
  color: #fff;
  padding: 10px 14px;
  border-radius: 0 0 6px 0;
  z-index: 100;
  font-weight: 800;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid #b3d8e0;
  outline-offset: 2px;
  border-radius: 4px;
}
.btn:focus-visible { outline-color: #18b89e; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 11px clamp(18px, 4vw, 58px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-strong);
  font-weight: 850;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  overflow: hidden;
  background: #fff7e8;
  border: 1px solid rgba(8, 102, 124, 0.14);
  color: var(--primary);
  font-size: 14px;
  font-weight: 900;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hamburger via <details> */
.site-nav-toggle { display: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.3vw, 18px);
  font-size: 14px;
  font-weight: 750;
}
.nav-links a { color: #42526a; }
.nav-links a[aria-current="page"] { color: var(--primary); }
.nav-links a.btn-primary { color: #fff; }
.nav-links a.btn-primary:hover { color: #fff; }

/* Buttons */
.btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--primary);
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}
.btn:hover { text-decoration: none; border-color: var(--primary); }

/* Beta-testere CTA — appears in hero/heading on every page */
.btn-beta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent), #14a48b);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid var(--accent);
  box-shadow: 0 6px 18px -6px rgba(24, 184, 158, 0.55);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  white-space: nowrap;
}
.btn-beta:hover {
  background: linear-gradient(135deg, #14a48b, #0f8973);
  border-color: #14a48b;
  box-shadow: 0 10px 26px -6px rgba(24, 184, 158, 0.7);
  transform: translateY(-1px);
  color: #fff;
  text-decoration: none;
}
.btn-beta::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.3);
  animation: pulse 2s ease-in-out infinite;
  flex: none;
}
.btn-beta-arrow {
  font-size: 16px;
  font-weight: 700;
  margin-left: 2px;
}
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: #07556a; color: #fff; }

/* Hero */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(42px, 5.4vw, 72px) clamp(18px, 4vw, 58px) clamp(42px, 5vw, 70px);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #ffffff 0%, #f1f7f9 100%);
}
.page-hero-grid {
  position: relative;
  z-index: 2;
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.95fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}
.hero-copy { max-width: 660px; }
.hero-visual {
  border: 1px solid #cfe0e8;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-3);
  margin-top: clamp(10px, 3vw, 34px);
}
.hero-visual img,
.hero-visual .product-window {
  display: block;
  width: 100%;
  height: auto;
}
.product-window { transform: none; }

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
h1, h2, h3 {
  color: var(--text-strong);
  line-height: 1.12;
  letter-spacing: 0;
}
h1 {
  max-width: 780px;
  margin: 0 0 18px;
  font-size: clamp(36px, 4.6vw, 58px);
  font-weight: 800;
}
h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
}
h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
}
.lead {
  max-width: 760px;
  margin: 0;
  color: #4d5d73;
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.58;
  font-weight: 550;
}
.hero-actions, .section-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.hero-trust {
  max-width: 860px;
  margin-top: 28px;
  color: #52627a;
  font-size: 15px;
}

/* Badges */
.hero-badges, .audience-strip {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.hero-badge, .audience-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid #cce2e8;
  border-radius: 999px;
  background: #f7fcfd;
  color: var(--primary);
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}
a.hero-badge {
  cursor: pointer;
}
a.hero-badge:hover {
  border-color: var(--primary);
  background: #ecf6f8;
  text-decoration: none;
  transform: translateY(-1px);
}
a.hero-badge.important:hover {
  border-color: #c98c2a;
  background: #fff1d4;
}
a.hero-badge::after {
  content: "→";
  margin-left: 6px;
  opacity: 0;
  transform: translateX(-3px);
  transition: opacity 160ms ease, transform 160ms ease;
  font-weight: 900;
}
a.hero-badge:hover::after,
a.hero-badge:focus-visible::after {
  opacity: 1;
  transform: translateX(0);
}
.hero-badge.important {
  border-color: #f1c37a;
  background: #fff8eb;
  color: #7a4d00;
}

/* Fallback CSS-mockup window (for hero hvis bilde mangler) */
.product-window {
  overflow: hidden;
  border: 1px solid #cfe0e8;
  border-radius: 14px;
  background: #fff;
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  border-bottom: 1px solid var(--border);
  background: #fbfdff;
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: #d3dde6; }
.dot:nth-child(1) { background: #e67e22; }
.dot:nth-child(2) { background: #f1c40f; }
.dot:nth-child(3) { background: #18b89e; }
.mock-app {
  display: grid;
  grid-template-columns: 96px 1fr 190px;
  min-height: 360px;
  background: #eef6f7;
}
.mock-rail { padding: 16px 12px; background: #fff; border-right: 1px solid var(--border); }
.mock-logo {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  margin-bottom: 18px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-weight: 900;
}
.mock-nav span {
  display: block;
  height: 11px;
  margin: 15px 0;
  border-radius: 999px;
  background: #d9e5eb;
}
.mock-main { padding: 18px; }
.mock-top {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.mock-stat, .mock-panel, .mock-side-card {
  border: 1px solid #cfdee7;
  border-radius: 8px;
  background: #fff;
}
.mock-stat { min-height: 76px; padding: 12px; }
.mock-stat strong {
  display: block;
  color: var(--primary);
  font-size: 26px;
  line-height: 1;
}
.mock-stat span, .mock-line {
  display: block;
  height: 8px;
  margin-top: 10px;
  border-radius: 999px;
  background: #dbe7ed;
}
.mock-panel { padding: 14px; }
.mock-table-row {
  display: grid;
  grid-template-columns: 58px 1fr 74px;
  gap: 14px;
  align-items: center;
  min-height: 42px;
  border-bottom: 1px solid #ecf1f4;
}
.mock-table-row:last-child { border-bottom: 0; }
.mock-pill { width: 58px; height: 18px; border-radius: 999px; background: #dff6ee; }
.mock-side { padding: 18px 14px; background: #f8fbfc; border-left: 1px solid var(--border); }
.mock-side-card { min-height: 92px; margin-bottom: 12px; padding: 12px; }

/* Container/section */
.container { width: min(1180px, calc(100% - 36px)); margin: 0 auto; }
.section { padding: clamp(60px, 7.5vw, 92px) 0; }
.section-header { max-width: 780px; margin-bottom: 26px; }
.section-header p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.6;
}

/* Grids */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

/* Cards */
.feature-card,
.audience-card,
.info-card,
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: clamp(18px, 2.2vw, 24px);
  box-shadow: var(--shadow-1), var(--shadow-2);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.feature-card:hover,
.audience-card:hover {
  transform: translateY(-2px);
  border-color: #c8dee5;
  box-shadow: 0 1px 2px rgba(16,32,51,0.05), 0 14px 32px -14px rgba(8,102,124,0.18);
}
.feature-card p,
.audience-card p,
.info-card p,
.faq-item p {
  margin: 0;
  color: var(--muted);
}
.audience-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text-strong);
  font-size: 18px;
}
.icon {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 8px;
  background: #e9f7f6;
  color: var(--primary);
  font-weight: 900;
  padding: 8px;
  overflow: hidden;
}
.icon svg {
  width: 22px;
  height: 22px;
  display: block;
}
.icon .runware-icon-img {
  width: calc(100% + 16px);
  height: calc(100% + 16px);
  object-fit: cover;
}

/* Linjegrid — strukturert "label : body"-grid for funksjonssider */
.line-grid {
  margin-top: 32px;
  border-top: 1px solid var(--border);
}
.line-grid .row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: clamp(20px, 4vw, 56px);
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}
.line-grid .label {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
}
.line-grid .body {
  color: var(--text);
}
.line-grid .body p {
  margin: 0 0 8px;
  color: var(--text);
}
.line-grid .body ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text);
}
.line-grid .body ul li {
  margin: 4px 0;
}
.line-grid .body a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: #c8dee5;
  text-underline-offset: 3px;
}

/* Klikkbart funksjonskort — hele kortet er en lenke */
a.feature-card {
  display: block;
  color: inherit;
  text-decoration: none;
  position: relative;
}
a.feature-card:hover {
  text-decoration: none;
}
a.feature-card::after {
  content: "→";
  position: absolute;
  right: 18px;
  top: 22px;
  color: var(--primary);
  font-weight: 900;
  font-size: 16px;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 160ms ease, transform 160ms ease;
}
a.feature-card:hover::after,
a.feature-card:focus-visible::after {
  opacity: 1;
  transform: translateX(0);
}

/* Skjermbildeseksjon på funksjonssider */
.func-shot {
  border: 1px solid #cfe0e8;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-3);
  margin-top: 32px;
}
.func-shot img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 720px;
  object-fit: cover;
  object-position: top;
}
.func-shot figcaption {
  padding: 12px 18px;
  background: #fbfdff;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 700px) {
  .line-grid .row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 18px 0;
  }
}

.band {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #fff;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.88fr);
  gap: clamp(26px, 5vw, 68px);
  align-items: center;
}

/* Lists */
.check-list { padding: 0; margin: 24px 0 0; list-style: none; }
.check-list li {
  position: relative;
  padding-left: 30px;
  margin: 12px 0;
  color: #43536a;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: inset 0 0 0 4px #dff8f3;
}

.notice {
  margin-top: 22px;
  padding: 15px 16px;
  border: 1px solid #f6d49a;
  border-radius: var(--radius);
  background: #fff8eb;
  color: #6f4a09;
  font-weight: 700;
}
.demo-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-top: 26px;
  padding: 18px;
  border: 1px solid #bde9df;
  border-radius: var(--radius);
  background: #ecfbf8;
}
.demo-banner strong {
  display: block;
  color: var(--text-strong);
  font-size: 18px;
}
.demo-banner p { margin: 4px 0 0; color: #496073; }

/* Mini-UI */
.mini-ui {
  border: 1px solid #cfe0e8;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-1), var(--shadow-2);
  overflow: hidden;
}
.mini-tabs {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid var(--border);
  background: #f8fbfc;
}
.mini-tabs span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border-radius: 8px;
  color: #53657a;
  font-size: 13px;
  font-weight: 850;
  position: relative;
}
.mini-tabs span.active {
  background: transparent;
  color: var(--primary);
}
.mini-tabs span.active::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: -13px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}
.mini-body { padding: 18px; }
.mini-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 13px 18px;
  margin: 0 -18px;
  border-bottom: 1px solid #edf2f5;
  align-items: center;
}
.mini-row:last-child { border-bottom: 0; }
.mini-row:nth-child(even) { background: #fbfdff; }
.mini-row strong { display: block; color: var(--text-strong); }
.mini-row span { color: var(--muted); font-size: 13px; }
.score { color: var(--primary); font-weight: 900; }

/* CTA section */
.cta-section { padding: 64px 0; background: var(--primary); color: #fff; }
.cta-section h2, .cta-section p { color: #fff; }
.cta-section p { max-width: 720px; opacity: 0.9; }
.cta-section .btn { border-color: rgba(255, 255, 255, 0.38); color: #fff; background: transparent; }
.cta-section .btn-primary { background: #fff; border-color: #fff; color: var(--primary); }

/* Footer */
.site-footer {
  padding: 34px clamp(18px, 4vw, 58px);
  background: #102033;
  color: #d8e3ea;
}
.footer-inner {
  width: min(1180px, 100%);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a { color: #d8e3ea; }

/* Page-title */
.page-title {
  padding: clamp(44px, 5.5vw, 70px) 0 clamp(34px, 4vw, 46px);
  background:
    radial-gradient(circle at 82% 18%, rgba(24,184,158,0.12), transparent 32%),
    linear-gradient(180deg, #fff 0%, #f5fafb 100%);
  border-bottom: 1px solid var(--border);
}
.page-title .lead { max-width: 820px; }

.page-title-art {
  margin: 28px 0 0;
  width: min(760px, 100%);
  border: 1px solid rgba(8, 102, 124, 0.16);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255,255,255,0.78);
  box-shadow: var(--shadow-2);
}

.page-title-art img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.two-col-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

/* Contact form */
.contact-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-weight: 800;
  color: var(--text-strong);
}
.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  font: inherit;
  background: #fff;
}
.field textarea { min-height: 130px; resize: vertical; }
.field-full { grid-column: 1 / -1; }
.field label { display: block; }
.muted-inline { font-weight: 400; color: var(--muted, #6b7d92); font-size: 12px; }

/* Tilgangsmatrise */
.matrix {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
  font-size: 14px;
}
.matrix th, .matrix td {
  padding: 10px 12px;
  border: 1px solid var(--border);
  text-align: left;
}
.matrix th {
  background: #f5f9fa;
  font-weight: 800;
  color: var(--text-strong);
}
.matrix td.yes {
  background: #eafaf2;
  color: #0f6b3a;
  font-weight: 700;
}
.matrix td.no {
  background: #fbecec;
  color: #7a2222;
  font-weight: 700;
}

/* Duo-cols */
.duo-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.duo-cols .col {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 22px;
  box-shadow: var(--shadow-1), var(--shadow-2);
}
.duo-cols .col h3 { margin-top: 0; }

/* Flow-steps */
.flow-steps {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 12px;
  counter-reset: flow;
}
.flow-steps li {
  counter-increment: flow;
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 18px 16px 16px;
  box-shadow: var(--shadow-1), var(--shadow-2);
}
.flow-steps li::before {
  content: counter(flow);
  display: block;
  width: 28px;
  height: 28px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 900;
  text-align: center;
  line-height: 28px;
  font-size: 13px;
}
.flow-steps li strong { display: block; margin-bottom: 4px; color: var(--text-strong); }
.flow-steps li span { color: var(--muted); font-size: 13px; }

/* Beta-tester CTA — prominent recruitment block */
.beta-cta {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0;
  background: linear-gradient(135deg, #08667c 0%, #0a7a93 60%, #18b89e 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: #fff;
  box-shadow: 0 28px 70px -20px rgba(8, 102, 124, 0.45);
  position: relative;
}
.beta-cta::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 70%);
  pointer-events: none;
}
.beta-cta-body {
  padding: clamp(36px, 4.4vw, 56px);
  position: relative;
  z-index: 1;
}
.beta-cta-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.beta-cta-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(24, 184, 158, 0.35);
  animation: pulse 2s ease-in-out infinite;
}
.beta-cta h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.15;
  color: #fff;
  letter-spacing: -0.005em;
}
.beta-cta-lead {
  margin: 0 0 24px;
  font-size: 17px;
  line-height: 1.55;
  color: #e1f1f5;
  max-width: 560px;
}
.beta-cta-perks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 22px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}
.beta-cta-perks li {
  position: relative;
  padding-left: 28px;
  color: #fff;
  font-size: 15px;
  line-height: 1.45;
}
.beta-cta-perks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(24, 184, 158, 0.95);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8l3 3 7-7' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 14px;
}
.beta-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.beta-cta-actions .btn {
  font-size: 15px;
  padding: 12px 22px;
}
.beta-cta-actions .btn-primary {
  background: #fff;
  border-color: #fff;
  color: var(--primary);
}
.beta-cta-actions .btn-primary:hover {
  background: #f0fbff;
  border-color: #f0fbff;
  color: var(--primary);
}
.beta-cta-actions .btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}
.beta-cta-actions .btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.beta-cta-side {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: clamp(28px, 4vw, 40px);
  background: rgba(8, 102, 124, 0.55);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 1;
}
.beta-cta-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.beta-cta-stat strong {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1;
}
.beta-cta-stat span {
  font-size: 13px;
  color: #b8d8e0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
}
.beta-cta-quote {
  margin: 0;
  padding: 14px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: #d8e7eb;
  font-size: 14px;
  line-height: 1.5;
  font-style: italic;
}

@media (max-width: 860px) {
  .beta-cta { grid-template-columns: 1fr; }
  .beta-cta-side { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.12); }
  .beta-cta-perks { grid-template-columns: 1fr; }
}

/* Hero "anbefalt lesning"-link */
.hero-read-more {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  padding: 12px 18px 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text-strong);
  max-width: 100%;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-1);
}
.hero-read-more:hover {
  border-color: var(--primary);
  border-left-color: var(--accent);
  text-decoration: none;
  transform: translateX(2px);
  box-shadow: var(--shadow-2);
}
.hero-read-more-tag {
  flex: none;
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--text-strong);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hero-read-more-title {
  flex: 1;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-strong);
}
.hero-read-more-arrow {
  flex: none;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  transition: transform 0.2s;
}
.hero-read-more:hover .hero-read-more-arrow {
  transform: translateX(3px);
}

/* ===== Blogg ===== */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.article-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: var(--shadow-1);
}
.article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-3);
  border-color: var(--primary);
  text-decoration: none;
}
.article-card-media {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #08667c, #0f3a48);
  position: relative;
  overflow: hidden;
}
.article-card-media img,
.article-card-media svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.article-card-body {
  padding: 22px 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.article-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
}
.article-card-meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--muted);
}
.article-card-kategori {
  color: var(--primary);
}
.article-card h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
  color: var(--text-strong);
  font-weight: 800;
}
.article-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  flex: 1;
}
.article-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
}

/* Featured article — large horizontal card on landing */
.article-featured {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-2);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  margin-bottom: 28px;
  position: relative;
}
.article-featured:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-3);
  border-color: var(--primary);
  text-decoration: none;
}
.article-featured-media {
  position: relative;
  min-height: 380px;
  background: linear-gradient(135deg, #f7e7c8, #e9c98e);
  overflow: hidden;
}
.article-featured-media img,
.article-featured-media svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-featured-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--text-strong);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.article-featured-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.article-featured-body {
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
.article-featured-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
}
.article-featured-meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--muted);
}
.article-featured-meta .article-card-kategori { color: var(--primary); }
.article-featured h3 {
  margin: 0;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.18;
  color: var(--text-strong);
  font-weight: 800;
  letter-spacing: -0.005em;
}
.article-featured p {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
}
.article-featured-quote {
  margin: 6px 0 4px;
  padding: 12px 18px;
  border-left: 3px solid var(--accent);
  background: rgba(24, 184, 158, 0.06);
  font-style: italic;
  color: var(--text-strong);
  font-size: 15px;
}
.article-featured-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin-top: 6px;
  padding: 10px 18px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 14px;
  transition: background 0.2s;
}
.article-featured:hover .article-featured-cta {
  background: #07556a;
}

/* Article hero (single article page) */
.article-hero {
  padding: clamp(42px, 5vw, 58px) 0 0;
}
.article-hero .container {
  max-width: 880px;
}
.article-hero .eyebrow { margin-bottom: 14px; }
.article-hero h1 {
  font-size: clamp(32px, 3.8vw, 46px);
  line-height: 1.15;
  margin: 0 0 18px;
  color: var(--text-strong);
  letter-spacing: -0.01em;
}
.article-hero .lead {
  max-width: 780px;
  font-size: clamp(17px, 1.35vw, 19px);
  line-height: 1.65;
  margin-bottom: 26px;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}
.article-meta time { color: var(--muted); }
.article-meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--muted);
}
.article-hero-image {
  margin: 36px 0 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-2);
  aspect-ratio: 16 / 9;
  background: #0f3a48;
}
.article-hero-image img,
.article-hero-image svg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Article body — readable typography */
.article-body {
  padding: 56px 0 80px;
}
.article-body .container {
  max-width: 720px;
}
.article-body h2 {
  font-size: 26px;
  line-height: 1.3;
  margin: 44px 0 14px;
  color: var(--text-strong);
  font-weight: 800;
}
.article-body h3 {
  font-size: 19px;
  line-height: 1.35;
  margin: 30px 0 10px;
  color: var(--text-strong);
  font-weight: 700;
}
.article-body p {
  font-size: 17px;
  line-height: 1.7;
  margin: 0 0 18px;
  color: var(--text);
}
.article-body ul,
.article-body ol {
  font-size: 17px;
  line-height: 1.7;
  padding-left: 22px;
  margin: 0 0 18px;
}
.article-body li { margin: 0 0 6px; }
.article-body strong { color: var(--text-strong); font-weight: 700; }
.article-body a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
.article-body a:hover { color: #07556a; }
.article-body blockquote {
  margin: 22px 0;
  padding: 14px 22px;
  border-left: 3px solid var(--primary);
  background: rgba(8, 102, 124, 0.05);
  font-style: italic;
  color: var(--text-strong);
}
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0;
  font-size: 16px;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  white-space: normal;
}
.article-body table thead,
.article-body table tbody,
.article-body table tr { display: table; width: 100%; table-layout: auto; }
.article-body table th,
.article-body table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  line-height: 1.55;
}
.article-body table th {
  font-weight: 700;
  color: var(--text-strong);
  background: rgba(8, 102, 124, 0.05);
}
@media (max-width: 620px) {
  .article-body table { font-size: 14px; }
  .article-body table th,
  .article-body table td { padding: 9px 10px; }
}
.article-body hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 36px 0;
}
.article-body .article-callout {
  margin: 28px 0;
  padding: 22px 26px;
  background: rgba(24, 184, 158, 0.08);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
}
.article-body .article-callout p:last-child { margin-bottom: 0; }
.article-body .article-callout strong { color: var(--text-strong); }
.article-body .article-checklist {
  list-style: none;
  padding: 0;
}
.article-body .article-checklist li {
  position: relative;
  padding-left: 28px;
  margin: 0 0 10px;
}
.article-body .article-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--primary);
  border-radius: 3px;
  background: #fff;
}

/* Related articles & footer-CTA inside article */
.article-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 56px 0;
}
.article-footer .container { max-width: 1080px; }
.article-related {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

/* Filter chips on hub page */
.article-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
}
.article-filter a {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.article-filter a:hover {
  border-color: var(--primary);
  color: var(--primary);
  text-decoration: none;
}
.article-filter a.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .feature-card, .audience-card, .btn { transition: none; }
  .feature-card:hover, .audience-card:hover { transform: none; }
}

/* Mobile / responsive */
@media (max-width: 860px) {
  .site-header { flex-wrap: wrap; gap: 0; padding-top: 10px; padding-bottom: 10px; }
  .site-nav-toggle {
    display: block;
    margin-left: auto;
  }
  .site-nav-toggle summary {
    list-style: none;
    cursor: pointer;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--primary);
    font-weight: 800;
    font-size: 14px;
  }
  .site-nav-toggle summary::-webkit-details-marker { display: none; }
  .site-nav-toggle summary::after { content: "Meny ▾"; }
  .site-nav-toggle[open] summary::after { content: "Lukk ▴"; }
  .nav-links {
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-top: 12px;
    display: none;
  }
  .site-nav-toggle[open] ~ .nav-links {
    display: flex;
  }
  .nav-links a {
    padding: 12px 4px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links a:last-child {
    border-bottom: 0;
    margin-top: 8px;
  }

  .page-hero-grid { grid-template-columns: 1fr; }
  .hero-visual { margin-top: 18px; }

  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-related { grid-template-columns: 1fr; }
  .article-featured { grid-template-columns: 1fr; }
  .article-featured-media { min-height: 240px; aspect-ratio: 16/9; }
  .audience-grid,
  .split,
  .two-col-list,
  .faq-grid,
  .demo-banner,
  .contact-box,
  .duo-cols {
    grid-template-columns: 1fr;
  }

  .flow-steps { grid-template-columns: 1fr 1fr; }
  /* Matrix: don't hide data on mobile — wrap in horizontal scroll instead so all profesjoner remain visible */
  .matrix {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    border-bottom: 1px solid var(--border);
  }
  .matrix th, .matrix td { padding: 8px 10px; font-size: 13px; }
  .matrix th:first-child, .matrix td:first-child { position: sticky; left: 0; background: #fff; }

  .mock-app { grid-template-columns: 72px 1fr; }
  .mock-side { display: none; }
}

@media (max-width: 620px) {
  .site-header { position: static; }
  .page-hero { padding-top: 34px; }
  h1 { font-size: 36px; }
  .page-title { padding-top: 38px; }
  .feature-grid { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: 1fr; }
  .hero-actions, .section-actions { flex-direction: column; }
  .btn { width: 100%; }
  .hero-read-more { flex-wrap: wrap; gap: 8px; }
  .hero-read-more-tag { flex-basis: 100%; align-self: flex-start; }
  .hero-read-more-title { font-size: 14px; }

  /* Fix horizontal overflow: collapse fixed-width line-grid columns to single column */
  .line-grid .row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 16px 0;
  }
  .line-grid .row .label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
  }

  .mock-app { grid-template-columns: 1fr; }
  .mock-rail { display: none; }
  .mock-top { grid-template-columns: repeat(2, 1fr); }
  .mini-tabs { flex-wrap: wrap; }
}

.version-strip,
.transcription-value-strip {
  border-bottom: 1px solid var(--border);
  background: #ffffff;
}

.version-strip-inner,
.transcription-value-inner {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.version-strip strong,
.transcription-value-strip strong {
  color: var(--text-strong);
}

.version-strip a,
.transcription-value-strip a {
  color: var(--primary);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.transcription-value-strip {
  background: #eaf8f4;
}

.cost-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.cost-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  background: #fff;
}

.cost-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text-strong);
  font-size: 28px;
  line-height: 1;
}

.cost-card span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

@media (max-width: 920px) {
  .cost-grid { grid-template-columns: 1fr; }
  .version-strip-inner,
  .transcription-value-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
