:root {
    --green-dark: #0b301a;   /* Ultra dark premium green */
    --green-main: #188325;   /* Rich trustworthy action green */
    --green-light: #1ea030;  /* Gradient pop green */
    --yellow: #d1a14e;       /* Premium muted gold */
    --yellow-glow: rgba(209, 161, 78, 0.4);
    --cream: #f9f9f7;
    --text-dark: #2c3e35;
    --text-light: #6b7a70;
    --en: 'Outfit', sans-serif;
    --ml: 'Noto Sans Malayalam', sans-serif;
}

html, body {
    margin: 0; padding: 0;
    width: 100%; height: 100%;
    overflow: hidden; /* Absolute lockdown to prevent device scroll */
    overscroll-behavior: none; /* Prevent pull-to-refresh and bounce */
}

body {
    background-color: var(--green-dark); 
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--en);
    -webkit-font-smoothing: antialiased;
}

/* Bulletproof App Container - STRICT NO SCROLL */
.app-container {
    width: 100%;
    height: 100dvh;
    max-width: 480px; 
    background-color: var(--cream);
    background-image: url('hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Strict no scroll as requested */
    box-shadow: 0 0 40px rgba(0,0,0,0.1);
}

.app-container::-webkit-scrollbar { display: none; }
.app-container { -ms-overflow-style: none; scrollbar-width: none; }

/* Header */
.top-marquee {
    width: 100%;
    background: var(--yellow);
    color: var(--green-dark);
    padding: 6px 0;
    overflow: hidden;
    white-space: nowrap;
    z-index: 101;
    display: flex;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    flex-shrink: 0;
}
.marquee-content {
    display: flex;
    align-items: center;
    gap: 16px;
    animation: marqueeScroll 15s linear infinite;
}
.marquee-content span { display: flex; align-items: center; gap: 4px; }
.marquee-content i { width: 14px; height: 14px; color: var(--green-dark); }
@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    z-index: 100;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}
.logo { display: flex; align-items: center; justify-content: flex-start; }
.brand-logo { max-height: 40px; width: auto; object-fit: contain; }

