/* ==========================================================================
   Sjölin – konsulttjänster inom mjukvaruarkitektur, AI & compliance
   Design: ljus, redaktionell premium. Inga externa beroenden, inga cookies,
   ingen spårning. Typsnitten serveras från den egna servern.
   ========================================================================== */

/* ---------- Typsnitt (self-hostade) ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-variable.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-400.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-400-italic.woff2") format("woff2");
}

/* ---------- Designvariabler ---------- */
:root {
  /* Papper och bläck */
  --paper: #f7f6f3;
  --surface: #ffffff;
  --surface-2: #fbfaf8;
  --ink: #0b1220;
  --ink-2: #1a2436;
  --body: #414c5e;
  --muted: #6d7789;
  --dim: #97a0af;

  --line: rgba(11, 18, 32, 0.12);
  --line-soft: rgba(11, 18, 32, 0.07);

  /* Accent: djup sjögrön på ljust, mint på mörkt */
  --accent: #0e5c4f;
  --accent-ink: #08423a;
  --accent-wash: rgba(14, 92, 79, 0.07);
  --mint: #5fe3c0;
  --mint-ink: #04231d;
  --sand: #b98a44;

  /* Mörka band */
  --night: #0a111c;
  --night-2: #0e1725;
  --night-fg: #eef2f8;
  --night-body: #a9b5c8;
  --night-dim: #7d8a9e;
  --night-line: rgba(255, 255, 255, 0.14);
  --night-line-soft: rgba(255, 255, 255, 0.08);

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-display: "Instrument Serif", "Iowan Old Style", Georgia, "Times New Roman", serif;

  --container: 1200px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --section-y: clamp(4rem, 9vw, 7.5rem);

  --radius: 3px;
  --radius-lg: 4px;

  --ease: cubic-bezier(0.25, 0.6, 0.3, 1);
  --header-h: 76px;

  /* Diskret konturmönster (vattenlinjer) för mörka band */
  --contours: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='360' viewBox='0 0 520 360'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.09' stroke-width='1'%3E%3Cpath d='M-40 40c60-34 120-34 180 0s120 34 180 0 120-34 180 0 120 34 180 0'/%3E%3Cpath d='M-40 92c60-34 120-34 180 0s120 34 180 0 120-34 180 0 120 34 180 0'/%3E%3Cpath d='M-40 144c60-34 120-34 180 0s120 34 180 0 120-34 180 0 120 34 180 0'/%3E%3Cpath d='M-40 196c60-34 120-34 180 0s120 34 180 0 120-34 180 0 120 34 180 0'/%3E%3Cpath d='M-40 248c60-34 120-34 180 0s120 34 180 0 120-34 180 0 120 34 180 0'/%3E%3Cpath d='M-40 300c60-34 120-34 180 0s120 34 180 0 120-34 180 0 120 34 180 0'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  color-scheme: light;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  letter-spacing: -0.004em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img,
svg,
video {
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
h1,
h2,
h3,
h4 {
  margin: 0 0 0.6em;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.18;
}
p {
  margin: 0 0 1.15em;
}
ul,
ol {
  margin: 0 0 1.15em;
  padding-left: 1.15em;
}
li {
  margin-bottom: 0.45em;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.5rem 0;
}
::selection {
  background: var(--accent);
  color: #fff;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Sidstruktur ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--text {
  max-width: 760px;
}
.section {
  padding-block: var(--section-y);
}
.section--tight {
  padding-block: clamp(2.75rem, 6vw, 4.5rem);
}
.section--surface {
  background: var(--surface);
}
.section--paper-2 {
  background: var(--surface-2);
}
.section + .section,
.rule-top {
  border-top: 1px solid var(--line-soft);
}
.section__head {
  max-width: 44rem;
  margin-bottom: clamp(2.25rem, 5vw, 3.75rem);
}
.section__head--center {
  margin-inline: auto;
  text-align: center;
}
.section__head p:last-child {
  margin-bottom: 0;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1.15rem;
  background: var(--ink);
  color: #fff;
  font-weight: 500;
}
.skip-link:focus {
  left: 0;
}

/* ---------- Typografi ---------- */
.eyebrow {
  display: block;
  margin: 0 0 1.15rem;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}
.eyebrow--muted {
  color: var(--muted);
}
.eyebrow--light {
  color: var(--mint);
}
.h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.35rem, 4.9vw, 4.15rem);
  line-height: 1.06;
  letter-spacing: -0.022em;
  margin-bottom: 0.5em;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.85rem, 3.4vw, 2.85rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.h3 {
  font-size: 1.15rem;
  letter-spacing: -0.015em;
  margin-bottom: 0.55em;
}
.h4 {
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 0.4em;
}
.h1 em,
.h2 em {
  font-style: italic;
}
.lead {
  font-size: clamp(1.08rem, 1.5vw, 1.22rem);
  line-height: 1.65;
  color: var(--body);
  max-width: 38rem;
}
.muted {
  color: var(--muted);
}
.dim {
  color: var(--dim);
}
.small {
  font-size: 0.9rem;
}
.tabular {
  font-variant-numeric: tabular-nums;
}
.accent {
  color: var(--accent);
}

/* ---------- Mörka band ---------- */
.band {
  position: relative;
  background: var(--night);
  color: var(--night-body);
}
.band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--contours);
  background-position: top right;
  background-repeat: no-repeat;
  opacity: 0.75;
  pointer-events: none;
}
.band > * {
  position: relative;
}
.band h1,
.band h2,
.band h3,
.band h4 {
  color: var(--night-fg);
}
.band .lead,
.band p {
  color: var(--night-body);
}
.band .muted {
  color: var(--night-dim);
}
.band .eyebrow {
  color: var(--mint);
}
.band a:not(.btn) {
  color: var(--night-fg);
}
.band a.link-arrow {
  color: var(--mint);
}
.band .stat-strip {
  border-top-color: var(--night-line);
}
.band .stat {
  border-bottom-color: var(--night-line-soft);
}
.band .stat b {
  color: var(--night-fg);
}
.band .stat span {
  color: var(--night-dim);
}
.band .frame-cell,
.band .ref-cell {
  border-color: var(--night-line-soft);
}
.band .frame-cell b,
.band .ref-cell b {
  color: var(--night-fg);
}
.band .frame-cell span,
.band .ref-cell span {
  color: var(--night-dim);
}
.band .faq,
.band .faq details {
  border-color: var(--night-line-soft);
}
.band .faq summary {
  color: var(--night-fg);
}

