/* Esigned – startsida
   Avtalets formspråk: hårfina linjer, signaturrader och dokumentet i serif mot en djup bläckton.
   Kobolten bär varumärket, grönt betyder "signerat". Tider och koder sätts i mono.

   Typsnitt (självhostade, OFL): Mona Sans och Mona Sans Mono från github/mona-sans,
   Instrument Serif från Instrument/instrument-serif. Headern behåller sina egna typsnitt. */

@font-face {
  font-family: 'Mona Sans';
  src: url("../fonts/MonaSans-VF.woff2") format("woff2");
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-display: swap;
}
@font-face {
  font-family: 'Mona Sans Mono';
  src: url("../fonts/MonaSansMono-VF.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url("../fonts/InstrumentSerif-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url("../fonts/InstrumentSerif-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #0B1534;
  --text: #3B4663;
  --muted: #596580;
  --bg: #fff;
  --surface: #F5F7FC;
  --surface-2: #ECF0F9;
  --line: #E1E7F3;
  --line-strong: #C9D2E5;
  --white: #fff;

  --brand: #2340D9;
  --brand-dark: #1A2FAE;
  --brand-hi: #4C6BFF;
  --brand-glow: #9DB0FF;
  --brand-tint: #EAEFFF;
  --fx: var(--ink); /* färg på herons bakgrundsanimation (samma som Logga in-knappen) */
  --fx-glow: var(--brand-hi); /* skenet som driver i hörnet */

  --ok: #0A7A52;
  --ok-tint: #E4F5EC;
  --ok-glow: #5BE3A5; /* grönt på mörk yta */
  --warn: #9A5200;
  --warn-tint: #FDF1DC;

  --deep: #070E24; /* djupaste ytan (footer) */
  --on-ink: #C9D0E6;
  --on-ink-muted: #8F9BC2;

  --font-sans: 'Mona Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --font-mono: 'Mona Sans Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --container: 1200px;
  --gutter: 32px;
  --radius: 20px;
  --radius-sm: 12px;
  --logo-w: 128px;
  --header-gap: 32px;

  --shadow-1: 0 1px 2px rgba(11, 21, 52, .05), 0 12px 28px -16px rgba(11, 21, 52, .16);
  --shadow-2: 0 1px 2px rgba(11, 21, 52, .06), 0 32px 64px -28px rgba(11, 21, 52, .3);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--font-sans);
  font-optical-sizing: auto;
  font-synthesis: none; /* Instrument Serif finns bara i en vikt – inga falska fetstilar */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--brand); color: var(--white); }
html { scrollbar-color: var(--line-strong) transparent; }
input, textarea { caret-color: var(--brand); }
time, code { font-variant-numeric: tabular-nums; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 4px; }
ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3 {
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}

h1, h2 {
  font-weight: 560;
  font-stretch: 104%;
  line-height: 1;
  letter-spacing: -0.045em;
}

h3 {
  font: 650 20px/1.3 var(--font-sans);
  letter-spacing: -0.02em;
}

/* Accentordet i rubriken: kursiv serif mot den raka groteskens, som en namnteckning i ett avtal */
h1 em, h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-stretch: 100%;
  font-size: 1.12em;
  line-height: .9;
  letter-spacing: -0.02em;
}

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

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

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


.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.arrow {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .2s ease;
}

/* ---------- Knappar ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font: 620 15px/1 var(--font-sans);
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s, border-color .18s, color .18s, box-shadow .18s, transform .12s ease;
}
.btn:hover .arrow { transform: translateX(3px); }
.btn:active { transform: scale(.98); }

.btn--brand {
  background: var(--brand);
  color: var(--white);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 12px 24px -12px rgba(35, 64, 217, .75);
}
.btn--brand:hover { background: var(--brand-dark); }

.btn--ghost {
  background: var(--white);
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn--ghost:hover,
.btn--ghost[aria-expanded="true"] {
  border-color: var(--ink);
  box-shadow: var(--shadow-1);
}

.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--brand-tint); }

.btn--outline-light {
  border-color: rgba(255, 255, 255, .5);
  color: var(--white);
}
.btn--outline-light:hover { border-color: var(--white); background: rgba(255, 255, 255, .1); }

.site-header .btn { font-weight: 700; letter-spacing: -0.005em; }

.btn--sm { min-height: 38px; padding: 0 14px; gap: 8px; font-size: 14px; border-radius: 10px; }
.btn--sm .icon { width: 18px; height: 18px; }

/* ---------- Header ---------- */

.site-header {
  --font-sans: 'TikTok Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  position: relative;
  z-index: 20;
  background: var(--white);
  font-family: var(--font-sans);
  font-optical-sizing: auto;
  font-synthesis: initial;
}

.header-top { border-bottom: 1px solid var(--line); }

.header-top__inner {
  display: flex;
  align-items: center;
  gap: var(--header-gap);
  min-height: 64px;
}

.logo { display: block; width: var(--logo-w); flex: none; }
.logo img { width: 100%; height: auto; }

.audience {
  display: flex;
  gap: 22px;
  align-self: stretch;
}
.audience a {
  position: relative;
  display: flex;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.audience a:hover,
.audience a[aria-current="true"] { color: var(--ink); }
.audience a[aria-current="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--brand);
}

.header-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

/* Språkval: rullgardin med flagga och kod */
.lang-menu { position: relative; }
.lang { gap: 7px; padding: 0 10px 0 12px; }
.lang .flag { width: 18px; height: 18px; flex: none; }
.lang__code { letter-spacing: .02em; }
.lang__chev { width: 14px; height: 14px; flex: none; transition: transform .2s ease; }
.lang[aria-expanded="true"] .lang__chev { transform: rotate(180deg); }
.lang-list {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  z-index: 60;
  width: min(480px, calc(100vw - 24px));
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 18px 44px -12px rgba(11, 21, 52, .28);
  color: #0B1534;
  text-align: start;
}
.lang-list[hidden] { display: none; }
.lang-search { position: relative; display: flex; align-items: center; margin-bottom: 8px; }
.lang-search__icon { position: absolute; inset-inline-start: 12px; width: 17px; height: 17px; color: #5F6A85; pointer-events: none; }
.lang-search input {
  width: 100%;
  min-height: 42px;
  padding-block: 0;
  padding-inline: 38px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #F7F8FC;
  color: inherit;
  font: inherit;
  font-size: 15px;
}
.lang-search input:focus { outline: 2px solid var(--brand); outline-offset: -1px; background: #fff; }
.lang-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.lang-grid li {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 48px;
  padding: 7px 10px;
  border-radius: 10px;
  cursor: pointer;
}
.lang-grid li[hidden] { display: none; }
.lang-grid li:hover, .lang-grid li:focus-visible { background: var(--brand-tint); color: var(--brand); outline: none; }
.lang-grid .flag { width: 20px; height: 20px; flex: none; }
.lang-opt__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.lang-opt__name { font-size: 14.5px; font-weight: 600; overflow-wrap: break-word; }
.lang-opt__sub { margin-top: 2px; color: #5F6A85; font-size: 12.5px; font-weight: 450; overflow-wrap: break-word; }
.lang-opt__sub[hidden] { display: none; }
.lang-grid li[aria-selected="true"] { background: var(--brand-tint); }
.lang-grid li[aria-selected="true"]::after {
  content: "";
  flex: none;
  width: 6px; height: 10px;
  margin-inline: auto 4px;
  border: solid var(--brand);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translateY(-2px);
}
.lang-empty { margin: 6px 4px 4px; color: #5F6A85; font-size: 14px; }
.lang-empty[hidden] { display: none; }
/* Pilar pekar åt läsriktningen även på arabiska och persiska */
[dir="rtl"] svg.arrow { scale: -1 1; }

.header-main {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 46px;
  padding-left: calc(var(--logo-w) + var(--header-gap));
}

.main-nav a,
.main-nav button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: 600 14px/1.2 var(--font-sans);
  text-decoration: none;
  cursor: pointer;
}
.main-nav a:hover,
.main-nav button:hover { color: var(--brand); }

.icon--chevron { width: 14px; height: 14px; transition: transform .2s; }
[aria-expanded="true"] > .icon--chevron { transform: rotate(180deg); }

.nav-item { position: relative; }

.dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: -16px;
  z-index: 30;
  min-width: 280px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow-2);
}
.dropdown[hidden] { display: none; }
.dropdown a {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.dropdown a:hover { background: var(--brand-tint); color: var(--brand); }

.menu-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  padding: 48px 0 56px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow-2);
}
.menu-panel[hidden] { display: none; }

.menu-panel__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}
.menu-panel h2 {
  margin-bottom: 18px;
  color: var(--muted);
  font: 500 12px/1.2 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.menu-panel li + li { margin-top: 12px; }
.menu-panel a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.menu-panel a:hover { color: var(--brand); }


/* ---------- Sidan ----------
   Dokumentet är bildspråket: serif för det som står på papperet, sans för gränssnittet,
   hårfina linjer som i ett avtal. Guilloché-motivet (brand/canvas) är sidans enda bildyta. */

main h2 {
  font-size: clamp(36px, 4.6vw, 64px);
}

.section { padding: 112px 0; }
.section + .section { border-top: 1px solid var(--line); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 64px;
  align-items: start;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-block: 11px;
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
}
.text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.text-link:hover .arrow { transform: translateX(3px); }

/* ---------- Hero ---------- */

/* Mörk säkerhetsyta i lager, bakifrån: siden i WebGL (.hero__silk, hero-silk.js), guilloché-linjer
   (.hero__fx, hero-fx.js), UV-lampans dolda vattenmärke (.hero__uv), korn (::before) och en tunn
   certifikatram med mikrotext (.hero__frame). Utan JS bär den statiska glöden ytan själv. */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  align-content: center;
  min-height: clamp(720px, calc(100svh - 112px), 1080px);
  padding: clamp(88px, 10vh, 148px) 0 clamp(104px, 12vh, 168px);
  background:
    radial-gradient(60% 70% at 78% 46%, rgba(76, 107, 255, .26), transparent 70%),
    radial-gradient(40% 50% at 8% 100%, rgba(35, 64, 217, .18), transparent 70%),
    var(--deep);
  color: var(--on-ink);
}
.hero::after { /* tunn ljuskant mot nästa sektion */
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  z-index: 4;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(157, 176, 255, .35), transparent);
}
.hero::before { /* filmkorn: tar bort den digitala släta ytan */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .07;
  mix-blend-mode: overlay;
  pointer-events: none;
}
/* Innehållet följer headerns raster: rubriken börjar under loggan, arket slutar under Meny */
.hero > .container {
  position: relative;
  z-index: 5;
}

