/* ==================================================
   1. GLOBAL / RESET
================================================== */

:root {
  --bg: #fff7f8;
  --bg-alt: #fff0f2;
  --text: #1f1f1f;
  --muted: #6f6a6b;
  --primary: #d84b63;
  --dark: #761B2A;
  --line: #ecd9dd;
  --white: #ffffff;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Libre Franklin", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  overflow-x: hidden;
}

main {
  width: 100%;
}
#back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;

  width: 66px;
  height: 56px;

  border: none;
  cursor: pointer;

  background: rgba(216, 75, 99, 0.12);
  color: #761B2A;

  font-size: 2rem;
  font-weight: 500;

  border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;


  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;

  z-index: 9999;
  background: rgba(216, 75, 99, 0.1);
  border: none;
}
#back-to-top.show {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  transform: translateY(-3px);
}

/* ==================================================
   2. TYPOGRAPHY
================================================== */

.text-block {
  max-width: 520px;
}

.text-block .eyebrow,
.text-block h2,
.text-block p {
  text-align: left;
}

.eyebrowh1 {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
  text-align: left;
  padding-left: 8vw;
}
.eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
  text-align: left;
}

h1 {
  font-size: clamp(12rem, 10vw, 24rem);
  line-height: 0.95;
  margin-bottom: 1.5rem;
  color: var(--dark);
  text-align: left;
  font-weight: 700;
  letter-spacing: -0.02em;
  padding-left: 8vw;
}

.highlight {
  font-weight: 700;
  letter-spacing: -0.04em;
}

