/* ==========================================================================
   TADDE LEGOIDO DINH - MASTER CSS (Ref: Bogdan Falin / QClay "Data Analytics Website")
   ========================================================================== */

:root {
  --bg:          #0D070B;   /* nästan svart med plommonton */
  --bg-2:        #1A0B16;   /* djup plommon */
  --plum:        #3A1230;   /* magenta-vinjett/glöd */
  --surface:     rgba(255, 220, 240, 0.05);
  --surface-2:   rgba(255, 220, 240, 0.09);
  --border:      rgba(240, 170, 215, 0.14);
  --text:        #FFFFFF;
  --muted:       #C4B2BE;   /* rosagrå brödtext */
  --accent:      #D93BB4;   /* magenta – glow, indikatorer, badges, bågen */
  --accent-btn:  #C42FA3;   /* magenta för knappar med vit text (kontrast 4.9:1) */
  --accent-2:    #F2A9D2;   /* ljusrosa – ljusstråle, bågens topp, highlights */
  --accent-mid:  #C04A8E;   /* bågens mittband */
  --accent-deep: #6A1B52;   /* bågens innerband, skuggor */
  --focus:       #F2A9D2;

  --font-main: "Urbanist", "Gilroy", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --container-max: 1200px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--text);
}

body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 1.0625rem;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Accessibility Focus & Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--accent-btn);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  z-index: 10000;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 20px;
  outline: 2px solid var(--focus);
}

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

@media (max-width: 640px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-main);
  color: var(--text);
  font-weight: 500;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.6rem, 6.4vw, 5.6rem);
  letter-spacing: -0.02em;
  line-height: 1.08;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.015em;
}

h3 {
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}

p {
  color: var(--muted);
  line-height: 1.6;
  font-size: 1.0625rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-2);
  margin-bottom: 12px;
}

/* Glass Card with Solid Dark Fallback for non-supporting browsers */
.glass-card {
  background: #180D16; /* Mörkare solid fallback */
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

@supports (backdrop-filter: blur(14px)) or (-webkit-backdrop-filter: blur(14px)) {
  .glass-card {
    background: var(--surface);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 100%);
  pointer-events: none;
}

.glass-card:hover {
  border-color: rgba(240, 170, 215, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(217, 59, 180, 0.1);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-main);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
}

/* Primary CTA: Solid --accent-btn (#C42FA3) with white text */
.btn-primary {
  background: var(--accent-btn);
  color: #FFFFFF;
  font-size: 0.95rem;
  padding: 10px 16px;
  border-radius: 10px;
  box-shadow: 0 0 24px rgba(217, 59, 180, 0.45);
}

.btn-primary:hover {
  background: #D93BB4;
  box-shadow: 0 0 32px rgba(217, 59, 180, 0.7);
  transform: translateY(-1px);
}

/* Hero Pill Buttons */
.btn-hero {
  background: #FFFFFF;
  color: #1A0B16;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  text-decoration: none;
}

.btn-hero:hover {
  background: #F8EDF5;
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  font-size: 0.95rem;
  padding: 9px 18px;
  border-radius: 10px;
}

.btn-secondary:hover {
  border-color: var(--accent-2);
  color: var(--accent-2);
  background: rgba(255, 220, 240, 0.05);
}

/* Chips & Badges */
.chip {
  display: inline-flex;
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.85rem;
  padding: 5px 14px;
  border-radius: 9999px;
  font-weight: 400;
}

.badge-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
}

/* ==========================================================================
   HEADER (Three zones, center pill, transparent to sticky)
   ========================================================================== */
