/* =========================================================
   Trädsäkert — stilmall
   Färger: vitt, svart, Trädsäkert-blå, ljus beige
   ========================================================= */
:root {
  --bla: #0b3fb5;
  --bla-mork: #082f88;
  --bla-ljus: #e7eefb;
  --bla-pa-morkt: #5c8dff;
  --svart: #000;
  --text: #1f1f1f;
  --gra: #5c5c5c;
  --vit: #fff;
  --beige: #f3ede2;
  --linje: #ddd5c6;
  --pad: clamp(1.25rem, 5vw, 2.5rem);
  --rubrik: "Archivo", "Arial Narrow", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--vit);
  -webkit-font-smoothing: antialiased;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--bla); }
p { margin: 0 0 1em; max-width: 62ch; }

h1, h2, h3 {
  font-family: var(--rubrik);
  font-stretch: 75%;
  font-weight: 800;
  color: var(--svart);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 8vw, 5rem); }
.sektion:not(.sektion--svart):not(.sektion--bla) h2 { color: var(--bla); }
h2 { font-size: clamp(2rem, 5vw, 3.2rem); }
h3 { font-size: 1.35rem; font-weight: 700; letter-spacing: 0; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--pad); }
.smal-wrap { max-width: 780px; }
.smal { max-width: 18ch; }