.hero__silk {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.6s ease;
}
.hero.has-silk .hero__silk { opacity: 1; }
/* Sidenet dämpas bakom texten så att rubrik och ingress står på en lugn yta; det lyser upp mot arket */
.hero__silk {
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, .4) 0%, rgba(0, 0, 0, .55) 38%, #000 66%);
          mask-image: linear-gradient(90deg, rgba(0, 0, 0, .4) 0%, rgba(0, 0, 0, .55) 38%, #000 66%);
}

/* UV-lampan: ett mönster som bara syns där ljuset (pekaren) faller, som när man lyser på en sedel */
.hero__uv {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23A99BFF' stroke-width='.6'%3E%3Cpath d='M0 48L48 0L96 48L48 96Z'/%3E%3Cpath d='M24 48L48 24L72 48L48 72Z' opacity='.5'/%3E%3C/g%3E%3Cpath d='M38.5 55.5c2.2-.6 4.8-1.9 6.5-3.6 1.5-1.5 1.5-3.6-.2-3.6-1.9 0-3.4 2.1-3.2 4 .2 2.2 1.9 3.2 3.8 3 1.9-.2 3.4-1 4.7-2.3' fill='none' stroke='%23C9C0FF' stroke-width='.9' stroke-linecap='round'/%3E%3Ccircle cx='0' cy='0' r='1.2' fill='%23C9C0FF'/%3E%3Ccircle cx='96' cy='0' r='1.2' fill='%23C9C0FF'/%3E%3Ccircle cx='0' cy='96' r='1.2' fill='%23C9C0FF'/%3E%3Ccircle cx='96' cy='96' r='1.2' fill='%23C9C0FF'/%3E%3C/svg%3E") 0 0 / 96px 96px;
  opacity: .55;
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(circle 300px at var(--px, 72%) var(--py, 45%), #000 0%, rgba(0, 0, 0, .45) 40%, transparent 100%);
          mask-image: radial-gradient(circle 300px at var(--px, 72%) var(--py, 45%), #000 0%, rgba(0, 0, 0, .45) 40%, transparent 100%);
  pointer-events: none;
}
.hero:not(.has-silk) .hero__uv { display: none; }

/* Certifikatram: hårfin linje, hörnvinklar och en rad mikrotext som glider längs nederkanten */
.hero__frame {
  position: absolute;
  inset: 20px;
  z-index: 4;
  border: 1px solid rgba(157, 176, 255, .1);
  border-radius: 6px;
  pointer-events: none;
  --c: rgba(200, 212, 255, .55);
  background:
    linear-gradient(var(--c), var(--c)) 0 0 / 22px 1px,
    linear-gradient(var(--c), var(--c)) 0 0 / 1px 22px,
    linear-gradient(var(--c), var(--c)) 100% 0 / 22px 1px,
    linear-gradient(var(--c), var(--c)) 100% 0 / 1px 22px,
    linear-gradient(var(--c), var(--c)) 0 100% / 22px 1px,
    linear-gradient(var(--c), var(--c)) 0 100% / 1px 22px,
    linear-gradient(var(--c), var(--c)) 100% 100% / 22px 1px,
    linear-gradient(var(--c), var(--c)) 100% 100% / 1px 22px;
  background-repeat: no-repeat;
}
.hero__micro {
  position: absolute;
  left: 48px;
  right: 48px;
  bottom: 14px;
  display: flex;
  overflow: hidden;
  color: rgba(157, 176, 255, .38);
  font: 500 9.5px/1 var(--font-mono);
  letter-spacing: .32em;
  white-space: nowrap;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.hero__micro span { flex: none; padding-right: .32em; }
@media (prefers-reduced-motion: no-preference) {
  .hero__micro span { animation: micro 90s linear infinite; }
}
@keyframes micro { to { transform: translateX(-100%); } }

.hero__fx {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, .28) 0%, rgba(0, 0, 0, .45) 34%, #000 62%);
          mask-image: linear-gradient(90deg, rgba(0, 0, 0, .28) 0%, rgba(0, 0, 0, .45) 34%, #000 62%);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(48px, 6vw, 128px);
  align-items: center;
}

/* Rubriken: lugn, saklig grotesk i två rader; slutordet i varumärkets ljusa blå i stället för effekter */
.hero h1 {
  color: var(--white);
  font-size: clamp(40px, 4.9vw, 84px);
  font-weight: 560;
  font-stretch: 100%;
  line-height: 1.02;
  letter-spacing: -0.026em;
  word-spacing: .04em;
  text-wrap: nowrap;
}
.hero h1 em {
  display: block;
  color: #A9B8FF;
  font: inherit;
  letter-spacing: inherit;
  word-spacing: inherit;
}

.hero .lead {
  max-width: 29em;
  margin-top: clamp(24px, 2.2vw, 36px);
  color: #DCE2F5;
  font-size: clamp(19px, 1.3vw, 22px);
  line-height: 1.55;
  letter-spacing: -0.005em;
}
.lead {
  max-width: 30em;
  margin: 28px 0 0;
  color: var(--text);
  font-size: 20px;
  line-height: 1.55;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(40px, 3.4vw, 52px);
}
.hero .btn { min-height: 56px; padding-inline: 28px; font-size: 16px; }
.hero .btn--brand {
  background: var(--brand-hi);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 18px 40px -14px rgba(76, 107, 255, .9);
}
.hero .btn--brand:hover { background: var(--brand); }
.hero :focus-visible { outline-color: var(--white); }

/* Dokumentet svävar fritt på ytan, sigill och kvitto hör till det */
.stage {
  display: flex;
  justify-content: flex-end;
}

.sheet {
  position: relative;
  width: min(100%, 540px);
}

.paper {
  position: relative;
  width: 100%;
  padding: 36px 40px 44px;
  border-radius: 4px;
  background: #FDFDFE;
  color: #1B2442;
  font-family: var(--font-serif);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .6),
    0 2px 0 #E4E8F2,
    0 4px 0 #D7DCEA,
    0 50px 90px -30px rgba(0, 0, 0, .8),
    0 0 120px -20px rgba(76, 107, 255, .45);
}

.paper::before { /* bomullspapperets struktur */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .1 0 0 0 0 .13 0 0 0 0 .25 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E");
  opacity: .16;
  pointer-events: none;
}

.paper__head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #D5DAE8;
  color: #4A5473;
  font-size: 16px;
  font-style: italic;
}
.paper__head b { font: 500 11.5px/1 var(--font-mono); font-style: normal; letter-spacing: .08em; text-transform: uppercase; }

.paper__title {
  margin: 22px 0 0;
  color: var(--ink);
  font-size: 38px;
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.015em;
}

.clauses-doc { margin: 22px 0 0; }
.clauses-doc div + div { margin-top: 14px; }
.clauses-doc dt {
  color: var(--ink);
  font-size: 19px;
  line-height: 1.2;
}
.clauses-doc dd {
  margin: 3px 0 0;
  color: #4A5473;
  font: 400 16px/1.4 var(--font-serif);
}

.paper__sign {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 24px;
  margin-top: 30px;
}
.sigline {
  position: relative;
  min-height: 64px;
  border-bottom: 1px solid #1B2442;
}
.sigline svg {
  position: absolute;
  left: 4px;
  bottom: 2px;
  width: 112px;
  height: auto;
  overflow: visible;
}
.sigdate {
  position: absolute;
  left: 2px;
  bottom: 6px;
  color: #1B2442;
  font-size: 18px;
  font-style: italic;
}
.sigcap {
  display: block;
  margin-top: 6px;
  color: #5A6585;
  font-size: 15px;
  font-style: italic;
}
.sig-path {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

/* Sigillet trycks över underskriftens kant, som en stämpel */
.stamp {
  position: absolute;
  right: 22px;
  bottom: 30px;
  width: 112px;
  height: 112px;
  color: var(--brand);
  transform: rotate(-14deg);
  mix-blend-mode: multiply;
  pointer-events: none;
}
.stamp svg { width: 100%; height: 100%; overflow: visible; }
.stamp__rim { fill: none; stroke: currentColor; stroke-width: 1.3; }
.stamp__text {
  fill: currentColor;
  font: 700 8px/1 var(--font-sans);
  font-stretch: 85%;
  letter-spacing: .06em;
}
.stamp__check {
  fill: none;
  stroke: var(--ok);
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Kvittot: förseglingen bekräftad under dokumentet */
.proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 18px;
  padding: 14px 18px;
  border: 1px solid rgba(157, 176, 255, .22);
  border-radius: 12px;
  background: rgba(11, 21, 52, .72);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  color: var(--white);
  font: 600 14px/1.2 var(--font-sans);
}
.proof .icon { width: 18px; height: 18px; color: var(--ok-glow); }
/* När arkets kolumn är smal ryms inte koden; raden ska hålla sig på en rad */
@media (min-width: 901px) and (max-width: 1180px) { .proof__hash { display: none; } }
.proof__hash {
  color: var(--on-ink-muted);
  font: 500 12px/1.2 var(--font-mono);
  letter-spacing: .06em;
}
.proof__ok {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  color: var(--ok-glow);
  font-size: 13px;
  font-weight: 600;
}
.proof__ok i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok-glow);
  box-shadow: 0 0 0 4px rgba(91, 227, 165, .16);
}

