/* Hedarius: delad stil för hela sajten. Bygger på förslag 4 "Värmen":
   mjuka tonade paneler, pillerknappar, DM Sans och terrakotta som enda knapp- och länkfärg. */

:root {
  --bg: #FAF8F5;
  --white: #FFFFFF;
  --ink: #1C1917;
  --body: #44403C;
  --muted: #57534E;
  --line: #E7E2DC;
  --terra: #B4451F;
  --terra-dark: #9A3A19;
  --peach: #F6E7DF;
  --slate: #E4EDF2;
  --slate-ink: #1F5B7A;
  --sage: #E7EEE8;
  --sage-ink: #2F5D46;

  /* Produktens ton: peach och mörk terrakotta som standard, skifferblå på Lagersystem-sidan. */
  --tone: var(--peach);
  --tone-ink: var(--terra-dark);

  --ease: cubic-bezier(.2, .8, .2, 1);
  --shadow: 0 20px 50px -24px rgba(68, 64, 60, .35);
  --r-panel: 24px;
  --r-card: 16px;
  --r-shot: 12px;

  --gutter: 16px;
  --topbar: 72px;
  --section: clamp(64px, 40px + 4vw, 96px);
  --panel-pad: 24px;
  /* Hur långt produktbildens ytterkant ligger utanför panelens kant (negativt = innanför). */
  --shot-out: -24px;
}

.page--dok {
  --tone: var(--slate);
  --tone-ink: var(--slate-ink);
}

/* Ledningssystem: salvia som modulfärg (6,4:1 för texten på tonen). Salviapanelerna som andra sidor använder som
   kontrast (För vem, bento) blir vita här, så att de inte smälter ihop med tonen. */
.page--led {
  --tone: var(--sage);
  --tone-ink: var(--sage-ink);
}
.page--led .panel--sage,
.page--led .bento__cell--sage { background: var(--white); border: 1px solid var(--line); }
.page--led .bento__cell--sage .bento__icon { background: var(--tone); }

@media (min-width: 640px) { :root { --gutter: 24px; --panel-pad: 40px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; --panel-pad: 56px; } }
@media (min-width: 1280px) {
  :root { --shot-out: clamp(16px, (100vw - 1200px) / 2 - 24px, 40px); }
}

/* Grund */

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

html {
  scroll-padding-top: calc(var(--topbar) + 16px);
  -webkit-text-size-adjust: 100%;
}
/* Mjuk skroll bara när en länk har fokus (klick), aldrig vid programmatisk skroll. */
html:focus-within { scroll-behavior: smooth; }

