/* Svindeltjek website. Colours, type and radii follow design/handoff/tokens.json. */
:root {
  color-scheme: light dark;
  --bg: #F3F5FB;
  --sf: #FFFFFF;
  --ink: #0E1B3D;
  --mu: #55607A;
  --div: #E3E7F2;
  --acc: #2450E6;
  --accd: #1736A8;
  --accink: #FFFFFF;
  --acct: #DCE6FF;
  --red: #E0252F;
  --redt: #FFE1E3;
  --yel: #FFC233;
  --yeld: #C98F00;
  --yelt: #FFF1C7;
  --yelink: #3A2A00;
  --grn: #12A150;
  --grnd: #0B7A3B;
  --grnt: #D8F3E3;
  --onc: #FFFFFF;
  --hero: #2450E6;
  --heroink: #FFFFFF;
  --heromu: #DCE6FF;
  --sh: 0 1px 0 rgba(255,255,255,.9) inset, 0 14px 32px -14px rgba(14,27,61,.28), 0 2px 6px rgba(14,27,61,.06);
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-card: 28px;
  --r-chip: 16px;
  --wrap: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0A0F1F;
    --sf: #151C33;
    --ink: #F3F6FF;
    --mu: #A5AFCB;
    --div: #263052;
    --acc: #8FB0FF;
    --accd: #5E82DB;
    --accink: #0A0F1F;
    --acct: #1B2A5C;
    --red: #FF5A63;
    --redt: #47161B;
    --yel: #FFCF4D;
    --yeld: #C99A1E;
    --yelt: #453710;
    --yelink: #2B2000;
    --grn: #3DDC84;
    --grnd: #1FA75C;
    --grnt: #123D27;
    --onc: #0A0F1F;
    --hero: #13214D;
    --heroink: #F3F6FF;
    --heromu: #A5AFCB;
    --sh: 0 1px 0 rgba(255,255,255,.07) inset, 0 16px 34px -14px rgba(0,0,0,.7);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 18px/1.6 var(--body);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--acc); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--acc); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.6px; line-height: 1.1; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(36px, 6vw, 64px); }
h2 { font-size: clamp(28px, 4vw, 42px); }
h3 { font-size: clamp(20px, 2.2vw, 23px); font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--sf); color: var(--ink); padding: 12px 16px; z-index: 10; }
.skip:focus { left: 12px; top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.top { padding: 16px 0; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -0.4px; }
.brand img { width: 40px; height: 40px; border-radius: 11px; }
.top nav { display: flex; gap: 22px; font-weight: 700; font-size: 16px; }
.top nav a { color: inherit; text-decoration: none; }
.top nav a:hover { color: var(--acc); }
.hero-top { background: var(--hero); color: var(--heroink); }
.hero-top .top nav a:hover { color: var(--heromu); }
@media (max-width: 640px) { .top nav .hide-sm { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 24px; border-radius: 22px; font: 700 18px/1.2 var(--body); text-decoration: none; border: 0; cursor: pointer; }
.btn-primary { background: var(--acc); color: var(--accink); box-shadow: 0 6px 0 var(--accd), 0 14px 24px -12px rgba(14,27,61,.5); margin-bottom: 6px; }
.btn-primary:active { transform: translateY(3px); box-shadow: 0 3px 0 var(--accd); }

/* Store badges ("kommer snart") */
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; padding: 0; list-style: none; }
.store { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 20px 10px 16px; border-radius: 18px; background: #0B1022; color: #fff; border: 1px solid rgba(255,255,255,.18); min-width: 200px; }
.store svg { width: 28px; height: 28px; flex: none; fill: currentColor; }
.store span { display: flex; flex-direction: column; line-height: 1.2; }
.store b { font-size: 18px; white-space: nowrap; }
.store small { font-size: 14px; opacity: .8; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 24px 0 0; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: end; }
.hero-copy { padding: 32px 0 72px; }
.hero h1 { color: var(--heroink); }
.hero .lead { font-size: clamp(19px, 2vw, 22px); color: var(--heromu); max-width: 34ch; margin-bottom: 28px; }
.hero .note { margin-top: 16px; font-size: 15px; color: var(--heromu); }
.hero-art { position: relative; align-self: end; display: flex; justify-content: center; }
.hero-art::before { content: ""; position: absolute; left: 50%; bottom: -46%; width: 125%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: rgba(255,255,255,.12); }
.hero-art img { position: relative; width: min(380px, 80%); transform-origin: 50% 100%; animation: tilt 5s ease-in-out infinite; }
@keyframes tilt { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }
.hero-curve { display: block; width: 100%; height: 44px; background: var(--bg); border-radius: 44px 44px 0 0; margin-top: -1px; }
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 0; }
  .hero-copy { padding: 16px 0 8px; }
  .hero-art img { width: min(260px, 70%); }
  .hero-art::before { bottom: -60%; width: 150%; }
}

