/* ========== INDEX PAGE: STACKD ========== */

/* ─── HERO (Side-by-Side) ─── */
.hero {
    padding: 120px 0 60px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 48px;
    align-items: center;
    max-width: 1400px;
}

.hero-copy {
    text-align: left;
}

.hero-vsl {
    width: 100%;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(26px, 3.5vw, 40px);
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-mid {
    font-size: 0.65em;
    font-weight: 400;
    opacity: 0.7;
}

.text-accent { color: var(--accent); }
.text-green { color: var(--secondary); }

.hero-sub {
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 600;
    line-height: 1.7;
    max-width: 520px;
    margin: 0 0 32px;
}


/* ─── VSL ─── */
.vsl-wrapper {
    width: 100%;
}

.vsl-player {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #000;
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
}

.vsl-player video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay — click to unmute */
.vsl-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: rgba(0, 0, 0, 0.35);
    z-index: 2;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.vsl-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.vsl-overlay-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.vsl-overlay:hover .vsl-overlay-btn {
    transform: scale(1.1);
}

.vsl-overlay-text {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* Custom controls bar */
.vsl-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    z-index: 3;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vsl-player:hover .vsl-controls,
.vsl-controls.visible {
    opacity: 1;
}

.vsl-ctrl-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
}

.vsl-ctrl-btn:hover {
    opacity: 1;
}

/* Progress bar */
.vsl-progress {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.vsl-progress:hover {
    height: 6px;
}

.vsl-progress-bar {
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
}

/* Time display */
.vsl-time {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Speed control */
.vsl-speed {
    position: relative;
    flex-shrink: 0;
}

.vsl-speed-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.vsl-speed-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.vsl-speed-menu {
    position: absolute;
    bottom: 100%;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    padding: 4px;
    display: none;
    flex-direction: column;
    min-width: 60px;
    margin-bottom: 6px;
}

.vsl-speed-menu.open {
    display: flex;
}

.vsl-speed-menu button {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    padding: 6px 10px;
    cursor: pointer;
    text-align: center;
    border-radius: 4px;
    transition: background 0.15s ease;
}

.vsl-speed-menu button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.vsl-speed-menu button.active {
    color: var(--accent);
    font-weight: 700;
}

/* ─── CTA INPUTS ─── */
.hero-cta,
.bottom-cta-form {
    max-width: 600px;
}

.cta-prompt {
    font-family: var(--font-display);
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 12px;
}

.cta-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 8px;
    margin-bottom: 8px;
}

.cta-input {
    padding: 14px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    transition: border-color var(--ease);
}

.cta-input:focus {
    outline: none;
    border-color: var(--accent);
}

.cta-input.error {
    border-color: var(--red);
}

.cta-btn {
    padding: 14px 28px;
    background: var(--accent);
    color: #ffffff;
    border: none;
    border-radius: var(--radius);
    font-family: var(--font-display);
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: opacity var(--ease), transform var(--ease);
    box-shadow: 0 4px 16px var(--accent-glow);
    white-space: nowrap;
}

.cta-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.cta-trust {
    font-size: 13px;
    color: var(--text-muted);
}

/* ─── COST SECTION ─── */
.cost-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 800px;
    margin: 40px auto 20px;
}

.cost-card {
    padding: 32px 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
    background: var(--bg-card);
}

.cost-card--highlight {
    border-color: var(--red);
    background: var(--bg-card);
}

.cost-number {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 40px);
    color: var(--text);
    margin-bottom: 8px;
}

.cost-card--highlight .cost-number {
    color: var(--red);
}

.cost-label {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.4;
}

.cost-footnote {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 16px;
    text-align: center;
}

/* ─── BUILDS GRID ─── */
.builds-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.build-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color var(--ease), transform var(--ease);
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
}

.build-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.build-img {
    aspect-ratio: 16 / 10;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.build-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.build-placeholder {
    font-size: 13px;
    color: var(--text-muted);
    padding: 20px;
    text-align: center;
    border: 2px dashed var(--border);
    border-radius: 6px;
    margin: 16px;
}

.build-info {
    padding: 16px 20px 20px;
    flex: 1;
}

.build-tier {
    font-size: 11px;
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 4px;
    display: block;
}

.build-info h3 {
    font-family: var(--font-display);
    font-size: 16px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.build-info p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ─── COMPARE SECTION ─── */
.compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 40px auto;
    max-width: 800px;
}

.compare-col {
    padding: 32px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
}

.compare-col h3 {
    font-family: var(--font-display);
    font-size: 18px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.compare-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.compare-col li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
    line-height: 1.4;
}

.compare-col li svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.compare-col--before {
    background: var(--bg-card);
    border: 1px solid var(--red);
}

.compare-col--before h3 {
    color: var(--red);
}

.compare-col--after {
    background: var(--bg-card);
    border: 1px solid var(--accent);
}

.compare-col--after h3 {
    color: var(--secondary);
}

.compare-question {
    text-align: center;
    font-family: var(--font-display);
    font-size: 18px;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* ─── PRICING ─── */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch;
}

.pricing-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: left;
    position: relative;
    transition: border-color var(--ease);
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
}

