/* ========================================
   Sections — Per-section Styles
   ======================================== */

/* ---- HERO ---- */

.section--hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 5rem;
  overflow: hidden;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.hero__headline {
  font-size: var(--text-4xl);
  font-weight: var(--font-weight-heading);
  line-height: var(--line-height-heading);
  letter-spacing: var(--letter-spacing-heading);
  margin-bottom: var(--space-lg);
}

.hero__headline {
  font-family: var(--font-secondary);
}

.hero__subtext {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  line-height: var(--line-height-body);
  margin-bottom: var(--space-2xl);
  max-width: 520px;
}

.hero__subtext {
  font-family: var(--font-secondary);
}

.hero__cta-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

@media (min-width: 480px) {
  .hero__cta-group {
    flex-direction: row;
    align-items: center;
  }
}

.hero__newsletter-note {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-style: italic;
}

.hero__newsletter-note {
  font-family: var(--font-secondary);
}

/* Hero decorative elements */
.hero__deco {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero__deco-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
}

.hero__deco-shape--1 {
  width: 500px;
  height: 500px;
  background: linear-gradient(135deg, var(--color-accent-1), var(--color-accent-2));
  top: -10%;
  right: -10%;
  animation: driftRight 20s ease-in-out infinite;
}

.hero__deco-shape--2 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, var(--color-accent-3), var(--color-accent-4));
  bottom: 10%;
  right: 20%;
  animation: driftLeft 15s ease-in-out infinite;
}

.hero__deco-shape--3 {
  width: 200px;
  height: 200px;
  background: var(--color-accent-5);
  top: 30%;
  right: 5%;
  animation: float 10s ease-in-out infinite;
}

/* Grain overlay (calm only) */
.hero__grain {
  position: absolute;
  inset: 0;
  opacity: var(--grain-opacity);
  pointer-events: none;
  z-index: 1;
  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.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 150px;
}

@media (min-width: 768px) {
  .hero__headline {
    font-size: var(--text-5xl);
  }
}

/* ---- PROBLEM SECTION ---- */

.section--problem {
  background-color: var(--color-bg-secondary);
}

.problem__body {
  max-width: 720px;
  margin: 0 auto var(--space-3xl);
}

.problem__body p {
  font-size: var(--text-lg);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

.problem__body p {
  font-family: var(--font-secondary);
}

.problem__stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-gap);
  max-width: 800px;
  margin: 0 auto;
}

@media (min-width: 480px) {
  .problem__stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Section transition phrase */
.section-transition {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  font-style: italic;
}

.section-transition {
  font-family: var(--font-secondary);
}

/* ---- VOICES SECTION ---- */

.section--voices {
  background-color: var(--color-bg-primary);
}

.voices__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-gap);
}

@media (min-width: 480px) {
  .voices__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .voices__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Masonry-like effect with varying heights */
  .voices__grid .card--quote:nth-child(3n + 1) {
    margin-top: 0;
  }
  .voices__grid .card--quote:nth-child(3n + 2) {
    margin-top: var(--space-xl);
  }
  .voices__grid .card--quote:nth-child(3n) {
    margin-top: var(--space-md);
  }
}

/* Avatar colors for variety */
.card--quote:nth-child(1) .card__avatar  { background: var(--color-accent-1); }
.card--quote:nth-child(2) .card__avatar  { background: var(--color-accent-2); }
.card--quote:nth-child(3) .card__avatar  { background: var(--color-accent-4); }
.card--quote:nth-child(4) .card__avatar  { background: var(--color-accent-3); color: #1a1a2e; }
.card--quote:nth-child(5) .card__avatar  { background: var(--color-brand); }
.card--quote:nth-child(6) .card__avatar  { background: var(--color-accent-2); }
.card--quote:nth-child(7) .card__avatar  { background: var(--color-accent-1); }
.card--quote:nth-child(8) .card__avatar  { background: var(--color-accent-4); }
.card--quote:nth-child(9) .card__avatar  { background: var(--color-accent-2); }
.card--quote:nth-child(10) .card__avatar { background: var(--color-accent-1); }

/* ---- SOLUTION SECTION ---- */

.section--solution {
  background-color: var(--color-bg-secondary);
}

.solution__intro {
  max-width: 640px;
  margin-bottom: var(--space-3xl);
}

.solution__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-gap);
}

