/* ===========================
   MOTHERING TOGETHER — v2
   Mother-forward. Elle in supporting role.
   Brand: #7C6BBE (purple), #1D9E75 (teal), #FAF7F2 (cream)
   Font: Cormorant Garamond + DM Sans
   =========================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --purple:        #7C6BBE;
  --purple-dark:   #5A4D9A;
  --purple-light:  #EEEAF8;
  --purple-mid:    #9B8FCC;
  --teal:          #1D9E75;
  --teal-dark:     #0F6E56;
  --teal-light:    #E1F5EE;
  --cream:         #FAF7F2;
  --cream-dark:    #EDE8DF;
  --cream-mid:     #F3EFE8;
  --text-dark:     #1C1A2E;
  --text-mid:      #4A4761;
  --text-muted:    #8A87A0;
  --white:         #FFFFFF;
  --radius-sm:     6px;
  --radius-md:     12px;
  --radius-lg:     20px;
  --radius-xl:     32px;
  --font-display:  'Domine', Georgia, serif;
  --font-body:     'DM Sans', system-ui, sans-serif;
  --max-width:     1100px;
  --nav-height:    68px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--cream);
  color: var(--text-dark);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── UTILITIES ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}

.section-headline {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.75rem);
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 3rem;
}

.btn-primary {
  display: inline-block;
  background-color: var(--purple);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}

.btn-primary:hover {
  background-color: var(--purple-dark);
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-block;
  color: var(--text-mid);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  border: 1.5px solid var(--cream-dark);
  transition: border-color 0.2s, color 0.2s;
}

.btn-ghost:hover {
  border-color: var(--purple-mid);
  color: var(--text-dark);
}

/* ── NAV ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(250, 247, 242, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--cream-dark);
  height: var(--nav-height);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.nav-elephant-img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  border-radius: 4px;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--text-dark);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.875rem;
  color: var(--text-mid);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text-dark); }

.nav-links .nav-cta {
  background-color: var(--purple);
  color: var(--white);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  transition: background-color 0.2s;
}

.nav-links .nav-cta:hover {
  background-color: var(--purple-dark);
  color: var(--white);
}

/* ── HERO ── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 6rem;
}

.hero-bg-circle {
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,107,190,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5rem;
  align-items: center;
}

.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.5rem;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--text-dark);
  margin-bottom: 1.75rem;
}

.hero-headline em {
  font-style: normal;
  color: var(--purple);
  font-weight: 400;
}

.hero-subhead {
  font-size: 1rem;
  color: var(--text-mid);
  max-width: 540px;
  margin-bottom: 2.5rem;
  line-height: 1.85;
}

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

.hero-sub-cta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ── HERO EMBLEM ── */
.hero-emblem {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
}

.emblem-ring {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 1.5px solid var(--cream-dark);
  background: var(--cream-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.emblem-elephant {
  width: 130px;
  height: 130px;
  object-fit: contain;
}

.emblem-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

/* ── SUPPORT PILLARS ── */
.support {
  background: var(--white);
  padding: 7rem 0;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.pillar {
  padding: 2.5rem;
  border-right: 1px solid var(--cream-dark);
  border-bottom: 1px solid var(--cream-dark);
  transition: background-color 0.2s;
}

.pillar:hover {
  background: var(--cream);
}

.pillar:nth-child(2),
.pillar:nth-child(4) {
  border-right: none;
}

.pillar:nth-child(3),
.pillar:nth-child(4) {
  border-bottom: none;
}

.pillar-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--cream-dark);
  line-height: 1;
  margin-bottom: 1rem;
}

.pillar h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.pillar p {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.8;
}

/* ── ELLE INTRO ── */
.elle-intro {
  background: var(--purple-light);
  padding: 7rem 0;
}

.elle-intro-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

/* chat widget */
.elle-chat {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(124,107,190,0.15);
  overflow: hidden;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--cream-dark);
  background: var(--cream);
}

.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--purple);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: italic;
}

.chat-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-dark);
}

.chat-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.chat-messages {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: #F7F5FB;
}

.chat-bubble {
  padding: 0.8rem 1rem;
  border-radius: 14px;
  font-size: 0.83rem;
  line-height: 1.55;
  max-width: 88%;
  animation: fadeUp 0.4s ease both;
}

