@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&display=swap");

/* ============================================================
   InsideHer · Course System — flagship edition (2026-06-30)
   Shared by every course / hub page. Editorial, premium,
   restrained. Warm paper ground, refined type, layered depth,
   grain, one confident gradient. Vocabulary: topbar / hero /
   band / grid+tile / steps+step / prow / closing / foot.
   ============================================================ */

:root {
  --indigo: #5B4FE5;
  --violet: #A24DC6;
  --mauve: #c277d8;
  --rose: #E94BA8;
  --pink: #f085b7;
  --gradient: linear-gradient(105deg, #5B4FE5 0%, #A24DC6 42%, #E94BA8 100%);

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

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

  --eyebrow: #5B4FE5;
  --label: #a24dc6;

  --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.30);

  --r: 22px;
  --r-lg: 30px;
  --maxw: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --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: 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); }

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

/* ============================================================ TOP BAR */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 239, 232, 0.78);
  backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border-bottom: 1px solid var(--line-2);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 78px; }
.brand-lockup { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-lockup__mark { width: 34px; height: 34px; object-fit: contain; flex: 0 0 auto; }
.brand-lockup__wordmark { height: 22px; width: auto; object-fit: contain; }
.topbar__nav { display: flex; align-items: center; gap: 28px; }
.topbar__nav a { color: var(--body); text-decoration: none; font-size: 0.94rem; font-weight: 500; transition: color 180ms var(--ease); }
.topbar__nav a:hover { color: var(--ink); }
.topbar__nav .nav-cta {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 11px 20px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; font-size: 0.92rem;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease);
}
.topbar__nav .nav-cta:hover { color: #fff; transform: translateY(-2px); box-shadow: var(--sh); }

/* ============================================================ BUTTONS */
.button {
  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);
}
.button svg { width: 18px; height: 18px; transition: transform 240ms var(--ease); }
.button--primary { color: #fff; background: var(--gradient); box-shadow: var(--sh-glow); }
.button--primary:hover { transform: translateY(-3px); box-shadow: 0 30px 70px rgba(162,77,198,0.42); }
.button--primary:hover svg { transform: translateX(4px); }
.button--secondary { color: var(--ink); background: var(--card); border-color: var(--line); box-shadow: var(--sh-sm); }
.button--secondary:hover { transform: translateY(-3px); box-shadow: var(--sh); }
.button--light { color: var(--ink); background: #fff; }
.button--light:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0,0,0,0.2); }

/* ============================================================ HERO */
.hero { padding: clamp(52px, 8vw, 104px) 0 clamp(40px, 6vw, 72px); }
.hero__eyebrow, .band__eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--eyebrow);
}
.hero__eyebrow { margin: 0 0 26px; }
.hero__eyebrow::before, .band__eyebrow::before {
  content: ""; width: 22px; height: 1.5px; border-radius: 2px; background: var(--gradient); flex: 0 0 auto;
}
.hero h1 {
  font-size: clamp(2.9rem, 6vw, 5.4rem); line-height: 0.99; font-weight: 800; letter-spacing: -0.045em; max-width: 16ch;
}
.hero__summary { margin: 26px 0 0; max-width: 48ch; color: var(--body); font-size: clamp(1.08rem, 1.5vw, 1.2rem); line-height: 1.6; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero__stats {
  display: flex; flex-wrap: wrap; gap: 0; margin-top: clamp(44px, 6vw, 68px);
  border-top: 1px solid var(--line);
}
.hero__stats > div { padding: 26px clamp(18px, 3vw, 40px) 4px 0; }
.hero__stats > div + div { border-left: 1px solid var(--line); padding-left: clamp(18px, 3vw, 40px); }
.hero__stats dt { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.hero__stats div:first-child dt { color: var(--violet); }
.hero__stats dd { margin: 10px 0 0; color: var(--muted); font-size: 0.86rem; line-height: 1.4; }

/* ============================================================ BANDS */
.band {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.34fr);
  gap: clamp(36px, 5vw, 80px); align-items: start;
  padding: clamp(52px, 7vw, 100px) 0; border-top: 1px solid var(--line);
}
.band__head { position: sticky; top: 104px; }
@media (max-width: 940px) { .band__head { position: static; } }
.band__eyebrow { margin: 0 0 18px; }
.band__head h2 { font-size: clamp(2rem, 3.6vw, 3.1rem); line-height: 1.04; font-weight: 800; letter-spacing: -0.04em; }
.band__desc { margin: 16px 0 0; color: var(--body); font-size: 1.06rem; line-height: 1.6; max-width: 42ch; }
.band--stack { grid-template-columns: 1fr; }
.band--stack .band__head { position: static; max-width: 760px; }

/* ============================================================ CARD GRID + TILES */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

.tile {
  position: relative; display: flex; flex-direction: column;
  padding: 30px 28px; 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);
}
.tile::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: var(--gradient); transform: scaleX(0); transform-origin: left;
  transition: transform 420ms var(--ease);
}
a.tile:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); border-color: transparent; }
a.tile:hover::before { transform: scaleX(1); }
.tile h3 { font-size: 1.32rem; line-height: 1.14; font-weight: 750; letter-spacing: -0.025em; color: var(--ink); }
.tile p { margin: 12px 0 0; color: var(--body); font-size: 0.97rem; line-height: 1.56; }
.tile__label {
  margin-top: auto; padding-top: 22px;
  color: var(--label); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
}