.site-header {
  position: absolute;
  top: 24px;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.site-header.is-sticky {
  position: fixed;
  top: 0;
  background: #140812;
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
}

@supports (backdrop-filter: blur(16px)) or (-webkit-backdrop-filter: blur(16px)) {
  .site-header.is-sticky {
    background: rgba(13, 7, 11, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 1.25rem;
}

.logo-name {
  letter-spacing: -0.01em;
}

/* Center Pill Nav */
.center-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-pill-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  background: #1A0B16;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 6px;
}

@supports (backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px)) {
  .nav-pill-list {
    background: rgba(255, 220, 240, 0.07);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
}

.nav-pill-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-pill-link:hover {
  background: rgba(255, 220, 240, 0.12);
}

.nav-pill-link.active {
  background: rgba(255, 220, 240, 0.16);
}

.active-dot {
  display: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.nav-pill-link.active .active-dot {
  display: inline-block;
}


/* Dropdown */
.has-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: #1A0B16;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  list-style: none;
  min-width: 200px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu li a {
  display: block;
  padding: 10px 14px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  border-radius: 8px;
  transition: all 0.15s ease;
}

.dropdown-menu li a:hover {
  color: #fff;
  background: rgba(255, 220, 240, 0.08);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

.mobile-drawer {
  display: none;
}

/* ==========================================================================
   HERO SECTION (Exact Bogdan Falin / QClay composition)
   ========================================================================== */
.hero-stage {
  position: relative;
  min-height: 100vh;
  max-height: 1100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: clamp(140px, 18vh, 180px);
  overflow: hidden;
  background: var(--bg);
}

/* Ambient Radial Plum Glow in upper center (förstärkt med --plum och --accent-deep) */
.hero-stage::before {
  content: '';
  position: absolute;
  top: -15%;
  left: 50%;
  transform: translateX(-50%);
  width: 95vw;
  max-width: 1500px;
  height: 750px;
  background: radial-gradient(ellipse 65% 55% at 50% 30%, rgba(106, 27, 82, 0.45) 0%, rgba(58, 18, 48, 0.6) 35%, var(--bg-2) 65%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

/* Diagonal Light Beam falling from upper left (~35% from left, diagonal across headline, mix-blend-mode: screen) */
.hero-light-beam {
  position: absolute;
  top: -180px;
  left: 35%;
  width: 540px;
  height: 1050px;
  background: linear-gradient(
    115deg,
    rgba(255, 235, 248, 0.38) 0%,
    rgba(242, 169, 210, 0.52) 25%,
    rgba(217, 59, 180, 0.32) 55%,
    transparent 82%
  );
  transform: rotate(-22deg);
  filter: blur(54px);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 2;
}

/* Starfield / Twinkle Layer */
.hero-starfield {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(1.5px 1.5px at 15% 25%, rgba(255, 255, 255, 0.6) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 30% 70%, rgba(255, 255, 255, 0.4) 50%, transparent 100%),
    radial-gradient(2px 2px at 70% 30%, rgba(255, 255, 255, 0.5) 50%, transparent 100%),
    radial-gradient(1px 1px at 85% 65%, rgba(255, 255, 255, 0.6) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 50% 15%, rgba(255, 255, 255, 0.5) 50%, transparent 100%),
    radial-gradient(1px 1px at 60% 85%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
  opacity: 0.75;
  pointer-events: none;
  z-index: 2;
}

/* Noise overlay - sänkt opacitet till ~0.03 */
.hero-noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 3;
}

/* Content Container on top */
.hero-content-wrap {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
}

.hero-title {
  margin-bottom: 24px;
}

.hero-title-line-1 {
  display: block;
}

.hero-title-line-2 {
  display: block;
}

.hero-highlight {
  position: relative;
  display: inline-block;
  white-space: nowrap;
  padding: 0 4px;
  background: linear-gradient(90deg, rgba(217, 59, 180, 0.28) 0%, rgba(217, 59, 180, 0.08) 100%);
  border-radius: 4px;
}

.hero-cursor {
  display: inline-block;
  width: 2px;
  height: 0.9em;
  background-color: var(--accent-2);
  vertical-align: middle;
  margin-left: 4px;
  animation: cursorBlink 1s infinite;
}

@keyframes cursorBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.hero-lead {
  max-width: 460px;
  margin: 0 auto 32px;
  font-size: 1.0625rem;
  color: var(--muted);
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

/* ==========================================================================
   THE SIGNATURE ARC (SVG implementation with 3 concentric bands & glow)
   ========================================================================== */
.hero-arc-container {
  position: absolute;
  top: 52%;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(900px, 88vw, 1500px);
  pointer-events: none;
  z-index: 4;
}

.hero-arc-svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Floating Glass Cards around the Arc */
.floating-cards-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 6;
}

.float-card {
  position: absolute;
  pointer-events: auto;
  border-radius: 16px;
  background: #180D16;
  border: 1px solid rgba(240, 170, 215, 0.16);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
  animation: floatSlow 7s ease-in-out infinite alternate;
}

@supports (backdrop-filter: blur(16px)) or (-webkit-backdrop-filter: blur(16px)) {
  .float-card {
    background: rgba(255, 220, 240, 0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
}

@keyframes floatSlow {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

/* Card 1: Left 15+ Sales */
.card-left-kpi {
  left: 9%;
  top: 66%;
  padding: 18px 22px;
  width: 215px;
  opacity: 0.9;
}

.card-kpi-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.card-pill-tag {
  font-size: 0.75rem;
  color: var(--accent-2);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.card-label-small {
  font-size: 0.8rem;
  color: var(--muted);
}

.card-big-num {
  font-size: 2.6rem;
  font-weight: 300;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
  margin-bottom: 4px;
}

.card-underline-text {
  font-size: 0.85rem;
  color: var(--muted);
  border-bottom: 1px solid rgba(240, 170, 215, 0.2);
  padding-bottom: 2px;
  display: inline-block;
}

/* Card 2: Center-Left Education */
.card-center-edu {
  left: 27%;
  top: 82%;
  padding: 16px 20px;
  width: 210px;
  opacity: 0.8;
  animation-delay: -2s;
}

.card-edu-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: #fff;
  margin-top: 4px;
}

.card-edu-sub {
  font-size: 0.75rem;
  color: var(--muted);
}

/* Card 3: Right Graph */
.card-right-graph {
  right: 9%;
  top: 65%;
  padding: 18px 22px;
  width: 235px;
  opacity: 0.85;
  animation-delay: -4s;
}

.graph-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.mini-graph-svg {
  width: 100%;
  height: 50px;
}

/* Card 4: Right Bottom Analytics */
.card-right-bottom {
  right: 25%;
  top: 84%;
  padding: 14px 20px;
  width: 175px;
  opacity: 0.6;
  animation-delay: -1s;
}

/* Outer Pills - flyttade längre ut och lägre för att undvika överlapp */
.pill-play-left {
  left: 3%;
  top: 86%;
  padding: 8px 16px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.45;
}

.pill-play-right {
  right: 3%;
  top: 85%;
  padding: 8px 16px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.45;
}

/* ==========================================================================
   STARTSIDA SEKTIONER (Fas 3: Sektion 2 - 12)
   ========================================================================== */

/* Allmänna sektionsstilar & Bakgrundsglöd */
.home-section {
  position: relative;
  padding: clamp(60px, 10vw, 120px) 0;
  overflow: hidden;
}

.home-section::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 80vw;
  max-width: 1100px;
  height: 500px;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(58, 18, 48, 0.35) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 50px;
  position: relative;
  z-index: 1;
}

.section-head p {
  margin-top: 12px;
}

/* Grids */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* 2. Trust-rad */
.trust-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
  background: rgba(26, 11, 22, 0.4);
  position: relative;
  z-index: 10;
}

.trust-text {
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  line-height: 1.6;
  margin: 0;
}

.trust-divider {
  display: inline-block;
  margin: 0 12px;
  color: var(--accent);
  opacity: 0.6;
}

/* 3. Dashboard-grid ("Erfarenhet i siffror") */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  position: relative;
  z-index: 1;
}

.dash-tile {
  background: #180D16;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

@supports (backdrop-filter: blur(14px)) or (-webkit-backdrop-filter: blur(14px)) {
  .dash-tile {
    background: var(--surface);
    backdrop-filter: blur(14px);
  }
}

.dash-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(240, 170, 215, 0.35);
  box-shadow: 0 12px 30px rgba(0,0,0,0.4), 0 0 20px rgba(217, 59, 180, 0.15);
}

.dash-tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.dash-tile-tag {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: lowercase;
}

.dash-tile-num {
  font-size: clamp(2.8rem, 4.5vw, 3.8rem);
  font-weight: 300;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
  margin-bottom: 8px;
}

.dash-tile-desc {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.dash-sparkline {
  width: 100%;
  height: 36px;
  margin-top: 8px;
}

.dash-tile-wide {
  grid-column: 1 / -1;
  padding: 32px;
}

.tools-preview-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

/* 4. Tjänster */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}

.service-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(217, 59, 180, 0.15);
  border: 1px solid rgba(240, 170, 215, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--accent-2);
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  color: var(--accent-2);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: gap 0.2s ease, color 0.2s ease;
}

.service-link:hover {
  color: #fff;
  gap: 10px;
}

/* 5. Konverteringsflöde (Metod) */
.process-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
  z-index: 1;
  margin-top: 40px;
}

/* Gradientlinje som visuellt förbinder noderna */
.process-flow::before {
  content: '';
  position: absolute;
  top: 48px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 50%, var(--accent) 100%);
  opacity: 0.7;
  z-index: 1;
  pointer-events: none;
}

@media (max-width: 960px) {
  .process-flow::before {
    display: none;
  }
}

.process-step {
  position: relative;
  padding: 30px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  z-index: 2;
}

.process-node {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-btn);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 20px;
  box-shadow: 0 0 16px rgba(217, 59, 180, 0.6);
}

.process-step-title {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: #fff;
}

.process-step-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

/* 6. Erfarenhet (Vertikal Tidslinje) */
.timeline-wrap {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: 20px 0;
  z-index: 1;
}

.timeline-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-deep) 100%);
}

