@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --navy-950: #071220;
  --navy-900: #0B1A2C;
  --navy-800: #10243C;
  --navy-700: #1A3556;
  --grid: rgba(140, 178, 222, .05);
  --grid-strong: rgba(140, 178, 222, .11);
  --line-dark: rgba(160, 190, 225, .2);
  --on-dark: #E7EDF4;
  --on-dark-muted: #A3B4C8;
  --amber: #F5B83D;
  --amber-hi: #FFCB66;

  --ink: #0E1A28;
  --ink-2: #4A596C;
  --paper: #FFFFFF;
  --paper-2: #F2F4F7;
  --rule: #D8DEE5;
  --rule-strong: #93A0AF;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
  --gutter: clamp(20px, 4vw, 40px);
  --focus: var(--navy-700);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
}

h1, h2, h3 {
  margin: 0;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.015em;
  text-wrap: balance;
}
p, ul, ol, dl, dd { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -100px; z-index: 10;
  padding: 10px 14px; background: var(--amber); color: var(--navy-950); font-weight: 600;
}
.skip:focus { top: 12px; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.error-hero { min-height: 60vh; }

/* ---------- Knappar och länkar ---------- */

.btn {
  display: inline-block;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 3px;
  font: 600 1rem/1.2 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--amber); color: var(--navy-950); }
.btn-primary:hover { background: var(--amber-hi); }
.btn-ghost { border-color: var(--line-dark); color: var(--on-dark); background: transparent; }
.btn-ghost:hover { border-color: var(--on-dark-muted); }
.btn-dark { background: var(--navy-900); color: var(--on-dark); }
.btn-dark:hover { background: var(--navy-700); }

.text-link {
  font-weight: 500;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}
.text-link:hover { text-decoration-color: var(--amber); }

/* ---------- Mörka ytor ---------- */

.dark {
  --focus: var(--amber);
  background: var(--navy-900);
  color: var(--on-dark);
}
.grid-bg { position: relative; overflow: hidden; }
.grid-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-strong) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-strong) 1px, transparent 1px),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 80%);
          mask-image: linear-gradient(90deg, transparent 30%, #000 80%);
  pointer-events: none;
}
.grid-bg > * { position: relative; }

/* ---------- Sidhuvud ---------- */

.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}
.wordmark { display: inline-flex; color: var(--on-dark); text-decoration: none; }
.wordmark-svg { display: block; height: 18px; width: auto; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav ul { display: flex; gap: 28px; padding: 0; list-style: none; }
.nav ul a {
  display: block;
  padding: 6px 0;
  color: var(--on-dark-muted);
  font-size: .9375rem;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.nav ul a:hover { color: var(--on-dark); }
.nav ul a[aria-current="page"] { color: var(--on-dark); border-bottom-color: var(--amber); }
.nav .btn { padding: 9px 16px; font-size: .9375rem; }

@media (max-width: 760px) {
  .site-header .bar { flex-wrap: wrap; gap: 0 16px; min-height: 0; padding-top: 18px; }
  .nav { display: contents; }
  .nav .btn { order: 2; }
  .nav ul {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
    gap: 4px 22px;
    margin-top: 14px;
    border-top: 1px solid var(--line-dark);
  }
  .nav ul a { padding: 12px 0; white-space: nowrap; }
}

/* ---------- Hero och sidhuvuden ---------- */

.hero-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
  padding-block: clamp(40px, 6vw, 72px) clamp(56px, 8vw, 104px);
}
.hero h1 { max-width: 14ch; font-size: clamp(2.375rem, 1.5rem + 3.6vw, 4rem); line-height: 1.04; }
.lead { max-width: 46ch; margin-top: 24px; color: var(--on-dark-muted); font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 34px; }
.assurance {
  max-width: 46ch;
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--line-dark);
  color: var(--on-dark-muted);
  font-size: .9375rem;
}
@media (max-width: 940px) {
  .hero-body { grid-template-columns: minmax(0, 1fr); }
  .doc { max-width: 520px; }
}

.page-head { padding-block: clamp(40px, 6vw, 72px) clamp(48px, 7vw, 88px); }
.page-head h1 { font-size: clamp(2.125rem, 1.4rem + 2.8vw, 3.25rem); max-width: 20ch; }
.page-head .lead { max-width: 56ch; }

/* ---------- Rapportutdrag ---------- */