.small-title {
  display: block;
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.main-title {
  display: block;
  font-size: clamp(5rem, 12vw, 11rem);
  font-weight: 800;
  letter-spacing: -0.05em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
  margin-bottom: 1rem;
  color: var(--dark);
  text-align: left;
}

p {
  font-size: 1rem;
  max-width: 60ch;
  color: var(--muted);
  text-align: left;
}

.intro-text {
  font-size: 1.1rem;
  max-width: 55ch;
}

.section-note {
  margin-top: 2rem;
  font-size: 0.95rem;
}
/* Fix Prevalence / Diagnosis text alignment */
.prevalence-section .story-content {
  max-width: 1200px;
}

.prevalence-section .story-step {
  max-width: 1000px;
  margin-left: 0;
  margin-right: auto;
  text-align: left;
}

.prevalence-section .story-step .eyebrow,
.prevalence-section .story-step h2,
.prevalence-section .story-step p {
  text-align: left;
}

/* ==================================================
   3. BACKGROUND
================================================== */
.info-section,
.hormones-section {
  background: var(--bg-alt);
}

.section-hero {
  color:#ffffff;
}

.prevalence-section,
.impact-section {
  background: var(--bg);
}

.symptoms-section {
  background: #ecd9dd;
}

/* ==================================================
   4. GENERAL LAYOUT
================================================== */
.section {
  min-height: 100vh;
  padding: 5rem 2rem;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.content {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.centered {
  text-align: center;
  max-width: 900px;
}

.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  height: 600px;
}


/* ==================================================
   5. HERO SECTION
================================================== */

.hero {
  background: linear-gradient(to bottom, #fff7f8, #fff1f3);
}

.background-shapes {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* ==================================================
   6. WHAT IS PCOS SECTION
================================================== */

.blob {
  position: absolute;
  border-radius: 48% 52% 60% 40% / 43% 42% 58% 57%;
  background: rgba(216, 75, 99, 0.12);
  filter: blur(6px);
  animation: float 12s ease-in-out infinite;
}

.blob-1 {
  width: 220px;
  height: 180px;
  top: 10%;
  left: 10%;
}

.blob-2 {
  width: 260px;
  height: 220px;
  top: 18%;
  right: 12%;
}

.blob-3 {
  width: 180px;
  height: 160px;
  bottom: 18%;
  left: 18%;
}

.blob-4 {
  width: 240px;
  height: 200px;
  bottom: 10%;
  right: 20%;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(20px, -30px);
  }
}

/* PCOS QUOTE VISUAL */
.pcos-visual {
  position: relative;
  min-height: 620px;
  overflow: hidden;
}

.pcos-source {
  position: absolute;
  bottom: -40px;
  left: 0;
  font-size: 0.75rem;
  color: #8a7f82;
  opacity: 0.7;
  max-width: 700px;
  text-align: left;
}

.quote-blob {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  color: var(--dark);
  box-shadow: 0 8px 30px rgba(118, 27, 42, 0.08);
}

.quote-text {
  max-width: 12ch;
  font-weight: 500;
  color: var(--dark);
  font-size: 0.85rem;
}

.quote-blob-1 { width: 170px; height: 170px; top: 10%; left: 4%; background: rgba(118, 27, 42, 0.16); border-radius: 42% 58% 53% 47% / 38% 43% 57% 62%; animation: float-a 10s infinite ease-in-out; }
.quote-blob-2 { width: 130px; height: 130px; top: 12%; left: 36%; background: rgba(216, 75, 99, 0.14); border-radius: 58% 42% 49% 51% / 43% 39% 61% 57%; animation: float-b 11s infinite ease-in-out; }
.quote-blob-3 { width: 115px; height: 115px; top: 16%; right: 8%; background: rgba(244, 184, 194, 0.55); border-radius: 46% 54% 60% 40% / 42% 52% 48% 58%; animation: float-c 9s infinite ease-in-out; }
.quote-blob-4 { width: 185px; height: 185px; top: 32%; left: 10%; background: rgba(255, 214, 222, 0.82); border-radius: 52% 48% 41% 59% / 47% 38% 62% 53%; animation: float-d 12s infinite ease-in-out; }
.quote-blob-5 { width: 155px; height: 155px; top: 40%; left: 42%; background: rgba(118, 27, 42, 0.12); border-radius: 61% 39% 51% 49% / 45% 56% 44% 55%; animation: float-e 8s infinite ease-in-out; }
.quote-blob-6 { width: 135px; height: 135px; top: 70%; right: 10%; background: rgba(216, 75, 99, 0.18); border-radius: 49% 51% 57% 43% / 40% 47% 53% 60%; animation: float-f 10s infinite ease-in-out; }
.quote-blob-7 { width: 120px; height: 120px; bottom: 55%; left: 52%; background: rgba(244, 184, 194, 0.45); border-radius: 57% 43% 46% 54% / 50% 40% 60% 50%; animation: float-g 11s infinite ease-in-out; }
.quote-blob-8 { width: 150px; height: 150px; bottom: 20%; left: 10%; background: rgba(118, 27, 42, 0.14); border-radius: 44% 56% 52% 48% / 41% 58% 42% 59%; animation: float-h 9s infinite ease-in-out; }
.quote-blob-9 { width: 125px; height: 125px; bottom: 14%; right: 38%; background: rgba(118, 27, 42, 0.14); border-radius: 63% 37% 55% 45% / 43% 51% 49% 57%; animation: float-i 10s infinite ease-in-out; }
.quote-blob-10 { width: 125px; height: 135px; bottom: 45%; right: 5%; background: rgba(216, 75, 99, 0.14); border-radius: 47% 53% 38% 62% / 48% 36% 64% 52%; animation: float-j 12s infinite ease-in-out; }
.quote-blob-11 { width: 155px; height: 125px; bottom: 4%; right: 58%; background: rgba(244, 184, 194, 0.45); border-radius: 63% 37% 55% 45% / 43% 51% 49% 57%; animation: float-i 10s infinite ease-in-out; }
.quote-blob-12 { width: 185px; height: 175px; bottom: 20%; right: 10%; background: rgba(216, 75, 99, 0.14); border-radius: 47% 53% 38% 62% / 48% 36% 64% 52%; animation: float-j 12s infinite ease-in-out; }

@keyframes float-a { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-8px,-10px)} }
@keyframes float-b { 0%,100%{transform:translate(0,0)} 50%{transform:translate(8px,-8px)} }
@keyframes float-c { 0%,100%{transform:translate(0,0)} 50%{transform:translate(6px,-10px)} }
@keyframes float-d { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-10px,8px)} }
@keyframes float-e { 0%,100%{transform:translate(0,0)} 50%{transform:translate(8px,-6px)} }
@keyframes float-f { 0%,100%{transform:translate(0,0)} 50%{transform:translate(10px,6px)} }
@keyframes float-g { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-8px,8px)} }
@keyframes float-h { 0%,100%{transform:translate(0,0)} 50%{transform:translate(6px,10px)} }
@keyframes float-i { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-6px,-8px)} }
@keyframes float-j { 0%,100%{transform:translate(0,0)} 50%{transform:translate(8px,8px)} }

