/* EZV Studio – Mulher + Saúde + Proteção dedicated page */
/* eslint-disable */

const { useState: useS_MHP, useEffect: useE_MHP } = React;

const MHPC = {
  bg:       '#0a0a0b',
  bg2:      '#0d0d0e',
  bg3:      '#101010',
  fg:       '#f6f4ef',
  fg2:      'rgba(246,244,239,0.62)',
  fg3:      'rgba(246,244,239,0.4)',
  fg4:      'rgba(246,244,239,0.22)',
  border:   'rgba(255,255,255,0.07)',
  borderHi: 'rgba(255,255,255,0.14)',
  pink:     '#ff5e72',
  pinkSoft: 'rgba(255,94,114,0.10)',
  pinkDim:  'rgba(255,94,114,0.28)',
  teal:     '#2ecdb7',
  green:    '#22d36b',
};

function getInitialLangMHP() {
  try {
    const u = new URL(window.location.href);
    const fromUrl = u.searchParams.get('lang');
    if (fromUrl && MHPI[fromUrl]) return fromUrl;
    const fromLs = localStorage.getItem('ezLang');
    if (fromLs && MHPI[fromLs]) return fromLs;
  } catch {}
  return 'pt';
}

/* ── Nav ──────────────────────────────────────────────── */
function MHPNav({ lang, setLang, T }) {
  return (
    <nav style={{
      position: 'sticky', top: 0, zIndex: 50,
      background: 'rgba(10,10,11,0.72)',
      backdropFilter: 'blur(18px)',
      WebkitBackdropFilter: 'blur(18px)',
      borderBottom: `1px solid ${MHPC.border}`,
    }}>
      <div style={{
        maxWidth: 1280, margin: '0 auto', padding: '14px 32px',
        display: 'flex', justifyContent: 'space-between', alignItems: 'center', gap: 16, flexWrap: 'wrap',
      }}>
        <a href={`index.html?lang=${lang}`} style={{
          display: 'inline-flex', alignItems: 'center', gap: 10,
          textDecoration: 'none', color: MHPC.fg2,
          fontFamily: 'Inter, sans-serif', fontSize: 13, fontWeight: 500,
          transition: 'color 0.2s',
        }}
          onMouseEnter={(e) => { e.currentTarget.style.color = MHPC.fg; }}
          onMouseLeave={(e) => { e.currentTarget.style.color = MHPC.fg2; }}
        >
          <span style={{ fontSize: 15, lineHeight: 1 }}>←</span>
          <span style={{ display: 'inline-flex', alignItems: 'center', gap: 6 }}>
            <span>EZV</span>
            <span style={{ width: 4, height: 4, borderRadius: 999, background: MHPC.pink, display: 'inline-block' }}/>
            <span>Studio</span>
          </span>
        </a>
        <div style={{ display: 'flex', alignItems: 'center', gap: 16 }}>
          <span style={{
            display: 'inline-flex', alignItems: 'center', gap: 6,
            padding: '6px 12px', borderRadius: 999,
            background: MHPC.pinkSoft,
            border: `1px solid ${MHPC.pinkDim}`,
            fontFamily: 'JetBrains Mono, monospace', fontSize: 10,
            letterSpacing: '0.18em', textTransform: 'uppercase',
            color: MHPC.pink,
          }}>
            <span style={{ width: 5, height: 5, borderRadius: 999, background: MHPC.pink, boxShadow: `0 0 8px ${MHPC.pink}` }}/>
            {T.nav.status}
          </span>
          <a
            href={`suporte.html?lang=${lang}`}
            style={{
              display: 'inline-flex', alignItems: 'center', gap: 6,
              fontSize: 12, fontWeight: 500, color: MHPC.fg2, textDecoration: 'none',
              transition: 'color 0.2s',
            }}
            onMouseEnter={(e) => { e.currentTarget.style.color = MHPC.fg; }}
            onMouseLeave={(e) => { e.currentTarget.style.color = MHPC.fg2; }}
          >
            <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.6" strokeLinecap="round" strokeLinejoin="round">
              <circle cx="12" cy="12" r="10"/>
              <path d="M9.5 9a2.5 2.5 0 114.2 1.9c-.7.6-1.7 1-1.7 2.1"/>
              <circle cx="12" cy="17" r="0.5" fill="currentColor" stroke="none"/>
            </svg>
            Suporte
          </a>
          <div style={{ width: 1, height: 14, background: MHPC.border }}/>
          <MHPLang lang={lang} setLang={setLang} />
        </div>
      </div>
    </nav>
  );
}

