@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #f8f7f2;
  --ink: #152237;
  --muted: #46576d;
  --surface: #ffffff;
  --surface-soft: #f3f6f9;
  --line: #d7dee8;
  --accent: #f15f3c;
  --accent-dark: #b63f26;
  --calm: #2f6f88;
  --safe: #1f7a4f;
  --max: 1120px;
  --radius: 18px;
  --shadow: 0 14px 30px rgba(21, 34, 55, 0.08);
  --font: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --font-display: "Fraunces", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.65;
  background:
    radial-gradient(
      1000px 640px at 100% -6%,
      rgba(241, 95, 60, 0.18),
      transparent 60%
    ),
    radial-gradient(
      900px 560px at -8% 22%,
      rgba(47, 111, 136, 0.16),
      transparent 62%
    ),
    linear-gradient(180deg, #fdfcf9 0%, var(--bg) 80%);
}

a {
  color: inherit;
}

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

.header {
  position: sticky;
  top: 0;
  z-index: 15;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  background: rgba(252, 251, 247, 0.92);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
}

.brand {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--accent), #f9a25b);
  box-shadow: 0 0 0 4px rgba(241, 95, 60, 0.15);
}

.brand__text {
  font-weight: 800;
  letter-spacing: 0.2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__link {
  text-decoration: none;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all 0.18s ease;
}

.nav__link:hover,
.nav__link:focus-visible {
  color: var(--ink);
  border-color: #ccd7e6;
  background: #eff4f8;
}

.nav__link.is-active {
  color: var(--ink);
  border-color: #c7d6e8;
  background: linear-gradient(140deg, #eef5fb, #f6f9fc);
}

.nav__toggle {
  display: none;
}

.hero {
  padding: 54px 0 12px;
  animation: float-in 0.65s ease both;
}

.hero--home {
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero__layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
  align-items: center;
  padding: clamp(24px, 4vw, 42px);
  background:
    linear-gradient(
      120deg,
      rgba(255, 255, 255, 0.95),
      rgba(255, 255, 255, 0.85)
    ),
    linear-gradient(180deg, #f8fbff 0%, #fdfbf7 100%);
}

.hero__art {
  border: 1px solid #d8e2ee;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(180deg, #d9e6f0, #f6f8fa);
}

.hero__art img {
  display: block;
  width: 100%;
  height: auto;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 999px;
  border: 1px solid #cfd9e5;
  color: #334760;
  background: linear-gradient(140deg, #edf4fc, #f5f8fb);
  padding: 7px 12px;
}

h1 {
  margin: 12px 0 12px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.2px;
  line-height: 1.04;
  font-size: clamp(34px, 4.8vw, 58px);
}

.lead {
  margin: 0;
  color: #26384d;
  font-size: clamp(17px, 2.2vw, 21px);
  max-width: 68ch;
}

.kicker {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
}

.cta {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 15px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-weight: 700;
  transition: 0.16s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(21, 34, 55, 0.14);
}

.btn.primary {
  color: #fff;
  border-color: var(--accent-dark);
  background: linear-gradient(135deg, var(--accent), #ea8453);
}

.btn.primary:hover,
.btn.primary:focus-visible {
  background: linear-gradient(135deg, #dd5030, #df7443);
}

.btn.ghost {
  color: #1d4861;
  border-color: #bcd3e2;
  background: linear-gradient(135deg, #e3f0f8, #edf4fa);
}

.btn.safe {
  color: #145838;
  border-color: #98d2b6;
  background: linear-gradient(135deg, #d8f4e7, #e9f8ef);
}

.trygg-fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 30;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid #98d2b6;
  background: linear-gradient(135deg, #d8f4e7, #e9f8ef);
  color: #145838;
  font-weight: 800;
  font-size: 14px;
  line-height: 1;
  padding: 12px 16px;
  box-shadow: 0 10px 24px rgba(21, 34, 55, 0.2);
}

.trygg-fab:hover,
.trygg-fab:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(21, 34, 55, 0.24);
}

.section {
  padding: 28px 0;
}

.grid {
  display: grid;
  gap: 16px;
}

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

.grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.stat {
  background: linear-gradient(160deg, #fff, #f7fafc);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
}

.stat strong {
  display: block;
  font-size: clamp(20px, 3vw, 30px);
  line-height: 1;
  color: #1d304a;
}

.stat span {
  display: block;
  margin-top: 7px;
  font-size: 13px;
  color: var(--muted);
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, var(--surface-soft));
  box-shadow: var(--shadow);
  padding: 20px;
  animation: float-in 0.7s ease both;
}

.card h2 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.2;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.list {
  margin: 10px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.list li + li {
  margin-top: 6px;
}

.hr {
  height: 1px;
  margin: 16px 0;
  background: linear-gradient(90deg, #cad7e5, #ebf0f6);
}

.notice {
  margin-top: 14px;
  border-left: 4px solid var(--safe);
  border-radius: 12px;
  padding: 11px 12px;
  color: #1f5439;
  background: linear-gradient(135deg, #e2f6eb, #edf8f1);
}

.faq {
  margin: 0;
  padding: 0;
  list-style: none;
}

.faq li {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, #fff, #f6f9fc);
}

.faq button {
  width: 100%;
  text-align: left;
  border: 0;
  padding: 14px;
  background: transparent;
  color: var(--ink);
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}

.faq .answer {
  display: none;
  padding: 0 14px 14px;
  color: var(--muted);
}

.faq li.is-open .answer {
  display: block;
}

.resource-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.resource-link {
  font-size: 14px;
  text-decoration: none;
  border: 1px solid #cdd8e5;
  border-radius: 999px;
  padding: 7px 12px;
  color: #24445d;
  background: #edf3f9;
}

.resource-link:hover,
.resource-link:focus-visible {
  background: #e4edf7;
}

.muted {
  color: var(--muted);
}

.tiny {
  font-size: 12px;
}

.footer {
  margin-top: 24px;
  padding: 30px 0 42px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #eef3f8);
}

.footer__grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 2fr 1fr 1fr;
}

.footer a {
  color: var(--muted);
  text-decoration: none;
}

.footer a:hover,
.footer a:focus-visible {
  color: #1f3f59;
  text-decoration: underline;
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  .hero__layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 860px) {
  .grid.cols-2,
  .grid.cols-3,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .nav {
    display: none;
  }

  .nav.is-open {
    display: flex;
    position: absolute;
    top: 60px;
    right: 18px;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 10px;
    background: #f8fbff;
    box-shadow: var(--shadow);
  }

  .nav__toggle {
    display: inline-flex;
    border-radius: 11px;
    border: 1px solid var(--line);
    padding: 8px 10px;
    background: linear-gradient(135deg, #edf3fa, #f6f8fb);
    color: var(--ink);
  }
}

@media (max-width: 640px) {
  .trygg-fab {
    right: 12px;
    left: 12px;
    bottom: 12px;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .stats {
    grid-template-columns: 1fr;
  }

  .header,
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }

  h1 {
    font-size: clamp(32px, 11vw, 44px);
  }
}
