/* ==========================================
   KALORICA LANDING PAGE - Clean Card-Based Design
   Based on actual app design from KALORICA_BRANDING.md
   ========================================== */

/* Variables - Exact values from branding document */
:root {
    /* Primary Brand Color */
    --primary: #FF5A16;
    --primary-light: #FF8A5B;
    --primary-dark: #CC4611;
    
    /* Core UI Colors - Light Theme Only */
    --background: #FFFFFF;
    --surface: #FFFFFF;  /* No gray backgrounds */
    
    /* Text Colors */
    --text-primary: #121212;
    --text-secondary: #666666;
    --text-tertiary: #999999;
    
    /* Meal Cards - Solid Colors Only */
    --breakfast: #FFD4A3;
    --lunch: #FFC4B3;
    --dinner: #D4CCFF;
    --snack: #B8E7CA;
    
    /* Feature Cards */
    --calories: #DDC0FF;
    --water: #B3E5FC;
    --journal: #FFE4E1;
    
    /* Macro Nutrients */
    --protein: #7FBF8F;
    --carbs: #F5F378;
    --fats: #FF8A5B;
    
    /* Status Colors */
    --error: #FF3B30;
    --success: #34C759;
    --warning: #FFCC00;
    --info: #007AFF;
    
    /* UI Element Colors */
    --border: #E0E0E0;
    --border-light: #F0F0F0;
    --divider: rgba(0, 0, 0, 0.08);
    
    /* Typography */
    --font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing - 8px Grid System - More Compact */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 12px;
    --spacing-lg: 16px;
    --spacing-xl: 20px;
    --spacing-xxl: 28px;
    --spacing-xxxl: 40px;
    --spacing-2xl: 24px;
    --spacing-3xl: 32px;
    --spacing-4xl: 40px;  /* Reduced from 44px */
    
    /* Border Radius */
    --radius-xs: 5px;
    --radius-sm: 16px;
    --radius-md: 20px;
    --radius-lg: 22px;
    --radius-xl: 24px;
    
    /* Animation Timing */
    --animation-fast: 200ms;
    --animation-normal: 600ms;
    --animation-slow: 1200ms;
    --easing-out: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    font-size: 16px;  /* Increased base size */
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--background);  /* Pure white */
    min-height: 100vh;
    overflow-x: hidden;
}

/* Typography - Bigger and Bolder */
h1 {
    font-size: 40px;  /* Increased from 32px */
    font-weight: 700;  /* Increased from 600 */
    line-height: 48px;
}

h2 {
    font-size: 28px;  /* Increased from 20px */
    font-weight: 700;  /* Increased from 600 */
}

h3 {
    font-size: 22px;  /* Increased from 18px */
    font-weight: 600;
}

h4 {
    font-size: 18px;  /* Increased from 16px */
    font-weight: 600;
}

p {
    font-size: 16px;
    line-height: 1.8;
}

/* Container - More compact */
.container {
    max-width: 1100px;  /* Reduced from 1200px */
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* Navigation - In a card */
.navbar {
    position: fixed;
    top: var(--spacing-lg);
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - var(--spacing-3xl));
    max-width: 1100px;
    background: var(--background);
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    transition: all var(--animation-fast) var(--easing-out);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-2xl);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    text-decoration: none;
    transition: transform var(--animation-fast) var(--easing-out);
}

.logo:hover {
    transform: scale(0.98);
}

.logo:active {
    transform: scale(0.95);
}

.logo-image {
    width: 48px;
    height: 48px;
    object-fit: contain;
    display: block;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    gap: var(--spacing-2xl);
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all var(--animation-fast) var(--easing-out);
    position: relative;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--animation-fast) var(--easing-out);
}

.nav-links a:hover::after {
    width: 100%;
}

.language-selector {
    padding: var(--spacing-sm) var(--spacing-lg);
    border: 2px solid var(--primary);
    border-radius: var(--radius-sm);
    background: var(--background);
    color: var(--primary);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all var(--animation-fast) var(--easing-out);
}

.language-selector:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 90, 22, 0.2);
}

/* Hero Section - Three Colored Cards (Stacked Layout) */
.hero {
    padding-top: 120px;
    padding-bottom: var(--spacing-3xl);
    background: var(--background);
}

.hero-cards {
    display: grid;
    grid-template-columns: 1fr 1.8fr;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-2xl);
    min-height: 450px;
}

