@import url("https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,400;14..32,500;14..32,600;14..32,700;14..32,800;14..32,900&family=Poppins:wght@700&display=swap");

/* ============================================================
   InsideHer · Course Library — flagship edition (2026-06-30)
   Editorial, premium, restrained. Warm paper ground, exquisite
   type rhythm, layered depth, grain, one confident gradient.
   ============================================================ */

:root {
  --indigo: #5B4FE5;
  --violet: #A24DC6;
  --mauve: #A24DC6;
  --rose: #E94BA8;
  --pink: #E94BA8;
  --gradient: linear-gradient(120deg, #5B4FE5 0%, #A24DC6 50%, #E94BA8 100%);
  --gradient-soft: var(--gradient);

  --ink: #15110d;
  --ink-2: #2b2218;
  --body: #5c5249;
  --muted: #8b8175;
  --faint: #b6ab9d;

  --paper: #f4efe8;
  --paper-2: #eee7dd;
  --card: #fffdfa;
  --plum: #161019;
  --plum-2: #0f0a14;

  --line: rgba(21, 17, 13, 0.10);
  --line-2: rgba(21, 17, 13, 0.06);
  --line-dk: rgba(250, 246, 240, 0.14);

  --sh-sm: 0 1px 2px rgba(21, 17, 13, 0.05);
  --sh: 0 2px 4px rgba(21, 17, 13, 0.04), 0 18px 40px rgba(21, 17, 13, 0.07);
  --sh-lg: 0 4px 8px rgba(21, 17, 13, 0.05), 0 40px 80px rgba(21, 17, 13, 0.13);
  --sh-glow: 0 24px 60px rgba(162,77,198, 0.32);

  --r: 22px;
  --r-lg: 30px;
  --maxw: 1280px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --display-tight-scale: 0.985;
  --display-word-spacing: 0.02em;
  --font-display: "Poppins", "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* grain */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(72% 60% at 92% 10%, rgba(233, 75, 168, 0.08), transparent 62%),
    radial-gradient(64% 52% at 12% 18%, rgba(91, 79, 229, 0.08), transparent 58%),
    var(--paper);
  font-family: "Inter", "Segoe UI", system-ui, Arial, sans-serif;
  font-optical-sizing: auto;
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }

::selection { background: rgba(162,77,198, 0.22); }
*:focus-visible { outline: 2px solid var(--indigo); outline-offset: 4px; border-radius: 6px; }

.wrap { width: min(100%, var(--maxw)); margin: 0 auto; padding-inline: clamp(22px, 5vw, 64px); }

.grad-text {
  background: var(--gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--violet);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--indigo);
}
.kicker::before {
  content: "";
  width: 22px; height: 1.5px; border-radius: 2px;
  background: var(--gradient);
}
.kicker--dot::before { width: 8px; height: 8px; border-radius: 999px; }