.timeline-item {
  position: relative;
  padding-left: 56px;
  margin-bottom: 40px;
}

.timeline-dot {
  position: absolute;
  left: 12px;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--accent);
  box-shadow: 0 0 12px var(--accent);
  z-index: 2;
}

.timeline-period {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--accent-2);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.timeline-role {
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 8px;
}

.timeline-desc {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.timeline-tasks-details {
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  background: rgba(255, 220, 240, 0.03);
}

.timeline-tasks-details summary {
  cursor: pointer;
  color: var(--accent-2);
  font-size: 0.85rem;
  font-weight: 600;
}

.timeline-tasks-details ul {
  padding-left: 18px;
  margin-top: 10px;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}

/* 7. Utbildningar */
.edu-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.edu-year {
  font-size: 0.85rem;
  color: var(--accent-2);
  font-weight: 600;
  margin-bottom: 4px;
}

.edu-courses {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 14px 0;
  line-height: 1.6;
}

/* 8. Verktyg & Kompetens (4 grupper) */
.skills-groups {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}

.skills-group {
  padding: 28px;
}

.skills-group-title {
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 16px;
}

.skills-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* 9. Utvalda case */
.case-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.case-quote {
  font-style: italic;
  font-size: 0.95rem;
  color: #fff;
  border-left: 2px solid var(--accent);
  padding-left: 16px;
  margin: 16px 0;
  line-height: 1.5;
}

.case-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.case-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
}