.hero-left-stack {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.hero-title-card {
    background: var(--breakfast);  /* Peach pastel - swapped */
    border-radius: var(--radius-xl);
    padding: var(--spacing-2xl);
    box-shadow: 0 8px 32px rgba(255, 212, 163, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    animation: fadeInUp var(--animation-normal) var(--easing-out);
}

.hero-title-card h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-primary);
    margin: 0;
}

.hero-title-card h1 .text-primary {
    color: var(--primary);
    display: block;
}

.hero-subtitle-card {
    background: var(--snack);  /* Green pastel */
    border-radius: var(--radius-xl);
    padding: var(--spacing-2xl);
    box-shadow: 0 8px 32px rgba(184, 231, 202, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--spacing-md);
    flex: 1;
    animation: fadeInUp var(--animation-normal) var(--easing-out) 0.1s both;
}

.hero-subtitle-card p {
    font-size: 17px;
    line-height: 1.6;
    color: var(--text-primary);
    margin: 0;
}

.hero-mockup-card {
    background: var(--dinner);  /* Purple pastel - swapped */
    border-radius: var(--radius-xl);
    padding: var(--spacing-3xl);
    box-shadow: 0 8px 32px rgba(212, 204, 255, 0.3);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
    animation: fadeInUp var(--animation-normal) var(--easing-out) 0.2s both;
}

.mockup-features {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: flex-start;
}

.mockup-features-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.feature-pill {
    padding: var(--spacing-md) var(--spacing-2xl);
    border-radius: 50px; /* Full pill shape */
    font-size: 16px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-md);
    transition: all var(--animation-fast) var(--easing-out);
    white-space: nowrap;
}

/* Pill color variants matching features section */
.feature-pill.breakfast-pill {
    background: var(--breakfast);
    box-shadow: 0 2px 8px rgba(255, 212, 163, 0.3);
}

.feature-pill.lunch-pill {
    background: var(--lunch);
    box-shadow: 0 2px 8px rgba(255, 196, 179, 0.3);
}

.feature-pill.dinner-pill {
    background: var(--dinner);
    box-shadow: 0 2px 8px rgba(212, 204, 255, 0.3);
}

.feature-pill.snack-pill {
    background: var(--snack);
    box-shadow: 0 2px 8px rgba(184, 231, 202, 0.3);
}

.feature-pill.water-pill {
    background: var(--water);
    box-shadow: 0 2px 8px rgba(179, 229, 252, 0.3);
}

.feature-pill.calories-pill {
    background: var(--calories);
    box-shadow: 0 2px 8px rgba(221, 192, 255, 0.3);
}

.feature-pill.protein-pill {
    background: var(--protein);
    box-shadow: 0 2px 8px rgba(127, 191, 143, 0.3);
}

/* Default fallback */
.feature-pill:not([class*="-pill"]) {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.feature-pill:hover {
    transform: translateY(-2px) scale(1.05);
}

.feature-pill:hover.breakfast-pill { box-shadow: 0 4px 12px rgba(255, 212, 163, 0.4); }
.feature-pill:hover.lunch-pill { box-shadow: 0 4px 12px rgba(255, 196, 179, 0.4); }
.feature-pill:hover.dinner-pill { box-shadow: 0 4px 12px rgba(212, 204, 255, 0.4); }
.feature-pill:hover.snack-pill { box-shadow: 0 4px 12px rgba(184, 231, 202, 0.4); }
.feature-pill:hover.water-pill { box-shadow: 0 4px 12px rgba(179, 229, 252, 0.4); }
.feature-pill:hover.calories-pill { box-shadow: 0 4px 12px rgba(221, 192, 255, 0.4); }
.feature-pill:hover.protein-pill { box-shadow: 0 4px 12px rgba(127, 191, 143, 0.4); }

.feature-pill svg {
    width: 20px;
    height: 20px;
    stroke: var(--text-primary);
    stroke-width: 2.5;
}

.hero-title {
    margin-bottom: var(--spacing-xl);
    color: var(--text-primary);
}

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

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-2xl);
    line-height: 1.8;
}

/* Bigger Download Buttons */
.download-buttons {
    display: flex;
    gap: var(--spacing-lg);
}

.app-store-btn, .google-play-btn {
    transition: all var(--animation-fast) var(--easing-out);
    border-radius: var(--radius-sm);
    overflow: hidden;
    display: inline-block;
}

.app-store-btn:hover, .google-play-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.app-store-btn:active, .google-play-btn:active {
    transform: scale(0.98);
}

.app-store-btn img {
    height: 48px;
    width: auto;
}

.google-play-btn img {
    height: 72px;  /* Even bigger for better balance */
    width: auto;
    margin: -12px 0;  /* Compensate for extra height */
}

