/* ============================================================
   Women Fitness Calculator — global stylesheet
   ============================================================ */

/* --- Variables (index names + aliases for inner pages) --- */
:root {
  --pink-deep: #FF6B9A;
  --pink-mid: #FF8FAB;
  --pink-light: #FFB3C6;
  --pink-pale: #FFF0F4;
  --pink-blush: #FFE4EC;
  --white: #FFFFFF;
  --gray-100: #F8F9FA;
  --gray-200: #F1F1F1;
  --gray-600: #6C757D;
  --gray-800: #343A40;
  --text-dark: #2D2D2D;
  --font-display: "Playfair Display", serif;
  --font-body: "DM Sans", sans-serif;
  --radius-xl: 20px;
  --radius-lg: 14px;
  --radius-md: 10px;
  --shadow-soft: 0 8px 32px rgba(255, 107, 154, 0.1);
  --shadow-card: 0 4px 24px rgba(255, 107, 154, 0.12);
  --shadow-btn: 0 6px 22px rgba(255, 107, 154, 0.35);
  /* Aliases used on About / Contact / Legal pages */
  --pk: var(--pink-deep);
  --pk2: var(--pink-mid);
  --pkl: var(--pink-light);
  --pkp: var(--pink-pale);
  --pkb: var(--pink-blush);
  --g6: var(--gray-600);
  --g8: var(--gray-800);
  --td: var(--text-dark);
  --fd: var(--font-display);
  --fb: var(--font-body);
  --rx: var(--radius-xl);
  --rl: var(--radius-lg);
  --rm: var(--radius-md);
  --ss: var(--shadow-soft);
  --sc: var(--shadow-card);
  --sb: var(--shadow-btn);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* --- Shared utility / inline replacements --- */
.topbar-follow-label {
  font-size: 0.8rem;
  opacity: 0.85;
}

.navbar-toggler .bi-toggler-icon {
  font-size: 1.3rem;
  color: var(--pink-deep);
}

.cta-inner-z {
  position: relative;
  z-index: 2;
}

.banner-intro {
  color: var(--gray-600);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 520px;
}

.banner-intro-wide {
  max-width: 540px;
}

.text-accent-pink {
  color: var(--pink-deep);
}

.link-pink {
  color: var(--pink-deep);
  text-decoration: none;
}

.link-pink:hover {
  color: var(--pink-mid);
}

.toc-heading-icon {
  color: var(--pink-deep);
}

.about-hero-svg {
  width: 240px;
}

.val-divider-tall {
  height: 60px;
}

/* --- Top bar --- */
#top-bar {
  background: linear-gradient(90deg, var(--pink-deep) 0%, var(--pink-mid) 100%);
  padding: 8px 0;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.02em;
}

#top-bar a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.2s;
}

#top-bar a:hover {
  color: #fff;
}

.topbar-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.78rem;
  margin-left: 6px;
  transition: background 0.2s, transform 0.2s;
  color: #fff;
  text-decoration: none;
}

.topbar-social a:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: scale(1.1);
}

/* --- Navbar --- */
#main-navbar {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 143, 171, 0.12);
  padding: 14px 0;
  transition: box-shadow 0.3s;
}

#main-navbar.scrolled {
  box-shadow: 0 4px 24px rgba(255, 107, 154, 0.1);
}

.navbar-brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--pink-deep) !important;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  line-height: 0;
}

.navbar-brand .site-logo--nav {
  height: 48px;
  width: auto;
  max-width: min(220px, 58vw);
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.nav-link {
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--gray-800) !important;
  padding: 6px 14px !important;
  border-radius: var(--radius-md);
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--pink-deep) !important;
  background: var(--pink-pale);
}

.navbar-toggler {
  border: 1.5px solid var(--pink-light);
  border-radius: 8px;
  padding: 5px 9px;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* --- Index: Hero --- */
#hero {
  background: linear-gradient(135deg, var(--pink-pale) 0%, #fff5f8 40%, var(--pink-blush) 100%);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 179, 198, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

#hero::after {
  content: "";
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 107, 154, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 107, 154, 0.1);
  border: 1px solid rgba(255, 107, 154, 0.25);
  color: var(--pink-deep);
  border-radius: 50px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
  margin-bottom: 18px;
}

.hero-title span {
  background: linear-gradient(135deg, var(--pink-deep), var(--pink-mid));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 500px;
}

.btn-primary-pink {
  background: linear-gradient(135deg, var(--pink-deep), var(--pink-mid));
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 13px 30px;
  font-weight: 600;
  font-size: 0.97rem;
  box-shadow: var(--shadow-btn);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  display: inline-block;
}

.btn-primary-pink:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(255, 107, 154, 0.45);
  color: #fff;
}

.btn-outline-pink {
  background: transparent;
  color: var(--pink-deep);
  border: 2px solid var(--pink-deep);
  border-radius: 50px;
  padding: 11px 28px;
  font-weight: 600;
  font-size: 0.97rem;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}

.btn-outline-pink:hover {
  background: var(--pink-deep);
  color: #fff;
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
}

.hero-stat .stat-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--pink-deep);
  display: block;
}

.hero-stat .stat-label {
  font-size: 0.78rem;
  color: var(--gray-600);
  font-weight: 500;
}

.hero-stat-divider {
  width: 1px;
  background: rgba(255, 107, 154, 0.2);
  align-self: stretch;
}

.hero-illustration {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-img-wrap {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.hero-img-bg {
  position: absolute;
  inset: 0;
  border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%;
  background: linear-gradient(135deg, rgba(255, 107, 154, 0.15), rgba(255, 143, 171, 0.2));
  animation: morphBlob 6s ease-in-out infinite alternate;
}

@keyframes morphBlob {
  0% {
    border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%;
  }
  100% {
    border-radius: 60% 40% 45% 55% / 45% 55% 50% 50%;
  }
}

.hero-svg-art {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 400px;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 20px 48px rgba(255, 107, 154, 0.18));
}

.hero-pill {
  position: absolute;
  background: #fff;
  border-radius: 50px;
  padding: 8px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dark);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 7px;
  animation: floatPill 3s ease-in-out infinite alternate;
  z-index: 3;
}

.hero-pill .pill-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink-deep), var(--pink-mid));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.hero-pill-1 {
  top: 12%;
  left: -6%;
  animation-delay: 0s;
}

.hero-pill-2 {
  bottom: 18%;
  right: -4%;
  animation-delay: 1s;
}

.hero-pill-3 {
  top: 56%;
  left: -8%;
  animation-delay: 0.5s;
}

@keyframes floatPill {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-10px);
  }
}

/* --- Index: About section --- */
#about {
  padding: 90px 0;
  background: var(--white);
}

.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--pink-deep);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.25;
  margin-bottom: 16px;
}

.about-img-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.about-img-wrap img,
.about-img-placeholder {
  width: 100%;
  border-radius: var(--radius-xl);
}

.about-img-placeholder {
  height: 550px;
  background: linear-gradient(135deg, #fffae4, #fffae4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-img-placeholder svg {
  width: 220px;
  opacity: 0.7;
}

.about-badge-float {
  position: absolute;
  bottom: 28px;
  left: 28px;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 14px 20px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  gap: 12px;
}

.about-badge-float .badge-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink-deep), var(--pink-mid));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.about-badge-float .badge-text strong {
  font-size: 1.1rem;
  color: var(--text-dark);
}