.case-author-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
}

.case-author-role {
  font-size: 0.8rem;
  color: var(--muted);
}

/* 10. Referenser (Karusell med CSS scroll-snap) */
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 16px;
}

.carousel-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.2s ease;
}

.carousel-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.testimonials-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 10px 4px 24px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.testimonial-slide {
  flex: 0 0 calc(33.333% - 14px);
  min-width: 300px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-quote {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.testimonial-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
}

.modal-dialog {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #1A0B16;
  color: var(--text);
  max-width: 800px;
  width: 90vw;
  max-height: 85vh;
  margin: auto;
  padding: 32px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
}

.modal-dialog::backdrop {
  background: rgba(13, 7, 11, 0.8);
  backdrop-filter: blur(8px);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.modal-close-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}

.modal-scroll-area {
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 12px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* 11. Citat-band */
.quote-banner {
  text-align: center;
  padding: 70px 20px;
  background: radial-gradient(circle at 50% 50%, rgba(217, 59, 180, 0.15) 0%, transparent 70%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.quote-banner-text {
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  font-weight: 300;
  color: #fff;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  line-height: 1.2;
}

.quote-banner-text strong {
  font-weight: 600;
  color: var(--accent-2);
}

.quote-banner-sub {
  font-size: 0.95rem;
  color: var(--muted);
  font-style: italic;
  margin: 0;
}

/* 12. FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item[open] {
  border-color: rgba(240, 170, 215, 0.35);
}

.faq-summary {
  padding: 20px 24px;
  font-size: 1.05rem;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--accent-2);
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-summary::after {
  content: '−';
}

.faq-answer {
  padding: 0 24px 20px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Responsivitet för Sektioner */
@media (max-width: 960px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .process-flow {
    grid-template-columns: repeat(2, 1fr);
  }
  .skills-groups {
    grid-template-columns: 1fr;
  }
  .testimonial-slide {
    flex: 0 0 calc(50% - 10px);
  }
}

@media (max-width: 640px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .process-flow {
    grid-template-columns: 1fr;
  }
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }
  .testimonial-slide {
    flex: 0 0 100%;
  }
  .trust-text {
    font-size: 0.85rem;
  }
  .timeline-wrap::before {
    left: 12px;
  }
  .timeline-item {
    padding-left: 36px;
  }
  .timeline-dot {
    left: 4px;
  }
}

@media (max-width: 400px) {
  h1 {
    font-size: 2.3rem;
  }
}

/* ==========================================================================
   FOOTER (4 Columns + CTA band)
   ========================================================================== */
.site-footer {
  background: #080407;
  border-top: 1px solid var(--border);
  padding: 80px 0 40px;
  margin-top: auto;
}

.footer-cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 70px;
  background: radial-gradient(circle at 100% 50%, rgba(217, 59, 180, 0.12) 0%, var(--surface) 60%);
}

.cta-band-title {
  font-size: 1.85rem;
  margin-bottom: 8px;
}

.cta-band-desc {
  max-width: 500px;
  margin-bottom: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.footer-bio {
  font-size: 0.95rem;
  margin-bottom: 20px;
  max-width: 320px;
}

.footer-contacts {
  list-style: none;
}

.footer-contacts li {
  margin-bottom: 8px;
  font-size: 0.95rem;
}

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

.footer-contacts a:hover {
  color: #fff;
}

.footer-heading {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 18px;
  color: #fff;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(240, 170, 215, 0.08);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: var(--muted);
}

.footer-quote {
  font-style: italic;
  font-size: 0.85rem;
}

.sticky-mobile-cta {
  display: none;
}

/* ==========================================================================
   RESPONSIVENESS (Mobile & Tablet)
   ========================================================================== */
@media (max-width: 960px) {
  .center-nav {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .footer-cta-band {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  /* Säkerställ att den fasta 'Boka samtal'-knappen inte täcker kontaktuppgifter längst ner */
  body {
    padding-bottom: 90px;
  }

  .site-footer {
    padding-bottom: 90px;
  }

  /* Dölj header-knappen 'Boka samtal' på mobil (<640px) så bara logotyp + hamburgare syns */
  .header-action .header-cta {
    display: none;
  }

  .hero-stage {
    padding-top: 130px;
  }

  .hero-arc-container {
    top: 58%;
    width: 140vw;
  }

  .hero-light-beam {
    width: 300px;
    left: -10%;
  }

  .card-center-edu, .card-right-bottom, .pill-play-left, .pill-play-right {
    display: none;
  }

  .card-left-kpi {
    left: 4%;
    top: 76%;
    width: 170px;
    padding: 12px 16px;
  }

  /* Mobil: dölj 'erfarenhet' så det inte krockar med 'försäljning' */
  .card-left-kpi .card-label-small {
    display: none;
  }

  .card-right-graph {
    right: 4%;
    top: 74%;
    width: 180px;
    padding: 12px 16px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .mobile-drawer.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: #0D070B;
    z-index: 10000;
    padding: 24px;
  }

  .drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
  }

  .drawer-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
  }

  .drawer-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .drawer-list a {
    color: #fff;
    text-decoration: none;
    font-size: 1.35rem;
    font-weight: 500;
  }

  .drawer-cta {
    color: var(--accent) !important;
    font-weight: 700 !important;
  }

  /* Mobil fast knapp visas bara efter att man scrollat förbi heron (.is-visible) */
  .sticky-mobile-cta {
    display: block;
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transform: translateY(16px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .sticky-mobile-cta.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
}

/* ==========================================================================
   REDUCED MOTION - Stänger av all animation
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   UNDERSIDOR (Tjänster, Kontakt, Tack, 404)
   ========================================================================== */

/* Subpage Hero (~60vh) */
.subpage-hero {
  position: relative;
  min-height: 55vh;
  padding: 140px 0 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: radial-gradient(circle at 50% 20%, var(--plum) 0%, var(--bg) 70%);
}

.subpage-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1200px;
  height: 100%;
  background: radial-gradient(circle at 50% 0%, rgba(217, 59, 180, 0.22) 0%, transparent 65%);
  pointer-events: none;
  z-index: 1;
}

.subpage-hero .subpage-hero-arc {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(650px, 75vw, 1100px);
  pointer-events: none;
  z-index: 2;
  opacity: 0.75;
}

.subpage-hero-content {
  position: relative;
  z-index: 10;
  max-width: 820px;
  margin: 0 auto;
}

.subpage-hero-content h1 {
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  font-weight: 300;
  line-height: 1.18;
  margin-bottom: 20px;
  color: #fff;
}

.subpage-hero-content .lead {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto 30px;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: var(--muted);
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumbs a:hover {
  color: #fff;
}

.breadcrumbs span.current {
  color: var(--accent-2);
}

.breadcrumbs .sep {
  opacity: 0.4;
}

/* Service Deliverables (5-7 punkter) */
.deliverables-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 840px;
  margin: 0 auto;
}

.deliverable-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
}

.deliverable-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(217, 59, 180, 0.15);
  border: 1px solid rgba(240, 170, 215, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-2);
  font-weight: 600;
  margin-top: 2px;
}

.deliverable-content h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
  color: #fff;
}

.deliverable-content p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
}

