:root {
  --alina: #00a3e0;
  --dark: #1a1a1a;
  --darker: #0f0f0f;
  --refurb: #77aa58;
  --lighter: #2a2a2a;
  --service: #ed8b00;

  --ink: #0f172a;
  --ink-weak: #64748b;
  --bg: #ffffff;
  --card: #ffffff;
  --radius: 16px;
  --radius-sm: 12px;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1),
    0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1),
    0 8px 10px -6px rgb(0 0 0 / 0.1);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

body {
  margin: 0;
  color: var(--ink);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial;
  display: flex;
  justify-content: center;
  min-height: 100vh;
}

.wrap {
  width: 100%;
  max-width: 440px;
  padding: 20px 16px 40px;
}

/* === HERO: Modern glassmorphism === */
.hero {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  height: 240px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: grid;
  align-content: end;
  isolation: isolate;
  box-shadow: var(--shadow-xl);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/img/kh.png") center/cover no-repeat;
  z-index: -2;
}

.hero.nrk::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/img/nrk.jpg") center/cover no-repeat;
  z-index: -2;
}

.hero.enk::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/img/enk.jpg") center/cover no-repeat;
  z-index: -2;
}


.hero.osd::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/img/osd.png") center/cover no-repeat;
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.65) 30%,
    rgba(0, 0, 0, 0.4) 60%,
    rgba(0, 0, 0, 0.15) 85%,
    transparent 100%
  );
  z-index: -1;
}

.hero-content {
  position: relative;
  padding: 24px 20px 28px;
  color: #fff;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
}

.title {
  margin: 8px 0 4px;
  font-weight: 800;
  letter-spacing: -0.5px;
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  line-height: 1.1;
  background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  margin: 0;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
}

/* =============================
         Modern Button Stack
      ==============================*/
.stack {
  margin-top: 24px;
  display: grid;
  gap: 16px;
}

/* =============================
         Ultra-modern cards with glassmorphism
      ==============================*/
.card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-radius: var(--radius);
  padding: 18px 20px;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.5),
    transparent
  );
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.card:hover::before {
  transform: translateX(100%);
}

.card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-xl);
  border-color: rgba(255, 255, 255, 0.5);
}

.card:active {
  transform: translateY(-2px) scale(1.01);
  transition: all 0.1s ease;
}

.card:focus-visible {
  outline: 3px solid rgba(0, 163, 224, 0.4);
  outline-offset: 2px;
}

.icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.card:hover .icon {
  transform: scale(1.2) rotate(5deg);
}

.icon img {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.text {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.2px;
  position: relative;
}

/* =============================
         Premium primary buttons
      ==============================*/
.primary--kampanjer {
  background: linear-gradient(135deg, var(--alina) 0%, #0284c7 100%);
  color: #fff;
  border: 1px solid transparent;
  box-shadow: 0 8px 32px rgba(0, 163, 224, 0.3);
}

.primary--renoverat {
  background: linear-gradient(135deg, var(--refurb) 0%, #65a30d 100%);
  color: #fff;
  border: 1px solid transparent;
  box-shadow: 0 8px 32px rgba(119, 170, 88, 0.3);
}

.primary--service {
  background: linear-gradient(135deg, var(--service) 0%, #ea580c 100%);
  color: #fff;
  border: 1px solid transparent;
  box-shadow: 0 8px 32px rgba(237, 139, 0, 0.3);
}

.primary--kampanjer .icon,
.primary--renoverat .icon,
.primary--service .icon {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.primary--kampanjer:hover {
  background: linear-gradient(135deg, #0284c7 0%, var(--alina) 100%);
  box-shadow: 0 12px 40px rgba(0, 163, 224, 0.4);
}

.primary--renoverat:hover {
  background: linear-gradient(135deg, #65a30d 0%, var(--refurb) 100%);
  box-shadow: 0 12px 40px rgba(119, 170, 88, 0.4);
}

.primary--service:hover {
  background: linear-gradient(135deg, #ea580c 0%, var(--service) 100%);
  box-shadow: 0 12px 40px rgba(237, 139, 0, 0.4);
}

/* =============================
         Modern social buttons
      ==============================*/
.social {
  background: linear-gradient(135deg, var(--dark) 0%, var(--darker) 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(26, 26, 26, 0.3);
}

.social--alt {
  background: linear-gradient(135deg, var(--lighter) 0%, var(--dark) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(42, 42, 42, 0.3);
}

.social:hover {
  background: linear-gradient(135deg, #374151 0%, var(--dark) 100%);
  box-shadow: 0 12px 40px rgba(26, 26, 26, 0.4);
}

.social.social--alt:hover {
  background: linear-gradient(135deg, #4b5563 0%, var(--lighter) 100%);
  box-shadow: 0 12px 40px rgba(42, 42, 42, 0.4);
}

/* =============================
         Elegant divider
      ==============================*/
.divider {
  margin: 32px 0;
  border: none;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(203, 213, 225, 0.5) 20%,
    var(--border-strong) 50%,
    rgba(203, 213, 225, 0.5) 80%,
    transparent 100%
  );
  position: relative;
  overflow: visible;
}

.divider::after {
  content: "✦";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg);
  color: var(--ink-weak);
  padding: 0 16px;
  font-size: 14px;
  opacity: 0.7;
}

.campaign {
  margin-top: 1.5rem;
  padding: 0;
}

.campaign img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.campaign img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-xl);
}

.store-card {
  margin-top: 1.5rem;
}

/* =============================
         Responsive improvements
      ==============================*/
@media (max-width: 480px) {
  .wrap {
    padding: 16px 12px 32px;
  }

  .hero {
    height: 200px;
    border-radius: 20px;
  }

  .card {
    padding: 16px 18px;
    gap: 14px;
  }

  .icon {
    width: 28px;
    height: 28px;
    font-size: 1.3rem;
  }

  .text {
    font-size: 1.05rem;
  }
}

/* =============================
         Reduced motion
      ==============================*/
@media (prefers-reduced-motion: reduce) {
  .card,
  .card::before,
  .icon,
  .campaign img {
    transition: none;
  }

  .card:hover {
    transform: none;
  }

  .card:hover .icon {
    transform: none;
  }
}

/* =============================
         Dark mode enhancements
      ==============================*/
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f172a;
    --card: rgba(15, 23, 42, 0.8);
    --ink: #f1f5f9;
    --ink-weak: #94a3b8;
    --border: #334155;
    --border-strong: #475569;
  }

  body {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  }

  .hero {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-color: rgba(255, 255, 255, 0.1);
  }

  .hero::after {
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.9) 0%,
      rgba(0, 0, 0, 0.7) 30%,
      rgba(0, 0, 0, 0.5) 60%,
      rgba(0, 0, 0, 0.2) 85%,
      transparent 100%
    );
  }

  .card {
    background: rgba(15, 23, 42, 0.7);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3),
      0 2px 4px -2px rgba(0, 0, 0, 0.3);
  }

  .card:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(255, 255, 255, 0.2);
  }

  .divider::after {
    background: var(--bg);
  }
}
