/*
 * StemLab Home V2 — Stylesheet
 * Plugin: stemlab-home-v2
 * Prefix: slv2-
 * Design: Luxury minimal, dark, pink accent (#FF3CAC / #E91E8C)
 */

/* =========================================================
   CSS CUSTOM PROPERTIES
   ========================================================= */
:root {
    --slv2-bg:         #0D0D12;
    --slv2-surface:    #1A1A22;
    --slv2-surface2:   #22222C;
    --slv2-border:     rgba(255, 255, 255, 0.08);
    --slv2-text:       #F5F5F7;
    --slv2-text-muted: #E0E0E4;
    --slv2-text-dim:   #888896;
    --slv2-pink:       #FF2E86;
    --slv2-pink-dark:  #E0276F;
    --slv2-pink-glow:  rgba(255, 46, 134, 0.18);
    --slv2-green:      #22C55E;
    --slv2-green-glow: rgba(34, 197, 94, 0.25);
    --slv2-radius:     12px;
    --slv2-radius-sm:  8px;
    --slv2-transition: 0.3s ease;
    --slv2-font:       inherit; /* Inherits from site */
}

/* =========================================================
   FLUSH PARENT — kill Elementor/page-builder padding
   ========================================================= */
.slv2-flush-parent,
.slv2-flush-parent > .elementor-widget-wrap,
.slv2-flush-parent > .elementor-section-wrap,
.elementor-widget-shortcode .slv2-flush-parent {
    padding: 0 !important;
    margin: 0 !important;
    background: var(--slv2-bg) !important;
    gap: 0 !important;
}

/* Kill any Elementor/Canvas page-level gaps */
.elementor-page .slv2-flush-parent {
    background: var(--slv2-bg) !important;
}

/* Ensure wrapper fills parent completely */
.slv2-flush-parent .elementor-widget-container {
    padding: 0 !important;
    margin: 0 !important;
}

/* Kill Elementor kit widget spacing that creates gaps */
.slv2-flush-parent .elementor-widget {
    --kit-widget-spacing: 0px !important;
    margin-bottom: 0 !important;
}

.slv2-flush-parent.e-con,
.slv2-flush-parent .e-con {
    --kit-widget-spacing: 0px !important;
    gap: 0 !important;
    padding: 0 !important;
}

/* =========================================================
   WRAPPER
   ========================================================= */
.slv2 {
    background: var(--slv2-bg);
    color: var(--slv2-text);
    font-family: var(--slv2-font);
    overflow-x: hidden;
    width: 100%;
}

/* =========================================================
   SECTION BASE
   ========================================================= */
.slv2 section {
    width: 100%;
    position: relative;
}

.slv2-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 40px;
}

/* =========================================================
   ANIMATION STATES
   fade-up: scroll-triggered elements
   hero-*: page-load staggered hero elements
   ========================================================= */
/* Scoped to .slv2 wrapper only — prevents bleeding onto other pages */
.slv2 [data-anim="fade-up"],
.slv2 [data-anim="hero-h1"],
.slv2 [data-anim="hero-sub"],
.slv2 [data-anim="hero-cta"] {
    opacity: 0;
    transform: translateY(24px);
    will-change: opacity, transform;
}

.slv2 [data-anim="fade-up"].slv2-visible {
    animation: slv2FadeUp 0.6s ease-out forwards;
}

.slv2 [data-anim="hero-h1"].slv2-hero-ready {
    animation: slv2FadeUp 0.8s ease-out forwards;
}

.slv2 [data-anim="hero-sub"].slv2-hero-ready {
    animation: slv2FadeUp 0.6s ease-out 0.2s forwards;
}

.slv2 [data-anim="hero-cta"].slv2-hero-ready {
    animation: slv2FadeUp 0.5s ease-out 0.4s forwards;
}

/* Safety fallback — applied by JS after 3s if animation hasn't fired */
.slv2-anim-fallback .slv2 [data-anim],
.slv2 .slv2-anim-fallback [data-anim],
.slv2.slv2-anim-fallback [data-anim],
.slv2.slv2-anim-fallback [data-anim="hero-h1"],
.slv2.slv2-anim-fallback [data-anim="hero-sub"],
.slv2.slv2-anim-fallback [data-anim="hero-cta"] {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
}

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

