/* ============================================
   POP SOLUTIONS — token system
   ============================================ */
:root {
  /* color */
  --ink: #1B2B33;
  --ink-soft: #44565D;
  --paper: #FBF4F1;
  --paper-deep: #F3E4DF;
  --rose: #B7245C;
  --rose-deep: #8A1A47;
  --rose-soft: #F2B9D2;
  --rose-pale: #FAE3ED;
  --teal: #1F7A72;
  --teal-deep: #144F49;
  --teal-pale: #DCEEEA;
  --sand: #F4E7B8;
  --sand-deep: #E0C66E;
  --white: #FFFEFC;

  /* type */
  --font-display: "Fraunces", "Iowan Old Style", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  /* layout */
  --max-w: 1180px;
  --gutter: clamp(1.5rem, 5vw, 4rem);
  --radius: 18px;
}

/* ============================================
   RESET
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
body, h1, h2, h3, p, ul, ol, figure, table { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
table { border-collapse: collapse; width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: none; cursor: pointer; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 0.6em 1em;
  z-index: 200;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

:focus-visible {
  outline: 2.5px solid var(--rose);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================
   SHARED TYPE
   ============================================ */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 1rem;
  display: inline-block;
}
.eyebrow-dark { color: var(--rose-deep); }
.eyebrow-light { color: var(--rose-soft); }

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 18ch;
  margin-bottom: 1.25rem;
}
.section-title-light { color: var(--white); }

.section-lede {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 56ch;
  margin-bottom: 2.75rem;
}
.section-lede-light { color: rgba(255,255,255,0.82); }

.footnote {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--ink-soft);
  opacity: 0.75;
  margin-top: 1.75rem;
  line-height: 1.6;
}
.footnote-light { color: rgba(255,255,255,0.65); }

/* ============================================
   LAYOUT HELPERS
   ============================================ */
.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; position: relative; }
.section-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }

.two-col {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; }
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 244, 241, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(27, 43, 51, 0.08);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.1rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: 0.01em;
  display: inline-flex;
  gap: 0.45em;
  align-items: center;
}
.logo-mark {
  width: 100px;
  height: 80px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
}
.logo-mark-small { width: 28px; height: 28px; }
.wordmark-pop { color: var(--rose); }
.wordmark-sol {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.62em;
  letter-spacing: 0.1em;
  color: var(--ink);
  align-self: center;
}
.wordmark-small { font-size: 1.1rem; }

.site-nav { display: flex; align-items: center; gap: 2.1rem; }
.site-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  transition: color 0.2s ease;
}
.site-nav a:hover { color: var(--rose); }
.site-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1.5px;
  background: var(--rose);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.site-nav a:not(.nav-cta):hover::after { transform: scaleX(1); }

.nav-cta {
  background: var(--rose);
  color: var(--white) !important;
  padding: 0.55em 1.2em;
  border-radius: 100px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.nav-cta:hover { background: var(--rose-deep); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.4rem;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 0.5rem var(--gutter) 1.5rem;
  gap: 0.2rem;
  border-top: 1px solid rgba(27,43,51,0.08);
}
.mobile-nav a {
  padding: 0.85rem 0;
  font-weight: 500;
  font-size: 1.02rem;
  border-bottom: 1px solid rgba(27,43,51,0.06);
}

@media (max-width: 760px) {
  .site-nav { display: none; }
  .nav-toggle { display: flex; }
  .site-header.nav-open .mobile-nav { display: flex; }
  .site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(ellipse 80% 60% at 70% 20%, var(--rose-pale) 0%, var(--paper) 65%);
}

.hero-rings {
  position: absolute;
  right: -8%;
  top: 50%;
  transform: translateY(-50%);
  width: min(62vw, 760px);
  opacity: 0.9;
  pointer-events: none;
}
.ring-svg { width: 100%; height: 100%; overflow: visible; }
.ring {
  fill: none;
  stroke-width: 1.4;
}
.r1 { stroke: var(--rose); opacity: 0.55; }
.r2 { stroke: var(--teal); opacity: 0.4; }
.r3 { stroke: var(--rose-soft); opacity: 0.6; }
.r4 { stroke: var(--sand-deep); opacity: 0.45; }
.r5 { stroke: var(--ink); opacity: 0.12; }

@keyframes ringPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.015); }
}
.hero-rings .ring-svg { animation: ringPulse 9s ease-in-out infinite; transform-origin: center; }

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  width: 100%;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 6.4vw, 4.6rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: var(--ink);
  max-width: 16ch;
  margin: 0.4rem 0 1.6rem;
}
.hero-accent {
  color: var(--rose);
  font-style: italic;
  font-weight: 500;
}

.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 2.4rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.85em 1.7em;
  border-radius: 100px;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn-primary { background: var(--rose); color: var(--white); }