/* Sections */
section { padding: 56px 0; }
.section-head { max-width: 720px; margin-bottom: 32px; }
.section-head p { color: var(--mu); font-size: 19px; }
.card { background: var(--sf); border-radius: var(--r-card); box-shadow: var(--sh); padding: 24px; }

/* Verdicts */
.verdicts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.verdict { border-radius: var(--r-card); padding: 22px; box-shadow: var(--sh); background: var(--sf); display: flex; flex-direction: column; gap: 14px; }
.verdict-head { display: flex; align-items: center; gap: 14px; border-radius: 20px; padding: 14px 16px; color: var(--onc); }
.verdict-head svg { width: 44px; height: 44px; flex: none; }
.verdict-head strong { font-family: var(--display); font-weight: 800; font-size: 34px; letter-spacing: -0.6px; line-height: 1; }
.v-stop .verdict-head { background: var(--red); }
.v-warn .verdict-head { background: var(--yel); color: var(--yelink); }
.v-ok .verdict-head { background: var(--grn); }
.verdict p { margin: 0; }
.verdict .sub { font-weight: 700; font-size: 19px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chips li { font-size: 15px; font-weight: 700; padding: 6px 12px; border-radius: var(--r-chip); }
.v-stop .chips li { background: var(--redt); }
.v-warn .chips li { background: var(--yelt); }
.v-ok .chips li { background: var(--grnt); }
@media (max-width: 900px) { .verdicts { grid-template-columns: 1fr; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li { counter-increment: s; }
.step-title { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.step-title::before { content: counter(s); flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--acct); color: var(--acc); font: 800 24px/1 var(--display); }
.step-title h3 { margin: 0; }
.steps p { color: var(--mu); margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

/* Two columns */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.list li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; }
.list svg { width: 28px; height: 28px; margin-top: 2px; color: var(--acc); }
.list b { display: block; }
.list span { color: var(--mu); }

/* Privacy band */
.privacy { background: var(--sf); border-radius: var(--r-card); box-shadow: var(--sh); display: grid; grid-template-columns: 1fr 220px; gap: 24px; align-items: end; padding: 32px 32px 0; overflow: hidden; }
.privacy .list { padding-bottom: 32px; }
.privacy img { width: 200px; justify-self: center; }
@media (max-width: 820px) { .privacy { grid-template-columns: 1fr; padding: 24px 22px 0; } .privacy img { width: 150px; } .privacy .list { padding-bottom: 0; } }

/* Price */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.price { text-align: left; }
.price .amount { font: 800 40px/1 var(--display); letter-spacing: -0.6px; margin: 6px 0 8px; }
.price .amount small { font: 700 18px var(--body); color: var(--mu); letter-spacing: 0; }
.price p { color: var(--mu); margin: 0; }
.price.best { outline: 3px solid var(--acc); }
@media (max-width: 900px) { .prices { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--sf); border-radius: 22px; box-shadow: var(--sh); padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; font-size: 19px; padding: 18px 32px 18px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font: 800 28px/1 var(--display); color: var(--acc); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--mu); }

/* Footer */
.foot { border-top: 1px solid var(--div); padding: 40px 0 48px; margin-top: 40px; font-size: 16px; color: var(--mu); }
.foot .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
.foot h2 { font-size: 18px; letter-spacing: 0; color: var(--ink); margin-bottom: 8px; font-family: var(--body); font-weight: 700; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot a { color: var(--ink); }
.foot address { font-style: normal; }
.foot .fine { grid-column: 1 / -1; font-size: 14px; }
@media (max-width: 720px) { .foot .wrap { grid-template-columns: 1fr; } }

/* Legal documents */
.doc { max-width: 760px; margin: 0 auto; padding: 24px 20px 24px; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); }
.doc .meta { color: var(--mu); margin-bottom: 28px; }
.doc h2 { font-size: clamp(23px, 3vw, 28px); margin-top: 44px; }
.doc h3 { margin-top: 26px; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin-bottom: .4em; }
.doc .summary { background: var(--acct); border-radius: 22px; padding: 20px 22px; margin: 0 0 28px; }
.doc .summary ul { margin: 0; }
.doc .toc { background: var(--sf); border-radius: 22px; box-shadow: var(--sh); padding: 18px 22px; margin-bottom: 8px; }
.doc .toc ol { margin: 0; columns: 2; column-gap: 28px; }
@media (max-width: 640px) { .doc .toc ol { columns: 1; } }
.table-wrap { overflow-x: auto; margin: 0 0 1em; border-radius: 18px; background: var(--sf); box-shadow: var(--sh); }
.doc table { width: 100%; border-collapse: collapse; font-size: 16px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--div); }
.doc th { font-weight: 700; }
.doc tr:last-child td { border-bottom: 0; }
@media (max-width: 640px) {
  .doc table.stack thead { display: none; }
  .doc table.stack tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--div); }
  .doc table.stack tr:last-child { border-bottom: 0; }
  .doc table.stack td { display: block; border: 0; padding: 4px 14px; }
  .doc table.stack td::before { content: attr(data-l); display: block; font-weight: 700; font-size: 14px; color: var(--mu); }
}
.lang { font-size: 16px; }