body {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  font-optical-sizing: auto;
  font-size: 17px;
  line-height: 1.6;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

main { flex: 1 0 auto; }

img, video { max-width: 100%; height: auto; display: block; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
blockquote, figure { margin: 0; }
a { color: var(--terra-dark); text-underline-offset: 3px; }

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

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

/* Typografi */

h1, h2, h3 { margin: 0; color: var(--ink); font-weight: 600; }

.display {
  font-size: clamp(40px, 22.5px + 2.88vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.page-title {
  font-size: clamp(34px, 26px + 2vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.h2 {
  font-size: clamp(30px, 24px + 1vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.lead {
  max-width: 560px;
  margin-top: 20px;
  font-size: 19px;
  line-height: 1.5;
}

/* Hopp-länk */

.skip {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 16px; }

.top-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 1px; }

/* Knappar och länkar */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.98); transition-duration: .12s; }
.btn .icon { width: 18px; height: 18px; }

.btn--primary { background: var(--terra); color: var(--white); }
.btn--primary:hover { background: var(--terra-dark); }

.btn--outline { background: transparent; border-color: rgba(28, 25, 23, .32); color: var(--ink); }
.btn--outline:hover { border-color: var(--ink); background: rgba(28, 25, 23, .04); }

.btn--white { background: var(--white); color: var(--terra-dark); }
.btn--white:hover { background: var(--peach); }

/* Står där en knapp ska stå när appen inte är lanserad än. Går inte att klicka. */
.soon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px dashed rgba(28, 25, 23, .32);
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.btn--small { min-height: 40px; padding: 0 18px; font-size: 15px; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
@media (max-width: 639px) {
  .actions .btn { width: 100%; }
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 600;
  color: var(--terra-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  border-radius: 6px;
  transition: text-decoration-thickness .2s var(--ease);
}
.text-link .icon { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.text-link:hover { text-decoration-thickness: 2px; }
.text-link:hover .icon { transform: translateX(3px); }

/* Toppbar och meny */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  box-shadow: 0 1px 0 transparent;
  transition: box-shadow .25s var(--ease);
}
.topbar.is-stuck { box-shadow: 0 1px 0 var(--line); }

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--topbar);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  border-radius: 6px;
}
.wordmark img { display: block; width: auto; height: 26px; }
@media (min-width: 640px) { .wordmark img { height: 30px; } }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(28, 25, 23, .24);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.menu-toggle:hover { border-color: var(--ink); }
.menu-toggle__icons { position: relative; width: 20px; height: 20px; }
.menu-toggle .icon {
  position: absolute;
  inset: 0;
  width: 20px;
  height: 20px;
  transition: opacity .15s var(--ease);
}
.menu-toggle .icon--close { opacity: 0; }
.menu-toggle[aria-expanded="true"] .icon--open { opacity: 0; }
.menu-toggle[aria-expanded="true"] .icon--close { opacity: 1; }

.site-nav {
  display: none;
  position: absolute;
  top: var(--topbar);
  left: 0;
  right: 0;
  max-height: calc(100dvh - var(--topbar));
  overflow-y: auto;
  padding: 8px var(--gutter) 24px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 16px 32px -20px rgba(68, 64, 60, .35);
}
.site-nav.is-open { display: block; }

.site-nav__list { list-style: none; }
.site-nav__list a {
  display: block;
  padding: 12px 0;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-radius: 8px;
  transition: color .2s var(--ease);
}
.site-nav__list a:hover { color: var(--terra); }
.site-nav__list a[aria-current="page"] {
  color: var(--terra-dark);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

/* På mobil är "Logga in" en tydlig konturknapp i menyn, på desktop en textlänk. */
.site-nav__actions {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}
.site-nav__login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid rgba(28, 25, 23, .32);
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.site-nav__login:hover { border-color: var(--ink); }
.site-nav__login[aria-current="page"] { border-color: var(--terra-dark); color: var(--terra-dark); }
.site-nav__actions .btn { min-height: 48px; font-size: 16px; }

/* Språkmenyn (Svenska, English, Polski, Deutsch) står utanför menyn, så att den syns på mobil utan att menyn öppnas.
   På desktop hamnar den sist, efter knappen, bakom en hårlinje. */
.topbar__end {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lang-menu { position: relative; }
.lang-menu__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 8px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  list-style: none;
  cursor: pointer;
  transition: color .2s var(--ease);
}
.lang-menu__toggle::-webkit-details-marker { display: none; }
.lang-menu__toggle:hover,
.lang-menu[open] .lang-menu__toggle { color: var(--terra); }
.lang-menu__toggle .icon { width: 18px; height: 18px; flex: none; }
.lang-menu__caret { transition: transform .2s var(--ease); }
.lang-menu[open] .lang-menu__caret { transform: rotate(180deg); }
.lang-menu__panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  min-width: 184px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--r-shot);
  background: var(--white);
  box-shadow: var(--shadow);
}
.lang-menu__list { margin: 0; padding: 0; list-style: none; }
.lang-menu__list a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px 0 40px;
  border-radius: 8px;
  color: var(--body);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.lang-menu__list a:hover { background: var(--bg); color: var(--terra); }
.lang-menu__list a[aria-current="true"] { padding-left: 12px; color: var(--ink); font-weight: 600; }
.lang-menu__list a[aria-current="true"] .icon { width: 18px; height: 18px; color: var(--terra); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@keyframes nav-item-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
/* Menyn fälls ut först från 1280 px: med tre moduler ryms länkarna inte på en rad under det. */
@media (max-width: 1279px) {
  .site-nav.is-open .site-nav__list li,
  .site-nav.is-open .site-nav__actions > a {
    animation: nav-item-in .24s var(--ease) both;
    animation-delay: calc(var(--i, 0) * 40ms);
  }
}

@media (min-width: 1280px) {
  .menu-toggle { display: none; }
  .site-nav {
    display: flex;
    position: static;
    align-items: center;
    gap: 28px;
    max-height: none;
    overflow: visible;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  .site-nav__list { display: flex; gap: 20px; }
  .site-nav__list a { padding: 10px 0; font-size: 15px; white-space: nowrap; }
  .site-nav__actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0;
  }
  .site-nav__login {
    min-height: 40px;
    padding: 0 2px;
    border: 0;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
  }
  .site-nav__login:hover { color: var(--terra); }
  .site-nav__login[aria-current="page"] {
    color: var(--terra-dark);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
  }
  .site-nav__actions .btn { min-height: 40px; padding: 0 18px; font-size: 15px; }
  .topbar__end { gap: 0; }
  .lang-menu {
    order: 2;
    margin-left: 24px;
    padding-left: 20px;
    border-left: 1px solid var(--line);
  }
  .lang-menu__toggle { min-height: 40px; padding: 0 2px; }
}
@media (min-width: 1440px) {
  .site-nav { gap: 36px; }
  .site-nav__list { gap: 28px; }
  .site-nav__actions { gap: 24px; }
  .lang-menu { margin-left: 28px; }
}

/* Paneler, skärmdumpar, etiketter */

.panel {
  background: var(--white);
  border-radius: var(--r-panel);
}
.panel--peach { background: var(--peach); }
.panel--slate { background: var(--slate); }
.panel--sage { background: var(--sage); }
.panel--tone { background: var(--tone); }
.panel--terra { background: var(--terra); color: var(--white); }

.shot {
  border: 1px solid var(--line);
  border-radius: var(--r-shot);
}
.shot--float { box-shadow: var(--shadow); }

/* Appfönster: en riktig skärmdump i en ram med kant, radie och mjuk skugga. Ingen påhittad fönsterlist. */
.app-window {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-shot);
  background: var(--white);
  box-shadow: var(--shadow);
}
.app-window img { width: 100%; }

.tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--white);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}
.tag--terra { color: var(--terra-dark); }
.tag--slate { color: var(--slate-ink); }
.tag--sage { color: var(--sage-ink); }
.tag--tone { background: var(--tone); color: var(--tone-ink); }

.icon { width: 1em; height: 1em; flex-shrink: 0; }

.checklist {
  list-style: none;
  margin-top: 24px;
}
.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.55;
}
.checklist .icon { width: 20px; height: 20px; margin-top: 3px; color: var(--tone-ink); }
.checklist--terra .icon { color: var(--terra-dark); }
.checklist--slate .icon { color: var(--slate-ink); }
.checklist--sage .icon { color: var(--sage-ink); }

/* Startsida: hero */

.hero {
  padding-top: 40px;
  padding-bottom: var(--section);
  min-height: min(calc(100dvh - var(--topbar)), 760px);
  display: flex;
  align-items: center;
}

.hero__grid {
  display: grid;
  gap: 40px;
}

.hero__text { max-width: 560px; }
.hero__lead { max-width: 480px; }
/* Startsidans rubrik: raden med sökorden (liten) och sloganen (stor) i samma h1. */
.hero__title { font-size: 19px; line-height: 1.4; }
.hero__kicker, .hero__title .display { display: block; }
.hero__kicker { margin-top: 16px; }
.hero__title .display { margin-top: 6px; }

.hero__panel {
  position: relative;
  overflow: hidden;
  height: 300px;
}

.hero__shot {
  position: absolute;
  left: 24px;
  top: 24px;
  width: 140%;
  max-width: none;
  border: 1px solid var(--white);
  border-radius: var(--r-shot);
  box-shadow: var(--shadow);
}

.hero__phone {
  display: none;
  position: absolute;
  left: 32px;
  bottom: -56px;
  width: 160px;
  max-width: none;
  border: 1px solid var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

@media (min-width: 1024px) {
  .hero { padding-top: 56px; }
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
  }
  .hero__panel { height: 560px; }
  .hero__shot { left: 56px; top: 56px; width: 170%; }
  .hero__phone { display: block; }
}

/* Startsida: produkter */

.products { padding-bottom: var(--section); }
.products > .container > .h2 { margin-bottom: 32px; }

.product {
  display: grid;
  gap: 32px;
  padding: var(--panel-pad);
}
.product + .product { margin-top: 24px; }

.product__title {
  margin: 18px 0 0;
  max-width: 24ch;
  font-size: clamp(24px, 19px + 0.8vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.product .text-link { margin-top: 24px; }

.product__media { min-width: 0; }
.product__media .shot { width: 100%; }

@media (min-width: 1024px) {
  .products > .container > .h2 { margin-bottom: 40px; }
  .product {
    grid-template-columns: 5fr 7fr;
    gap: 48px;
    align-items: center;
  }
  .product__media .shot {
    width: calc(100% + var(--panel-pad) + var(--shot-out));
    max-width: none;
    margin-right: calc(-1 * (var(--panel-pad) + var(--shot-out)));
  }
  .product--flip { grid-template-columns: 7fr 5fr; }
  .product--flip .product__text { order: 2; }
  .product--flip .product__media { order: 1; }
  .product--flip .product__media .shot {
    margin-right: 0;
    margin-left: calc(-1 * (var(--panel-pad) + var(--shot-out)));
  }
}

/* Startsida: film */

.film { padding-bottom: var(--section); }
.film__inner {
  max-width: 960px;
  margin-inline: auto;
  text-align: center;
}
.film .h2 { margin-bottom: 32px; }
.film__frame {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--tone);
  box-shadow: var(--shadow);
}
.film__frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--tone);
}

