/* ==========================================================================
   Gridlock – stilmall
   Palett: varm papper, nästan svart bläck, en orangeröd accent.
   Rörelse: endast transform/opacity. prefers-reduced-motion stänger av rörelse.
   ========================================================================== */

/* ---------- Typsnitt (självhostade) ---------- */
@font-face {
  font-family: "Familjen Grotesk";
  src: url("../fonts/FamiljenGrotesk-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212;
}
@font-face {
  font-family: "Familjen Grotesk";
  src: url("../fonts/FamiljenGrotesk-latin-ext.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/InstrumentSerif-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --paper: #F4F1EA;
  --paper-2: #EAE5DA;
  --paper-3: #E0D9CB;
  --white: #FFFDF9;
  --ink: #141513;
  --ink-2: #1E201D;
  --ink-3: #2A2C28;
  --muted: #5E5F59;
  --line: rgba(20, 21, 19, .12);
  --line-strong: rgba(20, 21, 19, .22);
  --accent: #D4421A; /* 4.6:1 mot vit text */
  /* Vertikal rytm: en sektionsluft, och tre fjärdedelar där två sektioner delar bakgrund */
  --sec: clamp(72px, 9vw, 136px);
  --sec-join: calc(var(--sec) * .75);
  --accent-ink: #B8360F;
  --accent-soft: #FF8A63;
  --blush: #EED8CB;
  --on-dark: #F4F1EA;
  --on-dark-muted: rgba(244, 241, 234, .7);
  --on-dark-line: rgba(244, 241, 234, .14);

  --font: "Familjen Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: "Instrument Serif", ui-serif, Georgia, "Times New Roman", serif;

  --radius-s: 12px;
  --radius: 20px;
  --radius-l: 28px;
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1280px;
  --header-h: 76px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

  color-scheme: light;
}

/* ---------- Bas ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
h3, h4 { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
ul, ol { padding: 0; list-style: none; }
em { font-style: normal; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: #fff; }

:focus { outline: none; }
:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
.theme-dark :focus-visible, .mobile-menu :focus-visible, .case-dialog :focus-visible { outline-color: var(--accent-soft); }

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform .3s var(--ease-out);
}
.skip-link:focus { transform: none; }

.container {
  width: 100%;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(980px + var(--gutter) * 2); }

#main:focus { outline: none; }

/* Sidladdning – visas när JS är redo, med failsafe */
html.js body { opacity: 0; animation: page-failsafe .4s ease 2.5s forwards; }
html.js.ready body { opacity: 1; animation: none; transition: opacity .6s ease; }
@keyframes page-failsafe { to { opacity: 1; } }

/* ---------- Typografi ---------- */
.h2 {
  font-size: clamp(2.1rem, 4.6vw, 4rem);
  line-height: 1.03;
  letter-spacing: -.035em;
  font-weight: 600;
  text-wrap: balance;
}
.h2--xl { font-size: clamp(2.6rem, 6.4vw, 5.6rem); }
.h2 em, .hero__title em, .site-footer__tag em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.01em;
  color: var(--accent-ink);
  padding-right: .04em;
}
.theme-dark .h2 em, .theme-dark .hero__title em, .site-footer em { color: var(--accent-soft); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}
.eyebrow--light { color: var(--on-dark-muted); }
.eyebrow__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(224, 71, 28, .16);
}

.theme-light { background: var(--paper); color: var(--ink); }
.theme-sand { background: var(--paper-2); color: var(--ink); }
.theme-dark { background: var(--ink); color: var(--on-dark); }

.section-head { max-width: 780px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head__lead { margin-top: 20px; font-size: 1.125rem; color: var(--muted); max-width: 600px; }
.section-head--split {
  max-width: none;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px 64px;
  align-items: end;
}
.section-head--split .section-head__lead { margin: 0; }

/* ---------- Knappar ---------- */
.btn {
  --bg: var(--ink);
  --fg: var(--paper);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  isolation: isolate;
  overflow: hidden;
  transition: transform .4s var(--ease-out), box-shadow .3s ease;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: rgba(255, 255, 255, .14);
  transform: translateY(101%);
  transition: transform .45s var(--ease-out);
}
.btn:hover::before { transform: none; }
.btn:active { transform: scale(.97); }
.btn--lg { min-height: 56px; padding: 14px 28px; font-size: 1.0625rem; }
.btn--block { width: 100%; }
.btn--accent { --bg: var(--accent); --fg: #fff; box-shadow: 0 10px 30px -12px rgba(224, 71, 28, .7); }
.btn--ghost-light {
  --bg: transparent;
  --fg: var(--on-dark);
  box-shadow: inset 0 0 0 1.5px rgba(244, 241, 234, .3);
}
.btn--ghost-light:hover { box-shadow: inset 0 0 0 1.5px rgba(244, 241, 234, .7); }
.btn--dot { padding-left: 18px; }
.btn__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  transition: transform .4s var(--ease-spring);
}
.btn--dot:hover .btn__dot { transform: scale(1.6); }
.btn__arrow { display: inline-block; transition: transform .4s var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.magnetic { will-change: transform; }

.round-btn {
  display: inline-grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1.5px solid rgba(244, 241, 234, .28);
  background: transparent;
  color: var(--on-dark);
  font-size: 1.15rem;
  transition: transform .35s var(--ease-out), background-color .25s ease, border-color .25s ease, color .25s ease;
}
.round-btn:hover { background: var(--on-dark); color: var(--ink); border-color: var(--on-dark); }
.round-btn:active { transform: scale(.92); }
.round-btn:disabled { opacity: .35; pointer-events: none; }
.round-btn--dark { border-color: var(--line-strong); color: var(--ink); width: 46px; height: 46px; }
.round-btn--dark:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  color: var(--on-dark);
  transition: transform .5s var(--ease-out), color .3s ease;
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(244, 241, 234, .86);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transition: opacity .35s ease, background-color .45s ease, border-color .45s ease;
}
.site-header.is-scrolled { color: var(--ink); }
/* Mörkt glas över mörka sektioner (kundcase, kontakt, sidfot) */
.site-header.is-scrolled.is-on-dark { color: var(--on-dark); }
.site-header.is-on-dark::before { background: rgba(20, 21, 19, .74); border-bottom-color: var(--on-dark-line); }
.site-header.is-scrolled::before { opacity: 1; }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-h);
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand__mark { --mark-ink: currentColor; --mark-acc: var(--accent); }
.brand__mark { transition: transform .6s var(--ease-spring); }
.brand:hover .brand__mark { transform: rotate(90deg); }
.brand__word {
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: -.045em;
  line-height: 1;
  transform: translateY(-1px);
}

.main-nav {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 5px;
  border-radius: 999px;
  background: rgba(244, 241, 234, .08);
  box-shadow: inset 0 0 0 1px rgba(244, 241, 234, .14);
  transition: background-color .3s ease, box-shadow .3s ease;
}
.is-scrolled .main-nav { background: rgba(20, 21, 19, .04); box-shadow: inset 0 0 0 1px var(--line); }
.main-nav__list { position: relative; z-index: 1; display: flex; gap: 2px; }
.main-nav__list a {
  display: block;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: .9375rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color .3s ease;
}
.main-nav__list a:hover { color: var(--accent-soft); }
.is-scrolled .main-nav__list a:hover { color: var(--accent-ink); }
.main-nav__list a.is-active, .main-nav__list a.is-active:hover { color: var(--ink); }
.is-scrolled .main-nav__list a.is-active, .is-scrolled .main-nav__list a.is-active:hover { color: var(--paper); }
.main-nav__pill {
  position: absolute;
  left: 0;
  top: 5px;
  bottom: 5px;
  width: var(--pw, 0px);
  border-radius: 999px;
  background: var(--paper);
  transform: translateX(var(--px, 0px));
  transition: transform .55s var(--ease-out), width .55s var(--ease-out), background-color .3s ease, opacity .3s ease;
  opacity: 0;
}
.main-nav.has-pill .main-nav__pill { opacity: 1; }
.is-scrolled .main-nav__pill { background: var(--ink); }

/* Över mörka sektioner: samma uttryck som i hero, fast på mörkt glas */
.is-scrolled.is-on-dark .main-nav { background: rgba(244, 241, 234, .06); box-shadow: inset 0 0 0 1px var(--on-dark-line); }
.is-scrolled.is-on-dark .main-nav__list a:hover { color: var(--accent-soft); }
.is-scrolled.is-on-dark .main-nav__list a.is-active, .is-scrolled.is-on-dark .main-nav__list a.is-active:hover { color: var(--ink); }
.is-scrolled.is-on-dark .main-nav__pill { background: var(--paper); }
.is-scrolled.is-on-dark .site-header__cta { --bg: var(--paper); --fg: var(--ink); }
.is-scrolled.is-on-dark .site-header__cta::before { background: rgba(20, 21, 19, .06); }

.site-header__actions { display: flex; align-items: center; gap: 10px; }
.site-header__cta { min-height: 44px; padding: 10px 20px 10px 16px; font-size: .9375rem; --bg: var(--paper); --fg: var(--ink); transition: transform .4s var(--ease-out), box-shadow .3s ease, background-color .35s ease, color .35s ease; }
.is-scrolled .site-header__cta { --bg: var(--ink); --fg: var(--paper); }
.site-header__cta::before { background: rgba(20, 21, 19, .06); }
.is-scrolled .site-header__cta::before { background: rgba(255, 255, 255, .12); }