/* Ett enda orkestrerat förlopp: arket reser sig, namnet skrivs, sigillet trycks, kvittot bekräftar */
@media (prefers-reduced-motion: no-preference) {
  .hero h1 { animation: rise .9s cubic-bezier(.16, 1, .3, 1) both; }
  .hero .lead { animation: rise 1s .35s var(--ease-out) both; }
  .hero__cta { animation: rise 1s .5s var(--ease-out) both; }
  .sheet { animation: sheet-in 1.4s cubic-bezier(.16, 1, .3, 1) both; }
  .sig-path { animation: sign 2.2s 1s cubic-bezier(.65, 0, .35, 1) both; }
  .stamp { animation: stamp .55s 3.25s cubic-bezier(.2, 1.4, .4, 1) both; }
  .stamp__check { stroke-dasharray: 30; animation: check .5s 3.7s ease-out both; }
  .proof { animation: proof-in .8s 3.9s cubic-bezier(.16, 1, .3, 1) both; }
}
@keyframes sheet-in {
  from { opacity: 0; transform: translateY(60px); }
  to { opacity: 1; transform: none; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes sign { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes stamp {
  from { opacity: 0; transform: rotate(-26deg) scale(1.9); }
  to { opacity: 1; transform: rotate(-14deg) scale(1); }
}
@keyframes check { from { stroke-dashoffset: 30; } to { stroke-dashoffset: 0; } }
@keyframes proof-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

/* ---------- Herons film (hero-reel.js) ----------
   25 sekunder som visar hur det går till – ladda upp, skicka, signera, klart – och landar i slutbilden
   ovan, som ett omslag. Omslaget står kvar en stund och filmen börjar om (loop). html.has-reel sätts i <head> (inte vid "minska rörelse"); filmen styr
   då rekvisitan med inline-stilar (.hero.is-live) och lämnar tillbaka sidan till CSS när den är slut
   (.hero.is-done). Utan JS syns aldrig rekvisitan. */

.reel__captions, .reel, .reel__field, .reel__flash, .reel__gloss { display: none; }
html.has-reel .reel__captions, html.has-reel .reel, html.has-reel .reel__flash, html.has-reel .reel__gloss { display: block; }
html.has-reel .reel__field { display: inline-flex; }

/* CSS-introt ersätts av filmen */
html.has-reel .hero h1, html.has-reel .hero .lead, html.has-reel .hero__cta, html.has-reel .sheet,
html.has-reel .sig-path, html.has-reel .stamp, html.has-reel .stamp__check, html.has-reel .proof { animation: none; }
/* Innan första bildrutan: bara ytan och knapparna, så att slutbilden inte blinkar förbi */
html.has-reel .hero:not(.is-live):not(.is-done) :is(h1, .lead, .paper, .proof) { opacity: 0; }

.hero__text { position: relative; }

/* Textraderna ligger i rubrikens kolumn, centrerade i höjd ovanför knapparna (bottom sätts av hero-reel.js) */
.reel__captions {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
html.has-reel .reel__captions { display: grid; align-content: center; }
.reel__cap { grid-area: 1 / 1; opacity: 0; }
.reel__n {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #A9B8FF;
  font: italic 400 24px/1 var(--font-serif);
}
.reel__n--ok {
  color: var(--ok-glow);
  font: 600 13px/1 var(--font-mono);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.reel__n--ok i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok-glow);
  box-shadow: 0 0 0 4px rgba(91, 227, 165, .16), 0 0 18px rgba(91, 227, 165, .7);
}
.reel__big {
  max-width: 11.5em;
  margin: 22px 0 0;
  color: var(--white);
  font-size: clamp(34px, 3.7vw, 64px);
  font-weight: 560;
  line-height: 1.04;
  letter-spacing: -0.028em;
  text-wrap: balance;
}
.reel__sub {
  max-width: 25em;
  margin: 24px 0 0;
  color: #C9D0E6;
  font-size: clamp(17px, 1.25vw, 21px);
  line-height: 1.5;
}

/* Rekvisitan ligger ovanpå arket och får gärna sticka ut över kanterna */
.reel {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  font-family: var(--font-sans);
}
.reel__file, .reel__send, .reel__status, .reel__toast {
  border: 1px solid rgba(157, 176, 255, .24);
  border-radius: 16px;
  background: rgba(12, 22, 56, .9);
  -webkit-backdrop-filter: blur(16px);
          backdrop-filter: blur(16px);
  color: var(--white);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 34px 70px -26px rgba(0, 0, 0, .8);
  opacity: 0;
}
.reel__file, .reel__send, .reel__status { position: absolute; }
.reel__swap { display: grid; }
.reel__swap > * { grid-area: 1 / 1; }
.reel__swap > :last-child { opacity: 0; }

.reel__file {
  top: 30%;
  inset-inline: 0;
  width: min(400px, 88%);
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 18px 20px 20px;
}
.reel__fileicon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(76, 107, 255, .24);
  color: #C9D4FF;
}
.reel__filetext b { display: block; font: 600 16px/1.2 var(--font-sans); }
.reel__filetext .reel__swap { margin-top: 5px; color: var(--on-ink-muted); font: 500 13px/1.2 var(--font-mono); }
.reel__okline { display: inline-flex; align-items: center; gap: 6px; color: var(--ok-glow); }
.reel__okline .icon { width: 15px; height: 15px; stroke-width: 2.4; }
.reel__meter {
  grid-column: 1 / -1;
  height: 4px;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(157, 176, 255, .18);
}
.reel__meter i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--brand-hi), #A9B8FF);
  transform: scaleX(0);
  transform-origin: left;
}

/* Fältet där mottagaren ska skriva under */
.reel__field {
  position: absolute;
  left: 0;
  bottom: 8px;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1.5px dashed var(--brand-hi);
  border-radius: 8px;
  background: rgba(76, 107, 255, .1);
  color: var(--brand);
  font: 600 13px/1 var(--font-sans);
  white-space: nowrap;
  opacity: 0;
  transform-origin: left bottom;
}
.reel__field .icon { width: 15px; height: 15px; }

.reel__send {
  left: -12%;
  bottom: 12%;
  width: min(360px, 78%);
  display: grid;
  gap: 12px;
  padding: 18px;
}
.reel__label {
  color: var(--on-ink-muted);
  font: 500 11.5px/1 var(--font-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.reel__person { display: flex; align-items: center; gap: 12px; opacity: 0; }
.reel__person b, .reel__status b, .reel__toast b { display: block; font: 600 15px/1.2 var(--font-sans); }
.reel__person em, .reel__status em, .reel__toast em {
  display: block;
  margin-top: 4px;
  color: var(--on-ink-muted);
  font: 500 12.5px/1.2 var(--font-mono);
  font-style: normal;
  white-space: nowrap;
}
.reel__face, .reel__faces i {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-hi);
  color: var(--white);
  font: 700 12.5px/1 var(--font-sans);
  font-style: normal;
  box-shadow: 0 0 0 2px #0C1638;
}
.reel__face--2, .reel__faces i + i { background: #4A5785; }
.reel__sendbtn {
  position: relative;
  display: grid;
  place-items: center;
  height: 46px;
  margin-top: 4px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--brand-hi);
  font: 600 15px/1 var(--font-sans);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 14px 30px -12px rgba(76, 107, 255, .9);
}
.reel__ripple {
  position: absolute;
  left: 58%;
  top: 50%;
  width: 90px;
  height: 90px;
  margin: -45px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .5);
  opacity: 0;
}
.reel__cursor {
  position: absolute;
  left: 57%;
  bottom: 22px;
  width: 26px;
  height: 26px;
  fill: var(--white);
  stroke: var(--ink);
  stroke-width: 1.3;
  stroke-linejoin: round;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .45));
  opacity: 0;
}

.reel__status {
  top: 40%;
  inset-inline: 0;
  width: max-content;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 22px 12px 12px;
  border-radius: 999px;
}
.reel__faces { display: flex; }
.reel__faces i + i { margin-left: -8px; }
.reel__status em { display: flex; align-items: center; gap: 8px; color: #F3C77A; }
.reel__status em i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: wait-pulse 1.2s ease-in-out infinite;
}

/* Mobilen */
.reel__phone {
  position: absolute;
  inset: 0;
  width: var(--ph-w, 280px);
  height: var(--ph-h, 572px);
  margin: auto;
  padding: 10px;
  border-radius: 48px;
  background: linear-gradient(160deg, #2E375A, #0B1129 42%, #1B2342);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, .16),
    0 0 0 1px rgba(0, 0, 0, .6),
    0 60px 100px -30px rgba(0, 0, 0, .85),
    0 0 140px -30px rgba(76, 107, 255, .6);
  opacity: 0;
}
.reel__screen {
  position: relative;
  isolation: isolate;
  height: 100%;
  overflow: hidden;
  border-radius: 38px;
  background: var(--surface);
  color: var(--ink);
}
.ph__bar {
  position: absolute;
  left: 30px;
  top: 15px;
  z-index: 6;
  color: var(--white);
  font: 600 13px/1 var(--font-sans);
}
.ph__island {
  position: absolute;
  left: 50%;
  top: 10px;
  z-index: 6;
  width: 76px;
  height: 22px;
  margin-left: -38px;
  border-radius: 12px;
  background: #05081A;
}
.ph__lock {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 64px;
  background: radial-gradient(120% 80% at 30% 0%, #3654E8 0%, #16247A 48%, #070E24 100%);
  color: var(--white);
}
.ph__time { font: 300 64px/1 var(--font-sans); letter-spacing: -.035em; }
.ph__note {
  position: absolute;
  top: 158px;
  left: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  color: var(--ink);
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .5);
  opacity: 0;
}
.ph__app { flex: none; width: 34px; height: 34px; border-radius: 9px; }
.ph__notetext b { display: block; font: 700 13px/1.2 var(--font-sans); }
.ph__notetext span { display: block; margin-top: 2px; color: var(--text); font: 500 12.5px/1.3 var(--font-sans); }
.ph__touch {
  position: absolute;
  z-index: 5;
  width: 46px;
  height: 46px;
  margin: -23px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .5);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .8), 0 0 0 10px rgba(255, 255, 255, .12);
  opacity: 0;
}
.ph__touch--1 { left: 55%; top: 189px; }
.ph__touch--2 { left: 55%; top: 38px; background: rgba(11, 21, 52, .2); box-shadow: 0 0 0 1px rgba(255, 255, 255, .8), 0 0 0 10px rgba(76, 107, 255, .14); }