.chat-bubble.elle {
  background: var(--white);
  color: var(--text-dark);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
  border: 1px solid var(--cream-dark);
}

.chat-bubble.user {
  background: var(--purple);
  color: var(--white);
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}

.chat-bubble:nth-child(1) { animation-delay: 0.1s; }
.chat-bubble:nth-child(2) { animation-delay: 0.5s; }
.chat-bubble:nth-child(3) { animation-delay: 1s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.elle-text .section-eyebrow { color: var(--purple); }

.elle-text h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 400;
  color: var(--text-dark);
  margin-bottom: 1.25rem;
}

.elle-text p {
  font-size: 0.975rem;
  color: var(--text-mid);
  line-height: 1.85;
  margin-bottom: 1rem;
}

/* ── APPROACH ── */
.approach {
  background: var(--text-dark);
  padding: 7rem 0;
}

.approach-inner {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 5rem;
  align-items: start;
}

.approach .section-eyebrow { color: rgba(255,255,255,0.5); }

.approach h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 400;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.approach p {
  font-size: 0.975rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.85;
  margin-bottom: 1rem;
}

.approach-stats {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.stat-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.stat-card--accent {
  background: rgba(124,107,190,0.2);
  border-color: rgba(124,107,190,0.3);
}

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 400;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.4;
}

/* ── WAITLIST ── */
.waitlist {
  background: var(--cream);
  padding: 7rem 0;
}

.waitlist-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5rem;
  align-items: start;
}

.waitlist-elephant {
  padding-top: 0.5rem;
}

.waitlist-elephant-img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  opacity: 0.75;
}

.waitlist-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.75rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text-dark);
  margin-bottom: 1.25rem;
}

.waitlist-body {
  font-size: 0.975rem;
  color: var(--text-mid);
  margin-bottom: 2rem;
  line-height: 1.85;
  max-width: 520px;
}

.waitlist-perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.waitlist-perks li {
  font-size: 0.9rem;
  color: var(--text-mid);
  padding-left: 1.5rem;
  position: relative;
}

.waitlist-perks li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 500;
}

/* ── FORM ── */
.loops-form { width: 100%; }

.form-row {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.form-input {
  flex: 1;
  min-width: 220px;
  height: 50px;
  padding: 0 1.25rem;
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-dark);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s;
}

.form-input::placeholder { color: var(--text-muted); }
.form-input:focus { border-color: var(--purple); }

.loops-form .btn-primary {
  height: 50px;
  display: flex;
  align-items: center;
}

.form-note {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.form-success {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--teal-dark);
  font-weight: 500;
  min-height: 1.4rem;
}

/* ── FOOTER ── */
.footer {
  background: var(--text-dark);
  padding: 3rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-elephant-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  opacity: 0.9;
  border-radius: 4px;
}

.footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
}

.footer-links {
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--white); }

.footer-legal {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-emblem {
    flex-direction: row;
    justify-content: flex-start;
    gap: 1.5rem;
  }

  .emblem-ring {
    width: 100px;
    height: 100px;
    padding: 12px;
  }

  .emblem-elephant {
    width: 65px;
    height: 65px;
  }

  .emblem-tagline {
    text-align: left;
    font-size: 0.85rem;
  }

  .pillars {
    grid-template-columns: 1fr;
  }

  .pillar {
    border-right: none;
  }

  .pillar:nth-child(3) {
    border-bottom: 1px solid var(--cream-dark);
  }

  .elle-intro-inner,
  .approach-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .waitlist-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .waitlist-elephant { display: none; }

  .nav-links a:not(.nav-cta) { display: none; }
}

@media (max-width: 480px) {
  .form-row { flex-direction: column; }
  .form-input,
  .loops-form .btn-primary { width: 100%; }
  .hero-actions { flex-direction: column; }
}

/* ── LOOPS STATE STYLES ── */
.newsletter-success,
.newsletter-error {
  padding: 0.5rem 0;
}

.newsletter-success-message {
  font-size: 0.95rem;
  color: var(--teal-dark);
  font-weight: 500;
}

.newsletter-error-message {
  font-size: 0.9rem;
  color: #B91C1C;
}

.newsletter-back-button {
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 0.5rem 0;
  text-align: left;
  transition: color 0.2s;
}

.newsletter-back-button:hover {
  color: var(--text-mid);
  text-decoration: underline;
}