/* Språkväljare */
.lang { position: relative; }
.lang__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px 0 10px;
  border-radius: 999px;
  border: 1px solid #DAD6CD;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  font-size: .9375rem;
  letter-spacing: .02em;
  transition: border-color .25s ease, box-shadow .25s ease, transform .3s var(--ease-out);
}
.lang__btn:hover { border-color: #BDB8AC; box-shadow: 0 6px 18px -10px rgba(20, 21, 19, .35); }
.lang__btn:active { transform: scale(.96); }
.lang__code { line-height: 1; }
.flag {
  flex-shrink: 0;
  border-radius: 50%;
  clip-path: circle(50%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08);
}
.lang__btn .flag { width: 22px; height: 22px; }
.lang__btn[aria-expanded="true"] { border-color: #BDB8AC; }
.lang__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 172px;
  padding: 6px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #E2DED5;
  box-shadow: 0 24px 48px -20px rgba(20, 21, 19, .4), 0 2px 6px rgba(20, 21, 19, .06);
  color: var(--ink);
  transform-origin: top right;
  opacity: 0;
  transform: translateY(-6px) scale(.96);
  transition: opacity .2s ease, transform .3s var(--ease-out);
}
.lang__menu.is-open { opacity: 1; transform: none; }
.lang__menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font-weight: 600;
  font-size: .9375rem;
  text-align: left;
  transition: background-color .2s ease;
}
.lang__menu button:hover, .lang__menu button:focus-visible { background: var(--paper); }
.lang__menu button:focus-visible { outline-offset: -2px; }
.lang__menu button[aria-checked="true"]::after {
  content: "";
  margin-left: auto;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* Hamburgare */
.menu-toggle {
  display: none;
  place-items: center;
  width: 44px; height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  transition: transform .3s var(--ease-out), background-color .3s ease;
}
.is-scrolled .menu-toggle { background: var(--ink); color: var(--paper); }
.is-scrolled.is-on-dark .menu-toggle { background: var(--paper); color: var(--ink); }
.menu-toggle:active { transform: scale(.92); }
.menu-toggle__lines { position: relative; width: 18px; height: 12px; }
.menu-toggle__lines i {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .45s var(--ease-out);
}
.menu-toggle__lines i:first-child { top: 1px; }
.menu-toggle__lines i:last-child { bottom: 1px; }
.menu-open .menu-toggle__lines i:first-child { transform: translateY(4px) rotate(45deg); }
.menu-open .menu-toggle__lines i:last-child { transform: translateY(-4px) rotate(-45deg); }
.menu-open .site-header { color: var(--on-dark); transform: none; }
.menu-open .site-header::before { opacity: 0; }
.menu-open .menu-toggle { background: var(--paper); color: var(--ink); }

/* Mobilmeny */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--ink);
  color: var(--on-dark);
  overflow-y: auto;
  opacity: 0;
  transition: opacity .35s ease;
}
.mobile-menu.is-open { opacity: 1; }
.mobile-menu__inner {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  padding: calc(var(--header-h) + 24px) var(--gutter) 28px;
}
.mobile-menu__list li { overflow: hidden; border-bottom: 1px solid var(--on-dark-line); }
.mobile-menu__list a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  font-size: clamp(2.2rem, 10vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1.05;
  text-decoration: none;
  transform: translateY(105%);
  transition: transform .7s var(--ease-out), color .25s ease;
  transition-delay: calc(var(--i, 0) * 60ms + 80ms);
}
.mobile-menu__list li:nth-child(2) a { --i: 1; }
.mobile-menu__list li:nth-child(3) a { --i: 2; }
.mobile-menu.is-open .mobile-menu__list a { transform: none; }
.mobile-menu__list a:hover { color: var(--accent-soft); }
.mobile-menu__num { font-size: .8125rem; font-weight: 600; letter-spacing: .06em; color: var(--accent-soft); }
.mobile-menu__foot {
  display: grid;
  gap: 14px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s ease .25s, transform .7s var(--ease-out) .25s;
}
.mobile-menu.is-open .mobile-menu__foot { opacity: 1; transform: none; }
.mobile-menu__label { font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-muted); }
.seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(244, 241, 234, .08);
  box-shadow: inset 0 0 0 1px var(--on-dark-line);
}
.seg__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--on-dark);
  font-weight: 600;
  transition: background-color .3s ease, color .3s ease;
}
.seg__btn[aria-pressed="true"] { background: var(--paper); color: var(--ink); }
body.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + clamp(32px, 4.5vw, 72px)) 0 clamp(32px, 4.5vw, 72px);
  isolation: isolate;
}
.hero__grid {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: radial-gradient(rgba(244, 241, 234, .16) 1px, transparent 1.4px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 80%);
}
.hero__glow {
  position: absolute;
  left: 0; top: 0;
  z-index: -1;
  width: 760px; height: 760px;
  margin: -380px 0 0 -380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 71, 28, .22), rgba(224, 71, 28, 0) 62%);
  transform: translate(var(--gx, 70vw), var(--gy, 30vh));
  transition: transform 1.2s var(--ease-out);
  pointer-events: none;
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.hero__title {
  font-size: clamp(2.75rem, 6.1vw, 6.1rem);
  line-height: .98;
  letter-spacing: -.045em;
  font-weight: 600;
  margin-bottom: 28px;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.hero__title .line__inner { display: block; text-wrap: balance; }
.hero__title em { font-size: 1.08em; line-height: .9; }
.hero__lead { max-width: 540px; font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); color: var(--on-dark-muted); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__points { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 36px; font-size: .9375rem; color: var(--on-dark-muted); }
.hero__points li { display: inline-flex; align-items: center; gap: 10px; }
.hero__points li::before {
  content: "";
  width: 16px; height: 16px;
  border-radius: 50%;
  background: rgba(255, 138, 99, .18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-5' fill='none' stroke='%23FF8A63' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}

/* Hero intro-animation */
.js .reveal-hero { opacity: 0; transform: translateY(18px); }
.js .hero__title .line__inner { transform: translateY(108%); }
.hero-in .reveal-hero {
  opacity: 1;
  transform: none;
  transition: opacity .9s ease, transform 1.1s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 110ms + 120ms);
}
.hero-in .hero__title .line__inner {
  transform: none;
  transition: transform 1.15s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 110ms + 120ms);
}
.hero-replay .reveal-hero, .hero-replay .hero__title .line__inner { transition: none !important; }

/* Live-bygge i hero */
.hero__visual { position: relative; perspective: 1400px; }
@media (min-width: 1081px) {
  /* Mocken linjerar med rubrik + punkter, inte med eyebrow-raden. */
  .hero__visual { align-self: end; margin-bottom: -4px; }
}
.build {
  --s-bg: #F4F1EA; --s-ink: #141513; --s-muted: #8A877E; --s-acc: #E0471C; --s-soft: #EED8CB; --s-card: #fff; --s-sun: #E0471C; --s-hill1: #D8C8B4; --s-hill2: #B9A58C;
  position: relative;
  border-radius: 16px;
  background: #1C1E1B;
  box-shadow: 0 0 0 1px rgba(244, 241, 234, .1), 0 50px 100px -40px rgba(0, 0, 0, .8), 0 30px 60px -30px rgba(224, 71, 28, .25);
  transform: rotateY(var(--ry, -7deg)) rotateX(var(--rx, 3deg));
  transform-style: preserve-3d;
  transition: transform 1s var(--ease-out);
  overflow: hidden;
}
.build[data-theme="b"] { --s-bg: #1F2A24; --s-ink: #F1E9DA; --s-muted: #9DA79F; --s-acc: #D9825B; --s-soft: #33443A; --s-card: #283730; --s-sun: #F1E9DA; --s-hill1: #3E5246; --s-hill2: #52695B; }
.build[data-theme="c"] { --s-bg: #F3E1D8; --s-ink: #4A2328; --s-muted: #9B7A76; --s-acc: #A8324A; --s-soft: #fff; --s-card: #FBF1EC; --s-sun: #A8324A; --s-hill1: #E9C9BC; --s-hill2: #D9AE9E; }
.build__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 40px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(244, 241, 234, .08);
}
.build__dots { display: inline-flex; gap: 6px; }
.build__dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(244, 241, 234, .2); }
.build__url {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  max-width: 260px;
  margin-inline: auto;
  height: 24px;
  border-radius: 8px;
  background: rgba(244, 241, 234, .07);
  font-size: .75rem;
  color: rgba(244, 241, 234, .66);
  transform: translateX(-20px);
}
.build__lock {
  width: 8px; height: 9px;
  border-radius: 2px;
  background: #6FCF97;
  position: relative;
  opacity: 0;
  transform: scale(.4);
  transition: opacity .4s ease, transform .5s var(--ease-spring);
}
.build__lock::before {
  content: "";
  position: absolute;
  left: 1.5px; right: 1.5px; top: -4px;
  height: 6px;
  border: 1.5px solid #6FCF97;
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
}
.s4 .build__lock { opacity: 1; transform: none; }

.build__canvas {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 4 / 3.05;
  padding: 5.5cqw 6cqw;
  display: flex;
  flex-direction: column;
  gap: 5cqw;
  overflow: hidden;
}
.build__canvas::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--s-bg);
  opacity: 0;
  transition: opacity .7s ease;
}
.s2 .build__canvas::before { opacity: 1; }
.b-blueprint {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(111, 170, 255, .1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111, 170, 255, .1) 1px, transparent 1px);
  background-size: 5cqw 5cqw;
  opacity: 0;
  transition: opacity .6s ease;
}
.s1 .b-blueprint { opacity: 1; }
.s2 .b-blueprint { opacity: 0; }
.build__canvas > *:not(.b-blueprint):not(.b-cursor):not(.b-live) { position: relative; }