.ph__doc {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding-top: 42px;
  background: var(--surface);
  opacity: 0;
}
.ph__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
}
.ph__head b { font: 700 15px/1.2 var(--font-sans); }
.ph__head span { color: var(--muted); font: 500 10.5px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.ph__body { flex: 1; min-height: 0; overflow: hidden; padding: 16px 14px 0; }
.ph__scroll {
  padding: 20px 18px 26px;
  border-radius: 6px;
  background: #FDFDFE;
  box-shadow: 0 1px 2px rgba(11, 21, 52, .06), 0 10px 24px -14px rgba(11, 21, 52, .25);
  color: var(--ink);
  font-family: var(--font-serif);
}
.ph__title { margin: 0; font-size: 23px; line-height: 1.05; }
.ph__clause { margin: 16px 0 2px; font-size: 14.5px; }
.ph__scroll i { display: block; height: 5px; margin-top: 7px; border-radius: 3px; background: #E3E8F3; }
.ph__scroll i:nth-of-type(3n) { width: 72%; }
.ph__scroll i:nth-of-type(4n+2) { width: 88%; }
.ph__sigline {
  display: block;
  margin-top: 40px;
  padding-top: 6px;
  border-top: 1px solid #1B2442;
  color: #5A6585;
  font-size: 13px;
  font-style: italic;
}
.ph__cta { position: relative; padding: 14px 16px 24px; background: var(--surface); box-shadow: 0 -12px 20px -8px rgba(245, 247, 252, .95); }
.ph__btn {
  display: grid;
  place-items: center;
  height: 48px;
  border-radius: 14px;
  background: var(--brand);
  color: var(--white);
  font: 600 15px/1 var(--font-sans);
  box-shadow: 0 12px 24px -12px rgba(35, 64, 217, .8);
}
.ph__id {
  position: absolute;
  inset: auto 0 0;
  z-index: 3;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 30px 22px 36px;
  border-radius: 26px 26px 0 0;
  background: var(--white);
  box-shadow: 0 -24px 50px -10px rgba(11, 21, 52, .35);
  text-align: center;
  transform: translateY(105%);
}
.ph__ring { position: relative; width: 64px; height: 64px; margin-bottom: 6px; }
.ph__ring svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke-width: 3.5; stroke-linecap: round; }
.ph__mail circle { fill: var(--brand-tint); stroke: none; }
.ph__mail rect, .ph__mail path { stroke: var(--brand); stroke-width: 2.4; stroke-linejoin: round; }
.ph__spin circle { stroke: var(--brand); stroke-dasharray: 80 200; }
.ph__spin { stroke: var(--line); }
.ph__ok { opacity: 0; }
.ph__ok circle { fill: var(--ok-tint); stroke: var(--ok); }
.ph__ok path { stroke: var(--ok); stroke-width: 4; stroke-linejoin: round; }
.ph__idtitle b { font: 700 18px/1.2 var(--font-sans); }
.ph__idtitle b:last-child { color: var(--ok); }
.ph__idtext { max-width: 17em; color: var(--muted); font: 500 13.5px/1.4 var(--font-sans); }
.ph__code { display: flex; gap: 6px; } /* koden skrivs in siffra för siffra (hero-reel.js) */
.ph__code i {
  display: grid;
  place-items: center;
  width: 28px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface, #F5F7FC);
  color: var(--ink);
  font: 600 18px/1 var(--font-mono);
  font-style: normal;
}
.ph__code b { font-weight: inherit; }
.ph__done {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  background: radial-gradient(90% 60% at 50% 38%, #0E9566, #075D3E 70%, #04402B);
  color: var(--white);
  text-align: center;
  opacity: 0;
}
.ph__seal {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  box-shadow: 0 0 0 12px rgba(255, 255, 255, .06);
}
.ph__seal svg { width: 54px; height: 54px; fill: none; stroke: var(--white); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
.ph__seal path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.ph__done b { font: 650 30px/1 var(--font-sans); letter-spacing: -.02em; }
.ph__done span { color: rgba(255, 255, 255, .78); font: 500 13px/1 var(--font-mono); }

/* Beskeden när mottagarna har signerat */
.reel__toasts {
  position: absolute;
  left: -20%;
  top: -5%;
  display: grid;
  width: min(330px, 72%);
}
.reel__toast {
  grid-area: 1 / 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 12px;
  border-radius: 14px;
}
.reel__toast em { color: var(--ok-glow); }

/* Sigillets tryck och slutbildens ljusreflex */
.reel__flash {
  position: absolute;
  right: 22px;
  bottom: 30px;
  width: 112px;
  height: 112px;
  border: 2px solid var(--brand-hi);
  border-radius: 50%;
  box-shadow: 0 0 40px rgba(76, 107, 255, .5), inset 0 0 30px rgba(76, 107, 255, .3);
  opacity: 0;
  pointer-events: none;
}
.reel__gloss {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}
.reel__gloss i {
  position: absolute;
  top: -10%;
  bottom: -10%;
  left: 0;
  width: 55%;
  background: linear-gradient(100deg, transparent 15%, rgba(169, 184, 255, .16) 38%, rgba(255, 255, 255, .7) 50%, rgba(91, 227, 165, .12) 62%, transparent 85%);
  opacity: 0;
}

/* Kapitlen längst ned i heron (klickbara) */
.hero > .reel__dock {
  position: absolute;
  inset: auto 0 clamp(48px, 6.5vh, 72px);
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 28px;
}
.hero > .reel__dock[hidden] { display: none; }
.reel__chapters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: min(520px, 100%);
  transition: opacity .6s ease, visibility .6s;
}
.reel__chapters button {
  display: grid;
  gap: 10px;
  padding: 8px 0;
  border: 0;
  background: none;
  color: var(--on-ink-muted);
  font: 500 11px/1 var(--font-mono);
  letter-spacing: .14em;
  text-align: start;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .3s ease;
}
.reel__chapters button:hover, .reel__chapters button.is-on { color: var(--white); }
.reel__chapters i {
  display: block;
  height: 2px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(157, 176, 255, .22);
}
.reel__chapters b {
  display: block;
  height: 100%;
  background: #A9B8FF;
  transform: scaleX(0);
  transform-origin: left;
}
[dir="rtl"] .reel__chapters b, [dir="rtl"] .reel__meter i { transform-origin: right; }
.hero.is-done .reel__chapters { opacity: 0; visibility: hidden; }

@media (max-width: 900px) {
  /* Smal skärm: texten överst, scenen lyfts upp under den medan filmen spelas (hero-reel.js) */
  html.has-reel .reel__captions { align-content: start; }
  .stage { transform-origin: 50% 0; }
  .reel__send { left: 4%; bottom: 8%; }
  .reel__toasts { left: 4%; top: -4%; }
  /* Kontrollen ovanför texten, så att den syns utan att scrolla */
  html.has-reel .hero { padding-top: 92px; }
  .hero > .reel__dock { inset: 24px 0 auto; }
}
@media (max-width: 600px) {
  .reel__phone { --ph-w: 244px; --ph-h: 500px; padding: 8px; border-radius: 42px; }
  .reel__screen { border-radius: 34px; }
  .ph__time { font-size: 54px; }
  .ph__note { top: 140px; }
  .ph__touch--1 { top: 171px; }
  .reel__file { top: 22%; }
  .reel__big { font-size: 31px; }
  .reel__sub { margin-top: 16px; font-size: 16.5px; }
  .reel__send { left: 3%; width: 94%; }
  .reel__toasts { width: 92%; }
  .reel__flash { right: 10px; bottom: 34px; width: 88px; height: 88px; }
  .hero > .reel__dock { gap: 14px; }
  .reel__chapters { gap: 8px; }
  .reel__chapters button { padding: 12px 0; }
  .reel__chapters span { /* bara strecken syns, namnen finns kvar för skärmläsare */
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}
/* Låga fönster på dator: mobilen hänger i arkets överkant i stället för mitten */
@media (min-width: 901px) and (max-height: 820px) {
  .reel__phone { --ph-w: 256px; --ph-h: 524px; inset: 0 0 auto; }
  .ph__note { top: 146px; }
  .ph__touch--1 { top: 177px; }
}

/* ---------- Rubrikkolumnen bredvid innehåll (.split) ---------- */

.split__head { position: sticky; top: 120px; }
.split__head p {
  max-width: 24em;
  margin: 20px 0 0;
  font-size: 18px;
}

/* ---------- Säkerhet: händelseloggen på mörk botten ---------- */

.band {
  padding: 112px 0;
  background: var(--ink);
  color: var(--on-ink);
}
.band { position: relative; overflow: hidden; isolation: isolate; }
.band::before { /* ljuset som följer pekaren (sign.js sätter --x/--y) */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(520px circle at var(--x, 75%) var(--y, 40%), rgba(76, 107, 255, .22), transparent 70%);
  transition: background-position .2s;
}
.band h2 { color: var(--white); }
.band h2 em { color: var(--brand-glow); }
.band__text p { color: var(--on-ink); font-size: 18px; max-width: 30em; margin: 24px 0 0; }
.band__text .btn { margin-top: 40px; }
.band :focus-visible { outline-color: var(--white); }

.cert {
  padding: 36px 40px 32px;
  border-radius: 8px;
  background: #FDFDFE;
  color: #1B2442;
  font-family: var(--font-serif);
  box-shadow: 0 40px 80px -32px rgba(0, 0, 0, .7);
}
.cert__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #1B2442;
}
.cert__head h3 {
  color: var(--ink);
  font: 400 32px/1 var(--font-serif);
  letter-spacing: -.015em;
}
.cert__head span { color: #4A5473; font-size: 16px; font-style: italic; }

.cert__log li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 4px 16px;
  padding: 18px 0;
  border-bottom: 1px solid #D5DAE8;
}
.cert__log .icon { width: 18px; height: 18px; color: var(--ok); align-self: center; }
.cert__log b { color: var(--ink); font-size: 21px; font-weight: 400; line-height: 1.1; }
.cert__log time { color: #1B2442; font: 500 14px/1 var(--font-mono); }
.cert__log code {
  grid-column: 2 / -1;
  color: #4A5473;
  font: 500 12px/1.3 var(--font-mono);
  letter-spacing: .05em;
}
.cert__foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  margin-top: 26px;
}
.cert__foot .sigline { min-height: 56px; }
.cert__stamp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--ok-tint);
  color: var(--ok);
  font: 650 13px/1 var(--font-sans);
}
.cert__stamp i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }

/* ---------- Skicka, följ upp, samla ---------- */

.register {
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--white);
  overflow: hidden;
}
.register table { width: 100%; border-collapse: collapse; }
.register caption {
  padding: 18px 24px;
  border-bottom: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
  text-align: left;
}
.register th, .register td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 16px;
}
.register tbody tr:last-child :is(th, td) { border-bottom: 0; }
.register th { color: var(--ink); font-weight: 560; letter-spacing: -0.01em; }
.register td.num { color: var(--muted); font: 500 14px/1 var(--font-mono); font-variant-numeric: tabular-nums; }
.register td:last-child { text-align: right; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font: 620 13px/1 var(--font-sans);
  white-space: nowrap;
}
.chip i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip--ok { background: var(--ok-tint); color: var(--ok); }
.chip--brand { background: var(--brand-tint); color: var(--brand-dark); }
.chip--warn { background: var(--warn-tint); color: var(--warn); }
.chip--warn i { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }

.links { margin-top: 28px; display: grid; gap: 4px; justify-items: start; }

.help {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 64px;
  margin-top: 88px;
  padding-top: 36px;
  border-top: 1px solid var(--ink);
}
.help p { margin: 0; max-width: 34em; font-size: 18px; }
.help div { display: grid; gap: 12px; justify-items: start; }

/* ---------- Dokument vi hanterar ---------- */

