/* Linjo – visuell identitet
   Palett: Linjoblå (primär), Bläck (text), Sol (accent), Dis (bakgrund).
   Mobil först. Systemtypsnitt för snabb laddning utan externa anrop. */
:root {
  /* Hämtat från logotypen: marinblå #011842 och mintgrön #01e096 */
  --navy: #011842;
  --blue: #0c2d6b;
  --blue-dark: #011842;
  --blue-soft: #e8edf7;
  --green: #01e096;
  --green-dark: #00c784;
  --green-soft: #e2fbf1;
  --ink: #0b1a3a;
  --muted: #55657f;
  --line: #e1e6ef;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --sun: #ffb547;
  --sun-soft: #fff3dd;
  --ok: #00a06a;
  --ok-soft: #e2fbf1;
  --warn: #b45309;
  --warn-soft: #fff7ed;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 27, 45, .06), 0 8px 24px -12px rgba(15, 27, 45, .18);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 1120px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6;
  color: var(--ink); background: var(--bg);
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-dark); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--blue); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 2.2vw + 1.2rem, 2.9rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 1vw + 1.1rem, 1.9rem); font-weight: 750; margin-top: 1.6em; }
h3 { font-size: 1.15rem; font-weight: 700; margin-top: 1.4em; }
p, ul, ol { margin: 0 0 1em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.wrap { width: min(100% - 32px, var(--max)); margin-inline: auto; }
.narrow { max-width: 72ch; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; border-radius: 6px; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { height: 40px; width: auto; }
.nav-toggle { display: inline-flex; align-items: center; gap: 8px; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; }
.nav { display: none; }
.nav.open { display: block; position: absolute; left: 0; right: 0; top: 64px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
.nav ul { list-style: none; margin: 0; padding: 8px 16px 16px; display: flex; flex-direction: column; gap: 2px; }
.nav a { display: block; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 600; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--blue-soft); color: var(--blue-dark); }
.nav .cta a { background: var(--green); color: var(--navy); }
.nav .cta a:hover { background: var(--green-dark); color: var(--navy); }
@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .nav { display: block; position: static; }
  .nav ul { flex-direction: row; align-items: center; padding: 0; gap: 4px; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; font: inherit; font-weight: 700; line-height: 1.2; transition: background .15s, transform .05s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: var(--navy); }
.btn-primary:hover { background: var(--green-dark); color: var(--navy); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--navy); color: var(--navy); }
.btn-sun { background: var(--sun); color: var(--ink); }
.btn-sun:hover { background: #f5a630; }
.btn-block { width: 100%; }

/* Hero */
.hero { padding: 48px 0 32px; background: linear-gradient(180deg, #ffffff 0%, #eefbf5 100%); border-bottom: 1px solid var(--line); }
.hero h1 { max-width: 20ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 16px; }
.hero-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 860px) { .hero { padding: 72px 0 56px; } .hero-grid { grid-template-columns: 1.15fr .85fr; } }
.hero-art { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px; box-shadow: var(--shadow); }
.hero-art .row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.hero-art .row:last-child { border-bottom: 0; }
.hero-art .bar { height: 10px; border-radius: 6px; background: var(--blue-soft); position: relative; overflow: hidden; flex: 1; align-self: center; }
.hero-art .bar i { position: absolute; inset: 0; width: var(--w); background: var(--navy); border-radius: 6px; }

/* Sections and cards */
.section { padding: 40px 0; }
.section-tight { padding: 24px 0; }
.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card h3 { margin-top: 0; }
.card-link { text-decoration: none; color: inherit; display: block; }
.card-link:hover { border-color: var(--blue); }
.card-link h3 { color: var(--blue-dark); }
.icon-badge { width: 44px; height: 44px; border-radius: 12px; background: var(--green-soft); color: var(--navy); display: grid; place-items: center; margin-bottom: 12px; font-weight: 800; }

/* Disclosure (reklam/affiliate) */
.disclosure { background: var(--sun-soft); border: 1px solid #f4d9a6; border-radius: 12px; padding: 12px 16px; font-size: .95rem; margin: 16px 0; }
.disclosure strong { font-weight: 700; }
.ad-label { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--warn); background: var(--warn-soft); border: 1px solid #fcd9b6; padding: 2px 8px; border-radius: 6px; }

/* Offer cards */
.offer-list { display: grid; gap: 16px; }
@media (min-width: 900px) { .offer-list { grid-template-columns: 1fr 1fr; } }
.offer { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; }
.offer-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.offer-op { font-size: .85rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.offer-name { font-size: 1.2rem; font-weight: 800; margin: 2px 0 0; }
.offer-price { text-align: right; white-space: nowrap; }
.offer-price .now { font-size: 1.5rem; font-weight: 800; line-height: 1.1; }
.offer-price .per { font-size: .85rem; color: var(--muted); }
.offer-price .was { font-size: .85rem; color: var(--muted); text-decoration: line-through; }
.offer-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 16px; margin: 0; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 480px) { .offer-facts { grid-template-columns: repeat(3, 1fr); } }
.offer-facts div { display: flex; flex-direction: column; }
.offer-facts dt { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.offer-facts dd { margin: 0; font-weight: 700; }
.offer-terms { font-size: .92rem; color: var(--muted); margin: 0; }
.offer-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.offer-meta { font-size: .82rem; color: var(--muted); }
.tag { display: inline-block; font-size: .78rem; font-weight: 600; background: var(--blue-soft); color: var(--navy); padding: 2px 8px; border-radius: 6px; margin-right: 4px; }
.tag-ok { background: var(--ok-soft); color: var(--ok); }
.empty { background: var(--surface); border: 2px dashed var(--line); border-radius: var(--radius); padding: 32px 20px; text-align: center; color: var(--muted); }
.empty strong { color: var(--ink); }

/* Filters */
.filters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 12px; margin-bottom: 20px; }
@media (min-width: 720px) { .filters { grid-template-columns: repeat(3, 1fr); } }
.filters label { display: flex; flex-direction: column; gap: 4px; font-size: .9rem; font-weight: 600; }
.filters select, .filters input[type="number"] { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); min-height: 44px; }
.filters .check { flex-direction: row; align-items: center; gap: 8px; font-weight: 600; }
.filters .check input { width: 20px; height: 20px; }
.filters-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; font-size: .9rem; color: var(--muted); }

/* Tables */
.table-wrap { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .95rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--bg); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
tr:last-child td { border-bottom: 0; }

/* Steps / lists */
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; position: relative; padding-left: 52px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; display: grid; place-items: center; }
.steps strong { display: block; }
.checklist { list-style: none; padding: 0; }
.checklist li { padding-left: 28px; position: relative; margin-bottom: 6px; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.callout { background: var(--green-soft); border-left: 4px solid var(--green); border-radius: 10px; padding: 14px 16px; margin: 20px 0; }
.callout-warn { background: var(--warn-soft); border-left-color: var(--sun); }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px 16px; margin-bottom: 8px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 10px 0; }
.faq details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; font-size: .95rem; }
.toc ul { margin: 0; padding-left: 18px; }
.breadcrumb { font-size: .88rem; color: var(--muted); margin-top: 16px; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; }
.article-meta { font-size: .9rem; color: var(--muted); margin-bottom: 20px; }
.updated { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--muted); }
.updated::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }

/* Footer */
.site-footer { margin-top: 56px; background: var(--navy); color: #c9d2e0; padding: 40px 0 24px; font-size: .92rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 24px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer .footer-h { color: #fff; margin: 0 0 8px; font-size: .95rem; font-weight: 700; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 28px; padding-top: 16px; font-size: .82rem; color: #93a1b8; }
.site-footer .logo img { height: 30px; }

/* Misc */
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-block; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; font-size: .92rem; }
.pill:hover { border-color: var(--blue); color: var(--blue-dark); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.trust-row { display: grid; gap: 12px; }
@media (min-width: 640px) { .trust-row { grid-template-columns: repeat(3, 1fr); } }
.trust-row .card { padding: 16px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
@media print { .site-header, .site-footer, .nav-toggle, .filters { display: none; } }
