/* =========================================================
   Bawsify v7 — 5.23.26 edits
   Keeps v6 bones (Tailwind utility classes, .h-display, .sub,
   .eyebrow, container-wide, card patterns). Adds:
   - dark-purple hero variant
   - butterfly emboss
   - lavender accents
   - new section (Sound familiar)
   - removes script/gold cutesy accents
   ========================================================= */

:root {
  --bw-purple-deep: #341751;
  --bw-purple-deep-2: #24123D;
  --bw-purple: #6B3FA0;
  --bw-purple-link: #7B3FA0;
  --bw-lavender: #C49FE8;
  --bw-lavender-soft: #EEEDFE;
  --bw-lavender-bg: #F2EEF8;
  --bw-indigo: #2B1D3E;
  --bw-ink-soft: #604A72;
  --bw-sage: #9FAE9D;
}

/* ---- Kill original decorative accents ---- */
.flow-thread,
.hero-ribbon,
.floaty {
  display: none !important;
}

/* ---- Color helpers ---- */
.text-lavender { color: var(--bw-lavender); }
.bg-lavender { background-color: var(--bw-lavender); }

.text-lavender-eyebrow { color: var(--bw-purple-link) !important; }
.text-lavender-on-dark { color: var(--bw-lavender) !important; }

.h-display,
.h-section {
  letter-spacing: 0 !important;
}

.story-flow {
  background:
    linear-gradient(180deg,
      #341751 0,
      #341751 34rem,
      #ffffff 34rem,
      #ffffff 43%,
      #fbf8fd 58%,
      #ffffff 72%,
      #f4eff8 88%,
      #2B1D3E 100%) !important;
}

.story-flow::before {
  background:
    linear-gradient(90deg, rgba(96,74,114,0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(96,74,114,0.035) 1px, transparent 1px) !important;
  background-size: 72px 72px !important;
  opacity: 0.38;
}

.story-flow::after {
  display: none !important;
}

/* ---- Hero: dark purple variant ---- */
.flow-hero.hero-dark {
  background:
    linear-gradient(148deg, #2B123F 0%, #341751 42%, #432262 100%) !important;
  color: #fff;
  min-height: auto;
}
.flow-hero.hero-dark .h-display,
.flow-hero.hero-dark h1,
.flow-hero.hero-dark h2 {
  color: #fff;
}
.flow-hero.hero-dark .sub,
.flow-hero.hero-dark .hero-sub {
  color: rgba(255,255,255,0.78);
}

.flow-hero.hero-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(118deg, transparent 0 58%, rgba(196,159,232,0.11) 58% 58.35%, transparent 58.35% 100%);
  background-size: 84px 84px, 84px 84px, 100% 100%;
  opacity: 0.34;
}

.flow-hero.hero-dark::after {
  height: clamp(3.5rem, 7vw, 6rem) !important;
  background: linear-gradient(180deg, rgba(52,23,81,0), rgba(255,255,255,0.055)) !important;
}

.flow-hero.hero-dark > .container-wide {
  padding-top: clamp(1.75rem, 3vw, 2.5rem) !important;
  padding-bottom: clamp(3rem, 5.8vw, 4.6rem) !important;
}

.hero-nav {
  min-height: 4.75rem;
  margin-bottom: clamp(2.5rem, 4.2vw, 3.75rem) !important;
}

.hero-brand {
  gap: 1rem;
}

.hero-logo {
  height: clamp(3.25rem, 4.8vw, 4.1rem) !important;
  width: auto;
}

.nav-descriptor {
  margin-left: 2px;
  padding-left: 1rem;
  border-left: 1px solid rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.78);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 0.92rem;
  font-style: normal;
  line-height: 1.45;
  align-self: center;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .nav-descriptor { display: none; }
}

.nav-pill {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff !important;
  backdrop-filter: blur(4px);
  transition: background 200ms ease, border-color 200ms ease;
  text-decoration: none;
}
.nav-pill:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(196,159,232,0.55);
}
.nav-pill svg { color: var(--bw-lavender); }

/* Hero form card on dark bg */
.hero-form-card {
  background: rgba(255,255,255,0.095);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(6px);
  box-shadow: 0 22px 55px -28px rgba(0,0,0,0.5);
  max-width: min(100%, 28rem);
  width: 100%;
}

.hero-form-card .ml-subscribe-form,
.hero-form-card .bawsify-form,
.hero-form-card .grid,
.hero-form-card .grid > div {
  min-width: 0;
  width: 100%;
}