.header-wa-btn {
    display: flex; align-items: center; gap: 8px;
    background: var(--green-main);
    padding: 8px 16px; border-radius: 12px;
    text-decoration: none; color: #ffffff;
    box-shadow: 0 4px 15px rgba(28, 107, 50, 0.3); 
    border: 1px solid rgba(255,255,255,0.15);
    animation: pulseMain 2s infinite;
}
.wa-icon-svg { width: 22px; height: 22px; color: #ffffff; }
.wa-text-group { display: flex; flex-direction: column; font-family: var(--ml); line-height: 1.1; }
.wa-small { font-size: 10px; font-weight: 600; color: rgba(255,255,255,0.85); }
.wa-large { font-size: 13px; font-weight: 800; color: #ffffff; }

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 10px 16px;
    justify-content: flex-start;
    gap: 0;
    min-height: 0;
    overflow: hidden;
}

/* Split layout */
.split-layout {
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 6px;
    min-height: 0;
    flex-shrink: 0;
}

.left-col {
    width: 60%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    min-height: 0;
}

.headline { font-family: var(--ml); font-size: clamp(22px, 5.5vw, 26px); font-weight: 800; color: var(--green-dark); line-height: 1.2; }

.divider { display: flex; align-items: center; gap: 8px; margin: 2px 0; }
.divider::before, .divider::after { 
    content: ''; height: 2px; width: 45px; border-radius: 2px;
    background: linear-gradient(90deg, rgba(209, 161, 78, 0) 0%, rgba(209, 161, 78, 0.8) 100%); 
}
.divider::after {
    background: linear-gradient(90deg, rgba(209, 161, 78, 0.8) 0%, rgba(209, 161, 78, 0) 100%); 
}
.leaf { color: var(--yellow); width: 16px; height: 16px; filter: drop-shadow(0 2px 4px rgba(209, 161, 78, 0.4)); }

.subheadline { font-family: var(--ml); font-size: clamp(11px, 3vw, 13px); color: var(--green-dark); font-weight: 600; line-height: 1.3; }


.main-cta {
    display: flex; align-items: center; justify-content: space-between;
    background: linear-gradient(90deg, var(--green-light) 0%, var(--green-main) 100%);
    padding: 10px 16px; border-radius: 12px; text-decoration: none;
    box-shadow: 0 8px 24px rgba(24, 131, 37, 0.35); 
    border: 1px solid rgba(255,255,255,0.25);
    width: 110%;
    z-index: 10;
    margin-top: -4px;
    animation: pulseMain 2s infinite;
}
.cta-content { display: flex; align-items: center; gap: 8px; }
.wa-icon-svg-white { width: 24px; height: 24px; color: #ffffff; }
.cta-content span { color: #fff; font-family: var(--ml); font-weight: 800; font-size: clamp(13px, 3.5vw, 15px); text-shadow: 0 1px 2px rgba(0,0,0,0.2); }
.cta-arrow { background: rgba(255,255,255,0.15); border-radius: 10px; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; border: 1px solid rgba(255,255,255,0.2); }
.cta-arrow i, .cta-arrow svg { color: #ffffff !important; width: 18px; height: 18px; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2)); stroke: #ffffff !important; }


.right-col {
    width: 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
}
.product-placeholder {
    width: 100%;
    height: 100%;
    min-height: 100px; 
}

/* Feature Box (Premium) */
.feature-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
    backdrop-filter: blur(16px);
    border-radius: 12px;
    padding: 5px 12px;
    box-shadow: 0 4px 20px rgba(11, 48, 26, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.5);
    width: 100%;
    margin-bottom: 6px;
    flex-shrink: 0;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}
.feature-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    animation: shineFeature 4s infinite;
}
@keyframes shineFeature {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}
.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-align: center;
    flex: 1;
    z-index: 2;
}
.icon-wrapper {
    background: rgba(24, 131, 37, 0.08);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(24, 131, 37, 0.15);
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.5), 0 4px 10px rgba(24, 131, 37, 0.05);
}
.feature-item i, .feature-item svg {
    width: 14px;
    height: 14px;
    color: var(--green-main);
    filter: drop-shadow(0 2px 2px rgba(24, 131, 37, 0.2));
}
.feature-item span {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-light);
    line-height: 1.1;
}
.feature-item span strong {
    font-size: 11px;
    font-weight: 800;
    color: var(--green-dark);
}
.feature-divider {
    width: 1px;
    height: 28px;
    background: linear-gradient(180deg, transparent, rgba(11, 48, 26, 0.15), transparent);
    z-index: 2;
}

/* Testimonial Carousel */
.testimonial-carousel {
    width: calc(100% + 32px); margin-left: -16px; margin-right: -16px; margin-bottom: 4px; flex-shrink: 0; display: flex; flex-direction: column; overflow: hidden;
}
.testimonial-track {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
    -ms-overflow-style: none; scrollbar-width: none;
    padding-bottom: 6px; padding-left: 20px; padding-right: 20px;
}
.testimonial-track::-webkit-scrollbar { display: none; }

.testimonial-card {
    flex: 0 0 90%; scroll-snap-align: center; box-sizing: border-box;
    background: rgba(255,255,255,0.95); backdrop-filter: blur(12px);
    border-radius: 12px; padding: 5px 10px;
    box-shadow: 0 10px 30px rgba(11, 48, 26, 0.08); border: 1px solid rgba(255,255,255,0.9);
}

