@font-face {
  font-family: Figtree; src: url("/fonts/figtree.woff2") format("woff2");
  font-weight: 300 900; font-display: swap;
}
/* Preserve Figtree’s vertical metrics while the font loads. */
@font-face {
  font-family: "Figtree fallback"; src: local("Arial"); size-adjust: 100%;
  ascent-override: 95%; descent-override: 25%; line-gap-override: 0%;
}
:root {
  color-scheme: light;
  --pearl: #f7f1ea; --blush: #f3e7e2; --lilac: #ede6ef; --ink: #2a1d31;
  --rose: #a84a38; --mauve: #6e5468; --muted: #6a5870; --stroke: #e4d8d2;
  --surface: rgba(255,253,250,.82);
  --shadow: 0 1px 2px rgba(42,29,49,.05), 0 8px 24px rgba(42,29,49,.06);
  --glow: radial-gradient(120% 55% at 88% -6%, #f0d5d2 0%, transparent 62%),
          radial-gradient(90% 45% at -10% 42%, #ece2f0 0%, transparent 64%),
          linear-gradient(180deg, #f7f1ea 0%, #f6efea 55%, #f1ebf0 100%);
  --sans: Figtree, "Figtree fallback", Arial, sans-serif;
  --gutter: clamp(1.25rem, 5vw, 5rem);
}
*, *::before, *::after { box-sizing: border-box; }
html { text-size-adjust: 100%; -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); background: var(--pearl); font: 400 1.0625rem/1.57 var(--sans); }
em, i, cite, var, dfn, address { font-style: normal; }
em { font-weight: 600; }
code, pre, kbd, samp { font-family: inherit; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rose); text-underline-offset: .22em; text-decoration-thickness: .08em; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
.skip-link { position: absolute; z-index: 12; top: .5rem; left: 1rem; transform: translateY(-160%); padding: .6rem 1rem; color: white; background: var(--ink); }
.skip-link:focus { transform: none; }
.wrap { width: min(calc(100% - 2 * var(--gutter)), 74rem); margin-inline: auto; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; font-weight: 800; letter-spacing: -.025em; }
h1 { font-size: clamp(3.15rem, 6vw, 5rem); }
h2 { font-size: clamp(2.65rem, 4.7vw, 4rem); }
h3, h4 { font-weight: 700; }
h3 { font-size: 2rem; }
h1 em, h2 em, h3 em { color: var(--rose); font-weight: inherit; }
p { margin: 0 0 1em; }
.lead { color: var(--muted); font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; }
.eyebrow, .card-topic {
  font: 700 .76rem/1.4 var(--sans); text-transform: uppercase; letter-spacing: .15em; color: var(--rose);
}
.ruled { display: flex; align-items: center; gap: .75rem; }
.ruled::before { content: ""; width: 2rem; height: 1px; background: currentColor; }
.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: .68rem 1.45rem; border-radius: 999px; background: var(--ink); color: var(--pearl); font-weight: 650; font-size: .96rem; text-decoration: none; }
.button:hover { background: #4b374e; text-decoration: none; }
.button:focus-visible { outline-color: var(--rose); }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 650; color: inherit; }
.site-header { position: relative; z-index: 5; background: var(--pearl); border-bottom: 1px solid var(--stroke); }
.header-row, .footer-row, .colophon { display: flex; align-items: center; gap: 2rem; }
.header-row { min-height: 5rem; }
.wordmark { display: inline-flex; align-items: center; min-height: 44px; }
.desktop-nav { display: flex; gap: 2rem; margin-left: auto; }
.desktop-nav a, .mobile-nav a, .footer-row nav a { color: var(--ink); text-decoration: none; font-weight: 550; font-size: .9375rem; padding-block: .65rem; }
.desktop-nav a:hover, .footer-row nav a:hover, a[aria-current="page"] { text-decoration: underline; }
.mobile-nav { display: none; }
.hero { background: var(--glow); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; min-height: 38rem; }
.hero-copy { position: relative; z-index: 1; padding: 3rem 0; }
.hero-copy .eyebrow { margin-bottom: 1.65rem; }
.hero h1 { font-size: clamp(2.9rem, 6.9vw, 5.8rem); letter-spacing: -.03em; line-height: 1.05; }
.hero .lead { margin: 1.6rem 0 1rem; max-width: 25em; }
.badges { display: flex; align-items: center; flex-wrap: wrap; gap: 0 .25rem; padding-block: .1rem; }
.badges > a { display: flex; align-items: center; min-height: 66px; }
.badges > a:first-child { margin-right: .2rem; }
.apple-badge { width: 132px; }
.play-badge { width: 170px; }
.privacy-note { display: flex; align-items: center; gap: .6rem; margin: .65rem 0 0; color: var(--muted); font-size: .9rem; }
.lock-icon { display: inline-block; position: relative; width: 12px; height: 10px; border: 1.5px solid currentColor; border-radius: 2px; margin-top: 4px; }
.lock-icon::before { content: ""; position: absolute; width: 7px; height: 6px; border: 1.5px solid currentColor; border-bottom: 0; border-radius: 5px 5px 0 0; left: 1px; bottom: 100%; }
.hero-art { position: relative; display: grid; place-items: center; min-width: 0; padding: 2.8rem 0; isolation: isolate; }
.cycle-wheel {
  position: absolute; width: min(100%, 32.5rem); aspect-ratio: 1; border-radius: 50%; z-index: -1;
  background: conic-gradient(from -33deg, #d8aca3 0deg, #e3c8bf 86deg, #f4e7df 87deg 89deg, #d8c6d8 90deg, #c2b1c4 176deg, #f0e7e8 177deg 179deg, #e4c99e 180deg, #e8d7bc 266deg, #f6ede1 267deg 269deg, #c1cfc9 270deg, #cdd8d2 357deg, #f1e7e0 358deg);
  box-shadow: inset 0 0 0 1px #62425018;
}
.cycle-wheel::before { content: ""; position: absolute; inset: 7%; border-radius: 50%; background: linear-gradient(135deg, #efdcce, #eddbdb 60%, #e8dce7); border: 1px solid #f8efe6; }
.cycle-wheel::after { content: ""; position: absolute; inset: -3.5%; border: 1px solid #85687745; border-radius: 50%; }
.wheel-ticks { position: absolute; inset: 1.5%; border-radius: 50%; background: repeating-conic-gradient(from 0deg, #4d334a55 0deg .28deg, transparent .28deg 5deg); mask: radial-gradient(closest-side, transparent calc(100% - 7px), black calc(100% - 6px)); }
.hero-phone { width: clamp(12rem, 18vw, 15.15rem); transform: rotate(5deg); }
.phone { padding: 5px; background: #302b30; border: 2px solid #8c8083; border-radius: 2.35rem; box-shadow: inset 0 0 0 1px #0f0c11, 0 18px 28px -12px #291b325c, 0 4px 12px #291b3221; }
.phone img { width: 100%; height: auto; border-radius: 1.95rem; }
.phase-band { border-block: 1px solid var(--stroke); background: #faf5ef; }
.phases { display: grid; grid-template-columns: 1fr repeat(4, 1.15fr); gap: 1.55rem; padding-block: 2.5rem; }
.phases h2 { align-self: center; font-size: clamp(2.2rem, 3.4vw, 3.2rem); }
.phases > div { border-left: 1px solid var(--stroke); padding-left: 1.45rem; }
.phases h3 { font-size: 1.65rem; margin: .45rem 0 .3rem; }
.phases p { color: var(--muted); font-size: .91rem; line-height: 1.4; margin: 0; }
.phase-shape { display: block; width: 17px; height: 17px; }
.menstrual { background: #a8344f; border-radius: 68% 8% 64% 58%; transform: rotate(-45deg) scale(.86); }
.follicular { background: #286b7c; border-radius: 90% 0; }
.ovulatory { background: #e7ae45; border-radius: 50%; border: 1px solid #8e5f0c; }
.luteal { border-radius: 50%; box-shadow: inset 6px -2px #6f51a6; }
.tour, .home-guides, .faq-section, .collection { padding-block: clamp(3.2rem, 6vw, 6rem); }
.section-heading { margin-bottom: 2.5rem; }
.section-heading .eyebrow, .faq-section .eyebrow, .privacy-band .eyebrow { margin-bottom: 1rem; }
.tour-row { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2.2rem, 8vw, 8rem); padding-block: 2rem; border-top: 1px solid var(--stroke); }
.tour-row:nth-of-type(odd) .screen-stage { order: -1; }
.tour-copy { max-width: 28rem; }
.tour-copy h3 { font-size: clamp(2.45rem, 4.2vw, 3.7rem); margin: .8rem 0 1.1rem; }
.tour-copy p:not(.eyebrow), .privacy-grid p:not(.eyebrow) { color: var(--muted); max-width: 27em; }
.tour-copy .small-note { font-size: .9rem; padding-left: .85rem; border-left: 2px solid #a87e77; }
.screen-stage, .privacy-art { position: relative; isolation: isolate; display: grid; place-items: center; overflow: hidden; }
.screen-stage { height: clamp(19rem, 29vw, 25rem); border-radius: 20px; background: var(--stage); box-shadow: var(--shadow); }
.screen-stage::before, .privacy-art::before {
  content: ""; position: absolute; z-index: -1; width: 75%; aspect-ratio: 1; border-radius: 50%; border: 1px solid #61435722;
  box-shadow: 0 0 0 2rem #ffffff14, 0 0 0 calc(2rem + 1px) #61435718, 0 0 0 4rem #ffffff14, 0 0 0 calc(4rem + 1px) #61435714;
}
.screen-stage .phone, .privacy-art .phone { width: clamp(12rem, 17vw, 14.5rem); margin-top: 2rem; transform: rotate(-3deg); }
.log-stage .phone, .partner-stage .phone { transform: rotate(3deg); }
.calendar-stage { --stage: linear-gradient(125deg,#ded7e4,#ece1eb); }
.log-stage { --stage: linear-gradient(125deg,#ecd4cb,#f3e6de); }
.relief-stage { --stage: linear-gradient(125deg,#d4dfda,#e5e8df); }
.partner-stage { --stage: linear-gradient(125deg,#e8cfc5,#f0ded9); }
.privacy-band { background: var(--ink); color: var(--pearl); overflow: hidden; }
.privacy-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 2rem; }
.privacy-grid > div:first-child { padding-block: clamp(3rem, 5vw, 5rem); }
.privacy-grid h2 em, .privacy-grid .eyebrow { color: #efb5a6; }
.privacy-grid p:not(.eyebrow) { color: #e4d6e1; margin: 1.25rem 0 .55rem; }
.privacy-art { align-self: stretch; min-height: 19rem; background: radial-gradient(ellipse at 50% 75%,#62455f,transparent 70%); }
.privacy-art::before { border-color: #f7ddd938; box-shadow: 0 0 0 2.5rem #ffffff06, 0 0 0 calc(2.5rem + 1px) #f7ddd91a; }
.privacy-art .phone { position: absolute; top: 0; }
.split, .colophon { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.faq-section { display: grid; grid-template-columns: 1fr 1.5fr; gap: 3rem; border-top: 1px solid var(--stroke); }
.faq-list details, .prose details { border-bottom: 1px solid #ccbdc5; }
.faq-list details:first-child { border-top: 1px solid #ccbdc5; }
details summary { cursor: pointer; }
.faq-list summary, .prose details summary { position: relative; list-style: none; font-weight: 600; padding: 1.1rem 2rem 1.1rem 0; }
summary::-webkit-details-marker { display: none; }
.faq-list summary::after, .prose details summary::after { content: "+"; font: 400 1.4rem/1 var(--sans); position: absolute; right: .4rem; top: 1.15rem; color: var(--rose); }
.faq-list details[open] summary::after, .prose details[open] summary::after { content: "−"; }
.faq-list details p, .prose details p { color: var(--muted); }
.download-band { position: relative; isolation: isolate; overflow: hidden; text-align: center; background: var(--rose); color: #fff8ef; padding: clamp(3.5rem, 6vw, 6rem) var(--gutter); }
.download-band::before, .download-band::after { content: ""; position: absolute; z-index: -1; top: -90%; width: 35rem; height: 170%; border: 1px solid #fff1e638; border-radius: 50%; box-shadow: 0 0 0 2rem #ffffff06, 0 0 0 calc(2rem + 1px) #fff1e625; transform: rotate(-34deg); }
.download-band::before { left: -20rem; }
.download-band::after { right: -24rem; top: 15%; }
.download-band > img { margin: 0 auto .7rem; }
.download-band em { color: inherit; }
.download-band p { margin: .8rem 0; }
.download-band .badges { justify-content: center; }
.site-footer { padding-block: 2.8rem 1.5rem; background: #faf5ef; border-top: 1px solid var(--stroke); }
.footer-row { justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-row nav { display: flex; gap: 0 1.3rem; flex-wrap: wrap; }
.medical-note, .colophon { font-size: .875rem; color: var(--muted); }
.medical-note { max-width: 58rem; margin: 1.3rem 0 1.5rem; }
.colophon { padding-top: 1rem; border-top: 1px solid var(--stroke); }
.colophon a { color: inherit; }
/* Library, article and support pages */
.collection-head { padding-block: 2.5rem 1.4rem; max-width: 48rem; }
.collection-head .lead, .standalone .lead { margin: 1rem 0; max-width: 42rem; }
.collection h2 { font-size: clamp(2rem, 4vw, 3rem); margin: 2.25rem 0 1.25rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .35rem .65rem; list-style: none; padding: 0; margin: 0 0 1.5rem; color: var(--muted); font-size: .9rem; }
.crumbs li + li::before { content: "/"; color: var(--muted); margin-right: .65rem; }
.topic-filter { display: flex; flex-wrap: wrap; gap: .5rem; border-block: 1px solid var(--stroke); padding: 1.2rem 0; margin-bottom: 1.8rem; }
.topic-filter a { display: inline-flex; align-items: center; padding: .54rem .95rem; border: 1px solid #a494a0; border-radius: 999px; color: var(--ink); font-size: .9rem; text-decoration: none; }
.topic-filter a:hover { background: var(--blush); }
.topic-filter a[aria-current] { background: var(--ink); color: white; border-color: var(--ink); }
.guide-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,17rem),1fr)); gap: 1rem; }
.guide-list li { margin: 0; }
.guide-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; height: 100%; padding: 1.6rem; background: var(--surface); border: 1px solid var(--stroke); border-radius: 20px; box-shadow: var(--shadow); color: var(--ink); text-decoration: none; }
.guide-card:hover { text-decoration: none; border-color: #ab8f9a; }
.guide-card:hover strong { text-decoration: underline; text-decoration-thickness: 1px; }
.card-topic { letter-spacing: .09em; }
.guide-card strong { margin: .85rem 0 1.4rem; font: 700 1.9rem/1.15 var(--sans); letter-spacing: -.025em; }
.card-meta { margin-top: auto; font-size: .875rem; color: var(--muted); }
.empty-state { padding-block: 1rem; margin: 0; color: var(--muted); }
.prose-wrap { max-width: 68ch; padding-block: clamp(2.5rem,5vw,5rem); overflow-wrap: break-word; }
.guide { line-height: 1.6; }
.prose-wrap h1 { text-wrap: balance; }
.page-title { border-bottom: 1px solid var(--stroke); padding-bottom: 1.5rem; }
.updated, .guide-meta { margin: .8rem 0 0; color: var(--muted); font-size: .9375rem; }
.prose { margin-top: 1.5rem; }
.prose h2 { font-size: clamp(2.05rem,4vw,2.75rem); margin: 2.15rem 0 .75rem; }
.prose h3 { margin: 1.8rem 0 .5rem; font-size: 1.7rem; }
.prose li + li { margin-top: .5rem; }
.prose .guide-list { margin-block: 1rem; }
.prose .guide-list li { margin: 0; }
.callout, .toc, .article-app { padding: clamp(1.2rem,3vw,2rem); border-radius: 20px; margin: 1.5rem 0; }
.callout { background: var(--blush); }
.callout p:last-child, .toc ol { margin-bottom: 0; }
.toc { background: var(--surface); border: 1px solid var(--stroke); }
.toc h2, .prose .toc h2 { font: 700 1rem/1.15 var(--sans); margin: 0 0 .7rem; }
.toc li { padding: .22rem 0; }
.toc ol { padding-inline-start: 1.35rem; }
.article-app { background: var(--lilac); }
.article-app h2 { margin: .5rem 0; }
.guide > .eyebrow { margin-top: 2.25rem; }
.guide pre, .guide-table { overflow-x: auto; max-width: 100%; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 1rem; }
.prose th, .prose td { padding: .7rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--stroke); }
.prose th { background: var(--lilac); }
@media (prefers-reduced-motion: no-preference) {
  .hero-copy { animation: settle-in .65s ease-out both; }
  .hero-phone { animation: float-phone 4.7s ease-in-out 1; }
  .in-view .tour-copy, .in-view .screen-stage { animation: settle-in .6s ease-out both; }
  @keyframes settle-in { from { transform: translateY(9px); } to { transform: none; } }
  @keyframes float-phone { 50% { transform: translateY(-7px) rotate(4deg); } }
}
@media (max-width: 850px) {
  .hero-grid { min-height: 32rem; }
  .phases { grid-template-columns: repeat(4,1fr); }
  .phases h2 { grid-column: 1 / -1; }
  .phases h2 br { display: none; }
  .phases h2 em::before { content: " "; }
  .phases > div { padding-left: .8rem; }
  .hero .badges { gap: 0; }
  .tour-row { gap: 2rem; }
}
@media (max-width: 680px) {
  .header-row { min-height: 4.25rem; gap: .8rem; }
  .desktop-nav { display: none; }
  .header-cta { margin-left: auto; font-size: .875rem; padding-inline: 1rem; }
  .mobile-nav { display: block; }
  .mobile-nav summary { list-style: none; font-size: .9375rem; font-weight: 600; padding: .65rem .25rem; }
  .mobile-nav nav { position: absolute; top: calc(100% - .25rem); right: var(--gutter); min-width: 10rem; background: #fffbf7; border: 1px solid var(--stroke); border-radius: .9rem; padding: .45rem 1rem; box-shadow: var(--shadow); }
  .mobile-nav a { display: block; }
  .hero-grid, .tour-row, .faq-section, .privacy-grid { grid-template-columns: minmax(0,1fr); }
  .hero-copy { padding: 2.8rem 0 0; }
  .hero-copy .eyebrow { margin-bottom: 1rem; }
  .hero h1 { font-size: clamp(2.5rem,13.4vw,5.7rem); }
  .hero .lead { margin: 1.15rem 0 .7rem; max-width: 30rem; }
  .hero-art { width: min(100%, 29rem); margin: 0 auto; padding: 2.2rem 0 2.5rem; }
  .hero-phone { width: clamp(10rem,44vw,13rem); }
  .cycle-wheel { width: 87%; }
  .phases { grid-template-columns: 1fr 1fr; gap: 1.4rem 1.1rem; padding-block: 2rem; }
  .phases > div { padding-left: .85rem; }
  .phases h3 { font-size: 1.55rem; }
  .tour-row { padding-block: 1.8rem; gap: 1rem; }
  .tour-row:nth-of-type(odd) .screen-stage { order: 0; }
  .screen-stage { height: 20rem; }
  .tour-copy p:last-child { margin-bottom: .4rem; }
  .privacy-grid { gap: 0; }
  .privacy-grid > div:first-child { padding: 3rem 0 1rem; }
  .privacy-art { min-height: 18rem; }
  .faq-section { gap: 1.8rem; }
  .footer-row { align-items: flex-start; flex-direction: column; }
  .section-heading { margin-bottom: 1.5rem; }
  .split { align-items: flex-start; }
  .prose table:has([data-label]) thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .prose table:has([data-label]) :is(tbody,tr,td) { display: block; }
  .prose td[data-label]::before { content: attr(data-label); display: block; color: var(--mauve); font-weight: 700; }
  .prose table:has([data-label]) tr { margin-bottom: 1rem; background: var(--surface); }
}
.collection-head { position: relative; isolation: isolate; overflow: hidden; max-width: none; border-radius: 20px; padding: clamp(1.5rem,4.5vw,4rem); background: var(--glow); }
.collection-head::after { content: ""; position: absolute; z-index: -1; width: 11rem; aspect-ratio: 1; right: 2rem; top: 50%; transform: translateY(-50%) rotate(14deg); background: url("/img/ruvie-mark.svg") center / contain no-repeat; opacity: .12; }
.collection-head h1 { max-width: 15em; }
.collection-head .lead { max-width: 38rem; }
.topic-directory { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,18rem),1fr)); gap: 1rem; }
.topic-directory a { display: block; padding: 1.4rem; border: 1px solid var(--stroke); border-radius: 20px; color: var(--ink); background: var(--surface); box-shadow: var(--shadow); text-decoration: none; }
.topic-directory a:hover strong { text-decoration: underline; text-decoration-thickness: 1px; }
.topic-directory strong { display: block; font: 700 1.85rem/1.1 var(--sans); letter-spacing: -.025em; margin-bottom: .65rem; }
.topic-directory span { font-size: .98rem; color: var(--muted); }
@media (max-width: 680px) {
  .collection-head::after { right: -2rem; opacity: .055; }
}
.hero .eyebrow, .collection-head .eyebrow { color: #8e3b32; }

.footer-topics { display: flex; align-items: baseline; flex-wrap: wrap; gap: .5rem 1.25rem; margin-bottom: 1.5rem; }
.footer-topics h2 { width: 100%; margin: 0; font-size: 1rem; }
.footer-topics a { color: var(--ink); font-size: .875rem; }
.topic-directory-toggle { margin-bottom: 1.5rem; }
.topic-directory-toggle summary { cursor: pointer; font-weight: 650; }
.topic-directory-toggle .footer-topics { margin-top: .75rem; }