.about-badge-float .badge-text span {
  font-size: 0.78rem;
  color: var(--gray-600);
  display: block;
}

.about-content p {
  font-size: 1rem;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-feature-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}

.about-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.97rem;
  color: var(--text-dark);
  font-weight: 500;
}

.about-feature-list li .check-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink-deep), var(--pink-mid));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-top: 1px;
}

/* --- Index: Calculators --- */
#calculators {
  padding: 90px 0;
  background: var(--pink-pale);
}

.calc-card {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  border: 1.5px solid rgba(255, 143, 171, 0.15);
  box-shadow: var(--shadow-card);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.calc-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--pink-deep), var(--pink-mid));
  opacity: 0;
  transition: opacity 0.28s;
}

.calc-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(255, 107, 154, 0.18);
  border-color: rgba(255, 107, 154, 0.3);
}

.calc-card:hover::before {
  opacity: 1;
}

.calc-icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--pink-deep), var(--pink-mid));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
  box-shadow: 0 6px 18px rgba(255, 107, 154, 0.3);
  transition: transform 0.28s;
}

.calc-card:hover .calc-icon {
  transform: scale(1.08) rotate(-4deg);
}

.calc-card h5 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.calc-card p {
  font-size: 0.91rem;
  color: var(--gray-600);
  line-height: 1.65;
  margin: 0;
}

.calc-card-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--pink-deep);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  margin-top: 16px;
  transition: gap 0.2s;
}

.calc-card-link:hover {
  gap: 9px;
  color: var(--pink-deep);
}

/* --- Index: Content guide --- */
#content-guide {
  padding: 90px 0;
  background: var(--white);
}

.content-guide-inner {
  max-width: 880px;
  margin: 0 auto;
}

.guide-intro {
  font-size: 1.07rem;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 40px;
}

.guide-h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 44px 0 14px;
  padding-left: 18px;
  border-left: 4px solid var(--pink-deep);
}

.guide-h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 28px 0 10px;
}

.guide-p {
  font-size: 0.97rem;
  color: var(--gray-600);
  line-height: 1.82;
  margin-bottom: 16px;
}

.guide-ul {
  padding-left: 0;
  list-style: none;
  margin-bottom: 18px;
}

.guide-ul li {
  padding: 6px 0 6px 28px;
  position: relative;
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.65;
}

.guide-ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 14px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink-deep), var(--pink-mid));
}

.guide-tip-box {
  background: var(--pink-pale);
  border-left: 4px solid var(--pink-deep);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 18px 22px;
  margin: 24px 0;
  font-size: 0.95rem;
  color: var(--text-dark);
  line-height: 1.7;
}

.guide-tip-box strong {
  color: var(--pink-deep);
}
.guide-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.guide-table th,
.guide-table td {
  padding: 12px 15px;
  text-align: left;
  border: 1px solid #e0e0e0;
}

.guide-table th {
  background-color: #f8f9fa;
  font-weight: 600;
}

/* --- Index: Why us --- */
#why-us {
  padding: 90px 0;
  background: linear-gradient(135deg, var(--pink-pale) 0%, #fff 60%);
}

.why-card {
  text-align: center;
  padding: 36px 24px;
  background: #fff;
  border-radius: var(--radius-xl);
  border: 1.5px solid rgba(255, 143, 171, 0.12);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s, box-shadow 0.25s;
  height: 100%;
}

.why-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(255, 107, 154, 0.15);
}

.why-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink-pale), var(--pink-blush));
  border: 2px solid rgba(255, 107, 154, 0.2);
  color: var(--pink-deep);
  font-size: 1.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: background 0.25s, color 0.25s;
}

.why-card:hover .why-icon {
  background: linear-gradient(135deg, var(--pink-deep), var(--pink-mid));
  color: #fff;
}

.why-card h5 {
  font-family: var(--font-display);
  font-size: 1.07rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.why-card p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin: 0;
}

/* --- CTA banner (home + inner pages) --- */
#cta-banner,
.cta-banner {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--pink-deep) 0%, #ff4d85 50%, var(--pink-mid) 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-banner {
  padding: 72px 0;
}

#cta-banner::before,
.cta-banner::before {
  content: "";
  position: absolute;
  top: -60px;
  left: -60px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
}

#cta-banner::after,
.cta-banner::after {
  content: "";
  position: absolute;
  bottom: -80px;
  right: -40px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}

.cta-banner::before {
  width: 280px;
  height: 280px;
}

.cta-banner::after {
  width: 360px;
  height: 360px;
  background: rgba(255, 255, 255, 0.05);
}

#cta-banner h2,
.cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  position: relative;
  z-index: 2;
}

.cta-banner h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  margin-bottom: 12px;
}

#cta-banner p,
.cta-banner p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 32px;
  position: relative;
  z-index: 2;
}

.cta-banner p {
  font-size: 1rem;
  margin-bottom: 28px;
}

.btn-cta-white {
  background: #fff;
  color: var(--pink-deep);
  border: none;
  border-radius: 50px;
  padding: 14px 36px;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  display: inline-block;
  position: relative;
  z-index: 2;
}

.cta-banner .btn-cta-white {
  padding: 13px 34px;
  font-size: 0.97rem;
}

.btn-cta-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
  color: var(--pink-deep);
}

/* --- Related calculators (above footer) --- */
.related-calculators {
  padding: 72px 0 80px;
  background: var(--pink-pale);
}

.related-calculators .section-header {
  margin-bottom: 40px;
}

.related-calculators-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--pink-deep);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: gap 0.2s ease, color 0.2s ease;
}

.related-calculators-all:hover {
  gap: 10px;
  color: var(--pink-deep);
}

/* --- Footer --- */
#footer {
  background: #1a1a2e;
  color: rgba(255, 255, 255, 0.75);
  padding: 70px 0 0;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--pink-light);
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  text-decoration: none;
  line-height: 0;
}

.footer-logo .site-logo--footer {
  height: 52px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
  filter: brightness(1.08);
}

#footer p {
  font-size: 0.91rem;
  line-height: 1.75;
}

.footer-heading {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 18px;
  font-family: var(--font-display);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 0.91rem;
  transition: color 0.2s, padding-left 0.2s;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--pink-light);
  padding-left: 5px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.91rem;
}

.footer-contact-item .ci-icon {
  color: var(--pink-light);
  font-size: 1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.footer-social a:hover {
  background: linear-gradient(135deg, var(--pink-deep), var(--pink-mid));
  color: #fff;
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 20px 0;
  margin-top: 50px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom a {
  color: var(--pink-light);
  text-decoration: none;
}

/* --- Section header / title underline --- */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header .section-title {
  margin-bottom: 12px;
}

.section-header .section-subtitle {
  font-size: 1rem;
  color: var(--gray-600);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

.title-underline {
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--pink-deep), var(--pink-mid));
  border-radius: 50px;
  margin: 14px auto 0;
}

.inner-page .section-label {
  font-size: 0.78rem;
  margin-bottom: 10px;
}

.inner-page .section-title {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin-bottom: 14px;
}

/* --- Inner pages: page banner --- */
.page-banner {
  background: linear-gradient(135deg, var(--pink-pale) 0%, #fff5f8 50%, var(--pink-blush) 100%);
  padding: 70px 0 50px;
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 179, 198, 0.22) 0%, transparent 70%);
  pointer-events: none;
}

