/* ═══════════════════════════════════════════════════════════
   HERO OF THE TALK — Design System v2 (cinematic + spotlight)
   ═══════════════════════════════════════════════════════════ */

:root {
  --bg: #0A0E1F;
  --bg-2: #0F1428;
  --sf: rgba(26, 31, 46, 0.95);
  --sf-2: rgba(35, 42, 59, 0.5);
  --bd: rgba(91, 109, 250, 0.15);
  --bd-2: rgba(255, 255, 255, 0.08);

  --ink: #ffffff;
  --ink-2: rgba(255, 255, 255, 0.78);
  --ink-3: rgba(255, 255, 255, 0.52);

  --p1: #A259EC;
  --p2: #5B6DFA;
  --p-light: #a5b4fc;
  --gt: #1D9E75;
  --gt-light: #6ee7b7;
  --rose: #f5a4cb;
  --amber: #fcd34d;

  --gap-1: 8px;
  --gap-2: 12px;
  --gap-3: 16px;
  --gap-4: 24px;
  --gap-5: 32px;
  --gap-6: 48px;
  --gap-7: 64px;
  --gap-8: 96px;

  --r: 16px;
  --rs: 8px;
  --rl: 24px;

  --font: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ── Animated background blobs (cinematic) ─────────────────── */
.bg-blobs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: blob-drift 24s ease-in-out infinite;
}
.blob-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--p1), transparent 70%);
  top: -180px; right: -120px;
  animation-delay: 0s;
}
.blob-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--p2), transparent 70%);
  top: 40%; left: -160px;
  animation-delay: -8s;
}
.blob-3 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, #6366f1, transparent 70%);
  bottom: -120px; right: 30%;
  animation-delay: -16s;
}
@keyframes blob-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(60px, -40px) scale(1.1); }
  66%      { transform: translate(-40px, 50px) scale(0.95); }
}

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 { font-size: clamp(40px, 5.5vw, 64px); }
h2 { font-size: clamp(28px, 3.6vw, 40px); }
h3 { font-size: clamp(20px, 2.4vw, 26px); }
h4 { font-size: 17px; }

.gradient-text {
  background: linear-gradient(90deg, var(--p1), var(--p2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--p-light);
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(91, 109, 250, 0.10);
  border: 1px solid rgba(91, 109, 250, 0.25);
  margin-bottom: 18px;
}
.section-eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--p1);
}

/* ── Container ─────────────────────────────────────────────── */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}
section {
  padding: var(--gap-8) 0;
  position: relative;
}
@media (max-width: 800px) { section { padding: var(--gap-6) 0; } }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 14.5px;
  padding: 14px 24px;
  border-radius: var(--r);
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, var(--p1), var(--p2));
  color: #fff;
  box-shadow: 0 6px 20px rgba(91, 109, 250, 0.35);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(91, 109, 250, 0.5);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.12);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
}
.btn-lg { padding: 17px 32px; font-size: 16px; }

/* ── Header ────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 31, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--bd-2);
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 32px;
}
.site-logo { flex-shrink: 0; display: flex; align-items: center; }
.site-logo img { height: 38px; width: auto; }
.site-nav { display: flex; gap: 32px; align-items: center; }
.site-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  transition: color 0.15s ease;
}
.site-nav a:hover { color: var(--ink); }
.site-header-cta { display: flex; align-items: center; gap: 18px; }

/* CTA-rad efter superkrafterna på startsidan, leder till programmet.html */
.home-bethehero-cta {
  text-align: center;
  margin-top: 48px;
}
.site-login {
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease;
  white-space: nowrap;
}
.site-login:hover { color: #fff; }
@media (max-width: 720px) {
  .site-login { display: none; }
}
.mobile-nav-toggle { display: none; background: none; border: none; color: var(--ink); padding: 8px; }

@media (max-width: 960px) {
  .site-nav { display: none; }
  .mobile-nav-toggle { display: block; }
  .site-header-cta .btn { font-size: 13px; padding: 11px 18px; }
}

/* ── Fade-up animation (staggered) ─────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--delay, 0s);
}
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ── CINEMATIC H1 — text-track + clip-reveal som filmtitel ─── */
.cinematic-h1 {
  perspective: 1000px;
  margin: 0 0 0 0;
}
.cinematic-line-1,
.cinematic-line-2 {
  display: block;
}
/* "Mod att stå upp" — text-track: 3D fade upp, scala, blur clear */
.cinematic-line-1 {
  opacity: 0;
  transform-origin: center;
  animation: cinematicTrack 1.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}
@keyframes cinematicTrack {
  from {
    opacity: 0;
    transform: translateY(60px) scale(0.85) rotateX(-20deg);
    filter: blur(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1) rotateX(0deg);
    filter: blur(0);
  }
}
/* "för varandra" — clip-reveal från vänster till höger + glow */
.cinematic-line-2 {
  opacity: 1;
}
.cinematic-reveal {
  display: inline-block;
  clip-path: inset(0 100% -10% 0);
  animation: cinematicReveal 1.4s cubic-bezier(0.77, 0, 0.175, 1) 1.0s forwards;
  padding-bottom: 4px;
}
@keyframes cinematicReveal {
  from { clip-path: inset(0 100% -10% 0); }
  to   { clip-path: inset(0 0% -10% 0); }
}
/* Cinematic dot: vanligt period-tecken inne i cinematic-reveal.
   Eftersom dotten är en del av samma text-flow och har samma
   gradient-text-styling som "för varandra", klipps den naturligt
   av samma clip-path. Inline-display garanterar att den aldrig
   wrappar till en ny rad. */
.cinematic-dot {
  display: inline;
}

/* ── Arvsfonden badge ──────────────────────────────────────── */
.arvsfonden-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--bd-2);
  margin-bottom: 18px;
}
.arvsfonden-badge img {
  height: 26px;
  width: auto;
  opacity: 0.95;
}