/* Stagger delays for roadmap items */
.slv2 .slv2-roadmap-item:nth-child(1)[data-anim="fade-up"].slv2-visible { animation-delay: 0ms; }
.slv2 .slv2-roadmap-item:nth-child(2)[data-anim="fade-up"].slv2-visible { animation-delay: 150ms; }
.slv2 .slv2-roadmap-item:nth-child(3)[data-anim="fade-up"].slv2-visible { animation-delay: 300ms; }
.slv2 .slv2-roadmap-item:nth-child(4)[data-anim="fade-up"].slv2-visible { animation-delay: 450ms; }

/* =========================================================
   SECTION 1: HERO
   ========================================================= */
.slv2-hero {
    height: 100vh;
    min-height: 100vh;
    max-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    /* Subtle static radial gradient — luxury, barely perceptible */
    background:
        radial-gradient(ellipse 80% 60% at 50% 40%, rgba(255, 46, 134, 0.04) 0%, transparent 60%),
        radial-gradient(ellipse 60% 80% at 20% 80%, rgba(80, 40, 120, 0.05) 0%, transparent 50%),
        var(--slv2-bg);
}

.slv2-hero-content {
    position: relative;
    z-index: 2;
    padding: 80px 40px;
    max-width: 800px;
    margin: 0 auto;
}

.slv2-hero-h1 {
    font-size: clamp(3rem, 8vw, 6.5rem);
    font-weight: 700;
    font-style: normal;
    letter-spacing: -0.03em;
    line-height: 1.0;
    color: #F5F5F7;
    margin: 0 0 28px 0;
}

.slv2-hero-sub {
    font-size: clamp(1rem, 2.2vw, 1.25rem);
    font-weight: 300;
    color: var(--slv2-text-muted);
    line-height: 1.6;
    max-width: 540px;
    margin: 0 auto 48px auto;
}

.slv2-hero-ctas {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}



/* =========================================================
   BUTTONS
   ========================================================= */
.slv2-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition:
        background var(--slv2-transition),
        box-shadow var(--slv2-transition),
        transform 0.15s ease,
        color var(--slv2-transition),
        border-color var(--slv2-transition);
    white-space: nowrap;
    line-height: 1;
}

.slv2-btn:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.slv2-btn:active {
    transform: translateY(0px);
}

/* Primary: solid pink */
.slv2-btn--primary {
    background: var(--slv2-pink);
    color: #FFFFFF;
    box-shadow: 0 4px 24px var(--slv2-pink-glow);
}

.slv2-btn--primary:hover {
    background: var(--slv2-pink-dark);
    box-shadow: 0 6px 32px rgba(255, 46, 134, 0.28);
    color: #FFFFFF;
}

/* Ghost: transparent with border */
.slv2-btn--ghost {
    background: transparent;
    color: var(--slv2-text-muted);
    border: 1.5px solid rgba(255, 255, 255, 0.22);
}

.slv2-btn--ghost:hover {
    border-color: rgba(255, 255, 255, 0.5);
    color: #FFFFFF;
}

/* Full-width variant for pricing card */
.slv2-btn--full {
    width: 100%;
}

/* =========================================================
   SECTION HEADINGS (shared)
   ========================================================= */
.slv2-section-heading {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    font-style: normal !important;
    letter-spacing: -0.025em;
    line-height: 1.1;
    color: #F5F5F7;
    margin: 0 0 16px 0;
}

.slv2-section-sub {
    font-size: 1rem;
    font-weight: 300;
    color: var(--slv2-text-dim);
    line-height: 1.6;
    margin: 0 0 60px 0;
}

/* =========================================================
   SECTION 2: DEMO PLAYER
   ========================================================= */
.slv2-demo {
    padding: 150px 0;
    background: var(--slv2-bg);
}

.slv2-demo-header {
    text-align: center;
    margin-bottom: 64px;
}

/* Demo player — 3 box grid layout */
.slv2-demo-player {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1080px;
    margin: 0 auto;
}

.slv2-stem-row {
    background: var(--slv2-surface);
    border: 1px solid var(--slv2-border);
    border-radius: var(--slv2-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 40px 24px;
    text-align: center;
    transition: border-color var(--slv2-transition), background var(--slv2-transition);
    cursor: pointer;
}

.slv2-stem-row:hover {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.025);
}

.slv2-stem-row.slv2-stem-playing {
    border-color: rgba(255, 46, 134, 0.35);
    background: rgba(255, 46, 134, 0.04);
}