/* ---------- Knappar ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: background-color 0.22s var(--ease), color 0.22s var(--ease),
    border-color 0.22s var(--ease);
}
.btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn--outline {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn--outline:hover {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn--light {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}
.btn--light:hover {
  background: var(--mint);
  border-color: var(--mint);
  color: var(--mint-ink);
}
.btn--ghost-light {
  background: transparent;
  border-color: var(--night-line);
  color: var(--night-fg);
}
.btn--ghost-light:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--night-fg);
}
.btn--sm {
  padding: 0.68rem 1.1rem;
  font-size: 0.88rem;
}
.btn--block {
  width: 100%;
}
.btn__arrow {
  transition: transform 0.22s var(--ease);
}
.btn:hover .btn__arrow {
  transform: translateX(3px);
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.btn-row--center {
  justify-content: center;
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--accent);
  font-weight: 500;
  font-size: 0.95rem;
  transition: gap 0.2s var(--ease);
}
.link-arrow:hover {
  gap: 0.75rem;
}
.link-underline {
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.1rem;
  transition: border-color 0.2s var(--ease);
}
.link-underline:hover {
  border-bottom-color: var(--accent);
  color: var(--accent);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(247, 246, 243, 0.9);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 24px -12px rgba(11, 18, 32, 0.28);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  min-height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-right: auto;
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 2px;
  background: var(--ink);
  color: var(--mint);
  flex: none;
}
.brand__text {
  display: flex;
  flex-direction: column;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1;
  letter-spacing: 0.005em;
}
.brand__text small {
  margin-top: 3px;
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--dim);
}
.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav a {
  padding: 0.5rem 0.75rem;
  color: var(--body);
  font-size: 0.94rem;
  font-weight: 450;
  transition: color 0.2s var(--ease);
}
.nav a:hover {
  color: var(--ink);
}
.nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 500;
}
.header__cta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
  place-items: center;
}
.nav-toggle span {
  display: block;
  width: 17px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.22s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle span + span {
  margin-top: 4px;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(3.5rem, 8vw, 6.5rem);
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.hero__actions {
  margin-top: 2.25rem;
}
.hero__trust {
  display: grid;
  gap: 0.9rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--night-line-soft);
  list-style: none;
  padding-left: 0;
}
.hero__trust li {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  margin: 0;
  color: var(--night-body);
  font-size: 0.94rem;
}
.hero__trust svg {
  flex: none;
  color: var(--mint);
  transform: translateY(1px);
}
.hero__panel {
  border-top: 1px solid var(--night-line);
  padding-top: 1.5rem;
}
.hero__panel h2 {
  margin-bottom: 1.25rem;
  color: var(--night-dim);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}
.hero__list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: hp;
}
.hero__list li {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 0.75rem;
  padding: 1.05rem 0;
  border-top: 1px solid var(--night-line-soft);
  margin: 0;
}
.hero__list li:first-child {
  border-top: 0;
  padding-top: 0;
}
.hero__list li::before {
  counter-increment: hp;
  content: "0" counter(hp);
  color: var(--mint);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  transform: translateY(3px);
}
.hero__list b {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--night-fg);
  font-weight: 500;
}
.hero__list span {
  display: block;
  color: var(--night-dim);
  font-size: 0.93rem;
  line-height: 1.55;
}

/* ---------- Referensband ---------- */
.ref-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  border-top: 1px solid var(--line-soft);
  border-left: 1px solid var(--line-soft);
}
.ref-cell {
  padding: 1.5rem 1.4rem;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.ref-cell b {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.ref-cell span {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}
/* Plats för riktiga logotyper: lägg SVG i assets/img/logos/ och använd
   <img class="ref-logo" src="..." alt="Kundnamn"> */
.ref-logo {
  display: block;
  height: 26px;
  width: auto;
  margin-bottom: 0.5rem;
  filter: grayscale(1);
  opacity: 0.75;
}

/* ---------- Porträtt och biografi ---------- */
.bio {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.portrait {
  margin: 0;
}
.portrait__img,
.portrait__fallback {
  width: 100%;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.portrait__img {
  display: block;
  object-fit: cover;
  background: var(--surface-2);
}
.portrait__fallback {
  display: none;
  place-items: center;
  background: linear-gradient(160deg, #0b1220 0%, #17273f 100%);
  color: var(--mint);
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 5.5rem);
  letter-spacing: 0.02em;
}
/* Visas automatiskt om porträttbilden inte finns på plats ännu. */
.portrait.is-missing .portrait__img {
  display: none;
}
.portrait.is-missing .portrait__fallback {
  display: grid;
}
.portrait figcaption {
  margin-top: 0.9rem;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
}
.portrait figcaption span {
  display: block;
  margin-top: 0.1rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 400;
}
.bio__text > p:last-child {
  margin-bottom: 0;
}

/* ---------- Tjänstlista (redaktionell) ---------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  border-top: 1px solid var(--line);
}
.svc {
  position: relative;
  display: block;
  padding: 2rem 2rem 2.25rem 0;
  border-bottom: 1px solid var(--line-soft);
  transition: color 0.2s var(--ease);
}
.svc__index {
  display: block;
  margin-bottom: 1rem;
  color: var(--dim);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  transition: color 0.25s var(--ease);
}
.svc h3 {
  margin-bottom: 0.5rem;
  transition: color 0.25s var(--ease);
}
.svc p {
  color: var(--muted);
  font-size: 0.96rem;
  margin-bottom: 0;
  max-width: 30rem;
}
.svc__more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.15rem;
  color: var(--dim);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.25s var(--ease), gap 0.25s var(--ease);
}
.svc:hover {
  color: var(--accent);
}
.svc:hover .svc__index {
  color: var(--accent);
}
.svc:hover h3 {
  color: var(--accent);
}
.svc:hover .svc__more {
  color: var(--accent);
  gap: 0.65rem;
}

/* ---------- Steg ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  border-top: 1px solid var(--line);
  counter-reset: step;
}
.step {
  padding: 1.85rem 1.75rem 1.9rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  margin-bottom: 1rem;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}
.step h3 {
  font-size: 1.06rem;
}
.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 26rem;
}

/* ---------- Sifferband ---------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  border-top: 1px solid var(--line);
}
.stat {
  padding: 1.75rem 1.5rem 1.9rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.stat b {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.4vw, 2.15rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.stat span {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 15rem;
}

/* ---------- Case ---------- */
.case {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.case__aside {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}

/* ---------- Listor ---------- */
.tick-list,
.dash-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.15em;
}
.tick-list li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--body);
  font-size: 0.97rem;
}
.tick-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 10px;
  height: 6px;
  border-left: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg);
}
.dash-list li {
  padding-left: 1.35rem;
  color: var(--muted);
  font-size: 0.96rem;
}
.dash-list li::before {
  content: "—";
  position: absolute;
  margin-left: -1.35rem;
  color: var(--dim);
}
.band .tick-list li,
.band .dash-list li {
  color: var(--night-body);
}
.band .tick-list li::before {
  border-color: var(--mint);
}