.pricing-card:hover {
    border-color: var(--accent);
}

.pricing-card--featured {
    border-color: var(--accent);
    box-shadow: 0 0 40px var(--accent-glow);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #ffffff;
    font-family: var(--font-display);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 16px;
    border-radius: 20px;
    white-space: nowrap;
}

.pricing-tier {
    font-family: var(--font-display);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
}

.pricing-header h3 {
    font-family: var(--font-display);
    font-size: 22px;
    text-transform: uppercase;
    margin: 4px 0 8px;
}

.pricing-tagline {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

.pricing-price {
    padding: 20px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin: 16px 0;
}

.pricing-amount {
    font-family: var(--font-display);
    font-size: 24px;
    display: block;
    margin-bottom: 4px;
}

.pricing-dash {
    color: var(--text-muted);
    font-size: 18px;
}

.pricing-term {
    font-size: 13px;
    color: var(--text-muted);
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    flex: 1;
}

.pricing-features li {
    padding: 6px 0;
    font-size: 14px;
    color: var(--text-muted);
    padding-left: 20px;
    position: relative;
}

.pricing-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.6;
}

.pricing-roi {
    padding: 12px 16px;
    background: rgba(0, 191, 99, 0.06);
    border: 1px solid rgba(0, 191, 99, 0.15);
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.pricing-roi p {
    font-size: 13px;
    color: var(--secondary);
    line-height: 1.5;
}

.pricing-cta {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: background var(--ease), color var(--ease);
    margin-top: auto;
}

.pricing-cta:hover {
    background: var(--accent);
    color: #ffffff;
}

.pricing-card--featured .pricing-cta {
    background: var(--accent);
    color: #ffffff;
}

.pricing-card--featured .pricing-cta:hover {
    opacity: 0.9;
}

.pricing-scarcity {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 32px;
}

/* ─── BOTTOM CTA ─── */
.bottom-cta-form {
    margin: 0 auto;
}

/* ─── RESPONSIVE ─── */

/* Tablet landscape — hero stays side-by-side but tighter */
@media (max-width: 1200px) {
    .hero-grid {
        grid-template-columns: 2fr 3fr;
        gap: 32px;
    }
}

/* Tablet portrait — hero stacks, pricing goes 2-col */
@media (max-width: 900px) {
    .hero {
        padding: 70px 0 40px;
    }

    .hero-grid {
        display: flex;
        flex-direction: column;
        gap: 12px;
        max-width: 700px;
        margin: 0 auto;
    }

    .hero-copy {
        display: contents;
    }

    .section-label {
        order: 1;
        text-align: center;
        width: 100%;
        margin-bottom: 4px;
    }

    .hero-title {
        order: 2;
        text-align: center;
        width: 100%;
        margin-bottom: 10px;
    }

    .hero-vsl {
        order: 3;
        width: 100%;
    }

    .hero-sub {
        order: 4;
        text-align: center;
        width: 100%;
        max-width: 100%;
        margin: 8px auto;
    }

    .hero-cta {
        order: 5;
        width: 100%;
        margin: 0 auto;
        text-align: center;
    }

    .hero-cta .cta-prompt {
        text-align: center;
    }

    .hero-cta .cta-inputs {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta .cta-btn {
        width: 100%;
    }

    .hero-cta .cta-trust {
        text-align: center;
    }

    /* Center all section copy on mobile */
    .section-title,
    .section-sub,
    .section-label {
        text-align: center;
    }

    .section-sub {
        margin-left: auto;
        margin-right: auto;
    }

    /* Center cost section */
    .cost-grid {
        justify-items: center;
    }

    .cost-card {
        text-align: center;
        width: 100%;
    }

    /* Center compare section */
    .compare-question {
        text-align: center;
    }

    /* Center builds */
    .build-info {
        text-align: center;
    }

    /* Center pricing */
    .pricing-card {
        text-align: center;
    }

    .pricing-features {
        text-align: left;
    }

    /* Center bottom CTA */
    .bottom-cta-form {
        text-align: center;
    }

    .bottom-cta-form .cta-inputs {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .bottom-cta-form .cta-btn {
        width: 100%;
    }

    .bottom-cta-form .cta-trust {
        text-align: center;
    }

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

    .builds-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 700px) {
    .compare-grid {
        grid-template-columns: 1fr;
    }

    .cost-grid {
        grid-template-columns: 1fr;
        max-width: 280px;
    }
}

@media (max-width: 600px) {
    .hero {
        padding: 64px 0 30px;
    }

    .hero-grid {
        max-width: 100%;
        gap: 10px;
    }

    .hero-title {
        font-size: clamp(22px, 5.5vw, 30px);
    }

    .cta-inputs {
        grid-template-columns: 1fr;
    }

    .cta-btn {
        padding: 14px;
        width: 100%;
    }

}