function MHPLang({ lang, setLang }) {
  const langs = [
    { code: 'pt', Flag: FlagBR },
    { code: 'en', Flag: FlagUS },
    { code: 'es', Flag: FlagES },
  ];
  return (
    <div style={{ display: 'flex', gap: 8 }}>
      {langs.map(({ code, Flag }) => {
        const active = code === lang;
        return (
          <button key={code} onClick={() => setLang(code)} style={{
            display: 'inline-flex', alignItems: 'center', justifyContent: 'center',
            width: 28, height: 28, borderRadius: 999,
            border: `1.5px solid ${active ? MHPC.pink : MHPC.border}`,
            background: 'transparent', padding: 0, cursor: 'pointer',
            opacity: active ? 1 : 0.55,
            transition: 'opacity 0.15s, border-color 0.15s',
            boxShadow: active ? `0 0 0 2px ${MHPC.pinkSoft}` : 'none',
          }}><Flag size={18} /></button>
        );
      })}
    </div>
  );
}

/* ── Section wrapper ──────────────────────────────────── */
function MHPSection({ children, id, padTop = 140, padBottom = 140, style }) {
  return (
    <section id={id} style={{ padding: `${padTop}px 0 ${padBottom}px`, position: 'relative', ...style }}>
      <div style={{ maxWidth: 1280, margin: '0 auto', padding: '0 32px', position: 'relative' }}>
        {children}
      </div>
    </section>
  );
}

function MHPEyebrow({ children, style }) {
  return (
    <div style={{
      fontFamily: 'JetBrains Mono, monospace',
      fontSize: 11, letterSpacing: '0.24em', textTransform: 'uppercase',
      color: MHPC.pink, ...style,
    }}>{children}</div>
  );
}

const mhpHeadlineXL = {
  fontFamily: 'Inter, sans-serif',
  fontSize: 'clamp(36px, 5.4vw, 72px)',
  fontWeight: 500, letterSpacing: '-0.035em', lineHeight: 1.0,
  margin: 0, color: MHPC.fg,
};

function MHPButton({ children, variant = 'primary', href = '#', icon, target }) {
  const isPrimary = variant === 'primary';
  return (
    <a href={href} target={target} rel={target === '_blank' ? 'noopener noreferrer' : undefined} style={{
      display: 'inline-flex', alignItems: 'center', gap: 10,
      height: 46, padding: '0 22px', borderRadius: 999,
      fontFamily: 'Inter, sans-serif', fontSize: 14, fontWeight: 500, letterSpacing: '-0.005em',
      textDecoration: 'none',
      background: isPrimary ? MHPC.pink : 'transparent',
      color: isPrimary ? '#0a0a0b' : MHPC.fg,
      border: isPrimary ? '1px solid transparent' : `1px solid ${MHPC.borderHi}`,
      transition: 'transform 0.2s, background 0.2s, border-color 0.2s',
      cursor: 'pointer',
    }}
      onMouseEnter={(e) => { e.currentTarget.style.transform = 'translateY(-1px)'; if (isPrimary) e.currentTarget.style.background = '#ff7a8b'; else e.currentTarget.style.borderColor = MHPC.pink; }}
      onMouseLeave={(e) => { e.currentTarget.style.transform = 'translateY(0)'; if (isPrimary) e.currentTarget.style.background = MHPC.pink; else e.currentTarget.style.borderColor = MHPC.borderHi; }}
    >
      {children}
      {icon && <span aria-hidden style={{ fontSize: 13, opacity: 0.8 }}>{icon}</span>}
    </a>
  );
}