/* ---------- Ramverk / kompetens ---------- */
.frame-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  border-top: 1px solid var(--line-soft);
  border-left: 1px solid var(--line-soft);
}
.frame-cell {
  padding: 1.4rem 1.35rem;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.frame-cell b {
  display: block;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 600;
}
.frame-cell span {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* ---------- Artiklar ---------- */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}
.article-grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
}
.article-card {
  display: flex;
  flex-direction: column;
  padding: 1.9rem 2rem 2rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.article-card__meta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.9rem;
  color: var(--dim);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.article-card__meta span {
  color: var(--accent);
}
.article-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-bottom: 0.6rem;
  transition: color 0.25s var(--ease);
}
.article-card p {
  color: var(--muted);
  font-size: 0.96rem;
  margin-bottom: 1.1rem;
}
.article-card .link-arrow {
  margin-top: auto;
}
.article-card:hover h3 {
  color: var(--accent);
}

/* ---------- Omdömen ----------
   Används av sektionen med kundomdömen (ligger färdig, utkommenterad,
   i index.html tills riktiga och godkända citat finns). */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  border-top: 1px solid var(--line);
}
.quote {
  margin: 0;
  padding: 2rem 2rem 2rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.quote blockquote {
  margin: 0 0 1.35rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1.38;
  letter-spacing: -0.01em;
}
.quote figcaption b {
  display: block;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
}
.quote figcaption span {
  display: block;
  margin-top: 0.1rem;
  color: var(--muted);
  font-size: 0.88rem;
}

/* ---------- Brödtext i artiklar och policy ---------- */
.prose {
  font-size: 1.06rem;
  line-height: 1.78;
}
.prose > p:first-of-type {
  font-size: 1.16rem;
  line-height: 1.7;
  color: var(--ink-2);
}
.prose h2 {
  margin-top: 2.75rem;
  margin-bottom: 0.7rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.4vw, 1.95rem);
  letter-spacing: -0.015em;
}
.prose h3 {
  margin-top: 2rem;
  font-size: 1.08rem;
}
.prose a {
  color: var(--accent);
  border-bottom: 1px solid rgba(14, 92, 79, 0.28);
}
.prose a:hover {
  border-bottom-color: var(--accent);
}
.prose ul,
.prose ol {
  color: var(--body);
}
.prose li {
  margin-bottom: 0.5em;
}
.prose blockquote {
  margin: 2rem 0;
  padding-left: 1.4rem;
  border-left: 2px solid var(--accent);
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--ink);
}
.callout {
  margin: 2rem 0;
  padding: 1.4rem 1.5rem;
  background: var(--accent-wash);
  border-left: 2px solid var(--accent);
}
.callout p:last-child {
  margin-bottom: 0;
}
.callout b {
  color: var(--ink);
}
.table-wrap {
  overflow-x: auto;
  margin: 1.75rem 0;
  border-top: 1px solid var(--line);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}
