/* =========================================================
   Clean Web UF – styles
   Färger tagna från logotypen.
   ========================================================= */
:root {
  --c-bg: #000000;          /* logotypens svarta bakgrund */
  --c-surface: #0C0F14;
  --c-surface-2: #141922;
  --c-line: #252B35;
  --c-text: #F2F4F7;        /* logotypens vita */
  --c-muted: #9AA3B2;
  --c-blue: #3D8FE6;        /* logotypens blå (UF) */
  --c-blue-light: #9ED0F7;  /* högdagern i svepet */
  --c-blue-deep: #1F5FBF;
  --c-blue-hover: #2F7BD0;  /* lite mörkare blå för hover */
  --c-on-blue: #000000;
  --c-error: #FF8A8A;

  --f-sans: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-serif: "Instrument Serif", Georgia, "Times New Roman", serif;

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1320px;
  --radius: 14px;

  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --dur: 220ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-sans);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 500; line-height: 1.1; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
ul[role="list"], ol[role="list"] { list-style: none; }

:focus-visible { outline: 3px solid var(--c-blue-light); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--c-blue); color: var(--c-on-blue);
  padding: 10px 16px; border-radius: 8px; text-decoration: none; font-weight: 500;
}
.skip-link:focus { top: 16px; }


/* ---------- Knappar ---------- */
/* Alla knappar är blå. Vid hover:
   – knappen dras lite mot muspekaren (magnetisk, se script.js)
   – en mörkare blå cirkel växer ut från där musen kom in
   – texten blir vit och följer med lite extra */
.btn {
  --tx: 0px; --ty: 0px; --s: 1;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 24px;
  border-radius: 999px; border: 1.5px solid transparent;
  background: var(--c-blue); color: var(--c-on-blue);
  font: 500 0.95rem/1 var(--f-sans);
  text-decoration: none; cursor: pointer;
  transform: translate3d(var(--tx), var(--ty), 0) scale(var(--s));
  transition: transform 450ms cubic-bezier(.2, .9, .25, 1), color 250ms var(--ease-out), box-shadow 300ms var(--ease-out);
  touch-action: manipulation;
}
.btn::before {
  content: ""; position: absolute; z-index: -1;
  left: var(--mx, 50%); top: var(--my, 50%);
  width: 0; aspect-ratio: 1; border-radius: 50%;
  background: var(--c-blue-deep);
  transform: translate(-50%, -50%);
  transition: width 500ms cubic-bezier(.2, .8, .2, 1);
}
.btn-label { display: inline-block; transform: translate3d(calc(var(--tx) * .4), calc(var(--ty) * .4), 0); transition: transform 450ms cubic-bezier(.2, .9, .25, 1); pointer-events: none; }
.btn:hover { color: #fff; box-shadow: 0 10px 26px -12px rgba(61, 143, 230, .9); }
.btn:hover::before { width: 260%; }
.btn:active { --s: .96; }
.btn-primary, .btn-ghost { background: var(--c-blue); color: var(--c-on-blue); }
.btn-primary:hover, .btn-ghost:hover { color: #fff; }
.btn.is-added::after {
  content: ""; width: 14px; height: 14px; margin-left: 10px; flex: none;
  background: currentColor;
  clip-path: polygon(14% 52%, 0 66%, 38% 100%, 100% 22%, 86% 8%, 38% 72%);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px var(--gutter);
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur);
}
.site-header.scrolled { border-bottom-color: var(--c-line); }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 64px; height: auto; }
.brand-name { font-weight: 500; letter-spacing: .14em; font-size: .9rem; text-transform: uppercase; white-space: nowrap; }
.brand-uf { color: var(--c-blue); }

.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav ul { list-style: none; display: flex; gap: 26px; }
.site-nav ul a {
  text-decoration: none; font-size: .92rem; color: var(--c-muted);
  padding: 6px 0; position: relative; transition: color var(--dur);
}
.site-nav ul a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
  background: var(--c-blue); transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease-out);
}
.site-nav ul a:hover, .site-nav ul a[aria-current="true"] { color: var(--c-text); }
.site-nav ul a:hover::after, .site-nav ul a[aria-current="true"]::after { transform: scaleX(1); }
.nav-cta { min-height: 42px; padding: 10px 20px; }

.menu-toggle {
  display: none; min-height: 44px; padding: 0 18px;
  background: transparent; color: var(--c-text);
  border: 1.5px solid var(--c-line); border-radius: 999px;
  font: 500 .9rem var(--f-sans); cursor: pointer;
}

.mobile-login { display: none; }
@media (max-width: 420px) { .site-header .brand-name { font-size: .78rem; letter-spacing: .1em; } .brand img { width: 48px; } }
@media (max-width: 1080px) {
  .mobile-login {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; margin-left: auto; white-space: nowrap; flex: none;
    color: var(--c-text); font-size: .9rem; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--c-blue);
  }
  .site-header { gap: 12px; }
  .menu-toggle { display: inline-flex; align-items: center; }
  .site-nav {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 20px;
    padding: 24px var(--gutter) 32px;
    background: #000; border-bottom: 1px solid var(--c-line);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity 180ms, transform 180ms var(--ease-out), visibility 0s 180ms;
  }
  .site-nav.open { opacity: 1; transform: none; visibility: visible; transition: opacity 220ms, transform 220ms var(--ease-out); }
  .site-nav ul { flex-direction: column; gap: 4px; }
  .site-nav ul a { display: block; padding: 12px 0; font-size: 1.25rem; color: var(--c-text); }
  .site-nav ul a::after { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  padding: calc(104px + 3vh) var(--gutter) 72px;
  max-width: var(--maxw); margin: 0 auto;
  display: flex; flex-direction: column; justify-content: space-between;
  isolation: isolate;
}

.hero-title {
  font-weight: 400;
  font-size: clamp(3rem, min(9vw, 14.5vh), 9.5rem);
  line-height: .95;
  letter-spacing: -.035em;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > span { display: inline-block; }
.hero-title .l2 { padding-left: 12vw; }
.hero-title .l3 { padding-left: 4vw; }
.hero-title .serif {
  font-family: var(--f-serif); font-style: italic; font-weight: 400;
  letter-spacing: -.01em; color: var(--c-blue-light);
  font-size: 1.12em;
}

.hero-orbit {
  position: absolute; z-index: -1;
  left: 0; right: 0; top: 18%;
  width: 100%; height: auto; max-height: 70%;
  pointer-events: none;
}
.orbit-path { stroke-dasharray: 1700; stroke-dashoffset: 0; }
.orbit-spark { transform-box: fill-box; transform-origin: center; }

.hero-foot {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
  margin-top: 40px;
}
.hero-lead { max-width: 34ch; font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--c-muted); margin: 0; }