function MHPPill({ children, accent }) {
  return (
    <span style={{
      display: 'inline-flex', alignItems: 'center', gap: 6,
      height: 26, padding: '0 11px', borderRadius: 999,
      border: `1px solid ${accent ? MHPC.pinkDim : MHPC.border}`,
      background: accent ? MHPC.pinkSoft : 'rgba(255,255,255,0.02)',
      fontFamily: 'JetBrains Mono, monospace',
      fontSize: 10, letterSpacing: '0.16em', textTransform: 'uppercase',
      color: accent ? MHPC.pink : MHPC.fg2,
    }}>
      {accent && <span style={{ width: 4, height: 4, borderRadius: 999, background: MHPC.pink, boxShadow: `0 0 6px ${MHPC.pink}` }}/>}
      {children}
    </span>
  );
}

/* ── HERO ─────────────────────────────────────────────── */
function MHPHero({ T, lang }) {
  const h = T.hero;
  return (
    <MHPSection padTop={80} padBottom={100} style={{ overflow: 'hidden' }}>
      <div aria-hidden style={{
        position: 'absolute', top: -200, left: '50%', transform: 'translateX(-50%)',
        width: 1200, height: 800,
        background: 'radial-gradient(50% 50% at 50% 50%, rgba(255,94,114,0.15) 0%, rgba(255,94,114,0) 70%)',
        filter: 'blur(60px)', pointerEvents: 'none',
      }}/>

      <div style={{ position: 'relative', zIndex: 1, marginBottom: 72 }}>
        <div className="mhp-hero-head" style={{ display: 'grid', gridTemplateColumns: '1fr 1fr', gap: 60, alignItems: 'flex-start' }}>
          <div>
            <Reveal>
              <MHPEyebrow style={{ marginBottom: 28 }}>{h.eyebrow}</MHPEyebrow>
            </Reveal>
            <Reveal delay={80}>
              <h1 style={{
                fontFamily: 'Inter, sans-serif',
                fontSize: 'clamp(44px, 6.6vw, 88px)',
                fontWeight: 500, letterSpacing: '-0.04em', lineHeight: 0.98,
                margin: 0, color: MHPC.fg,
              }}>
                {h.titleA}<br/>
                <span style={{ color: MHPC.pink }}>{h.titleB}</span>
              </h1>
            </Reveal>
          </div>
          <div style={{ paddingTop: 8 }}>
            <Reveal delay={160}>
              <p style={{
                fontFamily: 'Inter, sans-serif',
                fontSize: 'clamp(18px, 1.6vw, 22px)',
                lineHeight: 1.35, color: MHPC.fg,
                margin: '0 0 16px', fontWeight: 400, letterSpacing: '-0.01em',
              }}>{h.tagline}</p>
            </Reveal>
            <Reveal delay={240}>
              <p style={{ fontSize: 15, lineHeight: 1.7, color: MHPC.fg2, margin: '0 0 32px' }}>
                {h.desc}
              </p>
            </Reveal>
            <Reveal delay={320} style={{ display: 'flex', gap: 12, flexWrap: 'wrap' }}>
              <MHPButton variant="primary" href={`mulher-download.html?lang=${lang}`}>{h.cta}</MHPButton>
              <MHPButton variant="ghost" href="#guardiao" icon="↓">{h.cta2}</MHPButton>
            </Reveal>
            <Reveal delay={400} style={{ marginTop: 24, display: 'flex', flexWrap: 'wrap', gap: 8 }}>
              <MHPPill accent>{h.tag1}</MHPPill>
              <MHPPill>{h.tag2}</MHPPill>
              <MHPPill>{h.tag3}</MHPPill>
            </Reveal>
          </div>
        </div>
      </div>

      {/* SOS demo panel */}
      <Reveal delay={300} style={{ position: 'relative', zIndex: 1 }}>
        <div style={{
          border: `1px solid ${MHPC.border}`,
          borderRadius: 20, overflow: 'hidden',
          background: MHPC.bg2,
          maxWidth: 720, margin: '0 auto',
        }}>
          <div style={{
            display: 'flex', alignItems: 'center', gap: 8,
            padding: '12px 20px',
            borderBottom: `1px solid ${MHPC.border}`,
            background: 'rgba(255,255,255,0.02)',
          }}>
            <span style={{ width: 10, height: 10, borderRadius: 999, background: '#ff5f57' }}/>
            <span style={{ width: 10, height: 10, borderRadius: 999, background: '#ffbd2e' }}/>
            <span style={{ width: 10, height: 10, borderRadius: 999, background: '#28c840' }}/>
            <span style={{
              marginLeft: 12,
              fontFamily: 'JetBrains Mono, monospace', fontSize: 10,
              letterSpacing: '0.2em', textTransform: 'uppercase',
              color: MHPC.fg3,
            }}>{h.demoLabel}</span>
          </div>

          <div style={{ padding: '32px 28px', display: 'flex', flexDirection: 'column', gap: 18 }}>
            <div style={{ display: 'flex', alignItems: 'center', gap: 10 }}>
              <div style={{
                width: 34, height: 34, borderRadius: 999,
                background: MHPC.pinkSoft, border: `1px solid ${MHPC.pinkDim}`,
                display: 'flex', alignItems: 'center', justifyContent: 'center',
              }}>
                <span aria-hidden style={{ fontSize: 16 }}>🛡️</span>
              </div>
              <span style={{ fontFamily: 'JetBrains Mono, monospace', fontSize: 11, letterSpacing: '0.1em', textTransform: 'uppercase', color: MHPC.fg3 }}>
                {h.demoBefore}
              </span>
              <span aria-hidden style={{ color: MHPC.fg4 }}>→</span>
              <span style={{ fontFamily: 'JetBrains Mono, monospace', fontSize: 11, letterSpacing: '0.1em', textTransform: 'uppercase', color: MHPC.teal }}>
                {h.demoAfter}
              </span>
            </div>
            <div style={{
              fontFamily: 'Inter, sans-serif', fontSize: 14, lineHeight: 1.7,
              color: MHPC.fg, whiteSpace: 'pre-line',
              padding: '18px 20px',
              background: MHPC.bg3,
              border: `1px solid ${MHPC.border}`,
              borderRadius: 14,
            }}>
              {h.demoMsg}
            </div>
          </div>
        </div>
      </Reveal>
    </MHPSection>
  );
}