#guide-form,
#fields-name-guide {
  scroll-margin-top: clamp(5rem, 12vh, 7rem);
}

.flow-hero.hero-dark .grid,
.flow-hero.hero-dark .grid > * {
  min-width: 0;
}

.hero-headline {
  max-width: 12.5ch;
  overflow-wrap: normal;
}

.hero-sub {
  max-width: min(100%, 36rem);
  overflow-wrap: break-word;
}

.hero-image-card {
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 30px 70px -34px rgba(0,0,0,0.64);
}

.input-on-dark {
  background: rgba(255,255,255,0.10) !important;
  border: 1px solid rgba(255,255,255,0.25) !important;
  color: #fff !important;
  border-radius: 8px;
  box-sizing: border-box;
  max-width: 100%;
  padding: 12px 14px;
  width: 100%;
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 0.95rem;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.input-on-dark::placeholder { color: rgba(255,255,255,0.55); }
.input-on-dark:focus {
  outline: none;
  border-color: var(--bw-lavender) !important;
  box-shadow: 0 0 0 3px rgba(196,159,232,0.22);
}

.form-label-light {
  color: rgba(255,255,255,0.78);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.privacy-on-dark { color: rgba(255,255,255,0.55); }

/* ---- Buttons ---- */
.btn-lavender {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bw-lavender);
  color: var(--bw-purple-deep);
  font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border-radius: 9999px;
  padding: 0.85rem 1.6rem;
  border: none;
  max-width: 100%;
  cursor: pointer;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
  box-shadow: 0 10px 24px -12px rgba(196,159,232,0.55);
}
.btn-lavender:hover {
  background: #D6B5F0;
  transform: translateY(-1px);
  box-shadow: 0 14px 28px -12px rgba(196,159,232,0.7);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bw-purple-deep);
  color: #fff !important;
  font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border-radius: 9999px;
  padding: 0.85rem 1.6rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
  box-shadow: 0 10px 24px -14px rgba(60,26,94,0.55);
}
.btn-primary:hover {
  background: #4d2374;
  transform: translateY(-1px);
  box-shadow: 0 14px 28px -14px rgba(60,26,94,0.7);
}

/* ---- Butterfly emboss ---- */
.butterfly-emboss {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-repeat: no-repeat;
  background-position: right clamp(-9rem, -7vw, -4rem) center;
  background-size: clamp(22rem, 38vw, 34rem) auto;
  opacity: 0.12;
}
.butterfly-emboss-light {
  background-image: url("./brand-mark-emboss-light.png");
  background-position: right clamp(-10rem, -8vw, -4rem) center;
  background-size: clamp(23rem, 40vw, 36rem) auto;
  opacity: 0.14;
}
.butterfly-emboss-dark {
  background-image: url("./brand-mark-emboss-dark.png");
  opacity: 0.09;
}
@media (max-width: 640px) {
  .butterfly-emboss {
    background-size: 22rem auto;
    background-position: right -12rem top 4rem;
    opacity: 0.09;
  }
}

/* ---- Section rhythm (tighter than v6 default clamp) ---- */
.flow-section {
  padding-block: clamp(3rem, 5vw, 4.5rem) !important;
  position: relative;
  z-index: 1;
}
.flow-section-inside { padding-top: clamp(2.5rem, 4.5vw, 4rem) !important; }
.flow-final {
  margin-top: 0;
  padding-block: clamp(3.5rem, 5.5vw, 5rem) !important;
  background:
    linear-gradient(145deg, #2B123F 0%, #341751 48%, #4B286D 100%) !important;
}

#sound-familiar,
#whats-inside,
#community {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(251,248,253,0.92)) !important;
}

/* In good company keeps light bg, but drop the v6 gradient */
.flow-people {
  background: #fff !important;
}
.flow-meet {
  background: var(--bw-lavender-bg) !important;
}

/* ---- Inside-the-guide cards spacing ---- */
.guide-flow-grid {
  align-items: stretch;
  gap: 1.25rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.guide-flow-grid > *:nth-child(2),
.guide-flow-grid > *:nth-child(3) { margin-top: 0; }
.guide-flow-grid article { padding: clamp(1.1rem, 1.8vw, 1.5rem); }

/* ---- Recognition list (Sound familiar?) ---- */
.recog-list {
  list-style: none;
  padding: 0;
  margin: 2rem auto 0;
}
.recog-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--bw-indigo);
}
.recog-check {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 9999px;
  background: var(--bw-lavender-soft);
  color: var(--bw-purple);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  box-shadow: 0 3px 8px -4px rgba(109,47,138,0.3);
}

