/* ---------- Design tokens ---------- */
/* Telenor.se identity — Telenor Blue + Deep Sea palette */
:root {
  /* Backgrounds (white is primary surface, cool gray for elevation) */
  --bg: #FFFFFF;             /* main background */
  --bg-2: #F4F5F7;           /* telenor cool_gray — neutral elevation */
  --bg-elev: #FFFFFF;        /* cards / elevated surfaces */

  /* Text — deep_sea for primary, slate for secondary */
  --ink: #001E50;            /* telenor deep_sea — primary text & focus surfaces */
  --ink-2: #001E50;          /* body text */
  --ink-3: #5B6B85;           /* slate — secondary text */
  --ink-4: #A8B0BD;           /* muted decorative */

  /* Lines */
  --line: #E2E5EB;            /* slate_line */
  --line-2: #F4F5F7;          /* cool_gray */

  /* Accent — Telenor Blue identity for CTAs and links */
  --accent: #0099E5;          /* telenor_blue — primary CTA background, CTA-lines */
  --accent-2: #0079B5;        /* telenor_blue_dark — link / button hover */
  --accent-soft: #E6F5FC;     /* telenor_blue_light — soft highlight */
  --accent-soft-2: #F4FAFD;   /* telenor_blue_lightest — softest highlight */

  /* Supporting tones */
  --sage: #001E50;            /* deep accent — reused as deep_sea */
  --sage-soft: #B3E2F5;       /* telenor_blue_tint */
  --butter: #F4F5F7;          /* neutral highlight — cool_gray */

  /* Pill-collage signature: Telenor Blue */
  --royal: #0099E5;           /* telenor_blue — gives pill-collage its punch */
  --warning-bg: #FFEAEA;      /* warning red_lighter — kept semantic */
  --warning-ink: #001E50;     /* deep_sea */
  --warning-line: #F55C52;    /* warning red_soft — kept semantic */

  /* Type — Apercu Pro per manual; falls back to Arial/Helvetica when not licensed */
  --font-sans: "Apercu Pro", Apercu, Arial, Helvetica, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Apercu Pro", Apercu, Arial, Helvetica, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Motion */
  --ease: cubic-bezier(.2,.7,.2,1);
  --dur-fast: 160ms;
  --dur: 320ms;
  --dur-slow: 620ms;

  /* Radii & shadow */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 22px;
  --shadow-1: 0 1px 2px rgba(20,20,20,.04), 0 2px 6px rgba(20,20,20,.04);
  --shadow-2: 0 12px 32px -12px rgba(20,20,20,.12), 0 4px 10px rgba(20,20,20,.04);

  /* Layout */
  --maxw: 1200px;
  --gutter: clamp(20px, 4vw, 40px);

  /* Section rhythm — compact */
  --section-y: clamp(16px, 1.8vw, 26px);
  --hero-y-top: clamp(32px, 4vw, 56px);
  --hero-y-bottom: clamp(16px, 2vw, 28px);
  --head-margin: clamp(14px, 1.8vw, 24px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font: inherit; color: inherit; }

/* ---------- Base ---------- */
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16.5px;
  line-height: 1.6;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Subtle Telenor-blue tint in upper-right corner */
body::before {
  content: "";
  position: fixed; inset: 0;
  background: radial-gradient(1200px 600px at 85% -5%, rgba(0, 153, 229, 0.04), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

main, header, footer { position: relative; z-index: 1; }

/* Headings — Apercu Bold, blue_dark, large size contrast vs body (per manual B.4.0) */
h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0;
}
h1 { font-size: clamp(38px, 5vw, 68px); }
h2 { font-size: clamp(26px, 3vw, 40px); }
h3 { font-size: clamp(20px, 2vw, 26px); font-weight: 600; letter-spacing: -0.015em; }
h4 { font-weight: 600; font-size: 15px; letter-spacing: 0; }
p { margin: 0 0 1em; color: var(--ink-2); }
p:last-child { margin-bottom: 0; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Eyebrow / small caps label ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--ink-4);
}

/* ---------- Top warning strip ---------- */
.topbar {
  position: relative;
  z-index: 60;
  background: var(--ink);
  color: #E2E5EB;
  font-size: 13px;
  letter-spacing: -0.005em;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 38px;
  padding: 8px var(--gutter);
  text-align: center;
  flex-wrap: wrap;
}
.topbar .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 153, 229, 0.28);
  animation: pulse 2.4s var(--ease) infinite;
  flex: none;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(0, 153, 229, 0.28); }
  50% { box-shadow: 0 0 0 8px rgba(0, 153, 229, 0.10); }
}
.topbar strong { color: #FFFFFF; font-weight: 600; }
.topbar a {
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.4);
  padding-bottom: 1px;
  transition: border-color var(--dur-fast) var(--ease);
}
.topbar a:hover { border-color: var(--butter); }
@media (max-width: 720px) {
  .topbar-inner { font-size: 12px; }
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--line); }

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand-mark {
  width: 28px; height: 28px;
  display: inline-flex;
  align-items: center; justify-content: center;
  color: var(--ink);
  transition: transform var(--dur-slow) var(--ease), color var(--dur) var(--ease);
}
.brand:hover .brand-mark {
  color: var(--accent);
}
.brand-mark svg { width: 100%; height: 100%; display: block; }
.brand-name { display: inline-flex; align-items: baseline; line-height: 1; font-family: var(--font-sans); }
.brand-name strong {
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.brand { gap: 10px; align-items: center; }

.nav-links {
  display: flex; align-items: center; gap: 4px;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  display: inline-block;
  padding: 10px 14px;
  font-size: 14.5px;
  color: var(--ink-2);
  border-radius: 999px;
  position: relative;
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.nav-links a:hover { color: var(--ink); background: rgba(20,20,20,.04); }
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 1px; background: var(--ink);
  transform-origin: left;
  animation: linein 520ms var(--ease) both;
}
@keyframes linein { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #FFFFFF;
  font-size: 14px; font-weight: 500;
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.nav-cta:hover { background: var(--accent-2); transform: translateY(-1px); }
.nav-cta svg { transition: transform var(--dur) var(--ease); }
.nav-cta:hover svg { transform: translateX(2px); }

.nav-toggle { display: none; }

@media (max-width: 820px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle {
    display: inline-grid; place-items: center;
    width: 42px; height: 42px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--bg-elev);
  }
  .nav.is-open .nav-links {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; left: var(--gutter); right: var(--gutter); top: 76px;
    background: var(--bg-elev); border: 1px solid var(--line);
    border-radius: var(--r-md); padding: 10px; box-shadow: var(--shadow-2);
  }
  .nav.is-open .nav-links a { text-align: left; }
  .nav.is-open .nav-cta { display: inline-flex; justify-content: center; margin-top: 6px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 15px; font-weight: 500;
  letter-spacing: -0.005em;
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), box-shadow var(--dur) var(--ease);
  will-change: transform;
}
.btn svg { transition: transform var(--dur) var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  background: var(--accent);
  color: #FFFFFF;
  box-shadow: 0 1px 2px rgba(0, 153, 229, .08), 0 12px 28px -14px rgba(0, 153, 229, .45);
}
.btn-primary:hover { background: var(--accent-2); transform: translateY(-2px); box-shadow: 0 1px 2px rgba(0, 121, 181, .12), 0 16px 32px -12px rgba(0, 121, 181, .50); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--bg-elev); border-color: var(--ink-4); transform: translateY(-2px); }

