/* ==========================================================================
   Landningssektioner (patterns/*.php) och scener (blocks/scene).
   Ur hs-brand/reference/SajtVepino3.html och SajtHS5.html, med mobil enligt
   MobilVepino.html / MobilHS.html. Bara --hs-* och komponentklasser.
   ========================================================================== */

/* ---------- Kärnknappar (core/buttons) som Button ------------------------ */

.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.wp-block-button .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 28px;
  border-radius: var(--hs-radius-pill);
  border: 0;
  background: var(--hs-granskog);
  color: var(--hs-vit);
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.wp-block-button .wp-block-button__link:hover { background: var(--hs-granskog-djup); color: var(--hs-vit); }
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  color: var(--hs-ink);
  border: 0;
  padding: 0 24px;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--hs-sten); }

/* ---------- Tagg och chips (blockstilar) -------------------------------- */

:is(.main, .editor-styles-wrapper) p.is-style-tag {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  height: 30px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid var(--hs-kontrollkant);
  border-radius: var(--hs-radius-pill);
  font-size: 14px;
  width: max-content;
}
:is(.main, .editor-styles-wrapper) p.lp-tag--sm { height: 28px; padding: 0 11px; font-size: 13px; }
:is(.main, .editor-styles-wrapper) p.lp-tag--mjuk { border: 0; background: var(--hs-granskog-mjuk); height: 28px; font-size: 13px; font-weight: 600; }
:is(.main, .editor-styles-wrapper) p.lp-tag--ink { border: 0; background: var(--hs-ink); color: var(--hs-vit); height: 28px; font-size: 13px; font-weight: 600; }
:is(.main, .editor-styles-wrapper) p.lp-tag--on-dark { border-color: var(--hs-mossa); }

.wp-block-list.is-style-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.wp-block-list.is-style-chips li {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--hs-radius-pill);
  background: var(--hs-sten);
  font-size: 17px;
}
.lp-chips--dot li { height: 44px; padding: 0 18px; background: var(--hs-vit); border: 1px solid var(--hs-linje); font-size: 16px; }
.lp-chips--dot li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--site-signatur); }
.lp-chips--dot li:has(> a) { background: none; border: 0; font-weight: 600; }
.lp-chips--dot li:has(> a)::before { display: none; }
.lp-chips--dot li a { text-decoration: none; }

/* ---------- Sektioner (core/group, låsta med contentOnly) ----------------- */

/* Varje sektion är en grupp i full bredd med en yta som blockstil
   (Yta: Dag/Sten/Granskog/Ink). Innehållet hålls i den breda kolumnen;
   rytmen kommer från sektionens padding (60 + 60 = 120 px mellan två
   dag-sektioner) och gap mellan blocken. */
:is(.main, .editor-styles-wrapper) .hs-section {
  --sec-py: calc(var(--site-section) / 2);
  display: flex;
  flex-direction: column;
  gap: var(--hs-space-48);
  padding-block: var(--sec-py);
  padding-inline: max(var(--site-edge), calc((100% - var(--site-wide)) / 2));
}
main.main > .hs-section { margin-block: 0; }
:is(.main, .editor-styles-wrapper):is(.main, .editor-styles-wrapper) .hs-section > * { margin: 0; }

.is-style-surface-dag { background: var(--hs-dag); }
.is-style-surface-sten { background: var(--hs-sten); }
.is-style-surface-granskog { background: var(--hs-granskog); color: var(--hs-vit); }
.is-style-surface-ink { background: var(--hs-ink); color: var(--hs-vit); }

:is(.main, .editor-styles-wrapper) .hs-section:is(.is-style-surface-ink, .is-style-surface-granskog) { --sec-py: var(--hs-space-88); }
:is(.main, .editor-styles-wrapper) .hs-section + .hs-section:is(.is-style-surface-ink, .is-style-surface-granskog) { margin-top: var(--hs-space-32); }
:is(.main, .editor-styles-wrapper) .hs-section.lp-sec-hero { padding-top: var(--hs-space-40); }
:is(.main, .editor-styles-wrapper) .hs-section.lp-sec-proof { padding-top: var(--hs-space-12); gap: var(--hs-space-24); }
:is(.main, .editor-styles-wrapper) .hs-section.lp-sec-doors { gap: var(--hs-space-40); }
:is(.main, .editor-styles-wrapper) .hs-section:is(#funktioner, #uppdrag, .lp-outreach) { gap: 56px; }
:is(.main, .editor-styles-wrapper) .hs-section:has(.lp-stair--principles) { padding-block: 120px 128px; }
:is(.main, .editor-styles-wrapper) .hs-section.lp-products-section { --sec-py: 128px; }
:is(.main, .editor-styles-wrapper) .hs-section.lp-outreach { margin-bottom: 72px; }
/* Dag mellan sista sektionen och den gröna sidfoten. Referensen har 40 px;
   64 px sedan 2026-11-16, 40 px blev för trångt mot färgade sektioner. */
main.main > .hs-section:last-child { margin-bottom: calc(var(--hs-space-64) - var(--site-section)); }

/* Text på mörka ytor. */
.is-style-surface-ink :is(h1, h2, h3, p, li), .is-style-surface-granskog :is(h1, h2, h3, p, li) { color: inherit; }
:is(.main, .editor-styles-wrapper) .is-style-surface-ink :is(.lp-aside, .lp-text, .is-style-dot),
:is(.main, .editor-styles-wrapper) .is-style-surface-ink .lp-feat .is-style-dot { color: var(--hs-ink-ljus); }
.lp-outreach .lp-h2-xl strong { color: var(--hs-mossa); }
.is-style-surface-ink .is-style-tag { border-color: var(--hs-dampad); }
:is(.is-style-surface-ink, .is-style-surface-granskog) .hs-buttons a.secondary { color: var(--hs-vit); }
.is-style-surface-ink .hs-buttons a.secondary:hover { background: var(--hs-ink-2); }

/* ---------- Hero (humansyntax/hero) -------------------------------------- */

.hs-hero-block {
  display: grid;
  /* Textkolumnen ~780 px vid 1440: rubriken får plats på två rader
     ("En liten digital / studio i gränslandet."). */
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: var(--hs-space-40);
  align-items: center;
}
.hs-hero-block.lp-hero--text { grid-template-columns: minmax(0, 1fr); }
.hs-hero-block .lp-hero__text { display: flex; flex-direction: column; gap: 32px; }
:is(.main, .editor-styles-wrapper):is(.main, .editor-styles-wrapper) .hs-hero-block .lp-hero__text > * { margin: 0; }
a.lp-news, .lp-news a { text-decoration: none; color: var(--hs-ink); }
.lp-news a:hover { text-decoration: underline; text-underline-offset: 3px; }
a.lp-news:hover { background: var(--hs-mossa-ljus); color: var(--hs-ink); }

/* ---------- Kolumner (hs/flex-layout, hs/flex-item) ---------------------- */

/* Pluginets mobilstapling sätter kolumnerna till display: contents (för
   mobilordning). Utan mobilordning behåller vi kolumnen som en enhet. */
:is(.main, .editor-styles-wrapper) .hs-flex-layout.is-mobile-stacked:not(:has(.has-mobile-order)) > .hs-flex-item { display: flex; flex-direction: column; }
:is(.main, .editor-styles-wrapper) .hs-flex-layout.is-mobile-stacked { gap: var(--hs-space-40); }

/* Inuti kolumnerna styr gap avståndet. */
:is(.main, .editor-styles-wrapper):is(.main, .editor-styles-wrapper) .hs-flex-item:is(.lp-hero__text, .lp-feat, .lp-wide__text, .lp-door, .lp-more__text, .lp-case, .lp-proof__col, .hs-product) > * { margin: 0; }
:is(.main, .editor-styles-wrapper):is(.main, .editor-styles-wrapper) :is(.lp-stair, .lp-photo, .hs-frost, .lp-case__meta, .lp-same) > * { margin: 0; }

/* ---------- Gemensamma byggstenar ---------------------------------------- */

:is(.main, .editor-styles-wrapper) .lp-display {
  margin: 0;
  /* Följer fönsterbredden (hero-kolumnen växer med den): 96 px från ~1480 px,
     46 px på mobil. 6.5vw håller "studio i gränslandet." på en rad i
     hero-kolumnen ned till ~1000 px. */
  font-size: clamp(46px, 6.5vw, 96px);
  font-weight: 500;
  letter-spacing: -0.047em;
  line-height: 0.95;
  /* Jämna rader i stället för en lång och en kort; korta ord hålls ihop med
     nästa ord i hs_bind_short_words(). */
  text-wrap: balance;
}
.lp-display strong { color: var(--site-signatur-text); }

:is(.main, .editor-styles-wrapper) .lp-lead { max-width: 560px; font-size: 21px; line-height: 1.5; color: var(--hs-ink-2); text-wrap: pretty; }
:is(.main, .editor-styles-wrapper) .lp-text { max-width: 560px; font-size: 18px; line-height: 1.55; color: var(--hs-ink-2); }
:is(.main, .editor-styles-wrapper) .lp-h2-xl { font-size: 64px; line-height: 1; letter-spacing: -0.04em; max-width: 1000px; }
:is(.main, .editor-styles-wrapper) .lp-h2 { font-size: 48px; line-height: 1.02; letter-spacing: -0.04em; }
:is(.main, .editor-styles-wrapper) .lp-h2-sm { font-size: 40px; line-height: 1.05; letter-spacing: -0.035em; }
:is(.main, .editor-styles-wrapper) .lp-aside { max-width: 380px; font-size: 18px; line-height: 1.5; color: var(--hs-dampad); }
:is(.main, .editor-styles-wrapper) .lp-kicker { font-size: 15px; font-weight: 600; color: var(--hs-granskog); }
.hs-flex-item.lp-head__aside { align-items: flex-end; }

/* Nyhetsraden (Chip: hs-news). */
:is(.main, .editor-styles-wrapper) .lp-news {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 8px;
  border-radius: var(--hs-radius-pill);
  background: var(--hs-granskog-mjuk);
  font-size: 15px;
  max-width: 100%;
}
.lp-news strong {
  height: 26px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--hs-radius-pill);
  background: var(--hs-granskog);
  color: var(--hs-vit);
  font-size: 13px;
  font-weight: 600;
  flex: none;
}
[data-brand="vepino"] .lp-news strong { background: var(--hs-glod); color: var(--hs-ink); font-weight: 700; }

