/* Optiqon V2.1 — "Arbetsritning"
   Derived from OPTIQON_SOURCE_OF_TRUTH_V1_0_0 + OPTIQON_WEBSITE_CONTEXT_V1_2_0.
   One family, light surfaces, lines that mean something. */

@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url("../fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --paper: #ffffff;
  --surface: #f2f4f3;
  --ink: #15201c;
  --muted: #55615c;
  --line: #d5dbd8;
  --line-soft: #e6eae8;
  --mark: #59a687;        /* logo green — marks, strokes, never body text */
  --green: #1e6b4f;       /* text-safe green: links, buttons */
  --green-dark: #164f3b;
  --friction: #b7791f;    /* "before" states in diagrams only */
  --friction-soft: #f6ecdc;

  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1160px;
  --text: 680px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 9vw, 120px);
  --radius: 6px;
  --header-h: 63px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
@media (min-width: 900px) { body { font-size: 1.125rem; } }

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.018em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 1.35rem + 3.1vw, 3.6rem); font-weight: 680; letter-spacing: -0.028em; line-height: 1.05; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.7vw, 2.45rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem); line-height: 1.2; }
h4 { font-size: 1rem; letter-spacing: 0; }
p { margin: 0; text-wrap: pretty; }
p + p { margin-top: 1em; }

a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--green-dark); text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--radius);
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.measure { max-width: var(--text); }

.lead { font-size: clamp(1.125rem, 1.02rem + 0.45vw, 1.3rem); line-height: 1.5; color: var(--ink); }
.muted { color: var(--muted); }

/* ---------- Review banner (Stage A only) ---------- */
.review-banner {
  background: var(--friction-soft);
  color: #5c3d0e;
  font-size: 0.8125rem;
  line-height: 1.4;
  padding: 6px var(--gutter);
  text-align: center;
  border-bottom: 1px solid #e8d3b0;
}

/* ---------- Verification markers (Stage A only) ---------- */
mark.verify {
  background: transparent;
  color: inherit;
  text-decoration: underline dashed var(--friction);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.22em;
}
mark.verify::after {
  content: "verifiera";
  display: inline-block;
  margin-left: 0.35em;
  padding: 0 0.35em;
  border: 1px solid var(--friction);
  border-radius: 3px;
  color: #7a4f12;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.5;
  vertical-align: middle;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.btn mark.verify { text-decoration-color: #F3D9A8; }
.btn mark.verify::after { color: #fff; border-color: #F3D9A8; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0.7em 1.25em;
  border-radius: var(--radius);
  background: var(--green); color: #fff;
  border: 1px solid var(--green);
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; text-decoration: none; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--surface); color: var(--ink); border-color: var(--muted); }
.btn--sm { min-height: 44px; padding: 0.5em 0.95em; font-size: 0.9375rem; }
.site-header .btn--sm { white-space: nowrap; flex: none; }

.text-link {
  display: inline-flex; align-items: center; gap: 0.4em; min-height: 44px;
  font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--mark);
  text-decoration-thickness: 2px; text-underline-offset: 0.3em;
}
.text-link:hover { color: var(--green); text-decoration-color: var(--green); }
.text-link .arrow { display: inline-block; text-decoration: none; transition: transform .15s ease; }
.text-link:hover .arrow { transform: translateX(3px); }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner {
  display: flex; align-items: center; gap: 16px;
  height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; min-height: 44px; margin-right: auto; }
.brand img { height: 26px; width: auto; }
@media (min-width: 900px) { .brand img { height: 31px; } :root { --header-h: 76px; } .site-header.is-scrolled { --header-h: 64px; } .site-header__inner { transition: height .2s ease; } }

.nav { display: none; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.9875rem;
}
.nav a:hover { color: var(--green); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--mark); text-decoration-thickness: 2px; text-underline-offset: 0.45em; }
@media (min-width: 900px) { .nav { display: flex; align-items: center; gap: 4px; margin-right: 12px; } }

.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-right: -8px;
  background: transparent; border: 0; border-radius: var(--radius); color: var(--ink); cursor: pointer;
}
.menu-toggle svg { width: 24px; height: 24px; }
@media (min-width: 900px) { .menu-toggle { display: none; } }
@media (max-width: 359px) { .site-header .btn--sm { padding-inline: 0.7em; font-size: 0.875rem; } .brand img { height: 22px; } }

