:root {
    --brand-green: #086b35; 
    --brand-dark: #04361a;
    --brand-accent: #00d084;
    --bg-light: #f4f6f5;
    --text-main: #111827;
    --text-muted: #6b7280;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Plus Jakarta Sans', sans-serif; }
body, html { height: 100%; background: #fff; color: var(--text-main); }

/* --- Split Layout Architecture --- */
.split-layout { display: flex; height: 100vh; }

/* --- Left Pane (Sticky Product Showcase) --- */
.left-pane {
    flex: 0 0 45%; position: sticky; top: 0; height: 100vh; background: var(--brand-green);
    overflow: hidden; display: flex; align-items: center; justify-content: center; color: white;
}

.ambient-glow {
    position: absolute; width: 600px; height: 600px; z-index: 1;
    background: radial-gradient(circle, rgba(0,208,132,0.4) 0%, rgba(8,107,53,0) 70%);
    border-radius: 50%; top: 50%; left: 50%; transform: translate(-50%, -50%);
}

.pane-nav { position: absolute; top: 40px; left: 40px; z-index: 10; }
.brand-logo { height: 45px; filter: brightness(0) invert(1); }

/* Adjusted Typography for 45% Width */
.bg-typography {
    position: absolute; font-size: clamp(40px, 5.5vw, 120px); font-weight: 800; 
    color: rgba(255,255,255,0.04); line-height: 0.85; z-index: 2; 
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    text-align: center; pointer-events: none; width: 100%; letter-spacing: -2px;
}

/* Slideshow Container */
.hero-product-wrapper { position: relative; z-index: 5; width: 80%; max-width: 500px; height: 500px; display: flex; align-items: center; justify-content: center; }
.slide-img { position: absolute; width: 100%; height: auto; max-height: 100%; object-fit: contain; opacity: 0; transition: opacity 0.8s ease-in-out; filter: drop-shadow(0 30px 40px rgba(0,0,0,0.3)); }
.slide-img.active { opacity: 1; animation: float 6s ease-in-out infinite; }

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* Lifted Slide Indicators */
.slide-indicators { position: absolute; bottom: 10px; display: flex; gap: 8px; z-index: 20; }
.slide-indicators .dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.3); transition: all 0.3s ease; }
.slide-indicators .dot.active { background: rgba(255,255,255,0.9); transform: scale(1.3); }

/* Centered Social Proof */
.social-proof-float {
    position: absolute; bottom: 25px; left: 50%; transform: translateX(-50%); z-index: 10;
    display: flex; align-items: center; gap: 15px; background: rgba(255,255,255,0.1); 
    backdrop-filter: blur(10px); padding: 10px 20px; border-radius: 50px; 
    font-size: 14px; font-weight: 500; width: max-content;
}
.avatars { display: flex; }
.avatars img { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--brand-green); margin-left: -10px; }
.avatars img:first-child { margin-left: 0; }