/* Prickade listor (dot) som i referensen: 8 px prick i signaturfärg. */
:is(.main, .editor-styles-wrapper) :is(.lp-feat, .lp-wide__text, .lp-photo) .is-style-dot { display: flex; flex-direction: column; gap: 8px; font-size: 16px; line-height: 1.45; color: var(--hs-ink-2); }
:is(.main, .editor-styles-wrapper) :is(.lp-feat, .lp-wide__text, .lp-photo) .is-style-dot li { margin: 0; padding-left: 20px; }
:is(.main, .editor-styles-wrapper) :is(.lp-feat, .lp-wide__text, .lp-photo) .is-style-dot li::before { top: 0.5em; width: 8px; height: 8px; }

/* ---------- Kundbevis ---------------------------------------------------- */

:is(.main, .editor-styles-wrapper) .lp-proof__label { padding-top: 28px; border-top: 1px solid var(--hs-linje); font-size: 16px; font-weight: 600; }
.hs-flex-item.lp-proof__col { gap: 10px; }
:is(.main, .editor-styles-wrapper) .lp-logo {
  margin: 0;
  height: 88px;
  border-radius: var(--hs-radius-md);
  background: var(--hs-sten);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--hs-ink-2);
  text-align: center;
}

/* ---------- Två sätt (dörrar) ------------------------------------------- */

.hs-flex-item.lp-door {
  position: relative;
  border-radius: var(--hs-radius-xl);
  padding: var(--hs-space-40);
  min-height: 360px;
  gap: var(--hs-space-20);
}
.hs-flex-item.lp-door--mjuk { background: var(--hs-granskog-mjuk); }
.hs-flex-item.lp-door--ink { background: var(--hs-ink); color: var(--hs-vit); }
:is(.main, .editor-styles-wrapper) .lp-door__title { font-size: 44px; font-weight: 700; letter-spacing: -0.035em; line-height: 1; }
:is(.main, .editor-styles-wrapper) .lp-door__text { font-size: 19px; line-height: 1.5; max-width: 460px; }
.lp-door--ink .lp-door__text { color: var(--hs-ink-ljus); }
:is(.main, .editor-styles-wrapper):is(.main, .editor-styles-wrapper) .lp-door__link { margin-top: auto; font-size: 16px; font-weight: 700; }
.lp-door__link a { color: inherit; text-decoration: none; }
.lp-door__link a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.lp-door--ink .lp-door__link a { color: var(--hs-mossa); }
.lp-door:focus-within { outline: 3px solid var(--hs-ink); outline-offset: 3px; }
.lp-door__link a:focus-visible { outline: none; }

.lp-same { display: flex; align-items: center; gap: var(--hs-space-16); flex-wrap: wrap; font-size: 17px; }

/* ---------- Trappan (Stair) ---------------------------------------------- */

.lp-stair { position: relative; display: flex; flex-direction: column; gap: 6px; }
:is(.main, .editor-styles-wrapper):is(.main, .editor-styles-wrapper) .lp-stair__eyebrow { margin-bottom: 36px; font-size: 16px; font-weight: 600; color: var(--hs-mossa-ljus); }
:is(.main, .editor-styles-wrapper) .lp-stair__row { font-size: 88px; letter-spacing: -0.047em; line-height: 1.04; }
.lp-stair__row strong { font-weight: 700; }
.lp-stair__row em { font-style: normal; font-weight: 400; }
.lp-stair--steps .lp-stair__row em { font-size: 28px; letter-spacing: -0.01em; vertical-align: middle; color: var(--hs-ink-dampad); }
.lp-stair--steps .lp-stair__row:nth-of-type(3) { padding-left: 160px; }
.lp-stair--steps .lp-stair__row:nth-of-type(4) { padding-left: 320px; }
.lp-stair--steps .lp-stair__row:nth-of-type(5) { padding-left: 480px; }
.lp-stair__row.is-goal strong { color: var(--hs-mossa); }

.lp-stair--principles { gap: 10px; container-type: inline-size; }
/* Bredaste raden (rad 3 inkl. indrag) är ca 12,6 em: storleken följer blockets bredd så att ingen rad bryts. Tak 96px. */
:is(.main, .editor-styles-wrapper) .lp-stair--principles .lp-stair__row { font-size: min(96px, 7.6cqi); letter-spacing: -0.045em; }
.lp-stair--principles .lp-stair__row em { color: var(--hs-mossa-ljus); }
.lp-stair--principles .lp-stair__row:nth-of-type(3) { padding-left: 1.875em; }
.lp-stair--principles .lp-stair__row:nth-of-type(4) { padding-left: 3.75em; }
.lp-stair--principles .hs-scene--hs-mark { position: absolute; right: 32px; top: -24px; }

/* ---------- Funktioner (kolumner i trappa) ------------------------------- */

.hs-flex-item.lp-feat { gap: 18px; }
.lp-pair > .hs-flex-item.is-offset { margin-top: 64px; }
.lp-pair > .hs-flex-item.is-offset-lg { margin-top: 80px; }
.lp-pair > .hs-flex-item.is-offset-xl { margin-top: 160px; }
:is(.main, .editor-styles-wrapper) .lp-feat__title { font-size: 32px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; }
:is(.main, .editor-styles-wrapper) .lp-wide__title { font-size: 44px; font-weight: 500; letter-spacing: -0.035em; line-height: 1.04; }
:is(.lp-feat__title, .lp-wide__title) strong { font-weight: 700; }

.hs-flex-layout.lp-wide {
  border-radius: var(--hs-radius-xl);
  background: var(--hs-granskog);
  color: var(--hs-vit);
  padding: 48px;
}
.hs-flex-item.lp-wide__text { gap: 18px; }
.lp-wide :is(p, li) { color: inherit; }
:is(.main, .editor-styles-wrapper) .lp-wide :is(.lp-text, .is-style-dot) { color: var(--hs-granskog-mjuk); }

/* ---------- Foto med frostat kort (FrostCard) --------------------------- */