.page-banner::after {
  content: "";
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 107, 154, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.banner-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 107, 154, 0.1);
  border: 1px solid rgba(255, 107, 154, 0.25);
  color: var(--pink-deep);
  border-radius: 50px;
  padding: 5px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.banner-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 12px;
}

.banner-title span {
  background: linear-gradient(135deg, var(--pink-deep), var(--pink-mid));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.breadcrumb-item a {
  color: var(--pink-deep);
  text-decoration: none;
  font-size: 0.88rem;
}

.breadcrumb-item.active {
  color: var(--gray-600);
  font-size: 0.88rem;
}

.breadcrumb-item + .breadcrumb-item::before {
  color: var(--gray-600);
}

/* --- About page --- */
#about-main {
  padding: 80px 0;
}

.about-img-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(255, 107, 154, 0.14);
  position: relative;
}

.about-img-card .img-inner {
  height: 460px;
  background: linear-gradient(135deg, var(--pink-pale), var(--pink-blush));
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xl);
}

.about-float-badge {
  position: absolute;
  bottom: 28px;
  left: 28px;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 14px 20px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  gap: 12px;
}

.about-float-badge .fb-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink-deep), var(--pink-mid));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.about-float-badge strong {
  font-size: 1rem;
  color: var(--text-dark);
  display: block;
}

.about-float-badge span {
  font-size: 0.78rem;
  color: var(--gray-600);
}

.about-body p {
  font-size: 0.97rem;
  color: var(--gray-600);
  line-height: 1.82;
  margin-bottom: 16px;
}

.feat-list {
  list-style: none;
  padding: 0;
  margin: 22px 0;
}

.feat-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 13px;
  font-size: 0.97rem;
  color: var(--text-dark);
  font-weight: 500;
}

.feat-list li .chk {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink-deep), var(--pink-mid));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  flex-shrink: 0;
  margin-top: 1px;
}

#vision-mission {
  padding: 70px 0;
  background: var(--pink-pale);
}

.vm-card {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  border: 1.5px solid rgba(255, 143, 171, 0.15);
  box-shadow: var(--shadow-card);
  height: 100%;
  transition: transform 0.25s, box-shadow 0.25s;
}

.vm-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(255, 107, 154, 0.15);
}

.vm-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--pink-deep), var(--pink-mid));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 22px;
  box-shadow: 0 6px 18px rgba(255, 107, 154, 0.28);
}

.vm-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 14px;
}

.vm-card p {
  font-size: 0.94rem;
  color: var(--gray-600);
  line-height: 1.82;
  margin-bottom: 12px;
}

#values-strip {
  padding: 70px 0;
}

#values-strip.values-strip-compact {
  padding: 50px 0;
  background: var(--pink-pale);
}

.val-item {
  text-align: center;
  padding: 28px 20px;
}

.val-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--pink-deep), var(--pink-mid));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  line-height: 1;
}

.val-label {
  font-size: 0.82rem;
  color: var(--gray-600);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
}

.val-divider {
  width: 1px;
  background: rgba(255, 107, 154, 0.18);
  align-self: stretch;
}

/* --- Contact page --- */
#contact-main {
  padding: 80px 0;
}

.form-card {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 42px 40px;
  box-shadow: var(--shadow-card);
  border: 1.5px solid rgba(255, 143, 171, 0.12);
}

.form-card h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.form-card .fc-sub {
  font-size: 0.93rem;
  color: var(--gray-600);
  margin-bottom: 28px;
}

.form-label {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.form-control,
.form-select {
  border: 1.5px solid rgba(255, 143, 171, 0.3);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 0.93rem;
  font-family: var(--font-body);
  color: var(--text-dark);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--pink-deep);
  box-shadow: 0 0 0 3px rgba(255, 107, 154, 0.12);
  outline: none;
}

.form-control::placeholder {
  color: rgba(108, 117, 125, 0.55);
}

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

.btn-submit {
  background: linear-gradient(135deg, var(--pink-deep), var(--pink-mid));
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 13px 36px;
  font-weight: 700;
  font-size: 0.97rem;
  box-shadow: var(--shadow-btn);
  transition: transform 0.2s, box-shadow 0.2s;
  width: 100%;
  cursor: pointer;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255, 107, 154, 0.45);
  color: #fff;
}

.input-icon-wrap {
  position: relative;
}

.input-icon-wrap .form-control {
  padding-left: 44px;
}

.input-icon-wrap .ii {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--pink-deep);
  font-size: 1rem;
  pointer-events: none;
}

.input-icon-wrap.ta .ii {
  top: 15px;
  transform: none;
}

.input-icon-wrap.ta textarea.form-control {
  padding-left: 44px;
}

.form-check-input.form-check-consent {
  border-color: rgba(255, 143, 171, 0.5);
}

.form-check-label.consent-label {
  font-size: 0.87rem;
  color: var(--gray-600);
}

.info-card {
  background: linear-gradient(135deg, var(--pink-deep) 0%, #ff3d7a 60%, var(--pink-mid) 100%);
  border-radius: var(--radius-xl);
  padding: 38px 34px;
  color: #fff;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.info-card::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
}

.info-card::after {
  content: "";
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.info-card h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  position: relative;
  z-index: 2;
}

.info-card .ic-sub {
  font-size: 0.91rem;
  opacity: 0.88;
  margin-bottom: 32px;
  position: relative;
  z-index: 2;
  line-height: 1.65;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
  position: relative;
  z-index: 2;
}

.ii-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.ii-text strong {
  display: block;
  font-size: 0.88rem;
  opacity: 0.8;
  margin-bottom: 2px;
  font-weight: 600;
}

.ii-text span {
  font-size: 0.94rem;
  line-height: 1.5;
}

.ii-text .ii-text-muted {
  font-size: 0.82rem;
  opacity: 0.8;
}

.ic-social-label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.75;
  margin-bottom: 12px;
  position: relative;
  z-index: 2;
}

.ic-socials {
  display: flex;
  gap: 10px;
  position: relative;
  z-index: 2;
}

.ic-socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.ic-socials a:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-3px);
}

.info-card-faq {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
  z-index: 2;
}

.info-card-faq-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.75;
  margin-bottom: 14px;
}

.info-card-faq-body {
  font-size: 0.87rem;
  line-height: 1.7;
  opacity: 0.9;
}

.info-card-faq-body p {
  margin-bottom: 10px;
}

.info-card-faq-body p:last-child {
  margin-bottom: 0;
}

#map-section {
  padding: 0 0 80px;
}

.map-wrap {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.map-placeholder {
  height: 360px;
  background: linear-gradient(135deg, var(--pink-pale), var(--pink-blush));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1.5px solid rgba(255, 143, 171, 0.15);
}

.map-placeholder .mp-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink-deep), var(--pink-mid));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 6px 20px rgba(255, 107, 154, 0.3);
}

.map-placeholder h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-dark);
  margin: 0;
}

.map-placeholder p {
  font-size: 0.88rem;
  color: var(--gray-600);
  margin: 0;
}

.map-placeholder .map-link {
  color: var(--pink-deep);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  margin-top: 4px;
}

.success-toast {
  display: none;
  background: linear-gradient(135deg, #e8f8e8, #d0f0d0);
  border: 1.5px solid #6bc96b;
  border-radius: var(--radius-md);
  padding: 14px 20px;
  margin-top: 16px;
  font-size: 0.93rem;
  color: #2a7a2a;
  align-items: center;
  gap: 10px;
}

.success-toast.show {
  display: flex;
}

.success-toast .toast-icon {
  font-size: 1.2rem;
  color: #2a7a2a;
}

/* --- Legal pages (privacy, terms, disclaimer) --- */
#legal-content {
  padding: 70px 0 80px;
}