/* ---------- Hero ---------- */
.hero {
  padding: var(--hero-y-top) 0 var(--hero-y-bottom);
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero h1 {
  margin-top: 26px;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
  position: relative;
  display: inline-block;
}
.hero-lead {
  max-width: 54ch;
  font-size: clamp(17px, 1.7vw, 20px);
  color: var(--ink-2);
  margin-top: 22px;
}
.hero-cta {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-top: 32px;
}
.hero-meta {
  display: flex; align-items: center; gap: 14px;
  margin-top: 32px;
  color: var(--ink-3);
  font-size: 13.5px;
}
.hero-meta .divider { width: 1px; height: 18px; background: var(--line); }

/* Hero decorative card */
.hero-card {
  position: relative;
  padding: 26px 28px;
  border-radius: var(--r-lg);
  background: #FFFFFF;
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px rgba(0, 30, 80, 0.18), 0 2px 6px rgba(0, 30, 80, 0.05);
  transform: rotate(-0.6deg);
  transition: transform var(--dur-slow) var(--ease);
}
.hero-card:hover { transform: rotate(0deg) translateY(-4px); }
.hero-card-header {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 16px; margin-bottom: 16px;
  border-bottom: 1px dashed var(--line);
}
.hero-card-header small { color: var(--ink-3); font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; }
.hero-card-dots { display: flex; gap: 6px; }
.hero-card-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.hero-card-row {
  display: grid; grid-template-columns: auto 1fr auto; gap: 14px;
  padding: 12px 0;
  align-items: center;
  font-size: 14px;
  border-bottom: 1px solid var(--line-2);
}
.hero-card-row:last-of-type { border-bottom: 0; }
.hero-card-row .from { color: var(--ink-3); }
.hero-card-row .to { color: var(--ink); font-weight: 500; }
.hero-card-row .arrow {
  width: 28px; height: 2px; background: var(--ink-4); position: relative;
}
.hero-card-row .arrow::after {
  content: ""; position: absolute; right: -1px; top: -3px;
  width: 8px; height: 8px; border-top: 2px solid var(--ink-4); border-right: 2px solid var(--ink-4);
  transform: rotate(45deg);
}
.hero-card-row.sent .arrow { background: var(--accent); }
.hero-card-row.sent .arrow::after { border-color: var(--accent); }
.hero-card-row.sent { opacity: 0; animation: rowin 700ms var(--ease) forwards; }
.hero-card-row.sent:nth-of-type(2) { animation-delay: 250ms; }
.hero-card-row.sent:nth-of-type(3) { animation-delay: 500ms; }
@keyframes rowin { to { opacity: 1; } }

/* ---------- Hero pill-collage (adressflytt signature) ---------- */
/* Concept derived from Adressändring "04 Koncept" — pills + typografi as one
   compositional layer. Owned by adressflytt; Adressändring.se does not use it. */
.pill-collage {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-self: center;
  padding: 8px 0;
}
.pill-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: var(--offset, 0);
  opacity: 0;
  transform: translateX(16px);
  animation: pill-in 700ms var(--ease) forwards;
}
.pill-row:nth-child(1) { animation-delay: 80ms; }
.pill-row:nth-child(2) { animation-delay: 220ms; }
.pill-row:nth-child(3) { animation-delay: 360ms; }
.pill-row:nth-child(4) { animation-delay: 500ms; }
@keyframes pill-in {
  to { opacity: 1; transform: none; }
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  border-radius: 999px;
  flex: none;
  transition: transform var(--dur) var(--ease);
}
.pill-fill { width: var(--w, 200px); }
.pill-text {
  font-family: var(--font-sans);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
  padding: 0 4px;
  line-height: 1;
}
.pill-dot {
  width: 56px;
  height: 56px;
  border-radius: 50%;
}

