/* ============================================
   KIND LIEBEVOLL INS BETT — Design System
   ============================================ */

/* --- Custom Properties --- */
:root {
  /* Colors */
  --color-primary: #4A90E2;
  --color-primary-dark: #357ABD;
  --color-accent: #FF6B35;
  --color-accent-light: #FF8255;
  --color-cream: #FFF8F3;
  --color-soft-blue: #E8F4FD;
  --color-gray-light: #F8F9FA;
  --color-gray-border: #E5E5E5;
  --color-gray-card: #FAFAFA;
  --color-text: #2D3748;
  --color-text-light: #4A5568;
  --color-text-muted: #718096;
  --color-white: #FFFFFF;

  /* Typography */
  --font-heading: 'Nunito', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --fs-h1: clamp(2rem, 5vw, 3rem);
  --fs-h2: clamp(1.5rem, 4vw, 2.25rem);
  --fs-h3: clamp(1.125rem, 2.5vw, 1.5rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --lh-body: 1.6;

  /* Spacing */
  --section-padding: clamp(3rem, 8vw, 5rem);
  --container-max: 1200px;
  --gap-grid: 2rem;
  --radius: 12px;
  --radius-sm: 8px;

  /* Shadows */
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow-card-hover: 0 8px 24px rgba(0, 0, 0, 0.1);
  --shadow-btn: 0 4px 14px rgba(255, 107, 53, 0.3);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-text);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover {
  color: var(--color-primary-dark);
}

ul {
  list-style: none;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text);
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* --- Section Headline --- */
.section-headline {
  font-size: var(--fs-h2);
  text-align: center;
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.125rem;
  text-align: center;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn--primary {
  background-color: var(--color-accent);
  color: var(--color-white);
  padding: 1rem 2.75rem;
  box-shadow: var(--shadow-btn);
}

.btn--primary:hover {
  background-color: var(--color-accent-light);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.btn--secondary {
  background-color: var(--color-accent);
  color: var(--color-white);
  padding: 0.75rem 2rem;
  font-size: 1rem;
}

.btn--secondary:hover {
  background-color: var(--color-accent-light);
  color: var(--color-white);
  transform: translateY(-1px);
}

.btn--large {
  padding: 1.25rem 3.5rem;
  font-size: 1.25rem;
}

.btn--pulse {
  animation: pulse 2.5s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: var(--shadow-btn); }
  50% { box-shadow: 0 4px 24px rgba(255, 107, 53, 0.5); }
}

/* ============================================
   HEADER / NAV
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-gray-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
}

.nav__logo:hover {
  color: var(--color-primary);
}

.nav__logo-icon {
  font-size: 1.5rem;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all 0.3s;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__links a {
  color: var(--color-text-light);
  font-size: var(--fs-small);
  font-weight: 600;
  transition: color 0.2s;
}

.nav__links a:hover {
  color: var(--color-primary);
}

.nav__cta {
  background: var(--color-accent);
  color: var(--color-white) !important;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: var(--fs-small) !important;
}

.nav__cta:hover {
  background: var(--color-accent-light);
  color: var(--color-white) !important;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  background: linear-gradient(135deg, var(--color-cream) 0%, var(--color-soft-blue) 100%);
  padding: var(--section-padding) 0;
  overflow: hidden;
}

.hero__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero__headline {
  font-size: var(--fs-h1);
  margin-bottom: 1rem;
  color: var(--color-text);
}

.hero__tagline {
  font-size: 1.25rem;
  color: var(--color-primary);
  font-weight: 600;
  font-family: var(--font-heading);
  margin-bottom: 1.5rem;
}

.hero__text {
  font-size: 1.0625rem;
  color: var(--color-text-light);
  margin-bottom: 2rem;
  max-width: 540px;
}

.hero__proof {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.hero__proof-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--fs-small);
  color: var(--color-text-light);
}

.hero__proof-icon {
  font-size: 1.25rem;
}

/* Hero Illustration */
.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__illustration {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 4 / 3;
  background: linear-gradient(180deg, #1a1a3e 0%, #2d2b55 40%, #3b3570 100%);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(26, 26, 62, 0.3);
}

.hero__illustration-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}

.hero__illustration-moon {
  position: absolute;
  top: 12%;
  right: 15%;
  font-size: 3rem;
  filter: drop-shadow(0 0 20px rgba(255, 214, 0, 0.4));
}

.hero__illustration-stars {
  position: absolute;
  top: 8%;
  left: 15%;
  font-size: 2rem;
  opacity: 0.8;
  animation: twinkle 3s ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 0.3; }
}

.hero__illustration-scene {
  display: flex;
  align-items: flex-end;
  gap: 0.25rem;
  margin-bottom: -4px;
  z-index: 2;
}

.hero__illustration-parent {
  font-size: 3.5rem;
}

.hero__illustration-book {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.hero__illustration-child {
  font-size: 2.5rem;
}

.hero__illustration-bed {
  width: 75%;
  height: 30%;
  background: linear-gradient(180deg, #e8d5f0 0%, #d4b8e0 100%);
  border-radius: 20px 20px 0 0;
  position: relative;
  z-index: 1;
}

.hero__illustration-bed::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: -12.5%;
  right: -12.5%;
  height: 40%;
  background: #c9a8d8;
  border-radius: 8px 8px 0 0;
}

/* ============================================
   PROBLEMS
   ============================================ */
.problems {
  padding: var(--section-padding) 0;
  background: var(--color-white);
}

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

.problem-card {
  background: var(--color-gray-card);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s, box-shadow 0.25s;
}

.problem-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.problem-card__icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.problem-card__title {
  font-size: var(--fs-h3);
  margin-bottom: 0.75rem;
}

.problem-card__text {
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ============================================
   FEATURES
   ============================================ */
.features {
  padding: var(--section-padding) 0;
  background: var(--color-soft-blue);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform 0.25s, box-shadow 0.25s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.feature-card__icon {
  font-size: 2.75rem;
  margin-bottom: 0.75rem;
  color: var(--color-primary);
}

.feature-card__title {
  font-size: var(--fs-h3);
  margin-bottom: 0.5rem;
}

.feature-card__text {
  color: var(--color-text-light);
  font-size: var(--fs-body);
  line-height: 1.7;
}

/* ============================================
   MID-PAGE CTA BANNER
   ============================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--color-cream) 0%, var(--color-soft-blue) 100%);
  padding: 3.5rem 0;
  text-align: center;
}

.cta-banner__text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-text);
  margin-bottom: 1.25rem;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials {
  padding: var(--section-padding) 0;
  background: var(--color-white);
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-grid);
  margin-bottom: 3rem;
}

.testimonial-card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-border);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
}

.testimonial-card::before {
  content: '\201E';
  position: absolute;
  top: 0.75rem;
  left: 1.25rem;
  font-size: 3.5rem;
  line-height: 1;
  color: var(--color-primary);
  opacity: 0.2;
  font-family: Georgia, serif;
}

.testimonial-card__quote {
  margin-bottom: 1.5rem;
}

.testimonial-card__quote p {
  font-style: italic;
  color: var(--color-text-light);
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.testimonial-card:nth-child(2) .testimonial-card__avatar {
  background: var(--color-accent);
}

.testimonial-card:nth-child(3) .testimonial-card__avatar {
  background: #49B87A;
}

.testimonial-card__name {
  display: block;
  font-style: normal;
  font-weight: 600;
  font-size: var(--fs-small);
  color: var(--color-text);
}

.testimonial-card__role {
  display: block;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.testimonials__stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
}

.stat__icon {
  font-size: 1.5rem;
}

/* ============================================
   GUARANTEE
   ============================================ */
.guarantee {
  padding: var(--section-padding) 0;
  background: var(--color-gray-light);
}

.guarantee__inner {
  display: flex;
  align-items: center;
  gap: 3rem;
  max-width: 800px;
  margin: 0 auto;
}

.guarantee__badge {
  flex-shrink: 0;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(255, 165, 0, 0.3);
}

.guarantee__shield {
  font-size: 2rem;
  margin-bottom: 0.15rem;
}

.guarantee__badge span {
  display: block;
  font-size: 0.8125rem;
  line-height: 1.2;
}

.guarantee__content h2 {
  font-size: var(--fs-h3);
  margin-bottom: 1rem;
}

.guarantee__content p {
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ============================================
   CREDIBILITY
   ============================================ */
.credibility {
  padding: var(--section-padding) 0;
  background: var(--color-white);
}

.credibility__text {
  max-width: 800px;
  margin: 0 auto 2.5rem;
  text-align: center;
  color: var(--color-text-light);
  font-size: 1.0625rem;
  line-height: 1.8;
}

.credibility__icons {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.credibility__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-small);
  color: var(--color-text);
}

.credibility__item span:first-child {
  font-size: 1.75rem;
}

/* ============================================
   FAQ
   ============================================ */
.faq {
  padding: var(--section-padding) 0;
  background: var(--color-gray-light);
}

.faq__list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq__item {
  background: var(--color-white);
  border: 1px solid var(--color-gray-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.25s;
}

.faq__item[open] {
  box-shadow: var(--shadow-card);
}

.faq__question {
  padding: 1.25rem 1.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.0625rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  color: var(--color-text);
  transition: color 0.2s;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--color-primary);
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq__item[open] .faq__question::after {
  content: '\2212';
}

.faq__question:hover {
  color: var(--color-primary);
}

.faq__answer {
  padding: 0 1.5rem 1.25rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ============================================
   FINAL CTA
   ============================================ */
.cta-final {
  padding: var(--section-padding) 0;
  background: linear-gradient(135deg, var(--color-cream) 0%, var(--color-soft-blue) 100%);
  text-align: center;
}

.cta-final h2 {
  font-size: var(--fs-h2);
  margin-bottom: 1.25rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-final__text {
  font-size: 1.125rem;
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.cta-final__trust {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
  font-size: var(--fs-small);
  color: var(--color-text-light);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 0 1.5rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer__brand .nav__logo-icon {
  font-size: 1.5rem;
}

.footer__brand .nav__logo-text {
  font-size: 1.125rem;
  color: var(--color-white);
}

.footer__tagline {
  margin-top: 0.5rem;
  font-size: var(--fs-small);
}

.footer__nav h3,
.footer__legal h3 {
  color: var(--color-white);
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.footer__nav a,
.footer__legal a {
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--fs-small);
  display: block;
  padding: 0.25rem 0;
  transition: color 0.2s;
}

.footer__nav a:hover,
.footer__legal a:hover {
  color: var(--color-white);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.8125rem;
}

/* ============================================
   RESPONSIVE — Mobile First Overrides
   ============================================ */

/* Tablet and below */
@media (max-width: 1024px) {
  .hero__container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__text {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero__proof {
    justify-content: center;
  }

  .hero__visual {
    order: -1;
  }

  .hero__illustration {
    max-width: 360px;
  }

  .problems__grid,
  .features__grid,
  .testimonials__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 768px) {
  .nav__toggle {
    display: flex;
  }

  .nav__links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--color-gray-border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-120%);
    transition: transform 0.3s ease;
    z-index: 99;
  }

  .nav__links.is-open {
    transform: translateY(0);
  }

  .nav__cta {
    width: 100%;
    text-align: center;
    padding: 0.75rem 1.25rem;
  }

  .problems__grid,
  .features__grid,
  .testimonials__grid {
    grid-template-columns: 1fr;
  }

  .guarantee__inner {
    flex-direction: column;
    text-align: center;
  }

  .guarantee__badge {
    width: 120px;
    height: 120px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .testimonials__stats {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .credibility__icons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .cta-final__trust {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .btn--primary,
  .btn--secondary,
  .btn--large {
    width: 100%;
    max-width: 360px;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .hero__proof {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .hero__illustration {
    max-width: 280px;
  }

  .hero__illustration-moon {
    font-size: 2rem;
  }

  .hero__illustration-parent {
    font-size: 2.5rem;
  }

  .hero__illustration-child {
    font-size: 2rem;
  }

  .hero__illustration-book {
    font-size: 1.5rem;
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Skip to content */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}