.legal-wrap {
  max-width: 860px;
  margin: 0 auto;
}

.toc-card {
  background: var(--pink-pale);
  border-radius: var(--radius-xl);
  padding: 28px 26px;
  border: 1.5px solid rgba(255, 143, 171, 0.15);
  position: sticky;
  top: 90px;
}

.toc-card h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(255, 107, 154, 0.18);
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-list li {
  margin-bottom: 8px;
}

.toc-list a {
  color: var(--gray-600);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.toc-list a:hover,
.toc-list a.active {
  color: var(--pink-deep);
  background: rgba(255, 107, 154, 0.08);
}

.toc-list a .tnum {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink-deep), var(--pink-mid));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 700;
  flex-shrink: 0;
}

.legal-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 107, 154, 0.08);
  border: 1px solid rgba(255, 107, 154, 0.2);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 0.82rem;
  color: var(--pink-deep);
  font-weight: 600;
  margin-bottom: 28px;
}

.legal-intro {
  font-size: 1rem;
  color: var(--gray-600);
  line-height: 1.82;
  padding: 20px 24px;
  background: var(--pink-pale);
  border-left: 4px solid var(--pink-deep);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 36px;
}

.legal-section {
  margin-bottom: 42px;
  scroll-margin-top: 100px;
}

.legal-section h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--pink-blush);
  display: flex;
  align-items: center;
  gap: 10px;
}

.legal-section h2 .sec-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink-deep), var(--pink-mid));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.legal-section h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 20px 0 8px;
}

.legal-section p {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.82;
  margin-bottom: 13px;
}

.legal-section ul {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
}

.legal-section ul li {
  padding: 5px 0 5px 24px;
  position: relative;
  font-size: 0.93rem;
  color: var(--gray-600);
  line-height: 1.68;
}

.legal-section ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 13px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink-deep), var(--pink-mid));
}

.highlight-box {
  background: rgba(255, 107, 154, 0.07);
  border: 1px solid rgba(255, 107, 154, 0.2);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 18px 0;
  font-size: 0.92rem;
  color: var(--text-dark);
  line-height: 1.72;
}

.highlight-box strong {
  color: var(--pink-deep);
}

.health-warning {
  background: linear-gradient(135deg, rgba(255, 107, 154, 0.1), rgba(255, 143, 171, 0.08));
  border: 2px solid var(--pink-deep);
  border-radius: var(--radius-xl);
  padding: 24px 28px;
  margin: 24px 0;
}

.health-warning .hw-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.health-warning .hw-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink-deep), var(--pink-mid));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.health-warning .hw-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--pink-deep);
}

.health-warning p {
  font-size: 0.94rem;
  color: var(--text-dark);
  line-height: 1.8;
  margin-bottom: 10px;
}

.health-warning p:last-child {
  margin-bottom: 0;
}

.cookie-type {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.cookie-essential {
  background: rgba(40, 167, 69, 0.12);
  color: #1a7a30;
}

.cookie-analytics {
  background: rgba(255, 107, 154, 0.12);
  color: var(--pink-deep);
}

.cookie-functional {
  background: rgba(13, 110, 253, 0.1);
  color: #0d6efd;
}

.cookie-marketing {
  background: rgba(255, 193, 7, 0.15);
  color: #856404;
}

.cookie-block {
  margin-bottom: 18px;
}

.legal-section .cookie-block h3 {
  margin-top: 4px;
  margin-bottom: 8px;
}

/* --- Responsive --- */
@media (max-width: 991.98px) {
  #hero {
    padding: 80px 0 60px;
  }

  .hero-pill-1,
  .hero-pill-2,
  .hero-pill-3 {
    display: none;
  }

  .hero-illustration {
    margin-top: 48px;
  }

  .toc-card {
    position: static;
    margin-bottom: 32px;
  }
}

@media (max-width: 767.98px) {
  #hero {
    padding: 64px 0 52px;
  }

  .hero-stats {
    gap: 18px;
  }

  .hero-stat-divider {
    display: none;
  }

  .about-badge-float {
    display: none;
  }

  .about-float-badge {
    display: none;
  }

  .about-img-card .img-inner {
    height: 300px;
  }

  .form-card {
    padding: 28px 20px;
  }

  .info-card {
    margin-top: 28px;
  }
}

@media (max-width: 575.98px) {
  .btn-primary-pink,
  .btn-outline-pink {
    width: 100%;
    text-align: center;
  }

  .d-flex.gap-3.flex-wrap {
    flex-direction: column;
  }
}

/* --- BMI Calculator page (compact: tool first) --- */
.bmi-calculator-page .bmi-calc-section {
  padding: 12px 0 28px;
  margin-top: 0;
}

.bmi-calculator-page .bmi-breadcrumb-bar {
  padding: 6px 0 10px;
}

.bmi-calculator-page .bmi-breadcrumb-bar .breadcrumb {
  font-size: 0.8rem;
}

.bmi-card-page-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3.2vw, 1.55rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.25;
  margin-bottom: 0.35rem;
}

.bmi-card-page-title span {
  background: linear-gradient(135deg, #FF6B9A, var(--pink-mid));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bmi-card-lead {
  line-height: 1.45;
}

.bmi-calculator-page .bmi-page-cta {
  padding: 44px 0;
}

.bmi-calculator-page .bmi-page-cta h2 {
  margin-bottom: 8px;
}

.bmi-calculator-page .bmi-page-cta p {
  margin-bottom: 18px;
}

.bmi-card {
  border-radius: 20px;
  border: 1px solid rgba(255, 107, 154, 0.2) !important;
  overflow: hidden;
}

.bmi-card::before {
  content: "";
  display: block;
  height: 5px;
  background: linear-gradient(90deg, #FF6B9A, #ff8fb8);
}

.bmi-input {
  border: 1.5px solid rgba(255, 107, 154, 0.25);
  border-radius: 10px;
  padding: 0.55rem 0.85rem;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.bmi-input:focus {
  border-color: #FF6B9A;
  box-shadow: 0 0 0 0.2rem rgba(255, 107, 154, 0.2);
}

/* Primary calculator CTA — shared across BMI, Period, Body Fat (same look site-wide) */
.btn-bmi-calc,
.btn-period-calc,
.btn-bodyfat-calc,
.btn-ovulation-calc,
.btn-implantation-calc,
.btn-hcg-calc,
.btn-ivf-calc,
.btn-gfr-calc {
  background: #FF6B9A;
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  padding: 0.55rem 1.25rem;
  font-size: 0.95rem;
  box-shadow: 0 6px 20px rgba(255, 107, 154, 0.32);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn-bmi-calc:hover,
.btn-period-calc:hover,
.btn-bodyfat-calc:hover,
.btn-ovulation-calc:hover,
.btn-implantation-calc:hover,
.btn-hcg-calc:hover,
.btn-ivf-calc:hover,
.btn-gfr-calc:hover {
  background: #e85a8a;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 107, 154, 0.45);
}

.btn-bmi-calc:focus-visible,
.btn-period-calc:focus-visible,
.btn-bodyfat-calc:focus-visible,
.btn-ovulation-calc:focus-visible,
.btn-implantation-calc:focus-visible,
.btn-hcg-calc:focus-visible,
.btn-ivf-calc:focus-visible,
.btn-gfr-calc:focus-visible {
  outline: none;
  color: #fff;
  box-shadow:
    0 0 0 3px #fff,
    0 0 0 6px rgba(255, 107, 154, 0.45),
    0 6px 20px rgba(255, 107, 154, 0.32);
}

.bmi-result-value-wrap {
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, rgba(255, 107, 154, 0.08), rgba(255, 143, 184, 0.06));
  border-radius: 14px;
}

.bmi-result-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.4rem);
  font-weight: 700;
  color: #FF6B9A;
  line-height: 1.2;
}

.bmi-result-label {
  letter-spacing: 0.08em;
  font-size: 0.7rem !important;
}

.bmi-pill-underweight {
  background: #5c9fd8 !important;
  color: #fff !important;
  font-weight: 600;
  font-size: 0.95rem;
}

.bmi-pill-normal {
  background: #2fa36b !important;
  color: #fff !important;
  font-weight: 600;
  font-size: 0.95rem;
}

.bmi-pill-overweight {
  background: #e8a23c !important;
  color: #1a1a1a !important;
  font-weight: 600;
  font-size: 0.95rem;
}

.bmi-pill-obese {
  background: #d94a5f !important;
  color: #fff !important;
  font-weight: 600;
  font-size: 0.95rem;
}

.bmi-health-tip {
  color: var(--gray-700);
  line-height: 1.65;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.bmi-seo-section .bmi-article p {
  line-height: 1.75;
  color: var(--gray-800);
  margin-bottom: 0.85rem;
}

.bmi-article-guide .lead {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--gray-800);
}

.bmi-article-guide > p,
.bmi-article-guide header + p {
  line-height: 1.75;
  color: var(--gray-800);
}

.bmi-guide-figure {
  margin: 1.25rem 0 1.75rem;
}

.bmi-guide-figure-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 14px;
}