/* Bildblock i fotoytorna (core/image, går att byta i låst läge). */
figure.wp-block-image:is(.lp-photo__img, .lp-case__img) { position: relative; overflow: hidden; border-radius: var(--hs-radius-lg); background: var(--hs-granskog-mjuk); }
figure.wp-block-image.lp-photo__img { border-radius: var(--hs-radius-xl); }
figure.wp-block-image:is(.lp-photo__img, .lp-case__img) img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; display: block; }
/* Dummyfoton märks tydligt tills de riktiga bilderna finns (klassen sätts av
   temat på bilder vars titel börjar med "Dummybild", se functions.php). */
figure.is-dummy::after,
:is(figure, .hs-case-page__media):has(> img.is-dummy-img)::after {
  content: "Dummybild";
  position: absolute;
  right: 16px;
  top: 16px;
  height: 28px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--hs-radius-pill);
  background: var(--hs-ink);
  color: var(--hs-vit);
  font-size: 13px;
  font-weight: 600;
}

.lp-photo { position: relative; }
:is(.main, .editor-styles-wrapper) .hs-ph {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--hs-space-24);
  border-radius: var(--hs-radius-lg);
  background: var(--hs-granskog-mjuk);
  color: var(--hs-granskog);
  font-size: 13px;
  letter-spacing: 0.04em;
}
:is(.main, .editor-styles-wrapper) .hs-ph--ink { background: var(--hs-ink); color: var(--hs-ink-ljus); }
:is(.main, .editor-styles-wrapper) .hs-ph--sten { background: var(--hs-sten); color: var(--hs-ink-2); }
:is(.main, .editor-styles-wrapper) .hs-ph--white { background: var(--hs-vit); border: 1px solid var(--hs-linje); color: var(--hs-ink-2); }
:is(.main, .editor-styles-wrapper) .lp-photo__img { height: 540px; border-radius: var(--hs-radius-xl); align-items: flex-start; justify-content: flex-end; }
.lp-photo--hs .lp-photo__img { height: 640px; }
.lp-photo__card {
  position: absolute;
  left: 48px;
  bottom: 64px;
  width: 560px;
  max-width: calc(100% - 96px);
  box-sizing: border-box;
  gap: 16px;
}
/* Som i reference/SajtHS5.html: kortet hänger 64px nedanför fotots nederkant. */
.lp-photo--hs .lp-photo__card { width: 600px; bottom: calc(var(--hs-space-64) * -1); }
/* Kortet är nästan vitt på dag; en hårlinje (inga skuggor, DESIGN.md) skiljer dem åt. */
.lp-photo__card.hs-frost { border: 1px solid var(--hs-linje); }

.lp-chips--network li { height: 36px; padding: 0 14px; font-size: 15px; gap: 8px; }
.lp-chips--network li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; }
.lp-chips--network li:nth-child(1)::before { background: var(--hs-granskog); }
.lp-chips--network li:nth-child(1) strong { font-weight: 600; }
.lp-chips--network li:nth-child(2)::before { background: var(--hs-ink); }
.lp-chips--network li:nth-child(3)::before { background: var(--hs-mossa); }
.lp-chips--network li:nth-child(4)::before { background: var(--hs-kontrollkant); }

/* Inläggen (hs/multi-cpt-list, layout spotlight; hs-multi-cpt/spotlight.php). */
:is(.main, .editor-styles-wrapper) .layout-spotlight { display: flex; flex-direction: column; gap: var(--hs-space-48); }
:is(.main, .editor-styles-wrapper) .layout-spotlight > * { margin: 0; }
/* Plats för frostkortet som hänger under fotot. */
:is(.main, .editor-styles-wrapper) .layout-spotlight > .hs-spotlight { margin-bottom: var(--hs-space-64); }
:is(.main, .editor-styles-wrapper):is(.main, .editor-styles-wrapper) .hs-spotlight > * { margin: 0; }
a.hs-spotlight { display: block; color: inherit; text-decoration: none; }
a.hs-spotlight:hover .hs-spotlight__title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
a.hs-spotlight:focus-visible { outline: 3px solid var(--hs-ink); outline-offset: 6px; border-radius: var(--hs-radius-xl); }
:is(.main, .editor-styles-wrapper) .hs-spotlight__more { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--hs-space-24); }
.hs-spotlight__more > li { margin: 0; }
.hs-spotlight__more > li:nth-child(even) { margin-top: var(--hs-space-64); }
.hs-spotlight__card {
  display: flex;
  flex-direction: column;
  gap: var(--hs-space-12);
  height: 100%;
  box-sizing: border-box;
  padding: var(--hs-space-32);
  border-radius: var(--hs-radius-lg);
  background: var(--hs-vit);
  color: var(--hs-ink);
  text-decoration: none;
}
.hs-spotlight__meta { font-size: 13px; font-weight: 600; color: var(--hs-dampad); }
.hs-spotlight__card-title { font-size: 24px; font-weight: 500; line-height: 1.15; letter-spacing: -0.02em; }
.hs-spotlight__card:hover .hs-spotlight__card-title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.hs-spotlight__card:focus-visible { outline: 3px solid var(--hs-ink); outline-offset: 3px; }

/* ---------- Och allt det andra ------------------------------------------ */

.hs-flex-layout.lp-more { border-radius: var(--hs-radius-xl); background: var(--hs-sten); padding: 48px; }
.hs-flex-item.lp-more__text { gap: 16px; }
.lp-more .hs-buttons { margin: 0; }
.lp-more .hs-buttons a { height: 52px; padding: 0 24px; font-size: 16px; }

/* ---------- Uppdrag (CaseCard) ------------------------------------------ */

.hs-flex-item.lp-case { gap: 20px; }
.lp-case__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; }
:is(.main, .editor-styles-wrapper) .lp-case__name { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; }
:is(.main, .editor-styles-wrapper) .lp-case__text { font-size: 18px; line-height: 1.55; color: var(--hs-ink-2); }
:is(.main, .editor-styles-wrapper) .lp-case__img { height: 300px; }
:is(.main, .editor-styles-wrapper) .lp-case__img--xl { height: 560px; }
:is(.main, .editor-styles-wrapper) .lp-case__img--lg { height: 440px; }
.lp-case__meta .is-style-tag { height: 32px; padding: 0 14px; white-space: nowrap; }

.lp-cases-row > .hs-flex-item:nth-child(even) { margin-top: 64px; }
.hs-flex-item.lp-case--sm { gap: 16px; }
:is(.main, .editor-styles-wrapper) .lp-case--sm .lp-case__name { font-size: 24px; }
:is(.main, .editor-styles-wrapper) .lp-case--sm .lp-case__text { font-size: 16px; }

/* ---------- Produkter (ProductCard) ------------------------------------- */

/* Korten kommer från hs/multi-cpt-list (layout "cards", hs-multi-cpt/cards-hs_product.php).
   Färg, padding och platta: hs-brand components.css. Två i bredd, ett under 900 px. */
/* Två i bredd som stora kort (andra kolumnen 160 px ner, som lp-cases-big),
   fyra i bredd från 1400 px (varannat 64 px ner; tre eller två när det bara
   finns så många kort). Aldrig tre under 1400 px: det blir för trångt.
   Trappan följer DESIGN.md grundregel 5; på mobil sveps raden i stället. */
.lp-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--hs-space-32); align-items: start; }
/* Hela den sänkta kolumnen flyttas (top, inte margin), så att nästa rad inte
   väntar på det sänkta kortet; utrymmet läggs till under raden. top i stället
   för transform, som ankomstanimationen använder. */
.lp-products > :nth-child(even) { position: relative; top: var(--stair, 0px); }
@media (900px < width < 1400px) {
  .lp-products { --stair: 160px; padding-bottom: var(--stair); }
  /* Udda antal: sista raden har inget sänkt kort, så inget extra utrymme under. */
  .lp-products:has(> :last-child:nth-child(odd)) { padding-bottom: 0; }
}
@media (width >= 1400px) {
  .lp-products { grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); --stair: var(--hs-space-64); padding-bottom: var(--stair); }
  /* Färre än fyra kort: kolumnerna följer antalet, så att ingen ruta står tom. */
  .lp-products:has(> :nth-child(3):last-child) { --cols: 3; }
  .lp-products:has(> :nth-child(2):last-child) { --cols: 2; }
}
/* Mjuk ankomst när raden syns (main.js sätter klasserna; utan JS eller med
   reducerad rörelse syns korten direkt). Samma rörelse som sc-arrive. */