/* ── GUARDIAN HOW-IT-WORKS ─────────────────────────────── */
function MHPHow({ T }) {
  const h = T.how;
  return (
    <MHPSection id="guardiao" style={{
      background: `linear-gradient(180deg, ${MHPC.bg} 0%, ${MHPC.bg2} 50%, ${MHPC.bg} 100%)`,
    }}>
      <div className="mhp-how-head" style={{ display: 'grid', gridTemplateColumns: '1fr 1fr', gap: 80, marginBottom: 72 }}>
        <div>
          <Reveal><MHPEyebrow style={{ marginBottom: 20 }}>{h.label}</MHPEyebrow></Reveal>
          <Reveal delay={80}>
            <h2 style={mhpHeadlineXL}>
              <span style={{ color: MHPC.fg2 }}>{h.titleA}</span><br/>{h.titleB}
            </h2>
          </Reveal>
        </div>
        <Reveal delay={120} style={{ display: 'flex', alignItems: 'flex-end', paddingBottom: 4 }}>
          <p style={{ fontSize: 16, color: MHPC.fg2, lineHeight: 1.7, margin: 0 }}>{h.sub}</p>
        </Reveal>
      </div>

      <div style={{ display: 'flex', flexDirection: 'column', gap: 0 }}>
        {h.steps.map((step, i) => (
          <Reveal key={i} delay={Math.min(i * 80, 320)}>
            <div style={{
              display: 'grid', gridTemplateColumns: '64px 1fr',
              gap: 28, alignItems: 'flex-start',
              padding: '28px 0',
              borderBottom: i < h.steps.length - 1 ? `1px solid ${MHPC.border}` : 'none',
            }}>
              <div style={{ paddingTop: 2 }}>
                <div style={{
                  width: 44, height: 44, borderRadius: 11,
                  background: i === 0 ? MHPC.pinkSoft : MHPC.bg2,
                  border: `1px solid ${i === 0 ? MHPC.pinkDim : MHPC.border}`,
                  display: 'flex', alignItems: 'center', justifyContent: 'center',
                  fontFamily: 'JetBrains Mono, monospace', fontSize: 13, fontWeight: 500,
                  color: i === 0 ? MHPC.pink : MHPC.fg3,
                  letterSpacing: '0.06em',
                }}>{step.num}</div>
              </div>
              <div style={{ display: 'flex', flexDirection: 'column', gap: 8 }}>
                <div style={{ fontSize: 17, fontWeight: 500, color: MHPC.fg, letterSpacing: '-0.01em' }}>{step.name}</div>
                <div style={{ fontSize: 14, color: MHPC.fg2, lineHeight: 1.65, maxWidth: 640 }}>{step.desc}</div>
              </div>
            </div>
          </Reveal>
        ))}
      </div>
    </MHPSection>
  );
}