.doc {
  margin: 0;
  padding: 26px 28px 20px;
  background: var(--paper);
  color: var(--ink);
  font-size: .875rem;
  line-height: 1.5;
  box-shadow: 0 36px 70px -34px rgba(0, 0, 0, .75);
}
.doc-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--ink-2); font-size: .75rem; }
.doc-top .wordmark-svg { height: 11px; color: var(--ink); }
.doc-title { margin-top: 22px; font-size: 1.375rem; font-weight: 700; line-height: 1.12; letter-spacing: -.015em; }
.doc-meta { margin-top: 4px; color: var(--ink-2); }
.doc-h { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--rule); font-size: .9375rem; font-weight: 700; line-height: 1.12; }
.doc-sum { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 7px 12px; margin-top: 12px; }
.doc-sum dt { color: var(--ink-2); }
.doc-sum dd { font-weight: 500; }
.doc-grade { display: flex; align-items: center; gap: 12px; }
.scale { display: inline-flex; border: 1px solid var(--rule-strong); }
.scale span { width: 22px; text-align: center; font-size: .75rem; font-weight: 600; line-height: 20px; color: var(--ink-2); }
.scale span + span { border-left: 1px solid var(--rule); }
.scale .is-current { background: var(--amber); color: var(--navy-950); }
.doc-table { width: 100%; margin-top: 10px; border-collapse: collapse; }
.doc-table th, .doc-table td { padding: 7px 10px 7px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
.doc-table th { color: var(--ink-2); font-size: .75rem; font-weight: 500; border-bottom-color: var(--rule-strong); }
.doc-table td:first-child { width: 3em; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.doc-table td:last-child, .doc-table th:last-child { padding-right: 0; text-align: right; white-space: nowrap; }
.doc-table .crit { font-weight: 700; }
.doc-note { margin-top: 14px; color: var(--ink-2); font-size: .75rem; }

/* ---------- Ljusa sektioner ---------- */

.sec { padding-block: clamp(64px, 9vw, 112px); }
.sec-alt { background: var(--paper-2); border-block: 1px solid var(--rule); }
.sec h2 { font-size: clamp(1.75rem, 1.25rem + 1.8vw, 2.5rem); }
.sec-intro { max-width: 60ch; margin-top: 16px; color: var(--ink-2); }
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px clamp(32px, 6vw, 96px); }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }

.prose { max-width: 62ch; color: var(--ink-2); }
.prose p + p { margin-top: 1em; }
.statement {
  color: var(--ink);
  font-weight: 600;
  font-size: clamp(1.375rem, 1.1rem + 1.1vw, 1.875rem);
  line-height: 1.22;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.prose .statement + p { margin-top: 1.25em; }

/* Lista med leveranser */
.list-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
.list-2 > div { padding: 20px 0 22px; border-top: 1px solid var(--rule); }
.list-2 dt, .list-2 h3 { font-size: 1.1875rem; font-weight: 600; line-height: 1.3; }
.list-2 dd, .list-2 p { max-width: 52ch; margin-top: 6px; color: var(--ink-2); }
@media (max-width: 640px) { .list-2 { grid-template-columns: minmax(0, 1fr); } }

.more { margin-top: 32px; }

/* Case */
.case-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.case-stats > div { padding: 18px 16px 20px 0; }
.case-stats > div + div { padding-left: 16px; border-left: 1px solid var(--rule); }
.case-stats dt { color: var(--ink-2); font-size: .875rem; }
.case-stats dd { margin-top: 4px; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.case-prose { margin-top: 28px; }
.case-note { margin-top: 20px; color: var(--ink-2); font-size: .875rem; }
@media (max-width: 640px) {
  .case-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-stats > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .case-stats > div:nth-child(n+3) { border-top: 1px solid var(--rule); }
}

/* Betygsskala */
.grades { width: 100%; margin-top: 8px; border-collapse: collapse; }
.grades th, .grades td { padding: 16px 20px 16px 0; text-align: left; vertical-align: top; border-top: 1px solid var(--rule); }
.grades tr:last-child th, .grades tr:last-child td { border-bottom: 1px solid var(--rule); }
.grades th { width: 64px; }
.grade-letter {
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 1px solid var(--rule-strong);
  font-size: 1.125rem; font-weight: 700;
}
.grades td { color: var(--ink-2); }
.grades td strong { display: block; color: var(--ink); font-weight: 600; }

/* Steg */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 48px; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; padding-right: 28px; counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 44px; height: 44px; margin-bottom: 26px;
  background: var(--navy-900); color: var(--on-dark);
  font-weight: 700; font-size: 1.125rem;
  position: relative; z-index: 1;
}
.steps li::after { content: ""; position: absolute; top: 22px; left: 44px; right: 0; height: 1px; background: var(--rule-strong); }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.3125rem; }
.steps p { max-width: 30ch; margin-top: 8px; color: var(--ink-2); }
@media (max-width: 860px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 20px; padding: 0 0 32px; }
  .steps li::before { grid-row: 1 / span 2; margin: 0; }
  .steps li::after { top: 44px; bottom: 0; left: 22px; right: auto; width: 1px; height: auto; }
  .steps h3 { padding-top: 10px; }
  .steps p { max-width: 60ch; }
}