.lp-products.js-arrive > .hs-product { opacity: 0; }
.lp-products.js-arrive.is-in > .hs-product { animation: sc-arrive 1.1s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 120ms); }
@media (prefers-reduced-motion: reduce) { .lp-products.js-arrive > .hs-product { opacity: 1; animation: none; } }
/* Förloppslinjen på mörk botten. */
.is-style-surface-ink .lp-swipe-progress { background: var(--hs-ink-dampad); }
.is-style-surface-ink .lp-swipe-progress > span { background: var(--hs-mossa); }
/* Texten följer kortets färg (ink, eller vit på blåklint och granskog), på alla ytor. */
:is(.main, .editor-styles-wrapper):is(.main, .editor-styles-wrapper) .hs-product :is(p, h3) { color: inherit; }
:is(.main, .editor-styles-wrapper):is(.main, .editor-styles-wrapper) .hs-product > * { margin: 0; }
/* Långa namn (Domänombudsmannen) avstavas i stället för att gå ut i kortets kant på mobil. */
.hs-product :is(.hs-product__name, .hs-product__text) { overflow-wrap: break-word; }
/* Namnet krymper med kortet (24–32 px) i stället för att avstavas; på mobil avstavas det (900 px-blocket). */
.hs-product { container-type: inline-size; }
@media (width > 900px) { :is(.main, .editor-styles-wrapper):is(.main, .editor-styles-wrapper) .hs-product .hs-product__name { font-size: clamp(24px, 10cqi, 32px); } }
/* Vart kortet leder: adressen eller "Läs mer". */
:is(.main, .editor-styles-wrapper):is(.main, .editor-styles-wrapper) .hs-product .hs-product__go { font-size: 14px; font-weight: 600; }
.hs-product__plate { overflow: hidden; }
.hs-product__plate img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* "Visa hela bilden" (hs-multi-cpt card_image), som uppdragskortens --whole. */
.hs-product__plate--whole img { object-fit: contain; }
:is(.main, .editor-styles-wrapper) .hs-product__plate { height: 260px; border-radius: 14px; color: var(--hs-dampad); }
:is(.main, .editor-styles-wrapper):is(.main, .editor-styles-wrapper) .hs-product .hs-product__text { font-size: 16px; margin-top: -16px; }
/* Namnet länkar till produkten och täcker hela kortet (bara på sajten, inte i editorn). */
.main .hs-product { position: relative; }
.main .hs-product__name a { color: inherit; text-decoration: none; }
.main .hs-product__name a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.main .hs-product:hover .hs-product__name a { text-decoration: underline; text-underline-offset: 4px; }
.main .hs-product__name a:focus-visible { outline: none; }
.main .hs-product:has(.hs-product__name a:focus-visible) { outline: 3px solid var(--hs-vit); outline-offset: 6px; }

/* ---------- Uppdrag (hs-customers: hs/customer-case-grid, stil "Bild") ---- */

/* CaseCard: bild, kundnamn, roll som tagg, två–tre meningar. Kort i rad
   förskjuts i trappa. Pluginet ger markupen; temat ger utseendet. */
:is(.main, .editor-styles-wrapper) .is-style-image.aps-customer-cases-listing { margin: 0; }
:is(.main, .editor-styles-wrapper) .is-style-image .hs-grid-cards { display: grid; gap: 32px; align-items: start; }
:is(.main, .editor-styles-wrapper) .lp-cases-big .hs-grid-cards { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
:is(.main, .editor-styles-wrapper) .lp-cases-big .hs-grid-cards > :nth-child(2) { margin-top: 160px; }
/* hs-blocks låser .hs-grid-cards till flex (!important), så fyra kolumner styrs med kortens bredd. */
:is(.main, .editor-styles-wrapper) :is(.lp-cases-row, .lp-cases-all) .hs-grid-cards { gap: var(--hs-space-24); }
/* Kolumner efter blockets bredd: ett kort får aldrig bli smalare än bildens höjd (300 px).
   4 kolumner från 4×300 + 3×24 = 1272 px, 3 från 948, 2 från 624, annars 1. Trappan förskjuter mellersta/jämna kolumner. */
:is(.main, .editor-styles-wrapper) :is(.lp-cases-row, .lp-cases-all) { container: lp-cases / inline-size; }
:is(.main, .editor-styles-wrapper) :is(.lp-cases-row, .lp-cases-all) .hs-grid-cards > * { flex: 0 0 100%; min-width: 0; }
@container lp-cases (min-width: 624px) {
  :is(.main, .editor-styles-wrapper) :is(.lp-cases-row, .lp-cases-all) .hs-grid-cards > * { flex-basis: calc((100% - var(--hs-space-24)) / 2); }
  :is(.main, .editor-styles-wrapper) :is(.lp-cases-row, .lp-cases-all) .hs-grid-cards > :nth-child(even) { margin-top: 64px; }
}
@container lp-cases (min-width: 948px) {
  :is(.main, .editor-styles-wrapper) :is(.lp-cases-row, .lp-cases-all) .hs-grid-cards > * { flex-basis: calc((100% - 2 * var(--hs-space-24)) / 3); }
  :is(.main, .editor-styles-wrapper) :is(.lp-cases-row, .lp-cases-all) .hs-grid-cards > :nth-child(n) { margin-top: 0; }
  :is(.main, .editor-styles-wrapper) :is(.lp-cases-row, .lp-cases-all) .hs-grid-cards > :nth-child(3n+2) { margin-top: 64px; }
}
@container lp-cases (min-width: 1272px) {
  :is(.main, .editor-styles-wrapper) :is(.lp-cases-row, .lp-cases-all) .hs-grid-cards > * { flex-basis: calc((100% - 3 * var(--hs-space-24)) / 4); }
  :is(.main, .editor-styles-wrapper) :is(.lp-cases-row, .lp-cases-all) .hs-grid-cards > :nth-child(n) { margin-top: 0; }
  :is(.main, .editor-styles-wrapper) :is(.lp-cases-row, .lp-cases-all) .hs-grid-cards > :nth-child(even) { margin-top: 64px; }
}

:is(.main, .editor-styles-wrapper) .is-style-image .hs-customer-case-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0;
  margin: 0;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: var(--hs-ink);
  text-decoration: none;
  overflow: visible;
}
:is(.main, .editor-styles-wrapper) .is-style-image a.hs-customer-case-card:hover .aps-multi-cpt-card__title { text-decoration: underline; text-underline-offset: 4px; }
:is(.main, .editor-styles-wrapper) .is-style-image .hs-customer-case-card:focus-visible { outline: 3px solid var(--hs-ink); outline-offset: 6px; border-radius: var(--hs-radius-lg); }

:is(.main, .editor-styles-wrapper) .is-style-image :is(.hs-customer-case-card__media, .hs-customer-case-card__logo-frame) {
  position: relative;
  margin: 0;
  height: 300px;
  border-radius: var(--hs-radius-lg);
  overflow: hidden;
  background: var(--hs-granskog-mjuk);
}
:is(.main, .editor-styles-wrapper) .lp-cases-big .hs-grid-cards > :nth-child(1) :is(.hs-customer-case-card__media, .hs-customer-case-card__logo-frame) { height: 560px; }
:is(.main, .editor-styles-wrapper) .lp-cases-big .hs-grid-cards > :nth-child(2) :is(.hs-customer-case-card__media, .hs-customer-case-card__logo-frame) { height: 440px; }
:is(.main, .editor-styles-wrapper) .is-style-image .hs-customer-case-card__image { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; }
:is(.main, .editor-styles-wrapper) .is-style-image .hs-customer-case-card__media--whole .hs-customer-case-card__image { object-fit: contain; }
:is(.main, .editor-styles-wrapper) .is-style-image .hs-customer-case-card__logo-frame { display: flex; align-items: center; justify-content: center; color: var(--hs-granskog); }
:is(.main, .editor-styles-wrapper) .is-style-image .hs-customer-case-card__logo { width: 64%; display: flex; justify-content: center; }
:is(.main, .editor-styles-wrapper) .is-style-image .hs-customer-case-card__logo svg { width: 100%; height: auto; max-height: 96px; }