/* Mobile menu sheet */
.menu-sheet {
  position: fixed; inset: 0; z-index: 60;
  background: var(--paper);
  display: flex; flex-direction: column;
  padding: 0 var(--gutter) 32px;
  overflow-y: auto;
}
.menu-sheet[hidden] { display: none; }
.menu-sheet__top { display: flex; align-items: center; height: var(--header-h); }
.menu-sheet nav { display: flex; flex-direction: column; margin-top: 16px; border-top: 1px solid var(--line); }
.menu-sheet nav a {
  display: flex; align-items: center; justify-content: space-between; min-height: 60px;
  border-bottom: 1px solid var(--line);
  color: var(--ink); text-decoration: none; font-size: 1.375rem; font-weight: 600; letter-spacing: -0.01em;
}
.menu-sheet nav a::after { content: "→"; color: var(--mark); font-weight: 400; }
.menu-sheet .btn { margin-top: 28px; width: 100%; }
.menu-sheet__contact { margin-top: 24px; display: grid; gap: 4px; }
.menu-sheet__contact a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); }
html.menu-open { overflow: hidden; }

/* ---------- Section scaffolding ---------- */
.section { padding-block: var(--section); }
.section--surface { background: var(--surface); }
.section + .section:not(.section--surface) { border-top: 1px solid var(--line-soft); }
.section--surface + .section { border-top: 0; }

/* Drafting annotation: small numbered label on a hairline */
.annot {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px;
  color: var(--muted); font-size: 0.9375rem; font-weight: 500;
}
.annot__no { color: var(--green); font-variant-numeric: tabular-nums; font-weight: 600; }
.annot::after { content: ""; flex: 1; height: 1px; background: var(--line); max-width: 120px; }

.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 1.125rem; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(24px, 5vw, 72px); padding-bottom: var(--section); }
.hero__grid { display: grid; gap: 40px; }
.hero h1 { max-width: 15ch; }
.hero .lead { margin-top: 18px; max-width: 36rem; color: #2b3632; }
.person-chip {
  display: flex; align-items: center; gap: 12px; margin-top: 24px;
  font-size: 0.9375rem; line-height: 1.35;
}
.person-chip img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--surface); }
.person-chip strong { font-weight: 600; }
.person-chip span { color: var(--muted); }
.hero .cta-row { margin-top: 24px; }
.hero__figure { color: var(--ink); }
.hero__figure svg { width: 100%; height: auto; }
.hero__caption { margin-top: 10px; font-size: 0.875rem; color: var(--muted); }

@media (max-width: 599px) {
  .hero .cta-row .btn { width: 100%; }
  .hero .cta-row { gap: 4px 24px; }
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 7fr 5fr; align-items: center; gap: 56px; }
  .hero__figure { padding-top: 24px; }
}

/* Hero schematic draw — one orchestrated moment */
.draw path.draw-line { stroke-dasharray: var(--len, 600); stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) {
  .js .draw.is-drawing path.draw-line { animation: draw 1.1s cubic-bezier(.45,.05,.25,1) both; }
  .js .draw.is-drawing .draw-fade { animation: fade .5s ease .75s both; }
}
@keyframes draw { from { stroke-dashoffset: var(--len, 600); } to { stroke-dashoffset: 0; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Friction list ---------- */
.friction-list { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.friction-list li {
  display: grid; grid-template-columns: 2.25rem 1fr; gap: 8px;
  padding: 18px 0; border-bottom: 1px solid var(--line);
  font-size: 1.125rem; line-height: 1.45;
}
.friction-list li::before {
  counter-increment: fr; content: counter(fr, decimal-leading-zero);
  color: var(--friction); font-weight: 600; font-size: 0.875rem; padding-top: 0.2em; font-variant-numeric: tabular-nums;
}
.friction-list { counter-reset: fr; }
@media (min-width: 900px) {
  .friction-list { grid-template-columns: 1fr 1fr; column-gap: 56px; }
  .friction-list li:nth-child(-n+2) { }
}
.friction-close { margin-top: 32px; font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem); font-weight: 600; letter-spacing: -0.012em; max-width: 30ch; }

/* ---------- Example rows ---------- */
.provenance {
  display: inline-flex; align-items: center; gap: 0.5em;
  min-height: 28px; padding: 2px 10px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper);
  font-size: 0.8125rem; font-weight: 500; color: var(--muted); line-height: 1.3;
}
.provenance::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mark); flex: none; }
.provenance[data-maturity="test"]::before { background: transparent; border: 2px solid var(--mark); width: 9px; height: 9px; }
.provenance[data-maturity="utveckling"]::before { background: linear-gradient(90deg, var(--mark) 50%, transparent 50%); border: 1.5px solid var(--mark); width: 9px; height: 9px; }
.provenance b { font-weight: 600; color: var(--ink); }

