/* Mailapult — sales/GTM. Vibrant magenta + electric purple gradient, big display sans,
   confetti accents, "go fast" energy. Persona 5. */
/* Design review: Renata "Ren" Vasquez-Lim. Brief: drifting confetti, layered glow on the CTA,
   scale+lift on hover, gradient stripe on each band, refactor the !important. */

:root[data-site="mailapult"] {
    --mp-bg: #0b0014;
    --mp-surface: #150026;
    --mp-fg: #fdf2ff;
    --mp-muted: #c4a8d4;
    --mp-accent: #ec4899;
    --mp-accent-2: #a855f7;
    --mp-accent-3: #fbbf24;
    --mp-rule: #2d0d4d;
    --mp-display: "Space Grotesk", "Inter", -apple-system, system-ui, sans-serif;
    --mp-sans: "Inter", system-ui, sans-serif;
}
html[data-site="mailapult"], body { background: var(--mp-bg); color: var(--mp-fg); }
body {
    font-family: var(--mp-sans); margin: 0; line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

.mp-container { max-width: 1080px; margin: 0 auto; padding: 0 1.5rem; }

.mp-header { background: var(--mp-bg); padding: 1rem 0; border-bottom: 1px solid var(--mp-rule); }
.mp-header .mp-container { display: flex; justify-content: space-between; align-items: center; }
.mp-brand {
    color: var(--mp-fg); text-decoration: none;
    font-family: var(--mp-display); font-size: 1.3rem;
    font-weight: 700; letter-spacing: -.025em;
    display: inline-flex; align-items: center; gap: .5rem;
}
/* Ren: live indicator on the brand. Sales tools should feel like they're shipping right now. */
.mp-brand::before {
    content: ""; width: 8px; height: 8px; border-radius: 50%;
    background: var(--mp-accent);
    box-shadow: 0 0 12px var(--mp-accent), 0 0 4px var(--mp-accent);
    animation: mp-live 1.6s ease-in-out infinite;
}
@keyframes mp-live { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.4); } }
@media (prefers-reduced-motion: reduce) { .mp-brand::before { animation: none; } }

.mp-brand-pop {
    background: linear-gradient(120deg, var(--mp-accent), var(--mp-accent-2));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--mp-accent);
}
.mp-nav a {
    color: var(--mp-muted); text-decoration: none; margin-left: 1.25rem; font-weight: 500;
    transition: color .12s ease;
}
.mp-nav a:hover { color: var(--mp-fg); }
.mp-nav a:focus-visible { outline: 2px solid var(--mp-accent); outline-offset: 4px; border-radius: 4px; }

/* Ren: refactor the !important. */
.mp-nav a.mp-cta {
    background: linear-gradient(120deg, var(--mp-accent), var(--mp-accent-2));
    color: #fff; padding: .55rem 1.1rem; border-radius: 999px; font-weight: 700;
    box-shadow:
        0 2px 4px rgba(0,0,0,.3),
        0 8px 24px rgba(236,72,153,.45);
    transition: transform .12s ease, box-shadow .15s ease;
}
.mp-nav a.mp-cta:hover {
    transform: translateY(-1px);
    box-shadow:
        0 2px 4px rgba(0,0,0,.3),
        0 12px 32px rgba(236,72,153,.55);
}

.mp-main { padding: 0; }
.mp-hero { padding: 5rem 0 4rem; position: relative; overflow: hidden; }
h1 {
    font-family: var(--mp-display);
    font-size: clamp(2.4rem, 6vw, 4.5rem);
    line-height: 1.0; margin: 0 0 1rem;
    letter-spacing: -.035em; font-weight: 800;
}
.mp-accent {
    background: linear-gradient(120deg, var(--mp-accent), var(--mp-accent-2));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--mp-accent);
}
@supports not (background-clip: text) {
    .mp-accent, .mp-brand-pop { -webkit-text-fill-color: currentColor; color: var(--mp-accent); }
}
.mp-lede { color: var(--mp-muted); font-size: 1.15rem; max-width: 55ch; }
.mp-actions { display: flex; gap: .75rem; margin-top: 1.75rem; flex-wrap: wrap; }

.mp-btn {
    display: inline-block; padding: .9rem 1.7rem;
    border-radius: 999px; text-decoration: none;
    /* Ren: 800. Sales fonts are heavier than you think. */
    font-weight: 800;
    transition: transform .15s cubic-bezier(.34,1.56,.64,1), box-shadow .15s ease, border-color .12s ease;
}
.mp-btn-primary {
    background: linear-gradient(120deg, var(--mp-accent), var(--mp-accent-2));
    color: #fff;
    /* Layered. Tight contact + wide cast. */
    box-shadow:
        0 2px 6px rgba(0,0,0,.3),
        0 12px 32px rgba(168,85,247,.5);
}
.mp-btn-primary:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow:
        0 2px 6px rgba(0,0,0,.3),
        0 18px 40px rgba(168,85,247,.6);
}
.mp-btn-primary:active { transform: translateY(-1px) scale(1.0); }
.mp-btn-ghost { color: var(--mp-fg); border: 1.5px solid var(--mp-rule); }
.mp-btn-ghost:hover { border-color: var(--mp-accent); transform: translateY(-1px); }
.mp-btn:focus-visible { outline: 2px solid var(--mp-accent-3); outline-offset: 3px; }