/* ── HERO ──────────────────────────────────────────────────── */
.home-hero {
  padding: 60px 0 var(--gap-8);
  position: relative;
  overflow: hidden;
}
.home-hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.home-hero h1 { margin-bottom: 0; }
.hero-divider {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--p1), var(--p2));
  border-radius: 4px;
  margin: 22px 0;
}
.home-hero-lede {
  font-size: clamp(15px, 1.3vw, 17px);
  color: var(--ink-2);
  line-height: 1.65;
  max-width: 520px;
  margin-bottom: 28px;
}
.home-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}
.home-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--bd-2);
}
.home-hero-stat { display: flex; flex-direction: column; }
.home-hero-stat-number {
  font-size: 30px;
  font-weight: 700;
  background: linear-gradient(90deg, var(--p1), var(--p2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.home-hero-stat-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-3);
  margin-top: 6px;
}

/* Hero image — clip-path reveal från höger till vänster + mjuk hover-glow (ingen tilt) */
.home-hero-image-wrap {
  position: relative;
}
.home-hero-image {
  position: relative;
  border-radius: var(--rl);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: rgba(91, 109, 250, 0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.home-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}
/* Mjuk pulsande glow runt bilden — alltid synlig, intensifieras vid hover */
.hero-image-glow {
  position: absolute;
  inset: -30px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%,
    rgba(162, 89, 236, 0.30), rgba(91, 109, 250, 0.18) 40%, transparent 70%);
  opacity: 0.5;
  z-index: 0;
  filter: blur(40px);
  pointer-events: none;
  transition: opacity 0.4s ease;
  animation: glowPulse 4s ease-in-out infinite;
}
.home-hero-image:hover .hero-image-glow { opacity: 1; }
.home-hero-image:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 80px rgba(91, 109, 250, 0.25);
}
@keyframes glowPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.08); }
}