/* Steps / Så går det till */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  padding: 32px 26px;
  position: relative;
}

.step-number {
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--accent-2);
  margin-bottom: 12px;
  opacity: 0.85;
}

.step-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #fff;
}

.step-card p {
  font-size: 0.925rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* Contact Page Layout */
.contact-section {
  padding: 80px 0 120px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

.contact-form-wrap {
  padding: 36px 40px;
}

.form-group {
  margin-bottom: 22px;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: 8px;
}

.form-label span.req {
  color: var(--accent-2);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  color: #fff;
  font-family: var(--font-main);
  font-size: 0.95rem;
  transition: all 0.2s ease;
  outline: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent-2);
  box-shadow: 0 0 16px rgba(217, 59, 180, 0.25);
  background: rgba(255, 255, 255, 0.06);
}

.form-select option {
  background: #180D16;
  color: #fff;
}

.form-textarea {
  min-height: 130px;
  resize: vertical;
}

.form-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.45;
  cursor: pointer;
}

.form-checkbox-label input {
  margin-top: 3px;
  accent-color: var(--accent-btn);
}

.form-status {
  margin-top: 16px;
  font-size: 0.95rem;
  color: var(--accent-2);
}

.form-status.is-error {
  color: #FF8FB1;
}

.contact-info-wrap {
  padding: 36px 32px;
}

