:root {
  --ink: #17211f;
  --muted: #626c68;
  --green: #173b36;
  --green-2: #286257;
  --sage: #dceae5;
  --paper: #fbfcfa;
  --white: #fff;
  --line: #d9e0dd;
  --coral: #f2a37f;
  --radius: 8px;
  --max: 1160px;
  --shadow: 0 22px 55px rgba(23, 59, 54, .13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.62;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
.wrap { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 10px 14px; background: var(--white); }
.skip-link:focus { top: 16px; }

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,.2);
}
.inner-page .site-header { position: sticky; top: 0; background: var(--green); }
.nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; text-decoration: none; white-space: nowrap; }
.brand-mark { width: 31px; height: 31px; position: relative; border: 2px solid; border-radius: 50%; }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; height: 2px; background: currentColor; border-radius: 10px; }
.brand-mark::before { width: 13px; left: 7px; top: 9px; transform: rotate(-30deg); }
.brand-mark::after { width: 8px; left: 11px; top: 15px; transform: rotate(30deg); }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { font-size: 14px; font-weight: 800; text-decoration: none; text-underline-offset: 5px; }
.nav-links a:hover { text-decoration: underline; }
.nav-cta { padding: 10px 14px; border: 1px solid rgba(255,255,255,.65); }
.menu-toggle { display: none; min-width: 48px; min-height: 44px; padding: 8px 10px; color: var(--white); background: transparent; border: 1px solid rgba(255,255,255,.55); font: inherit; font-weight: 800; cursor: pointer; }

