:root {
  --ink: #102019;
  --muted: #5f6f67;
  --green: #367554;
  --green-dark: #0b1c15;
  --green-soft: #dcf0df;
  --line: #dbe4df;
  --paper: #f7f9f7;
  --white: #ffffff;
  --shadow: 0 26px 70px rgba(16, 32, 25, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 82px;
  padding: 16px clamp(20px, 7vw, 92px);
  background: rgba(247, 249, 247, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 22px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-weight: 900;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 40px);
  font-size: 16px;
  font-weight: 800;
}

.nav a {
  text-decoration: none;
}

.nav-cta {
  padding: 17px 27px;
  border-radius: 999px;
  background: var(--green-dark);
  color: var(--white);
}

.hero {
  position: relative;
  min-height: calc(100svh - 82px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background-image: url("assets/bastahemlarm-hero.png");
  background-position: center;
  background-size: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(247, 249, 247, 0.96) 0%, rgba(247, 249, 247, 0.86) 38%, rgba(247, 249, 247, 0.2) 74%);
}

.hero-inner {
  position: relative;
  width: min(850px, 100%);
  padding: 80px clamp(22px, 8vw, 104px);
  animation: riseIn 800ms ease-out both;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--green);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 24px;
  font-size: clamp(52px, 8vw, 104px);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  max-width: 860px;
  margin-bottom: 32px;
  font-size: clamp(38px, 5vw, 74px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
}

p {
  color: var(--muted);
  font-size: 20px;
  line-height: 1.65;
}

.hero-copy {
  max-width: 760px;
  margin-bottom: 34px;
  font-size: clamp(22px, 2.4vw, 30px);
}

.hero-actions,
.guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 16px 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 16px 36px rgba(54, 117, 84, 0.22);
}

.button.secondary,
.button.ghost {
  background: rgba(255, 255, 255, 0.82);
  border-color: var(--line);
  color: var(--ink);
}

.button:disabled {
  opacity: 0.36;
  cursor: not-allowed;
  transform: none;
}

.button.full {
  width: 100%;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding: 0;
  margin: 44px 0 0;
  list-style: none;
  color: var(--muted);
  font-size: 18px;
}

.trust-list li::before {
  content: "✓";
  margin-right: 9px;
  color: var(--green);
  font-weight: 900;
}

.section {
  padding: clamp(72px, 10vw, 140px) clamp(22px, 8vw, 104px);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.85fr);
  gap: clamp(32px, 7vw, 96px);
  align-items: start;
}

.lead-text p {
  margin-bottom: 20px;
}

