/* ==========================================================================
   Leadrion · exempelsidorna (site/bransch/). Byggs av node mallar/landning/build.js.
   Samma språk som startsidan: salt och oliv, terrängens höjdkurvor, en rosa rutt.
   Rosa bara för det aktiva eller viktigaste. Glas utan oskärpa, utom i menyn.
   ========================================================================== */

@font-face { font-family: "Geist"; src: url("../fonts/geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist Fallback"; src: local("Arial"), local("Helvetica"), local("Liberation Sans"); size-adjust: 102.7%; ascent-override: 98%; descent-override: 29%; line-gap-override: 0%; }
@font-face { font-family: "Instrument Serif Fallback"; src: local("Times New Roman"), local("Times"), local("Liberation Serif"); size-adjust: 82.4%; ascent-override: 120%; descent-override: 37.6%; line-gap-override: 0%; }

:root {
  --salt: #07090D;
  --salt-50: #0C0F15;
  --olive: #F3F5F8;
  --olive-900: #FFFFFF;
  --deep: rgb(17 21 28);
  --olive-muted: #9AA3AF;
  --pink: #FF4FAB;
  --line: rgba(255,255,255,.09);
  --line-2: rgba(255,255,255,.16);
  --d-line: rgba(255,255,255,0.06);
  --d-muted: rgba(243,245,248,0.66);

  --serif: "Instrument Serif", "Instrument Serif Fallback", "Times New Roman", serif;
  --sans: "Geist", "Geist Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-sm: 14px;
  --fs-base: 17px;

  --gutter: max(20px, env(safe-area-inset-left), env(safe-area-inset-right));
  --target: 44px;
  --max: 1160px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease: cubic-bezier(.4, 0, .6, 1);

  --gloss-fill: linear-gradient(160deg, rgba(255,255,255,0.097) 0%, rgba(255,255,255,0.046) 55%, rgba(255,255,255,0.066) 100%);
  --gloss-edge: inset 0 1px 0 rgba(255,255,255,0.18), inset 0 -1px 0 rgba(255,255,255,0.06), 0 0 0 1px rgba(255,255,255,0.064);
  --gloss-lift: 0 1px 2px rgba(0,0,0,0.196), 0 20px 40px -28px rgba(0,0,0,0.82);
  /* Frostad yta utan oskärpa: ljus kant och mjukt lyft */
  --frost: linear-gradient(155deg, rgba(255,255,255,0.102) 0%, rgba(255,255,255,0.066) 50%, rgba(255,255,255,0.08) 100%);
  --frost-edge: inset 0 1px 0 rgba(255,255,255,0.19), inset 0 -1px 0 rgba(255,255,255,0.06), 0 0 0 1px rgba(255,255,255,0.08), 0 2px 4px rgba(255,255,255,0.06), 0 30px 60px -36px rgba(255,255,255,0.24);
  /* Mörk olivyta med studioljus uppifrån */
  --olive-card: radial-gradient(120% 70% at 50% -10%, rgba(243,245,248,0.09), transparent 60%), linear-gradient(170deg, rgb(243 245 248) 0%, rgb(243 245 248) 100%);
  --olive-edge: inset 0 1px 0 rgba(255,255,255,0.06), 0 0 0 1px rgba(255,255,255,0.24), 0 30px 60px -34px rgba(255,255,255,0.24);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--salt); scroll-behavior: smooth; }
body {
  margin: 0; background: var(--salt); color: var(--olive); overflow-x: clip;
  font-family: var(--sans); font-size: var(--fs-base); line-height: 1.55;
  font-kerning: normal; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
p, li, dd { text-wrap: pretty; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; }
.xh :focus-visible, .dk :focus-visible, .entry:focus-visible, .cta :focus-visible { outline-color: var(--salt-50); }
.skip { position: absolute; left: var(--gutter); top: -100px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--olive); color: var(--salt-50); font-size: var(--fs-sm); }
.skip:focus { top: calc(env(safe-area-inset-top) + 10px); }
.mute { color: var(--olive-muted); }

/* Knappar */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; white-space: nowrap;
  font: 500 var(--fs-base)/1 var(--sans);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), background-color .3s var(--ease), filter .3s var(--ease);
}
.btn:active { transform: scale(.97); transition-duration: .15s; }
.btn-sm { min-height: var(--target); padding: 0 18px; font-size: var(--fs-sm); }
.btn-pink {
  color: var(--olive-900);
  background: linear-gradient(180deg, #FF7DC0 0%, var(--pink) 48%, #EE3897 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.084), 0 10px 26px -12px rgba(238, 56, 151, .75);
}
.btn-ghost { color: var(--olive); box-shadow: inset 0 0 0 1px var(--line-2); }
.xh .btn-ghost, .cta .btn-ghost { color: var(--olive); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06); background: rgba(255,255,255,0.016); }
.btn-salt { color: var(--olive-900); background: linear-gradient(180deg, rgb(12 15 21), rgb(7 9 13)); box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), 0 10px 24px -14px rgba(0,0,0,0.85); }
@media (hover: hover) {
  .btn-pink:hover { transform: translateY(-2px); filter: brightness(1.04); box-shadow: inset 0 1px 0 rgba(255,255,255,0.084), 0 16px 32px -12px rgba(238,56,151,.8); }
  .btn-ghost:hover, .btn-salt:hover { transform: translateY(-2px); }
  .xh .btn-ghost:hover, .cta .btn-ghost:hover { background: rgba(255,255,255,0.024); }
}