.clip-reveal {
  animation: clipReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%);
}
@keyframes clipReveal {
  to { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
}

@media (max-width: 800px) {
  .home-hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .home-hero-image { aspect-ratio: 4 / 3; max-height: 420px; }
  .home-hero-stats { gap: 20px; }
  .home-hero-stat-number { font-size: 26px; }
}

/* ── PROBLEMET ─────────────────────────────────────────────── */
.home-problem-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
.home-problem-text h2 { margin-bottom: 18px; }
.home-problem-text p {
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.7;
  margin-bottom: 14px;
}
.home-problem-stats { display: grid; grid-template-columns: 1fr; gap: 14px; }
.stat-card {
  background: var(--sf);
  border: 1px solid var(--bd);
  border-radius: var(--r);
  padding: 22px 24px;
  display: flex;
  gap: 18px;
  align-items: center;
  backdrop-filter: blur(10px);
}
.stat-card-number {
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--p1), var(--p2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  min-width: 90px;
}
.stat-card-text { font-size: 14px; color: var(--ink-2); line-height: 1.5; }

@media (max-width: 800px) {
  .home-problem-grid { grid-template-columns: 1fr; gap: 32px; }
  .stat-card-number { font-size: 36px; min-width: 70px; }
}

/* ── LÖSNINGEN — Spotlight Glow Cards ──────────────────────── */
.home-solution { text-align: center; }
.home-solution-intro { max-width: 720px; margin: 0 auto 56px; }
.home-solution-intro h2 { margin-bottom: 18px; }
.home-solution-intro p { color: var(--ink-2); font-size: 16px; line-height: 1.7; }
.solution-lede {
  font-size: 20px !important;
  color: var(--ink) !important;
  margin-bottom: 14px !important;
  letter-spacing: -0.01em;
}
.solution-lede strong {
  background: linear-gradient(90deg, var(--p1), var(--p2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}
.home-solution-intro em {
  font-style: normal;
  font-weight: 600;
  color: var(--ink);
}

.superpowers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

/* Spotlight glow card — cursor-tracked radial gradient */
.glow-card {
  --x: 50;
  --y: 50;
  --xp: 0.5;
  --yp: 0.5;
  --base: 280;
  --spread: 300;
  --hue: calc(var(--base) + (var(--xp) * var(--spread)));
  --size: 240;
  --spotlight-size: calc(var(--size) * 1px);
  --border-size: 2px;
  --radius: 18px;
  position: relative;
  border-radius: var(--radius);
  background:
    radial-gradient(
      var(--spotlight-size) var(--spotlight-size) at
      calc(var(--x) * 1px)
      calc(var(--y) * 1px),
      hsl(var(--hue) 100% 70% / 0.15),
      transparent 70%
    ),
    rgba(26, 31, 46, 0.7);
  background-attachment: fixed, local;
  border: var(--border-size) solid rgba(255, 255, 255, 0.06);
  padding: 36px 26px 32px;
  text-align: left;
  backdrop-filter: blur(8px);
  overflow: visible;
  transition: transform 0.25s ease;
  min-height: 380px;
}
.glow-card::before,
.glow-card::after {
  pointer-events: none;
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: var(--radius);
  border: var(--border-size) solid transparent;
  background-attachment: fixed;
  background-repeat: no-repeat;
  -webkit-mask: linear-gradient(transparent, transparent), linear-gradient(white, white);
  -webkit-mask-clip: padding-box, border-box;
  -webkit-mask-composite: source-out;
          mask: linear-gradient(transparent, transparent), linear-gradient(white, white);
          mask-clip: padding-box, border-box;
          mask-composite: subtract;
}
.glow-card::before {
  background-image: radial-gradient(
    calc(var(--spotlight-size) * 0.75) calc(var(--spotlight-size) * 0.75) at
    calc(var(--x) * 1px)
    calc(var(--y) * 1px),
    hsl(var(--hue) 100% 60% / 1),
    transparent 80%
  );
  filter: brightness(1.8);
}
.glow-card::after {
  background-image: radial-gradient(
    calc(var(--spotlight-size) * 0.5) calc(var(--spotlight-size) * 0.5) at
    calc(var(--x) * 1px)
    calc(var(--y) * 1px),
    rgba(255, 255, 255, 0.9),
    transparent 80%
  );
}
.glow-card:hover { transform: translateY(-3px); }

.glow-card[data-glow-color="orange"]  { --base: 30;  --spread: 60;  }
.glow-card[data-glow-color="blue"]    { --base: 220; --spread: 60;  }
.glow-card[data-glow-color="red"]     { --base: 0;   --spread: 30;  }
.glow-card[data-glow-color="green"]   { --base: 130; --spread: 60;  }
.glow-card[data-glow-color="purple"]  { --base: 280; --spread: 60;  }

.glow-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}
.glow-inner img {
  width: 100%;
  max-width: 220px;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.5));
  transition: transform 0.3s ease;
}
.glow-card:hover .glow-inner img { transform: scale(1.06); }
.glow-inner h4 {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
}

@media (max-width: 900px) { .superpowers-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .superpowers-grid { grid-template-columns: 1fr; } }

/* ── HERO VIDEO — iframe fyller hero-image container ──────── */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 1;
}