.bmi-guide-figure-placeholder {
  aspect-ratio: 16 / 10;
  max-height: 220px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 107, 154, 0.12), rgba(255, 179, 198, 0.2));
  border: 1.5px dashed rgba(255, 107, 154, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FF6B9A;
  font-size: 2rem;
}

.bmi-guide-figure-placeholder::before {
  content: "";
  width: 48px;
  height: 48px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23FF6B9A' viewBox='0 0 16 16'%3E%3Cpath d='M6.002 5.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0z'/%3E%3Cpath d='M2.002 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V3a2 2 0 0 0-2-2h-12zm12 1a1 1 0 0 1 1 1v6.5l-3.777-1.947a.5.5 0 0 0-.577.093l-3.71 3.71-2.66-1.772a.5.5 0 0 0-.63.062L1.002 12V3a1 1 0 0 1 1-1h12z'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0.7;
}

.bmi-guide-figure figcaption {
  font-size: 0.82rem;
  color: var(--gray-600);
  margin-top: 0.5rem;
  line-height: 1.45;
}

.bmi-faq-accordion .accordion-button {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a1a2e;
}

.bmi-faq-accordion .accordion-button:not(.collapsed) {
  color: #FF6B9A;
  background: rgba(255, 107, 154, 0.08);
}

.bmi-faq-accordion .accordion-button:focus {
  box-shadow: none;
  border-color: rgba(255, 107, 154, 0.25);
}

/* FAQ accordion block — shared BMI + Period guide (spacing matches Period page) */
.calc-guide-faq {
  margin-top: 3rem;
}

.calc-guide-faq > h2 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.calc-guide-faq .accordion.bmi-faq-accordion {
  margin-bottom: 0;
}

.bmi-seo-section .calc-guide-faq .accordion-header,
.period-seo-section .calc-guide-faq .accordion-header {
  margin-top: 0;
  margin-bottom: 0;
}

/* --- Period Calculator page --- */
.period-calculator-page .period-calc-section {
  padding: 12px 0 28px;
  margin-top: 0;
}

.period-calculator-page .period-breadcrumb-bar {
  padding: 6px 0 10px;
}

.period-calculator-page .period-breadcrumb-bar .breadcrumb {
  font-size: 0.8rem;
}

.period-card-page-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3.2vw, 1.55rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.25;
  margin-bottom: 0.35rem;
}

.period-card-page-title span {
  background: linear-gradient(135deg, #FF6B9A, var(--pink-mid));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.period-card-lead,
.ivf-card-lead {
  line-height: 1.45;
}

.period-calculator-page .period-page-cta {
  padding: 44px 0;
}

.period-calculator-page .period-page-cta h2 {
  margin-bottom: 8px;
}

.period-calculator-page .period-page-cta p {
  margin-bottom: 18px;
}

.period-card {
  border-radius: 20px;
  border: 1px solid rgba(255, 107, 154, 0.2) !important;
  overflow: hidden;
}

.period-card::before {
  content: "";
  display: block;
  height: 5px;
  background: linear-gradient(90deg, #c471ed, #FF6B9A, #ff8fb8);
}

.period-input {
  border: 1.5px solid rgba(255, 107, 154, 0.25);
  border-radius: 10px;
  padding: 0.55rem 0.85rem;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.period-input:focus {
  border-color: #FF6B9A;
  box-shadow: 0 0 0 0.2rem rgba(255, 107, 154, 0.2);
}

.period-calc-submit-wrap {
  margin-top: 0.25rem;
}

.period-stat-box {
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: rgba(255, 107, 154, 0.06);
  border: 1px solid rgba(255, 107, 154, 0.15);
}

.period-stat-box--primary {
  background: linear-gradient(135deg, rgba(180, 90, 200, 0.1), rgba(255, 107, 154, 0.1));
  border-color: rgba(180, 90, 200, 0.22);
}

.period-stat-label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--gray-600);
  margin-bottom: 0.35rem;
}

.period-stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.3;
}

.period-stat-sub {
  display: block;
  margin-top: 0.35rem;
  line-height: 1.45;
}

.period-phase-pill {
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0.35em 0.9em !important;
}

.period-pill-menses {
  background: #e85a8a !important;
  color: #fff !important;
}

.period-pill-follicular {
  background: #5c9fd8 !important;
  color: #fff !important;
}

.period-pill-fertile {
  background: #2fa36b !important;
  color: #fff !important;
}

.period-pill-luteal {
  background: #9b7ed9 !important;
  color: #fff !important;
}

.period-pill-late {
  background: #e8a23c !important;
  color: #1a1a1a !important;
}

.period-mini-card {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 107, 154, 0.12);
  background: #fff;
}

.period-mini-icon {
  color: #FF6B9A;
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
  display: block;
}

.period-mini-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-600);
  margin-bottom: 0.25rem;
}

.period-mini-value {
  display: block;
  font-weight: 600;
  color: #1a1a2e;
  line-height: 1.35;
}

.period-timeline-wrap {
  padding: 0.75rem 0 0.25rem;
}

.period-timeline-title {
  display: block;
  margin-bottom: 0.5rem;
}

.period-timeline {
  position: relative;
  display: flex;
  height: 14px;
  border-radius: 8px;
  overflow: visible;
  background: rgba(0, 0, 0, 0.04);
}

.period-seg {
  display: block;
  height: 100%;
  min-width: 2px;
}