/* Paket */
.price-note { margin-top: 16px; color: var(--ink-2); font-size: .9375rem; }
.packages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 40px;
  border-top: 2px solid var(--ink);
}
.package { display: flex; flex-direction: column; padding: 28px 28px 32px 0; }
.package + .package { padding-left: 28px; border-left: 1px solid var(--rule); }
.package h2, .package h3 { font-size: 1.375rem; }
.package .what { margin-top: 6px; color: var(--ink-2); min-height: 3.2em; }
.package .price { margin-top: 22px; font-size: 1.875rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.01em; line-height: 1.1; }
.package .price small { font-size: .9375rem; font-weight: 500; color: var(--ink-2); letter-spacing: 0; }
.package .time { margin-top: 4px; color: var(--ink-2); font-size: .9375rem; }
.package ul { margin: 22px 0 28px; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.package li { padding: 10px 0 10px 24px; border-bottom: 1px solid var(--rule); position: relative; }
.package li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 10px; height: 2px; background: var(--amber); }
.package .btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 900px) {
  .packages { grid-template-columns: minmax(0, 1fr); }
  .package { padding: 28px 0 36px; }
  .package + .package { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule-strong); }
  .package .what { min-height: 0; }
}

/* Frågor */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.faq > div { padding: 24px 0 28px; border-top: 1px solid var(--rule); }
.faq h2, .faq h3 { font-size: 1.1875rem; font-weight: 600; line-height: 1.3; }
.faq p { max-width: 54ch; margin-top: 8px; color: var(--ink-2); }
.faq strong { color: var(--ink); font-weight: 600; }
@media (max-width: 700px) { .faq { grid-template-columns: minmax(0, 1fr); } }

/* Kontakt */
.contact-card {
  max-width: 640px;
  padding: 32px;
  border: 1px solid var(--rule-strong);
  border-left: 4px solid var(--navy-900);
}
.contact-card h2 { font-size: 1.375rem; }
.mail-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 16px; }
.mail { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem); font-weight: 600; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.mail:hover { text-decoration-color: var(--amber); }
.copy-btn {
  padding: 8px 14px;
  border: 1px solid var(--rule-strong);
  border-radius: 3px;
  background: var(--paper);
  color: var(--ink);
  font: 500 .875rem/1.2 var(--font);
  cursor: pointer;
}
.copy-btn:hover { border-color: var(--ink); }
.copy-btn[hidden] { display: none; }
.contact-card .hint { margin-top: 14px; color: var(--ink-2); font-size: .9375rem; }
.split-even { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 860px) { .split-even { grid-template-columns: minmax(0, 1fr); } }
.h-small { font-size: 1.375rem !important; padding-top: 32px; }
.checklist { margin-top: 16px; padding: 0; list-style: none; border-bottom: 1px solid var(--rule); }
.checklist li { padding: 12px 0 12px 24px; border-top: 1px solid var(--rule); position: relative; }
.checklist li::before { content: ""; position: absolute; left: 2px; top: 23px; width: 10px; height: 2px; background: var(--amber); }

/* Avslutande band */
.cta-band { padding-block: clamp(56px, 8vw, 96px); }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px 48px; }
.cta-band h2 { font-size: clamp(1.75rem, 1.25rem + 1.8vw, 2.5rem); max-width: 20ch; }
.cta-band p { max-width: 46ch; margin-top: 12px; color: var(--on-dark-muted); }

/* Sidfot */
.site-footer { padding-block: 32px; background: var(--navy-950); color: var(--on-dark-muted); font-size: .875rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 40px; }
.site-footer .wordmark-svg { height: 13px; color: var(--on-dark); }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 0; list-style: none; }
.site-footer a { color: var(--on-dark-muted); text-decoration-color: var(--line-dark); text-underline-offset: 4px; }
.site-footer a:hover { color: var(--on-dark); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Integritetspolicy */
.policy { max-width: 66ch; }
.policy h2 { font-size: 1.25rem; margin-top: 40px; }
.policy h2:first-child { margin-top: 0; }
.policy p { margin-top: 10px; color: var(--ink-2); }
.policy a { color: var(--ink); text-underline-offset: 3px; }
.h-sticky { font-size: 1rem !important; color: var(--ink-2); font-weight: 600; }