/* Color variants — drawn from Adressändring palette + adressflytt royal */
.pill-red    { background: var(--accent); }       /* red_soft */
.pill-rose   { background: var(--accent-soft); }  /* red_lighter */
.pill-royal  { background: var(--royal); }        /* adressflytt cobalt */
.pill-sky    { background: var(--sage-soft); }    /* blue_soft_light */
.pill-ink    { background: var(--ink); }          /* blue_dark */

/* Subtle hover lift on the whole collage */
.pill-collage:hover .pill-fill { transform: translateX(-3px); }
.pill-collage:hover .pill-row:nth-child(even) .pill-fill { transform: translateX(3px); }

@media (max-width: 860px) {
  .pill-collage { padding: 24px 0 8px; }
  .pill { height: 44px; }
  .pill-dot { width: 44px; height: 44px; }
  .pill-fill { width: clamp(120px, 40vw, var(--w, 200px)); }
  .pill-text { font-size: clamp(22px, 7vw, 36px); }
}
@media (prefers-reduced-motion: reduce) {
  .pill-row { opacity: 1; transform: none; animation: none; }
}

/* ---------- Concept section (pill-collage living between hero and trust) ---------- */
.concept-section {
  padding: clamp(40px, 6vw, 80px) 0;
  background: var(--bg-2);
}
.concept-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 860px) {
  .concept-grid { grid-template-columns: 1fr; gap: 32px; }
}
.concept-text h2 { margin: 14px 0 16px; max-width: 16ch; }
.concept-text p { color: var(--ink-3); max-width: 42ch; }
.concept-link {
  display: inline-block;
  margin-top: 18px;
  font-weight: 600;
  color: var(--accent-2);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.concept-link:hover { color: var(--ink); border-color: var(--ink); }

/* ---------- Sections ---------- */
section { padding: var(--section-y) 0; }
.section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
  margin-bottom: var(--head-margin);
}
.section-head p { max-width: 50ch; color: var(--ink-3); }
@media (max-width: 720px) { .section-head { grid-template-columns: 1fr; } }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  counter-reset: step;
}
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step {
  position: relative;
  padding: 32px 28px 30px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--line-2); }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: 24px; right: 26px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 32px;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.step h3 { margin-bottom: 10px; padding-right: 56px; }