@media (min-width: 640px) {
  .film__frame { border-radius: var(--r-panel); }
}
/* AI-märkningen står under spelaren i vanlig brödtextstorlek och syns innan filmen startar. */
.film__caption {
  max-width: 640px;
  margin: 16px auto 0;
  font-size: 17px;
  line-height: 1.5;
  color: var(--body);
  text-wrap: balance;
}
.film__text { margin-top: 8px; }
.film__text summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  list-style: none;
  font-size: 15px;
  color: var(--muted);
  text-underline-offset: 4px;
  cursor: pointer;
  border-radius: 6px;
}
.film__text summary:hover { text-decoration: underline; }
.film__text summary::-webkit-details-marker { display: none; }
.film__text summary .icon { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.film__text[open] summary .icon { transform: rotate(45deg); }
.film__text-body {
  max-width: 65ch;
  margin: 12px auto 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--white);
  text-align: left;
}

/* Startsida: så tänker vi */

.thinking { padding-bottom: var(--section); }

.thinking__statement {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}
.thinking__lead {
  max-width: 680px;
  margin: 20px auto 0;
  text-wrap: balance;
  font-size: 19px;
  line-height: 1.5;
}

.principles {
  list-style: none;
  display: grid;
  gap: 36px;
  margin-top: 56px;
}
.principle::before {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  margin-bottom: 20px;
  background: var(--terra);
}
.principle__title {
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.3;
}
@media (min-width: 768px) {
  .principles {
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    margin-top: 72px;
  }
}

