/* ==========================================================================
   English Tree Premium Funnel Stylesheet
   Theme: High-End Botanical Dark-Mode (Forest SaaS)
   Layout: Hybrid Gate (High Conversion + Ad-Compliant Architecture)
   ========================================================================== */

:root {
    /* Color Palette - Fresh Light Botanical Theme */
    --bg-dark: #F8FDFB;
    --bg-surface: #FFFFFF;
    --bg-card: #FFFFFF;
    --bg-card-hover: #F2FAF6;
    
    --primary: #00A389;             /* High contrast emerald green */
    --primary-glow: rgba(0, 163, 137, 0.12);
    --secondary: #15B84F;           /* Vibrant botanical green */
    --emerald-deep: #E8F7F0;        /* Light organic green background for panels/sliders */
    
    --gold: #B38600;                /* Highly readable premium gold accent */
    --gold-glow: rgba(179, 134, 0, 0.12);
    
    --text-main: #0B291B;           /* Deep dark green for high readability */
    --text-muted: #556B60;          /* Soft slate green for descriptions */
    --text-dark: #FFFFFF;           /* Text color for dark button gradients */
    
    --border-color: rgba(0, 163, 137, 0.15);
    --border-glow: rgba(0, 163, 137, 0.32);
    
    --red: #D9383A;
    --white: #FFFFFF;
    
    /* Layout & Animation Details */
    --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-premium: 0 15px 35px 0 rgba(11, 41, 27, 0.06), 0 5px 15px 0 rgba(11, 41, 27, 0.03);
    --glass-shadow: 0 8px 32px 0 rgba(11, 41, 27, 0.05);
}

/* ==========================================================================
   Base resets & typography
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background botanical glowing spheres for depth in light mode */
body::before, body::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    z-index: -1;
    filter: blur(100px);
    opacity: 0.08;
    pointer-events: none;
}

body::before {
    top: 5%;
    left: -10%;
    width: 450px;
    height: 450px;
    background: var(--primary);
}

body::after {
    top: 45%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: var(--secondary);
}

h1, h2, h3, h4, .font-title {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Sinhala Line-Height fix */
.Sinhala {
    line-height: 1.4;
    letter-spacing: 0.01em;
}

p {
    color: var(--text-muted);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--secondary);
}

/* ==========================================================================
   Header Branding
   ========================================================================== */
.header {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.main-logo {
    width: 42px;
    height: 42px;
    filter: drop-shadow(0 0 8px var(--primary-glow));
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.brand-subtitle {
    font-size: 0.7rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.header-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 201, 167, 0.1);
    border: 1px solid var(--border-color);
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--primary);
}

.badge-dot {
    width: 6px;
    height: 6px;
    background-color: var(--secondary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--secondary);
}

/* ==========================================================================
   Layout Containers
   ========================================================================== */
.funnel-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
}

section {
    padding: 4.5rem 0;
}

.text-center {
    text-align: center;
}

.text-gold {
    color: var(--gold) !important;
}

/* ==========================================================================
   SECTION 1: Above-the-Fold Express Fork & Hero Elements
   ========================================================================== */
.section-pricing.above-fold-pricing {
    padding-top: 1rem;
}

.hero-title {
    font-size: 2.85rem;
    line-height: 1.25;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--text-main) 30%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 10px rgba(0,0,0,0.2));
}

/* Express Choice Banner */
.express-callout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    max-width: 580px;
    margin: 0 auto 1.5rem;
}

.glassmorphic-subtle {
    background: rgba(0, 201, 167, 0.05);
    border: 1px dashed var(--border-color);
    border-radius: 16px;
    padding: 1rem 2rem;
}

.express-tag-sinhala {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--secondary);
}