/* ── FEATURES GRID ─────────────────────────────────────── */
function MHPFeatures({ T }) {
  const f = T.features;
  return (
    <MHPSection id="funcionalidades">
      <Reveal><MHPEyebrow style={{ marginBottom: 20 }}>{f.label}</MHPEyebrow></Reveal>
      <Reveal delay={80}>
        <h2 style={mhpHeadlineXL}>
          <span style={{ color: MHPC.fg2 }}>{f.titleA}</span><br/>
          <span style={{ color: MHPC.pink }}>{f.titleB}</span>
        </h2>
      </Reveal>
      <Reveal delay={160}>
        <p style={{ fontSize: 16, color: MHPC.fg2, lineHeight: 1.7, margin: '24px 0 56px', maxWidth: 640 }}>{f.sub}</p>
      </Reveal>

      <div style={{
        display: 'grid', gridTemplateColumns: 'repeat(auto-fill, minmax(280px, 1fr))',
        gap: 1, background: MHPC.border,
        border: `1px solid ${MHPC.border}`, borderRadius: 20, overflow: 'hidden',
      }}>
        {f.items.map((item, i) => (
          <Reveal key={i} delay={Math.min(i * 50, 280)}>
            <div style={{
              background: MHPC.bg2, padding: '26px 24px',
              height: '100%', display: 'flex', flexDirection: 'column', gap: 12,
              transition: 'background 0.2s',
            }}
              onMouseEnter={(el) => { el.currentTarget.style.background = MHPC.bg3; }}
              onMouseLeave={(el) => { el.currentTarget.style.background = MHPC.bg2; }}
            >
              <div style={{
                width: 32, height: 32, borderRadius: 8,
                background: MHPC.pinkSoft, border: `1px solid ${MHPC.pinkDim}`,
                display: 'flex', alignItems: 'center', justifyContent: 'center',
                fontFamily: 'JetBrains Mono, monospace', fontSize: 11,
                color: MHPC.pink, letterSpacing: '0.05em',
              }}>{String(i + 1).padStart(2, '0')}</div>
              <div style={{ fontSize: 14, fontWeight: 600, color: MHPC.fg, letterSpacing: '-0.005em', lineHeight: 1.2 }}>{item.name}</div>
              <div style={{ fontSize: 13, color: MHPC.fg2, lineHeight: 1.6 }}>{item.desc}</div>
            </div>
          </Reveal>
        ))}
      </div>
    </MHPSection>
  );
}