/* Phone Showcase */
.phone-mockup {
    width: 200px;
    height: 400px;
    background: linear-gradient(to bottom, #1a1a1a, #2a2a2a);
    border-radius: 28px;
    padding: 8px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 24px;
    background: #1a1a1a;
    border-radius: 0 0 16px 16px;
}

.phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    object-fit: cover;
}

/* Remove phone mockups entirely - using abstract visuals instead */

/* Stats Display */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

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

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    display: block;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Features Section - Pill-Shaped Cards */
.features-overview {
    padding: var(--spacing-3xl) 0;
    background: var(--background);
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-3xl);
    font-size: 18px;
}

.features-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    justify-content: center;
}

.feature-card {
    padding: var(--spacing-md) var(--spacing-2xl);
    border-radius: 50px; /* Full pill shape */
    transition: all var(--animation-fast) var(--easing-out);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-md);
    white-space: nowrap;
}

.feature-card:hover {
    transform: translateY(-2px) scale(1.05);
}

.feature-card:active {
    transform: scale(0.98);
}

.feature-card.breakfast-theme {
    background: var(--breakfast);
    box-shadow: 0 4px 16px rgba(255, 212, 163, 0.25);
}

.feature-card.lunch-theme {
    background: var(--lunch);
    box-shadow: 0 4px 16px rgba(255, 196, 179, 0.25);
}

.feature-card.dinner-theme {
    background: var(--dinner);
    box-shadow: 0 4px 16px rgba(212, 204, 255, 0.25);
}

.feature-card.snack-theme {
    background: var(--snack);
    box-shadow: 0 4px 16px rgba(184, 231, 202, 0.25);
}

.feature-card.water-theme {
    background: var(--water);
    box-shadow: 0 4px 16px rgba(179, 229, 252, 0.25);
}

.feature-card.calories-theme {
    background: var(--calories);
    box-shadow: 0 4px 16px rgba(221, 192, 255, 0.25);
}

.feature-card.journal-theme {
    background: var(--journal);
    box-shadow: 0 4px 16px rgba(255, 228, 225, 0.25);
}

.feature-card.protein-theme {
    background: var(--protein);
    box-shadow: 0 4px 16px rgba(127, 191, 143, 0.25);
}

.feature-card.carbs-theme {
    background: var(--carbs);
    box-shadow: 0 4px 16px rgba(245, 243, 120, 0.25);
}

.feature-card.fats-theme {
    background: var(--fats);
    box-shadow: 0 4px 16px rgba(255, 138, 91, 0.25);
}

.feature-card:hover.breakfast-theme { box-shadow: 0 8px 24px rgba(255, 212, 163, 0.35); }
.feature-card:hover.lunch-theme { box-shadow: 0 8px 24px rgba(255, 196, 179, 0.35); }
.feature-card:hover.dinner-theme { box-shadow: 0 8px 24px rgba(212, 204, 255, 0.35); }
.feature-card:hover.snack-theme { box-shadow: 0 8px 24px rgba(184, 231, 202, 0.35); }
.feature-card:hover.water-theme { box-shadow: 0 8px 24px rgba(179, 229, 252, 0.35); }
.feature-card:hover.calories-theme { box-shadow: 0 8px 24px rgba(221, 192, 255, 0.35); }
.feature-card:hover.journal-theme { box-shadow: 0 8px 24px rgba(255, 228, 225, 0.35); }
.feature-card:hover.protein-theme { box-shadow: 0 8px 24px rgba(127, 191, 143, 0.35); }
.feature-card:hover.carbs-theme { box-shadow: 0 8px 24px rgba(245, 243, 120, 0.35); }
.feature-card:hover.fats-theme { box-shadow: 0 8px 24px rgba(255, 138, 91, 0.35); }

.feature-icon-wrapper {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon {
    width: 20px;
    height: 20px;
    stroke: var(--text-primary);
    stroke-width: 2.5;
}

.feature-card h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 700;
}

.feature-card p {
    display: none; /* Hide description in pill format */
}

/* Six Ways to Track - Asymmetric Layout */
.how-it-works {
    padding: var(--spacing-3xl) 0;
    background: var(--background);
}

.methods-container {
    max-width: 100%;
    margin: 0 auto;
    margin-top: var(--spacing-2xl);
}

.methods-layout {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: var(--spacing-lg);
    align-items: stretch;
    max-width: 1200px;
    margin: 0 auto;
}

/* Left - Large mockup card */
.mockup-section {
    display: flex;
}