/* Meny: samma glansiga pill som startsidan */
.nav-wrap { position: fixed; inset: 0 0 auto; z-index: 50; padding: max(16px, env(safe-area-inset-top)) var(--gutter) 0; pointer-events: none; }
.nav {
  pointer-events: auto; max-width: 1120px; margin: 0 auto; height: 60px;
  display: flex; align-items: center; gap: 24px; padding: 0 8px 0 22px; border-radius: 999px;
  background: var(--gloss-fill);
  -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
  box-shadow: var(--gloss-edge), var(--gloss-lift);
}
.wordmark { font-family: var(--serif); font-size: 26px; line-height: 1; letter-spacing: -0.02em; display: inline-flex; align-items: baseline; padding: 9px 0; }
.wordmark .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--pink); margin-left: 2px; }
.nav-links { display: flex; gap: 2px; margin-left: auto; }
.nav-links a { display: flex; align-items: center; min-height: var(--target); padding: 0 14px; font-size: var(--fs-sm); color: var(--olive-muted); border-radius: 999px; transition: color .3s var(--ease), background-color .3s var(--ease); }
.nav-links a:hover { color: var(--olive); }
.nav-links a[aria-current="page"] { color: var(--olive); background: rgba(255,255,255,0.087); box-shadow: inset 0 0 0 1px var(--line); }

.burger { display: none; width: 44px; height: 44px; margin-left: 6px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 6px; }
.burger i { display: block; width: 22px; height: 1.5px; background: var(--olive); transition: transform .35s var(--ease-out); }
.burger[aria-expanded="true"] i:first-child { transform: translateY(3.75px) rotate(45deg); }
.burger[aria-expanded="true"] i:last-child { transform: translateY(-3.75px) rotate(-45deg); }
.sheet { position: fixed; inset: 0; z-index: 45; visibility: hidden; pointer-events: none; transition: visibility 0s .5s; }
.menu-open .sheet { visibility: visible; pointer-events: auto; transition-delay: 0s; }
.sheet-scrim { position: absolute; inset: 0; background: rgba(255,255,255,0.1); opacity: 0; transition: opacity .5s var(--ease); }
.sheet-panel { position: absolute; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); padding: 18px 24px 24px; border-radius: 28px; display: grid; background: rgb(12 15 21);
  transform: translateY(calc(100% + 24px)); transition: transform .5s var(--ease-out); }
.menu-open .sheet-scrim { opacity: 1; }
.menu-open .sheet-panel { transform: none; }
.sheet-panel a:not(.btn) { padding: 10px 0; min-height: var(--target); font-family: var(--serif); font-size: 34px; line-height: 1.1; letter-spacing: -0.01em; border-bottom: 1px solid var(--line); }
.sheet-panel .btn { margin-top: 18px; }
.sheet-panel > * { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.menu-open .sheet-panel > * { opacity: 1; transform: none; transition-delay: calc(80ms + var(--i) * 45ms); }
body.menu-open { overflow: hidden; }
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
  .nav { height: 56px; padding-left: 18px; gap: 8px; }
  .burger { display: flex; }
}
@media (min-width: 721px) { .sheet { display: none; } }

/* ==========================================================================
   Sektioner
   ========================================================================== */
.sec { position: relative; isolation: isolate; max-width: var(--max); margin: 0 auto; padding: clamp(80px, 10vw, 128px) var(--gutter) 0; scroll-margin-top: 80px; }
.sec.narrow { max-width: 860px; }
.sec-head { margin-bottom: clamp(28px, 4vw, 44px); }
.eyebrow { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--olive-muted); margin-bottom: 16px; }
.statement { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4vw, 52px); line-height: 1.06; letter-spacing: -0.018em; max-width: 22em; text-wrap: balance; }
.note { margin-top: 18px; font-size: var(--fs-sm); color: var(--olive-muted); max-width: 70ch; }
.note a, .legal a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.del-more { display: inline-flex; align-items: center; gap: 8px; min-height: var(--target); font-weight: 500; font-size: 15px; }
.del-more i { font-style: normal; transition: transform .5s var(--ease-out); }

/* Terrängens kurvor bakom de ljusa sektionerna, med mjuka ljus- och skuggfält som glaset kan sudda ut */
.topo-bg { position: absolute; z-index: -1; top: 0; bottom: -40px; left: calc(50% - 50vw); right: calc(50% - 50vw); pointer-events: none; overflow: hidden;
  background:
    radial-gradient(30% 38% at 22% 54%, rgba(255,255,255,0.1), transparent 72%),
    radial-gradient(36% 30% at 66% 24%, rgba(255,255,255,0.12), transparent 70%),
    url("../media/hem/topo.webp") 50% 20% / 1500px auto repeat;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 16%, #000 84%, transparent); mask-image: linear-gradient(180deg, transparent, #000 16%, #000 84%, transparent); }
#kedjan .topo-bg { background-position: 0 0, 0 0, 30% 60%; }
#mallar .topo-bg { background-position: 0 0, 0 0, 80% 10%; }

/* Övergångar mellan mörkt och ljust */
.seam { height: clamp(64px, 8vw, 112px); pointer-events: none; background: linear-gradient(180deg, var(--deep) 0%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.01) 100%); }
.seam-in { margin-top: clamp(72px, 9vw, 120px); background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, rgba(0,0,0,0.55) 55%, var(--deep) 100%); }

/* Avslöjanden */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
  html.js .reveal.in { opacity: 1; transform: none; }
}

/* ==========================================================================
   Heron: mörk oliv, terrängens kurvor och en rutt där delarna tänds
   ========================================================================== */
.xh { position: relative; isolation: isolate; overflow: hidden; color: var(--olive);
  padding: calc(max(16px, env(safe-area-inset-top)) + 112px) var(--gutter) clamp(40px, 5vw, 64px);
  background: radial-gradient(70% 55% at 55% -8%, rgba(255,255,255,0.1), transparent 70%), linear-gradient(180deg, rgb(17 21 28) 0%, var(--deep) 100%); }