.hero {
  min-height: 720px;
  position: relative;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background-image: linear-gradient(90deg, rgba(16,34,31,.9) 0%, rgba(17,38,34,.76) 43%, rgba(17,38,34,.1) 76%), url("stadhjalp-hero.webp");
  background-size: cover;
  background-position: center;
}
.hero-content { width: min(680px, 62vw); padding-top: 82px; animation: rise .75s cubic-bezier(.2,.75,.25,1) both; }
.eyebrow, .section-label { margin: 0 0 16px; color: #dbeee8; font-size: 13px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: 0; text-wrap: balance; }
h1 { max-width: 700px; margin-bottom: 22px; font-size: clamp(48px, 6.7vw, 84px); line-height: 1.01; }
h2 { margin-bottom: 0; font-size: clamp(36px, 4.5vw, 56px); line-height: 1.08; }
h3 { margin-bottom: 10px; font-size: 21px; line-height: 1.25; }
.hero-lead { max-width: 610px; margin-bottom: 30px; color: rgba(255,255,255,.9); font-size: clamp(18px, 2vw, 22px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.affiliate-note { margin: 12px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.affiliate-note-light { max-width: 620px; color: rgba(255,255,255,.72); }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 13px 20px; border: 1px solid transparent; border-radius: var(--radius); color: #27201c; background: var(--coral); font-weight: 850; text-decoration: none; transition: transform .18s ease, background .18s ease; }
.button:hover { transform: translateY(-2px); background: #ffb28f; }
.button-secondary { color: var(--white); background: transparent; border-color: rgba(255,255,255,.65); }
.button-secondary:hover { color: var(--ink); background: var(--white); }
.button-dark { color: var(--white); background: var(--green); }
.button-dark:hover { background: var(--green-2); }

.trust { color: var(--white); background: var(--green); }
.trust .wrap { min-height: 96px; display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; }
.trust-item { display: flex; align-items: center; gap: 12px; padding: 18px 26px; border-right: 1px solid rgba(255,255,255,.16); }
.trust-item:first-child { padding-left: 0; }
.trust-item:last-child { border-right: 0; }
.check { flex: 0 0 auto; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; color: var(--green); background: #cce5dc; font-weight: 900; }
.trust-item b { display: block; font-size: 15px; }
.trust-item small { display: block; color: rgba(255,255,255,.7); font-size: 13px; }

.section { padding: 100px 0; }
.section-soft { background: #edf3f0; }
.section-white { background: var(--white); }
.section-head { display: grid; grid-template-columns: .7fr 1.3fr; gap: 72px; align-items: start; margin-bottom: 54px; }
.section-label { color: var(--green-2); }
.section-intro { max-width: 700px; margin: 18px 0 0; color: var(--muted); font-size: 18px; }

.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #c7d4ce; border-bottom: 1px solid #c7d4ce; }
.service { min-height: 270px; display: flex; flex-direction: column; align-items: flex-start; padding: 30px; border-right: 1px solid #c7d4ce; }
.service:first-child { padding-left: 0; }
.service:last-child { border-right: 0; }
.service p { margin-bottom: 22px; color: var(--muted); }
.text-link { margin-top: auto; color: var(--green-2); font-weight: 850; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.partner-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: center; margin-top: 46px; padding: 34px; border: 1px solid #c7d4ce; border-radius: var(--radius); background: var(--white); box-shadow: 0 12px 34px rgba(23,59,54,.07); }
.partner-card h2 { max-width: 720px; margin-bottom: 16px; font-size: clamp(30px, 3.8vw, 44px); }
.partner-card > div > p:not(.section-label):not(.affiliate-note) { max-width: 720px; margin-bottom: 0; color: var(--muted); }
.partner-card .button { min-width: 250px; }

.guide-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.guide-card { min-height: 270px; display: flex; flex-direction: column; align-items: flex-start; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.guide-card .tag { margin-bottom: 28px; color: var(--green-2); font-size: 12px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.guide-card p { color: var(--muted); }
.guide-card .text-link { margin-top: auto; }

.compare-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 86px; align-items: start; }
.compare-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.compare-list li { display: grid; grid-template-columns: 34px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.compare-list strong { color: var(--green-2); }
.compare-list p { margin: 2px 0 0; color: var(--muted); }

.faq-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: 80px; }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { position: relative; padding: 21px 44px 21px 0; list-style: none; cursor: pointer; font-weight: 850; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 7px; top: 16px; color: var(--green-2); font-size: 27px; font-weight: 400; }
details[open] summary::after { content: "−"; }
details p { margin: -4px 45px 22px 0; color: var(--muted); }

.disclosure { padding: 68px 0; color: var(--white); background: var(--green); }
.disclosure-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 72px; }
.disclosure .section-label { color: #cce5dc; }
.disclosure h2 { font-size: clamp(34px, 4vw, 50px); }
.disclosure p { margin-bottom: 13px; color: rgba(255,255,255,.76); }
.disclosure a { font-weight: 800; text-underline-offset: 4px; }

.owner { padding: 82px 0; background: #f1f2ef; }
.owner-grid { display: grid; grid-template-columns: .65fr 1.35fr; gap: 70px; }
.owner p { margin-bottom: 12px; color: var(--muted); }
.owner address { font-style: normal; color: var(--muted); }
.owner a { color: var(--green-2); font-weight: 800; text-underline-offset: 3px; }

.article-hero { padding: 92px 0 72px; color: var(--white); background: var(--green); }
.breadcrumb { margin: 0 0 18px; color: #cce5dc; font-size: 13px; }
.breadcrumb a { text-underline-offset: 4px; }
.article-hero h1 { max-width: 850px; margin-bottom: 20px; font-size: clamp(42px, 6vw, 72px); }
.article-hero p:last-child { max-width: 760px; margin-bottom: 0; color: rgba(255,255,255,.8); font-size: 19px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(250px, .6fr); gap: 74px; align-items: start; }
.article-body { max-width: 760px; }
.article-body h2 { margin: 64px 0 20px; font-size: clamp(31px, 4vw, 46px); }
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { margin: 32px 0 10px; }
.article-body p, .article-body li { color: #3f4946; }
.article-body ul, .article-body ol { padding-left: 22px; }
.article-body li { margin-bottom: 8px; }
.article-body .source { padding: 18px; border-left: 3px solid var(--green-2); background: var(--sage); font-size: 14px; }
.article-body .source a { color: var(--green-2); font-weight: 800; }
.article-aside { position: sticky; top: 108px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.article-aside h2 { margin-bottom: 14px; font-family: inherit; font-size: 17px; font-weight: 850; }
.article-aside ul { margin: 0; padding: 0; list-style: none; }
.article-aside li + li { margin-top: 9px; }
.article-aside a { color: var(--green-2); font-size: 14px; font-weight: 750; text-underline-offset: 4px; }
.article-note { margin-top: 54px; padding: 26px; border-radius: var(--radius); background: var(--sage); }
.article-note p:last-child { margin-bottom: 0; }
.article-affiliate { margin-top: 28px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 12px 30px rgba(23,59,54,.07); }
.article-affiliate .section-label { margin-bottom: 10px; }
.article-affiliate h3 { margin-bottom: 10px; font-size: 24px; }
.article-affiliate > p:not(.section-label):not(.affiliate-note) { margin-bottom: 18px; }

footer { padding: 34px 0; color: rgba(255,255,255,.72); background: #102a25; font-size: 13px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 50px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 14px 22px; }
.footer-links a { text-underline-offset: 4px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.16); }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: none; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav-links { position: fixed; inset: 76px 0 auto; display: none; padding: 20px; color: var(--green); background: var(--white); box-shadow: var(--shadow); flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 11px 0; }
  .nav-cta { color: var(--white); background: var(--green); text-align: center; }
  .hero { min-height: 760px; background-position: 63% center; }
  .hero-content { width: 100%; max-width: 620px; padding-top: 88px; }
  .trust .wrap { grid-template-columns: 1fr; padding-block: 12px; }
  .trust-item, .trust-item:first-child { padding: 10px 0; border-right: 0; }
  .section-head, .compare-layout, .faq-layout, .disclosure-grid, .owner-grid, .article-layout, .partner-card { grid-template-columns: 1fr; gap: 38px; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .service, .service:first-child { padding: 26px; border-bottom: 1px solid #c7d4ce; }
  .service:nth-child(2) { border-right: 0; }
  .article-aside { position: static; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 580px) {
  .wrap { width: min(calc(100% - 28px), var(--max)); }
  .nav { min-height: 68px; }
  .nav-links { inset: 68px 0 auto; }
  .brand { font-size: 15px; }
  .hero { min-height: 720px; background-position: 70% center; }
  .hero-content { padding-top: 70px; }
  h1 { font-size: 43px; }
  .hero-lead { font-size: 17px; }
  .hero-actions { width: 100%; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .section { padding: 72px 0; }
  .service-grid, .guide-grid { grid-template-columns: 1fr; }
  .service, .service:first-child { min-height: 0; padding: 24px 0; border-right: 0; }
  .guide-card { min-height: 0; padding: 24px; }
  .partner-card { margin-top: 32px; padding: 24px; }
  .partner-card .button { width: 100%; min-width: 0; }
  .article-hero { padding: 68px 0 58px; }
  .article-hero h1 { font-size: 40px; }
  .article-body h2 { margin-top: 48px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ——— Verktyg ——— */
.tool-nav-section { padding: 40px 0 28px; }
.tool-jump { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.tool-jump a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
  color: var(--green-2); font-size: 14px; font-weight: 800; text-decoration: none;
}
.tool-jump a:hover { border-color: var(--green-2); background: var(--sage); }
.tool-framing { margin: 0; max-width: 820px; color: var(--muted); font-size: 16px; }

.tool-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.tool-tab {
  min-height: 44px; padding: 10px 16px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); color: var(--ink); font: inherit; font-weight: 800; cursor: pointer;
}
.tool-tab.is-active { color: var(--white); background: var(--green); border-color: var(--green); }
.checklist-panel { display: none; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.checklist-panel.is-active { display: block; }
.checklist-title { margin: 0 0 16px; font-size: 20px; }
.checklist { margin: 0; padding: 0; list-style: none; }
.checklist li { border-top: 1px solid var(--line); }
.checklist li:first-child { border-top: 0; }
.checklist label {
  display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start;
  padding: 12px 0; cursor: pointer; color: #3f4946;
}
.checklist input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--green-2); }

.tool-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 20px; }
.tool-status { color: var(--green-2); font-size: 14px; font-weight: 700; }
.button-ghost { text-decoration: none;
  min-height: 52px; display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 20px; border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--green); background: var(--white); font: inherit; font-weight: 850; cursor: pointer;
}
.button-ghost:hover { border-color: var(--green-2); background: var(--sage); }

.rut-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 36px; align-items: start; }
.rut-form {
  display: grid; gap: 16px; padding: 26px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--white);
}
.rut-form label { display: grid; gap: 8px; font-weight: 800; font-size: 14px; }
.rut-form input, .compare-tools input, .compare-matrix select {
  min-height: 46px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius);
  font: inherit; background: var(--paper);
}
.tool-hint { margin: 0; color: var(--muted); font-size: 13px; font-weight: 500; }
.rut-results { display: grid; gap: 14px; }
.rut-stat {
  display: flex; justify-content: space-between; gap: 16px; align-items: baseline;
  padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
}
.rut-stat span { color: var(--muted); font-size: 14px; }
.rut-stat strong { color: var(--green); font-size: 22px; font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
.rut-blurb { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.rut-source { margin-top: 8px; }

.compare-tools { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }
.inline-label { display: grid; gap: 6px; font-size: 13px; font-weight: 800; color: var(--green-2); }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.compare-matrix { width: 100%; border-collapse: collapse; min-width: 560px; }
.compare-matrix th, .compare-matrix td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.compare-matrix thead th { background: var(--sage); color: var(--green); font-size: 13px; }
.compare-matrix tbody th { font-size: 14px; font-weight: 800; width: 32%; }
.compare-matrix select { width: 100%; min-width: 110px; }

.tool-pdf-card {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center;
  padding: 34px; border: 1px solid #c7d4ce; border-radius: var(--radius); background: var(--white);
  box-shadow: 0 12px 34px rgba(23,59,54,.07);
}
.tool-pdf-card h2 { margin-bottom: 12px; font-size: clamp(28px, 3.5vw, 40px); }
.tool-pdf-card p:not(.section-label) { margin: 0; color: var(--muted); max-width: 640px; }

.tools-promo {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; align-items: center;
  margin-top: 28px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--sage);
}
.tools-promo h3 { margin-bottom: 8px; font-size: 24px; }
.tools-promo p { margin: 0 0 14px; color: #3f4946; }
.tools-promo-actions { display: flex; flex-wrap: wrap; gap: 10px; }

@media (max-width: 900px) {
  .rut-layout, .tool-pdf-card, .tools-promo { grid-template-columns: 1fr; }
}