@media (min-width: 768px) {
  .solution__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* CSS Icons */
.icon-hourglass,
.icon-community,
.icon-content {
  width: 32px;
  height: 32px;
  position: relative;
}

.icon-hourglass::before,
.icon-hourglass::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
}

.icon-hourglass::before {
  top: 0;
  border-top: 14px solid currentColor;
}

.icon-hourglass::after {
  bottom: 0;
  border-bottom: 14px solid currentColor;
}

.icon-community::before,
.icon-community::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 2px solid currentColor;
}

.icon-community::before {
  width: 20px;
  height: 20px;
  top: 2px;
  left: 2px;
}

.icon-community::after {
  width: 20px;
  height: 20px;
  bottom: 2px;
  right: 2px;
}

.icon-content::before {
  content: '';
  position: absolute;
  inset: 2px;
  border: 2px solid currentColor;
  border-radius: 2px;
}

.icon-content::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 5px 0 currentColor, 0 10px 0 currentColor;
}

/* ---- DETOX SECTION ---- */

.section--detox {
  background-color: var(--color-bg-primary);
  position: relative;
}

.detox__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

@media (min-width: 768px) {
  .detox__layout {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
  }
}

.detox__days {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.detox__form-card {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border-light);
  border-radius: var(--border-radius-lg);
  padding: var(--space-2xl);
}

.detox__form-title {
  font-size: var(--text-xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-sm);
}

.detox__form-subtitle {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-xl);
}

/* ---- HOW IT WORKS ---- */

.section--steps {
  background-color: var(--color-bg-secondary);
}

/* ---- PRICING SECTION ---- */

.section--pricing {
  background-color: var(--color-bg-primary);
}

.pricing__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-gap);
  max-width: 960px;
  margin: 0 auto;
  align-items: start;
}

@media (min-width: 768px) {
  .pricing__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
  }

  .pricing__grid .card--pricing.card--featured {
    transform: scale(1.05);
    z-index: 1;
  }
}

/* ---- FAQ SECTION ---- */

.section--faq {
  background-color: var(--color-bg-secondary);
}

/* ---- FOOTER ---- */

.footer {
  background-color: var(--color-bg-dark);
  color: var(--color-text-on-dark);
  padding: var(--space-4xl) var(--space-lg) var(--space-xl);
}

.footer a {
  color: var(--color-text-on-dark);
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.footer a:hover {
  opacity: 1;
  color: var(--color-text-on-dark);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-3xl);
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: var(--space-xl);
  }
}

.footer__brand {
  max-width: 280px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  font-size: var(--text-lg);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-on-dark);
  opacity: 1;
}

.footer__logo svg,
.footer__logo img[data-hws-img] {
  height: var(--footer-logo-height);
  width: auto;
}

.footer__tagline {
  font-size: var(--text-sm);
  opacity: 0.6;
  line-height: 1.6;
}

.footer__tagline {
  font-family: var(--font-secondary);
  font-style: italic;
}

.footer__heading {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
  opacity: 0.5;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__links a {
  font-size: var(--text-sm);
  padding: var(--space-xs) 0;
}

.footer__social-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
}

.footer__newsletter .input {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--color-text-on-dark);
}

.footer__newsletter .input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.footer__newsletter .input:focus {
  border-color: var(--color-accent-1);
  box-shadow: 0 0 0 3px rgba(153, 93, 129, 0.2);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer__copyright {
  font-size: var(--text-xs);
  opacity: 0.4;
}

.footer__legal {
  display: flex;
  gap: var(--space-lg);
}

.footer__legal a {
  font-size: var(--text-xs);
}