th,
td {
  padding: 0.8rem 0.9rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line-soft);
}
th {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
td {
  color: var(--body);
}

/* ---------- FAQ ---------- */
.faq {
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line-soft);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.3rem 0;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  transition: color 0.2s var(--ease);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary:hover {
  color: var(--accent);
}
.faq summary::after {
  content: "";
  flex: none;
  width: 11px;
  height: 11px;
  border-right: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after {
  transform: rotate(225deg) translateY(-3px);
}
.faq__body {
  max-width: 48rem;
  padding-bottom: 1.35rem;
  color: var(--muted);
}
.faq__body p:last-child {
  margin-bottom: 0;
}

/* ---------- CTA-band ---------- */
.cta-band {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(2.5rem, 5vw, 4rem);
}
.cta-band .lead {
  margin-bottom: 0;
}
.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

/* ---------- Kontakt ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.form {
  display: grid;
  gap: 1.15rem;
}
.field {
  display: grid;
  gap: 0.4rem;
}
.field label {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 500;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--dim);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-wash);
}
.field textarea {
  min-height: 150px;
  resize: vertical;
}
.field--row {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}
.check {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  color: var(--muted);
  font-size: 0.9rem;
}
.check input {
  flex: none;
  width: 17px;
  height: 17px;
  margin-top: 0.25rem;
  accent-color: var(--accent);
}
.form__note {
  margin: 0;
  color: var(--dim);
  font-size: 0.86rem;
}
.form__status {
  margin: 0;
  padding: 0.9rem 1rem;
  border-left: 2px solid var(--accent);
  background: var(--accent-wash);
  color: var(--accent-ink);
  font-size: 0.93rem;
}
.form__status[hidden] {
  display: none;
}
.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.contact-list li {
  display: grid;
  grid-template-columns: 1.4rem 1fr;
  gap: 0.9rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line-soft);
  margin: 0;
}
.contact-list svg {
  color: var(--accent);
  transform: translateY(2px);
}
.contact-list b {
  display: block;
  color: var(--ink);
  font-weight: 500;
}
.contact-list span {
  display: block;
  color: var(--muted);
  font-size: 0.94rem;
}
.contact-list a {
  color: var(--accent);
}
.contact-list a:hover {
  text-decoration: underline;
}

/* ---------- Sidhuvud på undersidor ---------- */
.page-head {
  padding-block: clamp(2.75rem, 6vw, 4.5rem) clamp(1.5rem, 3vw, 2.25rem);
  border-bottom: 1px solid var(--line-soft);
}
.breadcrumbs {
  margin-bottom: 1.5rem;
  color: var(--dim);
  font-size: 0.84rem;
}
.breadcrumbs a:hover {
  color: var(--accent);
}
.breadcrumbs span {
  margin-inline: 0.5rem;
  opacity: 0.6;
}

/* ---------- Tjänsteblock (undersida) ---------- */
.svc-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
}
.frame-grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
}
.band .case__aside {
  border-top-color: var(--night-line);
}
.svc-block__aside {
  display: grid;
  gap: 1.75rem;
  align-content: start;
}