.express-tag-english {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Scroll to Educational anchor link */
.explore-link-wrapper {
    margin-top: 3.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.explore-tip {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.scroll-link {
    font-size: 1.15rem;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: -0.3px;
    border-bottom: 2px solid transparent;
    padding-bottom: 2px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: var(--transition-smooth);
}

.scroll-link:hover {
    color: var(--secondary);
    border-color: var(--secondary);
    transform: translateY(2px);
}

/* ==========================================================================
   Interactive Pricing Toggle Switch
   ========================================================================== */
.toggle-container {
    display: inline-flex;
    background: rgba(0, 163, 137, 0.05);
    border: 1px solid var(--border-color);
    padding: 4px;
    border-radius: 50px;
    position: relative;
    margin-top: 1rem;
    width: 100%;
    max-width: 640px;
}

.toggle-btn {
    width: 50%;
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 12px 16px;
    cursor: pointer;
    border-radius: 50px;
    z-index: 2;
    transition: var(--transition-smooth);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.toggle-btn.active {
    color: var(--primary);
}

.toggle-tag {
    background: var(--gold);
    color: #FFFFFF;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
}

.toggle-slider {
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 4px;
    width: calc(50% - 4px);
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    z-index: 1;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: var(--shadow-premium);
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 480px));
    gap: 2.5rem;
    justify-content: center;
    margin-top: 2.5rem;
}

.price-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 28px;
    padding: 3rem 2.25rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition-smooth);
}

.price-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-premium);
}

/* Custom premium glow for Full Programme */
.price-card.featured {
    background: linear-gradient(180deg, rgba(11, 60, 42, 0.5) 0%, rgba(7, 25, 17, 0.6) 100%);
    border-color: rgba(212, 175, 55, 0.35);
    box-shadow: 0 10px 40px -10px rgba(0, 201, 167, 0.15);
}

.price-card.featured:hover {
    border-color: var(--gold);
    box-shadow: 0 15px 45px -5px rgba(212, 175, 55, 0.25),
                0 0 12px 1px rgba(212, 175, 55, 0.1);
}

.hot-tag {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--gold) 0%, #b28e20 100%);
    color: var(--text-dark);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 6px 16px;
    border-radius: 50px;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px var(--gold-glow);
}

.price-card-header {
    margin-bottom: 1.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1.75rem;
}

.plan-icon {
    font-size: 2.2rem;
    display: block;
    margin-bottom: 1rem;
}

.plan-name {
    font-size: 1.65rem;
    margin-bottom: 0.5rem;
}

.plan-caption {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.plan-price-wrapper {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
}

.plan-currency {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
}

.plan-price {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -2px;
    transition: var(--transition-smooth);
    display: inline-block;
}

.plan-period {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* plan-daily-cost reframe styles */
.plan-daily-cost {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--secondary);
    margin-top: 0.5rem;
    letter-spacing: 0.2px;
    transition: var(--transition-smooth);
}

.featured .plan-daily-cost {
    color: var(--gold);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.15);
}

.plan-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    margin-bottom: 2.25rem;
    flex: 1;
}

.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.92rem;
    line-height: 1.4;
}

.feature-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.feature-text .strong-text {
    font-weight: 600;
    color: var(--text-main);
}

.feature-text small {
    font-size: 0.76rem;
    color: var(--text-muted);
}

.feature-included {
    color: var(--text-main);
}

.feature-excluded {
    opacity: 0.5;
}

.feature-excluded .feature-text .strong-text {
    color: rgba(11, 41, 27, 0.45);
    text-decoration: line-through;
}

.check-icon {
    font-weight: 800;
    color: var(--primary);
    font-size: 1rem;
    margin-top: 1px;
}

.cross-icon {
    font-size: 0.85rem;
    margin-top: 2px;
}

.price-card-footer {
    margin-top: auto;
}

/* ==========================================================================
   SECTION 2: Frictionless Checkout Block
   ========================================================================== */
/* ==========================================================================
   SECTION 2: Frictionless Checkout Block
   ========================================================================== */
.section-checkout {
    border-top: 1px solid rgba(0, 163, 137, 0.08);
    scroll-margin-top: 110px; /* Accounts for the sticky header when scrolling into view */
}

.checkout-card {
    max-width: 780px;
    margin: 0 auto;
}

.glassmorphic {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--border-color);
    border-radius: 32px;
    padding: 3.5rem 3rem;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-premium);
}

/* ==========================================================================
   Onboarding Stepper Wizard Custom Styling
   ========================================================================== */
.stepper-container {
    max-width: 100%;
}

/* Stepper Progress Header */
.stepper-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin-bottom: 3.5rem;
    padding: 0 1rem;
}