.mockup-card {
    background: var(--water);  /* Blue pastel background */
    border-radius: var(--radius-xl);
    padding: var(--spacing-2xl);
    box-shadow: 0 8px 32px rgba(179, 229, 252, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 560px;
}

/* Right - Method cards grid */
.methods-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    column-gap: var(--spacing-xl);
    row-gap: var(--spacing-lg);
    height: 100%;
    align-content: stretch;
}

/* Method cards styling - Enhanced with more info */
.method-card {
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    transition: all var(--animation-fast) var(--easing-out);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.method-card:hover {
    transform: scale(1.05);
    z-index: 10;
}

/* Using more distinct colors from the extended palette */
.method-card:nth-child(1) { 
    background: var(--breakfast);  /* Peach */
    box-shadow: 0 6px 24px rgba(255, 212, 163, 0.25);
}
.method-card:nth-child(2) { 
    background: var(--protein);  /* Green - more distinct */
    box-shadow: 0 6px 24px rgba(127, 191, 143, 0.25);
}
.method-card:nth-child(3) { 
    background: var(--dinner);  /* Purple */
    box-shadow: 0 6px 24px rgba(212, 204, 255, 0.25);
}
.method-card:nth-child(4) { 
    background: var(--carbs);  /* Yellow - very distinct */
    box-shadow: 0 6px 24px rgba(245, 243, 120, 0.25);
}
.method-card:nth-child(5) { 
    background: var(--water);  /* Blue */
    box-shadow: 0 6px 24px rgba(179, 229, 252, 0.25);
}
.method-card:nth-child(6) { 
    background: var(--fats);  /* Orange - distinct */
    box-shadow: 0 6px 24px rgba(255, 138, 91, 0.25);
}

.method-card:hover {
    transform: translateY(-6px) scale(1.02);
}

.method-card:nth-child(1):hover { box-shadow: 0 12px 36px rgba(255, 212, 163, 0.35); }
.method-card:nth-child(2):hover { box-shadow: 0 12px 36px rgba(127, 191, 143, 0.35); }
.method-card:nth-child(3):hover { box-shadow: 0 12px 36px rgba(212, 204, 255, 0.35); }
.method-card:nth-child(4):hover { box-shadow: 0 12px 36px rgba(245, 243, 120, 0.35); }
.method-card:nth-child(5):hover { box-shadow: 0 12px 36px rgba(179, 229, 252, 0.35); }
.method-card:nth-child(6):hover { box-shadow: 0 12px 36px rgba(255, 138, 91, 0.35); }

/* Central mockup */
.central-mockup {
    position: relative;
}

.central-phone {
    width: 220px;
    height: 440px;
    background: linear-gradient(to bottom, #1a1a1a, #2a2a2a);
    border-radius: 32px;
    padding: 8px;
    position: relative;
}

.central-phone::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 26px;
    background: #1a1a1a;
    border-radius: 0 0 18px 18px;
}

.central-screen {
    width: 100%;
    height: 100%;
    background: var(--background);
    border-radius: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--text-tertiary);
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

/* Method screenshot image */
.method-screenshot {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 26px;
    z-index: 1;
}

/* Screen content that changes */
.screen-content {
    text-align: center;
    padding: var(--spacing-xl);
    position: relative;
    z-index: 2;
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(255, 255, 255, 0.9) 100%);
    border-radius: var(--radius-lg);
    margin: var(--spacing-lg);
    backdrop-filter: blur(10px);
}

.screen-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.screen-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Method card icons and content - Enhanced layout */
.method-header {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    width: 100%;
    margin-bottom: var(--spacing-md);
}

.method-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.method-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--text-primary);
    stroke-width: 2.5;
    fill: none;
}

.method-content {
    flex: 1;
}

.method-content h4 {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 var(--spacing-xs) 0;
    color: var(--text-primary);
    line-height: 1.2;
}

.method-content p {
    font-size: 13px;
    line-height: 1.4;
    color: var(--text-secondary);
    margin: 0 0 var(--spacing-sm) 0;
    font-weight: 500;
}

.method-features {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin-top: auto;
}

.method-feature {
    background: rgba(255, 255, 255, 0.4);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

/* Active state for method cards */
.method-card.active {
    transform: scale(1.08);
    z-index: 20;
}

.method-card.active::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

/* Experience Kalorica - Creative Masonry Layout */
.app-showcase {
    padding: var(--spacing-3xl) 0;
    background: var(--background);
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(2, 240px);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-2xl);
}