.b {
  position: relative;
  display: block;
  border-radius: 1.2cqw;
  opacity: 0;
  transform: translateY(1.5cqw) scale(.96);
  transition: opacity .5s ease, transform .7s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 70ms);
}
.b::before, .b::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  transition: opacity .6s ease;
  transition-delay: calc(var(--d, 0) * 60ms);
}
.b::before { border: 1.5px dashed rgba(140, 186, 255, .55); }
.b::after { background: var(--fill, var(--s-ink)); opacity: 0; }
.s1 .b { opacity: 1; transform: none; }
.s2 .b::before { opacity: 0; }
.s2 .b::after { opacity: 1; }

.b-nav { display: flex; align-items: center; gap: 3cqw; height: 5cqw; }
.b-logo { width: 13cqw; height: 3.4cqw; }
.b-links { display: flex; gap: 2.2cqw; margin-left: auto; }
.b-link { width: 7cqw; height: 1.6cqw; --fill: var(--s-muted); }
.b-navbtn { width: 11cqw; height: 4.6cqw; border-radius: 9cqw; --fill: var(--s-acc); }
.b-hero { display: grid; grid-template-columns: 1.25fr 1fr; gap: 5cqw; align-items: center; flex: 1; }
.b-text { display: flex; flex-direction: column; gap: 1.8cqw; }
.b-h1 { width: 100%; height: 5.2cqw; }
.b-h1--short { width: 70%; --fill: var(--s-acc); }
.b-p { width: 92%; height: 1.6cqw; margin-top: 1cqw; --fill: var(--s-muted); }
.b-p--short { width: 70%; margin-top: 0; }
.b-ctas { display: flex; gap: 1.8cqw; margin-top: 2cqw; }
.b-cta { width: 16cqw; height: 5.2cqw; border-radius: 9cqw; --fill: var(--s-ink); }
.b-cta--ghost { width: 13cqw; --fill: var(--s-soft); }
.b-img { height: 100%; min-height: 26cqw; border-radius: 2.4cqw; overflow: hidden; --fill: var(--s-soft); }
.b-sun, .b-hill { position: absolute; z-index: 1; opacity: 0; transition: opacity .6s ease, transform .9s var(--ease-out); }
.b-sun { width: 9cqw; height: 9cqw; border-radius: 50%; background: var(--s-sun); right: 18%; top: 18%; transform: translateY(6cqw) scale(.6); }
.b-hill { left: -10%; right: -10%; bottom: -40%; height: 70%; border-radius: 50%; transform: translateY(30%); }
.b-hill--1 { background: var(--s-hill1); left: -30%; right: 20%; }
.b-hill--2 { background: var(--s-hill2); left: 30%; right: -40%; bottom: -48%; transition-delay: .12s; }
.s3 .b-sun, .s3 .b-hill { opacity: 1; transform: none; }
.b-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4cqw; }
.b-card { height: 13cqw; border-radius: 1.8cqw; --fill: var(--s-card); }
.b-card::after { box-shadow: 0 .6cqw 2cqw -1cqw rgba(0, 0, 0, .25); }
.s3 .b-card { --fill: var(--s-card); }
.b-card:nth-child(1)::before { }
.b-cards .b { overflow: hidden; }
.b-cards .b > * { display: none; }

.b-cursor {
  position: absolute;
  left: 0; top: 0;
  z-index: 5;
  opacity: 0;
  transform: translate(80cqw, 70cqw);
  transition: transform 1.1s var(--ease-in-out), opacity .3s ease;
}
.b-cursor svg { width: 4.6cqw; height: 4.6cqw; }
.s3 .b-cursor { opacity: 1; transform: translate(20cqw, 47cqw); }
.s4 .b-cursor { opacity: 0; transform: translate(20cqw, 47cqw) scale(.85); }
.b-live {
  position: absolute;
  right: 4cqw; bottom: 4cqw;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 1.4cqw;
  padding: 1.2cqw 2.4cqw;
  border-radius: 9cqw;
  background: #141513;
  color: #F4F1EA;
  font-size: 2.6cqw;
  font-weight: 700;
  opacity: 0;
  transform: translateY(3cqw) scale(.8);
  transition: opacity .4s ease, transform .6s var(--ease-spring);
}
.b-live i { width: 1.6cqw; height: 1.6cqw; border-radius: 50%; background: #6FCF97; animation: pulse 1.6s ease infinite; }
.s4 .b-live { opacity: 1; transform: none; }
.build.is-fading .build__canvas > * { opacity: 0 !important; transition: opacity .4s ease !important; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .5; transform: scale(.7); } }

.build-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 18px;
  font-size: .8125rem;
  font-weight: 600;
  color: rgba(244, 241, 234, .45);
}
.build-steps li { position: relative; padding-top: 14px; transition: color .4s ease; }
.build-steps li::before, .build-steps li::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  border-radius: 2px;
  background: rgba(244, 241, 234, .14);
}
.build-steps li::after { background: var(--accent-soft); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-out); }
.build-steps li.is-done { color: rgba(244, 241, 234, .75); }
.build-steps li.is-done::after { transform: none; }
.build-steps li.is-current { color: var(--on-dark); }
.build-steps li.is-current::after { transform: none; transition-duration: 1.4s; }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  background: var(--accent);
  color: #fff;
  padding: 18px 0;
  border-block: 1px solid rgba(0, 0, 0, .08);
}
.marquee__track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; flex-shrink: 0; }
.marquee__group li {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.marquee__group li::after {
  content: "";
  width: 14px; height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='%23fff'%3E%3Cpath d='M0 7a7 7 0 0 1 7-7h5.5a2 2 0 0 1 2 2v10.5a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2z'/%3E%3Cpath d='M17.5 2a2 2 0 0 1 2-2H25a7 7 0 0 1 7 7v5.5a2 2 0 0 1-2 2H19.5a2 2 0 0 1-2-2z' opacity='.45'/%3E%3Cpath d='M0 19.5a2 2 0 0 1 2-2h10.5a2 2 0 0 1 2 2V30a2 2 0 0 1-2 2H7a7 7 0 0 1-7-7z'/%3E%3Cpath d='M17.5 19.5a2 2 0 0 1 2-2H30a2 2 0 0 1 2 2V25a7 7 0 0 1-7 7h-5.5a2 2 0 0 1-2-2z'/%3E%3C/svg%3E") center/contain no-repeat;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Scroll-reveals ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); }
.js .reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity .8s ease, transform 1s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}

/* ---------- Intro ---------- */
.intro { padding: var(--sec) 0 var(--sec-join); overflow: hidden; }
.intro__head { text-align: center; }
.intro__head .eyebrow { justify-content: center; }
.intro__title { font-size: clamp(2.1rem, 4.8vw, 4.25rem); margin-inline: auto; }
.underline { position: relative; display: inline-block; white-space: nowrap; }
.underline svg {
  position: absolute;
  left: -2%; bottom: -.12em;
  width: 104%; height: .32em;
  overflow: visible;
}
.underline path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 5;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.2s var(--ease-out) .5s;
}
.intro__title.in .underline path, html:not(.js) .underline path { stroke-dashoffset: 0; }
.intro__lead { max-width: 640px; margin: 28px auto 0; font-size: 1.1875rem; color: var(--muted); }

