@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("/fonts/schibsted-grotesk.woff") format("woff"); }

:root {
  --paper: #ffffff;
  --ink: #111c16;
  --text: #2f3b35;
  --sub: #64716b;
  --line: #e4e8e5;
  --soft: #f7f9f8;
  --moss: #2e6f40;
  --moss-ink: #1e4d2b;
  --moss-bg: #f2f7f4;
  --moss-line: #c6dec9;
  --warn: #c2700b;
  --warn-bg: #fffbeb;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 18px/1.65 "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: var(--moss); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--moss); outline-offset: 3px; border-radius: 3px; }
strong { color: var(--ink); }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }

/* Sidhuvud */
header.site { border-bottom: 1px solid var(--line); }
header.site .wrap { max-width: 1000px; display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; min-height: 72px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 700; font-size: 21px; letter-spacing: -.02em; text-decoration: none; }
.logo img { width: 60px; height: auto; flex: none; }
.logo .bit { color: #6f9a3a; }
header.site nav { display: flex; gap: 28px; font-size: 16px; }
header.site nav a { color: var(--sub); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
header.site nav a:hover { color: var(--ink); }
header.site nav a[aria-current] { color: var(--ink); font-weight: 600; border-bottom-color: var(--moss); }

/* Text */
main { padding: 44px 0 80px; }
.crumbs { font-size: 14px; color: var(--sub); margin-bottom: 16px; }
.crumbs a { color: var(--sub); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
h1, h2, h3 { color: var(--ink); }
h1 { font-size: 46px; line-height: 1.08; letter-spacing: -.028em; font-weight: 700; margin: 0 0 12px; }
h2 { font-size: 26px; line-height: 1.25; letter-spacing: -.015em; font-weight: 700; margin: 56px 0 14px; scroll-margin-top: 20px; }
h3 { font-size: 19px; line-height: 1.35; font-weight: 700; margin: 28px 0 6px; }
p, ul, ol { margin: 0 0 18px; }
li { margin-bottom: 6px; }
li::marker { color: var(--moss); }
.meta { font-size: 14px; color: var(--sub); margin-bottom: 26px; }
.meta a { color: var(--sub); }
.lead { font-size: 21px; line-height: 1.55; color: var(--ink); }

/* Rutor */
.box { background: var(--moss-bg); border: 1px solid var(--moss-line); border-left: 4px solid var(--moss); border-radius: 10px; padding: 20px 24px; margin: 28px 0 8px; }
.box .t { display: block; font-weight: 700; font-size: 15px; color: var(--moss-ink); margin-bottom: 8px; }
.box ul { margin: 0; padding-left: 20px; }
.box li:last-child, .box p:last-child { margin-bottom: 0; }
.box.warn { background: var(--warn-bg); border-color: #f3dfb0; border-left-color: var(--warn); }
.box.warn .t { color: #8a4f06; }
.own { background: var(--paper); border-color: var(--line); border-left-color: var(--sub); margin-top: 36px; }
.own .t { color: var(--ink); }

/* Hoppa till */
.toc { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 26px 0 0; padding: 0 0 18px; border-bottom: 1px solid var(--line); font-size: 15px; }
.toc a { color: var(--sub); text-decoration: none; }
.toc a:hover { color: var(--moss); }

/* Tabeller */
.table { margin: 24px 0 12px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
table { border-collapse: collapse; width: 100%; font-size: 16px; line-height: 1.5; }
th, td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--soft); color: var(--sub); font-weight: 500; font-size: 13px; letter-spacing: .02em; padding-top: 12px; padding-bottom: 12px; }
tbody tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 600; color: var(--ink); }
td[data-label="Pris"], th:last-child { text-align: right; }
td .p { display: block; font-weight: 700; color: var(--ink); white-space: nowrap; }
td .s { display: block; font-size: 13px; color: var(--sub); }
td .na { color: #b3bdb7; }
.btn { display: inline-block; margin-top: 8px; padding: 5px 11px; border: 1px solid var(--moss-line); background: var(--moss-bg); color: var(--moss-ink); border-radius: 7px; font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.btn:hover { background: #e6f0e9; border-color: #a9cbb0; }
.btn::after { content: " ↗"; }
.note { font-size: 14px; color: var(--sub); }
@media (min-width: 1000px) {
  .table { width: 900px; margin-left: -90px; margin-right: -90px; }
}

/* Vanliga frågor */
.faq { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
summary { cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--moss); font-weight: 400; font-size: 20px; line-height: 1.2; }
details[open] summary::after { content: "−"; }
details p { margin: 10px 0 2px; }

.sources { list-style: none; padding: 0; font-size: 15px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 28px; }
.sources a { color: var(--sub); text-decoration-color: var(--line); }
.sources a:hover { color: var(--ink); }

/* Startsida och listor */
.home { max-width: 720px; }
.hero { display: grid; grid-template-columns: 1fr; gap: 8px; }
.hero .moss { width: 100%; max-width: 520px; height: auto; margin: 0 auto; }
.home h1 { font-size: 64px; line-height: 1.02; letter-spacing: -.035em; max-width: 9em; margin-bottom: 20px; }
.home .lead { max-width: 30em; color: var(--sub); }
.list-head { display: flex; justify-content: space-between; align-items: baseline; margin: 48px 0 0; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.list-head h2 { margin: 0; font-size: 22px; }
.calm { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--line); }
.calm h2 { margin-top: 0; }
.calm p { color: var(--sub); }
@media (min-width: 980px) {
  .home { max-width: 1000px; margin-left: calc((720px - 1000px) / 2); margin-right: calc((720px - 1000px) / 2); }
  .hero { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 24px; }
  .hero .moss { max-width: none; }
  .calm { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; }
}
.list { list-style: none; padding: 0; margin: 24px 0 0; border-top: 1px solid var(--line); }
.list-head + .list { border-top: 0; margin-top: 0; }
.list li { margin: 0; border-bottom: 1px solid var(--line); }
.list a { display: block; padding: 20px 0; color: var(--ink); text-decoration: none; }
.list .txt { display: grid; grid-template-columns: 1fr auto; gap: 2px 24px; align-content: center; }
.list a:hover .n { color: var(--moss); }
.list .n { font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
.list .c { font-size: 13px; color: var(--sub); align-self: center; }
.list .d { grid-column: 1 / -1; color: var(--sub); font-size: 16px; }
.list.has-img a { display: grid; grid-template-columns: 184px 1fr; gap: 26px; align-items: center; }
.list .t { width: 184px; height: 138px; object-fit: contain; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.soon { margin-top: 18px; color: var(--sub); font-size: 15px; }

/* Figurer */
.fig { margin: 28px 0; padding: 16px; background: var(--soft); border: 1px solid var(--line); border-radius: 12px; }
.fig img { width: 100%; height: auto; display: block; border-radius: 6px; background: #fff; }
.fig-labels { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 12px; }
.fig-labels.three { grid-template-columns: 1fr 1fr 1fr; }
.fig-labels p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--sub); }
.fig-labels strong { display: block; font-size: 15px; }
.fig figcaption { font-size: 14px; color: var(--sub); margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }

/* Sidfot */
footer.site { border-top: 1px solid var(--line); padding: 28px 0 44px; font-size: 14px; color: var(--sub); }
footer.site .wrap { max-width: 1000px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
footer.site p { margin: 0; }
footer.site a { color: var(--sub); text-decoration: none; margin-right: 20px; }
footer.site a:hover { color: var(--ink); }

/* Mobil */
@media (max-width: 600px) {
  body { font-size: 17px; }
  h1 { font-size: 34px; }
  .home h1 { font-size: 42px; }
  h2 { font-size: 23px; margin-top: 44px; }
  .lead { font-size: 19px; }
  main { padding-top: 28px; }
  header.site .wrap { padding-top: 12px; padding-bottom: 12px; }
  header.site nav { gap: 20px; font-size: 15px; }
  .box { padding: 16px 18px; }
  .list .txt { grid-template-columns: 1fr; }
  .list .c { order: -1; }
  .list.has-img a { grid-template-columns: 112px 1fr; gap: 14px; }
  .list .t { width: 112px; height: 84px; }
  .list .n { font-size: 18px; }
  .list .d { font-size: 15px; }
  .sources { grid-template-columns: 1fr; }
  .fig { padding: 10px; margin-left: -6px; margin-right: -6px; }
  .fig-labels.three { gap: 10px; }
  .fig-labels p { font-size: 13px; }

  /* Tabeller: en rad blir ett kort */
  .table { border: 0; border-radius: 0; overflow: visible; }
  .table thead { display: none; }
  .table table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; }
  .table td { border: 0; padding: 3px 0; display: grid; grid-template-columns: 7em 1fr; gap: 12px; text-align: left; }
  .table td::before { content: attr(data-label); color: var(--sub); font-size: 14px; font-weight: 400; }
  .table td:first-child { display: block; font-size: 18px; padding-bottom: 8px; }
  .table td:first-child::before { content: none; }
  .table td[data-label="Pris"] { display: block; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); text-align: left; }
  .table td[data-label="Pris"]::before { content: none; }
  .table td .p { font-size: 18px; }
  .table .btn { display: block; text-align: center; padding: 10px; font-size: 15px; margin-top: 10px; }
}

/* Bockar */
.box:not(.warn):not(.own) ul { list-style: none; padding-left: 0; }
.box:not(.warn):not(.own) li { position: relative; padding-left: 30px; }
.box:not(.warn):not(.own) li::before { content: ""; position: absolute; left: 0; top: .28em; width: 19px; height: 19px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10' fill='%232e6f40'/%3E%3Cpath d='M5.8 10.4l2.7 2.7 5.7-6' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain; }
.trust { list-style: none; padding: 18px 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust li { position: relative; padding-left: 32px; margin: 0; font-size: 15px; color: var(--sub); line-height: 1.45; }
.trust li::before { content: ""; position: absolute; left: 0; top: 1px; width: 21px; height: 21px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10' fill='%232e6f40'/%3E%3Cpath d='M5.8 10.4l2.7 2.7 5.7-6' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain; }
.trust strong { display: block; font-size: 16px; }
.list-head { margin-top: 40px; }

/* Pil i listan */
.list a { position: relative; padding-right: 34px; }
.list a::after { content: ""; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--sub); border-top: 2px solid var(--sub); transform: translateY(-50%) rotate(45deg); transition: right .15s; }
.list a:hover::after { right: 2px; border-color: var(--moss); }
@media (prefers-reduced-motion: reduce) { .list a::after { transition: none; } }

/* Ifyllda köpknappar */
.btn { background: var(--moss); border-color: var(--moss); color: #fff; padding: 6px 12px; }
.btn:hover { background: var(--moss-ink); border-color: var(--moss-ink); }
.btn:focus-visible { outline: 2px solid var(--moss); outline-offset: 2px; }

@media (max-width: 600px) {
  .trust { grid-template-columns: 1fr; padding: 16px 0; }
  .list a { padding-right: 26px; }
}
