/* Agrepto Klarhet – juridiska sidor (integritetspolicy). Egen layout: innehållslista till vänster på stora
   skärmar (följer med vid scroll), hopfällbar överst på surfplatta och mobil. */
/* Inter laddas från Klarhet själv (0.72.4), samma fil som översikten och startsidan, så att alla besökare ser samma typsnitt. */
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: light;
  --lp-ink: #0a1733;
  --lp-ink-2: #3a4a63;
  --lp-muted: #6b7a90;
  --lp-accent: #1f5fd6;
  --lp-accent-dark: #1648a8;
  --lp-accent-soft: #eef3fd;
  --lp-line: #e2e8f0;
  --lp-bg: #fafbfd;
  --lp-surface: #ffffff;
  --lp-font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --lp-gutter: clamp(16px, 5vw, 64px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body.lp {
  margin: 0;
  background: var(--lp-bg);
  color: var(--lp-ink-2);
  font-family: var(--lp-font);
  font-size: 17px;
  line-height: 1.65;
}
.lp a { color: var(--lp-accent); text-underline-offset: 3px; }
.lp a:hover { color: var(--lp-accent-dark); }
.lp a:focus-visible, .lp summary:focus-visible { outline: 3px solid var(--lp-accent); outline-offset: 3px; border-radius: 6px; }
.lp strong { color: var(--lp-ink); }
.lp code { font-family: ui-monospace, Consolas, monospace; font-size: .9em; background: var(--lp-accent-soft); padding: 1px 6px; border-radius: 5px; color: var(--lp-ink); }

.lp-skip { position: absolute; left: -9999px; top: 8px; background: var(--lp-ink); color: #fff !important; padding: 10px 16px; border-radius: 8px; z-index: 10; }
.lp-skip:focus { left: 16px; }

/* Sidhuvud */
.lp-top {
  max-width: 1200px; margin: 0 auto; padding: 22px var(--lp-gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border-bottom: 1px solid var(--lp-line);
}
.lp-logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--lp-ink) !important; font-weight: 800; font-size: clamp(18px, 2.2vw, 24px); letter-spacing: -.01em; }
.lp-logo-mark { width: clamp(32px, 4vw, 44px); height: auto; flex: 0 0 auto; }
.lp-back { font-weight: 600; text-decoration: none; white-space: nowrap; font-size: clamp(15px, 1.6vw, 17px); }
.lp-back:hover { text-decoration: underline; }

/* Menyn i sidhuvudet (0.60.0): länkar på dator, bred panel bakom menyknapp på surfplatta och mobil */
.lp-top { position: relative; z-index: 20; }
.lp-nav { display: flex; align-items: center; gap: 26px; }
.lp .lp-nav > a:not(.lp-btn) { color: var(--lp-ink-2); font-size: 15.5px; font-weight: 600; text-decoration: none; }
.lp .lp-nav > a:not(.lp-btn):hover, .lp .lp-nav > a[aria-current="page"] { color: var(--lp-accent); }
.lp .lp-nav .lp-btn { min-height: 42px; padding: 0 18px; font-size: 15px; box-shadow: none; }
.lp-menu { display: none; }
.lp-menu summary { list-style: none; cursor: pointer; display: flex; padding: 4px; color: var(--lp-ink); }
.lp-menu summary::-webkit-details-marker { display: none; }
.lp-menu-close, .lp-menu[open] .lp-menu-open { display: none; }
.lp-menu[open] .lp-menu-close, .lp-menu-open { display: flex; }
.lp-menu-panel { position: absolute; left: 0; right: 0; top: 100%; padding: 4px var(--lp-gutter) 24px; background: var(--lp-surface); border-bottom: 1px solid var(--lp-line); border-radius: 0 0 20px 20px; box-shadow: 0 24px 40px rgba(10, 23, 51, .14); }
.lp .lp-menu-links a { display: flex; justify-content: space-between; align-items: center; min-height: 56px; border-bottom: 1px solid var(--lp-line); color: var(--lp-ink); font-size: 18px; font-weight: 600; text-decoration: none; }
.lp .lp-menu-links a::after { content: "→"; color: var(--lp-accent); }
.lp .lp-menu-links a[aria-current="page"] { color: var(--lp-accent); }
.lp-menu-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.lp .lp-menu-actions .lp-btn { width: 100%; box-shadow: none; }
.lp .lp-btn.is-outline { background: transparent; color: var(--lp-ink); border: 2px solid var(--lp-line); }
.lp .lp-btn.is-outline:hover { border-color: var(--lp-accent); color: var(--lp-accent); background: transparent; }
.lp-menu-actions .lp-cta-note { text-align: center; }
@media (max-width: 999px) {
  .lp-nav { display: none; }
  .lp-menu { display: block; }
}

/* Rubrikdel */
.lp-hero { max-width: 1200px; margin: 0 auto; padding: clamp(36px, 7vw, 72px) var(--lp-gutter) clamp(28px, 5vw, 44px); border-bottom: 1px solid var(--lp-line); }
.lp-eyebrow { margin: 0 0 14px; text-transform: uppercase; letter-spacing: .22em; font-size: 13px; font-weight: 600; color: var(--lp-ink-2); }
.lp-hero h1 { margin: 0; color: var(--lp-ink); font-weight: 800; font-size: clamp(40px, 8vw, 76px); line-height: 1.02; letter-spacing: -.035em; overflow-wrap: anywhere; }
.lp-lead { margin: 16px 0 0; font-size: clamp(19px, 2.4vw, 26px); line-height: 1.35; color: var(--lp-ink-2); }
.lp-meta { margin: 14px 0 0; font-size: 15px; color: var(--lp-muted); }

/* Innehållslista + text */
.lp-layout {
  max-width: 1200px; margin: 0 auto; padding: clamp(28px, 5vw, 56px) var(--lp-gutter) 64px;
  display: grid; grid-template-columns: minmax(220px, 290px) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px);
}
.lp-toc { position: relative; }
.lp-toc-box { position: sticky; top: 24px; padding-right: clamp(16px, 2.5vw, 32px); border-right: 1px solid var(--lp-line); }
.lp-toc-box summary { list-style: none; font-weight: 800; color: var(--lp-ink); font-size: 20px; margin-bottom: 14px; }
.lp-toc-box summary::-webkit-details-marker { display: none; }
.lp-toc ol { list-style: none; margin: 0; padding: 0; }
.lp-toc li { margin: 0; }
.lp-toc a {
  display: flex; gap: 14px; align-items: baseline; padding: 11px 14px; border-left: 3px solid transparent;
  border-radius: 0 8px 8px 0; color: var(--lp-ink-2); text-decoration: none; line-height: 1.35; font-size: 16px;
}
.lp-toc a:hover { background: #f3f6fb; color: var(--lp-ink); }
.lp-toc a.is-active, .lp-toc a[aria-current="true"] { background: var(--lp-accent-soft); border-left-color: var(--lp-accent); color: var(--lp-accent); font-weight: 600; }
.lp-toc-num { font-variant-numeric: tabular-nums; min-width: 22px; color: inherit; opacity: .85; }

.lp-content { min-width: 0; max-width: 760px; }
.lp-content section { padding-bottom: clamp(28px, 4vw, 44px); }
.lp-content section + section { padding-top: 4px; }
.lp-num { margin: 0 0 2px; font-weight: 800; color: var(--lp-accent); font-size: 18px; font-variant-numeric: tabular-nums; }
.lp-content h2 { margin: 0 0 16px; color: var(--lp-ink); font-weight: 800; font-size: clamp(28px, 3.6vw, 42px); line-height: 1.1; letter-spacing: -.025em; }
.lp-content p { margin: 0 0 16px; }
.lp-content ul { margin: 0 0 16px; padding-left: 22px; }
.lp-content li { margin: 0 0 10px; padding-left: 4px; }
.lp-content li::marker { color: var(--lp-accent); }

/* Tabell: rader på stora skärmar, kort på mobil */
.lp-table-wrap { margin: 4px 0 16px; border: 1px solid var(--lp-line); border-radius: 14px; background: var(--lp-surface); overflow: hidden; }
.lp-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.lp-table th, .lp-table td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--lp-line); }
.lp-table thead th { background: #f4f7fb; color: var(--lp-ink); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.lp-table tbody tr:last-child td { border-bottom: 0; }
.lp-table td:first-child { color: var(--lp-ink); font-weight: 600; }

/* Prissidan (0.59.0): banner överst, knappar till Testa gratis och avslutande ruta */
/* Erbjudandet: ruta i rubrikdelen på dator och surfplatta, banner överst på mobil */
.lp-tag { display: inline-block; margin: 0; padding: 4px 11px; border-radius: 999px; background: rgba(255, 255, 255, .2); color: #fff; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; line-height: 1.5; }
.lp-banner { display: none; }
.lp-hero.has-offer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); gap: 48px; align-items: center; }
.lp-offer { padding: 30px 30px 26px; border-radius: 20px; background: linear-gradient(135deg, var(--lp-accent), var(--lp-accent-dark)); color: #fff; box-shadow: 0 18px 40px rgba(31, 95, 214, .30); }
.lp-offer .lp-tag { margin-bottom: 16px; }
.lp-offer-row { display: flex; align-items: baseline; gap: 12px; margin: 0 0 8px; }
.lp-offer-big { font-size: clamp(36px, 4vw, 44px); font-weight: 800; line-height: 1.05; letter-spacing: -.03em; color: #fff; }
.lp-offer-text { font-size: 18px; font-weight: 600; color: #e4ecff; }
.lp-offer-small { margin: 14px 0 20px; font-size: 14.5px; color: #d5e1ff; }
.lp-cta.is-offer { margin: 0; align-items: stretch; }
.lp .lp-cta.is-offer .lp-btn { background: #fff; color: var(--lp-accent-dark); box-shadow: none; }
.lp .lp-cta.is-offer .lp-btn:hover { background: #eef3fd; }
.lp-cta.is-offer .lp-cta-note { color: #d5e1ff; text-align: center; }
.lp-hero.has-offer .lp-cta.is-hero { display: none; }
@media (max-width: 999px) {
  .lp-hero.has-offer { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .lp-offer { max-width: 520px; }
}
.lp-cta { margin: 8px 0 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.lp-cta.is-hero { margin: 28px 0 0; }
.lp .lp-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: 12px; background: var(--lp-accent); color: #fff; font-weight: 700; font-size: 17px; text-decoration: none; box-shadow: 0 6px 18px rgba(31, 95, 214, .28); }
.lp .lp-btn:hover { background: var(--lp-accent-dark); color: #fff; }
.lp-cta-note { margin: 0 !important; font-size: 14px; color: var(--lp-muted); }
.lp-content .lp-cta-box { margin: 8px 0 24px; padding: clamp(22px, 3.5vw, 34px); border-radius: 16px; background: var(--lp-ink); color: #c9d3ea; }
.lp-cta-box h2 { margin: 0 0 8px; color: #fff !important; font-size: clamp(24px, 3vw, 32px); }
.lp-cta-box p { margin: 0 0 18px; }
.lp-cta-box .lp-cta { margin-bottom: 0; }
.lp-cta-box .lp-cta-note { color: #aab6d0; }

/* Kontaktruta */
.lp-contact { margin-top: 8px; padding: clamp(22px, 3.5vw, 34px); border-radius: 16px; background: linear-gradient(135deg, #eef4ff, #f5f8ff); border: 1px solid #dde7fb; }
.lp-contact h2 { margin: 0 0 8px; font-size: clamp(24px, 3vw, 32px); }
.lp-contact p { margin: 0 0 16px; }
.lp-contact-link { font-weight: 700; font-size: 18px; }

/* Sidfot */
.lp-foot {
  max-width: 1200px; margin: 0 auto; padding: 22px var(--lp-gutter) 32px; border-top: 1px solid var(--lp-line);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--lp-muted);
}

/* Företagets uppgifter i sidfoten (0.64.0): en rad på dator, delarna under varandra på mobil */
.lp-foot-legal { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 0; }
.lp-foot-legal span { white-space: nowrap; }
.lp-foot-legal span + span::before { content: "·"; margin: 0 8px; }
@media (max-width: 560px) {
  .lp-foot { flex-direction: column; }
  .lp-foot-legal { flex-direction: column; }
  .lp-foot-legal span + span::before { content: none; }
}

/* Surfplatta och mobil: en spalt, innehållslistan hopfällbar överst */
@media (max-width: 999px) {
  .lp-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .lp-toc-box { position: static; padding: 0; border: 1px solid var(--lp-line); border-radius: 14px; background: var(--lp-surface); }
  .lp-toc-box summary {
    margin: 0; padding: 16px 18px; font-size: 18px; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center; min-height: 48px;
  }
  .lp-toc-box summary::after { content: ""; width: 10px; height: 10px; border-right: 2px solid var(--lp-ink); border-bottom: 2px solid var(--lp-ink); transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
  .lp-toc-box[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
  .lp-toc-box[open] summary { border-bottom: 1px solid var(--lp-line); }
  .lp-toc ol { padding: 8px 8px 10px; }
  .lp-toc a { border-radius: 8px; min-height: 44px; align-items: center; }
  .lp-content { max-width: none; }
}

@media (max-width: 719px) {
  body.lp { font-size: 16px; }
  .lp-top { padding-top: 16px; padding-bottom: 16px; }
  .lp-back { font-size: 15px; }
  .lp-table-wrap { border: 0; background: transparent; border-radius: 0; overflow: visible; }
  .lp-table, .lp-table tbody, .lp-table tr, .lp-table td { display: block; width: 100%; }
  .lp-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .lp-table tr { background: var(--lp-surface); border: 1px solid var(--lp-line); border-radius: 12px; padding: 6px 0; margin-bottom: 12px; }
  .lp-table td { border: 0; padding: 8px 16px; }
  .lp-table td::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--lp-muted); margin-bottom: 2px; }
}

@media (max-width: 719px) {
  .lp-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; padding: 14px var(--lp-gutter); background: linear-gradient(90deg, var(--lp-accent), var(--lp-accent-dark)); color: #fff; font-size: 15px; line-height: 1.45; }
  .lp-banner strong { color: #fff; }
  .lp .lp-banner a { padding: 8px 16px; border-radius: 10px; background: #fff; color: var(--lp-accent-dark); font-weight: 700; text-decoration: none; white-space: nowrap; }
  .lp-offer { display: none; }
  /* Pristabellen på mobil: en kompakt ruta per nivå, priset stort till höger och rabattpriset under */
  .lp-prices tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 4px 12px; padding: 14px 16px; margin-bottom: 10px; }
  .lp-prices td { padding: 0; width: auto; }
  .lp-prices td:nth-child(-n+2)::before { content: none; }
  .lp-prices td:first-child { font-size: 17px; }
  .lp-prices td:nth-child(2) { font-size: 20px; font-weight: 800; color: var(--lp-ink); text-align: right; white-space: nowrap; }
  .lp-prices td:nth-child(2)::after { content: " /mån"; font-size: 13px; font-weight: 500; color: var(--lp-muted); }
  .lp-prices td:nth-child(3) { grid-column: 1 / -1; font-size: 15px; font-weight: 700; color: var(--lp-accent); }
  .lp-prices td:nth-child(3)::before { display: inline; content: "Med lanseringsrabatt: "; font-size: 15px; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--lp-muted); }
  .lp-cta, .lp-cta.is-hero { align-items: stretch; }
  .lp .lp-btn { width: 100%; }
  .lp-cta-note { text-align: center; }
}

@media (max-width: 420px) {
  .lp-logo span { font-size: 17px; }
  .lp-back { font-size: 14px; }
}

@media print {
  .lp-toc, .lp-back, .lp-skip { display: none; }
  .lp-layout { display: block; }
  body.lp { background: #fff; }
}
