:root {
  --bg: #eef4f7;
  --surface: #ffffff;
  --text: #11212e;
  --muted: #445a67;
  --line: #c9d7df;
  --hero-a: #0d2d3d;
  --hero-b: #1b4f66;
  --cta: #ffd166;
  --cta-hover: #f2bc42;
  --ghost: rgba(255, 255, 255, 0.2);
  --radius: 14px;
  --shadow: 0 14px 40px rgba(17, 33, 46, 0.14);
  --container: 1040px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

.container {
  width: min(100%, var(--container));
  margin: 0 auto;
  padding: 0 20px;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #f7fcff;
  background:
    radial-gradient(
      circle at 15% 20%,
      rgba(255, 209, 102, 0.28),
      transparent 38%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(110, 213, 255, 0.22),
      transparent 42%
    ),
    linear-gradient(130deg, var(--hero-a), var(--hero-b) 55%, #3076a0);
  padding: 90px 0 74px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -18% -70px;
  height: 180px;
  background: var(--bg);
  border-radius: 100% 100% 0 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  animation: rise-in 600ms ease-out;
}

.hero-topbar {
  margin-bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.hero-topbar p {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(247, 252, 255, 0.86);
}

.btn.header-trygg {
  padding: 10px 18px;
  font-size: 0.94rem;
}

.eyebrow {
  margin: 0 0 12px;
  letter-spacing: 0.05em;
  font-size: 0.88rem;
  text-transform: uppercase;
  color: rgba(247, 252, 255, 0.85);
}

h1 {
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1.1;
}

.lead {
  margin: 18px 0 26px;
  font-size: 1.15rem;
  color: rgba(247, 252, 255, 0.94);
  max-width: 70ch;
}

h2,
h3 {
  line-height: 1.25;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-block;
  background: var(--cta);
  color: #17211f;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 24px;
  transition:
    transform 0.18s ease,
    background-color 0.2s ease;
}

.btn:hover {
  background: var(--cta-hover);
  transform: translateY(-1px);
}

.btn.ghost {
  background: #1f6f8f;
  color: #f7fcff;
  border: 1px solid #8dd4f4;
}

.btn.ghost:hover {
  background: #2b86aa;
}

.section {
  padding: 34px 0 74px;
}

.section.alt {
  background: linear-gradient(180deg, #e6f0f6, #eef4f7);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 78ch;
  margin-bottom: 20px;
}

.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 3.8vw, 2rem);
}

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

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.info-grid.two-col {
  align-items: start;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

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

.news-card {
  background: #ffffffd9;
  border: 1px solid #bfd0da;
  border-radius: 12px;
  padding: 18px;
}

.news-card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

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

.faq {
  padding-top: 6px;
}

.faq h2 {
  margin: 0 0 14px;
  font-size: clamp(1.45rem, 3.4vw, 1.95rem);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.faq-item {
  background: #f8fbfd;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}

.faq-item h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
}

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

.resources {
  padding-top: 14px;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

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

.resources-subhead {
  margin-top: 26px;
}

.resource-card {
  background: #f9fcff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
}

.resource-card h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

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

.resource-card ul {
  margin: 0;
  padding-left: 18px;
}

.resource-card li {
  margin: 0 0 8px;
}

.resource-card a {
  color: #0c5675;
  text-decoration: none;
}

.resource-card a:hover {
  text-decoration: underline;
}

.resource-card--linked {
  position: relative;
  cursor: pointer;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}

.resource-card--linked:hover {
  border-color: #0c5675;
  box-shadow: 0 2px 10px rgba(12, 86, 117, 0.1);
}

.resource-card--linked h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
}

.trygg-cta {
  margin-top: 16px;
  background: #eef6ff;
  border: 1px solid #c8dff8;
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.trygg-cta p {
  margin: 0;
  color: #284050;
  font-weight: 600;
}

.btn.trygg-btn {
  background: #0b66ff;
  color: #ffffff;
  border: 1px solid #2d7cff;
}

.btn.trygg-btn:hover {
  background: #0055df;
}

.footer {
  border-top: 1px solid var(--line);
  background: #dce9f0;
}

.footer-inner {
  padding: 18px 20px 24px;
  display: grid;
  gap: 6px;
}

.footer p {
  margin: 0;
  color: #304653;
}

.footer-note {
  max-width: 74ch;
  font-size: 0.96rem;
}

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

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

@media (max-width: 840px) {
  .hero {
    padding: 72px 0 60px;
  }

  .news-grid,
  .resource-grid,
  .faq-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .lead {
    font-size: 1.04rem;
  }
}