/* ==================================================
   7. PREVALENCE + DIAGNOSIS SECTION
================================================== */
.story-content {
  position: relative;
  max-width: 1200px;
}

.story-step {
  min-height: 140px;
}

.hidden {
  display: none;
}

.silhouette-grid {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: nowrap;
  overflow-x: visible;
  padding: 80px 0 50px;
  margin-left: -150px;
}

.body-shape {
  height: 400px;
  width: auto;
  flex: 0 0 auto;
  display: block;
  object-fit: contain;
}

.body-shape.highlight {
  animation: pulseBody 2.5s ease-in-out infinite;
}

.no-bounce {
  animation: none !important;
}

@keyframes pulseBody {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.story-body {
  transition: opacity 0.8s ease;
}

.story-body.fade {
  opacity: 0.15;
}

.step-btn {
  position: absolute;
  right: 0;
  top: 70%;
  transform: translateY(-50%);
  background: var(--dark);
  color: white;
  border: none;
  padding: 0.9rem 1.3rem;
  border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
  cursor: pointer;
  z-index: 3;
}

.step-btn::before {
  content: "";
  position: absolute;
  inset: -12px;
  background: rgba(216, 75, 99, 0.18);
  border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
  z-index: -1;
  pointer-events: none;
}

/* ==================================================
   8. SYMPTOMS SECTION
================================================== */

.symptom-source {
  font-size: 0.8rem;
  color: #8a7f82;
  max-width: 700px;
  margin-top: 0rem;
}
.symptoms-section {
  min-height: 200px;
  padding: 5rem 2rem;
}
.symptoms-section .split-layout {
  align-items: flex-start;
  margin-top: 50px;
}

.symptoms-visual {
  display: grid;
  grid-template-columns: 180px 1fr;
  border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
  gap: 80px;
  align-items: start;
  margin-top: 150px;
}

.symptom-buttons {
  display: flex;
  flex-direction: column;
  border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
  gap: 20px;
}

.symptom-filter {
  border: none;
  background: #f5edee;
  color: var(--dark);
  padding: 16px 22px;
  border-radius: 58% 42% 55% 45% / 45% 55% 45% 55%;
  text-align: center;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  min-height: 58px;
}
.symptom-filter:nth-child(1) {
  border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
}

.symptom-filter:nth-child(2) {
  border-radius: 45% 55% 60% 40% / 55% 45% 50% 50%;
}

.symptom-filter:nth-child(3) {
  border-radius: 55% 45% 40% 60% / 45% 60% 40% 55%;
}

.symptom-filter:nth-child(4) {
  border-radius: 50% 50% 60% 40% / 60% 40% 55% 45%;
}

.symptom-filter:nth-child(5) {
  border-radius: 42% 58% 52% 48% / 50% 45% 55% 50%;
}

.symptom-filter:hover {
  transform: translateY(-1px);
}

.symptom-filter.active {
  background: var(--dark);
  color: #ffffff;
}

.symptom-bubble {
  position: relative;
  padding: 40px 36px;
  min-height: 420px;
  min-width: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 1;
  border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
}

.symptom-bubble::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(216, 75, 99, 0.10);
  border-radius: 30px 70px 50px 60px / 60px 40px 70px 50px;
  z-index: -1;
}

.symptom-stat {
  color: var(--dark);
  font-size: 1rem;
  max-width: 42ch;
  margin-bottom: 1.5rem;
}

.dot-grid {
  display: grid;
  grid-template-columns: repeat(5, 28px);
  gap: 18px;
  margin-bottom: 1.5rem;
  border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;

}

