/* ---------- Bas ---------- */
*, *::before, *::after { box-sizing: border-box; }
:root {
  --bg: #ffffff;
  --text: #222;
  --muted: #555;
  --brand: #1a5fa8;       /* byt till AMABs färg */
  --brand-dark: #144a85;
  --light: #f1f4f8;
  --max: 1100px;
  --gap: 24px;
}
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .6em; }
h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); }
h2 span { color: var(--brand); }
h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); }
h4 { font-size: 1.05rem; font-weight: 600; color: var(--muted); }
p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--brand); color: #fff; padding: 8px 12px; z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- Header och navigation ---------- */
.site-header { background: var(--light); border-bottom: 1px solid #dde3ea; }
.header-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px 0;
}
.logo img { max-height: 64px; width: auto; }

.nav-toggle {
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 16px;
  font: inherit; font-weight: 600;
  color: #fff; background: var(--brand);
  border: 0; border-radius: 4px; cursor: pointer;
}

.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: block; padding: 12px 8px; min-height: 44px;
  text-decoration: none; color: var(--text); font-weight: 600;
}
.main-nav a:hover,
.main-nav a.current { color: var(--brand); }

/* Mobil: menyn är dold tills knappen trycks */
.site-header .main-nav { display: none; padding-bottom: 8px; }
.site-header .main-nav.open { display: block; }

.main-banner { display: block; padding-bottom: 16px; }
.main-banner img { width: 100%; }

/* ---------- Innehåll ---------- */
main { padding: 32px 0; }
.row { display: grid; gap: var(--gap); margin-bottom: 40px; }
.row:last-child { margin-bottom: 0; }

.intro { display: grid; gap: 16px; }
.intro img { width: 100%; }

.feature-lists { display: grid; gap: 0 var(--gap); margin-bottom: 16px; }
.list1 { list-style: none; margin: 0 0 8px; padding: 0; }
.list1 li { padding: 6px 0 6px 28px; position: relative; }
.list1 li::before {
  content: "✓"; position: absolute; left: 0; top: 6px;
  color: var(--brand); font-weight: 700;
}

.button {
  display: inline-block; min-height: 44px; padding: 10px 24px;
  background: var(--brand); color: #fff; text-decoration: none;
  font-weight: 600; border-radius: 4px;
}
.button:hover { background: var(--brand-dark); color: #fff; }

.newsletter { margin-top: 24px; }

.benefits {
  background: var(--light); padding: 20px; border-radius: 6px;
}
.benefits p { margin-bottom: 1em; }
.benefits p:last-child { margin-bottom: 0; }
.benefits strong { color: var(--brand); }

/* ---------- Footer ---------- */
.site-footer {
  background: #20262d; color: #cfd6de;
  padding: 24px 0; font-size: .95rem;
}
.site-footer ul { list-style: none; margin: 0 0 16px; padding: 0; }
.site-footer a { display: block; padding: 8px 0; color: #cfd6de; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.copy { margin: 0; }

:focus-visible { outline: 3px solid #f5a623; outline-offset: 2px; }

/* ---------- Surfplatta (≥ 700 px) ---------- */
@media (min-width: 700px) {
  .intro { grid-template-columns: 220px 1fr; align-items: start; }
  .feature-lists { grid-template-columns: 1fr 1fr; }
  .benefits { padding: 24px; }
  .site-footer ul { display: flex; flex-wrap: wrap; gap: 0 20px; }
}

/* ---------- Desktop (≥ 900 px) ---------- */
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .header-top { padding: 16px 0 8px; }

  .site-header .main-nav { display: block; padding-bottom: 0; }
  .main-nav ul { display: flex; gap: 8px; }
  .main-nav a { padding: 10px 14px; }
  .header-top { flex-wrap: nowrap; }

  /* Rad 1: intro (2/3) + banner (1/3) */
  .row-top { grid-template-columns: 2fr 1fr; }
  /* Rad 2: funktioner (2/3) + fördelar (1/3) */
  .row-bottom { grid-template-columns: 2fr 1fr; }

  .site-footer .container {
    display: flex; justify-content: space-between; align-items: center; gap: 24px;
  }
  .site-footer ul { margin: 0; }
  .site-footer a { padding: 4px 0; }
  .site-footer .copy { order: -1; }
}

@media (prefers-reduced-motion: no-preference) {
  .button, a { transition: background-color .15s, color .15s; }
}

/* ---------- Undersidor ---------- */
.row-two { grid-template-columns: 1fr; }
.page-title { margin-bottom: .3em; }
@media (min-width: 700px) {
  .row-two { grid-template-columns: 1fr 1fr; }
}

/* ---------- Produkter (index-2) ---------- */
.img-box { display: grid; gap: 12px; margin-bottom: 32px; }
.img-box img { width: 100%; max-width: 260px; }
.img-box h4 { margin-bottom: .4em; }
.img-box p { margin: 0 0 .6em; }

.options { border-collapse: separate; border-spacing: 0 8px; width: 100%; }
.options th { text-align: left; vertical-align: top; padding-right: 16px; white-space: nowrap; }
.options td { vertical-align: top; }

.modules { background: var(--light); padding: 20px; border-radius: 6px; }
.modules ul { list-style: none; margin: 0; padding: 0; columns: 1; column-gap: 24px; }
.modules li { padding: 4px 0 4px 20px; position: relative; break-inside: avoid; }
.modules li::before { content: "•"; position: absolute; left: 4px; color: var(--brand); }

@media (min-width: 600px) {
  .img-box { grid-template-columns: 200px 1fr; align-items: start; }
  .img-box img { max-width: 100%; }
  .modules ul { columns: 2; }
}
@media (min-width: 900px) {
  .modules ul { columns: 1; }
}

/* ---------- FAQ (index-4) ---------- */
.faq { max-width: 760px; margin: 0; }
.faq dt { font-weight: 700; font-size: 1.1rem; margin-top: 1.5em; color: var(--brand); }
.faq dt:first-child { margin-top: 0; }
.faq dd { margin: .4em 0 0; }
.faq dd p { margin: 0 0 .6em; }

/* ---------- Kontakt (index-5) ---------- */
.address { font-style: normal; margin: 0; }
.address p { margin: 0 0 .8em; }
.address dl { margin: 0; }
.address dt { float: left; clear: left; width: 4.5rem; font-weight: 700; }
.address dd { margin: 0 0 .4em 4.5rem; overflow-wrap: anywhere; }
