:root {
    --primary: #25D366;
    --primary-dark: #128C7E;
    --bg-dark: #0a1014;
    --bg-card: #111b21;
    --text-main: #e9edef;
    --text-muted: #8696a0;
    --accent: #00a884;
    --danger: #ef5350;
    --success: #4caf50;
    --font-main: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow: hidden;
    /* Prevent scrolling, handle in JS */
    height: 100vh;
    width: 100vw;
}

.app-container {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Progress Bar */
.progress-container {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 100;
}

.progress-bar {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width 0.3s ease;
}

/* Navigation */
.nav-controls {
    position: fixed;
    bottom: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    z-index: 100;
    pointer-events: none;
    /* Let clicks pass through to slides if needed, but buttons need events */
}

.nav-btn {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    backdrop-filter: blur(5px);
}

.nav-btn:hover:not(:disabled) {
    background: var(--primary);
    border-color: var(--primary);
    color: black;
}

.nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.slide-indicator {
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 10px;
    border-radius: 10px;
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
}

/* Slides Wrapper */
.slides-wrapper {
    flex: 1;
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, transform 0.5s ease;
    transform: scale(0.98);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px 80px;
    /* Bottom padding for nav */
    overflow-y: auto;
    /* Allow internal scrolling if content is tall */
}

.slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    z-index: 10;
}

/* Typography & Common */
h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #25D366, #128C7E);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    text-align: center;
}

h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

p {
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

strong {
    color: var(--text-main);
}

.content-center {
    text-align: center;
    max-width: 800px;
    width: 100%;
}

.content-left {
    text-align: left;
    max-width: 900px;
    width: 100%;
}

/* Slide 1 */
.logo-container {
    margin-bottom: 2rem;
}

.logo-container .icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 10px;
}

.headline {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 2rem;
}

.subheadline {
    font-size: 1.1rem;
    color: var(--primary);
}

/* Cards (Problems, Features) */
.problem-cards,
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    border-color: var(--primary);
}

.feature-card.full-width {
    grid-column: 1 / -1;
}

.card .icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.card ul {
    list-style: none;
    padding-left: 0;
}

.card ul li {
    margin-bottom: 5px;
    padding-left: 15px;
    position: relative;
    font-size: 0.9rem;
}

.card ul li::before {
    content: "└";
    position: absolute;
    left: 0;
    color: var(--text-muted);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Solution List */
.solution-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: left;
}

.solution-item {
    display: flex;
    gap: 15px;
    background: var(--bg-card);
    padding: 15px;
    border-radius: 10px;
    align-items: flex-start;
}

.solution-item .num {
    font-size: 1.5rem;
}

/* Tier Selection */
.pricing-tiers {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.tier-card {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 12px;
    width: 220px;
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
}

.tier-card.popular {
    border-color: var(--primary);
    transform: scale(1.05);
}

.tier-card.selected {
    background: rgba(37, 211, 102, 0.1);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.2);
}

.tier-card .badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: black;
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: bold;
}

.select-btn {
    width: 100%;
    margin-top: 15px;
    padding: 8px;
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 5px;
    cursor: pointer;
}

.tier-card:hover .select-btn,
.tier-card.selected .select-btn {
    background: var(--primary);
    color: black;
}

/* Calculator */
.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.range-control {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.range-control button {
    background: var(--bg-card);
    border: 1px solid var(--text-muted);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
}

input[type="range"] {
    width: 100%;
    accent-color: var(--primary);
}

.radio-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.radio-group label {
    background: var(--bg-card);
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    border: 1px solid transparent;
    font-size: 0.9rem;
}

.radio-group input:checked+label,
.radio-group label:has(input:checked) {
    border-color: var(--primary);
    background: rgba(37, 211, 102, 0.1);
}

select {
    width: 100%;
    padding: 10px;
    background: var(--bg-card);
    border: 1px solid var(--text-muted);
    color: white;
    border-radius: 5px;
}

.preview-box {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--primary);
}

.preview-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.preview-row.highlight {
    color: var(--primary);
    font-size: 1.1rem;
    margin-top: 10px;
}

/* Results */
.results-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.result-section {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 12px;
    text-align: left;
}

.result-section.new {
    border: 1px solid var(--primary);
}

.total-row {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
}

.savings-highlight {
    background: linear-gradient(45deg, var(--primary-dark), var(--primary));
    padding: 20px;
    border-radius: 12px;
    color: white;
}

.savings-highlight h3 {
    color: white;
    margin-bottom: 15px;
}

.savings-grid {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.saving-item {
    display: flex;
    flex-direction: column;
}

.saving-item span {
    font-size: 0.8rem;
    opacity: 0.9;
}

.saving-item strong {
    font-size: 1.4rem;
}

/* Comparison Table */
.comparison-table {
    width: 100%;
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
}

.table-header,
.table-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.table-header {
    background: rgba(255, 255, 255, 0.05);
    font-weight: bold;
}

.good {
    color: var(--primary);
}

/* Testimonials */
.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.testimonial-card {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 12px;
    text-align: left;
    border-left: 4px solid var(--primary);
}

.testimonial-card .tag {
    font-size: 0.8rem;
    color: var(--primary);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.testimonial-card .quote {
    font-style: italic;
    margin-bottom: 15px;
}

.testimonial-card .stat {
    font-weight: bold;
    color: var(--success);
    margin-top: 10px;
}

/* Accordion */
.accordion-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.accordion-header {
    width: 100%;
    text-align: left;
    padding: 15px 0;
    background: none;
    border: none;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
}

.accordion-header::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-content p {
    padding-bottom: 15px;
}

.accordion-item.active .accordion-content {
    max-height: 200px;
}

.accordion-item.active .accordion-header::after {
    content: '-';
}

/* Offer */
.offer-box {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid var(--primary);
}

.offer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.timer {
    font-family: monospace;
    font-size: 1.5rem;
    color: var(--danger);
    background: rgba(239, 83, 80, 0.1);
    padding: 5px 10px;
    border-radius: 5px;
}

.special-prices {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.special-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
}

.special-card.highlight {
    border: 2px solid var(--primary);
    transform: scale(1.05);
    background: rgba(37, 211, 102, 0.05);
}

.old-price {
    text-decoration: line-through;
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 5px;
}

.new-price {
    color: var(--primary);
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.monthly {
    font-size: 0.9rem;
    color: white;
}

.cta-btn {
    background: var(--primary);
    color: black;
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    width: 100%;
    max-width: 400px;
    transition: transform 0.2s;
}

.cta-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.4);
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .calculator-grid,
    .results-container,
    .special-prices {
        grid-template-columns: 1fr;
    }

    .pricing-tiers {
        flex-direction: column;
        align-items: center;
    }

    .content-left,
    .content-center {
        padding-bottom: 60px;
    }

    .nav-controls {
        bottom: 10px;
    }

    .slide {
        padding-top: 60px;
    }
}

/* Explanation Cards (Slide 8) */
.explanation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 20px 0;
    text-align: left;
}

.explanation-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    font-size: 0.85rem;
}

.explanation-card h4 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 5px;
}

.explanation-card p {
    margin-bottom: 8px;
    color: var(--text-muted);
    line-height: 1.4;
}

.explanation-card strong {
    color: white;
}

.explanation-card ul {
    list-style: none;
    padding-left: 5px;
    margin-bottom: 10px;
}

.explanation-card ul li {
    margin-bottom: 4px;
    position: relative;
    padding-left: 12px;
}

.explanation-card ul li::before {
    content: "•";
    color: var(--primary);
    position: absolute;
    left: 0;
}