.slv2-stem-play {
    width: 56px;
    height: 56px;
    border-radius: 50% !important;
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    color: var(--slv2-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color var(--slv2-transition), background var(--slv2-transition), transform 0.15s ease;
    flex-shrink: 0;
    padding: 0;
}

.slv2-stem-play:hover {
    border-color: var(--slv2-pink);
    background: var(--slv2-pink-glow);
    transform: scale(1.06);
}

.slv2-stem-row.slv2-stem-playing .slv2-stem-play {
    border-color: var(--slv2-pink);
    background: var(--slv2-pink);
    color: #fff;
}

/* SVG play/pause icons */
.slv2-stem-play svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Hide pause icon by default, show when playing */
.slv2-icon-pause { display: none; }
.slv2-stem-row.slv2-stem-playing .slv2-icon-play { display: none; }
.slv2-stem-row.slv2-stem-playing .slv2-icon-pause { display: block; }

.slv2-stem-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 0;
    width: 100%;
}

.slv2-stem-name {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--slv2-text-muted);
}

.slv2-stem-bar {
    width: 100%;
    height: 32px;
    background: transparent;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

/* Waveform canvases */
.slv2-waveform,
.slv2-waveform-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.slv2-waveform-progress {
    clip-path: inset(0 100% 0 0);
    transition: clip-path 0.08s linear;
}

.slv2-stem-progress {
    display: none; /* hidden — waveform handles the visual now */
}

.slv2-stem-time {
    font-size: 0.75rem;
    color: var(--slv2-text-dim);
    font-variant-numeric: tabular-nums;
}

/* =========================================================
   SECTION 3: ROADMAP
   ========================================================= */
.slv2-roadmap {
    padding: 150px 0;
    background: var(--slv2-surface);
}

.slv2-roadmap-header {
    text-align: center;
    margin-bottom: 72px;
}

.slv2-roadmap-track {
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}

/* Vertical connector line */
.slv2-roadmap-track::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 20px;
    bottom: 20px;
    width: 1px;
    background: linear-gradient(
        to bottom,
        var(--slv2-green) 0%,
                var(--slv2-green) 38%,
        rgba(34, 197, 94, 0.3) 50%,
        rgba(255, 255, 255, 0.08) 60%,
        rgba(255, 255, 255, 0.04) 100%
    );
}

.slv2-roadmap-item {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 20px 0;
    position: relative;
}

.slv2-roadmap-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #2A2A3A;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    margin-top: 2px;
}

/* ── Minimal Roadmap (new layout) ── */
.slv2-roadmap-minimal {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px 0 40px;
}
.slv2-rm-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    margin: 0 0 16px;
}
.slv2-rm-heading {
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin: 0 0 48px;
}
.slv2-rm-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 48px;
}
.slv2-rm-item {
    font-size: clamp(18px, 3vw, 24px);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: -0.01em;
    transition: color 0.2s ease;
}
.slv2-rm-item--active {
    color: #FF2E86;
    font-weight: 600;
}
.slv2-rm-footer-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    margin: 0 0 8px;
}
.slv2-rm-footer-sub {
    font-size: clamp(18px, 3vw, 26px);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: -0.02em;
    margin: 0;
}

/* Live dot — green with slow pulse */
.slv2-roadmap-dot--live {
    background: var(--slv2-green);
    border-color: var(--slv2-green);
    animation: slv2LivePulse 2.5s ease-in-out infinite;
}

@keyframes slv2LivePulse {
    0%, 100% {
        box-shadow: 0 0 0 0 var(--slv2-green-glow);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 8px transparent;
        transform: scale(1.1);
    }
}

.slv2-roadmap-label {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.slv2-roadmap-title {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--slv2-text);
    line-height: 1.3;
}

.slv2-roadmap-status {
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--slv2-text-dim);
    letter-spacing: 0.03em;
}

.slv2-roadmap-status--live {
    color: var(--slv2-green);
    font-weight: 500;
}

/* Four-item evenly-spaced homepage roadmap preview */
.slv2-roadmap-track--four {
    padding: 8px 0;
}
.slv2-roadmap-track--four .slv2-roadmap-item {
    padding: 22px 0;
}

/* Title row — keeps "New" pill on the same line as title */
.slv2-roadmap-title-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Pink "New" marker — brand hot pink, no bubble, identical on every breakpoint */
.slv2-roadmap-badge-new {
    display: inline-flex;
    align-items: center;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--slv2-pink, #FF2E86) !important;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: none;
    line-height: 1;
    white-space: nowrap;
}
.slv2-roadmap-badge-new::before {
    content: "•";
    display: inline-block;
    margin-right: 6px;
    color: var(--slv2-pink, #FF2E86);
    font-size: 1em;
    line-height: 1;
}

.slv2-roadmap-link-wrap {
    text-align: center;
    margin-top: 56px;
}

.slv2-roadmap-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--slv2-text-dim);
    text-decoration: none;
    letter-spacing: 0.03em;
    transition: color var(--slv2-transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 2px;
}