.dot {
  width: 28px;
  height: 28px;
  border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
  background: #ffffff;
  opacity: 0.45;
  transition: all 0.35s ease;

}

.dot.active-dot {
  background: var(--dark);
  opacity: 1;
  transform: scale(1.04);
}

.symptom-stat {
  margin-bottom: 1.5rem;
}

.dot-grid {
  margin-bottom: 1.5rem;
  
}



/* ==================================================
   9. HORMONES SECTION
================================================== */

.visual-placeholder {
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  color: var(--muted);
  text-align: center;
}

.hormone-body {
  height: 380px;
}
.hormones-section {
  min-height: 80vh;
}
.abstract-composition {
  position: relative;
  min-height: 420px;
}

.hormone-map {
  position: relative;
  min-height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hormone-body {
  height: 530px;
  width: auto;
  opacity: 0.3;
  transform: translate(-60px, 50px);
}

.hormone-node {
  position: absolute;
  width: 18px;
  height: 18px;
  background: #761B2A;
  border: none;
  border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
  cursor: pointer;
  z-index: 3;
  
}

.hormone-node::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
  background: rgba(216, 75, 99, 0.50);
  animation: nodePulse 2.4s ease-in-out infinite;
  z-index: -1;
}

.hormone-node.active {
  transform: scale(1.25);
}

.hormone-node.active::after {
  animation: none;
  opacity: 0;
}

@keyframes nodePulse {
  0%, 100% {
    transform: scale(0.8);
    opacity: 0.45;
  }
  50% {
    transform: scale(1.5);
    opacity: 0.08;
  }
}

/* node positions */
.node-androgen {
  top: 13%;
  left: 41%;
}

.node-core {
  top: 30%;
  left: 40%;
}

.node-insulin {
  top: 50%;
  left: 38%;
}

.node-cycle {
  top: 62%;
  left: 38%;
}

.hormone-info {
  position: absolute;
  left: 65%;
  top: 45%;
  max-width: 260px;
  padding: 1.2rem;
  background: #761B2A;
  border-radius: 30px 60px 45px 50px / 45px 35px 60px 50px;
  color: #ffffff;
  font-size: 0.9rem;
  line-height: 1.4;
  transition: left 0.35s ease, top 0.35s ease, opacity 0.25s ease;
  z-index: 4;
}

.source-note {
  margin-top: 2rem;
  font-size: 0.75rem;
  color: #8a7f82;
  opacity: 0.7;
  max-width: 1500px;
}


/* ==================================================
   LONG-TERM IMPACT SECTION
================================================== */

.longterm-section {
  background: var(--bg-alt);
  min-height: 85vh;
}