/* Confetti — Ren: drift it. Each piece on its own slow random animation. */
.mp-confetti { position: absolute; inset: 0; pointer-events: none; }
.mp-confetti span {
    position: absolute; width: 14px; height: 14px; border-radius: 3px;
    background: var(--mp-accent-3); transform: rotate(15deg); opacity: .85;
    animation: mp-drift 8s ease-in-out infinite;
}
@keyframes mp-drift {
    0%, 100% { transform: translateY(0) rotate(15deg); }
    50%      { transform: translateY(-10px) rotate(35deg); }
}
.mp-confetti span:nth-child(1) { top: 12%; left: 8%;  background: var(--mp-accent); animation-delay: 0s;   animation-duration: 7s; }
.mp-confetti span:nth-child(2) { top: 25%; left: 88%; background: var(--mp-accent-2); transform: rotate(-30deg); animation-delay: -1s; animation-duration: 9s; }
.mp-confetti span:nth-child(3) { top: 55%; left: 92%; background: var(--mp-accent-3); animation-delay: -2s; animation-duration: 8s; }
.mp-confetti span:nth-child(4) { top: 70%; left: 12%; background: var(--mp-accent); transform: rotate(45deg); animation-delay: -3s; animation-duration: 10s; }
.mp-confetti span:nth-child(5) { top: 18%; left: 70%; background: var(--mp-accent-2); animation-delay: -4s; animation-duration: 9s; }
.mp-confetti span:nth-child(6) { top: 80%; left: 60%; background: var(--mp-accent-3); transform: rotate(-15deg); animation-delay: -5s; animation-duration: 11s; }
.mp-confetti span:nth-child(7) { top: 35%; left: 22%; background: var(--mp-accent-2); animation-delay: -2.5s; animation-duration: 8.5s; }
.mp-confetti span:nth-child(8) { top: 62%; left: 50%; background: var(--mp-accent); transform: rotate(75deg); animation-delay: -1.5s; animation-duration: 9.5s; }
@media (prefers-reduced-motion: reduce) {
    .mp-confetti span { animation: none; }
}

.mp-bands { padding: 1rem 0 5rem; }
.mp-bands-grid { display: grid; gap: 1rem; }
.mp-band {
    padding: 2rem; border-radius: 18px;
    background: var(--mp-surface); border: 1px solid var(--mp-rule);
    /* Ren: every band gets a gradient stripe on the leading edge — progress-bar energy. */
    border-left: 4px solid transparent;
    background-clip: padding-box;
    position: relative;
    transition: transform .15s ease, box-shadow .15s ease;
}
.mp-band::before {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
    border-radius: 18px 0 0 18px;
}
.mp-band-1 { background: linear-gradient(120deg, rgba(236,72,153,.12), rgba(168,85,247,.08)); }
.mp-band-1::before { background: linear-gradient(180deg, var(--mp-accent), var(--mp-accent-2)); }
.mp-band-2 { background: linear-gradient(120deg, rgba(168,85,247,.12), rgba(251,191,36,.06)); }
.mp-band-2::before { background: linear-gradient(180deg, var(--mp-accent-2), var(--mp-accent-3)); }
.mp-band-3 { background: linear-gradient(120deg, rgba(251,191,36,.08), rgba(236,72,153,.06)); }
.mp-band-3::before { background: linear-gradient(180deg, var(--mp-accent-3), var(--mp-accent)); }
.mp-band:hover { transform: translateY(-2px); }
.mp-band h2 { font-family: var(--mp-display); margin: 0 0 .5rem; font-size: 1.45rem; font-weight: 700; letter-spacing: -.015em; }
.mp-band p { color: var(--mp-muted); margin: 0; }

::selection { background: var(--mp-accent); color: #fff; }

.mp-footer { padding: 2rem 0 3rem; border-top: 1px solid var(--mp-rule); color: var(--mp-muted); font-size: .9rem; }
.mp-footer-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 1rem; }
.mp-footer a { color: var(--mp-muted); text-decoration: none; }
.mp-footer a:hover { color: var(--mp-accent); }

.skip-to-content {
    position: absolute; left: -9999px;
    background: var(--mp-accent); color: #fff;
    padding: .55rem 1.1rem; border-radius: 999px;
    font-weight: 700; z-index: 1000;
}
.skip-to-content:focus { left: 1rem; top: 1rem; }

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
}