.period-seg-menses {
  background: linear-gradient(90deg, #FF6B9A, #ff8fb8);
}

.period-seg-follicular {
  background: rgba(92, 159, 216, 0.85);
}

.period-seg-fertile {
  background: rgba(47, 163, 107, 0.9);
}

.period-seg-luteal {
  background: rgba(155, 126, 217, 0.88);
}

.period-timeline-marker {
  position: absolute;
  top: -4px;
  width: 12px;
  height: 22px;
  border-radius: 3px;
  background: #1a1a2e;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

.period-legend-swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-right: 0.25rem;
  vertical-align: middle;
  font-style: normal;
}

.period-table-title {
  color: #1a1a2e;
}

.period-table-wrap {
  border-radius: 12px;
  overflow: hidden;
}

.period-table thead th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.period-table th,
.period-table td {
  vertical-align: middle;
  font-size: 0.9rem;
}

.period-seo-section .period-article-guide p,
.period-seo-section .period-article-guide .lead {
  line-height: 1.75;
  color: var(--gray-800);
}

.period-seo-section .period-article-guide ul {
  padding-left: 1.2rem;
  color: var(--gray-800);
  line-height: 1.7;
}

.period-guide-figure {
  margin: 1.25rem 0 1.75rem;
}

.period-guide-figure-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 14px;
}

.period-guide-figure figcaption {
  font-size: 0.82rem;
  color: var(--gray-600);
  margin-top: 0.5rem;
  line-height: 1.45;
}

/* --- Body Fat Calculator page --- */
.bodyfat-calculator-page .bodyfat-calc-section {
  padding: 12px 0 28px;
  margin-top: 0;
}

.bodyfat-calculator-page .bodyfat-breadcrumb-bar {
  padding: 6px 0 10px;
}

.bodyfat-calculator-page .bodyfat-breadcrumb-bar .breadcrumb {
  font-size: 0.8rem;
}

.bodyfat-card-page-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3.2vw, 1.55rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.25;
  margin-bottom: 0.35rem;
}

.bodyfat-card-page-title span {
  background: linear-gradient(135deg, #FF6B9A, var(--pink-mid));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bodyfat-card {
  border-radius: 20px;
  border: 1px solid rgba(255, 107, 154, 0.2) !important;
  overflow: hidden;
}

.bodyfat-card::before {
  content: "";
  display: block;
  height: 5px;
  background: linear-gradient(90deg, #FF6B9A, #ff8fb8);
}

.bodyfat-input {
  border: 1.5px solid rgba(255, 107, 154, 0.25);
  border-radius: 10px;
  padding: 0.55rem 0.85rem;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.bodyfat-input:focus {
  border-color: #FF6B9A;
  box-shadow: 0 0 0 0.2rem rgba(255, 107, 154, 0.2);
}

.bodyfat-stat-box {
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: rgba(255, 107, 154, 0.06);
  border: 1px solid rgba(255, 107, 154, 0.15);
}

.bodyfat-stat-box--primary {
  background: linear-gradient(135deg, rgba(255, 107, 154, 0.1), rgba(255, 143, 171, 0.12));
}

.bodyfat-stat-label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--gray-600);
  margin-bottom: 0.35rem;
}

.bodyfat-stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.7vw, 1.45rem);
  font-weight: 700;
  color: #1a1a2e;
}

.bodyfat-cat-pill {
  font-size: 0.8rem;
  padding: 0.35rem 0.85rem !important;
}

.bodyfat-pill-low { background: #5c9fd8 !important; color: #fff !important; }
.bodyfat-pill-essential { background: #4c74d7 !important; color: #fff !important; }
.bodyfat-pill-athlete { background: #2fa36b !important; color: #fff !important; }
.bodyfat-pill-fitness { background: #24b07a !important; color: #fff !important; }
.bodyfat-pill-average { background: #e8a23c !important; color: #1a1a1a !important; }
.bodyfat-pill-high { background: #d94a5f !important; color: #fff !important; }

.bodyfat-mini-card {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 107, 154, 0.12);
  background: #fff;
}

.bodyfat-mini-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-600);
  margin-bottom: 0.25rem;
}

.bodyfat-mini-value {
  display: block;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.35;
}

.bodyfat-note-box {
  border-left: 4px solid rgba(255, 107, 154, 0.55);
  background: rgba(255, 107, 154, 0.08);
  border-radius: 0 10px 10px 0;
  padding: 0.8rem 1rem;
  color: var(--gray-800);
}

.bodyfat-seo-section .bodyfat-article-guide p,
.bodyfat-seo-section .bodyfat-article-guide .lead {
  line-height: 1.75;
  color: var(--gray-800);
}

.bodyfat-seo-section .bodyfat-article-guide ul {
  padding-left: 1.2rem;
  color: var(--gray-800);
  line-height: 1.7;
}

.bodyfat-guide-figure {
  margin: 1.25rem 0 1.75rem;
}

.bodyfat-guide-figure-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 14px;
}

.bodyfat-guide-figure figcaption {
  font-size: 0.82rem;
  color: var(--gray-600);
  margin-top: 0.5rem;
  line-height: 1.45;
}

/* --- GFR calculator page --- */
.gfr-calculator-page .gfr-calc-section {
  padding: 1.5rem 0 2rem;
}

.gfr-calculator-page .gfr-breadcrumb-bar {
  margin-bottom: 1rem;
}

.gfr-calculator-page .gfr-breadcrumb-bar .breadcrumb {
  font-size: 0.85rem;
}

.gfr-card-page-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.25;
  margin-bottom: 0.35rem;
}

.gfr-card-page-title span {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: #FF6B9A;
}

.gfr-card {
  border-radius: 18px;
  overflow: hidden;
  position: relative;
}

.gfr-card::before {
  content: '';
  display: block;
  height: 4px;
  background: linear-gradient(90deg, #FF6B9A, #ff9ec0);
}

.gfr-input {
  border-radius: 10px;
  border-color: #e8e8ef;
}

.gfr-input:focus {
  border-color: #FF6B9A;
  box-shadow: 0 0 0 0.2rem rgba(255, 107, 154, 0.2);
}

.gfr-stat-box {
  background: #faf9fc;
  border: 1px solid #eee8f2;
  border-radius: 14px;
  padding: 1rem 1.1rem;
}

.gfr-stat-box--primary {
  background: linear-gradient(135deg, rgba(255, 107, 154, 0.08), rgba(255, 158, 192, 0.12));
  border-color: rgba(255, 107, 154, 0.2);
}

.gfr-stat-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gray-600);
  margin-bottom: 0.35rem;
}

.gfr-stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.1;
}

.gfr-stat-sub {
  display: block;
  margin-top: 0.25rem;
}

.gfr-cat-pill {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
}