.stepper-progress-line {
    position: absolute;
    top: 20px;
    left: 2rem;
    right: 2rem;
    height: 4px;
    background: #E2ECE8;
    z-index: 1;
    border-radius: 2px;
}

.stepper-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    width: 0%; /* Dynamic */
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.stepper-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.step-node {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 3px solid #E2ECE8;
    color: var(--text-muted);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.step-label {
    margin-top: 0.65rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: var(--transition-smooth);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Active and Completed States */
.stepper-step.active .step-node {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
    transform: scale(1.1);
}

.stepper-step.active .step-label {
    color: var(--primary);
}

.stepper-step.completed .step-node {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-color: transparent;
    color: #FFFFFF;
}

.stepper-step.completed .step-label {
    color: var(--secondary);
}

/* Step Slides Controller */
.stepper-slides-wrapper {
    position: relative;
    min-height: auto;
    transition: var(--transition-smooth);
}

.step-slide {
    opacity: 0;
    visibility: hidden;
    transform: translateX(30px);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.4s;
    z-index: 1;
}

.step-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    position: relative;
    z-index: 5;
}

/* Get the App Layout (Step 1) */
.download-flex {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
    padding: 1.5rem 0;
}

.app-preview-badge {
    font-size: 3.5rem;
    line-height: 1;
    animation: floatBadge 3s ease-in-out infinite alternate;
}

@keyframes floatBadge {
    0% { transform: translateY(0); }
    100% { transform: translateY(-8px); }
}

.badge-app-store {
    max-width: 280px;
    transition: var(--transition-smooth);
}

.badge-app-store:hover {
    transform: scale(1.03);
    filter: brightness(1.05);
}

/* Checkbox Tick Animation */
.download-checkbox-wrapper {
    margin-top: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.checkbox-trigger {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    padding: 1rem 1.75rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    color: var(--text-main);
    transition: var(--transition-smooth);
}

.checkbox-trigger:hover {
    border-color: var(--secondary);
    background-color: var(--bg-card-hover);
    transform: scale(1.02);
}

.tick-circle {
    width: 24px;
    height: 24px;
    flex-shrink: 0; /* Prevents the circle from squishing or distorting */
    border-radius: 50%;
    border: 2px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.75rem;
    color: transparent;
    font-weight: 900;
    transition: var(--transition-smooth);
    background: #FFFFFF;
}

.checkbox-trigger.checked .tick-circle {
    background: var(--secondary);
    border-color: transparent;
    color: #FFFFFF;
    transform: scale(1.1);
}

/* Next / Prev Stepper Action Buttons */
.stepper-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3rem;
}

/* Step 2: Pricing Customizations for Light Mode */
.pricing-stepper-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.tier-cards-flex {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.pricing-stepper-card {
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 2.25rem 1.75rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pricing-stepper-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-premium);
}

.pricing-stepper-card.active {
    border-color: var(--secondary);
    background: rgba(21, 184, 79, 0.03);
}

.pricing-stepper-card.active::after {
    content: '✓';
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--secondary);
    color: #FFFFFF;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 900;
}

.btn-toggle-details {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 0.75rem;
    padding: 6px 14px;
    border-radius: 20px;
    transition: var(--transition-smooth);
    width: fit-content;
    align-self: center;
    border: 1px solid rgba(0, 163, 137, 0.2);
}

.btn-toggle-details:hover {
    background-color: var(--primary-glow);
    color: var(--secondary);
    border-color: var(--secondary);
}

.btn-toggle-details .arrow-icon {
    font-size: 0.65rem;
    transition: transform 0.3s ease;
}

.btn-toggle-details.expanded .arrow-icon {
    transform: rotate(180deg);
}

.plan-features-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.checkout-header {
    margin-bottom: 2.5rem;
}

.checkout-tag {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--secondary);
    font-weight: 700;
}

.checkout-title {
    font-size: 2rem;
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
}

.checkout-subtitle {
    font-size: 0.95rem;
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

/* Plan Selection Summary Banner */
.selected-summary-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 201, 167, 0.08);
    border: 1px solid var(--border-color);
    padding: 1.25rem 1.75rem;
    border-radius: 18px;
}

.summary-details {
    display: flex;
    flex-direction: column;
}

