/* ============================================
   islandPOS v14 — Volt / Linear Aesthetic
   Ultra-trendy pure black & electric lime
   ============================================ */

:root {
    --black: #000000;
    --surface: #0a0a0a;
    --surface-card: #111111;
    --white: #ffffff;
    --white-soft: #ededed;
    --dim: #888888;
    --muted: #555555;
    --border: rgba(255, 255, 255, 0.1);

    /* Trendy Tech Accent: Electric Volt/Lime */
    --accent: #ccff00;
    --accent-hover: #b3e600;
    --accent-dim: rgba(204, 255, 0, 0.08);

    --green: #ccff00;
    /* Reusing volt for success states */
    --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    /* Snappy Apple/Linear ease */
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    width: 100%;
    overflow: hidden;
    font-family: var(--font);
    background: var(--black);
    color: var(--white-soft);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========= PROGRESS ========= */
.progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--surface-card);
    z-index: 200;
}

.progress-fill {
    height: 100%;
    width: 12.5%;
    background: var(--accent);
    transition: width 0.6s var(--ease);
    box-shadow: 0 0 16px var(--accent), 0 0 4px var(--accent);
    border-radius: 0 4px 4px 0;
}

/* ========= NAV ========= */
.slide-nav {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 200;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 6px 12px;
}

.nav-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: var(--dim);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.nav-btn:hover:not(:disabled) {
    color: var(--white);
    background: rgba(255, 255, 255, 0.05);
}

.nav-btn:disabled {
    opacity: 0.2;
    cursor: default;
}

.counter {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--dim);
    min-width: 44px;
    text-align: center;
}

.uiflow-tag {
    position: fixed;
    bottom: 36px;
    left: 32px;
    z-index: 200;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--dim);
    text-decoration: none;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
}

.uiflow-tag:hover {
    color: var(--white);
}

.uiflow-tag .h {
    color: var(--accent);
    font-size: 0.8125rem;
}

/* ========= SLIDES ========= */
.viewport {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.track {
    display: flex;
    flex-direction: column;
    transition: transform 0.8s var(--ease);
}

.slide {
    width: 100vw;
    height: 100vh;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    padding: 80px 32px 120px 32px;
    /* Pad bottom for scroll clearance */
    position: relative;
    z-index: 10;
    overflow-y: auto;
    overflow-x: hidden;
}

.s-inner {
    max-width: 720px;
    width: 100%;
    margin: auto;
    /* Vertically center content but allow scroll */
    position: relative;
    z-index: 11;
}

.center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ========= TYPOGRAPHY ========= */
.fade-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--dim);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 24px;
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.02);
    display: inline-block;
}

.hero-text {
    font-size: clamp(2.5rem, 5vw, 4.25rem);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: 20px;
    color: var(--white);
}

.hero-sub {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    font-weight: 400;
    color: var(--dim);
    letter-spacing: -0.015em;
    line-height: 1.4;
    max-width: 480px;
}

.headline {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--white);
}

.q-title {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--white);
}

.product-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    margin-bottom: 16px;
    color: var(--white);
}

.accent {
    color: var(--accent);
}

/* Stunning text gradient for the main reveal */
.text-glow {
    color: var(--white);
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.4);
}

.body-line {
    font-size: 1.0625rem;
    font-weight: 400;
    color: var(--dim);
    line-height: 1.6;
    max-width: 540px;
}

.body-line.sm {
    font-size: 0.9375rem;
}

.mb-32 {
    margin-bottom: 32px;
}

.scroll-hint {
    margin-top: 56px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.01em;
}

.key-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--dim);
    background: rgba(255, 255, 255, 0.03);
}

/* ========= PRODUCT BADGE ========= */
.product-badge {
    margin-top: 32px;
    padding: 24px 40px;
    border: 1px solid var(--border);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: var(--surface-card);
    position: relative;
    overflow: hidden;
}

.badge-name {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--white);
}

.badge-desc {
    font-size: 0.9375rem;
    font-weight: 400;
    color: var(--dim);
}

/* ========= PROBLEMS ========= */
.problems {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 32px;
    width: 100%;
    max-width: 580px;
}

.problem {
    padding: 20px 24px;
    font-size: 1rem;
    font-weight: 400;
    color: var(--white-soft);
    background: var(--surface-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    text-align: left;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: transform 0.3s var(--ease), border-color 0.3s;
}

.problem:hover {
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.problem-icon {
    color: var(--white);
    opacity: 0.5;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pop {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.slide.active .pop {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition-delay: var(--d);
}

/* ========= PROOF ROW ========= */
.proof-row {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 600px;
}

.proof-chip {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--white-soft);
    display: flex;
    align-items: center;
    gap: 8px;
}

.proof-chip::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
}

/* ========= CHOICES ========= */
.choices {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 32px;
    width: 100%;
}

.choice {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 20px 24px;
    background: var(--surface-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    font-family: var(--font);
    text-align: left;
    color: var(--white);
    font-size: 1rem;
    font-weight: 500;
}

.choice:hover {
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateX(8px);
}

.letter {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--dim);
    transition: all 0.3s;
}

.choice.selected {
    border-color: var(--accent);
    background: var(--accent-dim);
}

.choice.selected .letter {
    background: var(--accent);
    color: var(--black);
    border-color: var(--accent);
}

.noted {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--accent);
    background: var(--accent-dim);
    border: 1px solid rgba(204, 255, 0, 0.2);
    border-radius: 100px;
    display: none;
    width: fit-content;
}

/* ========= EMAIL CAPTURE ========= */
.email-capture {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
}

.email-row {
    display: flex;
    gap: 12px;
}

.email-input {
    flex: 1;
    height: 56px;
    padding: 0 24px;
    background: var(--surface-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--white);
    font-family: var(--font);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s var(--ease);
}

.email-input::placeholder {
    color: var(--muted);
}

.email-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
}