.xh-topo { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("../media/hem/topo.webp") 62% 28% / 1500px auto repeat; filter: invert(1); opacity: .2;
  -webkit-mask-image: radial-gradient(80% 90% at 70% 40%, #000 30%, transparent 85%); mask-image: radial-gradient(80% 90% at 70% 40%, #000 30%, transparent 85%); }
/* Fint korn i det mörka */
.xh::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.xh-in { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; min-height: min(620px, calc(100svh - 300px)); }
.xh-copy { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; min-width: 0; max-width: 100%; } /* grid-cellen får krympa, annars klipps heron i mobil */
.chip-k { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; font-size: 13px; background: rgba(255,255,255,0.018); box-shadow: inset 0 0 0 1px var(--d-line); margin-bottom: 28px; max-width: 100%; }
.chip-k > :first-child { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 999px; background: var(--salt-50); color: var(--olive-900); font-weight: 500; }
.chip-k a:first-child { position: relative; min-height: 36px; }
.chip-k a:first-child::after { content: ""; position: absolute; inset: -4px -4px; } /* tryckyta 44 px */
.chip-k > :last-child { min-width: 0; padding: 0 12px 0 8px; color: var(--d-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xh h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(46px, 6.2vw, 92px); line-height: 1; letter-spacing: -0.028em; text-wrap: balance; }
.xh h1 .dim { display: block; color: rgba(243,245,248,0.5); }
.xh-lede { margin-top: 26px; max-width: 46ch; font-size: 18px; color: var(--d-muted); }
.xh-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* Rutten */
.rt { position: relative; height: clamp(460px, 46vw, 580px); }
.rt-k { position: absolute; left: 0; top: -6px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: rgba(243,245,248,0.5); }
.rt-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.rt-bg { fill: none; stroke: rgba(243,245,248,0.2); stroke-width: 1.5; stroke-dasharray: 2 7; stroke-linecap: round; vector-effect: non-scaling-stroke; }
/* Ingen non-scaling-stroke på den rosa linjen: Chrome räknar då streckningen i skärmpixlar och linjen blir hackig */
.rt-line { fill: none; stroke: var(--pink); stroke-width: .42; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 .6px rgba(255,79,171,.45)); }
.rt-stops { position: absolute; inset: 0; }
.rt-stops li { position: absolute; left: var(--x); top: var(--y); width: 0; height: 0; }
.rt-stops i { position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 50%; background: var(--deep); box-shadow: 0 0 0 1.5px rgba(255,255,255,0.064);
  transition: background-color .6s var(--ease-out), box-shadow .6s var(--ease-out), transform .6s var(--ease-out); }
.rt-stops span, .rt-stops a { position: absolute; left: 20px; top: 0; transform: translate(0, -50%); display: grid; gap: 1px; white-space: nowrap; padding: 8px 13px; border-radius: 12px;
  background: rgb(17 21 28); box-shadow: inset 0 1px 0 rgba(255,255,255,0.011), 0 0 0 1px var(--d-line), 0 14px 28px -18px rgba(0,0,0,0.85);
  opacity: .38; transition: opacity .7s var(--ease-out), transform .7s var(--ease-out), background-color .4s var(--ease); }
.rt-stops a { min-height: var(--target); align-content: center; }
.rt-stops li.l span, .rt-stops li.l a { left: auto; right: 20px; text-align: right; }
.rt-stops b { font-weight: 500; font-size: 14px; line-height: 1.3; }
.rt-stops small { font-size: 12px; line-height: 1.3; color: rgba(243,245,248,0.6); }
.rt-stops li.on i { background: var(--salt-50); box-shadow: 0 0 0 5px rgba(255,255,255,0.06); }
.rt-stops li.on span, .rt-stops li.on a { opacity: 1; }
.rt-stops li.top.on i { background: var(--pink); box-shadow: 0 0 0 7px rgba(255,79,171,.18); transform: scale(1.15); }
.rt-stops li.top.on span, .rt-stops li.top.on a { background: var(--salt-50); color: var(--olive-900); }
.rt-stops li.top.on small { color: var(--olive-muted); }
@media (hover: hover) { .rt-stops a:hover { background: rgb(17 21 28); } .rt-stops li.top a:hover { background: rgba(255,255,255,0.07); } }
html:not(.js) .rt-line { stroke-dashoffset: 0; }
html:not(.js) .rt-stops span, html:not(.js) .rt-stops a { opacity: 1; }

/* Siffrorna under heron */
.xh-kpi { max-width: var(--max); margin: clamp(36px, 5vw, 56px) auto 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--d-line); }
.xh-kpi > div { padding: 22px 24px 0 0; display: grid; gap: 6px; align-content: start; }
.xh-kpi > div + div { padding-left: 24px; border-left: 1px solid var(--d-line); }
.xh-kpi dt { font-family: var(--serif); font-size: clamp(48px, 5vw, 72px); line-height: .95; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.xh-kpi dd { font-size: 15px; color: var(--d-muted); max-width: 26ch; }
.xh-kpi small, .del-fig small, .facit-k small, .entry-kpi small { display: block; }
.xh-kpi dd small { margin-top: 4px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: rgba(243,245,248,0.42); }

@media (max-width: 900px) {
  .xh { padding-top: calc(max(16px, env(safe-area-inset-top)) + 96px); }
  .xh-in { grid-template-columns: 1fr; min-height: 0; gap: 44px; }
  .rt { height: auto; padding-top: 30px; }
  .rt-svg { display: none; }
  /* Rutten blir en lodrät tidslinje: grunden längst ner, företaget överst */
  .rt-stops { position: relative; display: flex; flex-direction: column-reverse; margin-left: 7px; border-left: 1.5px solid rgba(255,255,255,0.06); }
  .rt-stops li, .rt-stops li.top { position: relative; left: auto; top: auto; width: auto; height: auto; padding: 0 0 12px 22px; }
  .rt-stops li:first-child { padding-bottom: 0; }
  .rt-stops i { left: -8.5px; top: 12px; }
  .rt-stops span, .rt-stops a, .rt-stops li.l span, .rt-stops li.l a { position: static; transform: none; white-space: normal; text-align: left; }
  .rt-stops span { background: none; box-shadow: none; padding: 4px 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
  .rt-stops li.top.on span { background: none; color: var(--olive); }
  .rt-stops li.top.on span small { color: rgba(243,245,248,0.6); }
  .rt-stops li.top span b { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.1; }
}
@media (max-width: 720px) {
  .xh-lede { font-size: var(--fs-base); }
  .xh-ctas { flex-direction: column; align-items: stretch; width: 100%; }
  .xh-kpi { grid-template-columns: 1fr; }
  .xh-kpi > div, .xh-kpi > div + div { padding: 16px 0; border-left: 0; border-bottom: 1px solid var(--d-line); display: grid; grid-template-columns: minmax(96px, auto) 1fr; gap: 16px; align-items: center; }
  .xh-kpi dt { font-size: 44px; }
  .xh-kpi dd { font-size: 14px; line-height: 1.4; }
}

/* ==========================================================================
   En dag före och efter: raderna tänds en i taget medan man scrollar
   ========================================================================== */
.dag { padding: clamp(10px, 1.6vw, 18px) clamp(18px, 3vw, 36px) clamp(18px, 2.4vw, 28px); border-radius: 26px; background: var(--frost); box-shadow: var(--frost-edge); }
.dag-top, .dag-row, .dag-facit { display: grid; grid-template-columns: 76px minmax(0, 1fr) minmax(0, 1fr); gap: 0 clamp(20px, 3vw, 44px); }
.dag-top { padding: 14px 0; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--olive-muted); }
.dag-top span:last-child { color: var(--olive); }
.dag-rows { position: relative; }
.dag-row { position: relative; padding: 22px 0; border-top: 1px solid var(--line); }
.dag-row time { position: relative; padding-left: 20px; font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--olive-muted); line-height: 1.5; }
.dag-row time::before { content: ""; position: absolute; left: 0; top: .5em; width: 9px; height: 9px; border-radius: 50%; background: var(--salt-50); box-shadow: 0 0 0 1.5px rgba(255,255,255,0.24); transition: background-color .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.dag-row .lbl { display: none; }
.dag-row .fore p { color: var(--olive-muted); }
.dag-row .efter { display: grid; gap: 6px; justify-items: start; }
.dag-row .efter p { color: var(--olive); font-weight: 450; }
.tag { display: inline-flex; align-items: center; gap: 6px; min-height: var(--target); margin: -8px 0 -12px; font-size: 13px; font-weight: 500; color: var(--olive-muted); transition: color .3s var(--ease); }
.tag i { font-style: normal; transition: transform .5s var(--ease-out); }
@media (hover: hover) { .tag:hover { color: var(--olive); } .tag:hover i { transform: translateX(3px); } }
@media (prefers-reduced-motion: no-preference) {
  html.js .dag-row .efter { opacity: .6; transform: translateX(-10px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
  html.js .dag-row .fore p { transition: opacity .8s var(--ease-out); }
  html.js .dag-row.on .efter { opacity: 1; transform: none; }
  html.js .dag-row.on .fore p { opacity: .62; }
  html.js .dag-facit .efter li { opacity: .6; transition: opacity .8s var(--ease-out); }
  html.js .dag-facit.on .efter li { opacity: 1; }
  html.js .dag-facit.on .efter li:nth-child(2) { transition-delay: .12s; } html.js .dag-facit.on .efter li:nth-child(3) { transition-delay: .24s; }
}
.dag-row.on time { color: var(--olive); }
.dag-row.on time::before { background: var(--olive); box-shadow: 0 0 0 4px rgba(255,255,255,0.08); }
.dag-row.now time::before { background: var(--pink); box-shadow: 0 0 0 5px rgba(255,79,171,.2); }
.dag-facit { padding: 22px 0 6px; border-top: 1px solid var(--line-2); align-items: start; }
.facit-k { font-size: 15px; font-weight: 500; line-height: 1.4; }
.facit-k small { margin-top: 2px; font-size: 11px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; color: var(--olive-muted); }
.dag-facit ul { display: grid; gap: 4px; }
.dag-facit .fore li { color: var(--olive-muted); font-size: 15px; }
.dag-facit .efter li { font-family: var(--serif); font-size: clamp(26px, 2.4vw, 32px); line-height: 1.1; letter-spacing: -0.01em; }

@media (max-width: 720px) {
  .dag { padding: 4px 18px 18px; border-radius: 22px; }
  .dag-top { display: none; }
  .dag-row { grid-template-columns: 1fr; gap: 10px; padding: 20px 0 18px; }
  .dag-row:first-child { border-top: 0; }
  .dag-row .lbl { display: block; margin-bottom: 2px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--olive-muted); }
  .dag-row .efter .lbl { color: var(--olive); }
  .dag-row .efter { padding: 12px 14px 4px; border-radius: 14px; background: rgba(255,255,255,0.087); box-shadow: inset 0 0 0 1px var(--line); }
  .tag { margin: -6px 0 0; }
  .dag-facit { grid-template-columns: 1fr 1fr; gap: 12px 16px; }
  .facit-k { grid-column: 1 / -1; }
  .dag-facit .fore::before, .dag-facit .efter::before { display: block; margin-bottom: 4px; font: 400 11px/1.4 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--olive-muted); }
  .dag-facit .fore::before { content: "Före"; } .dag-facit .efter::before { content: "Med Leadrion"; }
  .dag-facit .efter li { font-size: 24px; }
}

/* ==========================================================================
   Hela kedjan: sex olivgröna kort och grunden under
   ========================================================================== */
.delar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.del { position: relative; display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 10px; padding: 18px 20px 6px; border-radius: 22px; color: var(--salt-50);
  background: var(--olive-card); box-shadow: var(--olive-edge); transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.del-top { display: flex; justify-content: space-between; align-items: center; }
.del-n { font-size: 13px; font-variant-numeric: tabular-nums; color: rgba(243,245,248,0.5); }
.del-go { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; background: rgba(255,255,255,0.021); box-shadow: inset 0 0 0 1px var(--d-line); transition: background-color .4s var(--ease), color .4s var(--ease), transform .5s var(--ease-out); }
.del-fig { display: grid; gap: 4px; padding: 14px 0 16px; border-bottom: 1px solid var(--d-line); }
.del-fig b { font-family: var(--serif); font-weight: 400; font-size: clamp(46px, 4.4vw, 62px); line-height: .95; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.del-fig small { font-size: 13px; line-height: 1.4; color: rgba(243,245,248,0.6); }
.del h3 { margin-top: 6px; font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 2.4vw, 34px); line-height: 1.05; letter-spacing: -0.01em; }
.del p { font-size: 15px; color: var(--d-muted); }
.del .del-more { margin-top: 6px; border-top: 1px solid var(--d-line); color: var(--olive); }
@media (hover: hover) {
  .del:hover { transform: translateY(-3px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.022), 0 0 0 1px rgba(255,255,255,0.24), 0 40px 70px -36px rgba(0,0,0,0.85); }
  .del:hover .del-go { background: var(--salt-50); color: var(--olive-900); }
  .del:hover .del-more i, .bas:hover .del-more i, .tier:hover .del-more i, .fler-card:hover .del-more i, .entry:hover .del-more i { transform: translateX(4px); }
}
.bas { margin-top: 14px; display: grid; grid-template-columns: 180px minmax(0, 1fr) auto; gap: 8px 32px; align-items: center; padding: 22px 28px; border-radius: 22px; color: var(--salt-50);
  background: radial-gradient(80% 120% at 0% 0%, rgba(255,255,255,0.02), transparent 60%), var(--olive-900); box-shadow: var(--olive-edge); transition: transform .5s var(--ease-out); }
.bas-k { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: rgba(243,245,248,0.5); }
.bas h3 { font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.05; }
.bas p { grid-column: 2; font-size: 15px; color: var(--d-muted); max-width: 64ch; }
.bas h3 { grid-column: 2; grid-row: 1; }
.bas .bas-k { grid-row: 1 / span 2; align-self: start; padding-top: 10px; }
.bas .del-more { grid-column: 3; grid-row: 1 / span 2; }
@media (hover: hover) { .bas:hover { transform: translateY(-2px); } }
@media (max-width: 960px) { .delar { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  /* Sex kort blir en svepbar räls, så att sidan inte blir oändlig på mobilen */
  .delar { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 20px; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .delar::-webkit-scrollbar { display: none; }
  .del { flex: 0 0 min(300px, 82vw); scroll-snap-align: start; }
  .del-fig { grid-template-columns: auto 1fr; align-items: center; gap: 14px; }
  .del-fig b { font-size: 44px; }
  .bas { grid-template-columns: 1fr; padding: 20px; }
  .bas h3, .bas p, .bas .bas-k, .bas .del-more { grid-column: 1; grid-row: auto; padding-top: 0; }
}

/* ==========================================================================
   Systemen: mörkt kapitel med flöden och riktiga loggor
   ========================================================================== */
.dk { position: relative; isolation: isolate; overflow: hidden; color: var(--olive); background: radial-gradient(60% 40% at 50% 0%, rgba(255,255,255,0.1), transparent 70%), var(--deep); padding: clamp(40px, 6vw, 72px) var(--gutter) clamp(56px, 7vw, 96px); }
.dk-topo { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: url("../media/hem/topo.webp") 20% 70% / 1500px auto repeat; filter: invert(1); opacity: .09;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 15%, #000 85%, transparent); mask-image: linear-gradient(180deg, transparent, #000 15%, #000 85%, transparent); }
.dk-in { max-width: var(--max); margin: 0 auto; }
.dk .eyebrow { color: rgba(243,245,248,0.55); }
.dk .mute { color: rgba(243,245,248,0.5); }
.flows { display: grid; gap: 12px; }
.flow { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: 20px clamp(24px, 4vw, 56px); align-items: center; padding: clamp(20px, 2.6vw, 28px); border-radius: 22px;
  background: linear-gradient(160deg, rgba(255,255,255,0.02), rgba(255,255,255,0.014)); box-shadow: inset 0 1px 0 rgba(255,255,255,0.01), 0 0 0 1px var(--d-line); }
.flow-t { display: grid; gap: 6px; }
.flow h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 2.6vw, 34px); line-height: 1.05; }
.flow-t p { font-size: 15px; color: var(--d-muted); }
.chain { display: flex; align-items: center; min-width: 0; }
.nd { display: flex; align-items: center; gap: 10px; flex: 0 1 auto; min-width: 0; padding: 8px 14px 8px 8px; border-radius: 14px; background: rgba(255,255,255,0.018); box-shadow: inset 0 0 0 1px var(--d-line); }
.nd > span:not(.lg) { display: grid; min-width: 0; }
.nd b { font-weight: 500; font-size: 14px; line-height: 1.3; white-space: nowrap; }
.nd small { font-size: 12px; line-height: 1.3; color: rgba(243,245,248,0.55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ln { flex: 1 1 24px; min-width: 18px; height: 2px; padding: 0 4px; }
.ln em { position: relative; display: block; height: 100%; overflow: hidden; border-radius: 2px; background: repeating-linear-gradient(90deg, rgba(255,255,255,0.049) 0 4px, transparent 4px 8px); }
.ln em::after { content: ""; position: absolute; top: 0; left: 0; width: 40%; height: 100%; border-radius: 2px; background: linear-gradient(90deg, transparent, rgb(12 15 21), transparent); transform: translateX(-100%); opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .flow.live .ln em::after { animation: ln-run 2.4s var(--ease-out) infinite; animation-delay: calc(var(--i) * .4s); }
}
@keyframes ln-run { 0% { transform: translateX(-100%); opacity: 0; } 15% { opacity: 1; } 60%, 100% { transform: translateX(250%); opacity: 0; } }

/* Loggor: riktiga ikoner där de finns, annars initialer i en ruta */
.lg { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,0.024); color: var(--olive); box-shadow: inset 0 1px 0 rgba(255,255,255,0.011); }
.lg svg { width: 17px; height: 17px; fill: currentColor; }
.lg svg.own { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.lg.txt { font: 600 11px/1 var(--sans); letter-spacing: .02em; }

.noapp { margin-top: 12px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px clamp(24px, 4vw, 56px); align-items: center; padding: clamp(22px, 3vw, 32px); border-radius: 22px; color: var(--olive);
  background: linear-gradient(170deg, rgb(12 15 21) 0%, rgb(7 9 13) 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), 0 30px 60px -36px rgba(0,0,0,0.85); }
.noapp h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3vw, 40px); line-height: 1.05; letter-spacing: -0.01em; }
.noapp p { margin-top: 8px; color: var(--olive-muted); font-size: 16px; }
.noapp ul { display: grid; border-top: 1px solid var(--line); }
.noapp li { position: relative; padding: 12px 0 12px 26px; border-bottom: 1px solid var(--line); }
.noapp li::before { content: ""; position: absolute; left: 3px; top: 1.15em; width: 11px; height: 6px; border-left: 1.5px solid var(--olive); border-bottom: 1.5px solid var(--olive); transform: rotate(-45deg); }
.ocksa { margin-top: 36px; display: grid; gap: 14px; }
.ocksa p { font-size: 15px; color: var(--d-muted); }
.ocksa ul { display: flex; flex-wrap: wrap; gap: 8px; }
.ocksa li { display: inline-flex; align-items: center; gap: 9px; padding: 5px 14px 5px 5px; border-radius: 999px; font-size: 14px; background: rgba(255,255,255,0.017); box-shadow: inset 0 0 0 1px var(--d-line); }
.ocksa .lg { width: 28px; height: 28px; border-radius: 50%; }
.ocksa .lg svg { width: 14px; height: 14px; }
.ocksa .lg.txt { font-size: 9.5px; }
.legal { margin-top: 24px; max-width: 72ch; font-size: 13px; color: rgba(243,245,248,0.5); }
.legal a { color: var(--olive); padding: 12px 0; }

@media (max-width: 900px) { .flow { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .chain { flex-direction: column; align-items: stretch; }
  .nd { padding: 8px 12px 8px 8px; }
  .nd > span:not(.lg) { display: flex; align-items: baseline; gap: 8px; }
  .ln { flex: none; width: 2px; height: 18px; min-width: 0; padding: 3px 0; margin-left: 24px; }
  .ln em { background: repeating-linear-gradient(180deg, rgba(255,255,255,0.049) 0 4px, transparent 4px 8px); }
  .ln em::after { width: 100%; height: 50%; background: linear-gradient(180deg, transparent, rgb(12 15 21), transparent); transform: translateY(-100%); }
  .flow.live .ln em::after { animation-name: ln-run-y; }
  .noapp { grid-template-columns: 1fr; }
}
@keyframes ln-run-y { 0% { transform: translateY(-100%); opacity: 0; } 15% { opacity: 1; } 60%, 100% { transform: translateY(250%); opacity: 0; } }

/* ==========================================================================
   Kundmallarna: tre nivåer att klicka runt i
   ========================================================================== */
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.tier { display: grid; grid-template-rows: auto 1fr; padding: 10px; border-radius: 22px; background: var(--frost); box-shadow: var(--frost-edge); transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.tier-shot, .entry-shot { display: block; border-radius: 14px; overflow: hidden; background: rgb(7 9 13); box-shadow: 0 0 0 1px var(--line); }
.tier-bar { display: flex; gap: 5px; align-items: center; height: 22px; padding: 0 10px; background: rgba(255,255,255,0.108); border-bottom: 1px solid var(--line); }
.tier-bar i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.1); }
.tier-shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transition: transform 1.4s var(--ease-out); }
.tier-body { padding: 18px 12px 4px; display: grid; gap: 10px; align-content: start; }
.tier-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.tier h3 { font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1; }
.tier-top span { font-size: 13px; color: var(--olive-muted); text-align: right; }
.tier ul { display: grid; border-top: 1px solid var(--line); }
.tier li { position: relative; padding: 9px 0 9px 22px; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--olive-muted); }
.tier li::before { content: ""; position: absolute; left: 2px; top: 1.05em; width: 10px; height: 5px; border-left: 1.5px solid var(--olive); border-bottom: 1.5px solid var(--olive); transform: rotate(-45deg); }
.tier .del-more { align-self: end; }
@media (hover: hover) {
  .tier:hover { transform: translateY(-3px); }
  .tier:hover .tier-shot img { transform: scale(1.035); }
}
@media (max-width: 900px) {
  .tiers { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 24px; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .tiers::-webkit-scrollbar { display: none; }
  .tier { flex: 0 0 min(320px, 84vw); scroll-snap-align: start; }
}

/* Eget OS för byggfirman */
.os { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); gap: 28px clamp(28px, 4vw, 56px); align-items: center; padding: clamp(24px, 4vw, 48px); border-radius: 28px; color: var(--salt-50);
  background: radial-gradient(70% 80% at 85% 0%, rgba(255,255,255,0.021), transparent 65%), var(--olive-900); box-shadow: var(--olive-edge); overflow: hidden; }
.os .eyebrow { color: rgba(243,245,248,0.55); }
.os h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 3.4vw, 46px); line-height: 1.05; letter-spacing: -0.015em; text-wrap: balance; }
.os-copy p:not(.eyebrow) { margin-top: 14px; color: var(--d-muted); max-width: 46ch; }
.os-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 26px; }
.go { display: inline-flex; align-items: center; gap: 8px; min-height: var(--target); font-weight: 500; }
.go i { font-style: normal; transition: transform .5s var(--ease-out); }
.os-shot { display: block; border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255,255,255,0.06), 0 40px 80px -30px rgba(0,0,0,0.85); transition: transform .8s var(--ease-out); }
.os-shot img { width: 100%; height: auto; }
@media (hover: hover) { .os-shot:hover { transform: translateY(-4px) scale(1.01); } .go:hover i { transform: translateX(4px); } }
@media (max-width: 860px) { .os { grid-template-columns: 1fr; } .os-shot { margin-right: calc(-1 * clamp(24px, 4vw, 48px)); border-radius: 16px 0 0 16px; } }
@media (max-width: 720px) { .os-btns .btn { width: 100%; } }