.impact-circle-wrap {
  position: relative;
  min-height: 520px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.impact-circle {
  position: relative;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(118, 27, 42, 0.22);
  background: #761B2A;
  border-radius: 65% 45% 60% 45% / 55% 60% 45% 50%;
}

.ovary-art {
  position: absolute;
  width: 250px;
  height: auto;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* clickable nodes */
.impact-node {
  position: absolute;
  width: 86px;
  height: 86px;
  border: none;
  border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
  background: #ecd9dd;
  color: #761B2A;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.72rem;
  line-height: 1.1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.6rem;
  transition: all 0.35s ease;
  z-index: 3;
}

.impact-node.expanded {
  width: 180px;
  height: 180px;
  border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%;
  background: #761B2A;
  color: white;
  padding: 1.2rem;
  flex-direction: column;
  gap: 0.6rem;
  z-index: 6;
}

.node-title {
  font-size: 0.85rem;
  font-weight: 700;
}

.node-fact {
  font-size: 0.72rem;
  line-height: 1.25;
  font-weight: 400;
}

.impact-node:hover {
  transform: scale(1.06);
}
.impact-node::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: rgba(216, 75, 99, 0.25);
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.35s ease;
  z-index: -1;
}
.impact-node:hover:not(.expanded) {
  transform: scale(1.08);
}

.impact-node:hover:not(.expanded)::after {
  opacity: 0.5;
  transform: scale(1.4);
}

@keyframes softPulse {
  0%, 100% {
    transform: scale(0.9);
    opacity: 0.25;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.1;
  }
}

.impact-node:not(.expanded)::after {
  animation: softPulse 3s ease-in-out infinite;
}
.impact-node.expanded::after {
  animation: none;
  opacity: 0;
}

/* node positions */
.node-diabetes {
  top: -42px;
  left: 40%;
}

.node-diabetes.expanded {
  transform: translateX(-50%) translateY(-60px);
}
.impact-node:hover:not(.expanded) {
  transform: scale(1.06);
}

.node-heart {
  top: 85px;
  right: -42px;
}

.node-fertility {
  bottom: 20px;
  right: 12px;
}

.node-mental {
  bottom: 20px;
  left: 12px;
}

.node-metabolic {
  top: 85px;
  left: -42px;
}

@media (max-width: 900px) {
  .impact-circle {
    width: 320px;
    height: 320px;
  }

  .impact-node {
    width: 72px;
    height: 72px;
    font-size: 0.65rem;
  }

  .ovary-art {
    width: 110px;
  }

  .impact-fact {
    position: relative;
    margin-top: 2rem;
    right: auto;
    bottom: auto;
  }
}
.impact-node.expanded {
  transform-origin: center;
}

.node-heart.expanded {
  transform: translateX(60px);
}
.node-fertility.expanded {
  transform: translate(40px, 40px);
}
.node-mental.expanded {
  transform: translate(-40px, 40px);
}
.node-metabolic.expanded {
  transform: translateX(-60px);
}


/* ==================================================
   FINAL ACTION SECTION
================================================== */

.action-section {
  background: var(--bg);
  min-height: 85vh;
}

.change-visual {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.2rem;
}

.change-visual {
  width: 100%;
}

.bubble-1 {
  transform: translateY(0px);
  border-radius: 50% 50% 60% 40% / 40% 60% 50% 50%;
}

.bubble-2 {
  transform: translateY(20px);
  border-radius: 40% 60% 50% 50% / 60% 40% 60% 40%;
}

.bubble-3 {
  transform: translateY(-10px);
  border-radius: 55% 60% 45% 55% / 50% 60% 40% 50%;
}
@keyframes floatSoft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.change-bubble {
  animation: floatSoft 6s ease-in-out infinite;
}
.change-stat {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.4rem 1.6rem;
  background: rgba(216, 75, 99, 0.12);
  border-radius: 40px 70px 50px 60px / 60px 40px 70px 50px;
}

.change-number {
  font-size: 5rem;
  line-height: 0.9;
  font-weight: 800;
  color: #761B2A;
}

.change-stat p {
  color: #761B2A;
  font-weight: 600;
  max-width: 12ch;
}

.change-arrow {
  margin-left: 4rem;
  font-size: 2rem;
  color: #761B2A;
  opacity: 0.7;
}
.change-outcomes {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  margin-top: 1rem;
  align-items: center;
  flex-wrap: nowrap;
}

.change-bubble {
  width: 150px;
  height: 150px;
  flex: 0 0 150px;
  padding: 1rem;
  background: #761B2A;
  color: white;
  font-size: 0.85rem;
  line-height: 1.25;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 45% 55% 60% 40% / 50% 45% 55% 50%;
}
.change-bubble {
  box-shadow: 0 10px 30px rgba(118, 27, 42, 0.15);
}
.cta {
  font-weight: 600;
  color: #761B2A;
  text-decoration: none;
  border-bottom: 2px solid #761B2A;
}

/* ==================================================
   11. RESPONSIVE
================================================== */
@media (max-width: 900px) {
  .section {
    padding: 4rem 1.5rem;
  }

  .split-layout {
    grid-template-columns: 1fr;
  }

  .pcos-visual {
    min-height: 520px;
  }

  .silhouette-grid {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .body-shape {
    height: 260px;
  }

  .symptoms-visual {
    grid-template-columns: 1fr;
  }

  .symptom-buttons {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .symptom-bubble {
    min-width: 0;
  }

  .dot-grid {
    grid-template-columns: repeat(5, 24px);
  }

  .dot {
    width: 24px;
    height: 24px;
  }
}