.experience-card {
    border-radius: var(--radius-xl);
    padding: var(--spacing-2xl);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: all 0.3s var(--easing-out);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* Creative grid positioning */
.experience-card.large {
    grid-column: span 3;
    grid-row: span 2;
}

.experience-card.scanner {
    grid-column: span 2;
}

.experience-card.analytics {
    grid-column: span 1;
}

.experience-card.journal {
    grid-column: span 2;
}

.experience-card.goals {
    grid-column: span 1;
}

.experience-card:hover {
    transform: translateY(-4px) scale(1.02);
}

/* Large showcase card */
.experience-card.large {
    grid-row: span 2;
    background: var(--breakfast);  /* Peach pastel */
    box-shadow: 0 8px 32px rgba(255, 212, 163, 0.3);
}

.experience-card.large:hover {
    box-shadow: 0 12px 40px rgba(255, 212, 163, 0.4);
}

.experience-card.scanner {
    background: var(--lunch);  /* Coral pastel */
    box-shadow: 0 8px 32px rgba(255, 196, 179, 0.3);
}

.experience-card.scanner:hover {
    box-shadow: 0 12px 40px rgba(255, 196, 179, 0.4);
}

.experience-card.analytics {
    background: var(--dinner);  /* Purple pastel */
    box-shadow: 0 8px 32px rgba(212, 204, 255, 0.3);
}

.experience-card.analytics:hover {
    box-shadow: 0 12px 40px rgba(212, 204, 255, 0.4);
}

.experience-card.journal {
    background: var(--snack);  /* Mint green pastel */
    box-shadow: 0 8px 32px rgba(184, 231, 202, 0.3);
}

.experience-card.journal:hover {
    box-shadow: 0 12px 40px rgba(184, 231, 202, 0.4);
}

.experience-card.goals {
    background: var(--calories);  /* Light purple pastel */
    box-shadow: 0 8px 32px rgba(221, 192, 255, 0.3);
}

.experience-card.goals:hover {
    box-shadow: 0 12px 40px rgba(221, 192, 255, 0.4);
}

/* Visual elements instead of mockups */
.experience-visual {
    position: absolute;
    top: var(--spacing-xl);
    right: var(--spacing-xl);
    width: 60%;
    height: 60%;
    opacity: 0.15;
    pointer-events: none;
}

.experience-card.large .experience-visual {
    width: 50%;
    height: 50%;
}

/* Abstract shapes for each card */
.experience-card.large .experience-visual::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--text-primary) 0%, transparent 70%);
    border-radius: 50%;
}

.experience-card.scanner .experience-visual::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--text-primary) 0%, transparent 50%);
    transform: rotate(45deg);
}

.experience-card.analytics .experience-visual::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--text-primary);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.experience-card.journal .experience-visual::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        var(--text-primary),
        var(--text-primary) 2px,
        transparent 2px,
        transparent 10px
    );
}

.experience-card.goals .experience-visual::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--text-primary);
    border-radius: var(--radius-lg);
    transform: rotate(15deg);
}

.experience-content h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 var(--spacing-sm) 0;
    color: var(--text-primary);
}

.experience-content p {
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
    color: var(--text-secondary);
}

/* Pricing Section - Full Width Card Design */
.pricing {
    padding: var(--spacing-3xl) 0;
    background: var(--background);
}

.pricing-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.pricing-toggle {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-lg);
    background: var(--water);
    padding: var(--spacing-sm);
    border-radius: 50px;
    margin-top: var(--spacing-xl);
}

.toggle-label {
    font-size: 16px;
    color: var(--text-primary);
    font-weight: 600;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: 50px;
    transition: all var(--animation-fast) var(--easing-out);
    cursor: pointer;
}