/* ---------- Sidfot ---------- */
.site-footer {
  background: var(--night);
  color: var(--night-body);
  border-top: 1px solid var(--night-line);
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(auto-fit, minmax(min(100%, 140px), 1fr));
  gap: 2.5rem;
  padding-block: clamp(3rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3rem);
}
.footer__brand .brand__mark {
  background: rgba(255, 255, 255, 0.08);
}
.footer__brand .brand__text {
  color: var(--night-fg);
}
.footer__brand p {
  max-width: 26rem;
  margin-top: 1.25rem;
  color: var(--night-dim);
  font-size: 0.93rem;
}
.site-footer h2 {
  margin-bottom: 1.1rem;
  color: var(--night-dim);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer li {
  margin-bottom: 0.6rem;
}
.site-footer a {
  color: var(--night-body);
  font-size: 0.94rem;
  transition: color 0.2s var(--ease);
}
.site-footer a:hover {
  color: var(--mint);
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  justify-content: space-between;
  padding-block: 1.5rem;
  border-top: 1px solid var(--night-line-soft);
  color: var(--night-dim);
  font-size: 0.85rem;
}
.footer__bottom a {
  color: var(--night-dim);
}
.footer__bottom a:hover {
  color: var(--mint);
}

/* ---------- Mobil CTA-rad ---------- */
.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
  display: none;
  gap: 0.6rem;
  padding: 0.7rem var(--gutter) calc(0.7rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  transform: translateY(105%);
  transition: transform 0.3s var(--ease);
}
.mobile-cta.is-visible {
  transform: none;
}
.mobile-cta .btn {
  flex: 1;
}

/* ---------- Animation vid scroll ---------- */
.reveal {
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
html.js .reveal {
  opacity: 0;
  transform: translateY(14px);
}
html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Sidfot för 404 ---------- */
.error-page {
  display: grid;
  place-items: center;
  min-height: 58vh;
  text-align: center;
}

/* ---------- Rutnät ---------- */
.grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.75rem);
}
.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

