/* CSS Variables for Theme */
:root {
    /* Primary Colors */
    --teal-light: #16A6A3;
    --teal-dark: #0F7FA5;
    --teal-gradient: linear-gradient(135deg, var(--teal-light), var(--teal-dark));
    
    /* Accents & Backgrounds */
    --bg-page: #F0F4F8;
    --bg-container: #FFFFFF;
    --accent-light: rgba(22, 166, 163, 0.08);
    --accent-hover: rgba(22, 166, 163, 0.15);
    
    /* Text Colors */
    --text-primary: #1A202C;
    --text-secondary: #4A5568;
    --text-muted: #718096;
    --text-inverse: #FFFFFF;
    
    /* Utilities */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(15, 127, 165, 0.08);
    --shadow-lg: 0 16px 32px rgba(15, 127, 165, 0.12);
    --shadow-teal: 0 8px 16px rgba(22, 166, 163, 0.25);
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 100px;
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-page);
    color: var(--text-primary);
    line-height: 1.6;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

/* App Container (Mobile-first Layout) */
.app-container {
    width: 100%;
    max-width: 480px; /* Mobile width even on desktop */
    background-color: var(--bg-container);
    min-height: 100vh;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.3;
}

a {
    text-decoration: none;
}

/* =========================================
   1. Hero Section
   ========================================= */
.hero-section {
    padding: 40px 24px 32px;
    text-align: center;
    background: radial-gradient(circle at top right, var(--accent-light) 0%, transparent 60%);
    position: relative;
    border-bottom: 1px solid var(--accent-light);
}

.logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.app-icon {
    width: 80px;
    height: 80px;
    background: var(--teal-gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-teal);
    color: white;
    font-size: 36px;
    transform: rotate(0deg);
    transition: var(--transition);
}

.app-icon:hover {
    transform: scale(1.05) rotate(5deg);
}

.brand-name {
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 4px;
    font-weight: 700;
}

.tagline {
    font-size: 16px;
    color: var(--teal-dark);
    font-weight: 500;
    margin-bottom: 20px;
}

.overview {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Buttons */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    border-radius: var(--radius-pill);
    font-family: inherit;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    cursor: pointer;
    width: 100%;
}

.btn-primary {
    background: var(--teal-gradient);
    color: var(--text-inverse);
    box-shadow: var(--shadow-teal);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(22, 166, 163, 0.35);
}

.btn-primary:active {
    transform: translateY(0);
}

/* App Store / Play Store Buttons */
.btn-app {
    justify-content: center;
    gap: 12px;
}

.btn-app i {
    font-size: 28px;
}

.btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.btn-subtitle {
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.btn-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.1;
}

/* =========================================
   2. Features Section
   ========================================= */
.features-section {
    padding: 40px 24px;
    background-color: var(--bg-container);
}

.section-header {
    text-align: center;
    margin-bottom: 28px;
}

.section-header h2 {
    font-size: 20px;
    color: var(--text-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

/* For slightly larger mobile/tablets, use 2x2 */
@media (min-width: 400px) {
    .features-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.feature-card {
    background: var(--bg-container);
    border: 1px solid rgba(0,0,0,0.03);
    border-radius: var(--radius-md);
    padding: 20px 16px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transform: translateY(10px);
}

.feature-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-light);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-light);
    color: var(--teal-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--teal-gradient);
    color: white;
}

.feature-card h3 {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 600;
}

/* =========================================
   3. Steps Section
   ========================================= */
.steps-section {
    padding: 40px 24px;
    background-color: rgba(240, 244, 248, 0.4);
    border-top: 1px solid var(--accent-light);
    border-bottom: 1px solid var(--accent-light);
}

.steps-container {
    display: flex;
    flex-direction: column;
    padding: 10px 0;
}

.step-item {
    display: flex;
    gap: 16px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.4s ease;
}

.step-item.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.step-indicator {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    background: var(--teal-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 2;
}

.step-content {
    padding-bottom: 8px;
    flex: 1;
}

.step-content h3 {
    font-size: 16px;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.step-content p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Vertical line connector */
.step-connector {
    width: 2px;
    height: 24px;
    background: var(--accent-light);
    margin-left: 17px; /* (36/2) - 1 */
    margin-top: 4px;
    margin-bottom: 4px;
}

/* Step 3 Choices */
.step-choices {
    padding-bottom: 0;
}

.choice-cards {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

.choice-card {
    flex: 1;
    background: white;
    border: 1px solid var(--accent-light);
    border-radius: var(--radius-sm);
    padding: 12px 8px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.choice-card i {
    font-size: 20px;
    color: var(--teal-light);
}

.choice-card span {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
}

.choice-or {
    font-size: 12px;
    color: var(--text-muted);
    font-style: italic;
}

/* =========================================
   4. Help Section
   ========================================= */
.help-section {
    padding: 40px 24px;
}

.help-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.btn-outline {
    background: transparent;
    color: var(--teal-dark);
    border: 2px solid var(--teal-light);
    gap: 12px;
    opacity: 0;
    transform: translateY(10px);
}

.btn-outline.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.btn-outline:hover {
    background: var(--accent-light);
}

.btn-outline i {
    font-size: 20px;
}

/* =========================================
   5. Trust Footer
   ========================================= */
.trust-footer {
    background-color: var(--accent-light);
    padding: 32px 24px;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    color: var(--teal-dark);
    margin-bottom: 12px;
    font-size: 18px;
}

.footer-logo i {
    font-size: 20px;
}

.trust-footer p {
    font-size: 13px;
    color: var(--text-secondary);
    max-width: 280px;
    margin: 0 auto 20px;
}

.copyright {
    font-size: 12px;
    color: var(--text-muted);
}

/* Delay animations for child elements */
.feature-card:nth-child(1) { transition-delay: 0.1s; }
.feature-card:nth-child(2) { transition-delay: 0.2s; }
.feature-card:nth-child(3) { transition-delay: 0.3s; }
.feature-card:nth-child(4) { transition-delay: 0.4s; }

.step-item:nth-of-type(1) { transition-delay: 0.1s; }
.step-item:nth-of-type(2) { transition-delay: 0.2s; }
.step-item:nth-of-type(3) { transition-delay: 0.3s; }

.btn-outline:nth-child(1) { transition-delay: 0.1s; }
.btn-outline:nth-child(2) { transition-delay: 0.2s; }