/* Startsida: modulernas ingress */
.products__head { max-width: 640px; margin-bottom: 32px; }
.products__head p { margin-top: 12px; font-size: 19px; color: var(--muted); }

/* Startsida: samma grund för båda */
.ground { padding-bottom: var(--section); }
.ground__head { max-width: 640px; }
.ground__head p { margin-top: 12px; font-size: 19px; color: var(--muted); }
.ground__grid {
  list-style: none;
  display: grid;
  gap: 14px;
  margin-top: 40px;
}
.ground__item {
  padding: 24px;
  border-radius: 16px;
  background: var(--sage);
}
.ground__item h3 { font-size: 18px; line-height: 1.3; }
.ground__item p { margin-top: 6px; font-size: 16px; line-height: 1.55; }
@media (min-width: 640px) { .ground__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .ground__grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }

/* Produktsida: spegelvänd split (bilden till vänster på breda skärmar) */
@media (min-width: 1024px) {
  .feature--flip .feature__text { order: 2; }
  .feature--flip .feature__stage { order: 1; }
}
/* Produktsida: panel med skärmdump och mobil bredvid varandra */
.feature__panel-media { display: grid; gap: 24px; justify-items: center; }
@media (min-width: 768px) {
  .feature__panel-media { grid-template-columns: 1fr auto; align-items: end; }
  .feature__panel-media .phone-frame { width: 170px; }
}

/* Produktsida: ett stående utsnitt i split-layouten hålls smalt, så att det får plats på skärmen */
.feature__stage--tall .app-window { max-width: 400px; margin-inline: auto; }

/* Produktsida: mobilen över ett hörn av skärmdumpen, som på startsidan */
.feature__phone { width: 150px; margin: 24px auto 0; }
@media (min-width: 768px) {
  .feature__stage { position: relative; }
  .feature__stage .feature__phone { position: absolute; left: -8px; bottom: -32px; width: 140px; margin: 0; z-index: 1; }
  .feature--split .feature__grid { padding-bottom: 32px; }
}

/* Startsida: om oss */

.about { padding-bottom: var(--section); }

.about__panel {
  display: grid;
  gap: 32px;
  padding: var(--panel-pad);
}
.about__inner { max-width: 640px; }
.about__inner .h2 { margin-bottom: 20px; }
.about__inner > p + p { margin-top: 14px; }

.about__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: right center;
  border-radius: var(--r-card);
}
.about__quote { margin-top: 28px; }
.about__quote p {
  font-size: clamp(21px, 18px + 0.5vw, 25px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}

@media (max-width: 1023px) {
  .about__media { order: -1; }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .about__media img { aspect-ratio: 2 / 1; }
}
@media (min-width: 1024px) {
  .about__panel {
    grid-template-columns: 7fr 5fr;
    gap: 56px;
    align-items: stretch;
    padding: clamp(40px, 4vw + 8px, 64px) var(--panel-pad);
  }
  .about__inner { align-self: center; }
  .about__media { position: relative; min-height: 340px; }
  /* Bilden fyller kolumnen. */
  .about__media img {
    position: absolute;
    inset: 0;
    height: 100%;
    aspect-ratio: auto;
  }
}

/* Avslut och kontakt (startsidan och produktsidorna) */

.contact { padding-bottom: var(--section); }

.contact__panel {
  padding: clamp(48px, 5vw + 16px, 80px) var(--panel-pad);
  text-align: center;
}
.contact__panel .h2 { color: var(--white); text-wrap: balance; }
.contact__panel p {
  max-width: 480px;
  margin: 14px auto 0;
  font-size: 19px;
  line-height: 1.5;
}
.contact__panel .btn { margin-top: 28px; }

.contact__mail {
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 16px auto 0;
  padding: 10px 4px;
  color: var(--white);
  font-size: 16px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  border-radius: 6px;
  transition: text-decoration-thickness .2s var(--ease);
}
.contact__mail:hover { text-decoration-thickness: 2px; }
.contact__panel .contact__note {
  max-width: 440px;
  margin-top: 20px;
  font-size: 15px;
  line-height: 1.5;
}
.contact__note a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
  border-radius: 4px;
}

.panel--terra :focus-visible { outline-color: var(--white); }

/* Produktsida: hero */