.btn-primary:hover { background: var(--rose-deep); transform: translateY(-2px); }
.btn-ghost { border: 1.5px solid var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }

.scroll-cue {
  position: absolute;
  bottom: 2.4rem;
  left: var(--gutter);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  z-index: 2;
}
.scroll-cue span {
  width: 1px;
  height: 34px;
  background: var(--ink);
  opacity: 0.4;
  position: relative;
  overflow: hidden;
}
.scroll-cue span::after {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 40%;
  background: var(--rose);
  animation: scrollLine 2.2s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { top: -40%; }
  100% { top: 100%; }
}
.scroll-cue p {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

@media (max-width: 640px) {
  .hero { min-height: 86vh; padding-top: 2rem; }
  .hero-rings { width: 92vw; right: -20%; opacity: 0.55; }
  .scroll-cue { display: none; }
}

/* ============================================
   PROBLEM — anatomy grid
   ============================================ */
.anatomy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
@media (max-width: 980px) { .anatomy-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .anatomy-grid { grid-template-columns: 1fr; } }

.anatomy-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem 1.8rem;
  border: 1px solid rgba(27,43,51,0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.anatomy-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px -22px rgba(27,43,51,0.25);
}
.anatomy-card h3 {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.anatomy-card p { color: var(--ink-soft); font-size: 0.94rem; }

.anatomy-figure {
  width: 100%;
  height: 110px;
  margin-bottom: 1.2rem;
  border-radius: 12px;
  position: relative;
  background: var(--paper-deep);
  overflow: hidden;
}
.anatomy-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.anatomy-figure[data-figure="normal"] { background: linear-gradient(160deg, var(--teal-pale), var(--paper-deep)); }
.anatomy-figure[data-figure="normal"]::after { background: radial-gradient(circle at 50% 55%, var(--teal) 0 6px, transparent 7px); }
.anatomy-figure[data-figure="cystocele"] { background: linear-gradient(160deg, var(--rose-pale), var(--paper-deep)); }
.anatomy-figure[data-figure="cystocele"]::after { background: radial-gradient(ellipse 30px 18px at 50% 38%, var(--rose) 0 60%, transparent 61%); }
.anatomy-figure[data-figure="rectocele"] { background: linear-gradient(160deg, var(--sand), var(--paper-deep)); }
.anatomy-figure[data-figure="rectocele"]::after { background: radial-gradient(ellipse 30px 18px at 50% 68%, var(--sand-deep) 0 60%, transparent 61%); }
.anatomy-figure[data-figure="uterine"] { background: linear-gradient(160deg, var(--rose-soft), var(--paper-deep)); }
.anatomy-figure[data-figure="uterine"]::after { background: radial-gradient(ellipse 16px 40px at 50% 70%, var(--rose-deep) 0 60%, transparent 61%); }

/* ============================================
   PESSARIES SECTION
   ============================================ */
.section-pessary { background: var(--white); }

.check-list { margin: 1.6rem 0 0; display: flex; flex-direction: column; gap: 0.8rem; }
.check-list li {
  position: relative;
  padding-left: 1.7rem;
  color: var(--ink-soft);
  font-size: 1.02rem;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.35em;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--teal);
}

.two-col-visual { display: flex; flex-direction: column; align-items: center; gap: 1.6rem; }
.pessary-rings {
  position: relative;
  width: 280px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pring {
  position: absolute;
  border-radius: 50%;
  border: 3px solid var(--rose);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(242,185,210,0.18);
}
.pring span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--rose-deep);
  opacity: 0.7;
}
.pring-1 { width: 100px; height: 100px; border-color: var(--rose); }
.pring-2 { width: 145px; height: 145px; border-color: var(--rose); opacity: 0.85; }
.pring-3 { width: 190px; height: 190px; border-color: var(--teal); opacity: 0.7; }
.pring-4 { width: 235px; height: 235px; border-color: var(--teal); opacity: 0.5; }
.pring-5 { width: 280px; height: 280px; border-color: var(--sand-deep); opacity: 0.55; }
.pring-1 span, .pring-2 span { display: block; }
.pring-3 span, .pring-4 span, .pring-5 span { align-self: flex-end; margin-bottom: 0.4rem; }

.visual-caption {
  font-size: 0.88rem;
  color: var(--ink-soft);
  text-align: center;
  max-width: 32ch;
}

/* ============================================
   STATS / MARKET SECTION
   ============================================ */
.section-stats {
  background: linear-gradient(160deg, var(--teal-deep), var(--ink) 130%);
  color: var(--white);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.3rem;
}
@media (max-width: 980px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .stat-row { grid-template-columns: 1fr; } }