/* ---------- Små hjälpklasser ---------- */
.mt-1 {
  margin-top: 0.85rem;
}
.mt-2 {
  margin-top: 1.5rem;
}
.mt-3 {
  margin-top: 2rem;
}
.mb-0 {
  margin-bottom: 0;
}
.center {
  text-align: center;
}
.stack > * + * {
  margin-top: 1.15rem;
}

/* ---------- Figurer och diagram ----------
   Diagrammen är egna SVG-filer inbäddade i HTML:en. De ärver färger och
   typsnitt härifrån, skalas utan att bli suddiga och kräver inga externa
   anrop. Vill ni i stället visa en riktig skärmbild: lägg bilden i
   assets/img/screens/ och använd <img class="figure__img" …> inuti .figure. */
.figure {
  margin: 0 0 1.75rem;
}
.figure__img,
.figure svg {
  display: block;
  width: 100%;
  height: auto;
}
.figure__img {
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.figure__caption {
  margin-top: 0.9rem;
  color: var(--dim);
  font-size: 0.86rem;
  line-height: 1.5;
  max-width: 46rem;
}
.figure--wide {
  margin-bottom: 2.25rem;
}
.figure__hint {
  display: none;
  color: var(--dim);
}

.diagram {
  font-family: var(--font-sans);
}
.diagram text {
  fill: var(--ink);
}
.diagram .d-box {
  fill: var(--surface);
  stroke: var(--line);
  stroke-width: 1;
}
.diagram .d-box--wash {
  fill: var(--accent-wash);
  stroke: rgba(14, 92, 79, 0.28);
}
.diagram .d-box--ink {
  fill: var(--ink);
  stroke: var(--ink);
}
.diagram .d-box--dash {
  fill: none;
  stroke: rgba(11, 18, 32, 0.28);
  stroke-width: 1;
  stroke-dasharray: 4 4;
}
.diagram .d-line {
  fill: none;
  stroke: var(--line);
  stroke-width: 1;
}
.diagram .d-line--dash {
  fill: none;
  stroke: rgba(11, 18, 32, 0.3);
  stroke-width: 1;
  stroke-dasharray: 3 4;
}
.diagram .d-line--strong {
  fill: none;
  stroke: rgba(11, 18, 32, 0.4);
  stroke-width: 1;
}
.diagram .d-arrow {
  fill: rgba(11, 18, 32, 0.4);
}
.diagram .d-label {
  fill: var(--dim);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
}
.diagram .d-num {
  fill: var(--accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
}
.diagram .d-title {
  fill: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
}
.diagram .d-sub {
  fill: var(--muted);
  font-size: 11.5px;
}
.diagram .d-accent {
  fill: var(--accent);
  font-size: 11.5px;
  font-weight: 500;
}
.diagram .d-on-ink {
  fill: #ffffff;
}
.diagram .d-on-ink-sub {
  fill: rgba(255, 255, 255, 0.72);
}
/* Diagram inuti ett mörkt band */
.band .diagram .d-box {
  fill: rgba(255, 255, 255, 0.05);
  stroke: var(--night-line);
}
.band .diagram .d-box--wash {
  fill: rgba(95, 227, 192, 0.12);
  stroke: rgba(95, 227, 192, 0.4);
}
.band .diagram .d-line,
.band .diagram .d-line--dash,
.band .diagram .d-line--strong {
  stroke: rgba(255, 255, 255, 0.26);
}
.band .diagram .d-arrow {
  fill: rgba(255, 255, 255, 0.45);
}
.band .diagram .d-title,
.band .diagram text {
  fill: var(--night-fg);
}
.band .diagram .d-sub {
  fill: var(--night-dim);
}
.band .diagram .d-label {
  fill: var(--night-dim);
}
.band .diagram .d-num,
.band .diagram .d-accent {
  fill: var(--mint);
}

/* ---------- Ansvarstabell (vem gör vad) ---------- */
.matrix td:first-child,
.matrix th:first-child {
  color: var(--ink);
  font-weight: 500;
}
.tag {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.78rem;
  white-space: nowrap;
}
.tag--accent {
  border-color: rgba(14, 92, 79, 0.28);
  background: var(--accent-wash);
  color: var(--accent);
}

/* ---------- Responsivt ---------- */
@media (max-width: 1000px) {
  .hero__inner,
  .case,
  .cta-band,
  .contact-grid,
  .svc-block,
  .bio {
    grid-template-columns: minmax(0, 1fr);
  }
  .portrait {
    max-width: 420px;
  }
  .cta-band__actions {
    justify-content: flex-start;
  }
  .hero__panel {
    order: 2;
  }
}
@media (max-width: 880px) {
  :root {
    --header-h: 68px;
  }
  /* Utan JavaScript ligger menyn kvar som en lista under logotypen. */
  .nav-toggle {
    display: none;
  }
  .header__inner {
    flex-wrap: wrap;
    padding-block: 0.6rem;
    gap: 0.75rem;
  }
  .nav {
    flex-basis: 100%;
    flex-wrap: wrap;
    gap: 0.1rem;
  }
  .nav a {
    padding: 0.4rem 0.6rem 0.4rem 0;
    font-size: 0.95rem;
  }

  html.js .header__inner {
    flex-wrap: nowrap;
    padding-block: 0;
  }
  html.js .nav-toggle {
    display: grid;
  }
  html.js .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.25rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  }
  html.js .nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
  }
  html.js .nav a {
    padding: 0.85rem 0;
    border-top: 1px solid var(--line-soft);
    font-size: 1.02rem;
  }
  .header__cta .btn {
    white-space: nowrap;
  }
  .mobile-cta {
    display: flex;
  }
  body {
    padding-bottom: 4.5rem;
  }
  .svc,
  .step,
  .stat,
  .article-card {
    padding-right: 0;
  }
}
@media (max-width: 720px) {
  /* Breda diagram behåller läsbar storlek och skrollas i sidled på små skärmar. */
  .figure--scroll {
    overflow-x: auto;
    padding-bottom: 0.4rem;
  }
  .figure--scroll svg {
    min-width: 620px;
  }
  .figure__hint {
    display: inline;
  }
}
@media (max-width: 720px) {
  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 1.5rem;
  }
  .footer__brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 620px) {
  .ref-cell,
  .frame-cell {
    padding: 1.2rem 1.1rem;
  }
  .svc-grid,
  .steps,
  .stat-strip,
  .article-grid,
  .grid--2,
  .grid--3 {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 620px) {
  /* Ordmärket är längre än förut: på små skärmar krymper vi det och låter
     den fasta boka-raden längst ned ta över bokningsknappen. */
  .header__cta .btn {
    display: none;
  }
  .brand__text {
    font-size: 1.15rem;
  }
  .brand__text small {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  html.js .reveal {
    opacity: 1;
    transform: none;
  }
  .mobile-cta {
    transform: none;
  }
}
@media print {
  .site-header,
  .mobile-cta,
  .cta-band__actions,
  .site-footer,
  .band::before {
    display: none;
  }
  body {
    background: #fff;
    color: #111;
  }
  .band {
    background: #fff;
  }
  .band h1,
  .band h2,
  .band p {
    color: #111;
  }
}

/* Ankarlänkar hamnar inte under headern */
[id] {
  scroll-margin-top: calc(var(--header-h) + 18px);
}