.ba-section { display: flex; gap: 4px; margin-bottom: 4px; }
.ba-img {
    flex: 1; height: 75px; background: #e2e8f0; border-radius: 4px; display: flex; align-items: flex-end; justify-content: center;
    padding-bottom: 4px; position: relative; overflow: hidden; border: 1px solid rgba(11, 59, 36, 0.05);
}
.ba-img span { position: relative; color: #ffffff; background: rgba(0,0,0,0.6); padding: 2px 6px; border-radius: 4px; font-size: 7px; font-weight: 800; z-index: 2; text-transform: uppercase; letter-spacing: 0.5px; }

.carousel-dots { display: flex; justify-content: center; gap: 6px; margin-top: 2px; margin-bottom: 4px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(11, 59, 36, 0.3); transition: 0.3s; cursor: pointer; }
.dot.active { background: var(--green-main); width: 16px; border-radius: 4px; }

.t-header { 
    display: flex; align-items: center; justify-content: center; gap: 4px; 
    font-size: 9px; font-weight: 800; color: var(--green-main); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.5px;
}
.leaf-left, .leaf-right { width: 8px; height: 8px; }
.leaf-right { transform: scaleX(-1); }

.t-body { display: flex; flex-direction: column; gap: 4px; margin-top: 2px; }

/* ── WhatsApp Voice Note Bubble ── */
.wa-audio-bubble {
    background: #d9fdd3;
    border-radius: 16px 16px 4px 16px;
    padding: 8px 10px 6px 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 94%;
    margin: 0 0 0 auto;
    flex-shrink: 0;
    position: relative;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.7);
}
/* tail */
.wa-audio-bubble::after {
    content: '';
    position: absolute;
    bottom: 4px;
    right: -7px;
    width: 0; height: 0;
    border-style: solid;
    border-width: 8px 0 0 9px;
    border-color: transparent transparent transparent #d9fdd3;
}

