/* StoryTime Personalized - Professional Website Styles */

/* CSS Variables */
:root {
    /* Colors */
    --primary-navy: #1a365d;
    --secondary-purple: #764ba2;
    --accent-gold: #d69e2e;
    --soft-lavender: #e6e6fa;
    --warm-white: #faf9f7;
    --light-grey: #f0f0f0;
    --text-dark: #2d3748;
    --text-light: #718096;
    --border-light: #e2e8f0;
    --success-green: #48bb78;
    --danger-red: #f56565;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    
    /* Typography */
    --font-display: 'Comfortaa', cursive;
    --font-body: 'Inter', sans-serif;
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;
}

/* Critical CSS for Above-the-fold Content */
.navbar, .hero, .hero *, .primary-cta, .secondary-cta {
    /* Preload critical styles for immediate rendering */
    will-change: transform;
}

/* Lazy Loading Image Optimization - Chrome Desktop Fix */
img[loading="lazy"] {
    opacity: 1; /* Start visible for Chrome compatibility */
    transition: opacity 0.3s ease;
}

/* Only hide if explicitly marked as loading */
img[loading="lazy"]:not(.loaded):not(.error-handled) {
    opacity: 0.1; /* Very low opacity instead of 0 for Chrome */
}

img[loading="lazy"].loaded,
img[loading="lazy"]:not([loading]) {
    opacity: 1 !important;
}

/* Ensure images are visible after load */
img.loaded {
    opacity: 1 !important;
}

/* Image placeholder optimization */
.story-cover-placeholder,
.story-image-placeholder,
.icon-placeholder {
    background: linear-gradient(135deg, var(--soft-lavender), var(--warm-white));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--text-light);
    min-height: 200px;
}

/* Performance optimizations */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Optimize animations for better performance */
@media (prefers-reduced-motion: no-preference) {
    .avatar {
        will-change: transform;
    }
    
    .floating-elements > * {
        will-change: transform;
    }
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--warm-white);
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--space-sm);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
    margin-bottom: var(--space-sm);
    color: var(--text-light);
    line-height: 1.7;
}

/* Buttons */
button, .btn {
    font-family: var(--font-body);
    font-weight: 500;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition-normal);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    position: relative;
    overflow: hidden;
}

.primary-cta {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--secondary-purple) 100%);
    color: white;
    padding: var(--space-md) var(--space-xl);
    font-size: var(--text-base);
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    gap: 0.25rem;
    border-radius: var(--radius-lg);
    font-family: var(--font-body);
    transition: var(--transition-normal);
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
}

.primary-cta:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, var(--secondary-purple) 0%, var(--primary-navy) 100%);
}

.primary-cta .sub-text {
    font-size: var(--text-sm);
    opacity: 0.9;
    font-weight: 400;
}

.secondary-cta {
    background: transparent;
    color: var(--primary-navy);
    border: 2px solid var(--primary-navy);
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--text-base);
    font-weight: 600;
    border-radius: var(--radius-lg);
    font-family: var(--font-body);
    transition: var(--transition-normal);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
}

.secondary-cta:hover {
    background: var(--primary-navy);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
    transition: var(--transition-normal);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-sm) var(--space-md);
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 600;
    color: var(--primary-navy);
}

.logo-image, .footer-logo-image {
    height: 40px;
    width: auto;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.footer-logo-image {
    height: 32px;
}

.logo-icon {
    font-size: var(--text-3xl);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-navy);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: var(--transition-fast);
}

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

/* Login Button */
.nav-login {
    color: var(--primary-navy);
    text-decoration: none;
    font-weight: 500;
    padding: var(--space-xs) var(--space-md);
    border: 1px solid var(--primary-navy);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.nav-login:hover {
    background: var(--primary-navy);
    color: white;
    transform: translateY(-1px);
}

.nav-cta {
    background: var(--primary-navy);
    color: white;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: var(--transition-fast);
    text-decoration: none;
}

.nav-cta:hover {
    background: var(--secondary-purple);
    transform: translateY(-1px);
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-navy);
    transition: var(--transition-fast);
}