/* --- Right Pane (Scrolling Content) --- */
.right-pane { flex: 0 0 55%; height: 100vh; overflow-y: auto; background: #fff; padding: 80px; scroll-behavior: smooth; }
.content-wrapper { max-width: 650px; margin: 0 auto; padding-bottom: 100px; }

.badge-premium { display: inline-block; padding: 6px 14px; background: var(--bg-light); color: var(--brand-green); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; border-radius: 4px; margin-bottom: 24px; }
.headline { font-size: 48px; font-weight: 800; line-height: 1.1; margin-bottom: 24px; letter-spacing: -1.5px; }
.highlight { color: var(--brand-green); }
.description { font-size: 18px; color: var(--text-muted); line-height: 1.6; margin-bottom: 40px; }

.price-display { display: flex; align-items: baseline; gap: 15px; margin-bottom: 30px; }
.price-main { font-size: 42px; font-weight: 800; color: var(--text-main); }
.price-strike { font-size: 20px; color: #9ca3af; text-decoration: line-through; font-weight: 500; }
.price-save { background: #fee2e2; color: #dc2626; padding: 4px 10px; border-radius: 20px; font-size: 14px; font-weight: 700; }

.mega-buy-btn {
    width: 100%; background: var(--brand-green); color: white; border: none; padding: 20px; border-radius: 12px; 
    font-size: 20px; font-weight: 700; display: flex; justify-content: center; align-items: center; gap: 10px;
    cursor: pointer; transition: all 0.2s ease; box-shadow: 0 10px 25px rgba(8, 107, 53, 0.25);
}
.mega-buy-btn:hover { background: var(--brand-dark); transform: translateY(-2px); box-shadow: 0 15px 30px rgba(8, 107, 53, 0.3); }
.trust-text { text-align: center; font-size: 13px; color: var(--text-muted); margin-top: 15px; margin-bottom: 30px; }

/* Amazon Banner & Trust Badges */
.marketplace-banner {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    background: #f9fafb; border: 1px solid #e5e7eb; padding: 15px;
    border-radius: 12px; margin-bottom: 30px; flex-wrap: wrap; text-align: center;
}
.marketplace-banner p { font-size: 14px; color: var(--text-main); font-weight: 500; }
.amazon-link { display: flex; align-items: center; transition: transform 0.2s; }
.amazon-link:hover { transform: scale(1.05); }
.amazon-link img { height: 24px; margin-top: 4px; }
.trust-badges-grid { display: flex; justify-content: space-between; gap: 15px; margin-bottom: 40px; }
.trust-item { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
/* Update: Explicitly constrains SVG rendering size */
.trust-item svg { 
    width: 36px; 
    height: 36px; 
    min-width: 36px; /* Prevents flexbox from collapsing it */
    min-height: 36px;
    margin-bottom: 12px; 
    display: block; /* Forces block rendering */
}
.trust-item span { font-size: 13px; color: var(--text-muted); line-height: 1.4; }
.divider { border: none; border-top: 1px solid #e5e7eb; margin-bottom: 40px; }

/* Bento Box Grid */
.bento-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 60px; }
.bento-card { background: var(--bg-light); padding: 30px; border-radius: 20px; border: 1px solid #e5e7eb; transition: transform 0.2s ease; }
.bento-card:hover { transform: translateY(-5px); }
.bento-card.wide { grid-column: span 2; }
.bento-card .icon { font-size: 32px; margin-bottom: 15px; }
.bento-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.bento-card p { font-size: 14px; color: var(--text-muted); line-height: 1.5; }

/* Timeline Guide */
.section-title { font-size: 28px; font-weight: 800; margin-bottom: 30px; }
.timeline-guide { border-left: 2px dashed #e5e7eb; margin-left: 20px; padding-left: 30px; }
.step { position: relative; margin-bottom: 40px; }
.step:last-child { margin-bottom: 0; }
.step-num { position: absolute; left: -46px; top: 0; width: 32px; height: 32px; background: var(--brand-green); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; box-shadow: 0 0 0 6px #fff; }
.step-text h4 { font-size: 18px; font-weight: 700; margin-bottom: 5px; }
.step-text p { font-size: 15px; color: var(--text-muted); line-height: 1.5; }

/* Before & After Results */
.results-section { margin-top: 60px; margin-bottom: 20px; }
.results-subtitle { font-size: 16px; color: var(--text-muted); margin-top: -20px; margin-bottom: 25px; line-height: 1.5; }
.before-after-card { background: var(--bg-light); border-radius: 20px; overflow: hidden; border: 1px solid #e5e7eb; box-shadow: 0 10px 25px rgba(0,0,0,0.05); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.before-after-card:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(8, 107, 53, 0.1); }
.results-img { width: 100%; height: auto; display: block; object-fit: cover; }

.mobile-sticky-footer { display: none; }

/* --- Checkout Drawer --- */
.checkout-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 9998; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.checkout-overlay.active { opacity: 1; pointer-events: auto; }
.checkout-drawer { position: fixed; top: 0; right: -100%; width: 100%; max-width: 420px; height: 100dvh; background: #fff; z-index: 9999; display: flex; flex-direction: column; transition: right 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); box-shadow: -5px 0 25px rgba(0,0,0,0.1); }
.checkout-drawer.active { right: 0; }
.drawer-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid #eee; }
.close-btn { background: none; border: none; font-size: 28px; cursor: pointer; color: #999; }
.drawer-body { flex: 1; overflow-y: auto; padding: 20px; }
.bundle-card { display: flex; justify-content: space-between; align-items: center; border: 2px solid #e0e0e0; border-radius: 8px; padding: 15px; margin-bottom: 12px; cursor: pointer; }
.bundle-card.active { border-color: var(--brand-green); background: #f0fdf4; }
.badge, .badge-discount { font-size: 11px; color: white; padding: 2px 6px; border-radius: 4px; display: inline-block; margin-bottom: 5px; }
.badge { background: var(--brand-green); }
.badge-discount { background: #ff9800; }
.bundle-title { font-weight: bold; font-size: 16px; display: block; }
.bundle-price { font-weight: bold; font-size: 18px; }
.checkout-form input, .checkout-form textarea { width: 100%; padding: 14px; border: 1px solid #ccc; border-radius: 6px; margin-bottom: 15px; font-family: inherit; font-size: 15px; }
.checkout-form input:focus, .checkout-form textarea:focus { border-color: var(--brand-green); outline: none; background: #fff; }
.input-row { display: flex; gap: 10px; }
.drawer-footer { padding: 15px; padding-bottom: calc(15px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid #eee; }
.pay-btn { width: 100%; background: #5f259f; color: #fff; padding: 18px; border-radius: 8px; font-weight: 700; border: none; font-size: 18px; display: flex; justify-content: space-between; cursor: pointer; }

/* --- Mobile Responsiveness --- */
@media (max-width: 992px) {
    .split-layout { flex-direction: column; height: auto; }
    
    .left-pane { flex: none; height: 75vh; position: relative; }
    .bg-typography { font-size: clamp(60px, 15vw, 160px); top: 40%; }
    .hero-product-wrapper { width: 90%; }
    .pane-nav { left: 20px; top: 20px; }

    .right-pane { flex: none; height: auto; padding: 40px 20px; overflow-y: visible; }
    .headline { font-size: 36px; }
    
    .trust-badges-grid { flex-wrap: wrap; }
    .trust-item { flex: 1 1 30%; min-width: 100px; }
    .marketplace-banner { flex-direction: column; gap: 8px; }
    
    .bento-grid { grid-template-columns: 1fr; }
    .bento-card.wide { grid-column: span 1; }
    
    .content-wrapper > .mega-buy-btn { display: none; }
    .mobile-sticky-footer { display: block; position: fixed; bottom: 0; left: 0; width: 100%; background: rgba(255,255,255,0.9); backdrop-filter: blur(10px); padding: 15px 20px; border-top: 1px solid #eee; z-index: 900; }
    .mobile-sticky-footer .mega-buy-btn { display: block; padding: 16px; font-size: 18px; }
    
    body { padding-bottom: 90px; } 
}
.input-row { 
    display: flex; 
    gap: 8px; 
}
.input-row input {
    flex: 1;
    min-width: 0; /* Prevents input fields from blowing out the flex container */
    padding: 12px 10px; /* Slightly reduced padding to fit the text */
    font-size: 13px; /* Slightly smaller text for the 3-column split */
}
.accepted-payments {
    text-align: center;
    margin-top: 12px;
}
.accepted-payments img {
    height: 40px; /* Keeps the logos subtle but readable */
    width: auto;
    object-fit: contain;
    opacity: 0.8; /* Slight fade so it doesn't compete with the button */
}
/* --- Order Summary & Coupon Block --- */
.checkout-summary-container {
    margin-top: 25px;
    background: #fff;
}

.order-summary-box {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px;
    background: #fafafa;
}

.summary-title {
    font-size: 16px;
    color: var(--brand-green);
    margin-bottom: 15px;
    font-weight: 700;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.summary-row.total-row {
    font-size: 16px;
    color: var(--brand-green);
    font-weight: 700;
    margin-bottom: 0;
    margin-top: 10px;
}

.highlight-free {
    color: var(--brand-green);
    font-weight: 600;
}

.summary-divider {
    border: none;
    border-top: 1px dashed #d1d5db;
    margin: 15px 0;
}

/* Coupon Input Group */
.coupon-box label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.coupon-input-group {
    display: flex;
}

.coupon-input-group input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ccc;
    border-right: none;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
    margin-bottom: 0 !important;
}

.coupon-input-group input:focus {
    border-color: var(--brand-green);
    outline: none;
}

.coupon-input-group button {
    background: #fff;
    color: var(--brand-green);
    border: 1px solid var(--brand-green);
    border-radius: 0 4px 4px 0;
    padding: 0 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.coupon-input-group button:hover {
    background: var(--brand-light-green);
}

#couponMessage {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    font-weight: 500;
}
.coupon-success { color: var(--brand-green); }
.coupon-error { color: #dc2626; }