/* ── SKOLOR-MARQUEE — slim, inbäddad i proof-sektionen ─────── */
.proof-schools-marquee {
  text-align: center;
  margin: 28px auto 36px;
  max-width: 720px;
}
.proof-schools-marquee-note {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-3);
  margin-top: 8px;
  letter-spacing: 0.02em;
}
.schools-marquee-mask {
  height: 44px;
  overflow: hidden;
  position: relative;
  width: 100%;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 38%, #000 62%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0, #000 38%, #000 62%, transparent 100%);
}
.schools-track {
  display: flex;
  flex-direction: column;
  animation: schoolsCycle 62s linear infinite;
  will-change: transform;
}
.schools-marquee-mask:hover .schools-track {
  animation-play-state: paused;
}
.school-item {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(14px, 1.6vw, 18px);
  font-weight: 700;
  letter-spacing: -0.01em;
  background: linear-gradient(90deg, var(--p1), var(--p2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
  white-space: nowrap;
  padding: 0 16px;
}
.school-city {
  background: linear-gradient(90deg, var(--ink-2), var(--ink-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 500;
  margin-left: 4px;
}
@keyframes schoolsCycle {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}
.schools-marquee-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-3);
  font-style: italic;
}

/* ── MATERIAL TABS — fliksystem istället för 3 kort ──────── */
.material-tabs {
  margin-top: 40px;
}
.tab-buttons {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--bd-2);
  padding: 0 20px;
}
.tab-btn {
  position: relative;
  background: transparent;
  border: none;
  color: var(--ink-3);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  padding: 14px 20px;
  cursor: pointer;
  transition: color 0.2s ease;
  white-space: nowrap;
}
.tab-btn:hover {
  color: var(--ink-2);
}
.tab-btn.active {
  color: #fff;
  font-weight: 600;
}
.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--p1), var(--p2));
  border-radius: 2px;
}
.tab-panels {
  position: relative;
  min-height: 380px;
}
.tab-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  text-align: left;
  animation: tabFadeIn 0.4s ease-out;
}
.tab-panel[hidden] { display: none; }
@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.tab-image {
  border-radius: var(--rl);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--bd-2);
}
.tab-image img {
  width: 100%;
  height: 100%;
  max-height: 380px;
  object-fit: cover;
  display: block;
}
/* Dual-image variant för affisch + klistermärken (sida vid sida) */
.tab-image-dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: stretch;
}
.tab-image-dual-item {
  border-radius: var(--rl);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--bd-2);
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
}
.tab-image-dual-item img {
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: contain;
  display: block;
}
.tab-text h4 {
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 700;
  margin-bottom: 14px;
  color: #fff;
  letter-spacing: -0.01em;
}
.tab-text > p {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.65;
  margin-bottom: 20px;
}
.tab-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}
.tab-bullets li {
  position: relative;
  padding: 8px 0 8px 26px;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.55;
}
.tab-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--p1), var(--p2));
  opacity: 0.9;
}
.tab-bullets li::after {
  content: '✓';
  position: absolute;
  left: 2px;
  top: 9px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}