/* Frågor */
.faq { display: grid; gap: 10px; }
.faq details { border-radius: 18px; background: var(--frost); box-shadow: var(--frost-edge); interpolate-size: allow-keywords; }
.faq summary { list-style: none; cursor: pointer; min-height: var(--target); padding: 20px 64px 20px 24px; position: relative; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%;
  background: linear-gradient(var(--olive), var(--olive)) center / 11px 1.5px no-repeat, linear-gradient(var(--olive), var(--olive)) center / 1.5px 11px no-repeat, rgba(255,255,255,0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), 0 0 0 1px var(--line); transition: transform .4s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details::details-content { height: 0; overflow: clip; transition: height .4s var(--ease-out), content-visibility .4s allow-discrete; }
.faq details[open]::details-content { height: auto; }
.faq details p { padding: 0 24px 22px; color: var(--olive-muted); max-width: 60ch; }

/* Fler exempel */
.fler { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.fler-card { display: grid; gap: 10px; align-content: start; padding: 24px 24px 8px; border-radius: 22px; background: var(--frost); box-shadow: var(--frost-edge); transition: transform .5s var(--ease-out); }
.fler-card .k { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--olive-muted); }
.fler-card h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 3.4vw, 44px); line-height: 1.02; letter-spacing: -0.015em; }
.fler-card p { color: var(--olive-muted); }
.fler-card .del-more { border-top: 1px solid var(--line); margin-top: 8px; }
@media (hover: hover) { .fler-card:hover { transform: translateY(-3px); } }
@media (max-width: 720px) { .fler { grid-template-columns: 1fr; } }