.index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 48px;
  border-bottom: 1px solid var(--line-strong);
}
.index li { border-top: 1px solid var(--line-strong); }
.index a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  color: var(--ink);
  font-size: 24px;
  font-weight: 520;
  letter-spacing: -.03em;
  text-decoration: none;
  transition: color .18s, padding-left .25s cubic-bezier(.16, 1, .3, 1);
}
.index a .arrow { opacity: 0; transform: translateX(-8px); transition: opacity .2s, transform .25s cubic-bezier(.16, 1, .3, 1); }
.index a:hover { color: var(--brand); padding-left: 10px; }
.index a:hover .arrow, .index a:focus-visible .arrow { opacity: 1; transform: none; }

/* ---------- Integrationer ---------- */

.split__head .connect__plan {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  background: var(--brand-tint); /* inte grönt: grönt betyder "signerat" */
  color: var(--brand);
  font-size: 15px;
  font-weight: 600;
}
.connect__plan .icon { width: 18px; height: 18px; stroke-width: 2.2; }

.connect {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.connect__group {
  padding: 24px 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.connect__group h3 { font-size: 17px; }
.connect__logos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 8px;
  margin-top: 20px;
}
.connect__logos li {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 8px;
}
.connect__mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  box-shadow: var(--shadow-1);
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.connect__logos li:hover .connect__mark { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.connect__mark svg { width: 26px; height: 26px; }
.connect__mark--klarna { border-color: transparent; background: #FFB3C7; }
.connect__mark--klarna svg { width: 20px; height: 20px; }
.connect__mark--mono b {
  color: var(--ink);
  font: 760 22px/1 var(--font-sans);
  letter-spacing: -0.03em;
}
.connect__name {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.25;
  text-align: center;
}

/* ---------- Avslutande uppmaning ---------- */

.closing { padding: 0 0 112px; }
.closing__panel {
  position: relative;
  min-height: 460px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 64px 64px 56px;
  overflow: hidden;
  border-radius: 28px;
  background:
    linear-gradient(90deg, rgba(7, 14, 36, .92) 0%, rgba(7, 14, 36, .55) 55%, rgba(7, 14, 36, 0) 80%),
    var(--deep) url("../img/guilloche.jpg") 100% 50% / auto 230% no-repeat;
  color: var(--on-ink);
}
.closing h2 {
  max-width: 11ch;
  color: var(--white);
  font-size: clamp(40px, 5.4vw, 80px);
}
.closing p { max-width: 28em; margin: 20px 0 0; font-size: 19px; }
.closing p.closing__price {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  max-width: none;
  margin-top: 28px;
  color: var(--on-ink);
  font-size: 15.5px;
}
.closing__price span + span::before, .closing__price a::before { /* punkt mellan delarna */
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin: 0 18px 3px 0;
  border-radius: 50%;
  background: rgba(157, 176, 255, .5);
}
.closing__price a { color: var(--white); text-underline-offset: 4px; text-decoration-color: rgba(255, 255, 255, .4); }
.closing__price a:hover { text-decoration-color: currentColor; }
.closing__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.closing :focus-visible { outline-color: var(--white); }


/* ---------- Footer ---------- */

.site-footer {
  padding: 64px 0 32px;
  background: var(--deep);
  color: #D8D8DC;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 40px;
}

.site-footer h2 {
  margin-bottom: 20px;
  color: var(--white);
  font: 560 26px/1.2 var(--font-sans);
  letter-spacing: -.035em;
}
.site-footer li + li { margin-top: 2px; }

/* Vertikal padding ger minst 24 px träffyta */
.site-footer a {
  display: inline-block;
  padding-block: 6px;
  color: #D8D8DC;
  font-size: 15px;
  font-weight: 400;
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--white);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.site-footer .footer-market {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
  max-width: 250px;
  padding: 16px !important;
  border-radius: 8px;
  background: #3A3745;
  color: var(--white) !important;
  font-size: 16px !important;
}
.site-footer .footer-market:hover { background: #4A4757; text-decoration: none !important; }
.footer-market span { flex: 1; }
.footer-market .flag { width: 28px; height: 28px; flex: none; }
.footer-market .arrow { width: 22px; height: 22px; flex: none; }

.social { display: flex; flex-wrap: wrap; gap: 8px; }
.social li + li { margin-top: 0; }
.social a {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 8px;
  color: var(--white);
}
.social a:hover { border-color: var(--white); text-decoration: none; }
.social svg { width: 26px; height: 26px; }

.footer-wordmark {
  position: relative;
  isolation: isolate;
  margin: 96px 0 32px;
}
.footer-wordmark::before {
  content: "";
  position: absolute;
  inset: -80px 0 -40px;
  z-index: -1;
  background: radial-gradient(50% 70% at 50% 100%, rgba(76, 107, 255, .35), transparent 70%);
}
.footer-wordmark img {
  display: block;
  width: 100%;
  height: auto;
  opacity: .9;
  -webkit-mask-image: linear-gradient(180deg, #000 20%, transparent 96%);
  mask-image: linear-gradient(180deg, #000 20%, transparent 96%);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .16);
  color: #D8D8DC;
}
.footer-fine { margin: 0; max-width: 60ch; font-size: 12px; line-height: 1.4; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 0 24px; }
.footer-legal li + li { margin-top: 0; }


/* ---------- Responsivt ---------- */

@media (max-width: 1080px) {
  .hero__inner { gap: 48px; }
  .split, .help { gap: 40px; }
}

@media (max-width: 900px) {
  :root { --gutter: 24px; }

  .header-main { display: none; }
  .menu-panel__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .section, .band { padding: 80px 0; }
  .hero { padding: 56px 0 72px; min-height: auto; }
  .hero__fx { -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.3) 0%, rgba(0,0,0,.45) 30%, #000 55%); mask-image: linear-gradient(180deg, rgba(0,0,0,.3) 0%, rgba(0,0,0,.45) 30%, #000 55%); }
  .hero__silk { -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.6) 35%, #000 60%); mask-image: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.6) 35%, #000 60%); }
  .hero__inner, .split, .help { grid-template-columns: 1fr; }
  .hero__inner { gap: 56px; }
  .split__head { position: static; }
  .help { margin-top: 56px; gap: 20px; }
  .index { grid-template-columns: 1fr; }
  .connect { margin-top: 8px; }
  .closing { padding-bottom: 80px; }
  .closing__panel { padding: 48px 32px 40px; border-radius: 24px; background-size: auto 100%, auto 150%; }

  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-wordmark { margin: 64px 0 24px; }
}

@media (max-width: 600px) {
  :root { --logo-w: 104px; --header-gap: 8px; }

  .header-top__inner { min-height: 60px; }
  .audience { display: none; }
  .header-actions { gap: 8px; }
  .header-actions .btn--cta { display: none; }
  .header-actions a.btn--ghost .icon { display: none; }
  .lang { padding: 0 10px; gap: 6px; }
  .lang__chev { display: none; }
  /* Panelen tar hela bredden under headern, oavsett läsriktning */
  .lang-list { position: fixed; top: 64px; inset-inline: 12px; width: auto; max-height: calc(100vh - 76px); overflow: auto; }

  .connect { grid-template-columns: 1fr; }

  /* Meny blir enbart ikon, men behåller sin text för skärmläsare */
  .btn__label--collapse {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .btn--sm:has(.btn__label--collapse) { width: 40px; padding: 0; }

  .menu-panel__grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-wordmark { margin: 48px 0 24px; }

  .lead, .hero .lead { font-size: 18px; }
  .hero h1 { font-size: 40px; }
  .paper { padding: 24px 22px 28px; }
  .paper__title { font-size: 25px; }
  .paper__sign { gap: 16px; }
  .stamp { width: 88px; height: 88px; right: 10px; bottom: 34px; }
  .hero__frame { inset: 10px; }
  .hero__micro { left: 24px; right: 24px; bottom: 10px; }
  .proof__ok { margin-left: 0; }
  .cert { padding: 28px 22px 24px; }
  .register th, .register td, .register caption { padding: 14px 16px; }
  .register td.num { display: none; }
  .index a { font-size: 20px; }
  .closing__panel { padding: 40px 24px 32px; }
  .closing p.closing__price { flex-direction: column; align-items: flex-start; } /* en rad per del, utan punkter */
  .closing__price span + span::before, .closing__price a::before { display: none; }
}

@media (max-width: 360px) {
  :root { --gutter: 16px; --logo-w: 92px; }
  .header-actions { gap: 6px; }
}

/* ---------- Rörelse och finish ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .arrow, .icon--chevron, .index a, .index a .arrow { transition: none; }
  .btn:active { transform: none; }
}

@media print {
  .progress, body::after { display: none; }
  [data-reveal], .index li { opacity: 1 !important; visibility: visible !important; transform: none !important; }
}

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

.progress {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

/* Diskret korn över sidan: tar bort den platta digitala känslan */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: .04;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Sticky header får inte skymma fokuserade element eller ankarmål */
html { scroll-padding-top: 112px; }

/* ---------- Gemensamt ---------- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Rader som rullas upp av SplitText (premium.js) */
.split-line { padding-bottom: .08em; margin-bottom: -.08em; }

/* Glansen som sveper över primärknappen vid hover */
.btn--brand { overflow: hidden; isolation: isolate; }
.btn--brand::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease-out);
}
.btn--brand:hover::after { transform: translateX(120%); }
.btn[hidden] { display: none; }
.btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn[disabled]::after { display: none; }

.btn--paper {
  background: transparent;
  border-color: #D5DAE8;
  color: var(--ink);
}
.btn--paper:hover { border-color: var(--ink); }

/* ---------- Säkerhet: sätt att legitimera sig, och prova själv ---------- */

.split--band { align-items: center; }

/* Sätten att signera, som rader i ett register på mörk botten */
.methods { margin-top: 36px; border-top: 1px solid rgba(157, 176, 255, .2); }
.methods li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(157, 176, 255, .2);
}
.methods__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: rgba(157, 176, 255, .12);
  color: var(--brand-glow);
}
.methods__text { display: grid; gap: 4px; padding-top: 1px; }
.methods__text b { color: var(--white); font-size: 18px; font-weight: 620; line-height: 1.25; letter-spacing: -0.015em; }
.methods__text span { color: var(--on-ink); font-size: 15.5px; line-height: 1.5; }
.methods__text a { color: var(--white); text-decoration-color: rgba(255, 255, 255, .4); }
.methods__text a:hover { text-decoration-color: currentColor; }

.band__note {
  margin: 18px 0 0;
  color: var(--on-ink-muted);
  font-size: 14px;
  line-height: 1.5;
}
.band__note[hidden] { display: none; }

/* Säkerheten på startsidan på ljus botten (användarens val 2026-10-13); .band är fortfarande mörk på undersidorna */
.band--light { background: var(--white); color: var(--text); }
.band--light + .section { border-top: 1px solid var(--line); }
.band--light::before { content: none; }
.band--light h2 { color: var(--ink); }
.band--light h2 em { color: var(--brand); }
.band--light .band__text p { color: var(--text); }
.band--light :focus-visible { outline-color: var(--brand); }
.band--light .methods, .band--light .methods li { border-color: var(--line); }
.band--light .methods__icon { background: var(--brand-tint); color: var(--brand); }
.band--light .methods__text b { color: var(--ink); }
.band--light .methods__text span { color: var(--muted); }
.band--light .methods__text a { color: var(--brand); text-decoration-color: rgba(35, 64, 217, .35); }
.band--light .cert { border: 1px solid var(--line); box-shadow: 0 30px 60px -36px rgba(11, 21, 52, .35); }
.band--light .band__note { color: var(--muted); }

.cert { position: relative; }
.cert__log time, .cert__log code { transition: color .3s; }

.pad__line { min-height: 92px; }
.cert__foot .pad__line { min-height: 92px; }
.pad__sample { width: 132px !important; }
.pad__canvas {
  position: absolute;
  inset: -8px 0 0;
  width: 100%;
  height: calc(100% + 8px);
  touch-action: none;
  cursor: crosshair;
}
.pad__canvas[hidden], .pad__hint[hidden] { display: none; }
.pad__line:has(.pad__canvas:not([hidden])) {
  border-radius: 10px 10px 0 0;
  background: repeating-linear-gradient(90deg, rgba(35, 64, 217, .05) 0 1px, transparent 1px 22px), rgba(35, 64, 217, .03);
}
.cert:focus-within .pad__line:has(.pad__canvas:not([hidden])) { background-color: rgba(35, 64, 217, .06); }
.pad__hint {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6A7493;
  font-size: 17px;
  font-style: italic;
  pointer-events: none;
  transition: opacity .25s;
}
.pad__hint::before {
  content: "×";
  color: var(--brand);
  font: 500 18px/1 var(--font-sans);
  font-style: normal;
}
.cert:not([data-state="ready"]) .pad__hint { opacity: 0; }
.cert:is([data-state="choose"], [data-state="verifying"]) .pad__canvas { cursor: default; }

.pad__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-family: var(--font-sans);
}
.pad__actions[hidden] { display: none; }
.pad__actions [data-sign-submit] { margin-left: auto; }
.pad__done {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
  color: var(--ok);
  font-size: 15px;
  font-weight: 600;
}
.pad__done .icon { width: 18px; height: 18px; }

/* Legitimeringen: efter Signera byts knapparna mot valet av e-legitimation */
.pad__ask {
  flex-basis: 100%;
  color: #4A5473;
  font-size: 14px;
  font-weight: 560;
}
.pad__methods [data-sign-method] { flex: 1 1 auto; }
.pad__methods [data-sign-method] .icon { color: var(--brand); }
.pad__methods [aria-pressed="true"] {
  border-color: var(--brand);
  background: var(--brand-tint);
  box-shadow: inset 0 0 0 1px var(--brand);
}
.pad__back {
  margin-left: auto;
  padding: 0 10px;
  background: none;
  color: #4A5473;
  text-decoration: underline;
  text-decoration-color: #C3CADB;
}
.pad__back:hover { color: var(--ink); text-decoration-color: currentColor; }
.cert[data-state="verifying"] .pad__methods :is([aria-pressed="false"], .pad__back) { opacity: .4; pointer-events: none; }

/* Lägen: allt utom "signed" väntar; raderna som återstår är dämpade. Utan JS står kortet som signerat. */
.cert__row[data-pending] .icon { color: #B3BCD3; }
.cert__row[data-pending] :is(time, code) { color: #9AA4BF; }
.cert:not([data-state="signed"]) .cert__stamp { background: var(--warn-tint); color: var(--warn); }
.cert:not([data-state="signed"]) .cert__stamp i { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }
.cert[data-state="verifying"] .cert__stamp i { animation: wait-pulse 1s ease-in-out infinite; }
@keyframes wait-pulse { 50% { opacity: .25; } }

.cert__row { position: relative; }
.cert__row::before { /* ljuset som sveper genom raden när den blir klar */
  content: "";
  position: absolute;
  inset: 0 -40px;
  background: linear-gradient(90deg, transparent, rgba(10, 122, 82, .12), transparent);
  opacity: 0;
  pointer-events: none;
}
.cert__row.is-lit::before { animation: row-sweep 1.1s var(--ease-out); }
@keyframes row-sweep {
  from { opacity: 1; transform: translateX(-60%); }
  to { opacity: 0; transform: translateX(60%); }
}

.cert__seal {
  position: absolute;
  right: 132px;
  bottom: 96px;
  width: 104px;
  height: 104px;
  mix-blend-mode: multiply;
  pointer-events: none;
  transform: rotate(-12deg);
}
.cert__seal[hidden] { display: none; }
.cert.is-sealed .cert__seal { animation: stamp-seal .6s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes stamp-seal {
  from { opacity: 0; transform: rotate(-26deg) scale(1.9); }
  to { opacity: 1; transform: rotate(-12deg) scale(1); }
}
.cert.is-sealed .cert__stamp { animation: pop .5s .35s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes pop { from { transform: scale(.7); } to { transform: none; } }

/* ---------- Registret: live och filter ---------- */

.register__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 14px 16px 14px 24px;
  border-bottom: 1px solid var(--line-strong);
  background: var(--surface);
}
.register__label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}
.live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px 4px 8px;
  border-radius: 999px;
  background: var(--ok-tint);
  color: var(--ok);
  font: 600 11px/1 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.live i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.register.is-live .live i { animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }

.seg {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--white);
}
.seg[hidden] { display: none; }
.seg button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 11px;
  border: 0;
  border-radius: 9px;
  background: none;
  color: var(--muted);
  font: 560 14px/1 var(--font-sans);
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.seg__n {
  min-width: 20px;
  padding: 3px 5px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--ink);
  font: 600 11.5px/1 var(--font-mono);
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.seg button[aria-pressed="true"] .seg__n { background: rgba(255, 255, 255, .16); color: var(--white); }

.register tr { transition: background-color 1.2s; }
.register tr[hidden] { display: none; }
.register tr.is-new { background: var(--brand-tint); transition: none; }
.register tr.is-new .chip { animation: pop .45s cubic-bezier(.2, 1.4, .4, 1); }
.register__empty { margin: 0; padding: 28px 24px; color: var(--muted); font-size: 15px; }
.register__empty[hidden] { display: none; }

/* ---------- Dokument vi hanterar: sök och förhandsvisning ---------- */

.index-head { margin-bottom: 56px; align-items: end; }
.finder { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 300px;
  max-width: 420px;
}
.search[hidden] { display: none; }
.search .icon { position: absolute; left: 16px; color: var(--muted); pointer-events: none; }
.search input {
  width: 100%;
  min-height: 52px;
  padding: 0 48px 0 46px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  font: 450 16px/1 var(--font-sans);
  transition: border-color .18s, box-shadow .18s;
}
.search input::placeholder { color: #7D88A6; }
.search input:hover { border-color: var(--ink); }
.search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(35, 64, 217, .14); }
.search input::-webkit-search-cancel-button { cursor: pointer; }
.search kbd {
  position: absolute;
  right: 12px;
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--muted);
  font: 500 12px/1 var(--font-mono);
  pointer-events: none;
}
.search input:focus ~ kbd, .search input:not(:placeholder-shown) ~ kbd { display: none; }

.index li[hidden] { display: none; }
.index__empty { margin: 28px 0 0; color: var(--text); font-size: 18px; }
.index__empty[hidden] { display: none; }
.index__empty a { color: var(--brand); font-weight: 600; }

.peek {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 40;
  width: 210px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, visibility 0s .25s;
}
.peek.is-on { opacity: 1; visibility: visible; transition: opacity .25s; }
.peek__paper {
  position: relative;
  padding: 18px 18px 20px;
  border-radius: 4px;
  background: #FDFDFE;
  color: #1B2442;
  font-family: var(--font-serif);
  box-shadow: 0 0 0 1px rgba(11, 21, 52, .06), 0 2px 0 #E4E8F2, 0 30px 60px -24px rgba(11, 21, 52, .45);
  transform: scale(.9);
  transition: transform .35s var(--ease-out);
}
.peek.is-on .peek__paper { transform: none; }
.peek__head {
  display: flex;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid #D5DAE8;
  color: #4A5473;
  font-size: 12px;
  font-style: italic;
}
.peek__head b { font: 500 9px/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.peek__title { margin: 12px 0 0; color: var(--ink); font-size: 23px; line-height: 1.02; }
.peek__text { margin-top: 10px; }
.peek__text i { display: block; height: 5px; margin-top: 7px; border-radius: 3px; background: #E4E8F2; }
.peek__text i:nth-child(2) { width: 88%; }
.peek__text i:nth-child(4) { width: 62%; }
.peek__sign { position: relative; height: 34px; margin-top: 12px; border-bottom: 1px solid #1B2442; width: 58%; }
.peek__sign svg { position: absolute; left: 2px; bottom: 2px; width: 62px; overflow: visible; }
.peek__stamp { position: absolute; right: 12px; bottom: 12px; width: 60px; height: 60px; transform: rotate(-14deg); mix-blend-mode: multiply; }

@media (max-width: 900px) {
  .index-head { margin-bottom: 40px; }
  .finder { justify-content: flex-start; }
  .search { max-width: none; }
  .register__bar { padding-left: 16px; }
  .seg { width: 100%; overflow-x: auto; }
  .seg button { flex: 1 0 auto; justify-content: center; }
}
@media (max-width: 600px) {
  .pad__actions [data-sign-submit] { margin-left: 0; flex-basis: 100%; }
  .cert__foot { grid-template-columns: 1fr; gap: 16px; }
  .cert__foot .cert__stamp { justify-self: start; }
  .seg { display: grid; grid-template-columns: 1fr 1fr; overflow: visible; }
  .cert__seal { width: 84px; height: 84px; right: 96px; bottom: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  .btn--brand::after, .cert__row::before { display: none; }
  .cert.is-sealed .cert__seal, .cert.is-sealed .cert__stamp, .register tr.is-new .chip { animation: none; }
  .cert[data-state="verifying"] .cert__stamp i { animation: none; }
  .register.is-live .live i { animation: none; }
}
.site-header .btn--brand::after { display: none; }


/* ==========================================================================
   Undersidor (sidor/*.html)
   Samma tokens och komponenter som startsidan: mörk säkerhetsyta överst, hårfina linjer,
   "§"-numrering och serif på det som står på papperet.
   ========================================================================== */

/* Aktuell sida i menyerna */
.main-nav a[aria-current="page"] { color: var(--brand); box-shadow: inset 0 -2px 0 var(--brand); }
.dropdown a[aria-current="page"],
.menu-panel a[aria-current="page"] { color: var(--brand); }

/* ---------- Sidhuvud ---------- */

.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(80px, 9vw, 136px) 0 clamp(80px, 8.5vw, 128px);
  background:
    radial-gradient(55% 85% at 88% 30%, rgba(76, 107, 255, .28), transparent 70%),
    radial-gradient(40% 60% at 0% 100%, rgba(35, 64, 217, .18), transparent 70%),
    var(--deep);
  color: var(--on-ink);
}
.page-hero::before { /* samma filmkorn som heron */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .07;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.page-hero::after { /* ljuskant mot innehållet */
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  z-index: 4;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(157, 176, 255, .35), transparent);
}
/* Guilloché-motivet, samma bild som den avslutande panelen, tonat mot texten */
.page-hero__art {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: 1;
  width: min(64%, 980px);
  background: url("../img/guilloche.jpg") 100% 50% / auto 190% no-repeat;
  opacity: .6;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 65%);
          mask-image: linear-gradient(90deg, transparent, #000 65%);
  pointer-events: none;
}
.page-hero > .container { position: relative; z-index: 5; }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-bottom: 32px;
  color: var(--on-ink-muted);
  font: 500 12px/1.4 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.crumbs li + li::before { content: "/"; margin-inline-end: 10px; opacity: .55; }
.crumbs a { color: var(--on-ink); text-decoration: none; }
.crumbs a:hover { color: var(--white); text-decoration: underline; }

.page-hero h1 {
  max-width: 15ch;
  color: var(--white);
  font-size: clamp(44px, 5.6vw, 88px);
  font-weight: 560;
  font-stretch: 100%;
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.page-hero h1 em {
  color: #A9B8FF;
  font: inherit;
  letter-spacing: inherit;
}
.page-hero .lead {
  max-width: 34em;
  color: #DCE2F5;
  font-size: clamp(18px, 1.3vw, 21px);
}
.page-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.page-hero .btn--brand {
  background: var(--brand-hi);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 18px 40px -14px rgba(76, 107, 255, .9);
}
.page-hero .btn--brand:hover { background: var(--brand); }
.page-hero__meta {
  margin: 36px 0 0;
  color: var(--on-ink-muted);
  font: 500 12.5px/1.4 var(--font-mono);
  letter-spacing: .04em;
}
.page-hero :focus-visible { outline-color: var(--white); }

/* ---------- Byggstenar ---------- */

.section--tint { background: var(--surface); }
.section--tint + .section, .section + .section--tint { border-top: 1px solid var(--line); }

/* Rubrik + ingress i två spalter, som "Så fungerar det" */
.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 26em);
  gap: 24px 64px;
  align-items: end;
  margin-bottom: 56px;
}
.sec-head p { margin: 0 0 6px; font-size: 19px; line-height: 1.55; }

/* Paragrafer: varje punkt numreras som en klausul i ett avtal */
.clauses {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 48px;
}
.clauses--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.clauses li { padding: 28px 0 36px; border-top: 1px solid var(--ink); }
.clauses__n {
  display: block;
  color: var(--brand);
  font: italic 400 30px/1 var(--font-serif);
}
.clauses h3 { margin-top: 18px; font-size: 21px; }
.clauses p { margin: 10px 0 0; font-size: 16.5px; line-height: 1.6; }
.clauses .text-link { margin-top: 8px; padding-block: 6px; font-size: 15.5px; }

/* Bocklista */
.checks { display: grid; gap: 10px; }
.checks li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  font-size: 15.5px;
  line-height: 1.45;
}
.checks li::before {
  content: "";
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--ok-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A7A52' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") 50% 55% / 12px no-repeat;
}
.checks li.is-off { color: var(--muted); }
.checks li.is-off::before {
  background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23596580' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 12h10'/%3E%3C/svg%3E") 50% 50% / 11px no-repeat;
}
.band .checks li { color: var(--on-ink); }
.band .checks li::before { background-color: rgba(91, 227, 165, .14); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235BE3A5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E"); }

.ico {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-tint);
  color: var(--brand);
}
.band .ico { background: rgba(157, 176, 255, .12); color: var(--brand-glow); }

/* Ruta för "inget här än" */
.empty-note {
  padding: 36px 40px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
}
.empty-note h3 { font-size: 21px; }
.empty-note p { max-width: 40em; margin: 10px 0 0; }
.empty-note .text-link { margin-top: 8px; }

/* Nyckeltal och fakta i två spalter */
.facts { display: grid; border-top: 1px solid var(--line-strong); }
.facts div {
  display: grid;
  grid-template-columns: minmax(0, 14em) minmax(0, 1fr);
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-strong);
}
.facts dt { color: var(--muted); font: 500 12.5px/1.6 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; padding-top: 3px; }
.facts dd { margin: 0; color: var(--ink); font-size: 17px; }

/* ---------- Priser ---------- */

.billing {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 32px;
}
.billing p { margin: 0; color: var(--muted); font-size: 15.5px; }
.billing .seg button { min-height: 40px; padding: 0 16px; font-size: 15px; }
.billing__save {
  padding: 3px 7px;
  border-radius: 6px;
  background: var(--ok-tint);
  color: var(--ok);
  font: 600 11.5px/1 var(--font-mono);
}
.seg button[aria-pressed="true"] .billing__save { background: rgba(91, 227, 165, .18); color: var(--ok-glow); }

.plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 26px 26px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--white);
  transition: box-shadow .25s var(--ease-out), transform .25s var(--ease-out);
}
.plan:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.plan--popular { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow-1); }
.plan--popular:hover { box-shadow: 0 0 0 1px var(--brand), var(--shadow-2); }
.plan__badge {
  position: absolute;
  top: -12px;
  inset-inline-start: 24px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--white);
  font: 600 11px/1 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.plan h3 { font-size: 24px; }