.slv2-roadmap-link:hover {
    color: var(--slv2-text);
    border-bottom-color: rgba(255, 255, 255, 0.4);
}

/* =========================================================
   SECTION 4: PRICING
   ========================================================= */
.slv2-pricing {
    padding: 150px 0;
    background: var(--slv2-bg);
}

.slv2-pricing-header {
    text-align: center;
    margin-bottom: 64px;
}

.slv2-pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 820px;
    margin: 0 auto;
}

/* Both pricing cards animate together (no stagger) */
.slv2-pricing-grid[data-anim="fade-up"].slv2-visible {
    animation: slv2FadeUp 0.6s ease-out forwards;
}

.slv2-price-card {
    background: var(--slv2-surface);
    border: 1px solid var(--slv2-border);
    border-radius: var(--slv2-radius);
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    position: relative;
    transition: border-color var(--slv2-transition);
}

.slv2-price-card--plus {
    border-color: rgba(255, 46, 134, 0.25);
    background: linear-gradient(
        145deg,
        rgba(255, 46, 134, 0.04) 0%,
        var(--slv2-surface) 60%
    );
}

.slv2-price-card--plus:hover {
    border-color: rgba(255, 46, 134, 0.45);
}

.slv2-price-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 46, 134, 0.12);
    color: var(--slv2-pink);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 50px;
    border: 1px solid rgba(255, 46, 134, 0.25);
    width: fit-content;
    margin-bottom: -8px;
}

.slv2-price-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.slv2-price-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--slv2-text);
    line-height: 1.2;
}

.slv2-price-name-plus {
    color: var(--slv2-pink);
}

.slv2-price-amount {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.slv2-price-main {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--slv2-text);
    line-height: 1;
}

.slv2-price-period {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--slv2-text-dim);
}

.slv2-price-was {
    font-size: 0.9375rem;
    font-weight: 400;
    color: var(--slv2-text-dim);
    text-decoration: line-through;
    text-decoration-color: rgba(255, 255, 255, 0.3);
}

.slv2-price-tagline {
    font-size: 0.8125rem;
    color: var(--slv2-text-dim);
    font-weight: 300;
    line-height: 1.5;
    margin-top: 4px;
}

.slv2-price-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.slv2-price-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9375rem;
    color: var(--slv2-text-muted);
    line-height: 1.4;
}

.slv2-price-features li::before {
    content: '';
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 1px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3 8l3.5 3.5L13 4' stroke='%2322C55E' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

.slv2-price-features li.slv2-feature-highlight {
    color: var(--slv2-text);
    font-weight: 500;
}

.slv2-price-cta {
    margin-top: auto;
}

/* =========================================================
   SECTION 5: CLOSING CTA
   ========================================================= */
.slv2-closing {
    padding: 200px 0 180px;
    background: var(--slv2-surface);
    text-align: center;
}

.slv2-closing-inner {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.slv2-closing-h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.1;
    color: #F5F5F7;
    margin: 0;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 768px) {
    .slv2-inner {
        padding: 0 20px;
    }

    .slv2-hero-content {
        padding: 60px 20px;
    }

    .slv2-demo,
    .slv2-roadmap,
    .slv2-pricing {
        padding: 100px 0;
    }

    .slv2-closing {
        padding: 120px 0;
    }

    .slv2-demo-player {
        grid-template-columns: repeat(2, 1fr);
        max-width: 520px;
    }

    .slv2-pricing-grid {
        grid-template-columns: 1fr;
        max-width: 440px;
    }

    .slv2-price-card {
        padding: 28px 24px;
    }

    .slv2-stem-row {
        padding: 32px 20px;
    }

    .slv2-roadmap-link-wrap {
        margin-top: 40px;
    }

    .slv2-closing-inner {
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .slv2-hero-ctas {
        flex-direction: column;
        align-items: stretch;
    }

    .slv2-btn {
        justify-content: center;
    }
}

.slv2-roadmap-new-accent{color:#F0176F;font-weight:400;font-size:inherit;letter-spacing:.02em;text-shadow:0 0 12px rgba(240,23,111,.45)}
