:root {
  --brand-primary: #943994;
  --brand-secondary: #694198;
  --brand-accent-1: #694198;
  --brand-accent-2: #22b88d;
  --brand-light-bg: #e5e7eb;
  --brand-dark-bg: #18191b;
  --brand-gradient: linear-gradient(135deg, #943994 0%, #694198 100%);
  --brand-gradient-text: linear-gradient(135deg, #3bd194 0%, #556d97 40%, #783797 70%, #9b3793 100%);
  --brand-gradient-bar: linear-gradient(180deg, #8d46ae 0, #6e2d8c 100%);
  --background: 40 11% 97%;
  --foreground: 30 10% 15%;
  --card: 35 25% 96%;
  --card-foreground: 30 10% 15%;
  --popover: 35 30% 98%;
  --popover-foreground: 30 10% 15%;
  --primary: 270 41% 42%;
  --primary-foreground: 35 30% 98%;
  --secondary: 305 44% 40%;
  --secondary-foreground: 35 30% 98%;
  --accent: 174 72% 54%;
  --accent-foreground: 30 10% 15%;
  --muted: 35 15% 94%;
  --muted-foreground: 30 8% 42%;
  --destructive: 0 84% 60%;
  --destructive-foreground: 35 30% 98%;
  --border: 35 15% 90%;
  --input: 35 15% 90%;
  --ring: 174 72% 54%;
  --radius: 0.75rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: Poppins, "Poppins Fallback: BlinkMacSystemFont", "Poppins Fallback: Segoe UI", "Poppins Fallback: Roboto", "Poppins Fallback: Helvetica Neue", "Poppins Fallback: Arial", system-ui, -apple-system, sans-serif;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  background: hsl(var(--foreground));
  color: hsl(var(--primary-foreground));
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.9rem;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: hsl(var(--background) / 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid hsl(var(--border));
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  line-height: 0;
}

.logo img {
  height: 36px;
  width: auto;
  display: block;
}

.header-cta.btn {
  display: inline-flex;
  padding: 0.7rem 1.25rem;
  font-size: 0.88rem;
  max-width: none;
  width: auto;
  flex-shrink: 0;
}

.hero {
  position: relative;
  overflow: hidden;
  overflow-x: clip;
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: 7rem 0 4rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0, hsl(var(--card)) 0, hsl(var(--background)));
}

.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, hsl(var(--border) / 0.4) 1px, transparent 1px),
    linear-gradient(to bottom, hsl(var(--border) / 0.4) 1px, transparent 1px);
  background-size: 4rem 4rem;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 30%, #000 70%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 30%, #000 70%, transparent 100%);
}

.hero-inner,
.section-inner {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 768px) {
  .hero-inner,
  .section-inner,
  .header-inner {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.hero-text {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  color: #047857;
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 0.9rem;
  text-transform: uppercase;
}

.hero-headline {
  color: hsl(var(--foreground));
  font-size: clamp(2.15rem, 5.5vw, 4.1rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 1.25rem;
}

.gradient-text {
  background: var(--brand-gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-sub {
  color: hsl(var(--muted-foreground));
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.6;
  margin: 0 auto 2rem;
  max-width: 640px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1.75rem;
}

@media (min-width: 640px) {
  .cta-row {
    gap: 1rem;
  }
}

.btn {
  align-items: center;
  justify-content: center;
  display: inline-flex;
  border-radius: 9999px;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.2;
  transition: transform 0.15s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: hsl(var(--foreground));
  box-shadow: 0 2px 8px #00000014;
  color: hsl(var(--primary-foreground));
  font-weight: 600;
  padding: 0.875rem 2rem;
}

.btn-primary:hover {
  background: hsl(var(--primary));
  box-shadow: 0 8px 20px -4px hsla(var(--primary), 0.35);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-secondary {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
  font-weight: 500;
  padding: 0.875rem 2rem;
}

.btn-secondary:hover {
  background: hsl(var(--muted));
  border-color: hsl(var(--foreground) / 0.4);
  transform: translateY(-1px);
}

.btn-secondary:active {
  transform: translateY(0) scale(0.98);
}

.cta-row .btn {
  width: 100%;
  max-width: 280px;
}

.audience {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.audience li {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 9999px;
  color: hsl(var(--foreground));
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.4rem 0.95rem;
}

.section {
  padding: 5rem 0;
}

.section-muted {
  background: hsl(var(--card));
  border-top: 1px solid hsl(var(--border));
  border-bottom: 1px solid hsl(var(--border));
}

.section-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title {
  color: hsl(var(--foreground));
  font-size: clamp(1.85rem, 4.2vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.85rem;
}

.section-lead {
  color: hsl(var(--muted-foreground));
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 0 auto;
  max-width: 640px;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .feature-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .feature-grid .feature:last-child:nth-child(7) {
    grid-column: 2;
  }
}

.feature {
  background: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  border-radius: 1.25rem;
  box-shadow: 0 2px 12px -2px #0000000a;
  padding: 1.35rem 1.25rem 1.4rem;
}

.section-muted .feature {
  background: hsl(var(--card));
}

.features .feature {
  background: hsl(var(--card));
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgb(148 57 148 / 0.1);
  color: var(--brand-primary);
  margin-bottom: 0.9rem;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.feature p {
  margin: 0;
  color: hsl(var(--muted-foreground));
  font-size: 0.98rem;
  line-height: 1.55;
}

.steps {
  display: grid;
  gap: 1rem;
  counter-reset: step;
}

@media (min-width: 800px) {
  .steps {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.25rem;
  }
}

.step {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 1.25rem;
  padding: 1.5rem 1.35rem 1.6rem;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background: var(--brand-gradient);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.9rem;
}

.step h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.step p {
  margin: 0;
  color: hsl(var(--muted-foreground));
  font-size: 1rem;
}

.price-note {
  text-align: center;
  margin: 2.25rem 0 0;
  color: hsl(var(--muted-foreground));
  font-size: 1rem;
}

.lead-section {
  padding: 5rem 1.5rem;
}

.lead-card {
  max-width: 640px;
  margin: 0 auto;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 1.75rem;
  box-shadow: 0 4px 24px -2px #0000000a;
  padding: 2.25rem 1.35rem;
  text-align: center;
}

@media (min-width: 640px) {
  .lead-card {
    padding: 3.5rem 2.5rem 3rem;
  }
}

.lead-card h2 {
  color: hsl(var(--foreground));
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.85rem;
}

.lead-card .lead-intro {
  color: hsl(var(--muted-foreground));
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 0 auto 2rem;
  max-width: 520px;
}

.lead-form {
  text-align: left;
  display: grid;
  gap: 1rem;
}

.field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.optional {
  font-weight: 400;
  color: hsl(var(--muted-foreground));
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"] {
  width: 100%;
  border: 1px solid hsl(var(--input));
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  border-radius: 0.9rem;
  font-family: inherit;
  font-size: 1rem;
  padding: 0.85rem 1rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus {
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 3px hsla(var(--ring), 0.28);
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.92rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.45;
}

.consent input {
  margin-top: 0.2rem;
  width: 1.05rem;
  height: 1.05rem;
  accent-color: hsl(var(--primary));
  flex-shrink: 0;
}

.consent a {
  color: hsl(var(--primary));
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-message {
  min-height: 1.4rem;
  font-size: 0.95rem;
  margin: 0.15rem 0 0;
}

.form-message.error {
  color: hsl(var(--destructive));
}

.form-message.success {
  color: #047857;
  font-weight: 600;
}

.lead-form .btn-primary {
  width: 100%;
  margin-top: 0.35rem;
}

.lead-form .btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.site-footer {
  padding: 2.5rem 1.5rem 3rem;
  border-top: 1px solid hsl(var(--border));
  text-align: center;
  color: hsl(var(--muted-foreground));
  font-size: 0.95rem;
}

.footer-logo {
  height: 28px;
  width: auto;
  display: inline-block;
  margin-bottom: 0.85rem;
}

.site-footer p {
  margin: 0.35rem 0;
}

.site-footer a {
  color: hsl(var(--foreground));
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn,
  .btn-primary,
  .btn-secondary {
    transition: none;
  }
  .btn:hover {
    transform: none;
  }
}

#ingår,
#sa-funkar-det,
#anmalan {
  scroll-margin-top: 5.5rem;
}