.stat-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
}
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 2.8rem);
  font-weight: 600;
  color: var(--sand);
  line-height: 1;
  margin-bottom: 0.6rem;
}
.stat-label { font-size: 0.92rem; color: rgba(255,255,255,0.78); }

/* ============================================
   MISSION
   ============================================ */
.section-mission { background: var(--rose-pale); }
.mission-inner { text-align: center; max-width: 820px; }
.mission-inner .eyebrow { display: block; }
.mission-statement {
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(1.5rem, 3.4vw, 2.3rem);
  line-height: 1.35;
  color: var(--rose-deep);
}
.mission-highlight {
  font-weight: 600;
  font-style: normal;
  color: var(--ink);
  background: linear-gradient(transparent 65%, var(--sand) 65%);
  padding: 0 0.06em;
}

/* ============================================
   SOLUTION
   ============================================ */
.section-solution { background: var(--paper); }

.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}
@media (max-width: 860px) { .solution-grid { grid-template-columns: 1fr; } }

.solution-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.7rem;
  border: 1px solid rgba(27,43,51,0.07);
}
.solution-icon {
  width: 50px; height: 50px;
  margin-bottom: 1.3rem;
  color: var(--rose);
}
.solution-icon svg { width: 100%; height: 100%; }
.solution-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.solution-card p { color: var(--ink-soft); font-size: 0.96rem; }

.compare-table-wrap {
  overflow-x: auto;
  margin-bottom: 3.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(27,43,51,0.08);
}
.compare-table { min-width: 480px; }
.compare-table caption {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  padding: 1rem 1.4rem;
  background: var(--paper-deep);
}
.compare-table th, .compare-table td {
  padding: 1rem 1.4rem;
  text-align: left;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(27,43,51,0.06);
}
.compare-table thead th {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  background: var(--white);
}
.compare-table tbody th { font-weight: 500; color: var(--ink); background: var(--white); }
.compare-table td { background: var(--white); font-weight: 600; }
.compare-table td.yes { color: var(--teal); }
.compare-table td.no { color: var(--rose); opacity: 0.75; }
.compare-table td.num { color: var(--ink); font-family: var(--font-mono); }
.compare-table tbody tr:last-child th, .compare-table tbody tr:last-child td { border-bottom: none; }

.intended-use {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
}
@media (max-width: 760px) { .intended-use { grid-template-columns: 1fr; } }
.iu-card {
  background: var(--teal-pale);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
}
.iu-label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 0.6rem;
}
.iu-text { font-size: 0.96rem; color: var(--ink); }

/* ============================================
   ROADMAP
   ============================================ */
.section-roadmap { background: var(--white); }

.roadmap-list { display: flex; flex-direction: column; }
.roadmap-list li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1.6rem;
  padding: 1.8rem 0;
  border-top: 1px solid rgba(27,43,51,0.08);
  position: relative;
}
.roadmap-list li:last-child { border-bottom: 1px solid rgba(27,43,51,0.08); }

.rm-ring {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 2.5px solid var(--rose);
  align-self: start;
  margin-top: 0.25rem;
  position: relative;
}
.roadmap-list li:nth-child(1) .rm-ring { border-color: var(--rose); }
.roadmap-list li:nth-child(2) .rm-ring { border-color: var(--teal); width: 32px; height: 32px; }

.rm-content h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.rm-content p { color: var(--ink-soft); max-width: 52ch; }

/* ============================================
   CONTACT
   ============================================ */
.section-contact {
  background: var(--ink);
  color: var(--white);
  text-align: center;
  overflow: hidden;
}
.contact-rings {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: min(70vw, 620px);
  opacity: 0.5;
  pointer-events: none;
}
.contact-rings .ring { stroke: var(--rose-soft); opacity: 0.35; }
.contact-rings .r2 { stroke: var(--teal); opacity: 0.3; }
.contact-rings .r3 { stroke: var(--sand); opacity: 0.25; }

.contact-inner { position: relative; z-index: 2; max-width: 700px; }
.contact-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4.4vw, 3rem);
  margin-bottom: 1rem;
}
.contact-sub {
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
  margin-bottom: 2.2rem;
}
.contact-email {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2.4vw, 1.3rem);
  color: var(--sand);
  border-bottom: 1.5px solid var(--sand);
  padding-bottom: 0.3rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.contact-email:hover { color: var(--white); border-color: var(--white); }

/* ============================================
   FOOTER
   ============================================ */
.site-footer { background: var(--ink); border-top: 1px solid rgba(255,255,255,0.1); }
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.8rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-inner .wordmark-pop { color: var(--rose-soft); }
.footer-inner .wordmark-sol { color: rgba(255,255,255,0.7); }
.footer-inner p { color: rgba(255,255,255,0.55); font-size: 0.85rem; }

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