:is(.main, .editor-styles-wrapper) .is-style-image .aps-multi-cpt-card__body { display: flex; flex-direction: column; gap: 14px; padding: 0; }
:is(.main, .editor-styles-wrapper) .is-style-image .aps-multi-cpt-card__title { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; }
:is(.main, .editor-styles-wrapper) .lp-cases-big .aps-multi-cpt-card__title { font-size: 30px; }
:is(.main, .editor-styles-wrapper) .lp-cases-big .aps-multi-cpt-card__body { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 20px 24px; }
:is(.main, .editor-styles-wrapper) .lp-cases-big .aps-multi-cpt-card__excerpt { grid-column: 1 / -1; }
:is(.main, .editor-styles-wrapper) .hs-customer-case-card__type {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 11px;
  border: 1px solid var(--hs-kontrollkant);
  border-radius: var(--hs-radius-pill);
  font-size: 13px;
  white-space: nowrap;
}
:is(.main, .editor-styles-wrapper) .lp-cases-big .hs-customer-case-card__type { height: 32px; padding: 0 14px; font-size: 14px; }
:is(.main, .editor-styles-wrapper) .is-style-image .aps-multi-cpt-card__excerpt { margin: 0; font-size: 16px; line-height: 1.55; color: var(--hs-ink-2); }
:is(.main, .editor-styles-wrapper) .lp-cases-big .aps-multi-cpt-card__excerpt { font-size: 18px; }
:is(.main, .editor-styles-wrapper) .is-style-image .customer-case-grid__link { display: none; }

/* ---------- Kontakt (rubrik, steg i trappa, formulär på vitt kort) ------ */

:is(.main, .editor-styles-wrapper) .hs-flex-item.lp-contact__intro { gap: var(--hs-space-24); }
:is(.main, .editor-styles-wrapper) .hs-flex-item.lp-contact__intro > * { margin: 0; }
:is(.main, .editor-styles-wrapper) .lp-contact__steps-title { margin-top: var(--hs-space-32); font-size: 15px; font-weight: 600; color: var(--hs-granskog); }
:is(.main, .editor-styles-wrapper) .lp-steps { counter-reset: lp-step; display: grid; gap: var(--hs-space-16); padding: 0; list-style: none; }
:is(.main, .editor-styles-wrapper) .lp-steps > li { counter-increment: lp-step; position: relative; min-height: 44px; margin: 0; padding: calc((44px - 1.35em) / 2) 0 0 60px; font-size: 19px; line-height: 1.35; color: var(--hs-ink-2); }
:is(.main, .editor-styles-wrapper) .lp-steps > li::before {
  content: counter(lp-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  border-radius: var(--hs-radius-pill);
  background: var(--hs-granskog-mjuk);
  color: var(--hs-granskog);
  font-weight: 700;
}
:is(.main, .editor-styles-wrapper) .lp-steps > li strong { color: var(--hs-ink); }
/* Sista steget i granskog: det är målet. */
:is(.main, .editor-styles-wrapper) .lp-steps > li:last-child::before { background: var(--hs-granskog); color: var(--hs-vit); }

:is(.main, .editor-styles-wrapper) .hs-flex-item.lp-contact__form { margin-top: var(--hs-space-64); padding: var(--hs-space-40); border-radius: var(--hs-radius-lg); background: var(--hs-vit); }
:is(.main, .editor-styles-wrapper) .lp-contact__form .aps-cta { margin: 0; padding: 0; background: none; border: 0; }
:is(.main, .editor-styles-wrapper) .lp-contact__form .aps-cta .aps-cta__title { font-size: 32px; line-height: 1.05; }
/* Fälten: ett per rad tills kortet är brett nog för två (container query på kortet). */
:is(.main, .editor-styles-wrapper) .hs-flex-item.lp-contact__form { container-type: inline-size; }
:is(.main, .editor-styles-wrapper) .lp-contact__form .aps-form-grid { grid-template-columns: minmax(0, 1fr); }
:is(.main, .editor-styles-wrapper) .lp-contact__form .aps-form-group.full-width { grid-column: 1 / -1; }
@container (min-width: 520px) {
  :is(.main, .editor-styles-wrapper) .lp-contact__form .aps-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Förloppslinjen under svepraden finns bara på mobil (main.js lägger till den). */
.lp-swipe-progress { display: none; }

/* ---------- Kundlogotyper (hs-customers: hs/customers) ------------------- */

:is(.main, .editor-styles-wrapper) .lp-logos.wp-block-hs-customers { margin: 0; }
:is(.main, .editor-styles-wrapper) .lp-logos .hs-customers-grid { display: grid; gap: 12px; justify-items: stretch; width: 100%; }
:is(.main, .editor-styles-wrapper) .lp-logos--3 .hs-customers-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
:is(.main, .editor-styles-wrapper) .lp-logos--2 .hs-customers-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
:is(.main, .editor-styles-wrapper) .lp-logos .hs-customer-logo-item {
  height: 88px;
  margin: 0;
  padding: 0 var(--hs-space-16);
  border-radius: var(--hs-radius-md);
  background: var(--hs-sten);
  display: flex;
  align-items: center;
  justify-content: center;
}
:is(.main, .editor-styles-wrapper) .lp-logos .hs-customer-logo-wrapper { width: 100%; height: auto; display: flex; justify-content: center; }
:is(.main, .editor-styles-wrapper) .lp-logos .hs-customer-logo-wrapper img { width: 100%; max-width: 240px; height: auto; max-height: 40px; object-fit: contain; }

/* ---------- Uppdragssida (single-hs_customer_case.php) ------------------- */

:is(.main, .editor-styles-wrapper) .hs-case-page__head { display: flex; flex-direction: column; gap: var(--hs-space-24); max-width: 960px; }
:is(.main, .editor-styles-wrapper) .hs-case-page__head > * { margin: 0; }
:is(.main, .editor-styles-wrapper) .hs-case-page__links { display: flex; flex-wrap: wrap; padding: 0; list-style: none; margin-inline-start: calc(-1 * var(--hs-space-24)); }
:is(.main, .editor-styles-wrapper) .hs-case-page__media { position: relative; margin: 0; height: 560px; border-radius: var(--hs-radius-xl); overflow: hidden; background: var(--hs-granskog-mjuk); }
:is(.main, .editor-styles-wrapper) .hs-case-page__image { width: 100%; height: 100%; object-fit: cover; display: block; }
:is(.main, .editor-styles-wrapper) .hs-case-page__media--logo { display: flex; align-items: center; justify-content: center; color: var(--hs-granskog); }
:is(.main, .editor-styles-wrapper) .hs-case-page__logo { width: 40%; display: flex; justify-content: center; }
:is(.main, .editor-styles-wrapper) .hs-case-page__logo svg { width: 100%; height: auto; max-height: 120px; }
:is(.main, .editor-styles-wrapper) .hs-case-page__article { max-width: 720px; font-size: 18px; line-height: 1.6; color: var(--hs-ink-2); }
:is(.main, .editor-styles-wrapper) .hs-case-page__journey { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--hs-space-32); }
:is(.main, .editor-styles-wrapper) .hs-case-page__step .is-style-eyebrow { margin-bottom: 8px; }
:is(.main, .editor-styles-wrapper) .hs-case-page__quote { margin: 0; padding: var(--hs-space-48); border-radius: var(--hs-radius-xl); background: var(--hs-granskog-mjuk); }
:is(.main, .editor-styles-wrapper) .hs-case-page__quote blockquote { margin: 0 0 var(--hs-space-20); font-size: 32px; line-height: 1.2; letter-spacing: -0.03em; font-weight: 500; }
:is(.main, .editor-styles-wrapper) .hs-case-page__person { display: flex; align-items: center; gap: 14px; }
:is(.main, .editor-styles-wrapper) .hs-case-page__photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }
:is(.main, .editor-styles-wrapper) .hs-case-page__more { padding-top: 0; }

/* ==========================================================================
   Scener (humansyntax/scene)
   ========================================================================== */