.tab-bullets li strong { color: #fff; font-weight: 600; }
.tab-link {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--p-light);
  transition: color 0.15s ease;
}
.tab-link:hover { color: #fff; }

@media (max-width: 800px) {
  .tab-buttons { flex-wrap: wrap; }
  .tab-btn { font-size: 13px; padding: 12px 14px; }
  .tab-panel { grid-template-columns: 1fr; gap: 24px; }
  .tab-image img { max-height: 280px; }
  .tab-image-dual { grid-template-rows: auto auto; }
  .tab-image-dual-item img { max-height: 220px; }
}

/* ── MATERIAL-SUBHEAD inom BE THE HERO-sektion ─────────────── */
.material-subhead {
  text-align: center;
  margin-top: 80px;
  margin-bottom: 36px;
  padding-top: 60px;
  border-top: 1px solid rgba(91, 109, 250, 0.12);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}
.material-subhead h3 {
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
}
.material-subhead p {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.6;
}

/* BE THE HERO-sektion (kombinerad) */
.home-bethehero { text-align: center; }

/* ── BEVIS-sektion (kombinerad stats + testimonials) ───────── */
.home-proof { text-align: center; }
.home-proof .results-grid {
  margin-bottom: 80px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(91, 109, 250, 0.12);
}
.home-proof .shuffle-text h3 {
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 700;
  margin-bottom: 14px;
  color: #fff;
}
.home-proof .shuffle-text {
  text-align: left;
}

/* ── OM OSS slim ───────────────────────────────────────────── */
.home-about-slim {
  padding: 64px 0;
  text-align: center;
}
.about-slim-inner {
  max-width: 760px;
  margin: 0 auto;
}
.about-slim-text {
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.7;
  margin: 16px 0 24px;
}
.about-slim-text strong {
  color: #fff;
  font-weight: 600;
}
.about-slim-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

/* ── RESULTAT — siffror från riktiga skolor ────────────────── */
.home-results {
  text-align: center;
  padding: 64px 0;
  background: linear-gradient(180deg, transparent, rgba(91, 109, 250, 0.05), transparent);
}
.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 920px;
  margin: 0 auto 24px;
  align-items: start;
}
.result-stat {
  text-align: center;
}
.result-stat-number {
  font-size: clamp(64px, 9vw, 100px);
  font-weight: 800;
  background: linear-gradient(135deg, var(--p1), var(--p2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
  filter: drop-shadow(0 8px 24px rgba(162, 89, 236, 0.18));
}
.result-stat-percent {
  font-size: 0.6em;
  font-weight: 700;
}
.result-stat-text {
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.65;
  max-width: 360px;
  margin: 0 auto;
}
.result-stat-text strong {
  color: #fff;
  font-weight: 600;
}
.results-source {
  font-size: 12px;
  color: var(--ink-3);
  font-style: italic;
  margin-top: 16px;
}
@media (max-width: 700px) {
  .results-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ── MATERIALET — produkt-visibility ────────────────────────── */
.home-material { text-align: center; }
.material-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 48px;
}
.material-card {
  background: var(--sf);
  border: 1px solid var(--bd);
  border-radius: var(--r);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  display: block;
  text-decoration: none;
}
.material-card:hover {
  transform: translateY(-5px);
  border-color: rgba(91, 109, 250, 0.5);
  box-shadow: 0 14px 38px rgba(91, 109, 250, 0.22);
}
.material-card-img {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}
.material-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.material-card:hover .material-card-img img { transform: scale(1.05); }
.material-card-text {
  padding: 22px 24px 24px;
  text-align: left;
}
.material-card-text h4 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 6px;
  color: #fff;
}
.material-card-text p {
  font-size: 13.5px;
  color: var(--ink-3);
  line-height: 1.55;
  margin: 0;
}
@media (max-width: 800px) {
  .material-grid { grid-template-columns: 1fr; }
  .material-card-img { height: 200px; }
}

/* ── SÅ FUNGERAR DET ───────────────────────────────────────── */
.home-how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.how-step {
  background: var(--sf);
  border: 1px solid var(--bd);
  border-radius: var(--r);
  padding: 28px 24px;
  text-align: left;
  backdrop-filter: blur(8px);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  cursor: default;
}
.how-step:hover {
  transform: translateY(-6px);
  border-color: rgba(162, 89, 236, 0.5);
  background: rgba(35, 42, 59, 0.7);
  box-shadow: 0 14px 40px rgba(91, 109, 250, 0.18), 0 0 0 1px rgba(162, 89, 236, 0.25);
}
.how-step:hover .how-step-num {
  transform: scale(1.06);
  filter: drop-shadow(0 4px 14px rgba(162, 89, 236, 0.3));
}
.how-step-num {
  transition: transform 0.3s ease, filter 0.3s ease;
}
.how-step-num {
  font-size: 56px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--p1), var(--p2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 12px;
  display: block;
}
.how-step h4 { font-size: 17px; margin-bottom: 6px; }
.how-step p { font-size: 13.5px; color: var(--ink-3); line-height: 1.55; }
.home-how-cta { text-align: center; margin-top: 40px; }

@media (max-width: 800px) { .home-how-grid { grid-template-columns: 1fr; } }

/* ── SHUFFLE TESTIMONIALS ──────────────────────────────────── */
.shuffle-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
  min-height: 480px;
}
.shuffle-text h2 { margin-bottom: 16px; }
.shuffle-text p { color: var(--ink-2); font-size: 16px; line-height: 1.7; margin-bottom: 22px; }
.shuffle-cta {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--p-light);
  transition: color 0.15s ease;
}
.shuffle-cta:hover { color: #fff; }

.shuffle-stack {
  position: relative;
  height: 440px;
  width: 380px;
  margin: 0 auto;
}
.shuffle-card {
  position: absolute;
  inset: 0;
  width: 380px;
  height: 440px;
  padding: 36px 30px;
  border-radius: 22px;
  background: rgba(26, 31, 46, 0.6);
  border: 2px solid rgba(91, 109, 250, 0.25);
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  user-select: none;
  -webkit-user-select: none;
  will-change: transform;
}
.shuffle-card[data-position="front"]  { transform: translate(0%, 0)    rotate(-6deg); z-index: 4; cursor: grab; }
.shuffle-card[data-position="middle"] { transform: translate(20%, 0)   rotate(0deg);  z-index: 3; }
.shuffle-card[data-position="back"]   { transform: translate(40%, 0)   rotate(6deg);  z-index: 2; }
.shuffle-card[data-position="hidden"] { transform: translate(60%, 0)   rotate(12deg); z-index: 1; opacity: 0; }
.shuffle-card[data-position="front"].dragging { cursor: grabbing; transition: none; }
.shuffle-stars {
  color: var(--amber);
  font-size: 18px;
  letter-spacing: 3px;
}
.shuffle-quote {
  font-size: 17px;
  line-height: 1.55;
  font-style: italic;
  color: var(--ink);
  flex: 1;
  display: flex;
  align-items: center;
}
.shuffle-author {
  font-size: 13px;
  color: var(--p-light);
  font-weight: 600;
  letter-spacing: 0.01em;
}

@media (max-width: 900px) {
  .shuffle-layout { grid-template-columns: 1fr; gap: 36px; }
  .shuffle-stack { width: 320px; height: 400px; }
  .shuffle-card { width: 320px; height: 400px; padding: 28px 24px; }
  .shuffle-quote { font-size: 15px; }
}

/* ── OM OSS ────────────────────────────────────────────────── */
.home-about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.home-about-text h2 { margin-bottom: 18px; }
.home-about-text p { font-size: 16px; color: var(--ink-2); line-height: 1.7; margin-bottom: 14px; }
.home-about-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 24px; }
.about-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(91, 109, 250, 0.08);
  border: 1px solid rgba(91, 109, 250, 0.25);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
}
.about-badge::before { content: '✓'; color: var(--gt-light); font-weight: 700; }
.home-about-visual {
  background: var(--sf);
  border: 1px solid var(--bd);
  border-radius: var(--rl);
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  backdrop-filter: blur(10px);
}
.about-stat {
  background: rgba(91, 109, 250, 0.06);
  border: 1px solid rgba(91, 109, 250, 0.18);
  border-radius: 12px;
  padding: 22px 18px;
  text-align: center;
}
.about-stat-number {
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--p1), var(--p2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 6px;
}
.about-stat-label { font-size: 12px; color: var(--ink-3); font-weight: 500; }