/* ---------- Area index (5 areas) ---------- */
.area-index { list-style: none; margin: 0 0 clamp(40px, 6vw, 64px); padding: 0; display: grid; border-top: 1px solid var(--ink); counter-reset: area; }
.area-index__item { counter-increment: area; position: relative; padding: 18px 0 20px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.area-index__kicker { font-size: 0.8125rem; font-weight: 500; color: var(--muted); }
.area-index__kicker::before { content: counter(area, decimal-leading-zero) " · "; color: var(--green); font-weight: 600; font-variant-numeric: tabular-nums; }
.area-index__name { font-weight: 600; line-height: 1.3; color: var(--ink); }
.area-index__item p { color: var(--muted); font-size: 0.9375rem; max-width: 40ch; }
.area-index__item .text-link { margin-top: auto; padding-top: 4px; min-height: 44px; display: inline-flex; align-items: center; }
@media (min-width: 600px) {
  .area-index { grid-template-columns: repeat(2, 1fr); column-gap: 32px; }
}
@media (min-width: 1100px) {
  .area-index { grid-template-columns: repeat(5, 1fr); column-gap: 0; border-bottom: 1px solid var(--line); }
  .area-index__item { border-bottom: 0; padding: 20px 20px 16px; border-left: 1px solid var(--line); }
  .area-index__item:first-child { border-left: 0; padding-left: 0; }
  .area-index__item::after { content: ""; position: absolute; top: -6px; left: -0.75px; width: 1.5px; height: 11px; background: var(--ink); }
  .area-index__item:first-child::after { left: 0; }
}
/* compact variant (/exempel/): whole item is the link */
.area-index--compact { margin: 28px 0 0; grid-template-columns: repeat(2, 1fr); column-gap: 16px; }
.area-index--compact .area-index__item { padding: 0; gap: 0; }
.area-index--compact a { display: flex; flex-direction: column; gap: 4px; min-height: 44px; padding: 12px 0 14px; color: inherit; text-decoration: none; height: 100%; }
.area-index--compact .area-index__name { font-size: 0.9375rem; }
.area-index--compact a:hover .area-index__name { color: var(--green); }
@media (min-width: 600px) { .area-index--compact { column-gap: 32px; } }
@media (min-width: 1100px) {
  .area-index--compact { grid-template-columns: repeat(5, 1fr); column-gap: 0; }
  .area-index--compact .area-index__item { padding: 0 16px; }
  .area-index--compact .area-index__item:first-child { padding-left: 0; }
}

.examples { border-top: 1px solid var(--ink); }
.example-row {
  display: grid; gap: 20px;
  padding: 32px 0 36px; border-bottom: 1px solid var(--line);
}
.example-row h3 { margin-top: 14px; max-width: 26ch; }
.example-row .ex-sub { margin-top: 4px; color: var(--muted); font-size: 0.9375rem; max-width: 52ch; }
.example-row h3 a { color: inherit; text-decoration: none; }
.example-row h3 a:hover { text-decoration: underline; text-decoration-color: var(--mark); text-decoration-thickness: 2px; }
.example-row .ex-before { margin-top: 12px; color: var(--muted); max-width: 52ch; }
.example-row .ex-after { margin-top: 8px; max-width: 52ch; }
.example-row .ex-label { display: block; font-size: 0.8125rem; font-weight: 600; color: var(--muted); margin-bottom: 2px; }
.example-row .ex-after .ex-label { color: var(--green); }
.example-row .text-link { margin-top: 8px; }
.example-row figure { margin: 0; background: var(--surface); border-radius: var(--radius); padding: 16px; }
.section--surface .example-row figure { background: var(--paper); }
@media (min-width: 900px) {
  .example-row { grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; padding: 44px 0; }
}
.examples-foot { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; justify-content: space-between; }
.examples-foot p { font-size: 1.125rem; font-weight: 600; }

/* Diagram shared styles */
.dg text { font-family: var(--font); font-size: 13px; fill: var(--muted); }
.dg .t-strong { fill: var(--ink); font-weight: 600; }
.dg .s-ink { stroke: var(--ink); }
.dg .s-line { stroke: var(--line); }
.dg .s-mark { stroke: var(--mark); }
.dg .s-fr { stroke: var(--friction); }
.dg .f-mark { fill: var(--mark); }
.dg .f-fr { fill: var(--friction); }
.dg .f-paper { fill: var(--paper); }
.dg .f-surface { fill: var(--surface); }
.dg .f-frsoft { fill: var(--friction-soft); }
.dg .f-ink { fill: var(--ink); }

/* ---------- Steps (Så börjar vi) ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: st; }
.step {
  position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 16px;
  padding-bottom: 36px;
}
.step::before {
  counter-increment: st; content: counter(st);
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid var(--green); color: var(--green); font-weight: 650; background: var(--paper);
  position: relative; z-index: 1;
}
.step::after { content: ""; position: absolute; left: 18px; top: 36px; bottom: 0; width: 1.5px; background: var(--line); }
.step:last-child::after { display: none; }
.step:last-child { padding-bottom: 0; }
.step h3 { padding-top: 5px; }
.step p { margin-top: 8px; color: #2b3632; max-width: 60ch; }
.options { margin-top: 18px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.option { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.option strong { font-weight: 600; }
.option span { color: var(--muted); font-size: 1rem; }
.option .method { display: block; margin-top: 6px; color: var(--ink); font-size: 0.9375rem; padding-left: 12px; border-left: 2px solid var(--mark); }
@media (min-width: 900px) {
  .option { grid-template-columns: 220px 1fr; gap: 24px; align-items: baseline; }
  .how-grid { display: grid; grid-template-columns: 4fr 7fr; gap: 64px; align-items: start; }
  .how-grid .section-head { position: sticky; top: calc(var(--header-h) + 32px); margin-bottom: 0; }
}
.aside-note { margin-top: 14px; font-size: 1rem; color: var(--muted); }

/* ---------- Founder ---------- */
.founder { display: grid; gap: 32px; }
.founder__photo img { width: 100%; max-width: 360px; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); background: var(--surface); }
.founder__photo figcaption { margin-top: 10px; font-size: 0.875rem; color: var(--muted); }
.founder h2 { max-width: 20ch; }
.founder .lead { margin-top: 18px; }
.creds { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px solid var(--line); }
.creds li { padding: 12px 0 12px 28px; border-bottom: 1px solid var(--line); position: relative; }
.creds li::before { content: ""; position: absolute; left: 2px; top: 1.3em; width: 14px; height: 1.5px; background: var(--mark); }
.founder .cta-row { margin-top: 24px; }
@media (min-width: 900px) {
  .founder { grid-template-columns: 4fr 7fr; gap: 64px; align-items: start; }
}
@media (max-width: 899px) { .founder__photo img { max-width: 240px; } }