.phero {
  padding-top: clamp(32px, 2vw + 20px, 64px);
  padding-bottom: var(--section);
}
.phero__text { max-width: 920px; }
.phero .page-title { margin-top: 20px; }
.phero .page-title { text-wrap: balance; }
@media (min-width: 768px) {
  /* En mening per rad från surfplatta och uppåt. */
  .phero .page-title .line { display: block; }
}
.phero .actions { margin-top: 28px; }

.phero__stage {
  overflow: hidden;
  margin-top: clamp(40px, 3vw + 24px, 64px);
  padding: 16px 16px 0;
  border-radius: var(--r-panel);
  background: var(--tone);
}
.phero__stage .app-window {
  border-bottom: 0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
@media (min-width: 640px) {
  .phero__stage { padding: 32px 32px 0; }
}
@media (min-width: 1024px) {
  .phero__stage { height: 500px; padding: 56px 56px 0; }
}

/* Produktsida: känner du igen dig */

.recognize { padding-bottom: var(--section); }
.recognize .h2 { margin-bottom: 36px; }
.recognize__list {
  list-style: none;
  display: grid;
  gap: 28px;
}
.recognize__list li {
  max-width: 30ch;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
}
.recognize__list li::before {
  content: "";
  display: block;
  width: 32px;
  height: 2px;
  margin-bottom: 16px;
  background: var(--tone-ink);
}
@media (min-width: 768px) {
  .recognize__list { grid-template-columns: repeat(2, 1fr); gap: 36px 48px; }
}
@media (min-width: 1024px) {
  .recognize__list { grid-template-columns: repeat(4, 1fr); gap: 40px; }
}

/* Produktsida: funktionsblock */

.feature { padding-bottom: var(--section); }
.feature__head { max-width: 640px; }
.feature__head p,
.feature__text > p {
  max-width: 36em;
  margin-top: 16px;
  font-size: 18px;
  line-height: 1.55;
}

/* Bred: rubrik ovanför, skärmdump i containerns bredd. */
.feature--wide .feature__media { margin-top: 40px; }

/* Delad: text till vänster, skärmdump i en tonad yta till höger. */
.feature--split .feature__grid {
  display: grid;
  gap: 32px;
}
.feature__stage {
  padding: 16px;
  border-radius: var(--r-panel);
  background: var(--tone);
}
@media (min-width: 640px) {
  .feature__stage { padding: 24px; }
}
@media (min-width: 1024px) {
  .feature--split .feature__grid {
    grid-template-columns: 4fr 8fr;
    gap: 56px;
    align-items: center;
  }
}

/* Panel: centrerad rubrik, skärmdump och tre korta punkter under, i en vit yta. */
.feature--panel .feature__head {
  margin-inline: auto;
  text-align: center;
}
.feature--panel .feature__head p { margin-inline: auto; }
.feature__panel {
  margin-top: 40px;
  padding: var(--panel-pad);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  background: var(--white);
}
.feature__panel .app-window {
  max-width: 960px;
  margin-inline: auto;
  box-shadow: 0 16px 40px -28px rgba(68, 64, 60, .45);
}
.feature__cols {
  list-style: none;
  display: grid;
  gap: 28px;
  max-width: 960px;
  margin: 40px auto 0;
}
.feature__cols h3 {
  margin-bottom: 6px;
  font-size: 18px;
  line-height: 1.35;
}
.feature__cols p { font-size: 16px; line-height: 1.55; }
@media (min-width: 768px) {
  .feature__cols { grid-template-columns: repeat(3, 1fr); gap: 40px; }
}

/* Bento: en stor ruta med skärmdump och två mindre bredvid. */
.bento {
  display: grid;
  gap: 16px;
  margin-top: 40px;
}
.bento__cell {
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  background: var(--white);
}
.bento__cell--main { border-color: transparent; background: var(--tone); }
.bento__cell--sage { border-color: transparent; background: var(--sage); }
.bento__cell h3 { font-size: 20px; line-height: 1.3; }
.bento__cell p { max-width: 40ch; margin-top: 8px; }
/* Den stora rutans skärmdump går ut i rutans högra och nedre kant. */
.bento__cell--main {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: 0;
}
.bento__cell--main .app-window {
  display: flex;
  flex: 1 0 auto;
  margin-right: -28px;
  border-right: 0;
  border-bottom: 0;
  border-radius: var(--r-shot) 0 0 0;
  box-shadow: 0 16px 40px -24px rgba(68, 64, 60, .45);
}
/* Skärmdumpen fyller resten av rutan, så att det aldrig blir ett glapp under texten. */
.bento__cell--main .app-window img {
  align-self: stretch;
  object-fit: cover;
  object-position: left top;
}
.bento__text { padding-bottom: 28px; }
.bento__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--tone);
  color: var(--tone-ink);
}
.bento__cell--sage .bento__icon { background: var(--white); }
.bento__icon .icon { width: 24px; height: 24px; }
@media (min-width: 768px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .bento__cell--main { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .bento { grid-template-columns: 2fr 1fr; gap: 20px; }
  .bento__cell { padding: 40px; }
  .bento__cell--main { grid-column: auto; grid-row: span 2; padding-bottom: 0; }
  .bento__cell--main .app-window { margin-right: -40px; }
  .bento__text { padding-bottom: 32px; }
}

/* Produktsida: så går det till */

.steps { padding-bottom: var(--section); }
.steps .h2 { margin-bottom: 40px; }
.steps__list {
  list-style: none;
  display: grid;
  gap: 32px;
}
.step { position: relative; }
.step__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--tone);
  color: var(--tone-ink);
}
.step__icon .icon { width: 24px; height: 24px; }
.step__title {
  margin-bottom: 6px;
  font-size: 20px;
  line-height: 1.3;
}
.step p { max-width: 32ch; }
@media (min-width: 768px) {
  .steps__list { grid-template-columns: repeat(3, 1fr); gap: 48px; }
  /* En tunn linje mellan stegen visar ordningen utan siffror. */
  .step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 24px;
    left: 64px;
    right: -32px;
    height: 1px;
    background: var(--line);
  }
}