.badge {
  position: relative; flex: none;
  width: clamp(120px, 13vw, 168px); aspect-ratio: 1;
  display: grid; place-items: center; text-decoration: none; border-radius: 50%;
}
.badge > svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 22s linear infinite; }
.badge text { fill: var(--c-text); font: 500 15.5px var(--f-sans); letter-spacing: .1em; }
.badge-core {
  width: 42%; aspect-ratio: 1; border-radius: 50%;
  background: var(--c-blue); color: #000;
  display: grid; place-items: center;
  transition: transform var(--dur) var(--ease-out), background-color var(--dur);
}
.badge-core svg { width: 46%; }
.badge:hover .badge-core { transform: scale(1.1); background: var(--c-blue-hover); }
@keyframes spin { to { transform: rotate(360deg); } }

/* Laddningsögonblicket – ett enda orkestrerat intro */
.js .hero-title .line > span { transform: translateY(105%); }
.js .orbit-path { stroke-dashoffset: 1700; }
.js .orbit-spark { opacity: 0; transform: scale(.2) rotate(-45deg); }
.js .hero-foot { opacity: 0; }
.loaded .hero-title .line > span { transform: none; transition: transform 900ms var(--ease-out); }
.loaded .hero-title .l2 > span { transition-delay: 90ms; }
.loaded .hero-title .l3 > span { transition-delay: 180ms; }
.loaded .orbit-path { stroke-dashoffset: 0; transition: stroke-dashoffset 1400ms cubic-bezier(.6, 0, .2, 1) 350ms; }
.loaded .orbit-spark { opacity: 1; transform: none; transition: opacity 300ms 1600ms, transform 700ms cubic-bezier(.3, 1.6, .5, 1) 1600ms; }
.loaded .hero-foot { opacity: 1; transition: opacity 700ms 900ms; }

@media (max-width: 720px) {
  .hero { padding-top: 120px; min-height: 88svh; }
  .hero-title .l2 { padding-left: 8vw; }
  .hero-title .l3 { padding-left: 0; }
  .hero-orbit { top: 26%; }
  .hero-foot { flex-direction: column; align-items: flex-start; }
}

/* ---------- Ticker ---------- */
.ticker {
  border-block: 1px solid var(--c-line);
  overflow: hidden; padding: 18px 0;
}
.ticker-track {
  display: flex; width: max-content;
  animation: ticker 38s linear infinite;
}
.ticker span {
  font-family: var(--f-serif); font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.4rem); line-height: 1.2;
  padding-right: 1.4em; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 1.4em;
}
.ticker span::after {
  content: ""; width: .5em; height: .5em; flex: none;
  background: var(--c-blue);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
}
@keyframes ticker { to { transform: translateX(-50%); } }
@media (hover: hover) { .ticker:hover .ticker-track { animation-play-state: paused; } }