/* ---------- Closing CTA ---------- */
.closing { display: grid; gap: 40px; }
.closing h2 { max-width: 16ch; }
.closing .lead { margin-top: 16px; }
.closing .cta-row { margin-top: 28px; }
.contact-lines { margin-top: 20px; display: grid; gap: 2px; }
.contact-lines a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-weight: 500; }
.contact-lines a:hover { color: var(--green); }
.contact-lines .k { color: var(--muted); width: 5rem; flex: none; font-weight: 400; }
@media (min-width: 900px) { .closing { grid-template-columns: 6fr 5fr; gap: 72px; align-items: start; } }

.faq { border-top: 1px solid var(--line); }
.faq h3 { font-size: 1rem; font-weight: 600; color: var(--muted); letter-spacing: 0; margin: 0 0 4px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 56px; padding: 12px 0;
  font-weight: 600; font-size: 1.0625rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  background:
    linear-gradient(var(--green), var(--green)) center / 12px 2px no-repeat,
    linear-gradient(var(--green), var(--green)) center / 2px 12px no-repeat;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px; color: #2b3632; max-width: 60ch; font-size: 1rem; }

/* ---------- Page heads (sub pages) ---------- */
.page-head { padding-top: clamp(32px, 6vw, 80px); padding-bottom: clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line-soft); }
.page-head h1 { max-width: 18ch; }
.page-head .lead { margin-top: 18px; max-width: 40rem; }