/* ── VIRTUAL THERAPIST TEASER ──────────────────────────── */
function MHPTherapist({ T }) {
  const t = T.therapist;
  return (
    <MHPSection id="terapeuta" padTop={40} padBottom={40}>
      <div style={{ maxWidth: 1120, margin: '0 auto' }}>
        <Reveal>
          <div style={{
            position: 'relative', overflow: 'hidden',
            borderRadius: 20,
            border: `1px solid ${MHPC.pinkDim}`,
            background: `linear-gradient(135deg, rgba(255,94,114,0.09) 0%, rgba(10,10,11,0) 55%)`,
            padding: 'clamp(40px, 6vw, 72px) clamp(32px, 6vw, 72px)',
          }}>
            <div aria-hidden style={{
              position: 'absolute', top: -100, left: -100, width: 400, height: 400,
              background: `radial-gradient(circle, rgba(255,94,114,0.16) 0%, transparent 65%)`,
              pointerEvents: 'none',
            }} />
            <div aria-hidden style={{
              position: 'absolute', inset: 0, pointerEvents: 'none', opacity: 0.035,
              backgroundImage: `repeating-linear-gradient(0deg, ${MHPC.pink} 0px, ${MHPC.pink} 1px, transparent 1px, transparent 48px),
                                repeating-linear-gradient(90deg, ${MHPC.pink} 0px, ${MHPC.pink} 1px, transparent 1px, transparent 48px)`,
            }} />

            <div style={{ position: 'relative', display: 'flex', flexDirection: 'column', gap: 28 }}>
              <div>
                <span style={{
                  display: 'inline-flex', alignItems: 'center', gap: 8,
                  padding: '5px 14px', borderRadius: 999,
                  background: MHPC.pinkSoft,
                  border: `1px solid ${MHPC.pinkDim}`,
                  fontFamily: 'JetBrains Mono, monospace', fontSize: 10,
                  letterSpacing: '0.2em', textTransform: 'uppercase', color: MHPC.pink,
                }}>
                  <span style={{
                    width: 6, height: 6, borderRadius: 999,
                    background: MHPC.pink, boxShadow: `0 0 8px ${MHPC.pink}`,
                  }} />
                  {t.badge}
                </span>
              </div>

              <h2 style={{
                margin: 0,
                fontSize: 'clamp(34px, 5vw, 56px)',
                fontWeight: 500, lineHeight: 1.05,
                letterSpacing: '-0.035em',
              }}>
                <span style={{ color: MHPC.fg }}>{t.titleA}</span>
                <br />
                <span style={{ color: MHPC.pink }}>{t.titleB}</span>
              </h2>

              <p style={{
                margin: 0,
                fontSize: 'clamp(14px, 1.5vw, 17px)',
                color: MHPC.fg2, lineHeight: 1.75,
                maxWidth: 620,
              }}>{t.sub}</p>

              <div style={{ display: 'flex', flexWrap: 'wrap', gap: 10 }}>
                {t.features.map((f, i) => (
                  <span key={i} style={{
                    display: 'inline-flex', alignItems: 'center', gap: 8,
                    padding: '9px 18px', borderRadius: 999,
                    background: MHPC.bg2,
                    border: `1px solid ${MHPC.borderHi}`,
                    fontFamily: 'Inter, sans-serif', fontSize: 13, fontWeight: 500,
                    color: MHPC.fg2,
                  }}>
                    <span style={{ width: 5, height: 5, borderRadius: 999, background: MHPC.pink, flexShrink: 0 }} />
                    {f}
                  </span>
                ))}
              </div>
            </div>
          </div>
        </Reveal>
      </div>
    </MHPSection>
  );
}