.plan__tag { margin: 6px 0 0; color: var(--muted); font-size: 15px; line-height: 1.45; }
.plan__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 28px 0 0;
  color: var(--ink);
  font: 600 46px/1 var(--font-sans);
  font-stretch: 100%;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}
.plan__note { min-height: 2.9em; margin: 10px 0 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.plan__seats {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0 0;
  padding: 14px 0;
  border-block: 1px solid var(--line);
  color: var(--ink);
  font-weight: 620;
  font-size: 15.5px;
}
.plan__seats .icon { color: var(--brand); }
.plan .checks { margin: 20px 0 28px; }
.plan .btn { width: 100%; margin-top: auto; }

.plan-xl {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) auto;
  gap: 32px 48px;
  align-items: center;
  margin-top: 16px;
  padding: 40px 44px;
  border-radius: var(--radius);
  background:
    radial-gradient(60% 120% at 100% 0%, rgba(76, 107, 255, .3), transparent 70%),
    var(--deep);
  color: var(--on-ink);
}
.plan-xl h3 { color: var(--white); font-size: 28px; }
.plan-xl p { margin: 10px 0 0; max-width: 30em; }
.plan-xl .checks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
.plan-xl .checks li { color: var(--on-ink); overflow-wrap: anywhere; }
.plan-xl .checks li::before { background-color: rgba(91, 227, 165, .14); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235BE3A5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E"); }
.plan-xl :focus-visible { outline-color: var(--white); }

/* Jämförelsetabell (registrets formspråk) */
.compare { overflow-x: auto; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--white); }
.compare table { width: 100%; min-width: 720px; border-collapse: collapse; }
.compare th, .compare td { padding: 16px 20px; border-bottom: 1px solid var(--line); text-align: center; font-size: 15.5px; }
.compare thead th {
  background: var(--surface);
  border-bottom-color: var(--line-strong);
  color: var(--ink);
  font-weight: 650;
}
.compare tbody th { color: var(--ink); font-weight: 520; text-align: start; }
.compare thead th:first-child { text-align: start; }
.compare tbody tr:last-child :is(th, td) { border-bottom: 0; }
.compare .yes, .compare .no { display: inline-block; width: 20px; height: 20px; vertical-align: middle; }
.compare .yes { border-radius: 50%; background: var(--ok-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A7A52' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") 50% 55% / 12px no-repeat; }
.compare .no { width: 12px; height: 2px; border-radius: 2px; background: var(--line-strong); }
.compare td.num { font: 500 14.5px/1 var(--font-mono); color: var(--ink); }
.compare col.is-popular { background: rgba(234, 239, 255, .55); }

/* ---------- Vanliga frågor ---------- */

.faq-tools { display: grid; gap: 16px; justify-items: start; }
.faq-tools .search { width: 100%; }
.faq-nav { display: grid; gap: 2px; margin-top: 8px; }
.faq-nav a {
  display: block;
  padding: 8px 0;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.faq-nav a:hover { color: var(--brand); }

.faq-group + .faq-group { margin-top: 72px; }
.faq-group h2 { margin-bottom: 20px; font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.035em; }
.faq-group[hidden] { display: none; }
.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq details[hidden] { display: none; }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  color: var(--ink);
  font: 560 20px/1.35 var(--font-sans);
  letter-spacing: -0.02em;
  list-style: none;
  cursor: pointer;
  transition: color .18s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--brand); }
.faq summary::after {
  content: "";
  flex: none;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B1534' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") 50% / 14px no-repeat;
  transition: transform .25s var(--ease-out), background-color .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--brand-tint); }