.email-btn {
    height: 56px;
    padding: 0 32px;
    flex-shrink: 0;
    background: var(--accent);
    color: var(--black);
    border: none;
    border-radius: 100px;
    font-family: var(--font);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--ease);
}

.email-btn:hover {
    transform: scale(1.02);
    filter: brightness(1.1);
    box-shadow: 0 0 15px var(--accent-dim);
}

.tiny-note {
    margin-top: 16px;
    font-size: 0.8125rem;
    color: var(--muted);
}

.skip-btn {
    background: none;
    border: none;
    color: var(--muted);
    font-family: var(--font);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    margin-top: 16px;
    transition: color 0.2s;
}

.skip-btn:hover {
    color: var(--white);
}

/* ========= PRICING PILLS ========= */
.price-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 40px;
    justify-content: center;
    max-width: 600px;
}

.price-pill {
    padding: 16px 32px;
    background: var(--surface-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    font-family: var(--font);
    color: var(--white);
}

.price-pill:hover {
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-4px);
}

.price-pill.selected {
    border-color: var(--accent);
    background: var(--accent-dim);
}

.price-val {
    font-size: 1rem;
    font-weight: 500;
}

/* ========= SIMPLE FINAL SLIDE ========= */
.final-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 24px;
    text-shadow: 0 0 20px var(--accent-dim);
}

.mb-40 {
    margin-bottom: 40px;
}

.simple-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.sb-logo {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
}

.sb-logo:hover {
    color: var(--dim);
}

.sb-links {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8125rem;
    font-weight: 500;
}

.sb-links a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
}

.sb-links a:hover {
    color: var(--dim);
}

.restart-btn {
    margin-top: 32px;
    padding: 12px 24px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--dim);
    font-family: var(--font);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s var(--ease);
}

.restart-btn:hover {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.05);
}

/* ========= STATS & TRUST SLIDE ========= */
.stats-row {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    width: 100%;
}

.stat-box {
    flex: 1;
    min-width: 240px;
    background: var(--surface-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s var(--ease), border-color 0.3s;
}

.stat-box:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.3);
}

.stat-number {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--white);
    letter-spacing: -0.01em;
    margin-bottom: 8px;
}

.stat-flags {
    font-size: 1.125rem;
    letter-spacing: 4px;
    opacity: 0.8;
}

.trust-panel {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.trust-title {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 600;
    color: var(--white);
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.trust-badge-mini {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-bottom: 16px;
}

.tb-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: -0.02em;
}

.tb-tag {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--white-soft);
}

.trust-sub {
    font-size: 0.875rem;
    color: var(--dim);
    max-width: 480px;
    line-height: 1.5;
}

/* ========= SOUND TOGGLE ========= */
.sound-toggle {
    position: fixed;
    top: 32px;
    right: 32px;
    z-index: 1000;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(10, 10, 10, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s var(--ease);
}

.sound-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.sound-toggle svg {
    transition: transform 0.2s;
}

.sound-toggle.playing svg {
    color: var(--accent);
}

/* ========= TOAST NOTIFICATION ========= */
.toast {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 60, 60, 0.15);
    border: 1px solid rgba(255, 60, 60, 0.3);
    color: #ffcccc;
    padding: 16px 24px;
    border-radius: 100px;
    font-weight: 500;
    font-size: 1rem;
    z-index: 9999;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s, visibility 0.4s;
    pointer-events: none;
    box-shadow: 0 8px 32px rgba(255, 0, 0, 0.2);
    /* Strict hiding for mobile overflow */
    opacity: 0;
    visibility: hidden;
}

.toast.show {
    bottom: 80px;
    /* Elevated to clear bottom nav globally */
    opacity: 1;
    visibility: visible;
}

/* ========= RESPONSIVE ========= */
@media (max-width: 640px) {
    .slide {
        padding: 80px 24px 120px 24px;
        /* Extra bottom padding for toast/nav room */
    }

    .hero-text {
        font-size: 2.25rem;
    }

    .headline {
        font-size: 1.5rem;
    }

    .product-title {
        font-size: 2rem;
    }

    .price-choices {
        flex-direction: column;
        align-items: center;
        max-width: 100%;
    }

    .price-pill {
        width: 100%;
        text-align: center;
    }

    .slide-nav {
        bottom: 20px;
        right: 20px;
    }

    .uiflow-tag {
        bottom: 24px;
        left: 24px;
    }

    .email-capture {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }

    .email-row {
        flex-direction: column;
        width: 100%;
        gap: 16px;
    }

    .email-input {
        width: 100%;
        min-height: 56px;
        /* Ensure it never squishes vertically */
        text-align: center;
        border-radius: 100px;
        /* Keep pill shape even squeezed */
    }

    .email-btn {
        width: 100%;
    }

    .proof-row {
        gap: 8px;
    }
}