/* ── TRUST STRIP ────────────────────────────────────────── */
function MHPTrust({ T }) {
  const t = T.trust;
  return (
    <MHPSection id="privacidade" style={{
      background: `linear-gradient(180deg, ${MHPC.bg} 0%, ${MHPC.bg2} 60%, ${MHPC.bg} 100%)`,
    }}>
      <div className="mhp-how-head" style={{ display: 'grid', gridTemplateColumns: '1fr 1fr', gap: 80, marginBottom: 48 }}>
        <div>
          <Reveal><MHPEyebrow style={{ marginBottom: 20 }}>{t.label}</MHPEyebrow></Reveal>
          <Reveal delay={80}>
            <h2 style={mhpHeadlineXL}>
              <span style={{ color: MHPC.fg2 }}>{t.titleA}</span><br/>{t.titleB}
            </h2>
          </Reveal>
        </div>
        <Reveal delay={120} style={{ display: 'flex', alignItems: 'flex-end', paddingBottom: 4 }}>
          <p style={{ fontSize: 16, color: MHPC.fg2, lineHeight: 1.7, margin: 0 }}>{t.sub}</p>
        </Reveal>
      </div>

      <div style={{ display: 'flex', flexWrap: 'wrap', gap: 10 }}>
        {t.items.map((item, i) => (
          <Reveal key={i} delay={Math.min(i * 40, 240)}>
            <div style={{
              display: 'inline-flex', alignItems: 'center', gap: 10,
              padding: '14px 20px',
              background: MHPC.bg2,
              border: `1px solid ${MHPC.border}`,
              borderRadius: 12,
              fontFamily: 'Inter, sans-serif', fontSize: 14,
              color: MHPC.fg2,
            }}>
              <span style={{ width: 6, height: 6, borderRadius: 999, background: MHPC.teal, flexShrink: 0 }}/>
              {item}
            </div>
          </Reveal>
        ))}
      </div>
    </MHPSection>
  );
}

/* ── LANGUAGES STRIP ────────────────────────────────────── */
function MHPLanguages({ T }) {
  const l = T.languages;
  return (
    <MHPSection padTop={80} padBottom={80}>
      <Reveal>
        <div style={{
          display: 'flex', flexWrap: 'wrap', gap: 32, alignItems: 'center', justifyContent: 'space-between',
          border: `1px solid ${MHPC.border}`, borderRadius: 20, padding: '32px 36px',
          background: MHPC.bg2,
        }}>
          <div style={{ maxWidth: 560 }}>
            <MHPEyebrow style={{ marginBottom: 14 }}>{l.label}</MHPEyebrow>
            <h3 style={{ fontFamily: 'Inter, sans-serif', fontSize: 22, fontWeight: 500, letterSpacing: '-0.015em', color: MHPC.fg, margin: '0 0 10px' }}>{l.title}</h3>
            <p style={{ fontSize: 14, color: MHPC.fg2, lineHeight: 1.65, margin: 0 }}>{l.sub}</p>
          </div>
          <div style={{ display: 'flex', gap: 10 }}>
            <FlagBR size={30} />
            <FlagUS size={30} />
            <FlagES size={30} />
          </div>
        </div>
      </Reveal>
    </MHPSection>
  );
}

/* ── CTA FINAL ────────────────────────────────────────── */
function MHPCTA({ T }) {
  const c = T.cta;
  return (
    <MHPSection id="em-breve" padTop={100} padBottom={140}
      style={{ background: `linear-gradient(180deg, ${MHPC.bg} 0%, ${MHPC.bg2} 100%)` }}
    >
      <div aria-hidden style={{
        position: 'absolute', bottom: -100, left: '50%', transform: 'translateX(-50%)',
        width: 900, height: 600,
        background: 'radial-gradient(50% 50% at 50% 50%, rgba(255,94,114,0.14) 0%, transparent 70%)',
        filter: 'blur(50px)', pointerEvents: 'none',
      }}/>

      <div style={{ position: 'relative', zIndex: 1, textAlign: 'center' }}>
        <Reveal>
          <MHPEyebrow style={{ marginBottom: 24 }}>{c.label}</MHPEyebrow>
        </Reveal>
        <Reveal delay={80}>
          <h2 style={{
            fontFamily: 'Inter, sans-serif',
            fontSize: 'clamp(36px, 5vw, 64px)',
            fontWeight: 500, letterSpacing: '-0.035em', lineHeight: 1.05,
            margin: '0 auto 20px', maxWidth: 700, color: MHPC.fg,
          }}>{c.title}</h2>
        </Reveal>
        <Reveal delay={160}>
          <p style={{ fontSize: 16, color: MHPC.fg2, lineHeight: 1.7, margin: '0 auto 32px', maxWidth: 480 }}>{c.sub}</p>
        </Reveal>
        <Reveal delay={240}>
          <p style={{
            fontFamily: 'JetBrains Mono, monospace',
            fontSize: 10, letterSpacing: '0.18em', textTransform: 'uppercase',
            color: MHPC.fg3,
          }}>{c.note}</p>
        </Reveal>
      </div>
    </MHPSection>
  );
}