/* ============================================================ STEPS (big numerals) */
.steps { display: grid; gap: clamp(8px, 2vw, 18px); }
.step {
  display: flex; gap: 22px; align-items: flex-start;
  padding: 26px 28px; border-radius: var(--r);
  background: var(--card); border: 1px solid var(--line-2); box-shadow: var(--sh);
}
.step__num {
  flex: 0 0 auto; font-size: 1.6rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1;
  background: var(--gradient); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
}
.step h3 { font-size: 1.16rem; font-weight: 700; letter-spacing: -0.02em; }
.step p { margin: 8px 0 0; color: var(--body); font-size: 0.98rem; line-height: 1.56; }

/* ============================================================ PROW (dual-link rows) */
.prow {
  display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap;
  padding: 24px 28px; border-radius: var(--r);
  background: var(--card); border: 1px solid var(--line-2); box-shadow: var(--sh);
  transition: transform 280ms var(--ease), box-shadow 280ms var(--ease);
}
.prow:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); }
.prow + .prow { margin-top: 14px; }
.prow__copy { flex: 1 1 300px; }
.prow__label { margin: 0 0 7px; color: var(--label); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.prow__copy h3 { font-size: 1.1rem; line-height: 1.3; font-weight: 650; letter-spacing: -0.015em; color: var(--ink); }
.prow__links { display: flex; gap: 10px; flex-wrap: wrap; }
.prow__links a {
  display: inline-flex; align-items: center; padding: 11px 18px; border-radius: 999px;
  font-size: 0.86rem; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}
.prow__links a:first-child { color: #fff; background: var(--gradient); box-shadow: 0 10px 24px rgba(162,77,198,0.28); }
.prow__links a:last-child { color: var(--ink); background: #f4eef9; border: 1px solid var(--line); }
.prow__links a:hover { transform: translateY(-2px); }

/* ============================================================ CLOSING CTA (grain) */
.closing { padding: clamp(56px, 8vw, 104px) 0; }
.closing__card {
  position: relative; overflow: hidden; text-align: center;
  border-radius: var(--r-lg); padding: clamp(48px, 7vw, 88px) clamp(28px, 5vw, 64px);
  background: var(--gradient); color: #fff; box-shadow: var(--sh-glow);
}
.closing__card::after { content: ""; position: absolute; inset: 0; background-image: var(--grain); background-size: 180px; opacity: 0.12; mix-blend-mode: overlay; pointer-events: none; }
.closing__card h2 { position: relative; max-width: 18ch; margin: 0 auto; font-size: clamp(2.1rem, 4.2vw, 3.3rem); line-height: 1.03; font-weight: 800; letter-spacing: -0.04em; }
.closing__card p { position: relative; max-width: 52ch; margin: 18px auto 0; color: rgba(255,255,255,0.92); font-size: 1.08rem; line-height: 1.6; }
.closing__actions { position: relative; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.closing__actions a {
  display: inline-flex; align-items: center; height: 52px; padding: 0 24px; border-radius: 999px;
  font-size: 0.95rem; font-weight: 600; text-decoration: none; transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}
.closing__actions a:first-child { color: var(--ink); background: #fff; }
.closing__actions a:not(:first-child) { color: #fff; background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.30); }
.closing__actions a:hover { transform: translateY(-2px); }
.closing__card .button { position: relative; margin-top: 32px; }

/* ============================================================ FOOTER */
.foot { padding: 52px 0; text-align: center; color: var(--muted); font-size: 0.9rem; border-top: 1px solid var(--line); }
.foot a { color: var(--violet); font-weight: 600; text-decoration: none; }

/* ============================================================ MOTION */
[data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
[data-reveal][data-revealed="true"] { opacity: 1; transform: none; }
.tile[data-reveal]:nth-child(2), .step[data-reveal]:nth-child(2), .prow[data-reveal]:nth-child(2) { transition-delay: 80ms; }
.tile[data-reveal]:nth-child(3), .step[data-reveal]:nth-child(3), .prow[data-reveal]:nth-child(3) { transition-delay: 160ms; }
.tile[data-reveal]:nth-child(4) { transition-delay: 80ms; }
.tile[data-reveal]:nth-child(5) { transition-delay: 160ms; }
.tile[data-reveal]:nth-child(6) { transition-delay: 240ms; }

.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: 940px) {
  .band { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .topbar__nav { gap: 14px; }
  .topbar__nav .nav-link { display: none; }
  .grid { grid-template-columns: 1fr; }
  .hero__stats > div { flex: 1 1 45%; }
  .hero__actions .button { flex: 1 1 100%; }
  .prow { flex-direction: column; align-items: flex-start; }
}
@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; }
}