/* ---------- Example detail ---------- */
.ex-detail { padding-block: var(--section); border-bottom: 1px solid var(--line); }
.ex-detail:last-of-type { border-bottom: 0; }
.ex-detail__head { display: grid; gap: 28px; }
.ex-detail__head h2 { margin-top: 14px; max-width: 22ch; }
.ex-kicker { display: block; margin-bottom: 10px; font-size: 0.8125rem; font-weight: 600; color: var(--green); font-variant-numeric: tabular-nums; }
.ex-summary { margin-top: 8px; color: var(--muted); max-width: 44ch; }
.ex-detail__head figure { margin: 0; background: var(--surface); border-radius: var(--radius); padding: clamp(16px, 3vw, 28px); }
.ex-detail__body { margin-top: clamp(32px, 5vw, 56px); display: grid; gap: 28px; }
.ex-block h3, .ex-block h4 { font-size: 1rem; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-bottom: 6px; }
.ex-block p { max-width: 60ch; }
.ex-block ul { margin: 0; padding: 0; list-style: none; }
.ex-block ul > li { padding: 6px 0 6px 24px; position: relative; }
.ex-block ul > li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 12px; height: 1.5px; background: var(--mark); }
.ex-block--better h3, .ex-block--better h4 { color: var(--green); }
.ex-block__sub { margin-top: 20px; }
.ex-block--status { background: var(--surface); border-radius: var(--radius); padding: 18px 20px; }
.ex-block--status p { font-size: 1rem; }
.ex-cta { font-weight: 600; }
@media (min-width: 900px) {
  .ex-detail__head { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
  .ex-detail__body { grid-template-columns: repeat(2, 1fr); column-gap: 64px; row-gap: 36px; }
}
@media (max-width: 599px) {
  .ex-detail__body { gap: 0; }
  .ex-detail__body > .ex-block { padding-block: 20px; border-top: 1px solid var(--line); }
  .ex-detail__body > .ex-block:first-child { border-top: 0; padding-top: 0; }
  .ex-detail__body > .ex-block--status { border-top: 0; margin-block: 4px; padding: 16px 18px; }
  .ex-block--problem .ex-block__sub { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
  .ex-block--better { padding-left: 14px; border-left: 2px solid var(--green); }
  .ex-detail__body > .ex-block--better { padding-left: 14px; }
  .ex-block--cta .btn { width: 100%; }
}
/* more areas (/exempel/#fler-omraden) */
.more-areas-section { border-top: 1px solid var(--line); }
.more-areas { display: grid; gap: 48px; border-top: 1px solid var(--ink); padding-top: 32px; }
.more-area h3 { margin-bottom: 20px; max-width: 26ch; }
.more-area .ex-kicker { margin-bottom: 8px; }
.more-area .ex-block + .ex-block { margin-top: 18px; }
.more-area__foot { margin-top: 20px; font-weight: 600; }
.more-area .ex-cta { margin-top: 20px; }
.more-area .text-link { margin-top: 6px; }
@media (min-width: 900px) { .more-areas { grid-template-columns: 1fr 1fr; column-gap: 64px; } }
@media (max-width: 599px) {
  .more-area .ex-block--better { padding-left: 14px; }
  .more-area .cta-row .btn { width: 100%; }
}

/* ---------- Om ---------- */
.chain { margin-top: 8px; }
.chain ol { list-style: none; margin: 0; padding: 0 0 0 1px; display: grid; grid-template-columns: 1fr; counter-reset: ch; border-left: 1.5px solid var(--ink); }
.chain li { position: relative; display: flex; align-items: center; min-height: 44px; padding: 0 0 0 48px; font-weight: 500; }
.chain li::before { counter-increment: ch; content: counter(ch); position: absolute; left: 22px; top: 50%; transform: translateY(-50%); color: var(--green); font-size: 0.875rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.chain li::after { content: ""; position: absolute; left: -1px; top: 50%; width: 11px; height: 1.5px; background: var(--ink); }
@media (min-width: 900px) {
  .chain ol { grid-template-columns: repeat(8, 1fr); gap: 0; border-top: 1.5px solid var(--ink); border-left: 0; padding: 0; }
  .chain li { display: block; min-height: 0; border-bottom: 0; padding: 22px 8px 0 0; font-size: 0.9875rem; }
  .chain li::before { position: static; display: block; margin-bottom: 4px; transform: none; }
  .chain li::after { content: ""; position: absolute; top: -6px; left: 0; width: 1.5px; height: 11px; background: var(--ink); }
}
.prose-grid { display: grid; gap: 40px; }
.prose-block h2 { font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.8rem); margin-bottom: 12px; }
.prose-block p { max-width: 62ch; }
@media (min-width: 900px) { .prose-grid { grid-template-columns: 1fr 1fr; column-gap: 72px; row-gap: 56px; } }
.not-list { list-style: none; margin: 16px 0 0; padding: 0; border-top: 1px solid var(--line); }
.not-list li { padding: 12px 0 12px 28px; border-bottom: 1px solid var(--line); position: relative; }
.not-list li::before { content: ""; position: absolute; left: 2px; top: 1.3em; width: 14px; height: 1.5px; background: var(--friction); }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; gap: 40px; }
.booking-card { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 36px); background: var(--paper); }
.booking-card .person-chip { margin-top: 0; }
.booking-card .person-chip img { width: 64px; height: 64px; }
.booking-card h2 { font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.8rem); margin-top: 24px; }
.booking-card p { margin-top: 10px; }
.booking-card .booking-card__lead { margin-top: 24px; font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.35rem); line-height: 1.4; color: var(--ink); }
.booking-card .booking-card__note { margin-top: 12px; font-size: 0.9375rem; color: var(--muted); }
.booking-card .btn { margin-top: 20px; width: 100%; }
@media (min-width: 600px) { .booking-card .btn { width: auto; } }
.contact-grid .ex-block + .ex-block { margin-top: 32px; }
.ol-plain { margin: 0; padding: 0; list-style: none; counter-reset: olp; }
.ol-plain li { counter-increment: olp; position: relative; padding: 5px 0 5px 32px; }
.ol-plain li::before { content: counter(olp); position: absolute; left: 0; top: 5px; width: 28px; color: var(--green); font-weight: 600; font-variant-numeric: tabular-nums; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 5fr 6fr; gap: 72px; align-items: start; } }

/* ---------- Legal ---------- */
.legal h2 { font-size: 1.35rem; margin: 40px 0 10px; }
.legal p, .legal ul { max-width: 64ch; }
.legal ul { padding-left: 1.2em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); padding: 56px 0 32px; font-size: 0.9375rem; }
.site-footer__grid { display: grid; gap: 32px; }
.site-footer img { height: 20px; width: auto; }
.site-footer p { color: var(--muted); margin-top: 12px; max-width: 34ch; }
.site-footer h2 { font-size: 0.9375rem; font-weight: 600; color: var(--ink); letter-spacing: 0; margin-bottom: 6px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 40px; color: var(--ink); text-decoration: none; }
.site-footer li a:hover { color: var(--green); text-decoration: underline; }
.site-footer__legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 0.875rem; }
@media (min-width: 900px) { .site-footer__grid { grid-template-columns: 2fr 1fr 1fr; } }

/* ---------- 404 ---------- */
.notfound { padding-block: clamp(64px, 12vw, 160px); }
.notfound .cta-row { margin-top: 28px; }

/* Stage A: maturity labels awaiting revalidation against their source projects */
.provenance[data-verify] { border-style: dashed; border-color: var(--friction); }