.toggle-label.active {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.toggle-switch {
    display: none; /* Hide old toggle */
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
    margin-top: var(--spacing-3xl);
}

.pricing-card {
    border-radius: var(--radius-xl);
    padding: var(--spacing-3xl);
    position: relative;
    transition: all var(--animation-fast) var(--easing-out);
    display: flex;
    flex-direction: column;
    min-height: 520px;
}

.pricing-card.free {
    background: var(--snack);  /* Mint green */
    box-shadow: 0 8px 32px rgba(184, 231, 202, 0.3);
}

.pricing-card.premium {
    background: var(--breakfast);  /* Peach */
    box-shadow: 0 8px 32px rgba(255, 212, 163, 0.3);
    transform: scale(1.05);
}

.pricing-card:hover {
    transform: translateY(-8px) scale(1.02);
}

.pricing-card.free:hover {
    box-shadow: 0 12px 40px rgba(184, 231, 202, 0.4);
}

.pricing-card.premium:hover {
    transform: translateY(-8px) scale(1.07);
    box-shadow: 0 12px 40px rgba(255, 212, 163, 0.4);
}

.plan-badge {
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: var(--spacing-lg);
}

.plan-header {
    margin-bottom: var(--spacing-2xl);
}

.plan-type {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.plan-description {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.5;
}

.plan-price {
    display: flex;
    align-items: baseline;
    margin-bottom: var(--spacing-xl);
}

.currency {
    font-size: 24px;
    color: var(--text-primary);
    font-weight: 600;
}

.amount {
    font-size: 48px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 4px;
}

.period {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 500;
}

.plan-features {
    list-style: none;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.plan-features li {
    padding: var(--spacing-sm);
    background: rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.plan-features li svg {
    width: 18px;
    height: 18px;
    stroke: var(--text-primary);
    stroke-width: 2.5;
    flex-shrink: 0;
}

.plan-cta {
    margin-top: auto;
    padding-top: var(--spacing-xl);
}

.plan-button {
    width: 100%;
    padding: var(--spacing-lg) var(--spacing-xl);
    background: white;
    color: var(--text-primary);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--animation-fast) var(--easing-out);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.plan-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.plan-note {
    text-align: center;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 13px;
    margin-top: var(--spacing-sm);
}

/* CTA Section - Pastel Card */
.cta {
    padding: var(--spacing-3xl) 0;
    background: var(--background);
}

.cta-card {
    background: var(--dinner);  /* Pastel purple instead of orange */
    border-radius: var(--radius-xl);
    padding: var(--spacing-4xl) var(--spacing-3xl);
    box-shadow: 0 12px 40px rgba(212, 204, 255, 0.3);
    text-align: center;
}

.cta-card h2 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.cta-card p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-2xl);
}

.cta-card .download-buttons {
    justify-content: center;
}

.cta h2 {
    margin-bottom: var(--spacing-md);
    font-size: 32px;
}

.cta p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-2xl);
    font-size: 18px;
}

/* Footer - Light and Clean */
.footer {
    background: var(--background);
    padding: var(--spacing-3xl) 0 var(--spacing-2xl);
    border-top: 1px solid var(--border-light);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: var(--spacing-3xl);
    margin-bottom: var(--spacing-2xl);
}

.footer-brand .logo {
    margin-bottom: var(--spacing-md);
}


.footer-brand .logo-text {
    color: var(--text-primary);
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 15px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-2xl);
}

.footer-column h4 {
    margin-bottom: var(--spacing-lg);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.footer-column a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    padding: var(--spacing-xs) 0;
    font-size: 15px;
    font-weight: 500;
    transition: all var(--animation-fast) var(--easing-out);
}