/* ── FOOTER ───────────────────────────────────────────── */
function MHPFooter({ lang }) {
  return (
    <footer style={{
      borderTop: `1px solid ${MHPC.border}`,
      padding: '28px 32px',
    }}>
      <div style={{
        maxWidth: 1280, margin: '0 auto',
        display: 'flex', justifyContent: 'space-between', alignItems: 'center',
        flexWrap: 'wrap', gap: 12,
      }}>
        <a href={`index.html?lang=${lang}`} style={{
          fontFamily: 'JetBrains Mono, monospace', fontSize: 11,
          letterSpacing: '0.14em', textTransform: 'uppercase',
          color: MHPC.fg3, textDecoration: 'none',
          transition: 'color 0.2s',
        }}
          onMouseEnter={(e) => { e.currentTarget.style.color = MHPC.fg2; }}
          onMouseLeave={(e) => { e.currentTarget.style.color = MHPC.fg3; }}
        >EZV Studio</a>
        <a href="/privacidade/mulher.html" style={{
          fontFamily: 'JetBrains Mono, monospace', fontSize: 10,
          letterSpacing: '0.1em', color: MHPC.fg3, textDecoration: 'none',
          transition: 'color 0.2s',
        }}
          onMouseEnter={(e) => { e.currentTarget.style.color = MHPC.fg2; }}
          onMouseLeave={(e) => { e.currentTarget.style.color = MHPC.fg3; }}
        >Privacidade · Termos</a>
        <a
          href={`suporte.html?lang=${lang}`}
          style={{ color: MHPC.fg3, textDecoration: 'none', transition: 'color 0.2s', fontFamily: 'JetBrains Mono, monospace', fontSize: 10, letterSpacing: '0.1em' }}
          onMouseEnter={(e) => { e.currentTarget.style.color = MHPC.fg2; }}
          onMouseLeave={(e) => { e.currentTarget.style.color = MHPC.fg3; }}
        >
          Suporte
        </a>
        <span style={{
          fontFamily: 'JetBrains Mono, monospace', fontSize: 10,
          letterSpacing: '0.1em', color: MHPC.fg4,
        }}>© 2026 EZV Studio</span>
      </div>
    </footer>
  );
}

/* ── ROOT ─────────────────────────────────────────────── */
function MulherPage() {
  const [lang, setLang] = useS_MHP(getInitialLangMHP);

  useE_MHP(() => {
    try { localStorage.setItem('ezLang', lang); } catch {}
    window.__ezLang = lang;
  }, [lang]);

  const T = MHPI[lang] || MHPI.pt;

  return (
    <div style={{ background: MHPC.bg, minHeight: '100vh', color: MHPC.fg, fontFamily: 'Inter, sans-serif' }}>
      <MHPNav lang={lang} setLang={setLang} T={T} />
      <main>
        <MHPHero T={T} lang={lang} />
        <MHPHow T={T} />
        <MHPFeatures T={T} />
        <MHPTherapist T={T} />
        <MHPTrust T={T} />
        <MHPLanguages T={T} />
        <MHPCTA T={T} />
      </main>
      <MHPFooter lang={lang} />
    </div>
  );
}

const mhpRoot = ReactDOM.createRoot(document.getElementById('root'));
mhpRoot.render(<MulherPage />);