.checklist {
  border-top: 1px solid var(--line);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.feature-grid article {
  min-height: 280px;
  padding: 34px 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  transition: transform 180ms ease, border-color 180ms ease;
}

.feature-grid article:hover {
  transform: translateY(-4px);
  border-color: rgba(54, 117, 84, 0.45);
}

.feature-grid span {
  display: block;
  margin-bottom: 42px;
  color: var(--green);
  font-weight: 900;
}

.feature-grid h3 {
  margin-bottom: 18px;
  font-size: 28px;
}

.feature-grid p {
  font-size: 18px;
}

.guide-band {
  padding: clamp(54px, 8vw, 96px) clamp(18px, 6vw, 74px);
  background: var(--green-dark);
}

.guide-shell {
  max-width: 1430px;
  margin: 0 auto;
  padding: clamp(34px, 6vw, 72px);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.guide-head {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 30px;
  align-items: start;
  padding-bottom: 38px;
  border-bottom: 1px solid var(--line);
}

.progress-wrap {
  padding-top: 8px;
  color: var(--muted);
  font-weight: 900;
}

.progress-track {
  height: 12px;
  margin-top: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6ece8;
}

#progress-bar {
  width: 14.28%;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
  transition: width 240ms ease;
}

.question {
  display: none;
  padding: 54px 0 34px;
}

.question.is-active {
  display: block;
  animation: fadeSlide 260ms ease both;
}

.question h3 {
  margin-bottom: 10px;
  font-size: clamp(32px, 4vw, 48px);
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.choice-grid label {
  display: flex;
  align-items: center;
  min-height: 86px;
  padding: 18px 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.choice-grid label:has(input:checked) {
  border-color: var(--green);
  background: var(--green-soft);
}

.choice-grid label:hover {
  transform: translateY(-2px);
  border-color: rgba(54, 117, 84, 0.5);
}

.choice-grid input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.result .button {
  margin-top: 16px;
}

.knowledge {
  background: var(--paper);
}

.knowledge-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: 36px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.knowledge-card {
  min-width: 0;
  color: inherit;
  text-decoration: none;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
  transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.knowledge-card:hover {
  z-index: 1;
  background: var(--green-soft);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.knowledge-card:focus-visible {
  z-index: 2;
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

.knowledge-list article {
  height: 100%;
  min-height: 330px;
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 4vw, 48px);
}

.knowledge-list h3 {
  margin: 18px 0 14px;
  font-size: 30px;
}

.knowledge-list p {
  font-size: 19px;
}

.knowledge-number {
  color: var(--green);
  font-size: 15px;
  font-weight: 900;
}

.read-more {
  margin-top: auto;
  padding-top: 24px;
  color: var(--green-dark);
  font-weight: 900;
}

.read-more span {
  display: inline-block;
  margin-left: 6px;
  transition: transform 180ms ease;
}

.knowledge-card:hover .read-more span {
  transform: translateX(5px);
}

.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(360px, 0.92fr);
  gap: clamp(36px, 7vw, 92px);
  margin: 0 clamp(18px, 6vw, 74px);
  padding: clamp(44px, 7vw, 84px);
  border-radius: 8px;
  background: var(--green-soft);
}

.contact-copy a {
  color: var(--ink);
  font-size: 24px;
  font-weight: 900;
}

.contact-form {
  padding: clamp(24px, 4vw, 44px);
  border-radius: 8px;
  background: var(--white);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

label {
  display: block;
  margin-bottom: 20px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  margin-top: 8px;
  padding: 18px 20px;
  border: 1px solid #cfdad4;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 17px;
}

textarea {
  resize: vertical;
}

.consent {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 14px;
  align-items: start;
  font-size: 16px;
  line-height: 1.5;
}

.consent input {
  width: 20px;
  margin-top: 3px;
}

.fine-print {
  margin: 18px 0 0;
  font-size: 15px;
}

.faq details {
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.faq summary {
  padding: 24px 28px;
  font-size: 21px;
  font-weight: 900;
  cursor: pointer;
}

.faq details p {
  padding: 0 28px 26px;
  font-size: 18px;
}

.policy {
  padding-top: 0;
}

.policy p {
  max-width: 980px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 34px;
  align-items: start;
  padding: 72px clamp(22px, 8vw, 104px);
  background: var(--green-dark);
  color: var(--white);
}

.site-footer p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.72);
}

.footer-policy {
  font-size: 16px;
}

.footer-links {
  display: flex;
  gap: 28px;
  align-items: center;
  padding-top: 15px;
}

.footer-links a {
  color: var(--white);
  font-size: 18px;
  text-decoration: none;
}

/* Fördjupande guider */
.article-header {
  padding: clamp(64px, 10vw, 132px) clamp(22px, 8vw, 104px) clamp(56px, 8vw, 96px);
  background: var(--green-soft);
  border-bottom: 1px solid var(--line);
}

.article-header-inner,
.article-layout,
.related-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
}

.breadcrumbs a {
  color: var(--green-dark);
  text-underline-offset: 3px;
}

.article-header h1 {
  max-width: 980px;
  margin: 0 0 24px;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 1.02;
}

.article-lead {
  max-width: 800px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(20px, 2.3vw, 28px);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 30px;
  margin-top: 32px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
}

.article-main {
  padding: clamp(60px, 9vw, 112px) clamp(22px, 8vw, 104px);
  background: var(--paper);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(240px, 330px);
  justify-content: space-between;
  gap: 80px;
  align-items: start;
}

.article-body h2 {
  margin: 58px 0 18px;
  font-size: clamp(31px, 4vw, 46px);
  line-height: 1.12;
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body h3 {
  margin: 34px 0 12px;
  font-size: 25px;
}

.article-body p,
.article-body li {
  font-size: 19px;
}

.article-body ul,
.article-body ol {
  padding-left: 24px;
}

.article-body li {
  margin-bottom: 10px;
}

.article-note {
  margin: 38px 0;
  padding: 26px 28px;
  border-left: 4px solid var(--green);
  background: var(--green-soft);
}

.article-note strong {
  display: block;
  margin-bottom: 6px;
}

.table-scroll {
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  margin: 30px 0 40px;
  border-collapse: collapse;
  font-size: 16px;
}

.comparison-table th,
.comparison-table td {
  padding: 16px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.comparison-table th {
  color: var(--green-dark);
  background: var(--green-soft);
}

.article-sidebar {
  position: sticky;
  top: 30px;
  padding: 28px;
  border-top: 4px solid var(--green);
  background: var(--white);
  box-shadow: var(--shadow);
}

.article-sidebar h2 {
  margin: 0 0 16px;
  font-size: 25px;
}

.article-sidebar ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-sidebar li + li {
  border-top: 1px solid var(--line);
}

.article-sidebar a {
  display: block;
  padding: 13px 0;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.article-sidebar a:hover {
  color: var(--green);
}

.article-cta {
  margin-top: 60px;
  padding: clamp(30px, 5vw, 48px);
  border-radius: 8px;
  background: var(--green-dark);
  color: var(--white);
}

.article-cta h2 {
  margin-top: 0;
  color: var(--white);
}

.article-cta p {
  color: rgba(255, 255, 255, 0.78);
}

.related-guides {
  padding: clamp(58px, 8vw, 96px) clamp(22px, 8vw, 104px);
  background: var(--white);
  border-top: 1px solid var(--line);
}

.related-guides h2 {
  margin: 0 0 30px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.related-grid a {
  min-height: 135px;
  padding: 24px;
  display: flex;
  align-items: flex-end;
  color: var(--ink);
  background: var(--green-soft);
  border: 1px solid var(--line);
  font-size: 20px;
  font-weight: 900;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease;
}

.related-grid a:hover {
  transform: translateY(-3px);
  border-color: var(--green);
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 12px;
  }

  .nav a {
    padding: 10px 0;
  }

  .nav-cta {
    padding: 12px 18px !important;
  }

  .hero {
    min-height: 760px;
    background-position: 58% center;
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(247, 249, 247, 0.97) 0%, rgba(247, 249, 247, 0.9) 58%, rgba(247, 249, 247, 0.42) 100%);
  }

  .two-column,
  .guide-head,
  .contact-band,
  .site-footer,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-layout {
    gap: 50px;
  }

  .article-sidebar {
    position: static;
  }

  .feature-grid,
  .knowledge-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .progress-wrap {
    max-width: 360px;
  }
}

@media (max-width: 640px) {
  .brand {
    font-size: 20px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .hero {
    min-height: 720px;
    background-position: 64% center;
  }

  h1 {
    font-size: 50px;
  }

  h2 {
    font-size: 38px;
  }

  p,
  .hero-copy {
    font-size: 19px;
  }

  .feature-grid,
  .knowledge-list,
  .related-grid,
  .choice-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .knowledge-list article {
    min-height: 280px;
  }

  .article-header h1 {
    font-size: clamp(40px, 12vw, 58px);
  }

  .comparison-table {
    min-width: 680px;
  }

  .guide-band {
    padding-left: 0;
    padding-right: 0;
  }

  .guide-shell {
    border-radius: 0;
  }

  .contact-band {
    margin: 0;
    border-radius: 0;
  }

  .footer-links {
    flex-direction: column;
    align-items: flex-start;
  }
}