/* ---------- Sektioner ---------- */
.section {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(80px, 12vw, 160px) var(--gutter) 0;
  scroll-margin-top: 40px;
}
.section-head {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 24px 64px; align-items: end;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section-title {
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 400; letter-spacing: -.03em; line-height: 1;
}
.section-intro { color: var(--c-muted); max-width: 46ch; margin: 0; font-size: 1.05rem; }
@media (max-width: 800px) { .section-head { grid-template-columns: 1fr; } }

.ticks { list-style: none; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: 12px; height: 12px; background: var(--c-blue);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
}

/* ---------- Tjänster ---------- */
.service-list { list-style: none; border-top: 1px solid var(--c-line); }
.service {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 24px 64px; padding: clamp(28px, 4vw, 48px) 0;
  border-bottom: 1px solid var(--c-line);
}
.service-name {
  font-size: clamp(2.2rem, 5.5vw, 4.6rem);
  font-weight: 300; letter-spacing: -.03em; line-height: 1;
}
.service-name em {
  font-family: var(--f-serif); font-weight: 400; letter-spacing: -.01em;
  color: var(--c-blue-light); font-size: 1.1em;
}
.service-body p { color: var(--c-muted); max-width: 46ch; }
@media (max-width: 800px) { .service { grid-template-columns: 1fr; } }

/* ---------- Före & efter ---------- */
/* Reglaget: gammal sida till vänster, ny till höger. Storleken följer skärmhöjden så att allt syns. */
.ba { margin: 0; }
.ba-frame {
  width: min(100%, max(300px, calc((100svh - 190px) * 1.6))); margin: 0 auto;
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--c-line);
  box-shadow: 0 30px 80px -30px rgba(61, 143, 230, .35);
}
.ba-chrome { display: flex; align-items: center; gap: 14px; height: 36px; padding: 0 14px; background: #1A1E25; }
.ba-dots { display: flex; gap: 6px; }
.ba-dots i { width: 10px; height: 10px; border-radius: 50%; background: #3A404B; }
.ba-url { flex: 1; max-width: 340px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 6px; height: 22px; border-radius: 6px; background: #0F1217; color: #9AA3B2; font-size: .75rem; }
.ba-lock { width: 8px; height: 9px; border: 1.5px solid #6EE7A0; border-radius: 2px; position: relative; top: 1px; }
.ba-stage { position: relative; aspect-ratio: 16 / 10; overflow: hidden; container: ba / inline-size; background: #0D0D0E; user-select: none; }
.ba-layer { position: absolute; inset: 0; isolation: isolate; }
.ba-before { z-index: 1; }
.ba-after { z-index: 2; }
.cu-old { --u: 1cqw; position: absolute; inset: 0; }
.ba-after { clip-path: inset(0 0 0 var(--pos)); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: var(--c-blue); pointer-events: none; z-index: 3; }
.ba-handle span { position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: var(--c-blue); box-shadow: 0 0 0 6px rgba(61, 143, 230, .25); }
.ba-handle span::before, .ba-handle span::after { content: ""; position: absolute; top: 50%; margin-top: -6px; border: 6px solid transparent; }
.ba-handle span::before { left: 9px; border-right: 8px solid #000; border-left: 0; }
.ba-handle span::after { right: 9px; border-left: 8px solid #000; border-right: 0; }
.ba-tag { position: absolute; z-index: 3; top: 14px; padding: 6px 14px; border-radius: 999px; font: 500 .85rem var(--f-sans); pointer-events: none; transition: opacity 200ms; }
.ba-tag-before { left: 14px; background: #000; color: #fff; }
.ba-tag-after { right: 14px; background: var(--c-blue); color: #000; }
.ba-stage.hide-before .ba-tag-before, .ba-stage.hide-after .ba-tag-after { opacity: 0; }
.ba-range { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.ba-stage:has(.ba-range:focus-visible) { outline: 3px solid var(--c-blue-light); outline-offset: -3px; }
@media (max-width: 700px) {
  .ba-frame { width: min(100%, max(260px, calc((100svh - 200px) * .75))); }
  .ba-stage { aspect-ratio: 3 / 4; }
}
/* Gamla sidan (medvetet daterad) */
.cu-old {
  display: flex; flex-direction: column;
  padding: calc(1.2 * var(--u)); overflow: hidden;
  background: #C9D6E3 repeating-linear-gradient(45deg, rgba(255,255,255,.25) 0 calc(.6 * var(--u)), transparent 0 calc(1.2 * var(--u)));
  font-family: Verdana, Geneva, sans-serif; font-size: calc(.95 * var(--u)); color: #222; line-height: 1.45;
}
.cu-old p { margin: 0 0 calc(.5 * var(--u)); }
.o-head { text-align: center; padding: calc(1 * var(--u)); background: linear-gradient(#1E4FA8, #0B2E6B); border: calc(.3 * var(--u)) outset #9FB4D6; }
.o-logo { font: bold calc(4 * var(--u))/1 Impact, "Arial Black", sans-serif !important; color: #FFD800; letter-spacing: .08em; text-shadow: calc(.25 * var(--u)) calc(.25 * var(--u)) 0 #C00; margin: 0 !important; }
.o-sub { color: #fff; font: italic calc(1.3 * var(--u)) "Times New Roman", serif; margin: calc(.4 * var(--u)) 0 0 !important; }
.o-nav { text-align: center; background: #E8EEF6; color: #00E; font: calc(1.2 * var(--u)) "Times New Roman", serif; padding: calc(.5 * var(--u)); border: calc(.15 * var(--u)) solid #8899AA; }
.o-marquee { background: #FFFF66; color: #C00; font: bold calc(1.1 * var(--u)) Arial, sans-serif; padding: calc(.4 * var(--u)); white-space: nowrap; overflow: hidden; border-block: calc(.15 * var(--u)) dashed #C00; }
.o-cols { flex: 1; display: grid; grid-template-columns: 22% 1fr; gap: calc(1 * var(--u)); margin-top: calc(1 * var(--u)); }
.o-side { background: #DDE4EC; border: calc(.2 * var(--u)) outset #fff; padding: calc(.8 * var(--u)); }
.o-side u, .o-link u, .o-nav u { color: #00E; }
.o-side-h { font-weight: bold; background: #0B2E6B; color: #fff; padding: calc(.2 * var(--u)) calc(.5 * var(--u)); }
.o-tiny { font-size: calc(.8 * var(--u)); color: #555; }
.o-main { background: #fff; border: calc(.2 * var(--u)) inset #ccc; padding: calc(1 * var(--u)); }
.o-h { color: #C00; font: bold calc(1.9 * var(--u)) "Times New Roman", serif; text-align: center; }
.o-img {
  float: right; width: 30%; height: calc(9 * var(--u)); margin: 0 0 calc(.6 * var(--u)) calc(.8 * var(--u));
  display: flex; gap: calc(.3 * var(--u)); padding: calc(.3 * var(--u));
  border: calc(.15 * var(--u)) solid #999; background: #EEE; color: #666; font-size: calc(.8 * var(--u));
}
.o-broken { width: calc(1 * var(--u)); height: calc(1.2 * var(--u)); flex: none; border: calc(.1 * var(--u)) solid #999; background: linear-gradient(135deg, transparent 45%, #C00 45% 55%, transparent 55%), #fff; }
.o-foot { margin-top: calc(1 * var(--u)); background: #0B2E6B; color: #DDE; text-align: center; font: calc(.9 * var(--u)) Arial, sans-serif; padding: calc(.5 * var(--u)); }

.cu-junk {
  position: absolute; z-index: 2; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%);
  will-change: transform, opacity; text-align: center; line-height: 1.15;
}
.j-star {
  display: grid; place-items: center; width: calc(9 * var(--u)); aspect-ratio: 1;
  background: #FFE600; color: #E00; font: calc(1.5 * var(--u)) Impact, "Arial Black", sans-serif; rotate: -12deg;
  clip-path: polygon(50% 0, 61% 18%, 82% 9%, 80% 31%, 100% 38%, 86% 55%, 98% 74%, 76% 76%, 72% 98%, 54% 86%, 36% 100%, 30% 78%, 8% 80%, 15% 60%, 0 44%, 18% 34%, 14% 12%, 36% 18%);
}
.j-construct {
  padding: calc(.5 * var(--u)) calc(1 * var(--u)); font: bold calc(1.1 * var(--u)) Arial, sans-serif; color: #111;
  border: calc(.5 * var(--u)) solid transparent;
  background: linear-gradient(#FFD800, #FFD800) padding-box, repeating-linear-gradient(45deg, #111 0 calc(.6 * var(--u)), #FFD800 0 calc(1.2 * var(--u))) border-box;
}
.j-best { padding: calc(.5 * var(--u)) calc(1 * var(--u)); background: #E00; color: #fff; font: bold italic calc(1.3 * var(--u)) Arial, sans-serif; rotate: 8deg; box-shadow: calc(.3 * var(--u)) calc(.3 * var(--u)) 0 #900; }
.j-counter { padding: calc(.5 * var(--u)) calc(.8 * var(--u)); background: #000; color: #0F0; font: calc(1 * var(--u)) "Courier New", monospace; border: calc(.2 * var(--u)) ridge #888; }
.j-counter b { font-size: calc(1.6 * var(--u)); letter-spacing: .2em; }
.j-new { padding: calc(.3 * var(--u)) calc(.9 * var(--u)); background: #F0F; color: #FF0; font: bold calc(1.3 * var(--u)) "Comic Sans MS", cursive; border-radius: 50%; rotate: -8deg; }
.j-guest { padding: calc(.5 * var(--u)) calc(.8 * var(--u)); background: #FFF7C2; color: #C0C; border: calc(.15 * var(--u)) dashed #C0C; font: calc(1.05 * var(--u)) "Comic Sans MS", cursive; rotate: 5deg; }

/* Nya sidan – i stil med synchronized.studio och Clean Web: mörk, stor typografi, roterande märke */
.sx-site {
  --u: 1cqw; --ink: #0D0D0E; --paper: #ECEAE4; --mute: #9C9A93; --volt: #F2E14C;
  position: absolute; inset: 0; overflow: hidden;
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr auto;
  padding: calc(2.4 * var(--u)) calc(3.2 * var(--u)) 0;
  background: radial-gradient(60% 70% at 85% 30%, rgba(242, 225, 76, .08), transparent 60%), var(--ink);
  color: var(--paper); font-family: var(--f-sans);
}
.sx-site p { margin: 0; }
.sx-top { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: flex-start; padding-top: calc(2.6 * var(--u)); }
.sx-brand { display: flex; align-items: center; gap: calc(.9 * var(--u)); font-weight: 600; font-size: calc(1.2 * var(--u)); line-height: 1.2; }
.sx-brand small { font-weight: 400; font-size: calc(.9 * var(--u)); color: var(--mute); }
.sx-bolt { width: calc(2.8 * var(--u)); height: calc(2.8 * var(--u)); padding: calc(.6 * var(--u)); border-radius: 50%; background: var(--volt); fill: var(--ink); }
.sx-nav { display: flex; flex-direction: column; align-items: flex-end; gap: calc(.25 * var(--u)); font-size: calc(1 * var(--u)); color: var(--mute); }
.sx-nav-cta { color: var(--volt); text-decoration: underline; text-underline-offset: calc(.3 * var(--u)); margin-top: calc(.4 * var(--u)); }
.sx-h {
  grid-column: 1; grid-row: 2; align-self: center;
  font-weight: 300; font-size: calc(10.4 * var(--u)); line-height: .9; letter-spacing: -.045em;
}
.sx-h > span { display: block; }
.sx-l2 { padding-left: calc(26 * var(--u)); }
.sx-l3 { padding-left: calc(12 * var(--u)); }
.sx-h em { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; color: var(--volt); font-size: 1.12em; }
.sx-side { position: absolute; right: calc(3.2 * var(--u)); bottom: calc(9 * var(--u)); width: calc(22 * var(--u)); }
.sx-lead { font-size: calc(1.1 * var(--u)); line-height: 1.55; color: #B8B5AD; margin-bottom: calc(1 * var(--u)) !important; }
.sx-proof { display: flex; align-items: center; gap: calc(.6 * var(--u)); font-size: calc(.95 * var(--u)); color: var(--mute); }
.sx-stars { display: inline-flex; gap: calc(.15 * var(--u)); }
.sx-stars i { width: calc(1 * var(--u)); height: calc(1 * var(--u)); background: var(--volt); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.sx-badge { position: absolute; right: calc(7 * var(--u)); top: calc(17 * var(--u)); width: calc(12 * var(--u)); aspect-ratio: 1; display: grid; place-items: center; }
.sx-badge > svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 18s linear infinite; }
.sx-badge text { fill: var(--paper); font: 500 17px var(--f-sans); letter-spacing: .12em; }
.sx-badge-core { width: 40%; aspect-ratio: 1; border-radius: 50%; background: var(--volt); display: grid; place-items: center; }
.sx-badge-core svg { width: 50%; fill: var(--ink); }
.sx-strip { grid-column: 1 / -1; grid-row: 3; margin: 0 calc(-3.2 * var(--u)); padding: calc(1.4 * var(--u)) 0; border-top: 1px solid #2A2A2C; overflow: hidden; }
.sx-track { display: flex; align-items: baseline; gap: calc(3 * var(--u)); width: max-content; animation: sxmarquee 28s linear infinite; }
.sx-track span { font-weight: 600; font-size: calc(2.2 * var(--u)); text-transform: uppercase; letter-spacing: -.01em; }
.sx-track em { font-family: var(--f-serif); font-style: italic; font-size: calc(2.6 * var(--u)); color: var(--volt); }
@keyframes sxmarquee { to { transform: translateX(-50%); } }

/* Smal skärm: mobilversioner av båda sidorna */
@container ba (max-width: 560px) {
  .cu-old, .sx-site { --u: 2.5cqw; }
  .o-cols { grid-template-columns: 1fr; }
  .o-side, .o-img { display: none; }
  .o-logo { font-size: calc(3.2 * var(--u)) !important; }
  .cu-junk { scale: 1.25; }
  .sx-site { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto auto; padding-top: calc(2 * var(--u)); }
  .sx-nav > span:not(.sx-nav-cta) { display: none; }
  .sx-h { grid-row: 2; font-size: calc(5.4 * var(--u)); align-self: center; }
  .sx-l2 { padding-left: calc(3 * var(--u)); }
  .sx-l3 { padding-left: 0; }
  .sx-side { position: static; grid-column: 1; grid-row: 3; width: auto; margin-bottom: calc(1.6 * var(--u)); }
  .sx-badge { width: calc(9 * var(--u)); right: calc(3 * var(--u)); top: calc(7 * var(--u)); }
  .sx-strip { grid-row: 4; }
}
.ba-caption { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 48px; margin-top: 28px; }
.ba-why h3 { font-size: 1.15rem; font-weight: 500; margin-bottom: 8px; }
.ba-why p { color: var(--c-muted); margin: 0; max-width: 52ch; }
.ba-why:first-child h3 { color: #FFB4A8; }
.ba-why:nth-child(2) h3 { color: var(--c-blue-light); }
.ba-note { grid-column: 1 / -1; color: var(--c-muted); font-size: .85rem; margin: 0; }
@media (max-width: 700px) { .ba-caption { grid-template-columns: 1fr; } }


/* ---------- Varför ---------- */
.why-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--c-line); }
.why-list li { padding: 32px 40px 32px 0; border-bottom: 1px solid var(--c-line); }
.why-list li:nth-child(even) { padding: 32px 0 32px 40px; border-left: 1px solid var(--c-line); }
.why-list h3 {
  display: flex; align-items: center; gap: 12px;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 400; letter-spacing: -.01em; margin-bottom: 12px;
}
.why-list h3::before {
  content: ""; width: 14px; height: 14px; flex: none; background: var(--c-blue);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
}
.why-list p { color: var(--c-muted); margin: 0; max-width: 52ch; }
@media (max-width: 800px) {
  .why-list { grid-template-columns: 1fr; }
  .why-list li, .why-list li:nth-child(even) { padding: 28px 0; border-left: 0; }
}

/* ---------- Arbeten ---------- */
.cases { list-style: none; display: grid; gap: clamp(40px, 6vw, 80px); }
.case-link { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px 48px; align-items: end; text-decoration: none; }
.case:nth-child(even) .case-link { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
.case:nth-child(even) .case-shot { order: 2; }
.case-shot {
  aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden;
  display: grid; place-items: center; padding: 7%;
  transition: transform 400ms var(--ease-out);
}
.case-link:hover .case-shot { transform: scale(.985); }
.case-link:hover .case-name { color: var(--c-blue-light); }
.mock {
  width: 100%; height: 100%; border-radius: 10px; background: #fff;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.5);
  display: grid; grid-template-rows: 9% 1fr 22%; gap: 6%; padding: 5%;
}
.mock i { display: block; border-radius: 6px; }
.shot-a { background: linear-gradient(135deg, #E9D7FF, #B998E8); }
.shot-a .mock i:nth-child(1) { background: #2C2140; width: 30%; }
.shot-a .mock i:nth-child(2) { background: linear-gradient(90deg, #2C2140 0 45%, #EFE6FB 45%); }
.shot-a .mock i:nth-child(3) { background: #EFE6FB; }
.shot-b { background: linear-gradient(135deg, #F4D9B5, #C98F4E); }
.shot-b .mock { background: #FFF8EE; }
.shot-b .mock i:nth-child(1) { background: #5B3A1E; width: 26%; }
.shot-b .mock i:nth-child(2) { background: linear-gradient(90deg, #F1E1C8 0 52%, #8E5A2C 52%); }
.shot-b .mock i:nth-child(3) { background: #F1E1C8; }
.shot-c { background: linear-gradient(135deg, #CFE3D6, #6E9C7E); }
.shot-c .mock i:nth-child(1) { background: #203A2B; width: 34%; }
.shot-c .mock i:nth-child(2) { background: linear-gradient(180deg, #203A2B 0 60%, #E3EEE6 60%); }
.shot-c .mock i:nth-child(3) { background: #E3EEE6; }

.case-name { font-size: clamp(1.8rem, 3.6vw, 3rem); font-weight: 400; letter-spacing: -.02em; margin-bottom: 12px; transition: color var(--dur); }
.case-desc { color: var(--c-muted); max-width: 36ch; }
.case-type { display: inline-block; border: 1px solid var(--c-line); border-radius: 999px; padding: 6px 14px; font-size: .85rem; color: var(--c-text); }
@media (max-width: 800px) {
  .case-link, .case:nth-child(even) .case-link { grid-template-columns: 1fr; }
  .case:nth-child(even) .case-shot { order: 0; }
}

/* ---------- Process ---------- */
.steps { list-style: none; position: relative; display: grid; gap: 0; counter-reset: none; }
.step {
  display: grid; grid-template-columns: clamp(72px, 12vw, 160px) minmax(0, 1fr);
  gap: 24px; padding: 32px 0; border-top: 1px solid var(--c-line);
  position: relative;
}
.step:last-child { border-bottom: 1px solid var(--c-line); }
.step-num {
  font-family: var(--f-serif); font-style: italic;
  font-size: clamp(3.5rem, 8vw, 6.5rem); line-height: .8;
  color: var(--c-blue);
}
.step h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 400; margin-bottom: 12px; letter-spacing: -.01em; }
.step p { color: var(--c-muted); max-width: 56ch; }
.step .step-time { color: var(--c-blue-light); margin: 0; font-size: .95rem; }
.step > div { max-width: 760px; }
@media (min-width: 900px) {
  .step { grid-template-columns: 160px minmax(0, 1fr) ; }
  .step:nth-child(2) { margin-left: 6%; }
  .step:nth-child(3) { margin-left: 12%; }
  .step:nth-child(4) { margin-left: 18%; }
  .step:nth-child(5) { margin-left: 24%; }
}

.promise {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 64px; align-items: center;
  margin-top: clamp(40px, 6vw, 72px); padding: clamp(24px, 4vw, 40px);
  border: 1.5px solid var(--c-blue); border-radius: var(--radius);
}
.promise-big {
  margin: 0; font-family: var(--f-serif); font-style: italic;
  font-size: clamp(2.6rem, 6vw, 4.8rem); line-height: 1; color: var(--c-blue-light);
}
.promise-text { margin: 0; color: var(--c-muted); max-width: 52ch; }
@media (max-width: 800px) { .promise { grid-template-columns: 1fr; } }

/* ---------- Priser ---------- */
.plans {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden;
}
.plan { padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 18px; }
.plan + .plan { border-left: 1px solid var(--c-line); }
.plan-name { font-size: 1.5rem; font-weight: 500; }
.plan-for { color: var(--c-muted); margin: 0; min-height: 3.2em; }
.plan-price { margin: 0; font-size: 1.1rem; }
.plan-price .amount { font-size: clamp(2.6rem, 4.6vw, 3.8rem); font-weight: 300; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.plan .ticks { flex: 1; align-content: start; }
.plan-featured { background: var(--c-blue); color: #000; }
.plan-featured .plan-for { color: #0B1B33; }
.plan-featured .ticks li::before { background: #000; }
.plan-featured .btn-primary { background: #000; color: var(--c-text); }
.plan-featured .btn-primary::before { background: var(--c-blue-deep); }
.plan-featured .btn-primary:hover { color: #fff; box-shadow: 0 10px 26px -12px rgba(0, 0, 0, .9); }
.plan-featured :focus-visible { outline-color: #000; }
@media (max-width: 900px) {
  .plans { grid-template-columns: 1fr; }
  .plan + .plan { border-left: 0; border-top: 1px solid var(--c-line); }
  .plan-for { min-height: 0; }
}

.plan-monthly { margin: -10px 0 0; color: var(--c-blue-light); font-weight: 400; }
.plan-featured .plan-monthly { color: #0B1B33; font-weight: 500; }
.plans-note { color: var(--c-muted); max-width: 70ch; margin: 24px 0 0; }
.plans-note strong { color: var(--c-text); font-weight: 500; }

/* Tillval */
.addons-head {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px 64px; align-items: end;
  margin: clamp(64px, 8vw, 104px) 0 32px;
}
.addons-title { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 400; letter-spacing: -.02em; }
.addons-head p { color: var(--c-muted); margin: 0; max-width: 46ch; }
.addon-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--c-line); }
.addon { padding: 28px 24px 28px 0; display: flex; flex-direction: column; gap: 14px; }
.addon + .addon { padding-left: 24px; border-left: 1px solid var(--c-line); }
.addon-name { margin: 0; font-size: 1.2rem; font-weight: 500; }
.addon-price { margin: 0; color: var(--c-muted); }
.addon-price span { font-size: 2.2rem; font-weight: 300; color: var(--c-text); letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-right: 4px; }
.addon .ticks { font-size: .95rem; flex: 1; align-content: start; }
.addon-btn { margin-top: 8px; padding-inline: 16px; font-size: .9rem; text-align: center; }
.addon-all { background: var(--c-surface-2); border-radius: var(--radius); padding-right: 24px; border-left-color: transparent !important; }
.addon-all .addon-price span { color: var(--c-blue-light); }
.addon-save {
  margin: -4px 0 0; align-self: flex-start;
  background: var(--c-blue); color: #000; font-weight: 500; font-size: .88rem;
  padding: 4px 12px; border-radius: 999px;
}
@media (max-width: 1000px) {
  .addon-grid { grid-template-columns: 1fr 1fr; }
  .addon:nth-child(3) { padding-left: 0; border-left: 0; }
  .addon:nth-child(n+3) { border-top: 1px solid var(--c-line); }
  .addon-all { padding-left: 24px; border-top-color: transparent !important; margin-top: 1px; }
}
@media (max-width: 800px) { .addons-head { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .addon-grid { grid-template-columns: 1fr; }
  .addon, .addon + .addon { padding-left: 0; border-left: 0; }
  .addon + .addon { border-top: 1px solid var(--c-line); }
  .addon-all { padding: 24px; margin-top: 16px; border-top-color: transparent !important; }
}

/* ---------- UF-rabatt ---------- */
.uf-box {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 72px; align-items: center;
  border: 1.5px solid var(--c-blue); border-radius: calc(var(--radius) * 2);
  padding: clamp(24px, 5vw, 64px);
  background: radial-gradient(90% 120% at 0% 0%, rgba(61,143,230,.18), transparent 60%);
}
.uf-big {
  margin: 0 0 8px; font-family: var(--f-serif); font-style: italic;
  font-size: clamp(5rem, 14vw, 11rem); line-height: .85; color: var(--c-blue-light);
}
.uf-intro .section-title { margin-bottom: 20px; }
.uf-intro p:not(.uf-big) { color: var(--c-muted); max-width: 44ch; margin-bottom: 28px; }
.uf-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.uf-table caption { text-align: left; color: var(--c-muted); font-size: .9rem; padding-bottom: 12px; }
.uf-table th, .uf-table td { text-align: left; padding: 12px 8px 12px 0; border-bottom: 1px solid var(--c-line); font-weight: 400; }
.uf-table thead th { color: var(--c-muted); font-size: .85rem; font-weight: 400; }
.uf-table td:nth-child(2) { color: var(--c-muted); text-decoration: line-through; text-decoration-color: rgba(154,163,178,.6); }
.uf-table td:last-child { color: var(--c-blue-light); font-weight: 500; text-align: right; padding-right: 0; }
.uf-table thead th:last-child { text-align: right; padding-right: 0; }
.uf-table td { white-space: nowrap; }
@media (max-width: 900px) { .uf-box { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .uf-box { padding: 24px 18px; border-radius: var(--radius); }
  .uf-table { font-size: .86rem; }
  .uf-table th, .uf-table td { padding: 10px 6px 10px 0; }
}

.field input[type="checkbox"] {
  width: 20px; height: 20px; min-height: 0; padding: 0; margin: 0;
  border: 0; border-radius: 4px; box-shadow: none; flex: none;
  accent-color: var(--c-blue); cursor: pointer;
}
.addon-choices { border: 0; padding: 0; margin: 0; }
.addon-choices legend { font-size: .92rem; padding: 0; margin-bottom: 8px; }
.legend-hint { color: var(--c-muted); }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice {
  display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 14px;
  border: 1.5px solid var(--c-line); border-radius: 10px; background: #000;
  cursor: pointer; transition: border-color var(--dur), background-color var(--dur);
}
.choice:hover { border-color: #3A4250; background: #0E1218; }
.choice input { width: 20px; height: 20px; accent-color: var(--c-blue); flex: none; cursor: pointer; margin: 0; }
.choice span { font-size: .9rem; color: var(--c-muted); line-height: 1.35; }
.choice b { display: block; color: var(--c-text); font-weight: 500; }
.choice:has(input:checked) { border-color: var(--c-blue); background: rgba(61, 143, 230, .08); }
.choice:has(input:disabled) { cursor: default; opacity: .55; }
.choice:has(input:focus-visible) { outline: 3px solid var(--c-blue-light); outline-offset: 2px; }
.addon-choices .help:empty { display: none; }
@media (max-width: 560px) { .choice-grid { grid-template-columns: 1fr; } }

.field.field-check { flex-direction: row; align-items: center; gap: 12px; }
.field-check input { width: 22px; height: 22px; min-height: 0; accent-color: var(--c-blue); flex: none; cursor: pointer; }
.field-check label { cursor: pointer; padding: 10px 0; }

/* ---------- Om oss ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px 80px; align-items: start; }
.about-text .section-title { margin-bottom: 32px; }
.about-lead { font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.4; font-weight: 400; }
.about-text p:not(.about-lead) { color: var(--c-muted); max-width: 52ch; }
.team-figure { margin: 0; max-width: 460px; justify-self: end; width: 100%; }
.team-photo {
  width: 100%; height: auto; aspect-ratio: 410 / 636; object-fit: cover;
  border-radius: var(--radius);
}
.team { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 20px; }
.member { display: flex; flex-direction: column; }
.member-right { text-align: right; }
.member-name { font-size: 1.3rem; font-weight: 500; margin-bottom: 4px; }
.member-role { color: var(--c-blue-light); margin-bottom: 10px; }
.member-bio { color: var(--c-muted); font-size: .95rem; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } .team-figure { justify-self: center; } }
@media (max-width: 420px) { .team { gap: 16px; } .member-bio { font-size: .88rem; } }

/* ---------- Kontakt ---------- */
.contact { padding-bottom: clamp(80px, 10vw, 140px); }
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px 80px; }
.contact-text .section-title { margin-bottom: 24px; }
.contact-text > p { color: var(--c-muted); max-width: 42ch; }
.contact-list { margin: 32px 0 0; display: grid; gap: 0; }
.contact-list > div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--c-line); }
.contact-list dt { color: var(--c-muted); }
.contact-list dd { margin: 0; overflow-wrap: anywhere; }
.contact-list a { color: var(--c-blue-light); }

.form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px 20px;
  background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--radius); padding: clamp(20px, 3vw, 36px);
}
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: .92rem; font-weight: 400; }
.field label span { color: var(--c-blue-light); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  background: #000; color: var(--c-text);
  border: 1.5px solid var(--c-line); border-radius: 10px;
  font: 400 1rem var(--f-sans);
  transition: border-color var(--dur);
}
.field select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--c-muted) 50%), linear-gradient(135deg, var(--c-muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #3A4250; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--c-blue); outline: none; box-shadow: 0 0 0 3px rgba(61,143,230,.3); }
.field [aria-invalid="true"] { border-color: var(--c-error); }
.help { color: var(--c-muted); font-size: .85rem; margin: 0; }
.err { color: var(--c-error); font-size: .88rem; margin: 0; min-height: 0; }
.err:empty { display: none; }
.form-note { color: var(--c-muted); font-size: .85rem; margin: 0; }
.form-status { margin: 0; color: var(--c-blue-light); }
.form-status:empty { display: none; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } .contact-list > div { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--c-line); padding: clamp(56px, 8vw, 100px) var(--gutter) 32px; }
.footer-mail { display: block; max-width: var(--maxw); margin: 0 auto; text-decoration: none; }
.footer-hello {
  display: block; font-family: var(--f-serif); font-style: italic;
  font-size: clamp(4rem, 16vw, 15rem); line-height: .9; letter-spacing: -.02em;
  transition: color var(--dur);
}
.footer-address { display: inline-block; margin-top: 16px; font-size: clamp(1.1rem, 2.6vw, 2rem); color: var(--c-blue-light); border-bottom: 1.5px solid currentColor; overflow-wrap: anywhere; }
.footer-mail:hover .footer-hello { color: var(--c-blue-light); }

.footer-bottom {
  max-width: var(--maxw); margin: clamp(56px, 8vw, 96px) auto 0;
  display: grid; grid-template-columns: auto 1fr auto; gap: 24px 48px; align-items: center;
}
.footer-logo { width: 150px; }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: center; }
.footer-links a { color: var(--c-muted); text-decoration: none; display: inline-block; padding: 8px 0; }
.footer-links a:hover { color: var(--c-text); }
.footer-links a.footer-legal { color: var(--c-muted); font-size: .88rem; margin: 0; }
@media (max-width: 860px) {
  .footer-bottom { grid-template-columns: 1fr; justify-items: start; }
  .footer-links { justify-content: flex-start; }
}

a[href^="tel:"] { white-space: nowrap; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Länkar i text ---------- */
.inline-link { color: var(--c-blue-light); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.inline-link:hover { color: var(--c-text); }
.text-link {
  display: inline-flex; align-items: center; min-height: 48px;
  color: var(--c-text); text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--c-blue);
}
.text-link:hover { color: var(--c-blue-light); }
.btn:disabled { opacity: .6; cursor: progress; }

/* Hero-knappar ovanför vecket */
.hero-text { display: flex; flex-direction: column; gap: 24px; }
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid var(--c-line); }
.faq-item { border-bottom: 1px solid var(--c-line); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0; min-height: 48px;
  font-size: clamp(1.1rem, 2vw, 1.45rem); font-weight: 400;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; width: 14px; height: 14px; flex: none;
  border-right: 2px solid var(--c-blue); border-bottom: 2px solid var(--c-blue);
  transform: translateY(-4px) rotate(45deg); transition: transform var(--dur) var(--ease-out);
}
.faq-item[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq-item summary:hover { color: var(--c-blue-light); }
.faq-item p { color: var(--c-muted); max-width: 70ch; margin: -6px 0 24px; }

/* ---------- Formulär-meddelanden ---------- */
.form-promise { margin: -8px 0 0; color: var(--c-muted); font-size: .9rem; text-align: center; }
.form-status { padding: 14px 16px; border-radius: 10px; }
.form-status.is-success { background: rgba(61, 143, 230, .12); border: 1px solid var(--c-blue); color: var(--c-blue-light); }
.form-status.is-error { background: rgba(255, 138, 138, .1); border: 1px solid var(--c-error); color: var(--c-error); }

/* ---------- Footer-extra ---------- */
.footer-logo-link { display: inline-block; border-radius: 8px; }
.link-button {
  background: none; border: 0; padding: 8px 0; cursor: pointer;
  font: inherit; color: var(--c-muted);
}
.link-button:hover { color: var(--c-text); }

/* ---------- Fast mobilknapp ---------- */
.sticky-cta { display: none; }
@media (max-width: 720px) {
  .sticky-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: grid; grid-template-columns: 1fr; gap: 10px; align-items: center;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(0, 0, 0, .88); border-top: 1px solid var(--c-line);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    transition: transform 250ms var(--ease-out);
  }
  .sticky-cta.is-hidden { transform: translateY(110%); }
  .sticky-call {
    display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 18px;
    border: 1.5px solid var(--c-line); border-radius: 999px; color: var(--c-text); text-decoration: none; font-weight: 500; font-size: .95rem;
  }
  .sticky-offer { width: 100%; }
  body { padding-bottom: 76px; }
}

/* ---------- Cookie-ruta ---------- */
.cookie-banner {
  position: fixed; z-index: 80; left: 16px; right: 16px; bottom: 16px;
  max-width: 460px; padding: 20px;
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.9);
}
.cookie-banner[hidden] { display: none; }
.cookie-title { font-weight: 500; margin: 0 0 6px; }
.cookie-text { color: var(--c-muted); font-size: .92rem; margin: 0 0 16px; }
.cookie-actions { display: flex; gap: 10px; }
.cookie-actions .btn { flex: 1; }
@media (max-width: 720px) { .cookie-banner { bottom: 92px; } }

/* ---------- Undersidor (404, tack, integritetspolicy) ---------- */
.subpage-header { position: static; background: #000; border-bottom: 1px solid var(--c-line); }
.subpage { max-width: 860px; margin: 0 auto; padding: clamp(48px, 8vw, 96px) var(--gutter) clamp(64px, 10vw, 120px); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: .9rem; color: var(--c-muted); margin-bottom: 32px; }
.breadcrumbs li + li::before { content: "/"; margin-right: 10px; color: #4A5260; }
.breadcrumbs a { color: var(--c-muted); }
.breadcrumbs a:hover { color: var(--c-text); }
.breadcrumbs [aria-current] { color: var(--c-text); }
.subpage-title { font-size: clamp(2.6rem, 8vw, 5.5rem); font-weight: 400; letter-spacing: -.03em; line-height: 1; margin-bottom: 24px; }
.subpage-title .serif { font-family: var(--f-serif); font-style: italic; color: var(--c-blue-light); }
.subpage-lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--c-muted); max-width: 52ch; }
.subpage-actions { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; margin-top: 32px; }
.subpage-links { list-style: none; display: grid; gap: 0; margin-top: 48px; border-top: 1px solid var(--c-line); }
.subpage-links a { display: flex; justify-content: space-between; padding: 18px 0; border-bottom: 1px solid var(--c-line); text-decoration: none; }
.subpage-links a:hover { color: var(--c-blue-light); }
.prose h2 { font-size: 1.5rem; font-weight: 500; margin: 48px 0 12px; scroll-margin-top: 24px; }
.prose p, .prose li { color: var(--c-muted); max-width: 70ch; }
.prose ul { padding-left: 20px; margin: 0 0 1em; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--c-blue-light); }
.simple-footer { border-top: 1px solid var(--c-line); padding: 28px var(--gutter); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; color: var(--c-muted); font-size: .9rem; }
.simple-footer a { color: var(--c-muted); }
.simple-footer a:hover { color: var(--c-text); }

/* ---------- Konton (tack-sidan + Mina sidor) ---------- */
.muted { color: var(--c-muted); }
.auth-card {
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: clamp(20px, 3vw, 32px); margin-top: 24px;
}
.auth-card[hidden] { display: none; }
.signup-card { border-color: var(--c-blue); margin: 40px 0 8px; background: radial-gradient(90% 120% at 0% 0%, rgba(61,143,230,.14), transparent 60%), var(--c-surface); }
.auth-title { font-size: 1.35rem; font-weight: 500; margin-bottom: 8px; }
.auth-lead { color: var(--c-muted); margin-bottom: 20px; max-width: 56ch; }
.auth-form { display: grid; gap: 18px; max-width: 460px; }
.auth-form .field input[readonly] { color: var(--c-muted); background: #07090C; cursor: default; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 76px; }
.pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  min-height: 36px; padding: 0 12px; border-radius: 8px;
  background: transparent; border: 1px solid var(--c-line); color: var(--c-muted);
  font: 500 .85rem var(--f-sans); cursor: pointer;
}
.pw-toggle:hover { color: var(--c-text); border-color: #3A4250; }
.terms-field .field-check { display: flex; align-items: flex-start; gap: 12px; }
.terms-field .field-check input { margin-top: 12px; }
.terms-field .field-check label { padding: 8px 0; line-height: 1.5; }
.terms-field [aria-invalid="true"] { outline: 2px solid var(--c-error); outline-offset: 2px; }
.auth-switch { margin: 16px 0 0; color: var(--c-muted); font-size: .95rem; }
.captcha:empty { display: none; }
.captcha { min-height: 65px; }
.auth-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.auth-card .form-status { margin-top: 16px; }

.acc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 40px; }
.acc-head .subpage-title { margin-bottom: 8px; }
.acc-h2 { font-size: 1.5rem; font-weight: 500; margin-bottom: 16px; }
.offer-list { display: grid; gap: 16px; }
.offer-card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: clamp(20px, 3vw, 28px); }
.offer-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; margin-bottom: 20px; }
.offer-head h3 { font-size: 1.2rem; font-weight: 500; }
.status-steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 20px; }
.status-steps li {
  position: relative; padding-top: 18px; font-size: .85rem; color: var(--c-muted);
  border-top: 3px solid var(--c-line);
}
.status-steps li.done { border-top-color: var(--c-blue); color: var(--c-text); }
.status-steps li.current { border-top-color: var(--c-blue-light); color: var(--c-blue-light); font-weight: 500; }
.status-steps li.current::before {
  content: ""; position: absolute; top: -8px; left: 0; width: 13px; height: 13px; border-radius: 50%;
  background: var(--c-blue-light); box-shadow: 0 0 0 4px rgba(158, 208, 247, .2);
}
.offer-note { background: rgba(61,143,230,.1); border-left: 3px solid var(--c-blue); padding: 10px 14px; border-radius: 6px; }
.offer-details { display: grid; grid-template-columns: 140px 1fr; gap: 8px 16px; margin: 0; }
.offer-details dt { color: var(--c-muted); }
.offer-details dd { margin: 0; overflow-wrap: anywhere; white-space: pre-line; }
.acc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
.acc-grid .auth-card { margin-top: 0; }
.danger-zone { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--c-line); }
.danger-zone .muted { max-width: 60ch; }
.danger-button {
  min-height: 48px; padding: 12px 22px; border-radius: 999px; cursor: pointer;
  background: transparent; border: 1.5px solid var(--c-error); color: var(--c-error);
  font: 500 .95rem var(--f-sans);
}
.danger-button:hover { background: rgba(255, 138, 138, .1); }
.delete-dialog { margin-top: 20px; }
.delete-dialog[hidden] { display: none; }
@media (max-width: 760px) {
  .acc-grid { grid-template-columns: 1fr; }
  .status-steps { grid-template-columns: 1fr; gap: 0; }
  .status-steps li { border-top: 0; border-left: 3px solid var(--c-line); padding: 8px 0 8px 16px; }
  .status-steps li.done { border-left-color: var(--c-blue); }
  .status-steps li.current { border-left-color: var(--c-blue-light); }
  .status-steps li.current::before { top: 50%; left: -8px; transform: translateY(-50%); }
  .offer-details { grid-template-columns: 1fr; gap: 2px; }
  .offer-details dd { margin-bottom: 10px; }
}

/* ---------- Minskad rörelse ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .ticker-track { animation: none; }
  .badge > svg { animation: none; }
  /* Färgskiftet på knappar är ingen stor rörelse, så det får finnas kvar mjukt */
  .btn { transition-property: color, box-shadow !important; transition-duration: 250ms !important; }
  .btn::before { transition-duration: 350ms !important; }
}