@media (max-width: 800px) { .home-about-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ── CTA STRIPE ────────────────────────────────────────────── */
.home-cta-stripe {
  background: linear-gradient(135deg, rgba(162, 89, 236, 0.18), rgba(91, 109, 250, 0.10));
  border-top: 1px solid rgba(91, 109, 250, 0.25);
  border-bottom: 1px solid rgba(91, 109, 250, 0.25);
  text-align: center;
  padding: var(--gap-7) 0;
  position: relative;
  overflow: hidden;
}
.home-cta-stripe::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(162, 89, 236, 0.18), transparent 70%);
  pointer-events: none;
}
.home-cta-stripe h2 { margin-bottom: 12px; }
.home-cta-stripe p {
  color: var(--ink-2);
  font-size: 16px;
  margin-bottom: 28px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

/* ── PARTNERS marquee ──────────────────────────────────────── */
.partners-section {
  padding: var(--gap-6) 0;
  background: rgba(255, 255, 255, 0.025);
  border-top: 1px solid var(--bd-2);
  border-bottom: 1px solid var(--bd-2);
}
.partners-label {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 28px;
}
.partners-marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
}
.partners-track {
  display: flex;
  align-items: center;
  gap: 48px;
  width: max-content;
  animation: marquee 35s linear infinite;
}
.partners-marquee:hover .partners-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
/* Uniform "ruta" per logga så alla får exakt samma plats att leva i —
   object-fit: contain gör att smala/breda/höga loggor alla skalar in
   snyggt utan att förvränga. */
.partner-logo {
  flex-shrink: 0;
  width: 180px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}
.partner-logo:hover { opacity: 1; }
.partner-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
}

/* ── FOOTER ────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-2);
  padding: var(--gap-7) 0 var(--gap-4);
  border-top: 1px solid var(--bd-2);
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-logo { height: 44px; margin-bottom: 18px; }
.footer-brand p {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.65;
  margin-bottom: 18px;
  max-width: 320px;
}
.footer-arvsfonden {
  height: 36px;
  width: auto;
  margin-bottom: 22px;
  opacity: 0.85;
}
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}
.footer-social a:hover { background: rgba(91, 109, 250, 0.2); }
.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  font-size: 14px;
  color: var(--ink-2);
  transition: color 0.15s ease;
}
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  border-top: 1px solid var(--bd-2);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
  color: var(--ink-3);
}

@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