/* Hero Section */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--soft-lavender) 0%, var(--warm-white) 100%);
    overflow: hidden;
    padding-top: 120px; /* Adjusted to account for fixed navbar height */
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.star, .cloud, .moon {
    position: absolute;
    font-size: var(--text-2xl);
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
}

.star-1 { top: 20%; left: 10%; animation-delay: 0s; }
.star-2 { top: 30%; right: 15%; animation-delay: 2s; }
.star-3 { bottom: 40%; left: 20%; animation-delay: 4s; }
.cloud-1 { top: 15%; right: 25%; animation-delay: 1s; }
.cloud-2 { bottom: 30%; right: 10%; animation-delay: 3s; }
.moon { top: 10%; left: 80%; animation-delay: 5s; }

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    width: 100%;
}

.hero-content {
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: var(--space-md);
    line-height: 1.1;
    color: var(--primary-navy);
}

.text-gradient {
    background: linear-gradient(135deg, var(--secondary-purple) 0%, var(--accent-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: var(--text-xl);
    margin-bottom: var(--space-2xl);
    color: var(--text-light);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Story Preview Card */
.story-preview-card {
    background: white;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    padding: var(--space-lg);
    margin: var(--space-2xl) auto;
    max-width: 500px;
    transform: translateY(-5px);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.story-preview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-purple), var(--accent-gold));
}

.story-cover {
    position: relative;
    margin-bottom: var(--space-md);
}

.story-cover-image, .story-cover-placeholder {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.story-cover-placeholder {
    background: linear-gradient(135deg, var(--soft-lavender), var(--warm-white));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.sample-badge {
    position: absolute;
    top: var(--space-xs);
    right: var(--space-xs);
    background: var(--accent-gold);
    color: white;
    padding: 0.25rem var(--space-xs);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: 600;
}

.story-info h3 {
    color: var(--primary-navy);
    margin-bottom: var(--space-xs);
    font-size: var(--text-xl);
}

.story-text {
    color: var(--text-light);
    margin-bottom: var(--space-md);
    font-style: italic;
    line-height: 1.6;
}

.play-button {
    background: linear-gradient(135deg, var(--secondary-purple), var(--primary-navy));
    color: white;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-md);
    font-weight: 500;
    width: 100%;
    justify-content: center;
    gap: var(--space-xs);
}

.play-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.play-icon {
    font-size: var(--text-sm);
}

/* Sample Audio Player */
.sample-audio-player {
    width: 100%;
    height: 40px;
    margin-top: var(--space-sm);
    border-radius: var(--radius-md);
    outline: none;
    background: linear-gradient(135deg, var(--secondary-purple), var(--primary-navy));
}

.sample-audio-player::-webkit-media-controls-panel {
    background: linear-gradient(135deg, var(--secondary-purple), var(--primary-navy));
    border-radius: var(--radius-md);
}

.sample-audio-player::-webkit-media-controls-play-button,
.sample-audio-player::-webkit-media-controls-pause-button {
    background-color: white;
    border-radius: 50%;
    margin-left: var(--space-xs);
}

.play-button-fallback {
    background: linear-gradient(135deg, var(--secondary-purple), var(--primary-navy));
    color: white;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-md);
    font-weight: 500;
    width: 100%;
    justify-content: center;
    gap: var(--space-xs);
    border: none;
    cursor: pointer;
    transition: var(--transition-normal);
}

.play-button-fallback:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* CTA Group */
.cta-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    margin: var(--space-2xl) 0;
}

/* Social Proof */
.social-proof {
    margin-top: var(--space-2xl);
    text-align: center;
}

.avatars {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: var(--space-lg);
    position: relative;
    overflow: hidden;
    max-width: 100%;
}

.avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xl);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 3px solid white;
    overflow: hidden;
    position: relative;
    margin-left: -8px;
    transition: var(--transition-normal);
    z-index: 1;
    flex-shrink: 0;
}

.avatar:first-child {
    margin-left: 0;
}

