:root {
  --background: #ffffff;
  --surface: #f7f9fc;
  --foreground: #1f2937;
  --muted: #6b7280;
  --primary: #0f4c81;
  --primary-hover: #0c3e6a;
  --navy: #0f2b48;
  --border: #e5e9f0;
  --line: #e2e8f0;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--background);
  color: var(--foreground);
  font-size: 18px;
  line-height: 1.75;
}
h1, h2, h3, h4 { margin: 0; color: var(--foreground); letter-spacing: -0.02em; line-height: 1.15; }
p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: #0f4c81; color: #fff; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 1.5rem; }
.muted { color: var(--muted); }

/* Knapper */
.btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.95rem 1.6rem; font-weight: 600; font-size: 15px; line-height: 1.4;
  border-radius: 2px; font-family: inherit; cursor: pointer;
}
.btn-primary { background: var(--primary); color: #fff; border: 0; transition: background-color .15s ease; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-primary:disabled { cursor: default; }
.btn-ghost { color: var(--foreground); border: 1px solid var(--border); background: transparent; transition: border-color .15s ease; }
.btn-ghost:hover { border-color: var(--foreground); }

/* Logo */
.logo {
  display: inline-flex; flex-direction: column; line-height: 1;
  font-weight: 800; font-size: 22px; letter-spacing: -0.02em; color: var(--navy);
}
.logo .bar { display: block; height: 4px; width: 72%; margin-top: 3px; background: var(--primary); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: #fff;
  border-bottom: 1px solid var(--border); transition: box-shadow .15s;
}
.site-header.scrolled { box-shadow: 0 1px 0 0 rgba(15,23,42,0.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.nav-desktop { display: none; align-items: center; gap: 2.25rem; }
.nav-desktop a { font-size: 15px; color: rgba(31,41,55,.8); transition: color .15s; }
.nav-desktop a:hover { color: var(--primary); }
.header-cta { display: none; }
.menu-btn { background: none; border: 0; padding: .5rem; cursor: pointer; color: var(--foreground); }
.menu-btn .icon-close { display: none; }
.site-header.open .menu-btn .icon-open { display: none; }
.site-header.open .menu-btn .icon-close { display: block; }
.mobile-nav { display: none; border-top: 1px solid var(--border); }
.site-header.open .mobile-nav { display: block; }
.mobile-nav .container { padding-block: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.mobile-nav a { font-size: 16px; color: rgba(31,41,55,.8); }
.mobile-nav .btn-primary { color: #fff; align-self: flex-start; margin-top: .5rem; }

/* Seksjoner */
section { padding-block: 4rem; }
.bordered { border-bottom: 1px solid var(--line); }
.h2 { font-size: 28px; font-weight: 600; line-height: 1.1; letter-spacing: -0.025em; }

/* Hero */
.hero { background: var(--surface); border-bottom: 1px solid var(--border); }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
.hero h1 { font-size: 32px; font-weight: 700; line-height: 1.12; letter-spacing: -0.025em; }
.hero-lead { margin-top: 1.5rem; font-size: 17px; line-height: 1.75; color: var(--muted); max-width: 560px; }
.hero-actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-image { margin-inline: auto; max-width: 600px; width: 100%; }
.hero-image img { width: 100%; height: auto; }

/* Tjenester */
.services-grid { margin-top: 2.5rem; display: grid; grid-template-columns: 1fr; border-top: 2px solid var(--primary); }
.service { padding-block: 2rem; }
.service + .service { border-top: 1px solid var(--line); }
.service h3 { font-size: 20px; font-weight: 600; }
.service p { margin-top: .75rem; font-size: 15px; line-height: 1.75; color: var(--muted); }

/* Hvorfor oss */
.why-grid { margin-top: 2.5rem; display: grid; grid-template-columns: 1fr; column-gap: 4rem; row-gap: 2.5rem; }
.why-item { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.why-item h3 { font-size: 18px; font-weight: 600; }
.why-item p { margin-top: .5rem; font-size: 15px; line-height: 1.75; color: var(--muted); max-width: 28rem; }
.why-cta { margin-top: 3rem; }

/* Prosess */
.steps { margin-top: 2.5rem; display: grid; grid-template-columns: 1fr; column-gap: 2rem; row-gap: 2.5rem; }
.step { border-top: 2px solid #0f172a; padding-top: 1.25rem; }
.step-title { font-size: 15px; font-weight: 600; }
.step-title span { color: var(--muted); font-variant-numeric: tabular-nums; }
.step p:last-child { margin-top: .75rem; font-size: 15px; line-height: 1.75; color: var(--muted); }

/* Priser */
.price-wrap { margin: 2.5rem auto 0; max-width: 480px; }
.price-card {
  background: #fff; padding: 1.5rem; border-radius: 16px; border: 1px solid var(--border);
  box-shadow: 0 18px 50px -28px rgba(15,43,72,0.30);
}
.price-card h3 { font-size: 24px; font-weight: 700; }
.price-row { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.price-label { font-size: 15px; font-weight: 600; color: var(--muted); }
.price-big { font-size: 42px; font-weight: 700; letter-spacing: -0.025em; line-height: 1; }
.price-mid { font-size: 36px; font-weight: 700; letter-spacing: -0.025em; line-height: 1; }
.price-unit { font-size: 17px; font-weight: 600; }
.price-note { margin-top: .5rem; font-size: 14px; color: var(--muted); }
.price-divider { margin-block: 2rem; height: 1px; background: var(--border); }
.features { margin-top: 2rem; display: grid; gap: .75rem; }
.features li { display: flex; align-items: flex-start; gap: .75rem; font-size: 15px; line-height: 1.6; }
.features svg { flex-shrink: 0; margin-top: 2px; color: var(--primary); }
.price-cta {
  margin-top: 2.5rem; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  width: 100%; padding: 1rem 2rem; font-size: 15px; font-weight: 600; color: #fff;
  background: var(--navy); border-radius: 10px;
}
.price-cta svg { transition: transform .2s; }
.price-cta:hover svg { transform: translateX(4px); }

/* Kontakt */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
.contact-lead { margin-top: 1rem; font-size: 16px; line-height: 1.8; color: var(--muted); max-width: 28rem; }
.contact-info { margin-top: 2rem; display: grid; gap: 1.25rem; font-size: 15px; }
.label-sm { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.contact-info dd { margin-top: .25rem; }
.contact-info a:hover { color: var(--primary); }
.contact-form { background: #fff; padding: 1.25rem; border: 1px solid var(--border); border-radius: 2px; display: grid; gap: 1rem; align-content: start; }
.contact-form .label-sm { margin-bottom: .5rem; }
.contact-form input, .contact-form textarea {
  width: 100%; background: #fff; border: 1px solid var(--border); border-radius: 2px;
  padding: .625rem .875rem; font-size: 15px; font-family: inherit; color: var(--foreground);
  transition: border-color .15s;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--primary); }
.form-error { font-size: 14px; color: #dc2626; }
.form-consent { font-size: 12px; color: var(--muted); line-height: 1.6; }
.form-consent a { text-decoration: underline; }
.form-consent a:hover { color: var(--primary); }
.contact-form .btn-primary { width: 100%; }
.hidden { display: none !important; }

/* Footer */
.site-footer { background: #fff; border-top: 1px solid var(--line); }
.footer-inner { padding-block: 3rem; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; }
.footer-inner p { font-size: 14px; color: var(--muted); line-height: 1.6; }
.footer-links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: 14px; color: var(--muted); }
.footer-links a:hover { color: var(--foreground); }

/* Personvern */
.legal { padding-block: 5rem; }
.legal article { max-width: 48rem; }
.legal h1 { font-size: 34px; font-weight: 700; }
.legal-body { margin-top: 2.5rem; display: grid; gap: 2rem; font-size: 16px; line-height: 1.85; color: var(--muted); }
.legal-body h2 { font-size: 22px; font-weight: 700; }
.legal-body p { margin-top: .75rem; }
.legal-body a { color: var(--primary); }
.legal-body a:hover { text-decoration: underline; }

/* 640px+ */
@media (min-width: 640px) {
  .hero h1 { font-size: 38px; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .price-card { padding: 2rem; }
  .contact-form .btn-primary { width: auto; justify-self: start; }
}
/* 768px+ */
@media (min-width: 768px) {
  section { padding-block: 7rem; }
  .hero { padding-block: 6rem; }
  .logo { font-size: 24px; }
  .logo .bar { height: 5px; }
  .nav-desktop, .header-cta { display: flex; }
  .menu-btn, .site-header.open .mobile-nav { display: none; }
  .h2 { font-size: 40px; }
  .hero h1 { font-size: 48px; }
  .hero-lead { font-size: 18px; }
  .hero-grid, .contact-grid { gap: 3.5rem; }
  .services-grid { margin-top: 3.5rem; grid-template-columns: repeat(3, 1fr); }
  .service { padding: 2.5rem 2rem; }
  .service:first-child { padding-left: 0; }
  .service + .service { border-top: 0; border-left: 1px solid var(--line); }
  .why-grid { margin-top: 3.5rem; row-gap: 3.5rem; }
  .steps { margin-top: 3.5rem; grid-template-columns: 1fr 1fr; }
  .price-wrap { margin-top: 3.5rem; }
  .price-card { padding: 2.5rem; }
  .price-card h3 { font-size: 26px; }
  .price-big { font-size: 48px; }
  .price-mid { font-size: 40px; }
  .contact-info { margin-top: 2.5rem; }
  .contact-form { padding: 2rem; gap: 1.25rem; }
  .contact-form input, .contact-form textarea { padding: .75rem 1rem; }
  .footer-inner { flex-direction: row; align-items: flex-start; padding-block: 4rem; }
  .legal { padding-block: 7rem; }
  .legal h1 { font-size: 42px; }
}
/* 1024px+ */
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 52px; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 5rem; }
}