.step p { color: var(--ink-3); font-size: 15px; }
.step .step-tag {
  display: inline-block;
  font-size: 11px; font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.step .step-tag.free { background: var(--sage-soft); color: var(--ink); }
.step .step-tag.paid { background: var(--accent-soft); color: var(--accent-2); }
.step .step-tag.info { background: var(--bg-2); color: var(--ink); }

/* ---------- Options / Cards grid ---------- */
.options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 820px) { .options { grid-template-columns: 1fr; } }
.option {
  padding: 36px 32px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  display: flex; flex-direction: column; gap: 16px;
  min-height: 260px;
  position: relative;
  overflow: hidden;
}
.option::after {
  content: "";
  position: absolute; right: -40px; bottom: -40px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, var(--accent-soft-2), transparent 70%);
  opacity: 0; transition: opacity var(--dur-slow) var(--ease);
}
.option:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.option:hover::after { opacity: 1; }
.option h3 { position: relative; }
.option ul { position: relative; list-style: none; padding: 0; margin: 8px 0 0; }
.option ul li {
  padding: 10px 0 10px 26px;
  position: relative;
  font-size: 15px;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line-2);
}
.option ul li:last-child { border-bottom: 0; }
.option ul li::before {
  content: ""; position: absolute; left: 0; top: 18px;
  width: 12px; height: 2px; background: var(--accent);
}
.option-foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--ink-3);
}
.option-foot a { color: var(--ink); border-bottom: 1px solid var(--ink); }

/* ---------- Warning box (kept semantically red, not Telenor-blue) ---------- */
.warning {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  padding: 22px 26px;
  background: #FFF5F5;
  border: 1px solid #FFEAEA;
  border-left: 3px solid var(--warning-line);
  border-radius: var(--r-md);
  color: var(--ink-2);
  box-shadow: 0 1px 2px rgba(0, 30, 80, .04), 0 8px 24px -16px rgba(0, 30, 80, .12);
}
.warning::before {
  content: "VIKTIGT";
  position: absolute;
  top: -10px; left: 22px;
  background: var(--warning-line);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 4px 10px;
  border-radius: 999px;
}
.warning .icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid var(--warning-bg);
  display: grid; place-items: center;
  font-size: 16px;
  flex: none;
}
.warning > div > strong:first-child { display: block; margin-bottom: 4px; color: var(--ink); font-size: 15px; }
.warning p { color: var(--ink-2); margin: 0; font-size: 14.5px; line-height: 1.6; }
.warning p strong { display: inline; }
.warning a { color: var(--ink); border-bottom: 1px solid var(--ink-4); padding-bottom: 1px; }
.warning a:hover { color: var(--warning-line); border-color: var(--warning-line); }

/* ---------- Content / prose pages ---------- */
.page-head {
  padding: clamp(40px, 5vw, 72px) 0 clamp(20px, 2.5vw, 32px);
}
.breadcrumbs {
  font-size: 13px;
  color: var(--ink-3);
  margin-bottom: 24px;
}
.breadcrumbs a { color: var(--ink-3); border-bottom: 1px solid transparent; }
.breadcrumbs a:hover { color: var(--ink); border-color: var(--ink-4); }
.breadcrumbs span { opacity: .5; margin: 0 8px; }

.page-hero-img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: var(--r-md);
  margin: 24px 0 0;
  display: block;
  background: var(--bg-2);
}
@media (max-width: 640px) { .page-hero-img { max-height: 220px; } }

.author-byline {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 20px 0 0;
}
.author-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--line);
}
.author-info {
  display: flex;
  flex-direction: column;
  font-size: 14px;
  line-height: 1.35;
}
.author-label {
  color: var(--ink-3);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}
.author-name {
  font-weight: 600;
  color: var(--ink);
  font-size: 15px;
}
.author-title {
  color: var(--ink-3);
  font-size: 13px;
}