.hs-scene { position: relative; color: var(--hs-ink); }
.hs-scene .f-ink { fill: var(--hs-ink); }
.hs-scene .f-granskog { fill: var(--hs-granskog); }
.hs-scene .f-glod { fill: var(--hs-glod); }
.hs-scene .f-mossa { fill: var(--hs-mossa); }
.hs-scene .f-raps { fill: var(--hs-raps); }
.hs-scene .f-mjuk { fill: var(--hs-granskog-mjuk); }
.hs-scene .f-dag { fill: var(--hs-dag); }
.hs-scene .f-vit { fill: var(--hs-vit); }
.hs-scene .s-granskog, .hs-scene .s-mossa { fill: none; stroke-width: 10; stroke-linecap: round; }
.hs-scene .s-granskog { stroke: var(--hs-granskog); }
.hs-scene .s-mossa { stroke: var(--hs-mossa); }
.sc-bob3 { animation: hs-bob 3.7s ease-in-out infinite 1.6s; }
.sc-arrive { animation: sc-arrive 1.4s cubic-bezier(.2, .7, .2, 1) both .4s; }
@keyframes sc-arrive { from { transform: translateX(26px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sc-bob3, .sc-arrive { animation: none; } }

/* Scen-platta (Vignette-stage). */
.sc-stage {
  position: relative;
  height: 340px;
  border-radius: var(--hs-radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sc-stage--tall { height: 400px; }
.sc-stage--short { height: 320px; }
.sc-stage--mjuk { background: var(--hs-granskog-mjuk); }
.sc-stage--sten { background: var(--hs-sten); }
.sc-stage--ink { background: var(--hs-ink); }
.sc-stage--ink2 { background: var(--hs-ink-2); height: 360px; }
.sc-stage--granskog { background: var(--hs-granskog); }
.sc-stage--djup { background: var(--hs-granskog-djup); height: 380px; border-radius: 22px; }

.sc-card { background: var(--hs-vit); border-radius: 20px; }
.sc-kicker { font-size: 13px; font-weight: 600; color: var(--hs-granskog); }
.sc-muted { font-size: 15px; color: var(--hs-dampad); }
.sc-muted-sm { font-size: 12px; font-weight: 600; color: var(--hs-dampad); }
.sc-pill { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: var(--hs-radius-pill); font-size: 15px; white-space: nowrap; }
.sc-pill--sm { height: 36px; padding: 0 16px; font-size: 13px; font-weight: 600; }
.sc-pill--ink { background: var(--hs-ink); color: var(--hs-vit); height: 40px; font-size: 14px; font-weight: 600; align-self: flex-start; }
.sc-pill--granskog { background: var(--hs-granskog); color: var(--hs-vit); font-weight: 700; }
.sc-pill--line { border: 1px solid var(--hs-linje); color: var(--hs-dampad); }
.sc-check { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.sc-toast .sc-check { stroke: var(--hs-mossa); }
.sc-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.sc-dot--glod { background: var(--hs-glod); }
.sc-dot--mossa { background: var(--hs-mossa); }
.sc-dot--raps { background: var(--hs-raps); }
.sc-chip-float {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px;
  border-radius: var(--hs-radius-pill);
  background: var(--hs-vit);
  color: var(--hs-ink);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.sc-toast {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 10px 12px;
  border-radius: var(--hs-radius-pill);
  background: var(--hs-ink);
  color: var(--hs-vit);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

/* vp-hero */
.sc-hero { position: relative; height: 560px; }
.sc-hero__table { position: absolute; inset: 40px 0 0 30px; border-radius: 32px; background: var(--hs-granskog-mjuk); }
.sc-hero__people { position: absolute; left: 30px; top: 90px; width: calc(100% - 30px); height: auto; }
.sc-shadow circle { fill: var(--hs-ink); opacity: 0.18; }
.sc-note {
  position: absolute;
  background: var(--hs-vit);
  border-radius: 18px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--hs-linje);
}
.sc-hero__new { left: 0; top: 0; }
.sc-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--hs-granskog); color: var(--hs-vit); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; flex: none; }
.sc-note__text { display: flex; flex-direction: column; gap: 2px; }
.sc-note__text b { font-size: 15px; }
.sc-note__text span { font-size: 14px; color: var(--hs-dampad); }
.sc-hero__count { position: absolute; right: -10px; bottom: 26px; background: var(--hs-ink); color: var(--hs-vit); border-radius: 18px; padding: 18px 22px; display: flex; flex-direction: column; gap: 4px; }
.sc-hero__count span { font-size: 13px; color: var(--hs-ink-ljus); }
.sc-hero__count b { font-size: 30px; letter-spacing: -0.02em; }

/* vp-invite */
.sc-invite__back { position: absolute; width: 340px; height: 420px; border-radius: 20px; background: var(--hs-granskog); transform: rotate(5deg) translate(28px, 8px); }
.sc-invite { position: relative; width: 340px; border-radius: 20px; background: var(--hs-vit); transform: rotate(-3deg); overflow: hidden; }
.sc-invite__top { height: 150px; background: var(--hs-ink); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 18px; box-sizing: border-box; }
.sc-invite__top .sc-crowd { width: 120px; height: 74px; fill: var(--hs-glod); }
.sc-invite__body { padding: 26px 28px 28px; display: flex; flex-direction: column; gap: 8px; }
.sc-invite__title { font-size: 40px; font-weight: 700; letter-spacing: -0.035em; line-height: 1; }
.sc-invite__body .sc-pill--ink { margin-top: 12px; }

/* vp-rsvp */
.sc-rsvp { width: 380px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.sc-rsvp__q { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.sc-rsvp__answers { display: flex; gap: 8px; }
.sc-rsvp__plus { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; border-top: 1px solid var(--hs-sten); font-size: 15px; }
.sc-stepper { display: flex; align-items: center; gap: 14px; font-weight: 700; }
.sc-stepper span { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--hs-linje); display: flex; align-items: center; justify-content: center; font-weight: 400; }
.sc-rsvp__toast { right: 36px; bottom: 40px; }
.sc-person { width: 10px; height: 24px; fill: var(--hs-glod); }

/* vp-leaderboard */
.sc-board { width: 340px; border-radius: 18px; background: var(--hs-dag); color: var(--hs-ink); padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.sc-board__title { font-size: 13px; font-weight: 600; color: var(--hs-dampad); padding: 0 4px 4px; }
.sc-board__row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--hs-vit); font-size: 15px; }
.sc-board__row.is-you { background: var(--hs-granskog-mjuk); font-weight: 700; }
.sc-board__av { width: 30px; height: 30px; border-radius: 50%; background: var(--hs-sten); color: var(--hs-ink-2); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.is-you .sc-board__av { background: var(--hs-granskog); color: var(--hs-vit); }
.sc-board__name { flex: 1; font-weight: 500; }
.is-you .sc-board__name { font-weight: 700; }
.sc-board__new { position: absolute; left: 28px; top: 28px; }
.sc-board__dup { right: 24px; bottom: 28px; }

/* vp-ticket */
.sc-ticket { position: relative; width: 420px; height: 210px; display: flex; transform: rotate(-4deg); }
.sc-ticket__main { flex: 1; background: var(--hs-vit); border-radius: 18px 0 0 18px; padding: 26px; display: flex; flex-direction: column; justify-content: space-between; }
.sc-ticket__head { display: flex; flex-direction: column; gap: 4px; }
.sc-ticket__title { font-size: 32px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.sc-ticket__main .sc-muted { font-size: 14px; }
.sc-ticket__stub { width: 160px; background: var(--hs-granskog-mjuk); border-radius: 0 18px 18px 0; border-left: 2px dashed var(--hs-ink); display: flex; align-items: center; justify-content: center; }
.sc-qr { width: 112px; height: 112px; }
.sc-ticket__notch { position: absolute; left: 252px; width: 28px; height: 28px; border-radius: 50%; background: var(--hs-ink); }
.sc-ticket__notch--top { top: -14px; }
.sc-ticket__notch--bottom { bottom: -14px; }

/* vp-reminders */
.sc-mails { display: flex; flex-direction: column; gap: 16px; }
.sc-mail { width: 360px; border-radius: 16px; background: var(--hs-vit); padding: 18px 20px; display: flex; align-items: center; gap: 14px; }
.sc-mail--1 { transform: rotate(-2deg) translateX(-24px); }
.sc-mail--2 { transform: rotate(1.5deg) translateX(24px); }
.sc-mail--3 { transform: rotate(-1deg) translateX(-8px); }
.sc-mail__ic { width: 42px; height: 42px; flex: none; border-radius: 50%; background: var(--hs-granskog-mjuk); display: flex; align-items: center; justify-content: center; }
.sc-mail__ic .sc-crowd { width: 26px; height: 16px; fill: var(--hs-granskog); }
.sc-mail__text { display: flex; flex-direction: column; gap: 2px; }
.sc-mail__text b { font-size: 17px; }

/* vp-newsletter */
.sc-letter { width: 380px; border-radius: 20px; background: var(--hs-vit); color: var(--hs-ink); overflow: hidden; transform: rotate(-2deg); }
.sc-letter__top { height: 120px; background: var(--hs-granskog); color: var(--hs-vit); display: flex; align-items: flex-end; padding: 18px 24px; box-sizing: border-box; font-size: 26px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.sc-letter__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; }
.sc-line { display: block; height: 10px; border-radius: 5px; background: var(--hs-sten); }
.sc-letter__body .sc-pill { margin-top: 8px; align-self: flex-start; }
.sc-letter__segs { position: absolute; left: 36px; top: 40px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.sc-letter__tag { position: absolute; right: 36px; bottom: 40px; }

/* vp-sms */
.sc-sms { width: 360px; display: flex; flex-direction: column; gap: 10px; }
.sc-sms__time { align-self: center; font-size: 12px; font-weight: 600; color: var(--hs-granskog-mjuk); }
.sc-sms__in { align-self: flex-start; max-width: 290px; padding: 14px 18px; border-radius: 22px 22px 22px 6px; background: var(--hs-vit); color: var(--hs-ink); font-size: 16px; line-height: 1.4; }
.sc-sms__out { align-self: flex-end; max-width: 200px; padding: 14px 18px; border-radius: 22px 22px 6px 22px; background: var(--hs-ink); color: var(--hs-vit); font-size: 16px; line-height: 1.4; }

/* hs-gathering, hs-mark */
.sc-gathering { width: 100%; height: auto; display: block; }
.sc-mark { width: 130px; height: 130px; display: block; }

/* Ikoner i dörrkorten */
.sc-icon { display: block; height: 44px; }
.sc-icon--event { width: 72px; fill: var(--hs-ink); }
.sc-icon--mail { width: 51px; fill: none; stroke: var(--hs-mossa); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }

/* Uppdragsbilder som scener */
.sc-case { position: relative; height: 300px; border-radius: var(--hs-radius-lg); overflow: hidden; }
.sc-case--mjuk { background: var(--hs-granskog-mjuk); }
.sc-case--granskog { background: var(--hs-granskog); }
.sc-case--stack { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.sc-case--stack .sc-chip-float { height: 36px; }
.sc-waves { position: absolute; inset: 0; width: 100%; height: 100%; }
.sc-case__label { position: absolute; left: 20px; top: 20px; }
.sc-logo-ph { margin-top: 6px; height: 28px; padding: 0 10px; display: flex; align-items: center; border: 1px dashed var(--hs-mossa); border-radius: 8px; font-size: 11px; letter-spacing: 0.04em; color: var(--hs-mossa); }

/* ==========================================================================
   Mellanbredd och mobil
   ========================================================================== */

@media (max-width: 1200px) {
  :is(.main, .editor-styles-wrapper) .lp-stair__row { font-size: 64px; }
  .lp-stair--steps .lp-stair__row:nth-of-type(3) { padding-left: 100px; }
  .lp-stair--steps .lp-stair__row:nth-of-type(4) { padding-left: 200px; }
  .lp-stair--steps .lp-stair__row:nth-of-type(5) { padding-left: 300px; }
}

/* hs/flex-layout staplas under 900 px (mobileBreakpoint i blocket). */
@media (max-width: 900px) {
  /* Produkterna: en svepbar rad, som uppdragen. */
  .lp-products {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--site-edge);
    gap: var(--hs-space-16);
    margin-inline: calc(var(--site-edge) * -1);
    padding-inline: var(--site-edge);
    scrollbar-width: none;
  }
  .lp-products > .hs-product { flex: 0 0 78%; scroll-snap-align: start; }
  .hs-product .hs-product__name { hyphens: auto; }
  :is(.main, .editor-styles-wrapper) .hs-flex-layout.lp-head.is-mobile-stacked { gap: var(--hs-space-16); }
  .hs-flex-item.lp-head__aside { align-items: flex-start; }
  .lp-pair > .hs-flex-item:is(.is-offset, .is-offset-lg, .is-offset-xl) { margin-top: 0; }
  .lp-pair--rev > .hs-flex-item:first-child { order: 2; }
  .lp-stair--principles .hs-scene--hs-mark { display: none; }

  /* Uppdrag: de två största staplas, resten i en svepbar rad. */
  :is(.main, .editor-styles-wrapper) .hs-flex-layout.lp-cases-row.is-mobile-stacked {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: var(--hs-space-16);
    margin-inline: calc(var(--site-edge) * -1);
    padding-inline: var(--site-edge);
    scrollbar-width: none;
    scroll-padding-inline: var(--site-edge);
  }
  :is(.main, .editor-styles-wrapper) .lp-cases-row.is-mobile-stacked > .hs-flex-item { flex: 0 0 78%; width: auto; scroll-snap-align: start; }
  .lp-cases-row > .hs-flex-item:nth-child(even) { margin-top: 0; }
}

@media (max-width: 760px) {
  /* Väger mer än hs-blocks mobilregler för .hs-flex-item .wp-block-*. */
  :is(.main, .editor-styles-wrapper):is(.main, .editor-styles-wrapper) .lp-display { line-height: 1; }
  :is(.main, .editor-styles-wrapper):is(.main, .editor-styles-wrapper) .lp-lead { font-size: 18px; }
  :is(.main, .editor-styles-wrapper):is(.main, .editor-styles-wrapper) .lp-h2-xl { font-size: 36px; line-height: 1.02; }
  :is(.main, .editor-styles-wrapper):is(.main, .editor-styles-wrapper) .lp-h2 { font-size: 32px; line-height: 1.05; }
  :is(.main, .editor-styles-wrapper):is(.main, .editor-styles-wrapper) .lp-h2-sm { font-size: 32px; line-height: 1.05; }
  :is(.main, .editor-styles-wrapper):is(.main, .editor-styles-wrapper) .lp-wide__title { font-size: 32px; line-height: 1.05; }
  :is(.main, .editor-styles-wrapper):is(.main, .editor-styles-wrapper) .lp-feat__title { font-size: 28px; line-height: 1.1; }
  :is(.main, .editor-styles-wrapper):is(.main, .editor-styles-wrapper) :is(.lp-text, .lp-aside, .lp-case__text, .hs-product__text) { font-size: 16px; line-height: 1.55; }
  :is(.main, .editor-styles-wrapper):is(.main, .editor-styles-wrapper) .lp-door__title { font-size: 34px; line-height: 1; }
  :is(.main, .editor-styles-wrapper):is(.main, .editor-styles-wrapper) .lp-case__name { font-size: 26px; line-height: 1.1; }
  :is(.main, .editor-styles-wrapper):is(.main, .editor-styles-wrapper) .hs-product__name { font-size: 32px; line-height: 1; }
  .hs-hero-block .lp-hero__text { gap: var(--hs-space-24); }
  :is(.main, .editor-styles-wrapper) .hs-section { gap: var(--hs-space-40); }
  .hs-hero-block { grid-template-columns: minmax(0, 1fr); gap: var(--hs-space-32); }

  :is(.main, .editor-styles-wrapper) .lp-logo { height: 72px; }

  .hs-flex-item.lp-door { min-height: 0; padding: var(--hs-space-32) var(--hs-space-24); }
  :is(.main, .editor-styles-wrapper) .lp-door__title { font-size: 34px; }
  :is(.main, .editor-styles-wrapper) .lp-door__text { font-size: 17px; }

  /* Trappan på mobil: 34 px, 16 px indrag per steg. */
  :is(.main, .editor-styles-wrapper) .hs-section:is(.is-style-surface-ink, .is-style-surface-granskog, .lp-products-section) { --sec-py: 56px; }
  :is(.main, .editor-styles-wrapper) .hs-section:has(.lp-stair--principles) { padding-block: 56px; }
  :is(.main, .editor-styles-wrapper) .lp-stair__row, :is(.main, .editor-styles-wrapper) .lp-stair--principles .lp-stair__row { font-size: 34px; }
  .lp-stair--steps .lp-stair__row em { display: block; font-size: 16px; vertical-align: baseline; margin-bottom: 8px; }
  .lp-stair .lp-stair__row:nth-of-type(3) { padding-left: 16px; }
  .lp-stair .lp-stair__row:nth-of-type(4) { padding-left: 32px; }
  .lp-stair .lp-stair__row:nth-of-type(5) { padding-left: 48px; }
  :is(.main, .editor-styles-wrapper):is(.main, .editor-styles-wrapper) .lp-stair__eyebrow { margin-bottom: var(--hs-space-20); }

  .hs-flex-layout.lp-wide, .hs-flex-layout.lp-more { padding: var(--hs-space-24); }

  /* Frostkortet hamnar under fotot. */
  :is(.main, .editor-styles-wrapper) .lp-photo__img, :is(.main, .editor-styles-wrapper) .lp-photo--hs .lp-photo__img { height: 300px; }
  :is(.main, .editor-styles-wrapper):is(.main, .editor-styles-wrapper) .lp-photo > .lp-photo__card { position: static; width: auto; max-width: none; margin: calc(var(--hs-space-40) * -1) 12px 0; padding: var(--hs-space-24); }

  :is(.main, .editor-styles-wrapper) .lp-case__img--xl, :is(.main, .editor-styles-wrapper) .lp-case__img--lg { height: 320px; }
  .lp-case__meta { flex-direction: column; align-items: flex-start; gap: 10px; }
  :is(.main, .editor-styles-wrapper) .lp-case__name { font-size: 26px; }
  :is(.main, .editor-styles-wrapper) .lp-case__text { font-size: 16px; }
  :is(.main, .editor-styles-wrapper) .lp-cases-row .lp-case__img, .lp-cases-row .sc-case { height: 220px; }

  :is(.main, .editor-styles-wrapper) .hs-product__plate { height: 180px; }

  /* Uppdrag: de två största staplas, resten i en svepbar rad. */
  :is(.main, .editor-styles-wrapper) .lp-cases-big .hs-grid-cards { grid-template-columns: 1fr; }
  :is(.main, .editor-styles-wrapper) .lp-cases-big .hs-grid-cards > :nth-child(2) { margin-top: 0; }
  :is(.main, .editor-styles-wrapper) .lp-cases-big .hs-grid-cards > :nth-child(n) :is(.hs-customer-case-card__media, .hs-customer-case-card__logo-frame) { height: 320px; }
  :is(.main, .editor-styles-wrapper) .lp-cases-big .aps-multi-cpt-card__body { display: flex; }
  :is(.main, .editor-styles-wrapper) .lp-cases-big .aps-multi-cpt-card__title { font-size: 26px; }
  :is(.main, .editor-styles-wrapper) .lp-cases-row .hs-grid-cards {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--site-edge);
    gap: var(--hs-space-16);
    margin-inline: calc(var(--site-edge) * -1);
    padding-inline: var(--site-edge);
    scrollbar-width: none;
  }
  :is(.main, .editor-styles-wrapper) .lp-cases-row .hs-grid-cards > :nth-child(n) { flex: 0 0 78%; scroll-snap-align: start; margin-top: 0; }
  :is(.main, .editor-styles-wrapper) .lp-cases-row .hs-grid-cards > * :is(.hs-customer-case-card__media, .hs-customer-case-card__logo-frame) { height: 220px; }
  /* Inläggen: de mindre korten i en svepbar rad. */
  :is(.main, .editor-styles-wrapper) .layout-spotlight { gap: var(--hs-space-32); }
  :is(.main, .editor-styles-wrapper) .layout-spotlight > .hs-spotlight { margin-bottom: 0; }
  :is(.main, .editor-styles-wrapper) .hs-spotlight__more {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--site-edge);
    gap: var(--hs-space-16);
    margin-inline: calc(var(--site-edge) * -1);
    padding-inline: var(--site-edge);
    scrollbar-width: none;
  }
  .hs-spotlight__more > li:nth-child(n) { flex: 0 0 78%; scroll-snap-align: start; margin-top: 0; }
  .hs-spotlight__card { padding: var(--hs-space-24); }
  .hs-spotlight__card-title { font-size: 20px; }
  .hs-spotlight__all .hs-btn { width: 100%; justify-content: center; }
  .lp-swipe-progress { display: block; position: relative; height: 2px; margin-top: var(--hs-space-24); border-radius: var(--hs-radius-pill); background: var(--hs-kontrollkant); }
  .lp-swipe-progress[hidden] { display: none; }
  :is(.main, .editor-styles-wrapper) .lp-steps > li { font-size: 17px; }
  :is(.main, .editor-styles-wrapper) .hs-flex-item.lp-contact__form { margin-top: 0; padding: var(--hs-space-24) var(--hs-space-20); }
  :is(.main, .editor-styles-wrapper) .lp-contact__form .aps-cta .aps-cta__title { font-size: 28px; }
  :is(.main, .editor-styles-wrapper) .hs-customer-case-card__type { font-size: 14px; }
  .lp-swipe-progress > span { position: absolute; inset-block: 0; left: calc(var(--p, 0) * (100% - var(--w, 100%))); width: var(--w, 100%); border-radius: inherit; background: var(--hs-granskog); }
  :is(.main, .editor-styles-wrapper):is(.main, .editor-styles-wrapper) .lp-logos .hs-customers-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  :is(.main, .editor-styles-wrapper) .lp-logos .hs-customer-logo-item { height: 72px; }
  :is(.main, .editor-styles-wrapper) .hs-case-page__media { height: 300px; }
  :is(.main, .editor-styles-wrapper) .hs-case-page__journey { grid-template-columns: 1fr; }
  :is(.main, .editor-styles-wrapper) .hs-case-page__quote { padding: var(--hs-space-24); }
  :is(.main, .editor-styles-wrapper) .hs-case-page__quote blockquote { font-size: 24px; }

  /* Scener skalas ned. */
  .sc-hero { height: 400px; }
  .sc-hero__table { inset: 30px 0 0 0; }
  .sc-hero__people { left: 0; top: 70px; width: 100%; }
  .sc-hero__new { padding: 12px 14px; }
  .sc-hero__count { right: 8px; bottom: 16px; padding: 14px 16px; }
  .sc-hero__count b { font-size: 24px; }
  .sc-stage, .sc-stage--tall, .sc-stage--short, .sc-stage--ink2, .sc-stage--djup { height: 300px; }
  .sc-stage > :not(.sc-toast):not(.sc-chip-float):not(.sc-invite__back):not(.sc-letter__segs):not(.sc-letter__tag) { max-width: calc(100% - 40px); }
  .sc-invite__back { width: 240px; height: 300px; }
  .sc-invite { width: 260px; }
  .sc-invite__top { height: 100px; }
  .sc-invite__title { font-size: 30px; }
  .sc-rsvp { padding: 20px; }
  .sc-rsvp__answers { flex-wrap: wrap; }
  .hs-scene--vp-rsvp .sc-stage { height: 380px; align-items: flex-start; padding-top: 24px; }
  .sc-rsvp__toast { right: 16px; bottom: 16px; }
  .hs-scene--vp-newsletter .sc-stage { align-items: flex-end; padding-bottom: 28px; height: 340px; }
  .sc-ticket { width: 300px; height: 160px; }
  .sc-ticket__main { padding: 18px; }
  .sc-ticket__title { font-size: 24px; }
  .sc-ticket__stub { width: 110px; }
  .sc-qr { width: 80px; height: 80px; }
  .sc-ticket__notch { left: 176px; }
  .sc-mail { width: 290px; padding: 14px 16px; }
  .sc-mail__text b { font-size: 15px; }
  .sc-letter { width: 280px; }
  .sc-letter__top { height: 90px; }
  .sc-letter__segs { left: 16px; top: 16px; }
  .sc-letter__tag { right: 16px; bottom: 16px; }
  .sc-board__new { left: 12px; top: 12px; }
  .sc-board__dup { right: 12px; bottom: 12px; }
}