/* Uppmaning: boka ett samtal */
.cta { position: relative; isolation: isolate; overflow: hidden; margin-top: clamp(48px, 6vw, 80px); padding: clamp(40px, 7vw, 88px) clamp(22px, 5vw, 64px); border-radius: 30px; text-align: center; color: var(--olive);
  background: radial-gradient(60% 70% at 50% -10%, rgba(255,255,255,0.1), transparent 70%), var(--deep); box-shadow: var(--olive-edge); display: grid; justify-items: center; }
.cta-topo { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: url("../media/hem/topo.webp") 50% 40% / 1300px auto repeat; filter: invert(1); opacity: .14;
  -webkit-mask-image: radial-gradient(70% 80% at 50% 50%, #000 20%, transparent 80%); mask-image: radial-gradient(70% 80% at 50% 50%, #000 20%, transparent 80%); }
.cta h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5.4vw, 72px); line-height: 1; letter-spacing: -0.025em; text-wrap: balance; }
.cta p { margin-top: 18px; max-width: 52ch; color: var(--d-muted); }
.cta-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
@media (max-width: 720px) { .cta { border-radius: 24px; } .cta-btns { flex-direction: column; align-items: stretch; width: 100%; } }

/* Sidfot */
.foot { max-width: var(--max); margin: clamp(80px, 10vw, 128px) auto 0; padding: 28px var(--gutter) max(40px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; font-size: 14px; color: var(--olive-muted); }
.foot-links { display: flex; gap: 0 22px; flex-wrap: wrap; }
.foot-links a { min-height: var(--target); display: inline-flex; align-items: center; }
.foot-links a:hover { color: var(--olive); }
@media (max-width: 600px) { .foot { flex-direction: column; text-align: center; } .foot-links { justify-content: center; } }

/* ==========================================================================
   Översikten: hero med en rutt genom exemplen, och tre stora ingångar
   ========================================================================== */
.rt-hub { height: clamp(380px, 38vw, 480px); }
@media (max-width: 900px) { .rt-hub { height: auto; } }
.hub-list { display: grid; gap: 16px; padding-top: clamp(24px, 4vw, 48px); }
.entry { position: relative; isolation: isolate; overflow: hidden; display: grid; gap: clamp(20px, 2.6vw, 28px); padding: clamp(20px, 3vw, 36px); border-radius: 30px; color: var(--salt-50); scroll-margin-top: 96px;
  background: var(--olive-card); box-shadow: var(--olive-edge); transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out); }