/* Link fallback pages */
.landing { min-height: 100svh; display: flex; flex-direction: column; }
.landing main { flex: 1; }
.code-card { max-width: 640px; margin: 8px auto 0; padding: 0 20px; }
.code-card .card { padding: 28px 24px; }
.code-card h1 { font-size: clamp(32px, 6vw, 44px); }
.code-box { background: var(--acct); border-radius: 24px; padding: 18px 20px; margin: 20px 0; text-align: center; }
.code-box .label { font-weight: 700; color: var(--mu); margin: 0 0 4px; font-size: 17px; }
.code-box .code { font: 800 clamp(40px, 11vw, 60px)/1.1 var(--display); letter-spacing: 2px; color: var(--ink); margin: 0; word-break: break-all; }
.code-box .code.long { font-size: clamp(24px, 6vw, 32px); letter-spacing: 1px; }
.howto { counter-reset: h; list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 14px; }
.howto li { counter-increment: h; display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; font-size: 19px; }
.howto li::before { content: counter(h); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--acc); color: var(--accink); font: 800 20px/1 var(--display); }
.code-card .mascot { width: 140px; margin: 0 auto -6px; }
.code-card .muted { color: var(--mu); font-size: 16px; }
@media (max-width: 480px) {
  .stores { flex-wrap: nowrap; }
  .store { min-width: 0; flex: 1; padding: 10px; gap: 8px; }
  .store b { font-size: 15px; white-space: nowrap; }
  .store small { font-size: 13px; }
  .store svg { width: 24px; height: 24px; }
}