/* Avatar */
.wa-avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0b3b24, #25D366);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(11,59,36,0.35);
    position: relative;
}
.wa-avatar svg { width: 20px; height: 20px; color: #fff; }
.wa-mic-badge {
    position: absolute; bottom: -2px; right: -2px;
    width: 14px; height: 14px;
    background: #25D366; border-radius: 50%;
    border: 1.5px solid #d9fdd3;
    display: flex; align-items: center; justify-content: center;
}
.wa-mic-badge svg { width: 7px; height: 7px; color: #fff; }

/* Play Button */
.wa-play-btn {
    width: 34px; height: 34px;
    background: #25D366;
    border: none; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; flex-shrink: 0; padding: 0;
    box-shadow: 0 2px 6px rgba(37,211,102,0.35);
    transition: transform 0.15s, background 0.2s;
}
.wa-play-btn:active { transform: scale(0.88); }
.play-triangle {
    width: 0; height: 0; border-style: solid;
    border-width: 7px 0 7px 11px;
    border-color: transparent transparent transparent #fff;
    margin-left: 2px;
}
.pause-icon {
    width: 9px; height: 13px;
    border-left: 3px solid #fff;
    border-right: 3px solid #fff;
    box-sizing: border-box;
}
.playing .wa-play-btn { background: #128C7E; }
.playing .play-triangle { border-color: transparent transparent transparent #fff; }
.playing .pause-icon { border-color: #fff; }

/* Waveform + Time column */
.wa-waveform-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 2px;
    min-width: 0;
    align-self: center;
}
.waveform-canvas {
    width: 100%;
    display: block;
}
.waveform-bars {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 22px;
    width: 100%;
    margin: auto 0;
}
.bar {
    width: 2.5px;
    flex-shrink: 0;
    background: #a8c5bf;
    border-radius: 2px;
    min-height: 2px;
    transition: background 0.2s;
    transform-origin: center;
}

/* Playing animation */
.playing .bar {
    background: #25D366;
    animation: waveformPulse 0.6s infinite alternate ease-in-out;
}
.playing .bar:nth-child(2n)  { animation-delay: 0.05s; }
.playing .bar:nth-child(3n)  { animation-delay: 0.12s; }
.playing .bar:nth-child(4n)  { animation-delay: 0.20s; }
.playing .bar:nth-child(5n)  { animation-delay: 0.28s; }
.playing .bar:nth-child(7n)  { animation-delay: 0.36s; }
.playing .bar:nth-child(9n)  { animation-delay: 0.44s; }
@keyframes waveformPulse {
    from { transform: scaleY(0.3); }
    to   { transform: scaleY(1.4); }
}

/* Bar heights (px so animation works correctly) */
.bar.h-2 { height: 3px; }
.bar.h-3 { height: 5px; }
.bar.h-4 { height: 9px; }
.bar.h-5 { height: 14px; }
.bar.h-6 { height: 20px; }
.bar.h-7 { height: 17px; }

/* Time row — bottom left: ticks then time */
.wa-time-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 3px;
    width: 100%;
}
.time { font-size: 10px; font-weight: 600; color: #667781; letter-spacing: 0.1px; }
.wa-time-ticks { width: 13px; height: 13px; color: #53bdeb; stroke-width: 2.5; flex-shrink: 0; }
.wa-time-mic { display: none; }

.t-text { width: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.quote { font-family: var(--ml); font-size: clamp(10px, 2.5vw, 12px); font-weight: 700; text-align: center; line-height: 1.2; margin-bottom: 2px; color: var(--text-dark); }
.author { font-size: 9px; font-weight: 800; color: var(--green-main); text-align: center; opacity: 0.9; }

/* Sticky Footer (URGENCY) */
.sticky-footer {
    background: linear-gradient(180deg, var(--green-dark) 0%, #061c0e 100%);
    padding: 10px 16px;
    display: flex; align-items: center; justify-content: space-between;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.15);
    flex-shrink: 0; 
    z-index: 100;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.stock-info { display: flex; align-items: center; gap: 8px; color: var(--yellow); animation: blink 2s infinite; }
.gift { width: 24px; height: 24px; flex-shrink: 0; }
.stock-text { display: flex; flex-direction: column; line-height: 1.1; }
.limited { font-size: 9px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.today { font-size: 13px; font-weight: 800; }

.buy-btn { 
    display: flex; align-items: center; justify-content: space-between; gap: 8px; text-decoration: none; color: #022c22; 
    background: linear-gradient(135deg, #FDE047 0%, #F59E0B 50%, #D97706 100%);
    padding: 10px 12px 10px 16px; border-radius: 14px;
    box-shadow: 0 8px 24px rgba(217, 119, 6, 0.5);
    animation: pulseBuyBtn 2s infinite;
    position: relative; overflow: hidden;
}
.buy-btn::after {
    content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    animation: shineBtn 3s infinite;
}
@keyframes shineBtn {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}
@keyframes pulseBuyBtn {
    0% { transform: scale(1); box-shadow: 0 8px 24px rgba(217, 119, 6, 0.5); }
    50% { transform: scale(1.05); box-shadow: 0 12px 32px rgba(217, 119, 6, 0.8); }
    100% { transform: scale(1); box-shadow: 0 8px 24px rgba(217, 119, 6, 0.5); }
}

.buy-text { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; font-family: var(--ml); line-height: 1.2; gap: 1px; z-index: 2; position: relative; white-space: nowrap; flex: 1; }
.main-text { font-size: clamp(12px, 3.5vw, 15px); font-weight: 900; letter-spacing: 0.2px; }
.sub-text { font-size: 9px; font-weight: 800; opacity: 0.9; letter-spacing: 0.2px; }
.buy-arrow { 
    background: rgba(0, 0, 0, 0.1); width: 32px; height: 32px; border-radius: 10px; border: 1px solid rgba(0, 0, 0, 0.15);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0; z-index: 2; position: relative; align-self: center;
}
.buy-arrow i, .buy-arrow svg { color: #022c22 !important; width: 18px; height: 18px; stroke: #022c22 !important; stroke-width: 2.5; }

/* Micro-animations */
@keyframes pulseMain { 
    0% { box-shadow: 0 4px 15px rgba(28, 107, 50, 0.25); transform: scale(1); } 
    50% { box-shadow: 0 6px 25px rgba(28, 107, 50, 0.4); transform: scale(1.02); } 
    100% { box-shadow: 0 4px 15px rgba(28, 107, 50, 0.25); transform: scale(1); } 
}
@keyframes pulseHeader { 
    0% { box-shadow: 0 4px 10px rgba(11, 59, 36, 0.08); transform: translateY(0); } 
    50% { box-shadow: 0 6px 15px rgba(11, 59, 36, 0.12); transform: translateY(-2px); } 
    100% { box-shadow: 0 4px 10px rgba(11, 59, 36, 0.08); transform: translateY(0); } 
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Exit Popup */
.exit-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.75); backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center;
    z-index: 1000; opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.exit-overlay.active { opacity: 1; pointer-events: auto; }

.exit-modal {
    background: #fff; width: 90%; max-width: 380px;
    border-radius: 20px; padding: 24px; text-align: center;
    position: relative; transform: scale(0.9); transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    overflow: hidden;
}
.exit-overlay.active .exit-modal { transform: scale(1); }

.close-popup {
    position: absolute; top: 12px; right: 12px;
    background: #f1f5f9; border: none; width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; color: #64748b;
    cursor: pointer; transition: background 0.2s; z-index: 10;
}
.close-popup i, .close-popup svg { width: 18px; height: 18px; stroke: currentColor; }
.close-popup:hover { background: #e2e8f0; }

.exit-title { font-family: var(--ml); font-size: 22px; font-weight: 800; color: var(--green-dark); margin-bottom: 8px; line-height: 1.2; }
.exit-desc { font-family: var(--ml); font-size: 14px; font-weight: 600; color: var(--text-light); margin-bottom: 24px; line-height: 1.4; padding: 0 10px; }

/* Standalone Exit CTA (Decoupled from Main Button) */
.exit-cta { 
    display: flex; align-items: center; justify-content: space-between;
    background: linear-gradient(90deg, var(--green-light) 0%, var(--green-main) 100%);
    padding: 12px 16px; border-radius: 12px; text-decoration: none;
    box-shadow: 0 4px 15px rgba(24, 131, 37, 0.25); 
    width: 100%; box-sizing: border-box; margin-top: 16px;
    animation: pulseMain 2s infinite;
}
.exit-cta .cta-content { display: flex; align-items: center; gap: 8px; min-width: 0; }
.exit-cta .cta-content span { font-size: 13px; font-weight: 800; color: #fff; font-family: var(--ml); white-space: normal; line-height: 1.2; text-align: left; text-shadow: 0 1px 2px rgba(0,0,0,0.2); }

/* High-Performance Entrance Animations */
@keyframes slideFadeUp {
    0% { opacity: 0; transform: translateY(15px); }
    100% { opacity: 1; transform: translateY(0); }
}

.headline { animation: slideFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both; }
.divider { animation: slideFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both; }
.subheadline { animation: slideFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both; }

/* Short Screen Optimizations (Prevents Overlap & Scrolling) */
@media (max-height: 700px) {
    .header { padding: 6px 16px; }
    .brand-logo { max-height: 32px; }
    .headline { font-size: clamp(18px, 5vw, 22px); line-height: 1.1; }
    .left-col { gap: 4px; }
    .divider { margin: 0; }
    .subheadline { font-size: 11px; margin-bottom: 2px; }
    .main-cta { padding: 8px 12px; margin-top: 2px; }
    .feature-box { padding: 4px 8px; margin-bottom: 4px; }
    .product-placeholder { min-height: 80px; }
    .testimonial-carousel { margin-bottom: 2px; }
    .testimonial-card { padding: 8px; border-radius: 12px; }
    .ba-img { height: 50px; }
    .t-header { margin-bottom: 4px; font-size: 9px; }
    .wa-audio-bubble { padding: 4px 8px 4px 4px; border-radius: 16px; }
    .wa-avatar { width: 36px; height: 36px; }
    .wa-play-btn { width: 32px; height: 32px; }
    .t-body { gap: 4px; }
    .sticky-footer { padding: 8px 16px; }
}

@media (max-height: 720px) {
    .subheadline { display: none !important; }
    .headline { margin-top: 10px; font-size: clamp(18px, 5vw, 22px); }
    .main-cta { width: 100%; }
    .feature-box { width: 100%; }
}
.testimonial-carousel { animation: slideFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both; }
.feature-box { animation: slideFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both; }