.summary-plan-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 1px;
}

.summary-plan-val {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
}

.summary-plan-duration {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.summary-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.summary-amount {
    font-size: 2rem;
    font-weight: 800;
}

/* Step Layout */
.form-step {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-label {
    font-size: 1.1rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.step-badge {
    width: 26px;
    height: 26px;
    background-color: var(--primary);
    color: var(--text-dark);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 800;
}

.input-container {
    position: relative;
    width: 100%;
}

.input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    pointer-events: none;
    opacity: 0.6;
}

.form-input {
    width: 100%;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 18px 18px 18px 48px;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    transition: var(--transition-smooth);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
    background-color: var(--white);
}

.form-help {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Validation Bubble styles */
.error-bubble {
    background-color: rgba(255, 90, 95, 0.15);
    border: 1px solid var(--red);
    color: #FFA3A5;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 0.85rem;
}

/* Payment Selector Grid */
.payment-methods-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.payment-method-card {
    border: 1px solid var(--border-color);
    background-color: rgba(4, 13, 9, 0.4);
    border-radius: 18px;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.payment-card-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    height: 100%;
}

.payment-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.payment-icon-lg {
    font-size: 1.75rem;
}

.payment-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
}

.payment-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    flex: 1;
}

.gateway-logos {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.logo-tag {
    font-size: 0.65rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-muted);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.whatsapp-badge {
    align-self: flex-start;
    font-size: 0.7rem;
    background: rgba(30, 215, 96, 0.15);
    color: #1ED760;
    border: 1px solid rgba(30, 215, 96, 0.3);
    padding: 3px 10px;
    border-radius: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Payment Active State styles */
.payment-method-card.active {
    border-color: var(--primary);
    background-color: rgba(0, 201, 167, 0.08);
    box-shadow: 0 0 15px rgba(0, 201, 167, 0.1);
}

.payment-method-card.active::after {
    content: '✓';
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary);
    color: var(--text-dark);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 900;
}

.hidden-radio {
    display: none;
}

/* ==========================================================================
   SECTION 3: Educational Content Split Layout
   ========================================================================== */
.section-features {
    border-top: 1px solid rgba(0, 201, 167, 0.08);
}

.section-tag {
    font-size: 0.85rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.2rem;
    color: var(--text-main);
}

.features-split-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3.5rem;
    align-items: center;
    margin-top: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 201, 167, 0.04) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-premium);
    background: var(--bg-card-hover);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-main);
    margin-bottom: 1.25rem;
}

.bg-green   { background: rgba(7, 128, 58, 0.2); color: #2ecc71; border: 1px solid rgba(7, 128, 58, 0.4); }
.bg-emerald { background: rgba(0, 201, 167, 0.2); color: var(--primary); border: 1px solid rgba(0, 201, 167, 0.4); }
.bg-teal    { background: rgba(16, 65, 46, 0.5); color: #1ED760; border: 1px solid rgba(16, 65, 46, 0.8); }
.bg-gold    { background: rgba(212, 175, 55, 0.15); color: var(--gold); border: 1px solid rgba(212, 175, 55, 0.3); }

.feature-icon svg {
    width: 22px;
    height: 22px;
}

.feature-title {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.feature-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Premium Mobile App SVG Mockup Styling
   ========================================================================== */
.hero-mockup {
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.phone-frame {
    width: 280px;
    height: 570px;
    background: #040c08;
    border: 11px solid #1c2e25;
    border-radius: 38px;
    box-shadow: 0 25px 50px -12px rgba(11, 41, 27, 0.12),
                0 0 0 2px rgba(0, 163, 137, 0.12),
                inset 0 0 10px rgba(255,255,255,0.05);
    position: relative;
    overflow: hidden;
    transform: rotateY(-6deg) rotateX(3deg);
    transition: var(--transition-smooth);
}

.phone-frame:hover {
    transform: rotateY(0deg) rotateX(0deg) translateY(-8px);
    box-shadow: 0 30px 60px -10px rgba(0, 163, 137, 0.15),
                0 0 12px 2px rgba(0, 163, 137, 0.15);
}

.phone-notch {
    width: 130px;
    height: 18px;
    background: #1c2e25;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    padding: 10px;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #05140e 0%, #082117 100%);
    position: relative;
}

.phone-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.5);
    padding: 8px 12px 4px;
    font-weight: 600;
}

.phone-app-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-top: 8px;
}

.app-top-nav {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--white);
    background: rgba(255,255,255,0.04);
    padding: 8px;
    border-radius: 10px;
    margin-bottom: 12px;
    border: 1px solid rgba(255,255,255,0.05);
}