/* Produktsida: för vem */

.audience { padding-bottom: var(--section); }
.audience__panel {
  display: grid;
  gap: 16px;
  padding: var(--panel-pad);
}
.audience__text {
  max-width: 34ch;
  font-size: clamp(22px, 18px + 0.9vw, 30px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}
@media (min-width: 1024px) {
  .audience__panel {
    grid-template-columns: 4fr 8fr;
    gap: 48px;
    align-items: center;
  }
}

/* Produktsida: vanliga frågor */

.faq { padding-bottom: var(--section); }
.faq__grid {
  display: grid;
  gap: 28px;
}
.faq__item { border-top: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 14px 0;
  list-style: none;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  cursor: pointer;
  border-radius: 6px;
  transition: color .2s var(--ease);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--terra-dark); }
.faq__item summary .icon {
  width: 22px;
  height: 22px;
  color: var(--terra-dark);
  transition: transform .2s var(--ease);
}
.faq__item[open] summary .icon { transform: rotate(45deg); }
.faq__answer {
  max-width: 60ch;
  padding: 0 40px 24px 0;
}
@media (min-width: 1024px) {
  .faq__grid {
    grid-template-columns: 4fr 8fr;
    gap: 48px;
    align-items: start;
  }
}

/* Logga in */

.login {
  padding-top: clamp(32px, 2vw + 20px, 64px);
  padding-bottom: var(--section);
}
.login__grid {
  display: grid;
  gap: 20px;
  margin-top: 40px;
}
.login-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 32px 28px 0;
  border-radius: var(--r-panel);
  background: var(--peach);
}
.login-card--styr { background: var(--peach); }
.login-card__title {
  font-size: clamp(24px, 20px + 0.6vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.login-card p { margin-top: 8px; }
.login-card .btn,
.login-card .soon {
  align-self: flex-start;
  margin-top: 24px;
}
.login-card__shot {
  height: 180px;
  margin-top: 32px;
  border-bottom: 0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.login-card__shot img {
  height: 100%;
  object-fit: cover;
  object-position: left top;
}
.login__help {
  max-width: 40em;
  margin-top: 32px;
  font-size: 17px;
}
@media (max-width: 639px) {
  .login-card .btn,
  .login-card .soon { align-self: stretch; }
}
@media (min-width: 768px) {
  .login__grid { grid-template-columns: minmax(0, 720px); }
  .login-card { padding: 40px 40px 0; }
  .login-card__shot { height: 220px; margin-top: 40px; }
}

/* Mobilbild i en telefonram gjord i CSS. */
.phone-frame {
  overflow: hidden;
  border: 5px solid var(--ink);
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.phone-frame img { display: block; width: 100%; height: auto; }

/* Textsidor (integritet, företagsuppgifter, tillgänglighet) */

.prose {
  padding-top: clamp(32px, 2vw + 20px, 64px);
  padding-bottom: var(--section);
}
.prose__grid {
  display: grid;
  gap: 8px;
}
.prose__body { max-width: 720px; }
/* Långa ord som "Integritetspolicy" ska rymmas i den smala vänsterspalten. */
.prose .page-title { font-size: clamp(32px, 24px + 1.6vw, 48px); }
.prose h2 {
  margin-top: 40px;
  font-size: 22px;
  line-height: 1.3;
}
.prose h2 + p, .prose h2 + ul { margin-top: 8px; }
.prose p + p, .prose ul + p, .prose table + p, .prose p + ul, .prose dl + p { margin-top: 12px; }
.prose ul {
  padding-left: 22px;
}
.prose li + li { margin-top: 4px; }
.prose li::marker { color: var(--terra-dark); }
.prose__date {
  margin-top: 12px;
  font-size: 16px;
  color: var(--muted);
}
.prose__updated {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 16px;
  color: var(--muted);
}

/* Innehållsförteckning: listas under rubriken, följer med vid skroll på desktop. */
.toc { margin-top: 28px; }
.toc__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.toc ol {
  list-style: none;
  margin-top: 8px;
  border-left: 1px solid var(--line);
}
.toc a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 4px 0 4px 16px;
  margin-left: -1px;
  border-left: 2px solid transparent;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.35;
  text-decoration: none;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.toc a:hover {
  color: var(--terra-dark);
  border-left-color: var(--terra-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Tabellen i integritetspolicyn. På mobil blir varje rad ett kort med etiketter. */
.policy-table {
  width: 100%;
  margin-top: 16px;
  border-collapse: collapse;
  font-size: 16px;
  line-height: 1.5;
}
.policy-table th {
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  vertical-align: bottom;
}
.policy-table td {
  padding: 12px 12px 12px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
@media (max-width: 639px) {
  .policy-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .policy-table, .policy-table tbody, .policy-table tr, .policy-table td { display: block; }
  .policy-table tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .policy-table tr:first-child { border-top: 1px solid var(--line); }
  .policy-table td { padding: 2px 0; border: 0; }
  .policy-table td::before {
    content: attr(data-label) ": ";
    font-weight: 600;
    color: var(--ink);
  }
}

/* Företagsuppgifter som en lista med etikett och värde. */
.facts {
  display: grid;
  margin: 0;
  border-top: 1px solid var(--line);
}
.facts > div {
  display: grid;
  gap: 2px 32px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.facts dt { font-weight: 600; color: var(--ink); }
.facts dd { margin: 0; }
.facts__note { margin-top: 16px; }
@media (min-width: 640px) {
  .facts > div { grid-template-columns: 14em 1fr; }
}

@media (min-width: 1024px) {
  .prose__grid {
    grid-template-columns: 4fr 8fr;
    gap: 48px;
    align-items: start;
  }
  .prose__intro {
    position: sticky;
    top: calc(var(--topbar) + 24px);
  }
  .prose__body > h2:first-child,
  .prose__body > .facts:first-child { margin-top: 0; }
}

/* Guider (guider/): en textsida med ett direkt svar överst, tabeller, checklistor, ett avsnitt om Hedarius Styr
   och vanliga frågor. Bygger på textsidornas .prose. */

.guide .page-title { font-size: clamp(28px, 22px + 1.2vw, 38px); text-wrap: balance; }
.guide__crumb { margin-bottom: 12px; font-size: 15px; }
.guide__crumb a { color: var(--terra-dark); font-weight: 500; }
.guide .prose__date a { color: inherit; }
.guide .prose__body > * + * { margin-top: 14px; }
.guide .prose__body > h2,
.guide .prose__body > .guide__styr { margin-top: 44px; }
.guide .prose__body > h2 + * { margin-top: 10px; }
.guide__answer {
  font-size: 19px;
  line-height: 1.55;
  font-weight: 500;
  color: var(--ink);
}
.guide__download .btn { margin-top: 6px; }
.prose ol { padding-left: 22px; }
.prose ol li + li { margin-top: 8px; }
.guide .policy-table { margin-top: 14px; }

/* Checklista: en bock per rad, ritad med kanter (ingen bildfil). */
.guide__check { list-style: none; padding-left: 0; }
.guide__check li {
  position: relative;
  padding-left: 30px;
}
.guide__check li + li { margin-top: 8px; }
.guide__check li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: .42em;
  width: 6px;
  height: 11px;
  border: solid var(--terra-dark);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.guide__steps { padding-left: 24px; }
.guide__steps li + li { margin-top: 12px; }
.guide__steps li::marker { color: var(--terra-dark); font-weight: 600; }
.guide__steps strong { color: var(--ink); font-weight: 600; }

/* Avsnittet om Hedarius Styr: en egen panel, så att det syns var guiden slutar och produkten börjar. */
.guide__styr {
  padding: 24px;
  border-radius: var(--r-card);
  background: var(--peach);
}
.guide__styr > * + * { margin-top: 12px; }
.guide__styr h2 { margin-top: 0; }
.guide__shot { margin: 20px 0 0; }
.guide__shot img { display: block; width: 100%; height: auto; }
.guide__styr .text-link { color: var(--terra-dark); }
@media (min-width: 640px) { .guide__styr { padding: 32px; } }

.guide .faq__list { margin-top: 14px; }
.guide .faq__answer { padding-right: 24px; }
.guide__related { padding-top: 24px; border-top: 1px solid var(--line); }
.guide .prose__body > .guide__related { margin-top: 44px; }
.guide__legal { font-size: 15px; color: var(--muted); }

/* Översikten över guiderna. */
.guides {
  padding-top: clamp(32px, 2vw + 20px, 64px);
  padding-bottom: var(--section);
}
.guides__head { max-width: 760px; }
.guides__heading {
  margin-top: 48px;
  font-size: 22px;
  line-height: 1.3;
}
.guides__list {
  display: grid;
  gap: 16px;
  margin-top: 16px;
  list-style: none;
}
.guides__item {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--white);
}
.guides__title { font-size: 20px; line-height: 1.3; }
.guides__title a { color: var(--ink); text-decoration-color: var(--terra); text-underline-offset: 4px; }
.guides__title a:hover { color: var(--terra-dark); }
.guides__item p { margin-top: 8px; }
@media (min-width: 768px) { .guides__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Länkarna till guiderna på modulsidorna (bara på svenska). */
.guide-links { padding-bottom: var(--section); }
.guide-links__title { font-size: 22px; line-height: 1.3; }
.guide-links__list {
  display: grid;
  gap: 4px 32px;
  margin-top: 12px;
  list-style: none;
}
.guide-links__list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--terra-dark);
  font-weight: 500;
}
@media (min-width: 768px) { .guide-links__list { grid-template-columns: repeat(2, 1fr); } }

/* 404 */

.notfound {
  padding-top: clamp(32px, 2vw + 20px, 64px);
  padding-bottom: var(--section);
}
.notfound__panel { padding: clamp(40px, 5vw + 16px, 88px) var(--panel-pad); }
.notfound__panel--en { margin-top: 16px; }

/* Sidfot */

.footer {
  padding: 56px 0 24px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--muted);
}
.footer__grid {
  display: grid;
  gap: 40px;
}
.footer__wordmark img { display: block; width: auto; height: 28px; }
.footer__slogan { margin-top: 4px; }
.footer__mail {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 4px;
  color: var(--terra-dark);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
  border-radius: 6px;
}
.footer__nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 24px;
}
.footer__heading {
  margin-bottom: 4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.footer__col ul { list-style: none; }
.footer__col a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  text-decoration: none;
  border-radius: 6px;
  transition: color .2s var(--ease);
}
.footer__col a:hover {
  color: var(--terra-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer__col a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0 24px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.footer__company {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
  min-height: 44px;
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: rgba(87, 83, 78, .45);
  text-underline-offset: 4px;
  border-radius: 6px;
  transition: color .2s var(--ease);
}
.footer__company:hover { color: var(--terra-dark); text-decoration-color: currentColor; }
.footer__company[aria-current="page"] { color: var(--ink); }
@media (min-width: 768px) {
  .footer__nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__col a { min-height: 36px; }
}
@media (min-width: 1024px) {
  .footer { padding-top: 64px; }
  .footer__grid { grid-template-columns: 5fr 7fr; gap: 48px; }
}

/* Inton av sektioner */

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
  transition-delay: calc(var(--i, 0) * 60ms);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Reducerad rörelse */

@media (prefers-reduced-motion: reduce) {
  html:focus-within { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0s !important;
    transition-delay: 0s !important;
    animation: none !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .btn:hover, .btn:active, .text-link:hover .icon { transform: none; }
}

/* Långa sammansatta ord (tyska, polska) ska inte ge sidledsscroll på smala skärmar: avstavning på de språken, och
   rubriker får brytas inne i ett ord om det ändå inte ryms (påverkar bara ord som är bredare än raden). */
h1, h2, h3, .page-title, .lead { overflow-wrap: break-word; }
:lang(de) h1, :lang(de) h2, :lang(de) h3, :lang(de) p, :lang(de) li, :lang(de) dd, :lang(de) figcaption,
:lang(pl) h1, :lang(pl) h2, :lang(pl) h3, :lang(pl) p, :lang(pl) li, :lang(pl) dd, :lang(pl) figcaption { hyphens: auto; -webkit-hyphens: auto; }

/* Ordmärket krymper aldrig. Polska, tyska och spanska menyetiketter är längre: tätare meny mellan 1280 och 1535 px. */
.wordmark { flex: none; }
@media (min-width: 1280px) and (max-width: 1535px) {
  :lang(de) .site-nav, :lang(pl) .site-nav, :lang(es) .site-nav { gap: 18px; }
  :lang(de) .site-nav__list, :lang(pl) .site-nav__list, :lang(es) .site-nav__list { gap: 14px; }
  :lang(de) .site-nav__actions, :lang(pl) .site-nav__actions, :lang(es) .site-nav__actions { gap: 16px; }
  :lang(de) .lang-menu, :lang(pl) .lang-menu, :lang(es) .lang-menu { margin-left: 16px; padding-left: 14px; }
}

/* Smala telefoner: språkmenyn visar bara glob och pil, språkets namn finns kvar för skärmläsare. */
@media (max-width: 419px) {
  .lang-menu__current {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .lang-menu__toggle { padding: 0 6px; gap: 4px; }
}

/* Långa svenska ord i guidelistan (personuppgiftsbiträdesavtal) bryts hellre än att ge sidledsscroll på 320 px. */
@media (max-width: 767px) { .guides__list { grid-template-columns: minmax(0, 1fr); } }
.guides__item { min-width: 0; overflow-wrap: break-word; }

/* Menyetiketterna bryts aldrig på två rader på desktop. */
@media (min-width: 1280px) { .site-nav a { white-space: nowrap; } }