.feedback-widget {
  margin: clamp(32px, 5vw, 56px) 0 24px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-2);
}
.feedback-widget[data-voted] { background: var(--accent-soft-2); border-color: var(--accent-soft); }
.feedback-prompt { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.feedback-prompt p { margin: 0; font-size: 15px; color: var(--ink); font-weight: 500; flex: 1; min-width: 200px; }
.feedback-buttons { display: flex; gap: 10px; }
.feedback-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  font-family: inherit;
}
.feedback-btn:hover { border-color: var(--ink); transform: translateY(-1px); }
.feedback-btn svg { width: 18px; height: 18px; }
.feedback-btn[data-vote="up"]:hover { background: var(--bg-2); border-color: var(--ink); color: var(--ink); }
.feedback-btn[data-vote="down"]:hover { background: var(--accent-soft-2); border-color: var(--accent); color: var(--accent-2); }
.feedback-thanks { margin: 0; font-size: 15px; color: var(--ink); font-weight: 500; }
.feedback-widget [hidden] { display: none !important; }
.feedback-reason { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.feedback-reason textarea {
  width: 100%;
  min-height: 80px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
  background: #fff;
}
.feedback-reason textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.feedback-reason button {
  align-self: flex-start;
  padding: 9px 18px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}
.feedback-reason button:hover { background: var(--accent-2); }

.hero-img {
  width: 100%;
  height: auto;
  border-radius: var(--r-lg);
  margin-top: 20px;
  box-shadow: var(--shadow-2);
}

.prose {
  display: grid;
  grid-template-columns: minmax(0, 680px) 1fr;
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: clamp(40px, 6vw, 80px);
}
@media (max-width: 960px) { .prose { grid-template-columns: 1fr; } }
.prose-content h2 {
  font-size: clamp(24px, 2.6vw, 30px);
  margin: 36px 0 12px;
  letter-spacing: -0.02em;
}
.prose-content h2:first-child { margin-top: 0; }
.prose-content h3 { font-size: 20px; margin: 24px 0 10px; }
.prose-content p { font-size: 16.5px; line-height: 1.7; color: var(--ink-2); margin-bottom: 14px; }
.prose-content ul { padding-left: 0; list-style: none; margin: 0 0 20px; }
.prose-content ul li {
  padding: 8px 0 8px 26px;
  position: relative;
  font-size: 16px;
  color: var(--ink-2);
}
.prose-content ul li::before {
  content: ""; position: absolute; left: 0; top: 18px;
  width: 12px; height: 2px; background: var(--accent);
}
.prose-content a {
  color: var(--ink);
  border-bottom: 1px solid var(--ink-4);
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.prose-content a:hover { border-color: var(--accent); color: var(--accent); }
.prose-content a[target="_blank"]::after {
  content: " ↗";
  font-size: 0.85em;
  color: var(--accent);
  margin-left: 1px;
  display: inline-block;
  transition: transform var(--dur-fast) var(--ease);
}
.prose-content a[target="_blank"]:hover::after { transform: translate(1px, -1px); }
.prose-content strong { color: var(--ink); font-weight: 600; }
.prose-content strong.official {
  background: linear-gradient(180deg, transparent 60%, var(--accent-soft) 60%);
  padding: 0 2px;
}

/* Official-link chip (dedicated button-style for important outbound links) */
.official-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  margin: 8px 0;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14.5px;
  color: var(--ink) !important;
  text-decoration: none;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.official-link::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.official-link::after { content: " →"; color: var(--accent); font-weight: 600; }
.official-link:hover {
  border-color: var(--accent) !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -10px rgba(0, 153, 229, 0.40);
}
.prose-content blockquote {
  margin: 28px 0;
  padding: 24px 28px;
  border-left: 3px solid var(--accent);
  background: var(--bg-2);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.45;
  color: var(--ink);
  letter-spacing: -0.01em;
}

/* Sidebar (sticky TOC / CTA) */
.side {
  position: sticky;
  top: 100px;
  align-self: start;
  padding: 28px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
}
.side h4 {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  font-size: 12px;
  margin-bottom: 14px;
}
.side ol { list-style: none; padding: 0; margin: 0 0 20px; counter-reset: tocn; }
.side ol li { counter-increment: tocn; padding: 6px 0; font-size: 14px; }
.side ol li::before { content: counter(tocn, decimal-leading-zero) "  "; color: var(--ink-4); font-variant-numeric: tabular-nums; }
.side ol li a { color: var(--ink-2); }
.side ol li a:hover { color: var(--ink); }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 2px; margin-top: 20px; }
.faq details {
  padding: 22px 4px;
  border-top: 1px solid var(--line);
  transition: padding var(--dur) var(--ease);
}
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; cursor: pointer;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 22px; height: 22px; flex: none;
  background: var(--ink); mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 5v14M5 12h14' stroke='white' stroke-width='2' stroke-linecap='round'/></svg>") center / 16px no-repeat;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
  border-radius: 50%;
  border: 1px solid var(--line);
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--accent); }
.faq .answer {
  margin-top: 12px;
  max-width: 65ch;
  color: var(--ink-3);
  font-size: 16px;
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  margin: 0;
  padding: clamp(24px, 3vw, 40px) clamp(28px, 5vw, 56px);
  background: var(--ink);
  color: #FFFFFF;
  border-radius: var(--r-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.2fr auto;
  align-items: center;
  gap: 32px;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 85% 0%, rgba(0, 153, 229, 0.22), transparent 55%);
  pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-band h2 {
  color: #FFFFFF;
  font-size: clamp(24px, 2.8vw, 36px);
}
.cta-band p { color: rgba(255, 255, 255, 0.72); margin-top: 10px; max-width: 48ch; }
.cta-band .btn-primary { background: var(--accent); color: #FFFFFF; }
.cta-band .btn-primary:hover { background: var(--accent-2); transform: translateY(-2px); }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- Trust bar ---------- */
.trust {
  padding: clamp(20px, 2.2vw, 32px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, var(--bg-2));
}
.trust-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-3);
  text-align: center;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.trust-label::before, .trust-label::after {
  content: ""; flex: 0 0 28px; height: 1px; background: var(--line);
}
.trust-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(28px, 5vw, 72px);
}
.trust-logos img {
  height: 34px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  opacity: 0.78;
  filter: saturate(0.7);
  transition: filter var(--dur) var(--ease), opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.trust-logos a { display: inline-flex; align-items: center; }
.trust-logos a:hover img { filter: none; opacity: 1; transform: translateY(-2px); }
.trust-logos .bankid { height: 40px; }
.trust-logos .citymail { height: 30px; }
.trust-logos .postnord { height: 22px; }
.trust-logos .saab { height: 48px; }
.trust-logos .skatteverket { height: 28px; }
.trust-logos .bolagsverket { height: 30px; }
.trust-logos .addresspoint { height: 30px; }
@media (max-width: 720px) {
  .trust-logos img { height: 26px; }
  .trust-logos .bankid { height: 30px; }
  .trust-logos .saab { height: 38px; }
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 28px;
  margin-top: 16px;
  color: var(--ink-3);
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer h4 {
  color: var(--ink-3);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.14em;
  margin-bottom: 14px;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer ul li a { color: var(--ink-2); }
.footer ul li a:hover { color: var(--ink); }
.footer-bottom {
  margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px;
  font-size: 12.5px; color: var(--ink-4); flex-wrap: wrap;
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 800ms var(--ease), transform 800ms var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }
.reveal[data-delay="4"] { transition-delay: 320ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0ms !important; transition-duration: 0ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Utility ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: -40px; left: 8px; z-index: 1000;
  background: var(--ink); color: #fff;
  padding: 10px 16px; border-radius: 6px;
  text-decoration: none; font-size: 14px; font-weight: 600;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 8px; outline: 2px solid var(--accent); outline-offset: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--accent); color: #FFFFFF; }

/* ---------- Guide grid (hub) ---------- */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 960px) { .guide-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .guide-grid { grid-template-columns: 1fr; } }
.guide-card {
  position: relative;
  display: block;
  padding: 36px 30px 32px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  min-height: 240px;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
  color: var(--ink);
  overflow: hidden;
}
.guide-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-2);
  border-color: var(--ink-4);
}
.guide-card .num {
  position: absolute;
  top: 26px; right: 28px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 26px;
  color: var(--ink-4);
  letter-spacing: -0.02em;
  transition: color var(--dur) var(--ease);
}
.guide-card:hover .num { color: var(--accent); }
.guide-card h3 {
  font-size: 24px;
  margin: 56px 0 12px;
  padding-right: 40px;
}
.guide-card p { color: var(--ink-3); font-size: 15px; margin: 0 0 20px; }
.guide-card .read {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  padding-bottom: 2px;
  border-bottom: 1px solid var(--ink);
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), transform var(--dur) var(--ease);
}
.guide-card:hover .read { color: var(--accent); border-color: var(--accent); transform: translateX(3px); }