.contact-info-list {
  list-style: none;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-info-item a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
}

.contact-info-item a:hover {
  color: var(--accent-2);
}

.contact-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(217, 59, 180, 0.15);
  border: 1px solid rgba(240, 170, 215, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-2);
  flex-shrink: 0;
}

/* 404 & Tack Page Center Stage */
.status-page-stage {
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 140px 16px 80px;
}

.status-page-box {
  position: relative;
  z-index: 10;
  max-width: 600px;
  padding: 48px 36px;
}

.status-code {
  font-size: clamp(4rem, 10vw, 6.5rem);
  font-weight: 300;
  line-height: 1;
  color: var(--accent-2);
  margin-bottom: 12px;
  text-shadow: 0 0 40px rgba(217, 59, 180, 0.4);
}

.status-title {
  font-size: 1.85rem;
  margin-bottom: 16px;
  color: #fff;
}

.status-text {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 28px;
}

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

@media (max-width: 640px) {
  .contact-form-wrap, .contact-info-wrap {
    padding: 24px 20px;
  }
}

/* ==========================================================================
   PROJEKT & NYHETER (FAS 5)
   ========================================================================== */

/* Project Detail Layout */
.project-detail-layout {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.project-section-block {
  padding: 36px 40px;
}

.project-section-block h2 {
  font-size: 1.6rem;
  margin-bottom: 16px;
  color: #fff;
}

.project-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 24px 28px;
  margin-bottom: 24px;
}