.entry-topo { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: url("../media/hem/topo.webp") var(--pos) 40% / 1400px auto repeat; filter: invert(1); opacity: .08; }
.entry-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.entry-top .k { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: rgba(243,245,248,0.55); }
.entry .del-go { width: 44px; height: 44px; font-size: 16px; flex: none; }
.entry-main { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 24px clamp(28px, 4vw, 56px); align-items: center; }
.entry-name { display: grid; gap: 12px; align-content: center; }
.entry h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(46px, 5.6vw, 80px); line-height: .98; letter-spacing: -0.028em; }
.entry-name p { font-size: 18px; color: var(--d-muted); max-width: 30ch; }
.entry-kpi { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; margin-top: 14px; padding-top: 18px; border-top: 1px solid var(--d-line); }
.entry-kpi b { font-family: var(--serif); font-weight: 400; font-size: clamp(46px, 4.6vw, 64px); line-height: .95; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.entry-kpi small { font-size: 14px; color: var(--d-muted); max-width: 22ch; }
.entry-shot { background: rgb(17 21 28); box-shadow: 0 0 0 1px rgba(255,255,255,0.06), 0 40px 70px -40px rgba(0,0,0,0.85); transform: rotate(.6deg); transition: transform .9s var(--ease-out); }
.entry:nth-child(even) .entry-shot { transform: rotate(-.6deg); }
.entry-shot .tier-bar { background: rgba(255,255,255,0.021); border-color: var(--d-line); }
.entry-shot .tier-bar i { background: rgba(255,255,255,0.045); }
.entry-shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transition: transform 1.4s var(--ease-out); }
.entry-chain { position: relative; padding-top: 4px; }
.ec-line { position: absolute; left: 5px; right: 5px; top: 9px; height: 1.5px; background: rgba(255,255,255,0.03); }
.ec-line::after { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,0.094); transform-origin: left; transform: scaleX(var(--p, 1)); transition: transform 1.6s var(--ease-out) .2s; }
.entry-chain ol { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.entry-chain li { display: grid; gap: 2px; align-content: start; }
.entry-chain i { width: 11px; height: 11px; margin-bottom: 12px; border-radius: 50%; background: var(--salt-50); box-shadow: 0 0 0 4px rgba(255,255,255,0.24); transition: background-color .6s var(--ease-out); transition-delay: calc(.3s + var(--i) * .16s); }
.entry-chain b { font-size: 14px; font-weight: 500; line-height: 1.3; }
.entry-chain small { font-size: 12.5px; line-height: 1.35; color: rgba(243,245,248,0.55); }
@media (prefers-reduced-motion: no-preference) {
  html.js .entry:not(.in) .ec-line::after { --p: 0; }
  html.js .entry:not(.in) .entry-chain i { background: rgb(17 21 28); box-shadow: 0 0 0 1.5px rgba(255,255,255,0.06), 0 0 0 4px rgba(255,255,255,0.24); }
}
.entry-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 4px 24px; padding-top: 8px; border-top: 1px solid var(--d-line); font-size: 14px; color: rgba(243,245,248,0.55); }
.entry-foot .del-more { color: var(--olive); }
@media (hover: hover) {
  .entry:hover { transform: translateY(-4px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.022), 0 0 0 1px rgba(255,255,255,0.24), 0 50px 90px -40px rgba(0,0,0,0.85); }
  .entry:hover .entry-shot { transform: rotate(0deg) translateY(-4px); }
  .entry:hover .entry-shot img { transform: scale(1.03); }
  .entry:hover .del-go { background: var(--salt-50); color: var(--olive-900); }
}
@media (max-width: 860px) {
  .entry-main { grid-template-columns: 1fr; }
  .entry-shot { order: -1; transform: none; }
  .entry:nth-child(even) .entry-shot { transform: none; }
  .ec-line { display: none; }
  .entry-chain ol { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
  .entry-chain li { grid-template-columns: 11px 1fr; column-gap: 10px; }
  .entry-chain i { grid-row: span 2; margin: 5px 0 0; }
}
@media (max-width: 720px) {
  .entry { border-radius: 24px; }
  .entry-name p { font-size: var(--fs-base); }
  .entry-kpi b { font-size: 42px; }
  .entry-foot > span:first-child { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .rt-line { stroke-dashoffset: 0; }
  .rt-stops span, .rt-stops a { opacity: 1; }
}


/* ===== Studioljus (25 nov): höjdkurvorna ersatta med ljus uppifrån och fint korn, som startsidans hero ===== */
.topo-bg, #kedjan .topo-bg, #mallar .topo-bg { background: radial-gradient(80% 55% at 50% 0%, rgba(255,255,255,0.115), rgba(255,255,255,0.01) 70%), radial-gradient(60% 40% at 70% 100%, rgba(255,255,255,0.05), transparent 70%); background-position: 0 0, 0 0; -webkit-mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent); mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent); }
.xh-topo, .dk-topo, .cta-topo, .entry-topo { background: radial-gradient(70% 55% at 50% 0%, rgba(255,255,255,0.023), transparent 70%), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.3'/%3E%3C/svg%3E") 0 0 / 160px 160px; filter: none; opacity: 1; -webkit-mask-image: none; mask-image: none; }

.seam { display: none; }
.seam-in { display: block; height: 0; background: none; }

/* ===== Ljus hero (25 nov): samma uttryck som startsidan. Rutten i oliv, rosa bara på målet ===== */
.xh { color: var(--olive); --d-line: rgba(255,255,255,0.112); --d-muted: var(--olive-muted);
  background: radial-gradient(80% 60% at 55% 0%, rgba(255,255,255,0.12), rgba(255,255,255,0.01) 70%), var(--salt); }
.xh::after, .xh-topo { display: none; }
.xh h1 .dim { color: rgba(243,245,248,0.45); }
.chip-k { background: rgba(255,255,255,0.094); }
.chip-k > :first-child { background: var(--olive); color: var(--salt-50); }
.rt-k { color: var(--olive-muted); }
.rt-bg { stroke: rgba(243,245,248,0.2); }
.rt-line { stroke: var(--olive); stroke-width: .3; filter: none; }
.rt-stops i { background: var(--salt); box-shadow: 0 0 0 1.5px rgba(255,255,255,0.24); }
.rt-stops span, .rt-stops a { color: var(--olive); background: rgba(255,255,255,0.12); box-shadow: 0 0 0 1px rgba(255,255,255,0.096), 0 14px 28px -20px rgba(0,0,0,0.66); }
.rt-stops small { color: var(--olive-muted); }
.rt-stops li.on i { background: var(--olive); box-shadow: 0 0 0 5px rgba(255,255,255,0.064); }
.rt-stops li.top.on span, .rt-stops li.top.on a { background: var(--olive); color: var(--salt-50); }
.rt-stops li.top.on small { color: rgba(243,245,248,0.7); }
@media (hover: hover) { .rt-stops a:hover { background: rgba(255,255,255,0.07); } .rt-stops li.top a:hover { background: var(--olive-900, rgb(17 21 28)); } }
.xh-kpi dd small { color: rgba(243,245,248,0.5); }
.xh :focus-visible { outline-color: var(--olive); }
.xh .btn-ghost { color: var(--olive); background: transparent; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.224); }
@media (hover: hover) { .xh .btn-ghost:hover { background: rgba(255,255,255,0.056); } }

/* ================================================================
   Flaggskeppet som scrollad sekvens (2 december, /sekvens.js och /sekvens.css).
   Ligger direkt efter heron och leder till flaggskeppet och dess modulpanel.
   ================================================================ */
.xf { background: transparent; }
.xf .sq-cta { margin-top: 6px; }
.xf .sq-cta .btn i { font-style: normal; margin-left: 2px; }
@media (max-width: 860px) {
  .xf.sq-pa .sq-cta { display: flex; order: 4; flex-wrap: nowrap; gap: 8px; }
  .xf.sq-pa .sq-cta .btn { flex: 1; min-height: 44px; padding: 0 12px; font-size: 14px; white-space: nowrap; }
  .xf.sq-pa .sq-steg { min-height: 112px; }
}
/* Flaggskeppet är det bästa vi har att visa: en ljusare kant och den rosa punkten vid namnet */
.tier.tier-fl { box-shadow: inset 0 1px 0 rgba(255,255,255,.18), inset 0 0 0 1px rgba(255,255,255,.2), 0 40px 80px -40px rgba(0,0,0,.9); }
.tier-fl .tier-top h3::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-radius: 50%; background: #FF4FAB; vertical-align: .35em; }