/* ============================================================ NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background 300ms var(--ease), border-color 300ms var(--ease), box-shadow 300ms var(--ease);
  border-bottom: 1px solid transparent;
}
.nav[data-scrolled="true"] {
  background: rgba(244, 239, 232, 0.78);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border-bottom-color: var(--line-2);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; height: 78px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand img.mark { width: 34px; height: 34px; object-fit: contain; }
.brand img.word { height: 22px; width: auto; object-fit: contain; }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a {
  color: var(--body); text-decoration: none; font-size: 0.94rem; font-weight: 500;
  transition: color 180ms var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; white-space: nowrap;
  background: var(--ink); color: #fff !important; font-weight: 600; font-size: 0.92rem;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease);
}
.nav__cta:hover { transform: translateY(-2px); box-shadow: var(--sh); }

/* ============================================================ BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding: 0 28px; border-radius: 999px; border: 1px solid transparent;
  text-decoration: none; font-weight: 600; font-size: 1rem; cursor: pointer;
  transition: transform 240ms var(--ease), box-shadow 240ms var(--ease), background 240ms var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform 240ms var(--ease); }
.btn--primary { color: #fff; background: var(--gradient); box-shadow: var(--sh-glow); }
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 30px 70px rgba(162,77,198,0.45); }
.btn--primary:hover svg { transform: translateX(4px); }
.btn--ghost { color: var(--ink); background: var(--card); border-color: var(--line); box-shadow: var(--sh-sm); }
.btn--ghost:hover { transform: translateY(-3px); box-shadow: var(--sh); }
.btn--light { color: var(--ink); background: #fff; }
.btn--light:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0,0,0,0.2); }

/* ============================================================ HERO */
.hero { padding: clamp(38px, 5vw, 66px) 0 clamp(34px, 4vw, 52px); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 740px) minmax(330px, 0.72fr);
  gap: clamp(30px, 4vw, 54px);
  align-items: start;
}
.hero__eyebrow { margin-bottom: 18px; }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.65rem, 4.35vw, 4.6rem);
  font-weight: 700;
  font-kerning: normal;
  font-feature-settings: "kern";
  line-height: 1.04;
  letter-spacing: 0;
  max-width: 18ch;
  word-spacing: var(--display-word-spacing);
  transform: scaleX(var(--display-tight-scale));
  transform-origin: left center;
}
.hero__sub {
  margin-top: 24px;
  max-width: 58ch;
  color: var(--body);
  font-size: clamp(1.08rem, 1.5vw, 1.22rem);
  line-height: 1.55;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* hero cover panel (the confident moment) */
.cover {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--gradient);
  box-shadow: var(--sh-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 34px;
  color: #fff;
  isolation: isolate;
}
.cover::after {
  content: "";
  position: absolute; inset: 0; z-index: 2;
  background-image: var(--grain);
  background-size: 180px;
  opacity: 0.12; mix-blend-mode: overlay; pointer-events: none;
}
.cover::before {
  content: "";
  position: absolute; width: 130%; height: 60%; left: -15%; top: -10%; z-index: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.42), transparent 60%);
  filter: blur(10px);
}
.cover__top { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; }
.cover__chip {
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase;
  padding: 7px 13px; border-radius: 999px;
  background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.28);
  backdrop-filter: blur(6px);
}
.cover__bloom { position: relative; z-index: 3; width: clamp(96px, 22%, 150px); align-self: center; margin: auto 0; filter: drop-shadow(0 12px 30px rgba(0,0,0,0.25)); }
.cover__foot { position: relative; z-index: 3; }
.cover__title { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
.cover__meta { margin-top: 8px; font-size: 0.85rem; color: rgba(255,255,255,0.78); }

/* hero preview panel (real pathways, not decoration) */
.hpreview {
  position: relative;
  overflow: hidden;
  align-self: start;
  border: 1px solid rgba(250, 246, 240, 0.14);
  border-radius: 26px;
  padding: clamp(24px, 2.8vw, 34px);
  color: #fff;
  background:
    radial-gradient(520px 360px at 96% 0%, rgba(233, 75, 168, 0.28), transparent 62%),
    linear-gradient(150deg, rgba(43, 27, 46, 0.98), rgba(15, 10, 20, 0.99) 58%),
    var(--plum-2);
  box-shadow: var(--sh-lg);
}
.hpreview__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px;
  padding: 0 0 20px;
}
.hpreview__head span { font-size: 0.76rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(250,246,240,0.62); }
.hpreview__head strong {
  border: 1px solid rgba(250, 246, 240, 0.16);
  border-radius: 999px;
  padding: 7px 10px;
  color: rgba(250, 246, 240, 0.72);
  font-size: 0.76rem;
  font-weight: 760;
  line-height: 1;
}
.hprow {
  display: flex; align-items: center; gap: 14px;
  padding: 15px 0;
  border-radius: 0;
  text-decoration: none;
  transition: transform 200ms var(--ease);
}
.hprow + .hprow { border-top: 1px solid rgba(250,246,240,0.12); }
.hprow:hover { transform: translateX(3px); }
.hprow__dot { width: 8px; height: 8px; border-radius: 999px; flex: 0 0 auto; background: var(--t, var(--gradient)); box-shadow: 0 0 0 5px rgba(233,75,168,0.08); }
.hprow__name { flex: 1; font-weight: 700; letter-spacing: 0; color: #fff; font-size: 1rem; }
.hprow__tag { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(250,246,240,0.54); }
.hprow svg { width: 16px; height: 16px; color: rgba(250,246,240,0.46); flex: 0 0 auto; transition: transform 200ms var(--ease), color 200ms var(--ease); }
.hprow:hover svg { transform: translateX(3px); color: #fff; }

/* stat bar */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: clamp(34px, 5vw, 54px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line-2);
}
.stats > div { padding: 22px clamp(12px, 2vw, 24px) 20px 0; }
.stats > div + div { border-left: 1px solid var(--line); padding-left: clamp(14px, 2vw, 28px); }
.stats dt {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.65rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.05;
  word-spacing: var(--display-word-spacing);
}
.stats div:first-child dt { color: var(--violet); }
.stats dd { margin: 8px 0 0; color: var(--muted); font-size: 0.84rem; line-height: 1.35; }

/* ============================================================ SECTION SHELL */
.section { padding: clamp(56px, 8vw, 110px) 0; border-top: 1px solid var(--line); }
.section__head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section__head .kicker { margin-bottom: 18px; }
.section__head h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: 0;
  word-spacing: var(--display-word-spacing);
  transform: scaleX(var(--display-tight-scale));
  transform-origin: left center;
}
.section__head p { margin-top: 16px; color: var(--body); font-size: 1.1rem; line-height: 1.6; max-width: 56ch; }

