// Shared helpers for the Secretária Extraordinária landing. const SEDS = window.SecretRiaExtraordinRiaDesignSystem_852e48; // Lucide icon → inline SVG (works across React re-renders). function Icon({ name, size = 24, stroke = 1.75, color = "currentColor", style }) { let inner = ""; try { const node = (window.lucide && (window.lucide.icons || window.lucide)); let data = node && node[name]; if (data && data.length && Array.isArray(data[2])) data = data[2]; // [tag,attrs,children] form if (Array.isArray(data)) { inner = data.map(([tag, attrs]) => `<${tag} ${Object.entries(attrs || {}).map(([k, v]) => `${k}="${v}"`).join(" ")}>` ).join(""); } } catch (e) { inner = ""; } return ; } // Section shell with vertical rhythm + max-width container. function Section({ id, tone = "cream", pad = "lg", children, style }) { const bg = tone === "cream" ? "var(--surface-page)" : tone === "white" ? "var(--surface-card)" : tone === "deep" ? "var(--gradient-brand)" : tone === "deepest" ? "var(--purple-950)" : tone; const py = pad === "sm" ? "clamp(48px,7vw,72px)" : pad === "xl" ? "clamp(88px,12vw,148px)" : "clamp(72px,10vw,120px)"; return (
{children}
); } const Kicker = ({ children, tone }) => ( {children} ); const Serif = { fontFamily: "var(--font-display)", fontWeight: 700, lineHeight: 1.05, letterSpacing: "-.01em" }; // Site-wide CTA button — matches the floating bar: uppercase label + arrow-in-a-box. function CTAButton({ children, onClick, variant = "gold", size = "md", fullWidth, disabled, arrow = true, style }) { const gold = variant === "gold"; const pad = size === "lg" ? "17px 20px 17px 24px" : "14px 16px 14px 20px"; const fs = size === "lg" ? "clamp(14px,1.35vw,16px)" : "clamp(12.5px,1.2vw,14.5px)"; const bg = disabled ? "var(--surface-soft)" : gold ? "var(--gradient-gold)" : "var(--gradient-brand)"; const color = disabled ? "var(--text-muted)" : gold ? "var(--purple-900)" : "#fff"; const boxBg = disabled ? "rgba(48,0,72,.08)" : gold ? "rgba(255,255,255,.92)" : "var(--gradient-gold)"; return ( ); } Object.assign(window, { Icon, Section, Kicker, Serif, SEDS, CTAButton });