.project-meta-item strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 4px;
}

.project-meta-item span {
  color: #fff;
  font-size: 1rem;
}

.project-quote-box {
  background: radial-gradient(circle at 10% 50%, rgba(217, 59, 180, 0.14) 0%, rgba(255, 220, 240, 0.05) 60%);
  border-left: 3px solid var(--accent);
  padding: 32px 36px;
  border-radius: 16px;
  margin-top: 10px;
}

.project-quote-text {
  font-size: 1.15rem;
  font-style: italic;
  color: #fff;
  line-height: 1.65;
  margin-bottom: 20px;
}

.project-quote-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.project-quote-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-2);
}

/* News / Nyheter Grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 960px;
  margin: 0 auto;
}

.news-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.news-card:hover {
  transform: translateY(-4px);
  border-color: rgba(240, 170, 215, 0.35);
}

.news-card-body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.news-meta .category {
  color: var(--accent-2);
  font-weight: 500;
}

.news-title {
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.3;
}

.news-excerpt {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
  flex: 1;
}

/* Article Draft Banner & Layout */
.draft-banner {
  background: rgba(217, 59, 180, 0.15);
  border: 1px solid rgba(240, 170, 215, 0.35);
  padding: 12px 20px;
  border-radius: 10px;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--accent-2);
  font-size: 0.9rem;
}

.article-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 16px 100px;
}

.article-toc {
  padding: 24px 28px;
  margin-bottom: 40px;
}

.article-toc h3 {
  font-size: 1.1rem;
  margin-bottom: 14px;
  color: #fff;
}

.article-toc ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.article-toc a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.article-toc a:hover {
  color: var(--accent-2);
}

.article-body {
  color: #e0d0db;
  font-size: 1.1rem;
  line-height: 1.8;
}