/* ---- Eyebrow color override (lavender on dark) ---- */
.eyebrow.text-lavender-on-dark {
  color: var(--bw-lavender) !important;
}

/* ---- Final-CTA rhythm ---- */
#final-cta .grid { gap: 1.25rem; }
#about .grid { gap: 2rem; }
#about p.mt-5, #final-cta p.mt-5 { margin-top: 1rem; }
#about p.mt-4 { margin-top: 0.75rem; }
#about .mt-7, #about .mt-5, #final-cta .mt-7, #final-cta .mt-5 { margin-top: 1.25rem; }

/* ---- Defeat .reveal initial opacity from v6 CSS ---- */
.reveal, .reveal-stagger, .reveal-stagger > * {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* ---- Tighten women strip ---- */
.women-strip img { display: block; width: 100%; height: auto; }

.community-cta {
  margin-top: clamp(2.75rem, 4.5vw, 3.75rem);
  position: relative;
  z-index: 3;
}

.subpage-header {
  border-bottom: 1px solid rgba(109,47,138,0.1);
}

.subpage-logo {
  height: clamp(3rem, 5vw, 3.75rem) !important;
}

.subnav-descriptor {
  color: rgba(43,29,62,0.66);
  border-left: 1px solid rgba(109,47,138,0.18);
  margin-left: 0.9rem;
  padding-left: 0.9rem;
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 0.9rem;
  line-height: 1.35;
  white-space: nowrap;
}

.subpage-main-soft {
  background:
    linear-gradient(180deg, #FFFFFF 0%, #FBF8FD 48%, #F2EEF8 100%) !important;
}

.footer-legal-only {
  background:
    linear-gradient(145deg, #24123D 0%, #2B1D3E 55%, #341751 100%) !important;
}

/* ---- Responsive ---- */
@media (min-width: 1024px) {
  #about .grid, #final-cta .grid { gap: 2.5rem; }
}

@media (max-width: 767px) {
  .story-flow {
    background:
      linear-gradient(180deg,
        #341751 0,
        #341751 42rem,
        #ffffff 42rem,
        #ffffff 55%,
        #fbf8fd 73%,
        #f4eff8 90%,
        #2B1D3E 100%) !important;
  }

  .hero-nav {
    min-height: 4rem;
    margin-bottom: 2rem !important;
    gap: 0.75rem;
  }

  .hero-logo {
    height: 3.2rem !important;
  }

  .hero-nav .nav-pill {
    display: inline-flex !important;
    flex: 0 0 auto;
    min-height: 2.5rem;
    padding: 0.62rem 0.85rem;
    gap: 0.35rem;
    font-size: 0.78rem;
    line-height: 1;
    white-space: nowrap;
  }

  .hero-nav .nav-pill svg {
    width: 0.95rem;
    height: 0.95rem;
  }

  .hero-headline {
    max-width: calc(100vw - 3rem) !important;
    width: 100%;
    font-size: clamp(2.2rem, 9.4vw, 2.75rem) !important;
  }

  .hero-image-card {
    max-width: calc(100vw - 3rem);
    margin-inline: auto;
  }

  .flow-hero.hero-dark .order-2,
  .hero-sub,
  .hero-form-card {
    max-width: calc(100vw - 3rem) !important;
    width: 100%;
  }

  .hero-form-card,
  .bawsify-form,
  .input-on-dark {
    min-width: 0;
  }

  .hero-form-card .btn-lavender {
    gap: 0.4rem;
    padding-inline: 1rem;
    font-size: 0.88rem;
  }

  .butterfly-emboss {
    background-size: 22rem auto;
    background-position: right -12rem top 4rem;
    opacity: 0.09;
  }

  .butterfly-emboss-light {
    background-size: 23rem auto;
    background-position: right -12.5rem top 1.25rem;
    opacity: 0.12;
  }

  .guide-flow-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    margin-top: 2rem !important;
  }

  .guide-flow-grid article {
    padding: 1.35rem !important;
  }

  .guide-flow-grid article h3 {
    font-size: 1.16rem !important;
  }

  .women-strip {
    margin-top: 2rem !important;
    border-radius: 1rem !important;
  }

  .subnav-descriptor {
    display: none;
  }
}