.footer-column a:hover {
    color: var(--primary);
    transform: translateX(4px);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-2xl);
    border-top: 1px solid var(--border-light);
    color: var(--text-tertiary);
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 968px) {
    .navbar {
        width: calc(100% - var(--spacing-xl));
        top: var(--spacing-sm);
    }
    
    .hero-cards {
        grid-template-columns: 1fr;
    }
    
    .hero-side-cards {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-lg);
    }
    
    .methods-showcase {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    h1 {
        font-size: 32px;
    }
    
    h2 {
        font-size: 24px;
    }
    
    .nav-links {
        display: none;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .hero-side-cards {
        grid-template-columns: 1fr;
    }
    
    .methods-showcase {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   ENHANCED RESPONSIVE DESIGN
   ========================================== */

/* Mobile Navigation Toggle Button */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    margin: 5px 0;
    transition: all 0.3s ease;
}

.mobile-nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Desktop - 1024px to 1440px */
@media (min-width: 1024px) and (max-width: 1439px) {
    /* Methods section - better proportions */
    .methods-layout {
        max-width: 100%;
        grid-template-columns: 2fr 3fr;
        gap: var(--spacing-xl);
    }
    
    .methods-grid {
        grid-template-columns: repeat(2, 1fr);
        column-gap: var(--spacing-xl);
        row-gap: var(--spacing-lg);
    }
}

/* Tablet - 768px to 1024px */
@media (max-width: 1024px) and (min-width: 769px) {
    .container {
        max-width: 90%;
    }
    
    /* Features - 3 columns */
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Experience - 2 columns */
    .experience-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .experience-card.large {
        grid-column: span 2;
    }
    
    /* Methods - smaller mockup */
    .mockup-card {
        min-height: 400px;
    }
    
    .methods-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile - 768px and below */
@media (max-width: 768px) {
    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
    }
    
    /* Container with proper padding */
    .container {
        max-width: 100%;
        padding: 0 16px;
        margin: 0 auto;
        box-sizing: border-box;
    }
    
    /* Mobile Navigation */
    .navbar {
        position: relative;
        z-index: 1000;
        background: var(--background);
        padding: var(--spacing-xl) 0;
        min-height: 100px;
        box-shadow: none !important;
        border-radius: 0;
    }
    
    .nav-wrapper {
        position: relative;
        padding: 0;
        min-height: 60px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .mobile-nav-toggle {
        display: block;
        position: relative;
        z-index: 10001;
    }
    
    .nav-links {
        position: fixed;
        top: 100px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 100px);
        background: var(--background);
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: left 0.3s ease;
        z-index: 9999;
        box-shadow: none;
        border-radius: 0;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .nav-links.active {
        left: 0 !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        animation: slideInFromLeft 0.3s ease-out;
    }
    
    @keyframes slideInFromLeft {
        from {
            left: -100%;
            opacity: 0;
        }
        to {
            left: 0;
            opacity: 1;
        }
    }
    
    .nav-links a {
        font-size: 1.5rem;
        padding: var(--spacing-lg);
        width: 100%;
        text-align: center;
    }
    
    /* Hero - Stack everything */
    .hero {
        padding: var(--spacing-xl) 0;
        overflow: hidden;
        width: 100%;
    }
    
    .hero-cards {
        grid-template-columns: 1fr !important;
        gap: var(--spacing-xl);
        padding: 0;
        max-width: 100%;
        overflow: hidden;
    }
    
    /* On mobile, both stacks should behave the same */
    .hero-left-stack,
    .hero-mockup-card {
        width: 100%;
        max-width: 100%;
        gap: var(--spacing-xl);
    }
    
    .hero-title-card {
        padding: var(--spacing-xl);
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .hero-title-card h1 {
        font-size: 2.75rem;
        text-align: center;
        word-wrap: break-word;
    }
    
    .hero-subtitle-card {
        text-align: center;
        padding: var(--spacing-xl);
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .hero-subtitle-card p {
        font-size: 1.125rem;
        line-height: 1.6;
    }
    
    /* Split hero mockup into two separate cards on mobile */
    .hero-mockup-card {
        display: flex !important;
        flex-direction: column !important;
        gap: var(--spacing-xl);
        width: 100%;
        max-width: 100%;
        padding: 0 !important;
        margin: 0;
        background: transparent !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        box-sizing: border-box;
    }
    
    /* Card wrapper for the phone mockup with blue background */
    .hero-mockup-card .mockup-phone-card {
        background: var(--water);
        padding: var(--spacing-2xl);
        border-radius: var(--radius-xl);
        box-shadow: 0 8px 32px rgba(183, 219, 255, 0.3);
        min-height: 400px;
        width: 100%;
        box-sizing: border-box;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    /* Phone mockup container (just holds the image) */
    .hero-mockup-card .phone-mockup {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .hero-mockup-card .phone-mockup img {
        max-width: 250px;
        width: 100%;
        height: auto;
        object-fit: contain;
    }
    
    /* Features card with purple background */
    .hero-mockup-card .mockup-features {
        background: var(--dinner);
        padding: var(--spacing-xl);
        border-radius: var(--radius-xl);
        box-shadow: 0 8px 32px rgba(224, 195, 252, 0.3);
        display: flex;
        flex-direction: column;
        gap: var(--spacing-md);
        width: 100%;
        box-sizing: border-box;
    }
    
    .hero-mockup-card .mockup-features-row {
        display: flex;
        flex-wrap: wrap;
        gap: var(--spacing-sm);
        justify-content: center;
    }
    
    .download-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .app-store-btn, .google-play-btn {
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .app-store-btn img,
    .google-play-btn img {
        height: 48px;
        width: auto;
    }
    
    /* Features - 2 columns */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }
    
    .feature-card {
        padding: var(--spacing-lg);
    }
    
    .feature-card h3 {
        font-size: 1rem;
        font-weight: 600;
    }
    
    /* Experience - Single column */
    .experience-grid {
        grid-template-columns: 1fr;
    }
    
    .experience-card {
        grid-column: 1 !important;
    }
    
    /* Methods - Stack */
    .methods-layout {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .mockup-section {
        order: -1; /* Mockup first on mobile */
    }
    
    .methods-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .mockup-card {
        padding: var(--spacing-xl);
    }
    
    .method-card {
        padding: var(--spacing-lg);
    }
    
    .method-content h4 {
        font-size: 1.125rem;
    }
    
    .method-content p {
        font-size: 1rem;
    }
    
    /* Pricing - Stack */
    .pricing-cards {
        grid-template-columns: 1fr;
    }
    
    .pricing-toggle {
        display: flex;
        justify-content: center;
        margin-bottom: var(--spacing-xl);
    }
    
    /* Footer - Stack */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    /* Pricing cards */
    .pricing-card {
        padding: var(--spacing-xl);
    }
    
    .plan-price .amount {
        font-size: 2.5rem;
    }
    
    /* Typography */
    .section-title {
        font-size: 2.25rem;
        text-align: center;
        padding: 0 var(--spacing-md);
    }
    
    .section-subtitle {
        font-size: 1.125rem;
        text-align: center;
        padding: 0 var(--spacing-md);
    }
    
    h1 {
        font-size: 2.75rem !important;
    }
    
    h2 {
        font-size: 2rem !important;
    }
    
    h3 {
        font-size: 1.25rem !important;
    }
    
    p {
        font-size: 1rem;
        line-height: 1.6;
    }
}

/* Small Mobile - 480px and below */
@media (max-width: 480px) {
    /* Even smaller spacing */
    .container {
        padding: 0 16px;
    }
    
    /* Hero */
    .hero-title-card h1 {
        font-size: 2.25rem;
    }
    
    .hero-title-card,
    .hero-subtitle-card,
    .hero-mockup-card {
        padding: var(--spacing-lg);
    }
    
    .hero-subtitle-card p {
        font-size: 1rem;
    }
    
    /* Features - Single column */
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card {
        padding: var(--spacing-md);
    }
    
    /* Method cards compact */
    .method-card {
        padding: var(--spacing-md);
    }
    
    .method-features {
        flex-wrap: wrap;
    }
    
    /* Pricing */
    .pricing-card {
        padding: var(--spacing-lg);
    }
    
    .plan-price .amount {
        font-size: 2rem;
    }
    
    /* Buttons */
    .plan-button {
        width: 100%;
        padding: var(--spacing-md);
    }
    
    /* Google Play button - bigger to compensate for different aspect ratio */
    .google-play-btn img {
        height: 62px !important;
        width: auto;
        margin: 0 !important;
    }
}

/* Extra Small - 375px and below (iPhone SE) */
@media (max-width: 375px) {
    .hero-title-card h1 {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .feature-card h3 {
        font-size: 0.875rem;
    }
}

/* Large Desktop - 1440px+ */
@media (min-width: 1440px) {
    .container {
        max-width: 1280px;
    }
    
    .features-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    /* Methods section - use full width with 2x3 grid */
    .methods-layout {
        max-width: 100%;
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-xxl);
    }
    
    .mockup-card {
        min-height: 550px;
    }
    
    .methods-grid {
        grid-template-columns: repeat(2, 1fr);
        column-gap: var(--spacing-xxl);
        row-gap: var(--spacing-xl);
    }
    
    .method-card {
        padding: var(--spacing-lg);
    }
}

/* Ultra Wide - 1920px+ */
@media (min-width: 1920px) {
    .container {
        max-width: 1440px;
    }
    
    .hero-title-card h1 {
        font-size: 4.5rem;
    }
    
    /* Methods section - 2x3 grid with generous spacing */
    .methods-layout {
        max-width: 100%;
        grid-template-columns: 45% 55%;
        gap: var(--spacing-xxxl);
    }
    
    .mockup-card {
        min-height: 650px;
    }
    
    .methods-grid {
        grid-template-columns: repeat(2, 1fr);
        column-gap: var(--spacing-xxxl);
        row-gap: var(--spacing-xxl);
    }
    
    .method-card {
        padding: calc(var(--spacing-xl) * 1.25);
    }
    
    .method-header {
        gap: var(--spacing-lg);
    }
    
    .method-features {
        gap: var(--spacing-md);
        margin-top: var(--spacing-md);
    }
}

/* Hover states only on non-touch devices */
@media (hover: hover) {
    .feature-card:hover,
    .method-card:hover,
    .pricing-card:hover {
        transform: translateY(-4px);
    }
}

/* Landscape phones */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: var(--spacing-lg) 0;
    }
    
    .nav-links {
        flex-direction: row;
        padding: var(--spacing-md);
    }
}

/* High DPI screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}