.tilt-row { margin-top: clamp(56px, 8vw, 104px); overflow: hidden; padding: 30px 0 50px; }
.tilt-row__track {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 2.4vw, 32px);
  width: max-content;
  margin-inline: auto;
  transform: translateX(var(--tx, 0px));
  will-change: transform;
}
.tcard {
  flex-shrink: 0;
  width: clamp(200px, 21vw, 290px);
  padding: 10px 10px 14px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(20, 21, 19, .05), 0 30px 60px -36px rgba(20, 21, 19, .45);
  transform: translateY(var(--py, 0px)) rotate(var(--r, 0deg));
  will-change: transform;
}
.tcard figcaption { padding: 12px 6px 0; font-size: .875rem; font-weight: 600; color: var(--muted); }
.tcard__screen {
  --bg: #EADCC8; --fg: #2B1D12; --ac: #9C4A1A;
  position: relative;
  aspect-ratio: 4 / 4.6;
  border-radius: 14px;
  padding: 14px;
  background: var(--bg);
  color: var(--fg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tcard--forest .tcard__screen { --bg: #1F2D27; --fg: #F1E9DA; --ac: #D9825B; }
.tcard--navy .tcard__screen { --bg: #EEF1F6; --fg: #15233B; --ac: #3D6BE0; }
.tcard--blush .tcard__screen { --bg: #F3E1D8; --fg: #4A2328; --ac: #A8324A; align-items: center; text-align: center; }
.tcard--mono .tcard__screen { --bg: #181818; --fg: #F2F2F2; --ac: #F2F2F2; }
.tc-nav { height: 8px; border-radius: 4px; width: 46%; background: currentColor; opacity: .25; }
.tcard--blush .tc-nav { width: 30%; }
.tc-h { font-size: 1.35rem; font-weight: 700; letter-spacing: -.04em; line-height: 1.05; }
.tc-h--serif { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.8rem; letter-spacing: -.01em; margin-top: 18px; }
.tc-bars { display: grid; gap: 6px; }
.tc-bars i { height: 6px; border-radius: 3px; background: currentColor; opacity: .25; }
.tc-bars i:last-child { width: 60%; }
.tc-img { flex: 1; border-radius: 10px; background: repeating-linear-gradient(90deg, #C9A57E 0 18px, #B88F64 18px 22px, #D5B48F 22px 44px); }
.tc-menu { display: grid; gap: 10px; margin-top: auto; }
.tc-menu i { height: 26px; border-radius: 8px; border: 1px solid rgba(241, 233, 218, .25); position: relative; }
.tc-menu i::after { content: ""; position: absolute; left: 10px; top: 10px; width: 55%; height: 5px; border-radius: 3px; background: var(--ac); }
.tc-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: auto; }
.tc-cols i { height: 70px; border-radius: 8px; background: #fff; box-shadow: 0 6px 14px -8px rgba(21, 35, 59, .3); position: relative; }
.tc-cols i::after { content: ""; position: absolute; left: 8px; top: 8px; width: 14px; height: 14px; border-radius: 50%; background: var(--ac); opacity: .85; }
.tc-ring { width: 64px; height: 64px; margin-top: auto; margin-bottom: 12px; border-radius: 50%; border: 2px solid var(--ac); box-shadow: 18px 0 0 -2px var(--bg), 18px 0 0 0 var(--ac); }
.tc-gallery { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.tc-gallery i { border-radius: 6px; background: #2E2E2E; }
.tc-gallery i:nth-child(2) { background: #555; }
.tc-gallery i:nth-child(3) { background: #3D3D3D; }
.tc-gallery i:nth-child(4) { background: #E0471C; }

/* ---------- Tjänster ---------- */
.services { padding: var(--sec-join) 0 var(--sec); }
.svc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.svc {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 280px;
  padding: 28px 26px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
  transition: transform .5s var(--ease-out), box-shadow .4s ease, border-color .3s ease;
}
.svc:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -30px rgba(20, 21, 19, .4); border-color: var(--line-strong); }
.svc p { color: var(--muted); font-size: .98rem; line-height: 1.55; }
.svc__title { font-size: 1.25rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.svc__icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink);
  margin-bottom: clamp(28px, 3.4vw, 48px);
  transition: transform .6s var(--ease-spring), background-color .3s ease, color .3s ease;
}
.svc__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.svc:hover .svc__icon { transform: rotate(-8deg) scale(1.08); background: var(--accent); color: #fff; }
.svc--cta { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.svc--cta p { color: var(--on-dark-muted); }
.svc--cta .svc__icon { background: var(--accent); color: #fff; }
.svc__link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: -4px; margin-bottom: -10px; font-weight: 600; color: var(--accent-soft); text-decoration: none; }
.svc__link::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.svc__link:focus-visible { outline: none; }
.svc--cta .svc__link { margin-top: auto; align-self: flex-start; }
.svc--cta:focus-within { outline: 2.5px solid var(--accent-soft); outline-offset: 3px; }
.svc--cta:hover .svc__link span:last-child { transform: translateX(4px); }
.svc__link span { transition: transform .4s var(--ease-out); }

/* Spotlight som följer muspekaren */
.spot::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  z-index: -1;
  width: 420px; height: 420px;
  margin: -210px 0 0 -210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 71, 28, .13), rgba(224, 71, 28, 0) 65%);
  transform: translate(var(--mx, -999px), var(--my, -999px));
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}
.spot:hover::before { opacity: 1; }
.theme-dark .spot::before, .svc--cta.spot::before { background: radial-gradient(circle, rgba(255, 138, 99, .2), rgba(255, 138, 99, 0) 65%); }

/* ---------- Process ---------- */
.process { padding: var(--sec) 0; }
.process__layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.process__stage { position: sticky; top: calc(var(--header-h) + 40px); }
.pstage__frame {
  position: relative;
  aspect-ratio: 5 / 4;
  border-radius: var(--radius-l);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -50px rgba(20, 21, 19, .5);
  overflow: hidden;
  container-type: inline-size;
}
.pstage__progress { margin-top: 18px; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.pstage__progress span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(calc(var(--step, 1) / 4)); transition: transform .8s var(--ease-out); }
.pv { position: absolute; inset: 0; padding: 8cqw; opacity: 0; transform: translateY(4cqw) scale(.98); transition: opacity .5s ease, transform .8s var(--ease-out); }
.pstage[data-active="1"] .pv--1, .pstage[data-active="2"] .pv--2, .pstage[data-active="3"] .pv--3, .pstage[data-active="4"] .pv--4 { opacity: 1; transform: none; transition-delay: .15s; }

.pv--1 { display: flex; flex-direction: column; gap: 3cqw; justify-content: center; }
.pv-bubble {
  max-width: 72%;
  padding: 3cqw 4cqw;
  border-radius: 4cqw 4cqw 4cqw 1cqw;
  background: var(--paper-2);
  font-size: 3.6cqw;
  font-weight: 600;
  line-height: 1.3;
  opacity: 0;
  transform: translateY(3cqw) scale(.95);
  transform-origin: left bottom;
  transition: opacity .4s ease, transform .6s var(--ease-spring);
}
.pv-bubble--b { align-self: flex-end; background: var(--ink); color: var(--paper); border-radius: 4cqw 4cqw 1cqw 4cqw; transform-origin: right bottom; }
.pv-typing { display: inline-flex; gap: 1cqw; padding: 3cqw 4cqw; border-radius: 4cqw; background: var(--paper-2); width: max-content; opacity: 0; transition: opacity .4s ease; }
.pv-typing i { width: 1.6cqw; height: 1.6cqw; border-radius: 50%; background: var(--muted); animation: typing 1.2s ease infinite; }
.pv-typing i:nth-child(2) { animation-delay: .15s; }
.pv-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-1cqw); opacity: 1; } }
.pstage[data-active="1"] .pv-bubble { opacity: 1; transform: none; }
.pstage[data-active="1"] .pv-bubble:nth-child(1) { transition-delay: .3s; }
.pstage[data-active="1"] .pv-bubble:nth-child(2) { transition-delay: .8s; }
.pstage[data-active="1"] .pv-bubble:nth-child(3) { transition-delay: 1.3s; }
.pstage[data-active="1"] .pv-typing { opacity: 1; transition-delay: 1.8s; }

.pv--2 { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: 7cqw 1fr 18cqw; gap: 3cqw; }
.pv-wire { border: .5cqw dashed rgba(20, 21, 19, .3); border-radius: 2cqw; opacity: 0; transform: scale(.94); transition: opacity .4s ease, transform .6s var(--ease-out); }
.pv-wire--nav, .pv-wire--hero { grid-column: 1 / -1; }
.pstage[data-active="2"] .pv-wire { opacity: 1; transform: none; }
.pstage[data-active="2"] .pv-wire--hero { transition-delay: .3s; }
.pstage[data-active="2"] .pv-wire--a { transition-delay: .5s; }
.pstage[data-active="2"] .pv-wire--b { transition-delay: .6s; }
.pstage[data-active="2"] .pv-wire--c { transition-delay: .7s; }
.pv-pen {
  position: absolute;
  left: 0; top: 0;
  width: 4cqw; height: 4cqw;
  border-radius: 50% 50% 50% 0;
  background: var(--accent);
  transform: translate(20cqw, 30cqw) rotate(-45deg);
  animation: pen 4s var(--ease-in-out) infinite;
}
@keyframes pen {
  0% { transform: translate(18cqw, 28cqw); }
  30% { transform: translate(70cqw, 36cqw); }
  60% { transform: translate(40cqw, 62cqw); }
  100% { transform: translate(18cqw, 28cqw); }
}

.pv--3 { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: auto 1fr; gap: 3cqw; align-items: start; }
.pv-swatch { aspect-ratio: 1; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(20, 21, 19, .1); transform: scale(0); transition: transform .6s var(--ease-spring); }
.pstage[data-active="3"] .pv-swatch { transform: none; }
.pstage[data-active="3"] .pv-swatch:nth-child(2) { transition-delay: .1s; }
.pstage[data-active="3"] .pv-swatch:nth-child(3) { transition-delay: .2s; }
.pstage[data-active="3"] .pv-swatch:nth-child(4) { transition-delay: .3s; }
.pv-type { grid-column: 1 / 2; font-family: var(--serif); font-style: italic; font-size: 16cqw; line-height: 1; color: var(--accent-ink); }
.pv-design { grid-column: 2 / -1; display: grid; gap: 2cqw; align-self: stretch; }
.pv-design i { border-radius: 2cqw; background: var(--paper-2); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease-out); }
.pv-design i:first-child { background: var(--ink); }
.pv-design i:last-child { background: var(--blush); }
.pstage[data-active="3"] .pv-design i { transform: none; transition-delay: .4s; }
.pstage[data-active="3"] .pv-design i:nth-child(2) { transition-delay: .5s; }
.pstage[data-active="3"] .pv-design i:nth-child(3) { transition-delay: .6s; }

.pv--4 { display: flex; align-items: flex-end; justify-content: center; gap: 4cqw; }
.pv-device { position: relative; display: flex; flex-direction: column; gap: 2cqw; padding: 3cqw; border-radius: 3cqw; background: var(--ink); transform: translateY(8cqw); opacity: 0; transition: opacity .5s ease, transform .8s var(--ease-out); }
.pv-device i { border-radius: 1.5cqw; background: var(--paper); }
.pv-device i:first-child { height: 30%; background: var(--accent); }
.pv-device i:last-child { flex: 1; }
.pv-device--desk { width: 58cqw; height: 42cqw; }
.pv-device--phone { width: 20cqw; height: 38cqw; border-radius: 4cqw; transition-delay: .15s; }
.pstage[data-active="4"] .pv-device { transform: none; opacity: 1; }
.pv-live { position: absolute; left: 8cqw; top: 8cqw; display: inline-flex; align-items: center; gap: 2cqw; padding: 2cqw 4cqw; border-radius: 9cqw; background: #E3F5EA; color: #1C6B3D; font-size: 3.6cqw; font-weight: 700; transform: scale(.6); opacity: 0; transition: transform .6s var(--ease-spring) .5s, opacity .3s ease .5s; }
.pv-live i { width: 2cqw; height: 2cqw; border-radius: 50%; background: #27AE60; animation: pulse 1.6s ease infinite; }
.pstage[data-active="4"] .pv-live { transform: none; opacity: 1; }

.process__steps { display: grid; }
.pstep {
  position: relative;
  min-height: 48vh;
  padding: 28px 0 28px 28px;
  border-left: 2px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.pstep::before {
  content: "";
  position: absolute;
  left: -2px; top: 0; bottom: 0;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .8s var(--ease-out);
}
.pstep.is-active { opacity: 1; }
.pstep.is-active::before { transform: none; }
.pstep__num { font-size: .875rem; font-weight: 700; color: var(--accent-ink); letter-spacing: .06em; margin-bottom: 14px; }
.pstep__title { font-size: clamp(1.6rem, 2.6vw, 2.25rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 14px; }
.pstep p { color: var(--muted); max-width: 460px; }
/* Inaktiva steg: dämpad rubrik (stor text ≥ 3:1), brödtexten behåller full kontrast */
.pstep__num, .pstep__title { transition: color .5s ease; }
.pstep:not(.is-active) .pstep__num { color: var(--muted); }
.pstep:not(.is-active) .pstep__title { color: rgba(20, 21, 19, .5); }

/* ---------- Kundcase ---------- */
.cases { padding: var(--sec) 0; overflow: hidden; }
.cases__head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px 64px; align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.cases__intro p { color: var(--on-dark-muted); max-width: 520px; }
.cases__nav { display: flex; gap: 10px; margin-top: 24px; }
.cases__rail {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--maxw)) / 2));
  cursor: grab;
  margin-top: -10px;
}
.cases__rail::-webkit-scrollbar { display: none; }
.cases__rail.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.cases__rail.is-dragging .case__card { pointer-events: none; }
.cases__track {
  display: flex;
  gap: clamp(16px, 2vw, 24px);
  width: max-content;
  padding-inline: max(var(--gutter), calc((100vw - var(--maxw)) / 2));
  /* luft så att fokusringen (outline-offset) inte klipps av rälsens overflow */
  padding-block: 10px;
}
.case { scroll-snap-align: start; width: min(560px, 82vw); flex-shrink: 0; }
.case__card {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-l);
  background: var(--ink-2);
  border: 1px solid var(--on-dark-line);
  overflow: hidden;
  isolation: isolate;
  transition: transform .6s var(--ease-out), border-color .3s ease;
}
.case__card:hover { transform: translateY(-6px); border-color: rgba(244, 241, 234, .26); }
.case__visual {
  position: relative;
  aspect-ratio: 16 / 11;
  display: grid;
  place-items: center;
  padding: 9% 8% 0;
  overflow: hidden;
}
.case__card[data-case="hyvel"] .case__visual { background: #C9A57E; }
.case__card[data-case="bord"] .case__visual { background: #D9825B; }
.case__card[data-case="klarsyn"] .case__visual { background: #3D6BE0; }
.case__card[data-case="elin"] .case__visual { background: #D9AE9E; }
.case__visual .mock { align-self: end; width: 100%; border-radius: 12px 12px 0 0; transform: translateY(6%); transition: transform .8s var(--ease-out); }
.case__card:hover .case__visual .mock { transform: translateY(1%) scale(1.02); }
.badge {
  position: absolute;
  left: 16px; top: 16px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(20, 21, 19, .82);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--paper);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .02em;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-soft); }
.case__body { display: flex; flex-direction: column; gap: 14px; padding: 26px 28px 28px; flex: 1; }
.case__client { font-size: .9375rem; font-weight: 600; }
.case__type { color: var(--on-dark-muted); font-weight: 500; }
.case__title { font-size: clamp(1.35rem, 2vw, 1.6rem); font-weight: 600; letter-spacing: -.025em; line-height: 1.2; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--on-dark-line); font-size: .8125rem; color: var(--on-dark-muted); }
.tags--light li { border-color: var(--line-strong); color: var(--ink); background: var(--white); }
.case__open {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  min-height: 44px;
  padding: 5px 0;
  margin-bottom: -5px;
  border: 0;
  background: none;
  color: var(--on-dark);
  font-weight: 600;
  align-self: flex-start;
}
.case__open::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.case__open:focus-visible { outline: none; }
.case__card:focus-within { outline: 2.5px solid var(--accent-soft); outline-offset: 3px; }
.case__card:has(.case__open:focus:not(:focus-visible)) { outline: none; }
.case__plus {
  display: inline-grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 1.2rem;
  line-height: 1;
  transition: transform .5s var(--ease-spring);
}
.case__card:hover .case__plus { transform: rotate(90deg) scale(1.08); }
.cases__progress { height: 2px; margin-top: 34px; border-radius: 2px; background: var(--on-dark-line); overflow: hidden; }
.cases__progress span { display: block; height: 100%; width: 100%; background: var(--on-dark); transform-origin: left; transform: scaleX(var(--p, .25)); transition: transform .3s ease-out; }

/* Mini-sajter (mockups) */
.mock {
  --bg: #F3EBDF; --fg: #2B1D12; --ac: #9C4A1A;
  container-type: inline-size;
  background: var(--bg);
  color: var(--fg);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55);
  text-align: left;
}
.mock__bar { display: flex; gap: 1.2cqw; padding: 2cqw 2.6cqw; background: rgba(0, 0, 0, .06); }
.mock__bar i { width: 1.8cqw; height: 1.8cqw; border-radius: 50%; background: currentColor; opacity: .25; }
.mock__screen { padding: 4cqw 5cqw 5cqw; display: flex; flex-direction: column; gap: 3.4cqw; min-height: 46cqw; }
.mk-nav { display: flex; align-items: center; justify-content: space-between; gap: 4cqw; font-size: 3cqw; }
.mk-nav b { font-weight: 700; letter-spacing: -.02em; }
.mk-links { display: flex; gap: 2.4cqw; }
.mk-links i { width: 7cqw; height: 1.3cqw; border-radius: 1cqw; background: currentColor; opacity: .3; }
.mk-kicker { font-size: 2.4cqw; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--ac); }
.mk-title { font-size: 6cqw; font-weight: 700; letter-spacing: -.04em; line-height: 1.02; }
.mk-btn { display: inline-block; width: max-content; padding: 1.6cqw 3.6cqw; border-radius: 9cqw; background: var(--ac); color: var(--bg); font-size: 2.6cqw; font-weight: 700; }
.mk-btn--sm { padding: 1.2cqw 2.8cqw; font-size: 2.3cqw; }
.mk-chips { display: flex; flex-wrap: wrap; gap: 1.6cqw; }
.mk-chips span { padding: 1.2cqw 2.8cqw; border-radius: 9cqw; border: .3cqw solid currentColor; font-size: 2.4cqw; font-weight: 600; opacity: .8; }

.mock--hyvel .mk-hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 4cqw; align-items: center; }
.mock--hyvel .mk-hero > div { display: flex; flex-direction: column; gap: 2.6cqw; }
.mk-planks { display: grid; gap: 1.2cqw; transform: rotate(-4deg); }
.mk-planks i { height: 4.4cqw; border-radius: 1cqw; background: linear-gradient(90deg, #B07C4F, #C9965F 40%, #A8703F); }
.mk-planks i:nth-child(2n) { margin-left: 4cqw; background: linear-gradient(90deg, #C9965F, #D8AE7A 60%, #B9864F); }

.mock--bord { --bg: #1F2D27; --fg: #F1E9DA; --ac: #D9825B; }
.mk-menu { display: grid; gap: 1.6cqw; }
.mk-menu li { display: flex; gap: 3cqw; align-items: baseline; padding-bottom: 1.6cqw; border-bottom: .2cqw solid rgba(241, 233, 218, .18); font-size: 2.8cqw; }
.mk-menu span { width: 7cqw; color: var(--ac); font-weight: 700; flex-shrink: 0; }
.mk-menu b { font-weight: 500; }

.mock--klarsyn { --bg: #F6F7FA; --fg: #15233B; --ac: #2F5BD3; }
.mk-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4cqw; }
.mk-cols span { display: flex; flex-direction: column; gap: 1.2cqw; padding: 2.6cqw; border-radius: 2cqw; background: #fff; box-shadow: 0 1cqw 3cqw -1.5cqw rgba(21, 35, 59, .35); font-size: 2.5cqw; }
.mk-cols i { height: 1.1cqw; border-radius: 1cqw; background: currentColor; opacity: .18; }
.mk-cols i:last-child { width: 60%; }

.mock--elin { --bg: #F7E9E2; --fg: #4A2328; --ac: #A8324A; }
.mock--elin .mock__screen { align-items: center; text-align: center; justify-content: center; }
.mk-title--serif { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 9cqw; letter-spacing: -.01em; }
.mk-date { font-size: 2.8cqw; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.mock--elin .mk-chips { justify-content: center; }

.mock--shot { --bg: #0b0c0d; }
.mock--shot .mock__screen { padding: 0; gap: 0; min-height: 0; display: block; }
.mock--shot .mk-shot { display: block; width: 100%; height: auto; }
.mock--shot .mk-shot--m { display: none; }

/* Mobilvy av mockupen (container query) */
@container (max-width: 340px) {
  .mock__screen { padding: 7cqw 7cqw 9cqw; gap: 6cqw; min-height: 180cqw; }
  .mk-nav { font-size: 6cqw; }
  .mk-links { display: none; }
  .mk-kicker { font-size: 4.6cqw; }
  .mk-title { font-size: 11cqw; }
  .mk-title--serif { font-size: 15cqw; }
  .mk-btn { font-size: 5cqw; padding: 3cqw 6cqw; }
  .mk-btn--sm { font-size: 4.4cqw; padding: 2.4cqw 4.4cqw; }
  .mk-chips { gap: 3cqw; }
  .mk-chips span { font-size: 4.6cqw; padding: 2.2cqw 5cqw; }
  .mock--hyvel .mk-hero { grid-template-columns: 1fr; gap: 8cqw; }
  .mock--hyvel .mk-hero > div { gap: 5cqw; }
  .mk-planks i { height: 8cqw; }
  .mk-menu li { font-size: 5.2cqw; gap: 5cqw; padding-bottom: 3cqw; }
  .mk-menu span { width: 12cqw; }
  .mk-cols { grid-template-columns: 1fr; gap: 4cqw; }
  .mk-cols span { font-size: 5cqw; padding: 5cqw; gap: 2.4cqw; }
  .mk-cols i { height: 2cqw; }
  .mock--shot .mk-shot--d { display: none; }
  .mock--shot .mk-shot--m { display: block; }
  .mock--shot .mock__screen { min-height: 0; padding: 0; }
  .mk-date { font-size: 5cqw; }
  .mock__bar { padding: 4cqw 5cqw; gap: 2.4cqw; }
  .mock__bar i { width: 3.4cqw; height: 3.4cqw; }
}

/* ---------- Modal för kundcase ---------- */
.case-dialog {
  width: min(1120px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  border-radius: var(--radius-l);
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .6);
}
.case-dialog::backdrop { background: rgba(14, 15, 13, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.case-dialog[open] { animation: dlg-in .55s var(--ease-out); }
.case-dialog[open]::backdrop { animation: fade-in .4s ease; }
.case-dialog.is-closing { animation: dlg-out .28s ease forwards; }
.case-dialog.is-closing::backdrop { animation: fade-out .28s ease forwards; }
@keyframes dlg-in { from { opacity: 0; transform: translateY(32px) scale(.97); } }
@keyframes dlg-out { to { opacity: 0; transform: translateY(16px) scale(.98); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
.case-dialog__inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); max-height: calc(100dvh - 32px); }
.case-dialog__close {
  position: absolute;
  right: 16px; top: 16px;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-size: 1.6rem;
  line-height: 1;
  transition: transform .5s var(--ease-spring);
}
.case-dialog__close:hover { transform: rotate(90deg); }
.case-dialog__visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 72px 40px 40px;
  background: var(--dlg-bg, #C9A57E);
  transition: background-color .5s ease;
  min-height: 0;
  overflow: hidden;
}
.case-dialog__visual .badge { left: 20px; top: 20px; }
.device-toggle { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(20, 21, 19, .78); }
.device-toggle__btn { min-height: 38px; padding: 8px 18px; border: 0; border-radius: 999px; background: transparent; color: var(--paper); font-weight: 600; font-size: .875rem; transition: background-color .3s ease, color .3s ease; }
.device-toggle__btn[aria-pressed="true"] { background: var(--paper); color: var(--ink); }
.case-dialog__stage { width: 100%; display: grid; place-items: center; }
.case-dialog__stage .mock { width: 100%; max-width: 560px; border-radius: 14px; transition: max-width .7s var(--ease-out), border-radius .5s ease; }
.case-dialog__stage.is-mobile .mock { max-width: 240px; border-radius: 30px; box-shadow: 0 0 0 8px #141513, 0 40px 80px -30px rgba(0, 0, 0, .6); }
.case-dialog__stage.is-mobile .mock__bar { justify-content: center; }
.case-dialog__stage.is-mobile .mock__bar i { display: none; }
.case-dialog__stage.is-mobile .mock__bar::before { content: ""; width: 26%; height: 4cqw; border-radius: 9cqw; background: #141513; }
.case-dialog__stage.is-swapping .mock { opacity: 0; transform: scale(.97); }
.case-dialog__stage .mock { transition: max-width .7s var(--ease-out), opacity .25s ease, transform .35s var(--ease-out); }
.case-dialog__body { padding: 56px 48px 40px; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; }
.case-dialog__client { font-weight: 600; color: var(--muted); }
.case-dialog__title { font-size: clamp(1.7rem, 2.8vw, 2.4rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.08; padding-right: 40px; }
.case-dialog__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 8px; }
.case-dialog__body h3 { font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 8px; }
.case-dialog__body p { color: var(--ink-3); font-size: .98rem; }
.case-dialog__note { font-size: .875rem !important; color: var(--muted) !important; padding: 12px 14px; border-radius: 12px; background: var(--paper-2); }
.case-dialog__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: auto; padding-top: 8px; flex-wrap: wrap; }
.case-dialog__pager { display: flex; gap: 8px; }
.case-dialog__body > * { transition: opacity .3s ease, transform .5s var(--ease-out); }
.case-dialog.is-swapping .case-dialog__body > * { opacity: 0; transform: translateY(8px); }
body.dialog-open { overflow: hidden; }

/* ---------- Bygg din sida ---------- */
.builder { padding: var(--sec) 0 var(--sec-join); }
.builder__layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  padding: clamp(18px, 2.6vw, 32px);
  border-radius: var(--radius-l);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -60px rgba(20, 21, 19, .5);
}
.builder__controls { display: grid; gap: 26px; padding: 8px; }
.bfield { margin: 0; padding: 0; border: 0; min-width: 0; }
.bfield legend { padding: 0; margin-bottom: 12px; font-weight: 600; font-size: 1.0625rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background: transparent;
  font-size: .9375rem;
  font-weight: 600;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .35s var(--ease-spring);
  user-select: none;
}
.chip:hover > span { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip input:active + span { transform: scale(.95); }
.chip input:focus-visible + span { outline: 2.5px solid var(--accent); outline-offset: 3px; }
.chips--multi .chip input:checked + span::before {
  content: "";
  width: 14px; height: 14px;
  margin-left: -4px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.3l3 3 6-6.5' fill='none' stroke='%23FF8A63' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  animation: pop .4s var(--ease-spring);
}
@keyframes pop { from { transform: scale(0); } }
.sw { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(20, 21, 19, .2); }
.sw--light { background: #F7F5F0; }
.sw--dark { background: #191B1A; }
.sw--warm { background: #F0B39A; }
.chips--dark .chip > span { border-color: rgba(244, 241, 234, .28); color: var(--on-dark); }
.chips--dark .chip:hover > span { border-color: var(--on-dark); }
.chips--dark .chip input:checked + span { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.chips--dark .chip input:focus-visible + span { outline-color: var(--accent-soft); }

.builder__summary { display: grid; gap: 10px; padding: 20px; border-radius: var(--radius); background: var(--paper); }
.builder__summary-label { font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.builder__summary-text { font-weight: 600; min-height: 3.2em; }
.builder__summary .btn { justify-self: start; margin-top: 6px; }
.builder__summary .btn.is-done { --bg: var(--ink); box-shadow: none; }

.builder__preview { position: sticky; top: calc(var(--header-h) + 24px); }
.pv-browser {
  --p-bg: #FBFAF7; --p-fg: #191B1A; --p-muted: #77766F; --p-ac: #E0471C; --p-card: #F0ECE4; --p-img: #E5DED1;
  container-type: inline-size;
  border-radius: 16px;
  background: #1C1E1B;
  overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(20, 21, 19, .55);
}
.pv-browser[data-style="dark"] { --p-bg: #17191A; --p-fg: #F1EEE8; --p-muted: #9C9C96; --p-ac: #FF8A63; --p-card: #222527; --p-img: #2C3033; }
.pv-browser[data-style="warm"] { --p-bg: #FCEEE4; --p-fg: #4A2328; --p-muted: #92706A; --p-ac: #D2553A; --p-card: #F7DDCE; --p-img: #F0C5AE; }
.pv-browser__bar { display: flex; align-items: center; gap: 14px; height: 38px; padding: 0 14px; }
.pv-browser__url { flex: 1; max-width: 240px; margin-inline: auto; height: 22px; border-radius: 7px; background: rgba(244, 241, 234, .08); color: rgba(244, 241, 234, .7); font-size: .72rem; display: grid; place-items: center; transform: translateX(-18px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-inline: 8px; }
.pv-browser__screen {
  position: relative;
  min-height: 420px;
  padding: 3.2cqw 4.4cqw 4.4cqw;
  background: var(--p-bg);
  color: var(--p-fg);
  display: flex;
  flex-direction: column;
  gap: 3cqw;
  transition: background-color .5s ease, color .5s ease;
}
.bp-nav { display: flex; align-items: center; justify-content: space-between; gap: 3cqw; }
.bp-logo { font-size: 3.2cqw; font-weight: 700; letter-spacing: -.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp-links { display: flex; gap: 2.6cqw; font-size: 2.2cqw; color: var(--p-muted); white-space: nowrap; }
.bp-hero { display: grid; gap: 2cqw; padding: 4.2cqw 4.6cqw; border-radius: 3cqw; background: var(--p-card); position: relative; overflow: hidden; transition: background-color .5s ease; }
.bp-hero::after { content: ""; position: absolute; right: -6cqw; top: -6cqw; width: 30cqw; height: 30cqw; border-radius: 50%; background: var(--p-ac); opacity: .14; transition: background-color .5s ease; }
.pv-browser[data-type="private"] .bp-hero { text-align: center; justify-items: center; }
.pv-browser[data-type="private"] .bp-hero::after { right: auto; left: 50%; margin-left: -15cqw; top: -18cqw; }
.pv-browser[data-type="club"] .bp-hero::after { border-radius: 4cqw; transform: rotate(18deg); }
.bp-kicker { font-size: 2.2cqw; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--p-ac); position: relative; }
.bp-title { font-size: 5.6cqw; font-weight: 700; letter-spacing: -.04em; line-height: 1.05; max-width: 80%; position: relative; }
.pv-browser[data-style="warm"] .bp-title, .pv-browser[data-type="private"] .bp-title { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; font-size: 6.4cqw; }
.bp-btn { width: max-content; padding: 1.6cqw 3.6cqw; border-radius: 9cqw; background: var(--p-ac); color: #fff; font-size: 2.3cqw; font-weight: 700; position: relative; }
.pv-browser[data-style="dark"] .bp-btn { color: #17191A; }
.bp-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.6cqw; }
.bp-sec {
  display: flex;
  flex-direction: column;
  gap: 1.8cqw;
  padding: 3cqw;
  border-radius: 2.4cqw;
  border: .25cqw solid color-mix(in srgb, var(--p-fg) 12%, transparent);
  animation: sec-in .6s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 50ms);
}
.bp-sec--wide { grid-column: 1 / -1; }
@keyframes sec-in { from { opacity: 0; transform: translateY(3cqw) scale(.96); } }
.bp-sec.is-leaving { animation: sec-out .25s ease forwards; }
@keyframes sec-out { to { opacity: 0; transform: scale(.94); } }
.bp-sec__t { font-size: 2.6cqw; font-weight: 700; }
.bp-g { display: grid; gap: 1.4cqw; }
.bp-g--cards { grid-template-columns: repeat(3, 1fr); }
.bp-g--cards i { height: 8cqw; border-radius: 1.4cqw; background: var(--p-card); }
.bp-g--gallery { grid-template-columns: repeat(4, 1fr); }
.bp-g--gallery i { aspect-ratio: 1; border-radius: 1.2cqw; background: var(--p-img); }
.bp-g--gallery i:nth-child(3n) { background: var(--p-ac); opacity: .55; }
.bp-g--text i { height: 1.3cqw; border-radius: 1cqw; background: var(--p-fg); opacity: .16; }
.bp-g--text i:last-child { width: 62%; }
.bp-g--form i { height: 4cqw; border-radius: 1.2cqw; border: .25cqw solid color-mix(in srgb, var(--p-fg) 22%, transparent); }
.bp-g--form b { width: 34%; height: 4.4cqw; border-radius: 9cqw; background: var(--p-ac); }
.bp-g--map { height: 14cqw; border-radius: 1.6cqw; background:
  radial-gradient(circle at 60% 45%, var(--p-ac) 0 1.4cqw, transparent 1.6cqw),
  linear-gradient(115deg, transparent 46%, color-mix(in srgb, var(--p-fg) 14%, transparent) 46% 50%, transparent 50%),
  linear-gradient(20deg, transparent 60%, color-mix(in srgb, var(--p-fg) 10%, transparent) 60% 63%, transparent 63%),
  var(--p-img); }
.bp-g--list i { height: 4cqw; border-radius: 1cqw; background: var(--p-card); position: relative; }
.bp-g--list i::before { content: ""; position: absolute; left: 1.4cqw; top: 1.4cqw; width: 1.2cqw; height: 1.2cqw; border-radius: 50%; background: var(--p-ac); }
.bp-g--cal { grid-template-columns: repeat(7, 1fr); gap: .8cqw; }
.bp-g--cal i { aspect-ratio: 1; border-radius: .8cqw; background: var(--p-card); }
.bp-g--cal i:nth-child(5), .bp-g--cal i:nth-child(12) { background: var(--p-ac); }
/* Tätare läge när många sektioner valts */
.bp-sections.is-dense { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: row dense; gap: 2cqw; }
.bp-sections.is-dense .bp-sec { padding: 2.4cqw; gap: 1.4cqw; border-radius: 2cqw; }
.bp-sections.is-dense .bp-sec--wide { grid-column: span 2; }
.bp-sections.is-dense .bp-sec--wide[data-key="map"] { grid-column: auto; }
.pv-browser:has(.is-dense) .bp-hero { padding: 3.4cqw 4.4cqw; gap: 1.6cqw; }
.pv-browser:has(.is-dense) .bp-title { font-size: 4.8cqw; }
.pv-browser:has(.is-dense)[data-style="warm"] .bp-title, .pv-browser:has(.is-dense)[data-type="private"] .bp-title { font-size: 5.4cqw; }
.bp-sections.is-dense .bp-sec__t { font-size: 2.3cqw; }
.bp-sections.is-dense .bp-g--cards i { height: 6cqw; }
.bp-sections.is-dense .bp-g--gallery i { aspect-ratio: 1.5; }
.bp-sections.is-dense .bp-g--map { height: 8cqw; }
.bp-sections.is-dense .bp-g--cal { gap: .5cqw; }
.bp-sections.is-dense .bp-g--list i { height: 3cqw; }
.bp-empty { grid-column: 1 / -1; padding: 5cqw; border-radius: 2.4cqw; border: .3cqw dashed color-mix(in srgb, var(--p-fg) 25%, transparent); text-align: center; font-size: 2.6cqw; color: var(--p-muted); }

/* ---------- FAQ ---------- */
.faq { padding: var(--sec-join) 0 var(--sec); }
.faq__layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq__head { position: sticky; top: calc(var(--header-h) + 32px); }
.faq__head p:not(.eyebrow) { margin-top: 18px; color: var(--muted); max-width: 360px; text-wrap: balance; }
.faq__list { border-top: 1px solid var(--line-strong); }
.qa { border-bottom: 1px solid var(--line-strong); }
.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
  transition: color .25s ease;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--accent-ink); }
.qa__icon { position: relative; flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line-strong); transition: transform .5s var(--ease-out), background-color .3s ease, border-color .3s ease; }
.qa__icon::before, .qa__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; border-radius: 2px; background: currentColor; transition: transform .5s var(--ease-out), background-color .3s ease; }
.qa__icon::after { transform: rotate(90deg); }
.qa[open] .qa__icon { transform: rotate(180deg); background: var(--ink); border-color: var(--ink); }
.qa[open] .qa__icon::before, .qa[open] .qa__icon::after { background: var(--paper); }
.qa[open] .qa__icon::after { transform: rotate(0deg); }
.qa__a { padding: 0 64px 28px 0; color: var(--muted); }
.qa[open] .qa__a { animation: qa-in .55s var(--ease-out); }
@keyframes qa-in { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- Kontakt ---------- */
.contact { padding: var(--sec) 0; position: relative; overflow: hidden; }
.contact::before {
  content: "";
  position: absolute;
  right: -280px; top: -280px;
  width: 720px; height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 71, 28, .2), rgba(224, 71, 28, 0) 65%);
  pointer-events: none;
}
.contact__layout { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.contact__lead { margin-top: 24px; max-width: 480px; font-size: 1.125rem; color: var(--on-dark-muted); }
.contact__info { margin-top: 40px; display: grid; border-top: 1px solid var(--on-dark-line); max-width: 480px; }
.contact__info li { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--on-dark-line); }
.contact__k { font-size: .875rem; color: var(--on-dark-muted); }
.contact__v { font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
a.contact__v { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .4s var(--ease-out); }
a.contact__v:hover { background-size: 100% 1.5px; }
.contact__v--text { font-weight: 500; }

/* Så går det till – tre korta steg */
.contact__steps { position: relative; margin-top: clamp(28px, 2.8vw, 40px); max-width: 480px; display: grid; gap: 0; }
.cstep { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding: 10px 0 12px; }
.cstep:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 21.5px; top: 60px; bottom: -4px;
  width: 1px;
  background: var(--on-dark-line);
}
.cstep__n {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--on-dark-line);
  background: rgba(244, 241, 234, .04);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
  color: var(--accent-soft);
}
.cstep__t { font-size: 1.0625rem; font-weight: 650; letter-spacing: -.01em; line-height: 1.3; padding-top: 10px; }
.cstep__d { margin-top: 4px; font-size: .9375rem; line-height: 1.55; color: var(--on-dark-muted); }
.contact__steps + .contact__info { margin-top: 28px; }

.cform {
  position: relative;
  display: grid;
  gap: 18px;
  padding: clamp(22px, 3.2vw, 40px);
  border-radius: var(--radius-l);
  background: var(--ink-2);
  border: 1px solid var(--on-dark-line);
}
.cform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { position: relative; }
.field__input {
  display: block;
  width: 100%;
  min-height: 60px;
  padding: 26px 16px 10px;
  border-radius: 14px;
  border: 1.5px solid rgba(244, 241, 234, .2);
  background: rgba(244, 241, 234, .04);
  color: var(--on-dark);
  font-size: 1rem;
  transition: border-color .25s ease, background-color .25s ease, box-shadow .25s ease;
  appearance: none;
}
.field__input--area { min-height: 150px; resize: vertical; line-height: 1.5; }
.field__input:hover { border-color: rgba(244, 241, 234, .38); }
.field__input:focus { outline: none; border-color: var(--accent-soft); background: rgba(244, 241, 234, .07); box-shadow: 0 0 0 4px rgba(255, 138, 99, .16); }
.field__label {
  position: absolute;
  left: 17px; top: 19px;
  font-size: 1rem;
  color: var(--on-dark-muted);
  pointer-events: none;
  transform-origin: left top;
  transition: transform .3s var(--ease-out), color .25s ease;
}
.field__input:focus + .field__label,
.field__input:not(:placeholder-shown) + .field__label { transform: translateY(-11px) scale(.78); }
.field__input:focus + .field__label { color: var(--accent-soft); }
.req { color: var(--accent-soft); }
.opt { opacity: .7; }
.field__err { min-height: 0; margin-top: 6px; font-size: .875rem; color: #FFB199; }
.field__err:empty { display: none; }
.field.is-invalid .field__input { border-color: #FF8A63; }
.field.is-shaking, .check.is-shaking { animation: shake .45s ease; }
@keyframes shake { 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
.field.is-valid .field__input { border-color: rgba(111, 207, 151, .6); }
.field.is-valid::after {
  content: "";
  position: absolute;
  right: 16px; top: 22px;
  width: 16px; height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.3l3 3 6-6.5' fill='none' stroke='%236FCF97' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  animation: pop .4s var(--ease-spring);
}
.cform__who { margin: 0; padding: 0; border: 0; min-width: 0; }
.cform__who legend { padding: 0; margin-bottom: 10px; font-size: .9375rem; color: var(--on-dark-muted); }

.attach {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 12px 12px 14px;
  border-radius: 14px;
  background: rgba(224, 71, 28, .12);
  border: 1px solid rgba(255, 138, 99, .35);
  animation: attach-in .6s var(--ease-spring);
}
@keyframes attach-in { from { opacity: 0; transform: translateY(8px) scale(.97); } }
.attach__icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--paper); flex-shrink: 0; }
.attach__icon svg { --mark-ink: var(--ink); --mark-acc: var(--accent); }
.attach__text { display: grid; min-width: 0; }
.attach__k { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-soft); }
.attach__v { font-size: .9375rem; font-weight: 500; }
.attach__rm { margin-left: auto; flex-shrink: 0; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(244, 241, 234, .1); color: var(--on-dark); font-size: 1.3rem; line-height: 1; transition: background-color .2s ease, transform .3s var(--ease-out); }
.attach__rm:hover { background: rgba(244, 241, 234, .2); transform: rotate(90deg); }

.check { position: relative; display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-size: .9375rem; color: var(--on-dark-muted); }
.check input {
  appearance: none;
  width: 24px; height: 24px;
  margin: 0;
  border-radius: 7px;
  border: 1.5px solid rgba(244, 241, 234, .35);
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background-color .2s ease, border-color .2s ease;
}
.check input::after {
  content: "";
  width: 14px; height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.3l3 3 6-6.5' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  transform: scale(0);
  transition: transform .35s var(--ease-spring);
}
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after { transform: none; }
.check input:focus-visible { outline: 2.5px solid var(--accent-soft); outline-offset: 3px; }
.check label { cursor: pointer; padding-top: 1px; }
.check label::before { content: ""; position: absolute; inset: -10px -8px; border-radius: 12px; } /* tryckyta ≥ 44 px för hela raden */
.check input { position: relative; z-index: 1; }
.check .field__err { grid-column: 2; margin-top: 0; }
.check.is-invalid input { border-color: #FF8A63; }

.cform__foot { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 20px; margin-top: 4px; }
.cform__submit { min-width: 210px; }
.cform__spinner {
  position: absolute;
  left: 50%; top: 50%;
  width: 22px; height: 22px;
  margin: -11px 0 0 -11px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  opacity: 0;
  animation: spin .8s linear infinite;
}
.cform.is-sending .cform__spinner { opacity: 1; }
.cform.is-sending .cform__submit-label, .cform.is-sending .cform__submit .btn__arrow { opacity: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.cform__status { font-size: .875rem; color: var(--on-dark-muted); flex: 1; min-width: 200px; }
.cform__status.is-error { color: #FFB199; }

.cform__done {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 32px;
  border-radius: inherit;
  background: var(--ink-2);
  text-align: center;
  animation: fade-in .5s ease;
}
.cform__done:focus { outline: none; }
.cform__check svg { width: 72px; height: 72px; fill: none; stroke: var(--accent-soft); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.cform__check circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw .9s var(--ease-out) .1s forwards; opacity: .5; }
.cform__check path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .6s var(--ease-out) .7s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.cform__done-title { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.15; }
.cform__done-text { max-width: 420px; color: var(--on-dark-muted); }
.cform__done .btn { margin-top: 10px; }
.cform.is-done > *:not(.cform__done) { visibility: hidden; }

/* ---------- Sidfot ---------- */
.site-footer { padding: var(--sec-join) 0 24px; border-top: 1px solid var(--on-dark-line); overflow: hidden; }
.site-footer__top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; padding-bottom: clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--on-dark-line); }
.site-footer__brand { display: inline-flex; align-items: center; gap: clamp(14px, 2vw, 28px); text-decoration: none; }
.site-footer__brand .brand__mark { width: clamp(56px, 11vw, 150px); height: auto; aspect-ratio: 1; }
.site-footer__brand .brand__mark { --mark-ink: var(--on-dark); }
.site-footer__word { font-size: clamp(3.25rem, 12.5vw, 11rem); font-weight: 700; letter-spacing: -.065em; line-height: .78; transform: translateY(-.04em); }
.site-footer__tag { font-size: clamp(1.25rem, 2.2vw, 1.75rem); font-weight: 500; letter-spacing: -.02em; max-width: 460px; color: var(--on-dark-muted); line-height: 1.3; text-wrap: balance; } .site-footer__tag em { white-space: nowrap; }
.site-footer__bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 32px; padding-top: 28px; font-size: .9375rem; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 0 26px; }
.site-footer__links a, .to-top { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; min-width: 44px; text-decoration: none; color: var(--on-dark-muted); transition: color .25s ease; }
.site-footer__links a:hover, .to-top:hover { color: var(--on-dark); }
.site-footer__legal { display: flex; gap: 6px 20px; flex-wrap: wrap; color: var(--on-dark-muted); }
.to-top span:last-child { display: inline-block; transition: transform .4s var(--ease-out); }
.to-top:hover span:last-child { transform: translateY(-3px); }
.site-footer .brand__mark { transition: transform .8s var(--ease-spring); }
.site-footer__brand:hover .brand__mark { transform: rotate(90deg); }

/* ---------- Responsivt ---------- */
@media (max-width: 1180px) {
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc { min-height: 240px; }
  .main-nav__list a { padding: 9px 14px; }
}

@media (max-width: 1080px) {
  .main-nav, .site-header__cta { display: none; }
  .menu-toggle { display: grid; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
  .hero__visual { max-width: 620px; width: 100%; margin-inline: auto; }
  .build { --ry: 0deg; --rx: 6deg; }
  .case-dialog__inner { grid-template-columns: 1fr; overflow-y: auto; }
  .case-dialog__visual { padding: 72px 24px 32px; }
  .case-dialog__body { overflow: visible; padding: 32px 28px 32px; }
}

@media (max-width: 960px) {
  .section-head--split, .cases__head { grid-template-columns: 1fr; }
  .builder__layout { grid-template-columns: 1fr; }
  .builder__preview { position: relative; top: 0; order: -1; }
  .pv-browser__screen { min-height: 0; }
  .faq__layout { grid-template-columns: 1fr; }
  .faq__head { position: static; }
  .contact__layout { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  :root { --header-h: 68px; }
  body { font-size: 1rem; }
  .process__layout { grid-template-columns: 1fr; }
  .process__stage { position: sticky; top: calc(var(--header-h) + 8px); z-index: 2; padding: 10px 0 18px; background: linear-gradient(var(--paper-2) 85%, rgba(234, 229, 218, 0)); }
  .pstage__frame { aspect-ratio: 16 / 9; max-width: 420px; margin-inline: auto; }
  .pstage__progress { max-width: 420px; margin-inline: auto; margin-top: 12px; }
  .pstep { min-height: 0; padding: 32px 0 32px 22px; }
  .pv { padding: 6cqw; }
  .pv--4 .pv-device--desk { width: 50cqw; height: 34cqw; }
  .pv--4 .pv-device--phone { width: 17cqw; height: 32cqw; }
  .pv--3 { grid-template-columns: repeat(4, 1fr); }
  .pv-type { font-size: 12cqw; }
  .svc-grid { grid-template-columns: 1fr; gap: 12px; }
  .svc { min-height: 0; padding: 24px 22px; }
  .svc__icon { margin-bottom: 14px; }
  .cform__row { grid-template-columns: 1fr; }
  .case-dialog__cols { grid-template-columns: 1fr; }
  .contact__info li { grid-template-columns: 1fr; gap: 4px; }
  .qa__a { padding-right: 0; }
  .case__body { padding: 22px 22px 24px; }
  .case__visual { padding-top: 62px; } .case__visual .mock, .case__card:hover .case__visual .mock { align-self: start; transform: none; }
  .hero__points { gap: 10px 18px; }
  .tilt-row { padding: 16px 0 36px; }
}

@media (max-width: 480px) {
  .hero__ctas .btn { flex: 1 1 100%; }
  .site-header__actions { gap: 8px; }
  .lang__btn { padding: 0 13px 0 8px; gap: 7px; }
  .hero__points { flex-direction: column; align-items: flex-start; gap: 10px; }
  .cform__submit { width: 100%; }
  .builder__summary .btn { width: 100%; justify-self: stretch; }
  .case-dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); border-radius: 22px; }
  .case-dialog__inner { max-height: calc(100dvh - 16px); }
  .case-dialog__body { padding: 28px 20px 24px; }
  .case-dialog__foot .btn { width: 100%; white-space: normal; }
  .case-dialog__pager { margin-inline: auto; }
  .site-footer__word { font-size: 16vw; }
}

/* ---------- Minskad rörelse ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .js .reveal, .js .reveal-hero, .js .hero__title .line__inner { opacity: 1; transform: none; }
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee__group + .marquee__group { display: none; }
  .marquee__group { flex-wrap: wrap; justify-content: center; row-gap: 6px; }
  .tilt-row__track, .tcard { will-change: auto; }
  .build { transform: none; }
  .pv-pen { display: none; }
  html.js body { opacity: 1; }
}

/* ---------- Utskrift ---------- */
@media print {
  .site-header, .mobile-menu, .marquee, .builder, .case-dialog { display: none !important; }
  html.js body { opacity: 1; }
}