.sektion { padding: clamp(3.5rem, 9vw, 6.5rem) 0; }
.sektion--beige { background: var(--beige); }
.sektion--svart { background: var(--svart); color: #cfcfcf; }
.sektion--svart h3 { color: var(--vit); }
.sektion--svart h2 { color: var(--bla-pa-morkt); }
.sektion--bla { background: var(--bla); color: #dde6fa; }
.sektion--bla h2 { color: var(--vit); }

.overrad {
  font-family: var(--rubrik);
  font-stretch: 100%;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--bla);
  margin-bottom: 0.8rem;
}
.overrad--ljus { color: #bdbdbd; }
.overrad--stor { font-stretch: 85%; font-size: 1.15rem; letter-spacing: 0.06em; text-transform: none; color: var(--svart); margin-bottom: 0.2rem; }

a:focus-visible, summary:focus-visible { outline: 3px solid var(--bla); outline-offset: 3px; }
.sektion--svart a:focus-visible, .sektion--bla a:focus-visible, .hero a:focus-visible { outline-color: var(--vit); }

/* ---------- knappar ---------- */
.knappar { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 2rem 0 0; }
.knapp {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.4rem; padding: 0.85rem 1.6rem;
  font-weight: 700; font-size: 1.05rem; text-decoration: none;
  border: 2px solid transparent; border-radius: 3px;
  transition: background-color .15s, color .15s;
}
.knapp--ring { background: var(--bla); color: var(--vit); }
.knapp--ring:hover { background: var(--bla-mork); }
.knapp--ljus { background: var(--vit); color: var(--bla); }
.knapp--ljus:hover { background: var(--bla-ljus); }
.knapp--sms { background: transparent; color: var(--svart); border-color: var(--svart); }
.knapp--sms:hover { background: var(--svart); color: var(--vit); }
.knappar--ljus .knapp--ring { background: var(--vit); color: var(--bla); }
.knappar--ljus .knapp--ring:hover { background: var(--bla-ljus); }
.knappar--ljus .knapp--sms { color: var(--vit); border-color: var(--vit); }
.knappar--ljus .knapp--sms:hover { background: var(--vit); color: var(--svart); }

/* ---------- sidhuvud ---------- */
.topp { background: var(--vit); border-bottom: 1px solid var(--linje); position: relative; z-index: 5; }
.topp-rad { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.logga { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--svart); }
.logga img { width: auto; height: 42px; }
@media (max-width: 420px) { .logga img { height: 34px; } }
.logga span { font-family: var(--rubrik); font-stretch: 62%; font-weight: 500; letter-spacing: 0.22em; font-size: 1.35rem; }
.topp-tel { text-decoration: none; text-align: right; line-height: 1.2; }
.topp-tel-nr { display: block; font-weight: 800; color: var(--svart); font-size: 1.05rem; white-space: nowrap; }
.topp-tel-tid { display: block; font-size: 0.75rem; color: var(--gra); }
@media (max-width: 420px) { .logga span { font-size: 1.1rem; letter-spacing: 0.16em; } .topp-tel-tid { display: none; } }

/* ---------- hero ---------- */
/* Bilden ligger bakom texten i alla skärmstorlekar */
.hero { position: relative; overflow: hidden; background: var(--svart); color: var(--vit); }
.hero picture { position: absolute; top: 0; left: 0; right: 0; height: min(112vw, 620px); }
.hero-bild { width: 100%; height: 100%; object-fit: cover; object-position: 60% 62%; }
.hero::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: min(112vw, 620px);
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 45%, rgba(0,0,0,.8) 78%, #000 100%);
}
.hero-text { position: relative; z-index: 1; width: 100%; padding: min(78vw, 440px) 0 3rem; }
.hero h1 { color: var(--bla-pa-morkt); max-width: 12ch; }
.h1-ort {
  display: block; margin-bottom: 1rem;
  font-stretch: 100%; font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--vit);
}
.hero-ingress { font-size: 1.15rem; color: #e8e8e8; max-width: 44ch; }
.hero-trygg { list-style: none; padding: 0; margin: 1.6rem 0 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; font-size: 0.92rem; color: #d6d6d6; }
.hero-trygg li::before { content: "✓"; color: var(--bla-pa-morkt); font-weight: 900; margin-right: 0.45rem; }

@media (min-width: 900px) {
  .hero { min-height: min(88vh, 820px); display: flex; align-items: center; }
  .hero picture, .hero::after { height: 100%; bottom: 0; }
  .hero-bild { object-position: 62% 55%; }
  .hero::after {
    background: linear-gradient(90deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.72) 38%, rgba(0,0,0,.15) 70%, rgba(0,0,0,0) 100%);
  }
  .hero-text { padding: 4rem 0; }
}

/* ---------- problemsektionen ---------- */
.rubrik-svart { color: var(--svart) !important; }
.problem-ingress { font-size: clamp(1.15rem, 2.5vw, 1.45rem); font-weight: 600; color: var(--svart); max-width: 46ch; margin-bottom: 0; }
.bla { color: var(--bla); }

/* ---------- omdömen under hero ---------- */
.omdomen-rad { background: var(--beige); padding: 2.5rem 0; }
.omdomen-grid { display: grid; gap: 1.25rem; }
@media (min-width: 800px) { .omdomen-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }
.omdome { margin: 0; background: var(--vit); padding: 1.6rem 1.7rem; border-top: 4px solid var(--bla); display: flex; flex-direction: column; }
.stjarnor { color: var(--bla); font-size: 1.15rem; letter-spacing: 0.15em; margin: 0 0 0.7rem; }
.omdome blockquote { margin: 0 0 1rem; font-size: 1.05rem; line-height: 1.55; color: var(--svart); }
.omdome figcaption { margin-top: auto; font-size: 0.9rem; font-weight: 600; color: var(--gra); }

/* ---------- faror ---------- */
.faror { margin-top: 2.5rem; display: grid; gap: 1px; background: var(--linje); border: 1px solid var(--linje); margin-top: 2.5rem; }
@media (min-width: 700px) { .faror { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .faror { grid-template-columns: repeat(4, 1fr); } }
.fara { background: var(--vit); padding: 1.8rem 1.5rem; }
.fara h3 { border-left: 4px solid var(--bla); padding-left: 0.8rem; }
.fara p { font-size: 0.97rem; margin: 0; }
.filosofi { font-size: 1.2rem; font-weight: 600; color: var(--svart); margin-top: 2.5rem; max-width: 50ch; }

/* ---------- två kolumner ---------- */
.tva { display: grid; gap: 2.5rem; }
@media (min-width: 860px) { .tva { grid-template-columns: 1.1fr 0.9fr; gap: 4rem; align-items: start; } .tva--mitt { grid-template-columns: 1fr 1fr; align-items: stretch; } }

.bocklista { list-style: none; padding: 1.8rem; margin: 0; background: var(--vit); border-top: 4px solid var(--bla); }
.bocklista li { padding: 0.7rem 0 0.7rem 2rem; border-bottom: 1px solid var(--linje); position: relative; font-weight: 600; color: var(--svart); }
.bocklista li:last-child { border-bottom: 0; }
.bocklista li::before { content: "✓"; position: absolute; left: 0; color: var(--bla); font-weight: 900; }

/* ---------- guiden ---------- */
.guide-rad { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .guide-rad { grid-template-columns: 0.75fr 1.25fr; gap: 3.5rem; align-items: start; } }
.guide-bild img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.guide-rad .bocklista { margin-top: 2rem; }

/* ---------- steg ---------- */
.steg { list-style: none; counter-reset: s; padding: 0; margin: 2.5rem 0 0; display: grid; gap: 2rem; }
@media (min-width: 800px) { .steg { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }
.steg li { counter-increment: s; }
.steg li::before {
  content: counter(s);
  display: block; font-family: var(--rubrik); font-stretch: 75%; font-weight: 900;
  font-size: 3.5rem; line-height: 1; color: var(--bla); margin-bottom: 0.6rem;
}
.steg p { margin: 0; }

/* ---------- erbjudande ---------- */
.erbjudande-ingress { font-size: clamp(1.25rem, 3vw, 1.6rem); color: var(--vit); font-weight: 600; margin-bottom: 2.5rem; }
.stack { list-style: none; padding: 0; margin: 0; border-top: 1px solid #333; }
.stack li { padding: 1.4rem 0 1.4rem 3rem; border-bottom: 1px solid #333; position: relative; }
.stack li::before {
  content: "✓"; position: absolute; left: 0; top: 1.35rem;
  width: 1.9rem; height: 1.9rem; border-radius: 50%;
  background: var(--bla); color: var(--vit); font-weight: 900; font-size: 0.95rem;
  display: flex; align-items: center; justify-content: center;
}
.stack h3 { margin-bottom: 0.3rem; font-size: 1.3rem; }
.stack p { margin: 0; font-size: 1rem; }
.tillagg { margin: 0.5rem 0 0; padding-left: 0.9rem; border-left: 2px solid var(--bla-pa-morkt); font-size: 0.95rem; color: #d7d7d7; }
.tillagg--garanti { border-left-color: var(--vit); }
.finstilt { display: inline-block; font-size: 0.82rem; color: #9fb4dd; text-decoration: underline; }

.pris { margin-top: 2.5rem; padding: 2rem; border: 2px solid var(--vit); max-width: 640px; }
.pris-tal { font-family: var(--rubrik); font-stretch: 75%; font-weight: 900; font-size: clamp(2rem, 6vw, 2.8rem); color: var(--vit); line-height: 1.05; margin-bottom: 0.8rem; }
.pris-tal span { display: block; font-stretch: 100%; font-size: 1rem; font-weight: 500; color: #bdbdbd; margin-top: 0.3rem; }
.pris-knapphet { margin: 0; font-size: 0.97rem; }

/* ---------- säsongserbjudande ---------- */
.erbjudande-band { margin-top: 2rem; background: var(--bla); color: #dde6fa; padding: 2rem 1.9rem; }
.erbjudande-band[hidden] { display: none; }
.erbjudande-etikett { font-family: var(--rubrik); font-stretch: 100%; text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.75rem; font-weight: 700; color: #fff; margin-bottom: 0.7rem; }
.erbjudande-band h3 { color: #fff; font-size: clamp(1.4rem, 3vw, 1.9rem); font-stretch: 75%; font-weight: 800; margin-bottom: 0.6rem; }
.erbjudande-band p { margin-bottom: 0.8rem; }
.erbjudande-datum { font-size: 0.9rem; color: #b9c9ea; }
.erbjudande-band .knapp { margin-top: 0.6rem; }

/* ---------- erbjudande med bild ---------- */
.erbjudande-rad { display: grid; gap: 2.5rem; }
.erbjudande-bild img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 55%; }
@media (min-width: 900px) {
  .erbjudande-rad { grid-template-columns: 0.55fr 1.45fr; gap: 3.5rem; align-items: start; }
  .erbjudande-bild { position: sticky; top: 2rem; }
  .erbjudande-bild img { aspect-ratio: 3 / 4; }
}

/* ---------- priser ---------- */
.centrerad { text-align: center; margin-left: auto; margin-right: auto; }
.centrerad-ingress { text-align: center; margin: 0 auto 2.5rem; }
.paket { display: grid; gap: 1.25rem; }
@media (min-width: 860px) { .paket { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.paket-kort { background: var(--vit); border: 1px solid var(--linje); border-top: 4px solid var(--bla); padding: 0 0 2rem; display: flex; flex-direction: column; }
.paket-kort > *:not(.paket-bild) { margin-left: 1.7rem; margin-right: 1.7rem; }
.paket-kort h3 { margin-top: 1.6rem; }
.paket-bild { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.paket-knapp { display: flex; width: auto; padding-left: 0.9rem; padding-right: 0.9rem; font-size: 0.98rem; text-align: center; line-height: 1.25; }
.paket-text { font-size: 0.97rem; }
.paket-pris { margin-top: auto; margin-bottom: 0; font-family: var(--rubrik); font-stretch: 75%; font-weight: 900; font-size: 1.6rem; line-height: 1.05; color: var(--svart); }
.paket-pris span { display: block; font-stretch: 100%; font-size: 0.9rem; font-weight: 500; color: var(--gra); margin-top: 0.2rem; line-height: 1.35; }
.paket-pris--tom { color: var(--bla); }
.paket-exempel { font-size: 0.82rem; color: var(--gra); margin: 0; line-height: 1.35; }
.paket-knapp { margin-top: 1rem; }
.centrerad-ingress--liten { font-size: 0.9rem; color: var(--gra); margin-top: -1.5rem; }

/* ---------- garanti ---------- */
.garanti { background: var(--bla); color: #e3ebfb; padding: clamp(3rem, 8vw, 5rem) 0; }
.garanti h2 { color: var(--vit); }
.garanti p { font-size: 1.1rem; margin: 0; }
.garanti-lank { color: #fff; font-weight: 700; white-space: nowrap; }
.garanti-rad { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 760px) { .garanti-rad { grid-template-columns: auto 1fr; gap: 3rem; } }
.garanti-sigill { width: 156px; height: 156px; border-radius: 26px; background: var(--vit); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.garanti-sigill img { width: 112px; height: 112px; }

/* ---------- omdömen ---------- */
.omdomen { margin-top: 2rem; }
.platshallare { border: 1px dashed var(--linje); padding: 3rem 1.5rem; text-align: center; color: var(--gra); max-width: none; }

/* ---------- om ett år ---------- */
.framtid-sektion { border-top: 1px solid var(--linje); }
.framtid-sektion .knappar { margin-top: 2.5rem; }
.resultat-bild { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; object-position: 50% 45%; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.framtid-rad { display: grid; gap: 2.5rem; }
@media (min-width: 860px) { .framtid-rad { grid-template-columns: 1fr 1fr; gap: 4rem; } .framtid--dalig { border-left: 1px solid var(--linje); padding-left: 4rem; } }
.framtid-etikett { font-family: var(--rubrik); font-stretch: 100%; text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.78rem; font-weight: 700; color: var(--bla); margin-bottom: 0.9rem; }
.framtid--dalig .framtid-etikett { color: var(--gra); }
.framtid-text { font-family: var(--rubrik); font-stretch: 85%; font-size: clamp(1.35rem, 2.6vw, 1.75rem); font-weight: 700; line-height: 1.3; color: var(--svart); margin: 0; }
.framtid--dalig .framtid-text { color: var(--gra); font-weight: 600; }

/* ---------- vanliga frågor ---------- */
details { border-bottom: 1px solid var(--linje); }
details:first-of-type { border-top: 1px solid var(--linje); margin-top: 2rem; }
summary {
  cursor: pointer; list-style: none; padding: 1.2rem 2.5rem 1.2rem 0; position: relative;
  font-weight: 700; font-size: 1.08rem; color: var(--svart);
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0.3rem; top: 50%; transform: translateY(-50%); font-size: 1.6rem; font-weight: 400; color: var(--bla); }
details[open] summary::after { content: "–"; }
details p { padding-bottom: 1.2rem; margin: 0; }

/* ---------- slut ---------- */
.slut-rubrik { color: var(--bla); font-size: clamp(2.2rem, 6vw, 3.6rem); max-width: 16ch; margin-bottom: 1.8rem; }
.slut-ingress { font-size: 1.15rem; max-width: 48ch; }

/* ---------- formulär ---------- */
.form { display: grid; gap: 1rem; max-width: 540px; margin-top: 1.8rem; }
.falt { display: grid; gap: 0.3rem; }
.falt label { font-size: 0.9rem; font-weight: 700; color: var(--svart); }
.falt input, .falt textarea { font-family: inherit; font-size: 1rem; padding: 0.75rem 0.9rem; border: 1px solid var(--linje); border-radius: 3px; background: var(--vit); color: var(--text); }
.falt textarea { min-height: 120px; resize: vertical; }
.form .knapp { cursor: pointer; font-family: inherit; justify-self: start; }
.form-not { font-size: 0.9rem; color: var(--gra); margin: 0; }

/* ---------- undersida ---------- */
.sida-topp { padding-top: clamp(2.5rem, 6vw, 4rem); }
.sida-topp h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); max-width: 22ch; }
.villkor h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-top: 2.8rem; }
.villkor h3 { font-size: 1.1rem; margin-top: 1.8rem; margin-bottom: 0.4rem; color: var(--bla); }
.villkor strong { color: var(--svart); }
.villkor-platshallare { border-left: 4px solid var(--linje); padding: 0.8rem 0 0.8rem 1.2rem; color: var(--gra); }
.tillbaka { display: inline-block; margin-top: 2.5rem; font-weight: 700; text-decoration: none; }

/* ---------- sidfot ---------- */
.botten { background: var(--beige); border-top: 1px solid var(--linje); padding: 3rem 0 6.5rem; font-size: 0.93rem; color: var(--gra); }
@media (min-width: 760px) { .botten { padding-bottom: 3rem; } }
.botten-rad { display: grid; gap: 1.8rem; }
@media (min-width: 700px) { .botten-rad { grid-template-columns: repeat(3, 1fr); } }
.botten-rubrik { font-weight: 800; color: var(--svart); margin-bottom: 0.4rem; }
.botten a { color: var(--bla); text-decoration: none; }

/* ---------- fast knapprad på mobil ---------- */
.ringbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; padding-bottom: env(safe-area-inset-bottom, 0); background: var(--svart); }
.ringbar a { flex: 1; text-align: center; padding: 1rem 0.5rem; font-weight: 700; text-decoration: none; color: var(--vit); }
.ringbar a:first-child { background: var(--bla); }
@media (min-width: 760px) { .ringbar { display: none; } }