.app-points {
    color: var(--gold);
}

.garden-canvas {
    height: 185px;
    background: linear-gradient(180deg, #10412e 0%, #071f15 100%);
    border-radius: 18px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 201, 167, 0.15);
    margin-bottom: 14px;
}

.sun {
    width: 36px;
    height: 36px;
    background: radial-gradient(circle, #fff7cc 30%, #ffd700 80%);
    border-radius: 50%;
    position: absolute;
    top: 20px;
    right: 25px;
    box-shadow: 0 0 15px #ffd700;
    animation: pulse 4s infinite alternate;
}

.cloud {
    background: rgba(255,255,255,0.15);
    border-radius: 20px;
    position: absolute;
}
.cloud.c1 { width: 45px; height: 14px; top: 28px; left: 18px; }
.cloud.c2 { width: 35px; height: 10px; top: 44px; left: 40px; }

.garden-ground {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 42px;
    background: #0d3827;
    border-top: 3px solid var(--secondary);
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    padding: 0 10px;
}

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

.tree-crown {
    width: 26px;
    height: 26px;
    background: radial-gradient(circle at 35% 35%, #1edd60 0%, #07803a 100%);
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.t2 .tree-crown {
    width: 36px;
    height: 36px;
    background: radial-gradient(circle at 35% 35%, var(--primary) 0%, #007763 100%);
}

.t3 .tree-crown {
    width: 22px;
    height: 22px;
}

.tree-trunk {
    width: 5px;
    height: 14px;
    background: #5c3a21;
}

.badge-garden {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.6);
    color: var(--text-main);
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.app-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 8px;
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--secondary);
}

.stat-lbl {
    font-size: 0.55rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.app-lesson-card {
    background: rgba(0, 201, 167, 0.07);
    border: 1px solid rgba(0, 201, 167, 0.2);
    border-radius: 14px;
    padding: 10px;
}

.app-lesson-title {
    font-size: 0.6rem;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 4px;
}

.app-lesson-desc {
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.app-progress-bar {
    width: 100%;
    height: 5px;
    background: rgba(255,255,255,0.1);
    border-radius: 50px;
    overflow: hidden;
}

.app-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    box-shadow: 0 0 5px var(--primary);
}

/* ==========================================================================
   Interactive Buttons and Indicators
   ========================================================================== */
.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 14px 28px;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--text-dark);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px var(--primary-glow);
    filter: brightness(1.1);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-glow);
}

.btn-outline {
    background: none;
    color: var(--primary);
    border: 2px solid var(--border-color);
}

.btn-outline:hover {
    background: rgba(0, 201, 167, 0.05);
    border-color: var(--primary);
    color: var(--white);
}

.btn-glow {
    position: relative;
}

.btn-glow::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    box-shadow: 0 0 15px var(--primary-glow);
    opacity: 0.6;
    z-index: -1;
    transition: var(--transition-smooth);
}

.btn-glow:hover::after {
    box-shadow: 0 0 25px var(--primary);
    opacity: 1;
}

.btn-lg {
    padding: 18px 36px;
    font-size: 1.1rem;
}

.full-width {
    width: 100%;
}

.hidden {
    display: none !important;
}

/* ==========================================================================
   Overlay Alerts (Payment Callback states)
   ========================================================================== */
.alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(4, 13, 9, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.alert-box {
    max-width: 480px;
    width: 100%;
    text-align: center;
    border: 1px solid var(--border-glow);
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    animation: scaleUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scaleUp {
    0% { transform: scale(0.85); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.alert-icon {
    font-size: 4rem;
    font-weight: 300;
    line-height: 1;
}

.text-red {
    color: var(--red);
}

.alert-title {
    font-size: 1.6rem;
}

.alert-desc {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-surface);
    color: var(--text-main);
    padding: 4rem 1.5rem 2rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.9fr 1.1fr;
    gap: 4rem;
    margin-bottom: 3.5rem;
}

.footer-brand-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    display: block;
    margin-bottom: 0.75rem;
}

.footer-brand-desc {
    font-size: 0.9rem;
    max-width: 320px;
}

.footer-title {
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    color: var(--primary);
    font-weight: 600;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--secondary);
}

.footer-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 2rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.25);
}