.faq__a { max-width: 46em; padding: 0 56px 28px 0; }
.faq__a p { margin: 0 0 12px; }
.faq__a p:last-child { margin-bottom: 0; }
.faq__a a { color: var(--brand); font-weight: 600; }
.faq-empty { margin: 0; padding: 28px 0; color: var(--muted); }
.faq-empty[hidden] { display: none; }

/* ---------- Mallar ---------- */

.tpls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.tpl {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  scroll-margin-top: 120px;
  transition: box-shadow .25s var(--ease-out), transform .25s var(--ease-out);
}
.tpl:hover { box-shadow: var(--shadow-2); transform: translateY(-3px); }
.tpl:target { box-shadow: 0 0 0 2px var(--brand), var(--shadow-2); }
.tpl__stage {
  position: relative;
  height: 250px;
  padding: 32px 36px 0;
  overflow: hidden;
  background:
    radial-gradient(70% 90% at 80% 0%, rgba(76, 107, 255, .14), transparent 70%),
    var(--surface);
  border-bottom: 1px solid var(--line);
}
.sheetlet {
  position: relative;
  height: 100%;
  padding: 22px 24px 0;
  border-radius: 3px 3px 0 0;
  background: #FDFDFE;
  color: #1B2442;
  font-family: var(--font-serif);
  box-shadow: 0 0 0 1px rgba(11, 21, 52, .06), 0 24px 44px -24px rgba(11, 21, 52, .45);
  transition: transform .4s var(--ease-out);
}
.tpl:hover .sheetlet { transform: translateY(-6px); }
.sheetlet__head {
  display: flex;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid #D5DAE8;
  color: #4A5473;
  font-size: 13px;
  font-style: italic;
}
.sheetlet__head b { font: 500 9.5px/1.4 var(--font-mono); font-style: normal; letter-spacing: .08em; text-transform: uppercase; }
.sheetlet__title { margin: 14px 0 0; color: var(--ink); font-size: 24px; line-height: 1.05; }
.sheetlet__lines { display: grid; gap: 7px; margin-top: 16px; }
.sheetlet__lines i { height: 5px; border-radius: 3px; background: #E6EAF4; }
.sheetlet__lines i:nth-child(2n) { width: 86%; }
.sheetlet__lines i:nth-child(3n) { width: 64%; }
.sheetlet__rows { display: grid; margin-top: 14px; border-top: 1px solid #D5DAE8; }
.sheetlet__rows span {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid #EBEEF6;
  color: #4A5473;
  font: 500 10px/1 var(--font-mono);
}
.sheetlet__rows span:last-child { border-bottom: 0; color: var(--ink); font-weight: 700; }
.sheetlet__sign { display: flex; gap: 18px; margin-top: 18px; }
.sheetlet__sign i { flex: 1; height: 26px; border-bottom: 1px solid #9AA3BC; }
.sheetlet__sign svg { width: 48px; margin-top: -8px; }
.tpl__body { display: grid; gap: 8px; align-content: start; padding: 24px 26px 28px; }
.tpl__cat { color: var(--muted); font: 500 11.5px/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.tpl__body h3 { font-size: 22px; }
.tpl__body p { margin: 0; font-size: 15.5px; line-height: 1.55; }

/* ---------- Tjänster: dokumenttyper ---------- */

.types { border-top: 1px solid var(--line-strong); }
.types li {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) minmax(0, 2fr);
  gap: 16px 40px;
  align-items: baseline;
  padding: 28px 0;
  border-bottom: 1px solid var(--line-strong);
  scroll-margin-top: 120px;
}
.types li:target { background: linear-gradient(90deg, var(--brand-tint), transparent 70%); }
.types h3 { font-size: 26px; font-weight: 540; letter-spacing: -0.03em; }
.types p { margin: 0; }
.types .text-link { justify-self: end; padding-block: 0; font-size: 15px; }

/* ---------- Löptext: villkor, integritet, cookies ---------- */

.doc {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: 88px;
  align-items: start;
}
.toc { position: sticky; top: 120px; }
.toc h2 {
  margin-bottom: 14px;
  color: var(--muted);
  font: 500 12px/1.2 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.toc ol { display: grid; gap: 2px; counter-reset: toc; }
.toc a {
  display: block;
  padding: 7px 0 7px 14px;
  border-inline-start: 1px solid var(--line-strong);
  color: var(--text);
  font-size: 15px;
  text-decoration: none;
  transition: color .18s, border-color .18s;
}
.toc a:hover, .toc a[aria-current="true"] { border-color: var(--brand); color: var(--brand); }

.prose { max-width: 44em; }
.prose > section { scroll-margin-top: 120px; }
.prose > section + section { margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--line); }
.prose h2 {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0 0 20px;
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.prose h2 .n { flex: none; color: var(--brand); font: italic 400 1.05em/1 var(--font-serif); letter-spacing: 0; }
.prose h3 { margin: 32px 0 10px; font-size: 19px; }
.prose p, .prose li { font-size: 17px; line-height: 1.7; }
.prose p { margin: 0 0 16px; }
.prose ul { display: grid; gap: 8px; margin: 0 0 18px; padding-inline-start: 1.25em; list-style: disc; }
.prose li::marker { color: var(--brand); }
.prose a { color: var(--brand); font-weight: 600; }
.prose strong { color: var(--ink); font-weight: 650; }
.prose .register { margin: 8px 0 24px; }
.prose .register td:last-child { text-align: left; }
.prose .register thead th { background: var(--surface); font-size: 14px; color: var(--muted); font-weight: 600; }
.note-box {
  margin: 24px 0;
  padding: 20px 24px;
  border-inline-start: 3px solid var(--brand);
  border-radius: 0 12px 12px 0;
  background: var(--brand-tint);
  color: var(--ink);
}
.note-box p:last-child { margin-bottom: 0; }

/* Hantera cookies och lagring */
.store {
  display: grid;
  gap: 16px;
  margin: 8px 0 24px;
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--white);
}
.store__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 24px;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.store__row:last-of-type { padding-bottom: 0; border-bottom: 0; }
.store__row b { display: block; color: var(--ink); }
.store__row span { color: var(--muted); font-size: 15px; }
.store__state { font: 500 13px/1.4 var(--font-mono); color: var(--muted); text-align: end; }
.store__state.is-set { color: var(--ok); }
.store__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding-top: 4px; }
.store__msg { color: var(--ok); font-weight: 600; font-size: 15px; }

/* ---------- Kontakt ---------- */

.form {
  display: grid;
  gap: 20px;
  padding: 40px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-1);
  scroll-margin-top: 120px;
}
.form__fields { display: grid; gap: 20px; }
.form__fields[hidden] { display: none; }
.form h2 { font-size: clamp(28px, 3vw, 38px); letter-spacing: -0.035em; }
.form__intro { margin: -8px 0 4px; color: var(--muted); }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: grid; gap: 8px; align-content: start; }
.field label { color: var(--ink); font-weight: 600; font-size: 15px; }
.field label .opt { color: var(--muted); font-weight: 400; }
.input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  transition: border-color .18s, box-shadow .18s;
}
.input:hover { border-color: #AEB9D3; }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(35, 64, 217, .18); }
textarea.input { min-height: 168px; padding: 14px 16px; line-height: 1.55; resize: vertical; }
select.input {
  -webkit-appearance: none;
          appearance: none;
  padding-inline-end: 44px;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B1534' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 16px center / 16px no-repeat;
}
[dir="rtl"] select.input { background-position: left 16px center; }
.input[aria-invalid="true"] { border-color: #B42318; }
.field__err { color: #B42318; font-size: 14px; font-weight: 600; }
.field__err:empty { display: none; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.form__fine { max-width: 32em; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.form__fine a { color: var(--brand); font-weight: 600; }
.form__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__status { margin: 0; padding: 14px 18px; border-radius: 12px; background: #FDECEA; color: #8A1C12; font-weight: 600; }
.form__status[hidden] { display: none; }
.form__done { display: grid; gap: 14px; justify-items: start; padding: 8px 0; }
.form__done[hidden] { display: none; }
.form__done .ico { width: 56px; height: 56px; border-radius: 50%; background: var(--ok-tint); color: var(--ok); }
.form__done .ico .icon { width: 26px; height: 26px; stroke-width: 2.4; }
.form__done h2 { font-size: clamp(28px, 3vw, 38px); }
.form__done p { margin: 0; max-width: 32em; }

/* Kontaktvägar bredvid formuläret */
.ways { display: grid; margin-top: 32px; border-top: 1px solid var(--line-strong); }
.ways li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line-strong);
}
.ways h3 { font-size: 18px; }
.ways p { margin: 6px 0 0; font-size: 16px; line-height: 1.55; }
.ways .text-link { padding-block: 6px 0; font-size: 15.5px; }

/* ---------- Press och webbkarta ---------- */

.kit { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.kit li { display: grid; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.kit__img {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  padding: 32px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.kit__img--dark { background: var(--deep); }
.kit__img img { max-height: 100%; width: auto; object-fit: contain; }
.kit__img--photo { padding: 0; }
.kit__img--photo img { width: 100%; height: 100%; object-fit: cover; }
.kit__body { display: grid; gap: 4px; padding: 20px 22px 22px; }
.kit__body b { color: var(--ink); font-weight: 620; }
.kit__body span { color: var(--muted); font-size: 14px; }
.kit__body .text-link { padding-block: 8px 0; font-size: 15px; }

.sitemap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px 40px; }
.sitemap h2 {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ink);
  font-size: 22px;
  letter-spacing: -0.025em;
}
.sitemap li + li { margin-top: 4px; }
.sitemap a { display: inline-block; padding: 6px 0; color: var(--ink); font-weight: 520; text-decoration: none; }
.sitemap a:hover { color: var(--brand); text-decoration: underline; }

/* ---------- Undersidor: responsivt ---------- */

@media (max-width: 1080px) {
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-xl { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .plan-xl > :last-child { grid-column: 1 / -1; justify-self: start; }
  .doc { gap: 56px; }
}

@media (max-width: 900px) {
  .sec-head { grid-template-columns: 1fr; margin-bottom: 40px; }
  .clauses, .clauses--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
  .plan-xl { grid-template-columns: 1fr; padding: 36px 32px; }
  .doc { grid-template-columns: 1fr; gap: 40px; }
  .toc { position: static; }
  .tpls, .kit { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .types li { grid-template-columns: 1fr; gap: 8px; }
  .types .text-link { justify-self: start; }
  .sitemap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts div { grid-template-columns: 1fr; gap: 6px; }
  .page-hero__art { width: 100%; opacity: .35; }
}

@media (max-width: 600px) {
  .page-hero h1 { font-size: 40px; }
  .clauses, .clauses--2, .plans, .tpls, .kit, .sitemap { grid-template-columns: 1fr; }
  .plan-xl .checks { grid-template-columns: 1fr; }
  .form { padding: 28px 22px; }
  .form__row { grid-template-columns: 1fr; }
  .faq summary { font-size: 18px; }
  .faq__a { padding-inline-end: 0; }
  .empty-note { padding: 28px 24px; }
  .store__row { grid-template-columns: 1fr; }
  .store__state { text-align: start; }
}

@media (prefers-reduced-motion: reduce) {
  .plan, .tpl, .sheetlet, .faq summary::after { transition: none; }
  .plan:hover, .tpl:hover, .tpl:hover .sheetlet { transform: none; }
}

/* Målgruppsvalet i menyn visas bara när växeln i headern är dold (mobil) */
.menu-aud { display: none; }
@media (max-width: 600px) { .menu-aud { display: list-item; } }