.gfr-pill-g1 { background: #2fa36b !important; color: #fff !important; }
.gfr-pill-g2 { background: #4dcb84 !important; color: #fff !important; }
.gfr-pill-g3a { background: #e8a23c !important; color: #1a1a1a !important; }
.gfr-pill-g3b { background: #e07b2e !important; color: #fff !important; }
.gfr-pill-g4 { background: #d94a5f !important; color: #fff !important; }
.gfr-pill-g5 { background: #8b2d3a !important; color: #fff !important; }

.gfr-creatine-sim {
  background: rgba(255, 107, 154, 0.04);
  border-radius: 12px;
  padding: 1rem 1.1rem !important;
  margin-top: 1rem !important;
}

.gfr-range::-webkit-slider-thumb {
  background: #FF6B9A;
}

.gfr-sim-result {
  background: #fff;
  border: 1px solid #eee8f2;
}

.gfr-calculator-page .gfr-page-cta {
  margin-top: 0;
}

.gfr-seo-section .gfr-article-guide p,
.gfr-seo-section .gfr-article-guide .lead {
  color: var(--gray-800);
  line-height: 1.7;
}

.gfr-guide-figure {
  margin: 1.25rem 0 1.75rem;
}

.gfr-guide-figure-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 14px;
}

.calc-diagram--gfr .gfr-scale-track {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 2px;
}

.gfr-scale-segments {
  display: flex;
  height: 24px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.gfr-scale-seg {
  flex: 1 1 0;
  min-width: 0;
}

.gfr-scale-seg--g5 {
  flex-grow: 3;
  background: linear-gradient(180deg, #a63d4d, #8b2d3a);
}

.gfr-scale-seg--g4 {
  flex-grow: 3;
  background: linear-gradient(180deg, #e8667a, #d94a5f);
}

.gfr-scale-seg--g3 {
  flex-grow: 6;
  background: linear-gradient(180deg, #f0b856, #e07b2e);
}

.gfr-scale-seg--g2 {
  flex-grow: 5;
  background: linear-gradient(180deg, #7dd9a8, #4dcb84);
}

.gfr-scale-seg--g1 {
  flex-grow: 6;
  background: linear-gradient(180deg, #4dcb84, #2fa36b);
}

.gfr-scale-marker {
  position: absolute;
  top: -6px;
  width: 4px;
  height: 36px;
  margin-left: -2px;
  background: #1a1a2e;
  border-radius: 2px;
  left: 50%;
  box-shadow: 0 0 0 2px #fff, 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: left 0.35s ease;
  z-index: 2;
}

/* --- Calculator result diagrams (BMI, body fat, period) --- */
.calc-diagram--bmi .bmi-scale-track {
  position: relative;
  max-width: 420px;
  margin: 0 auto;
  padding: 0 2px;
}

.bmi-scale-segments {
  display: flex;
  height: 24px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.bmi-scale-seg {
  flex: 1 1 0;
  min-width: 0;
}

.bmi-scale-seg--under {
  flex-grow: 3.5;
  background: linear-gradient(180deg, #6fb3e8, #5c9fd8);
}

.bmi-scale-seg--normal {
  flex-grow: 6.5;
  background: linear-gradient(180deg, #4dcb84, #2fa36b);
}

.bmi-scale-seg--over {
  flex-grow: 5;
  background: linear-gradient(180deg, #f0b856, #e8a23c);
}

.bmi-scale-seg--obese {
  flex-grow: 10;
  background: linear-gradient(180deg, #e8667a, #d94a5f);
}

.bmi-scale-marker {
  position: absolute;
  top: -6px;
  width: 4px;
  height: 36px;
  margin-left: -2px;
  background: #1a1a2e;
  border-radius: 2px;
  left: 50%;
  box-shadow: 0 0 0 2px #fff, 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: left 0.35s ease;
  z-index: 2;
}

.bmi-legend-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 2px;
}

.bmi-legend-dot--under { background: #5c9fd8; }
.bmi-legend-dot--normal { background: #2fa36b; }
.bmi-legend-dot--over { background: #e8a23c; }
.bmi-legend-dot--obese { background: #d94a5f; }

.bodyfat-comp-wrap {
  max-width: 480px;
  margin: 0 auto;
}

.bodyfat-comp-bar {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 30px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 107, 154, 0.2);
}

.bodyfat-comp-fat {
  width: 50%;
  min-width: 0;
  background: linear-gradient(90deg, #d94a5f, #FF6B9A);
  transition: width 0.35s ease;
}

.bodyfat-comp-lean {
  width: 50%;
  min-width: 0;
  background: linear-gradient(90deg, rgba(92, 159, 216, 0.95), rgba(155, 126, 217, 0.88));
  transition: width 0.35s ease;
}

.bodyfat-comp-swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  vertical-align: middle;
  margin-right: 4px;
}

.bodyfat-comp-swatch--fat {
  background: linear-gradient(90deg, #d94a5f, #FF6B9A);
}

.bodyfat-comp-swatch--lean {
  background: linear-gradient(90deg, rgba(92, 159, 216, 0.95), rgba(155, 126, 217, 0.88));
}

.bodyfat-ace-track-wrap {
  max-width: 480px;
  margin: 0 auto;
}

.bodyfat-ace-track {
  position: relative;
  height: 24px;
  border-radius: 10px;
  overflow: visible;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.bodyfat-ace-track--female {
  background: linear-gradient(
    to right,
    #ced4da 0%,
    #ced4da 20%,
    #4c74d7 20%,
    #4c74d7 26%,
    #2fa36b 26%,
    #2fa36b 40%,
    #24b07a 40%,
    #24b07a 48%,
    #e8a23c 48%,
    #e8a23c 62%,
    #d94a5f 62%,
    #d94a5f 100%
  );
}

.bodyfat-ace-track--male {
  background: linear-gradient(
    to right,
    #ced4da 0%,
    #ced4da 12.5%,
    #4c74d7 12.5%,
    #4c74d7 20%,
    #2fa36b 20%,
    #2fa36b 32.5%,
    #24b07a 32.5%,
    #24b07a 42.5%,
    #e8a23c 42.5%,
    #e8a23c 60%,
    #d94a5f 62.5%,
    #d94a5f 100%
  );
}

.bodyfat-ace-marker {
  position: absolute;
  top: -7px;
  width: 5px;
  height: 38px;
  margin-left: -2.5px;
  background: #1a1a2e;
  border-radius: 2px;
  left: 0;
  box-shadow: 0 0 0 2px #fff, 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: left 0.35s ease;
  z-index: 2;
}

.period-cycle-diagram-title {
  letter-spacing: 0.06em;
}

.period-cycle-wheel-wrap {
  position: relative;
  width: min(220px, 72vw);
  height: min(220px, 72vw);
  margin: 0 auto;
}

.period-cycle-wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 4px rgba(255, 255, 255, 0.92),
    0 8px 28px rgba(255, 107, 154, 0.15);
  transition: background 0.35s ease;
}

.period-cycle-pointer {
  position: absolute;
  left: 50%;
  bottom: 50%;
  width: 6px;
  height: 42%;
  margin-left: -3px;
  background: #1a1a2e;
  border-radius: 4px 4px 0 0;
  transform-origin: bottom center;
  -webkit-transform-origin: bottom center;
  box-shadow: 0 0 0 2px #fff;
  z-index: 2;
  transition: transform 0.35s ease;
}

.period-cycle-wheel-hub {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 46%;
  height: 46%;
  margin-left: -23%;
  margin-top: -23%;
  background: #fff;
  border-radius: 50%;
  z-index: 3;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08);
  pointer-events: none;
}

.period-cycle-wheel-label {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  pointer-events: none;
  max-width: 42%;
}

.period-cycle-wheel-label strong {
  font-family: var(--font-display);
  font-size: clamp(1rem, 3.5vw, 1.15rem);
  color: #1a1a2e;
  line-height: 1.2;
}

/* --- Ovulation & hCG calculator pages (shared layout with body fat / period) --- */
.ovulation-hero-banner {
  position: relative;
  width: 100%;
  min-height: clamp(240px, 38vw, 420px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.ovulation-hero-banner__media {
  position: absolute;
  inset: 0;
}

.ovulation-hero-banner__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.ovulation-hero-banner__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.ovulation-hero-banner__content {
  position: relative;
  z-index: 1;
  padding: 2rem 0 2.5rem;
  color: #fff;
}

.ovulation-hero-banner__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 0.65rem;
  max-width: 44rem;
}

.ovulation-hero-banner__title span {
  color: rgba(255, 255, 255, 0.92);
}

.ovulation-hero-banner__lead {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 0;
  max-width: 38rem;
  line-height: 1.55;
}

.ovulation-hero-breadcrumb .breadcrumb-item,
.ovulation-hero-breadcrumb .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
}

.ovulation-hero-breadcrumb .breadcrumb-item a:hover {
  color: #fff;
}

.ovulation-hero-breadcrumb .breadcrumb-item.active {
  color: #fff;
}

.ovulation-hero-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.55);
}

.ovulation-calculator-page .ovulation-calc-section,
.implantation-calculator-page .ovulation-calc-section,
.hcg-calculator-page .hcg-calc-section,
.ivf-calculator-page .ivf-calc-section {
  padding: 12px 0 28px;
  margin-top: 0;
}

.ovulation-calculator-page .ovulation-breadcrumb-bar,
.hcg-calculator-page .hcg-breadcrumb-bar,
.ivf-calculator-page .ivf-breadcrumb-bar {
  padding: 6px 0 10px;
}

.ovulation-calculator-page .ovulation-breadcrumb-bar .breadcrumb,
.hcg-calculator-page .hcg-breadcrumb-bar .breadcrumb,
.ivf-calculator-page .ivf-breadcrumb-bar .breadcrumb {
  font-size: 0.8rem;
}

.ovulation-card-page-title,
.hcg-card-page-title,
.ivf-card-page-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3.2vw, 1.55rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.25;
  margin-bottom: 0.35rem;
}

.ovulation-card-page-title span,
.hcg-card-page-title span,
.ivf-card-page-title span {
  background: linear-gradient(135deg, #FF6B9A, var(--pink-mid));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ovulation-card,
.hcg-card,
.ivf-card {
  border-radius: 20px;
  border: 1px solid rgba(255, 107, 154, 0.2) !important;
  overflow: hidden;
}

.ovulation-card::before,
.hcg-card::before,
.ivf-card::before {
  content: "";
  display: block;
  height: 5px;
  background: linear-gradient(90deg, #FF6B9A, #ff8fb8);
}

.ovulation-input,
.hcg-input,
.ivf-input {
  border: 1.5px solid rgba(255, 107, 154, 0.25);
  border-radius: 10px;
  padding: 0.55rem 0.85rem;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ovulation-input:focus,
.hcg-input:focus,
.ivf-input:focus {
  border-color: #FF6B9A;
  box-shadow: 0 0 0 0.2rem rgba(255, 107, 154, 0.2);
}

.ovulation-calc-submit-wrap,
.hcg-calc-submit-wrap,
.ivf-calc-submit-wrap {
  margin-top: 0.25rem;
}

.ovulation-stat-box,
.hcg-stat-box,
.ivf-stat-box {
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: rgba(255, 107, 154, 0.06);
  border: 1px solid rgba(255, 107, 154, 0.15);
}

.ovulation-stat-box--primary,
.hcg-stat-box--primary,
.ivf-stat-box--primary {
  background: linear-gradient(135deg, rgba(255, 107, 154, 0.1), rgba(255, 143, 171, 0.12));
}

.ovulation-stat-label,
.hcg-stat-label,
.ivf-stat-label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--gray-600);
  margin-bottom: 0.35rem;
}

.ovulation-stat-value,
.hcg-stat-value,
.ivf-stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.3;
}

.ovulation-stat-sub,
.hcg-stat-sub,
.ivf-stat-sub {
  display: block;
  margin-top: 0.35rem;
  line-height: 1.45;
}

.ovulation-mini-card,
.hcg-mini-card,
.ivf-mini-card {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 107, 154, 0.12);
  background: #fff;
}

.ovulation-mini-label,
.hcg-mini-label,
.ivf-mini-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-600);
  margin-bottom: 0.25rem;
}

.ovulation-mini-value,
.hcg-mini-value,
.ivf-mini-value {
  display: block;
  font-weight: 600;
  color: #1a1a2e;
  line-height: 1.35;
}

.ovulation-status-pill,
.hcg-interp-pill,
.ivf-trimester-pill {
  font-size: 0.82rem;
  padding: 0.35em 0.9em !important;
  font-weight: 600;
}

.ovulation-pill-before { background: #5c9fd8 !important; color: #fff !important; }
.ovulation-pill-peak { background: #2fa36b !important; color: #fff !important; }
.ovulation-pill-fertile { background: #24b07a !important; color: #fff !important; }
.ovulation-pill-after { background: #9b7ed9 !important; color: #fff !important; }

.hcg-pill-fast { background: #5c9fd8 !important; color: #fff !important; }
.hcg-pill-normal { background: #2fa36b !important; color: #fff !important; }
.hcg-pill-slow { background: #e8a23c !important; color: #1a1a1a !important; }
.hcg-pill-concern { background: #d94a5f !important; color: #fff !important; }

.ivf-pill-t1 { background: #5c9fd8 !important; color: #fff !important; }
.ivf-pill-t2 { background: #2fa36b !important; color: #fff !important; }
.ivf-pill-t3 { background: #FF6B9A !important; color: #fff !important; }

.ovulation-table th,
.ovulation-table td,
.hcg-table th,
.hcg-table td,
.ivf-table th,
.ivf-table td {
  vertical-align: middle;
  font-size: 0.9rem;
}

.ovulation-seo-section .ovulation-article-guide p,
.ovulation-seo-section .ovulation-article-guide .lead,
.ovulation-seo-section .ovulation-article-guide ul,
.hcg-seo-section .hcg-article-guide p,
.hcg-seo-section .hcg-article-guide .lead,
.hcg-seo-section .hcg-article-guide ul,
.ivf-seo-section .ivf-article-guide p,
.ivf-seo-section .ivf-article-guide .lead,
.ivf-seo-section .ivf-article-guide ul,
.implantation-seo-section .implantation-article-guide p,
.implantation-seo-section .implantation-article-guide .lead,
.implantation-seo-section .implantation-article-guide ul {
  line-height: 1.75;
  color: var(--gray-800);
}

.ovulation-seo-section .ovulation-article-guide ul,
.hcg-seo-section .hcg-article-guide ul,
.ivf-seo-section .ivf-article-guide ul,
.implantation-seo-section .implantation-article-guide ul {
  padding-left: 1.2rem;
}

.ovulation-guide-figure,
.hcg-guide-figure {
  margin: 1.25rem 0 1.75rem;
}

.ovulation-guide-figure-img,
.hcg-guide-figure-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 14px;
}

.ovulation-guide-figure figcaption,
.hcg-guide-figure figcaption {
  font-size: 0.82rem;
  color: var(--gray-600);
  margin-top: 0.5rem;
  line-height: 1.45;
}

.ovulation-calculator-page .ovulation-page-cta,
.implantation-calculator-page .ovulation-page-cta,
.hcg-calculator-page .hcg-page-cta,
.ivf-calculator-page .ivf-page-cta {
  padding: 44px 0;
}