/* ============================================================ PATHWAY GRID */
.pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.pcard {
  position: relative;
  display: flex; flex-direction: column;
  min-height: 268px;
  padding: 30px 28px 26px;
  border-radius: var(--r);
  background: var(--card);
  border: 1px solid var(--line-2);
  box-shadow: var(--sh);
  text-decoration: none;
  overflow: hidden;
  transition: transform 360ms var(--ease), box-shadow 360ms var(--ease), border-color 360ms var(--ease);
}
.pcard::before {
  content: "";
  position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: var(--tone, var(--gradient));
  transform: scaleX(0); transform-origin: left;
  transition: transform 420ms var(--ease);
}
.pcard:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); border-color: transparent; }
.pcard:hover::before { transform: scaleX(1); }
.pcard__idx {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; color: var(--faint);
  font-variant-numeric: tabular-nums;
}
.pcard__title { margin-top: 18px; font-size: 1.55rem; font-weight: 750; letter-spacing: -0.025em; line-height: 1.08; }
.pcard__desc { margin-top: 12px; color: var(--body); font-size: 0.97rem; line-height: 1.55; }
.pcard__foot {
  margin-top: auto; padding-top: 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.pcard__label {
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--tone-solid, var(--violet));
}
.pcard__arrow {
  width: 38px; height: 38px; border-radius: 999px; flex: 0 0 auto;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  color: var(--ink);
  transition: background 360ms var(--ease), color 360ms var(--ease), border-color 360ms var(--ease), transform 360ms var(--ease);
}
.pcard__arrow svg { width: 17px; height: 17px; }
.pcard:hover .pcard__arrow { background: var(--tone, var(--gradient)); color: #fff; border-color: transparent; transform: translateX(3px); }

.pcard--endo,
.pcard--pmdd,
.pcard--meno,
.pcard--peri,
.pcard--preg,
.pcard--post {
  --tone: var(--gradient);
  --tone-solid: var(--violet);
}

/* ============================================================ PROCESS (big numerals) */
.proc { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(24px,4vw,56px); }
.proc__item { padding-top: 26px; border-top: 1px solid var(--ink); }
.proc__n {
  font-size: clamp(3rem, 5vw, 4.6rem); font-weight: 800; letter-spacing: -0.05em; line-height: 0.9;
  background: var(--gradient); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.proc__item h3 { margin-top: 24px; font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em; }
.proc__item p { margin-top: 10px; color: var(--body); font-size: 1rem; line-height: 1.58; }

/* ============================================================ STATEMENT (dark, grain) */
.statement {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg);
  padding: clamp(48px, 8vw, 110px) clamp(28px, 6vw, 88px);
  background:
    radial-gradient(900px 500px at 88% -10%, rgba(162,77,198,0.5), transparent 60%),
    radial-gradient(700px 500px at 0% 110%, rgba(240,133,183,0.4), transparent 60%),
    linear-gradient(160deg, #1c1426, var(--plum) 60%, var(--plum-2));
  color: #fff;
}
.statement::after {
  content:""; position:absolute; inset:0; background-image: var(--grain); background-size:180px;
  opacity:0.10; mix-blend-mode: overlay; pointer-events:none;
}
.statement .kicker { color: rgba(255,255,255,0.66); }
.statement .kicker::before { background: linear-gradient(90deg,#fff,#f4c6e7); }
.statement__q {
  position: relative; max-width: 22ch; margin-top: 22px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: 0;
  word-spacing: var(--display-word-spacing);
}
.statement__by { position: relative; margin-top: 28px; color: rgba(255,255,255,0.7); font-size: 1.02rem; }

/* trust row inside statement */
.trust { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: clamp(40px,5vw,64px); }
.trust__i { padding-top: 22px; border-top: 1px solid var(--line-dk); }
.trust__i h4 { font-size: 1.06rem; font-weight: 700; color: #fff; }
.trust__i p { margin-top: 8px; color: rgba(255,255,255,0.66); font-size: 0.95rem; line-height: 1.55; }

/* ============================================================ CTA */
.cta { padding: clamp(56px, 8vw, 110px) 0; }
.cta__card {
  position: relative; overflow: hidden; text-align: center;
  border-radius: var(--r-lg);
  padding: clamp(48px, 7vw, 92px) clamp(28px, 5vw, 64px);
  background: var(--gradient); color: #fff;
  box-shadow: var(--sh-glow);
}
.cta__card::after { content:""; position:absolute; inset:0; background-image: var(--grain); background-size:180px; opacity:0.12; mix-blend-mode:overlay; }
.cta__card h2 { position: relative; max-width: 18ch; margin: 0 auto; font-family: var(--font-display); font-size: clamp(2.1rem,3.8vw,3.2rem); line-height: 1.08; font-weight: 700; letter-spacing: 0; word-spacing: var(--display-word-spacing); }
.cta__card p { position: relative; max-width: 50ch; margin: 18px auto 0; color: rgba(255,255,255,0.9); font-size: 1.1rem; line-height: 1.6; }
.cta__card .btn { position: relative; margin-top: 34px; }

/* ============================================================ FOOTER */
.foot { padding: 56px 0; border-top: 1px solid var(--line); }
.foot__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.foot__note { color: var(--muted); font-size: 0.9rem; max-width: 48ch; }
.foot__link { color: var(--violet); font-weight: 600; text-decoration: none; }

/* ============================================================ MOTION */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
[data-reveal][data-revealed="true"] { opacity: 1; transform: none; }
.pcard[data-reveal]:nth-child(2), .proc__item[data-reveal]:nth-child(2), .trust__i[data-reveal]:nth-child(2) { transition-delay: 90ms; }
.pcard[data-reveal]:nth-child(3), .proc__item[data-reveal]:nth-child(3), .trust__i[data-reveal]:nth-child(3) { transition-delay: 180ms; }
.pcard[data-reveal]:nth-child(4) { transition-delay: 90ms; }
.pcard[data-reveal]:nth-child(5) { transition-delay: 180ms; }
.pcard[data-reveal]:nth-child(6) { transition-delay: 270ms; }

.progress-bar { position: fixed; inset: 0 0 auto 0; z-index: 100; height: 2px; background: transparent; }
.progress-bar__fill { width: 0; height: 100%; background: var(--gradient); }
.back-to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 90; width: 48px; height: 48px;
  border: 1px solid var(--line); border-radius: 999px; background: rgba(255,253,250,0.92);
  color: var(--ink); box-shadow: var(--sh); cursor: pointer; font-size: 1.1rem; opacity: 0; pointer-events: none;
  backdrop-filter: blur(10px); transition: opacity 220ms var(--ease), transform 220ms var(--ease);
}
.back-to-top[data-visible="true"] { opacity: 1; pointer-events: auto; }
.back-to-top:hover { transform: translateY(-3px); }

/* ============================================================ RESPONSIVE */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .cover { aspect-ratio: 16/10; max-width: 560px; }
  .pgrid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .proc { grid-template-columns: 1fr; gap: 0; }
  .proc__item + .proc__item { margin-top: 28px; }
  .trust { grid-template-columns: 1fr; gap: 0; }
  .trust__i + .trust__i { margin-top: 22px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .nav__links { gap: 14px; }
  .nav__links a.nav-link { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .pgrid { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ==================== PRINT FALLBACKS · 2026-07-01 ==================== */
@media print {
  .accent-text, .title-gradient, .grad-text {
    -webkit-text-fill-color: #4b3a9e !important; color: #4b3a9e !important; background: none !important;
  }
  .step__num, .proc__n, .mstep__n,
  .hero__stats dt, .hero__stats div:first-child dt, .chero__meta dt, .stats dt, .stats div:first-child dt {
    -webkit-text-fill-color: #15110d !important; color: #15110d !important; background: none !important;
  }
  .module__num {
    background: #4b3a9e !important; color: #fff !important;
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
  .chero, .statement, .closing__card, .cta__card {
    background: #fff !important; color: #15110d !important; box-shadow: none !important;
  }
  .chero *, .statement *, .closing__card *, .cta__card * { color: #15110d !important; }
  .chero h1 .accent-text, .statement .grad-text, .closing__card .grad-text {
    -webkit-text-fill-color: #4b3a9e !important; color: #4b3a9e !important;
  }
  .crail, .back-to-top, .progress-bar { display: none !important; }
  .reader { grid-template-columns: 1fr !important; }
}