/* ==========================================================================
   CSS Keyframe animations
   ========================================================================== */
@keyframes pulse {
    0% { transform: scale(1); filter: drop-shadow(0 0 10px #ffd700); }
    100% { transform: scale(1.05); filter: drop-shadow(0 0 20px #ffd700); }
}

/* ==========================================================================
   Media Queries & Responsiveness
   ========================================================================== */
@media (max-width: 992px) {
    .features-split-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-mockup {
        order: -1; /* Mockup on top in features grid for mobile view */
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    section {
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 2.15rem;
    }
    
    .section-title {
        font-size: 1.85rem;
    }
    
    .express-tag-sinhala {
        font-size: 1.05rem;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .price-card {
        padding: 2.25rem 1.75rem;
    }
    
    .glassmorphic {
        padding: 2.25rem 1.5rem;
    }
    
    .payment-methods-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .toggle-container {
        max-width: 100%;
    }
    
    .toggle-btn {
        padding: 10px 14px;
        font-size: 0.8rem;
    }
    
    @media (max-width: 480px) {
        .toggle-tag {
            display: none !important;
        }
        .toggle-btn {
            font-size: 0.72rem;
            padding: 10px 6px;
            gap: 4px;
        }
    }
    
    .scroll-link {
        font-size: 1.05rem;
    }
}

/* Pre-checkout Download Advisory Card */
.download-app-advisory {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    background: rgba(0, 201, 167, 0.05);
    border: 1px dashed var(--border-color);
    padding: 1.5rem 1.75rem;
    border-radius: 20px;
    margin-bottom: 2.25rem;
}

.advisory-left {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    flex: 1;
}

.advisory-icon {
    font-size: 2.25rem;
    line-height: 1;
    margin-top: 2px;
}

.advisory-text {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    text-align: left;
}

.advisory-text h4 {
    font-size: 1.15rem;
    color: var(--primary);
}

.advisory-text p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.advisory-right {
    flex-shrink: 0;
}

.download-badge-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    font-size: 0.88rem;
    background: rgba(0, 201, 167, 0.08);
    border: 1px solid var(--primary);
    border-radius: 12px;
    color: var(--text-main);
    white-space: nowrap;
    transition: var(--transition-smooth) !important;
}

.download-badge-btn:hover {
    background: var(--primary) !important;
    color: var(--text-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--primary-glow);
}

@media (max-width: 900px) {
    .download-app-advisory {
        flex-direction: column;
        align-items: stretch;
        gap: 1.25rem;
        padding: 1.5rem;
    }
    
    .advisory-left {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.75rem;
    }
    
    .advisory-text {
        text-align: center;
    }
    
    .advisory-right {
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .download-badge-btn {
        width: 100%;
        justify-content: center;
        white-space: normal !important;
        text-align: center;
    }
}

/* ==========================================================================
   Stepper Onboarding Stepper Mobile Responsive Adjustments
   ========================================================================== */
@media (max-width: 768px) {
    .tier-cards-flex {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .download-badge-btn {
        white-space: normal !important;
        text-align: center;
        line-height: 1.5;
    }
}

@media (max-width: 600px) {
    /* Hide progress bar text labels on small screens to prevent overlap */
    .step-label {
        display: none !important;
    }
    
    .stepper-progress {
        margin-bottom: 2rem;
    }
    
    .stepper-progress-line {
        left: 1.5rem;
        right: 1.5rem;
    }
    
    .glassmorphic {
        padding: 2rem 1.25rem;
    }
    
    .checkbox-trigger {
        padding: 0.88rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .toggle-btn {
        font-size: 0.75rem !important;
        padding: 10px 4px !important;
        gap: 4px !important;
    }
    
    .toggle-tag {
        font-size: 0.58rem !important;
        padding: 1px 4px !important;
    }
}