.article-body h2 {
  font-size: 1.8rem;
  color: #fff;
  margin: 48px 0 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(240, 170, 215, 0.08);
}

.article-body h3 {
  font-size: 1.35rem;
  color: #fff;
  margin: 32px 0 16px;
}

.article-body p {
  margin-bottom: 24px;
}

.article-body ul, .article-body ol {
  margin-bottom: 28px;
  padding-left: 24px;
}

.article-body li {
  margin-bottom: 10px;
}

.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 18px 24px;
  background: var(--surface);
  border-radius: 0 12px 12px 0;
  margin: 32px 0;
  font-style: italic;
  color: #fff;
}

.article-author-box {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 32px;
  margin: 50px 0 40px;
}

.article-author-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-2);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
  .project-meta-grid {
    grid-template-columns: 1fr;
  }
  .project-section-block {
    padding: 24px 20px;
  }
  .article-author-box {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   COOKIE BANNER (CONSENT MODE V2)
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 720px;
  background: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px 28px;
  z-index: 9999;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.7), 0 0 32px rgba(217, 59, 180, 0.15);
  animation: bannerFadeIn 300ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes bannerFadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, 16px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-banner {
    animation: none;
  }
}

.cookie-title {
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 8px;
  font-weight: 600;
}

.cookie-text {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 20px;
}

.cookie-text a {
  color: var(--accent-2);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.btn-cookie-accept,
.btn-cookie-reject,
.btn-cookie-settings,
.btn-cookie-save,
.btn-cookie-back {
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Acceptera: Solid accent-btn med vit text */
.btn-cookie-accept,
.btn-cookie-save {
  background: var(--accent-btn);
  color: #ffffff;
  border-color: var(--accent-btn);
}

.btn-cookie-accept:hover,
.btn-cookie-save:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 16px rgba(217, 59, 180, 0.4);
}

/* Avvisa: Solid vit med mörk text (#1A0B16) - samma storlek och kontrast som Acceptera */
.btn-cookie-reject {
  background: #ffffff;
  color: #1A0B16;
  border-color: #ffffff;
}

.btn-cookie-reject:hover {
  background: #f0e6ed;
}

/* Inställningar & Tillbaka: Sekundärknapp */
.btn-cookie-settings,
.btn-cookie-back {
  background: rgba(255, 255, 255, 0.05);
  color: #e0d0db;
  border-color: rgba(240, 170, 215, 0.2);
}

.btn-cookie-settings:hover,
.btn-cookie-back:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Settings View rows */
.cookie-options {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.cookie-option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(240, 170, 215, 0.1);
  border-radius: 12px;
}

.cookie-option-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cookie-option-info strong {
  color: #fff;
  font-size: 0.95rem;
}

.cookie-option-info span {
  color: var(--muted);
  font-size: 0.85rem;
}

.cookie-settings-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

/* Toggle Switch */
.switch-wrap {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.switch-wrap input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  transition: 0.2s;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.switch-slider::before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: #ffffff;
  border-radius: 50%;
  transition: 0.2s;
}

.switch-wrap input:checked + .switch-slider {
  background-color: var(--accent);
}

.switch-wrap input:checked + .switch-slider::before {
  transform: translateX(20px);
}

.switch-wrap input:focus-visible + .switch-slider {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.switch-wrap input:disabled + .switch-slider {
  cursor: not-allowed;
  opacity: 0.7;
}

/* Hide Sticky Mobile CTA while banner is visible */
.sticky-mobile-cta.cta-hidden-by-cookie {
  display: none !important;
}

@media (max-width: 640px) {
  .cookie-actions {
    flex-direction: column;
    width: 100%;
  }

  .cookie-actions button,
  .cookie-settings-actions button {
    width: 100%;
  }

  .cookie-banner {
    padding: 20px 18px;
    bottom: 12px;
    width: calc(100% - 24px);
  }
}