.avatar:hover {
    transform: translateY(-4px) scale(1.1);
    z-index: 10;
    box-shadow: 0 8px 25px rgba(118, 75, 162, 0.3);
}

.avatar::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--secondary-purple), var(--accent-gold));
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: var(--transition-normal);
}

.avatar:hover::before {
    opacity: 1;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.social-proof p {
    color: var(--text-light);
    font-size: var(--text-base);
    font-weight: 500;
    margin-top: var(--space-sm);
}

/* Problem/Solution Section */
.problem-solution {
    padding: var(--space-2xl) 0;
    background: white;
}

.problem, .solution {
    margin-bottom: var(--space-2xl);
}

.problem h2, .solution h2 {
    text-align: center;
    color: var(--primary-navy);
    margin-bottom: var(--space-xl);
}

.pain-points, .benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-xl);
    max-width: 1100px;
    margin: 0 auto;
}

.pain-card, .benefit-card {
    background: white;
    padding: var(--space-xl);
    border-radius: var(--radius-2xl);
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
    border: 1px solid var(--border-light);
}

.pain-card:hover, .benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.pain-icon, .benefit-icon {
    width: 120px;
    height: 120px;
    object-fit: cover;
    margin: 0 auto var(--space-lg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.pain-card .emoji, .benefit-card .emoji {
    font-size: 4rem;
    margin-bottom: var(--space-lg);
    display: block;
}

.pain-card p, .benefit-card p {
    color: var(--text-dark);
    font-weight: 500;
    font-style: italic;
    font-size: var(--text-xl);
    line-height: 1.5;
}

/* How It Works Section */
.how-it-works {
    padding: var(--space-2xl) 0;
    background: linear-gradient(135deg, var(--soft-lavender) 0%, var(--warm-white) 100%);
}

.section-title {
    text-align: center;
    color: var(--primary-navy);
    margin-bottom: var(--space-2xl);
    font-size: var(--text-4xl);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.step {
    text-align: center;
    position: relative;
    padding-left: var(--space-xl);
}

.step-number {
    position: absolute;
    top: 0;
    left: 0;
    width: 50px;
    height: 50px;
    background: var(--accent-gold);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--text-xl);
    z-index: 2;
    box-shadow: var(--shadow-lg);
}

.step-icon {
    margin-bottom: var(--space-lg);
    position: relative;
    display: flex;
    justify-content: center;
}

.step-image, .icon-placeholder {
    width: 180px;
    height: 140px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.icon-placeholder {
    background: linear-gradient(135deg, var(--soft-lavender), var(--warm-white));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.step h3 {
    color: var(--primary-navy);
    margin-bottom: var(--space-sm);
    font-size: var(--text-2xl);
}

.step p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: var(--text-lg);
}

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

.demo-button {
    background: var(--accent-gold);
    color: white;
    padding: var(--space-md) var(--space-xl);
    font-size: var(--text-lg);
    font-weight: 600;
    border-radius: var(--radius-lg);
    text-decoration: none;
    display: inline-block;
}

.demo-button:hover {
    background: #b7791f;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Features Section */
.features {
    padding: var(--space-2xl) 0;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-xl);
}

.feature-card {
    background: linear-gradient(135deg, rgba(118, 75, 162, 0.05) 0%, rgba(214, 158, 46, 0.05) 100%);
    padding: var(--space-xl);
    border-radius: var(--radius-2xl);
    text-align: center;
    transition: var(--transition-normal);
    border: 1px solid var(--border-light);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-card .icon {
    margin-bottom: var(--space-md);
}

.feature-icon-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    margin: 0 auto;
    border-radius: var(--radius-lg);
}

.feature-card h3 {
    color: var(--primary-navy);
    margin-bottom: var(--space-sm);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Story Showcase */
.story-showcase {
    padding: var(--space-2xl) 0;
    background: linear-gradient(135deg, var(--soft-lavender) 0%, var(--warm-white) 100%);
}

.story-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-xl);
}

.story-card {
    background: white;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.story-card.featured {
    border: 3px solid var(--accent-gold);
    position: relative;
}

.story-card.featured::before {
    content: '✨ Featured';
    position: absolute;
    top: var(--space-sm);
    left: var(--space-sm);
    background: var(--accent-gold);
    color: white;
    padding: 0.25rem var(--space-xs);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: 600;
    z-index: 2;
}

.story-card-image, .story-image-placeholder {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.story-image-placeholder {
    background: linear-gradient(135deg, var(--soft-lavender), var(--warm-white));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.story-card h3 {
    padding: 0 var(--space-lg);
    margin: var(--space-md) 0 var(--space-xs);
    color: var(--primary-navy);
}

.tags {
    padding: 0 var(--space-lg);
    display: flex;
    gap: var(--space-xs);
    margin-bottom: var(--space-sm);
    flex-wrap: wrap;
}

.tags span {
    background: var(--soft-lavender);
    color: var(--secondary-purple);
    padding: 0.25rem var(--space-xs);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: 500;
}

.story-preview {
    padding: 0 var(--space-lg);
    color: var(--text-light);
    font-style: italic;
    margin-bottom: var(--space-md);
    line-height: 1.6;
}

.preview-btn {
    margin: 0 var(--space-lg) var(--space-lg);
    background: var(--primary-navy);
    color: white;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-md);
    font-weight: 500;
    width: calc(100% - 2 * var(--space-lg));
}

.preview-btn:hover {
    background: var(--secondary-purple);
    transform: translateY(-2px);
}

/* Testimonials */
.testimonials {
    padding: var(--space-2xl) 0;
    background: white;
}

.testimonial-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-xl);
}

.testimonial {
    background: linear-gradient(135deg, rgba(118, 75, 162, 0.05) 0%, rgba(214, 158, 46, 0.05) 100%);
    padding: var(--space-xl);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--border-light);
    transition: var(--transition-normal);
    cursor: pointer;
}

.testimonial:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.testimonial.featured {
    border: 2px solid var(--accent-gold);
    background: linear-gradient(135deg, rgba(214, 158, 46, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.stars {
    margin-bottom: var(--space-sm);
    font-size: var(--text-lg);
}

.testimonial p {
    color: var(--text-dark);
    font-style: italic;
    margin-bottom: var(--space-md);
    line-height: 1.7;
    font-size: var(--text-lg);
}

.author {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.author-photo, .author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-avatar {
    background: var(--soft-lavender);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xl);
}

.author-info strong {
    color: var(--primary-navy);
    display: block;
    font-weight: 600;
}

.author-info span {
    color: var(--text-light);
    font-size: var(--text-sm);
}

/* Pricing */
.pricing {
    padding: var(--space-2xl) 0;
    background: linear-gradient(135deg, var(--soft-lavender) 0%, var(--warm-white) 100%);
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    max-width: 1000px;
    margin: 0 auto;
}

.plan {
    background: white;
    padding: var(--space-xl);
    border-radius: var(--radius-2xl);
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
    position: relative;
    border: 2px solid transparent;
}

.plan:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.plan.popular {
    border-color: var(--accent-gold);
    transform: scale(1.05);
}

.plan.popular .badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-gold);
    color: white;
    padding: 0.5rem var(--space-md);
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: var(--text-sm);
}

.plan h3 {
    color: var(--primary-navy);
    margin-bottom: var(--space-md);
    font-size: var(--text-2xl);
}

.price {
    margin-bottom: var(--space-lg);
}

.price .amount {
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--primary-navy);
}

.price .period {
    color: var(--text-light);
    font-size: var(--text-lg);
}

.trial-badge {
    background: var(--success-green);
    color: white;
    padding: 0.25rem var(--space-sm);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: var(--space-lg);
    display: inline-block;
}

.plan ul {
    list-style: none;
    margin-bottom: var(--space-xl);
    text-align: left;
}

.plan li {
    padding: var(--space-xs) 0;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.plan-button {
    background: var(--primary-navy);
    color: white;
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-lg);
    font-weight: 600;
    width: 100%;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: var(--transition-normal);
}

.plan-button:hover {
    background: var(--secondary-purple);
    transform: translateY(-2px);
}

.plan.popular .plan-button {
    background: var(--accent-gold);
}

.plan.popular .plan-button:hover {
    background: #b7791f;
}

/* Final CTA */
.final-cta {
    padding: var(--space-2xl) 0;
    background: var(--primary-navy);
    color: white;
    text-align: center;
}

.cta-content h2 {
    color: white;
    margin-bottom: var(--space-md);
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--text-lg);
    margin-bottom: var(--space-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.trust-badges .badge {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.badge-icon {
    font-size: var(--text-xl);
}

.final-cta-button {
    background: var(--accent-gold);
    color: white;
    padding: var(--space-lg) var(--space-2xl);
    font-size: var(--text-xl);
    font-weight: 600;
    border-radius: var(--radius-xl);
    flex-direction: column;
    gap: 0.25rem;
    text-decoration: none;
    display: inline-flex;
}

.final-cta-button:hover {
    background: #b7791f;
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.cta-arrow {
    font-size: var(--text-sm);
    opacity: 0.9;
    font-weight: 400;
}

/* Mobile Sticky CTA */
.mobile-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: var(--space-sm);
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
    z-index: 999;
    transform: translateY(100%);
    transition: var(--transition-normal);
    opacity: 0;
    display: none;
}

.mobile-cta-button {
    width: 100%;
    background: var(--primary-navy);
    color: white;
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: var(--text-lg);
    text-decoration: none;
    display: block;
    text-align: center;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer-title {
    color: white;
    margin-bottom: var(--space-md);
    font-size: var(--text-lg);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-xs);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition-fast);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: var(--space-lg);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Navigation */
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu.active {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: var(--space-md);
        box-shadow: var(--shadow-lg);
    }

    .nav-dropdown.active .dropdown-content {
        display: flex;
        flex-direction: column;
        position: static;
        background-color: transparent;
        box-shadow: none;
        padding-left: var(--space-md);
        width: 100%;
    }

    .nav-dropdown.active .dropdown-content a {
        padding: 8px 0;
        color: var(--text-light);
    }
    
    /* Logo adjustments for mobile */
    .logo-image, .footer-logo-image {
        height: 32px;
    }
    
    .footer-logo-image {
        height: 28px;
    }
    
    /* Hero */
    .hero {
        min-height: 90vh;
        padding-top: 100px;
    }
    
    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .hero-subtitle {
        font-size: var(--text-lg);
    }

    /* Article Header for individual story pages */
    .article-header {
        padding-top: calc(80px + var(--space-lg));
        padding-bottom: var(--space-lg);
    }
    .article-header .article-title {
        font-size: var(--text-2xl); /* Slightly larger */
    }
    .article-header .article-subtitle {
        font-size: var(--text-sm); /* Slightly larger */
    }

    .article-content-wrapper {
        padding-left: var(--space-sm);
        padding-right: var(--space-sm);
    }
    
    /* CTA Group */
    .cta-group {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .primary-cta, .secondary-cta {
        width: 100%;
        max-width: 300px;
    }
    
    /* Mobile Avatar Fixes */
    .avatars {
        justify-content: center;
        overflow: hidden;
        max-width: 100%;
        padding: 0 var(--space-md);
    }
    
    .avatar {
        width: 48px !important;
        height: 48px !important;
        margin-left: -6px;
        flex-shrink: 0;
        border: 2px solid white;
        border-radius: 50%;
        overflow: hidden;
        box-sizing: border-box;
        position: relative;
    }
    
    .avatar:first-child {
        margin-left: 0;
    }
    
    .avatar-img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 50% !important;
        box-sizing: border-box;
    }
    
    .avatar span {
        font-size: var(--text-base) !important;
    }
    
    /* Disable hover effects on mobile */
    .avatar:hover {
        transform: none !important;
        z-index: 1;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    
    .avatar::before {
        display: none;
    }
    
    /* Cards and Grids - Mobile optimizations for larger images */
    .pain-points, .benefits {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .pain-icon, .benefit-icon {
        width: 100px;
        height: 100px;
    }
    
    .pain-card .emoji, .benefit-card .emoji {
        font-size: 3.5rem;
    }
    
    .steps {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .step {
        padding-left: var(--space-lg);
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: var(--text-lg);
    }
    
    .step-image, .icon-placeholder {
        width: 150px;
        height: 115px;
    }
    
    .step h3 {
        font-size: var(--text-xl);
    }
    
    /* Other grids */
    .features-grid, .story-carousel, .testimonial-cards {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .pricing-cards {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .plan.popular {
        transform: none;
    }
    
    /* Trust badges */
    .trust-badges {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    /* Spacing adjustments */
    .container {
        padding: 0 var(--space-sm);
    }
    
    section {
        padding: var(--space-xl) 0;
    }
    
    /* Mobile sticky CTA show on mobile */
    .mobile-sticky-cta {
        display: block;
    }
}

@media (max-width: 480px) {
    /* Further mobile optimizations */
    .hero-title {
        font-size: clamp(1.75rem, 7vw, 2.5rem);
    }
    
    .section-title {
        font-size: var(--text-3xl);
    }

    
    
    .story-preview-card {
        margin: var(--space-lg) auto;
        padding: var(--space-md);
    }
    
    /* Avatar container mobile fix */
    .avatars {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.25rem;
        padding: 0 var(--space-sm);
        max-width: calc(100vw - 2rem);
    }
    
    .avatar {
        width: 40px;
        height: 40px;
        font-size: var(--text-lg);
        margin-left: -4px;
        border: 2px solid white;
        border-radius: 50%;
        overflow: hidden;
        box-sizing: border-box;
        position: relative;
    }
    .avatar:not(:first-child) {
        margin-left: -12px;
    }
    
    .avatar:first-child {
        margin-left: 0;
    }
    
    /* Disable hover effects on mobile for avatars */
    .avatar:hover {
        transform: none;
        z-index: 1;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    
    .avatar::before {
        display: none;
    }
    
    /* Logo adjustments for very small screens */
    .logo-image, .footer-logo-image {
        height: 28px;
    }
    
    .footer-logo-image {
        height: 24px;
    }
    
    /* Further reduce image sizes for very small screens */
    .pain-icon, .benefit-icon {
        width: 80px;
        height: 80px;
    }
    
    .step {
        padding-left: var(--space-md);
    }
    
    .step-number {
        width: 36px;
        height: 36px;
        font-size: var(--text-base);
    }
    
    .step-image, .icon-placeholder {
        width: 120px;
        height: 90px;
    }
    
    .pain-card p, .benefit-card p {
        font-size: var(--text-lg);
    }
}

@media (max-width: 480px) {
    /* Article Header for individual story pages */
    .article-header {
        padding-top: calc(80px + var(--space-md));
        padding-bottom: var(--space-md);
    }
    .article-header .article-title {
        font-size: var(--text-2xl); /* Slightly larger */
    }
    .article-header .article-subtitle {
        font-size: var(--text-sm); /* Slightly larger */
    }
}

/* Focus and accessibility */
.using-mouse *:focus {
    outline: none;
}

*:focus-visible {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .navbar, .mobile-sticky-cta, .floating-elements {
        display: none;
    }
    
    .hero {
        min-height: auto;
        padding: var(--space-lg) 0;
    }
    
    * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --text-light: #000000;
        --border-light: #000000;
    }
    
    .story-preview-card, .feature-card, .testimonial, .plan {
        border: 2px solid #000000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .floating-elements {
        display: none;
    }
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown.active .dropdown-content {
    display: block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: var(--radius-md);
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {background-color: #f1f1f1}



.dropdown-arrow {
    font-size: 0.8em;
    margin-left: 5px;
}

.bg-light {
    background-color: var(--light-grey);
}

.content-section {
    padding: 5rem 0;
}

.content-section .feature-icon-img {
    width: 120px;
    height: 120px;
}

.content-section .step-image {
    width: 100%;
    max-width: 250px;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}
