/*
Theme Name: Tellmestories
Theme URI: https://tellmestories.ai
Author: Tellmestories Team
Author URI: https://tellmestories.ai
Description: Magical AI-powered custom stories via WhatsApp - The Silicon Valley way to create personalized stories for your children
Version: 2.0.7
License: GPL v2 or later
Text Domain: tellmestories
*/
/* Fonts now loaded via functions.php for better performance */
/* Modern Design System */
:root {
    /* Silicon Valley SaaS Color System - Warm & Professional */
    
    /* Primary Brand Colors */
    --primary: #FF9F67; /* Original Orange - CTAs & Primary Actions */
    --primary-light: #FFB584;
    --primary-dark: #E88650;
    --primary-hover: #D6751F;
    
    /* Brand Foundation */
    --burgundy: #400C08; /* Deep Burgundy - Text & Dark Elements */
    --burgundy-light: #5A1410;
    --burgundy-dark: #2A0805;
    
    --cream: #F4C793; /* Rich Cream - Cards & Sections */
    --cream-light: #F7D4A8;
    --cream-dark: #E6B67E;
    
    --light-cream: #FEF5EC; /* Light Cream - Main Backgrounds */
    
    /* Semantic Colors */
    --success: #22C55E;
    --warning: #F59E0B;
    --error: #EF4444;
    --info: #3B82F6;
    
    /* Neutral System - Warm Tones */
    --gray-50: #FEF5EC; /* Light Cream */
    --gray-100: #F4C793; /* Rich Cream */
    --gray-200: #E6B67E;
    --gray-300: #D4A574;
    --gray-400: #B8926A;
    --gray-500: #8B6B52;
    --gray-600: #6B5242;
    --gray-700: #400C08; /* Burgundy */
    --gray-800: #2A0805;
    --gray-900: #1A0503;
    
    /* Background Colors */
    --bg-primary: #FEF5EC; /* Warm main background */
    --bg-secondary: #F4C793; /* Rich cream for cards */
    --bg-white: #FFFFFF;
    /* Typography */
    --font-sans: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    /* Container */
    --container-max: 1280px;
    --container-padding: 1.5rem;
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    /* Shadows */
    --shadow-soft: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-large: 0 10px 40px rgba(0, 0, 0, 0.1);
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Header Variables for Performance */
    --header-height: 50px;
    --header-height-compact: 45px;
}
/* Global Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--burgundy);
    background-color: var(--bg-primary);
    min-height: 100vh;
    margin: 0;
    padding-top: calc(var(--header-height) + 1rem);
    padding-left: 0;
    overflow-x: hidden;
}
/* Page wrapper - ensure full width */
#page,
.site,
#content,
.site-content {
    width: 100vw;
    max-width: 100vw;
}
/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-sans);
    font-weight: 700;
    line-height: 1.2;
    color: var(--burgundy);
}
h1 {
    font-size: clamp(2rem, 5vw, 3.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
}
h2 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: var(--space-lg);
}
h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    margin-bottom: var(--space-md);
}
h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 600;
    margin-bottom: var(--space-md);
}
p {
    margin-bottom: var(--space-lg);
    color: var(--gray-600);
    line-height: 1.8;
}
.lead {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    line-height: 1.8;
    color: var(--gray-600);
    font-weight: 400;
}
/* Links */
a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}
a:hover {
    color: var(--primary-dark);
}
/* Container System */
.container {
    max-width: var(--container-max);
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}
.section-full {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}
/* Header - Fixed and Clean */
.site-header {
    width: 100%;
    border-bottom: 1px solid var(--gray-100);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    transition: all 0.3s ease;
}

/* Override section-full negative margins for header */
.site-header.section-full {
    margin-left: 0;
    margin-right: 0;
    left: 0;
    right: 0;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    border-bottom-color: var(--primary);
}

.site-header.scrolled .header-inner {
    padding: 0.6rem 0;
    min-height: var(--header-height-compact);
}

.site-header.scrolled .logo-icon {
    width: 32px;
    height: 32px;
}

.site-header.scrolled .logo-t {
    font-size: 20px;
}

.site-header.scrolled .logo-text .logo-line-1,
.site-header.scrolled .logo-text .logo-line-2 {
    font-size: 20px;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem var(--container-padding);
    min-height: var(--header-height);
    max-width: var(--container-max);
    margin: 0 auto;
    width: 100%;
    position: relative;
}
.site-branding {
    display: flex;
    align-items: center;
}

/* Navigation Layout */
.main-navigation {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}
.site-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-text {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    font-family: 'Delius Swash Caps', cursive;
    line-height: 1;
    text-align: center;
    gap: 6px;
}

.logo-line-1 {
    font-size: 24px;
    color: #400C08;
    letter-spacing: 0.3px;
    font-weight: 400;
}

.logo-line-2 {
    font-size: 24px;
    color: #400C08;
    letter-spacing: 0.8px;
    font-weight: 700;
}

/* Logo hover effects removed for clean interaction */
.site-logo:hover,
.site-logo:focus,
.site-logo:active,
.site-logo:visited {
    text-decoration: none;
}

/* Dark mode logo support */
[data-theme="dark"] .logo-line-1,
[data-theme="dark"] .logo-line-2 {
    color: #FEF5EC;
}

/* Unused .logo-emoji removed for cleaner CSS */

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-lg);
    align-items: center;
}
.nav-menu li {
    list-style: none;
}
.nav-menu a:not(.btn) {
    color: var(--gray-700);
    font-weight: 500;
    font-size: 0.875rem;
    transition: color var(--transition-fast);
    padding: 0.375rem 0.75rem;
}
.nav-menu a:not(.btn):hover {
    color: var(--primary);
}
/* Compact navigation for French */
html[lang*="fr"] .nav-menu {
    gap: 1rem;
}
html[lang*="fr"] .nav-menu a:not(.btn) {
    padding: 0.25rem 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
}
html[lang*="fr"] .nav-menu li {
    margin: 0;
}
/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
    cursor: pointer;
    border: none;
    text-decoration: none;
    gap: 0.5rem;
}
.btn-primary {
    background: var(--primary);
    color: white;
}
.btn-primary:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}
.btn-secondary {
    background: var(--bg-white);
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
}
.btn-secondary:hover {
    background: var(--gray-50);
    border-color: var(--gray-300);
}
.btn-large {
    padding: 1rem 2rem;
    font-size: 1.0625rem;
}
.btn-whatsapp {
    background: #25D366;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-whatsapp:hover {
    background: #20BD5C;
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-whatsapp svg {
    flex-shrink: 0;
}
/* Cards */
.card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-soft);
    transition: all var(--transition-base);
}
.card:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-4px);
}
/* Sections */
section {
    width: 100%;
    padding: var(--space-4xl) 0;
}
section.bg-white {
    background: var(--bg-white);
}
section.bg-gray {
    background: var(--bg-primary);
}
/* Hero Section */
.hero {
    width: 100%;
    padding-top: 120px;
    padding-bottom: var(--space-4xl);
    background: linear-gradient(180deg, rgba(255, 159, 103, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
    overflow: hidden;
    position: relative;
}
.hero-content {
    text-align: center;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 1.125rem;
    background: rgba(255, 159, 103, 0.1);
    color: var(--primary-dark);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--space-xl);
    border: 1px solid rgba(255, 159, 103, 0.2);
}
.hero h1 {
    margin-bottom: var(--space-xl);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.hero .lead {
    margin-bottom: var(--space-2xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.hero-cta {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-lg);
}
/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-3xl);
}
.feature-card {
    background: var(--bg-white);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: all var(--transition-base);
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}
.feature-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto var(--space-lg);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}
.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}
.feature-card p {
    font-size: 0.9375rem;
    line-height: 1.7;
    margin: 0;
}
/* Steps */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-2xl);
    margin-top: var(--space-3xl);
}
.step {
    text-align: center;
}
.step-number {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--space-md);
    background: var(--primary);
    color: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.375rem;
}
.step h4 {
    font-size: 1.125rem;
    margin-bottom: var(--space-sm);
}
.step p {
    font-size: 0.9375rem;
    margin: 0;
}
/* Testimonials */
.testimonial-card {
    background: var(--bg-white);
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    max-width: 700px;
    margin: 0 auto var(--space-xl);
}
.testimonial-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--gray-700);
    margin-bottom: var(--space-lg);
    font-style: italic;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}
.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    background-size: cover;
    background-position: center;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Specific testimonial avatars with optimized images */
.testimonial-card:first-child .author-avatar {
    background-image: url('http://localhost:8888/tellmestories/wp-content/uploads/2025/09/IMG_45245-150x150.png');
}

.testimonial-card:nth-child(2) .author-avatar {
    background-image: url('http://localhost:8888/tellmestories/wp-content/uploads/2025/09/Profil_pic_Dave-150x150.png');
}

/* Dark mode testimonial avatars */
[data-theme="dark"] .author-avatar {
    border-color: #374151;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* High-DPI displays optimization */
@media only screen and (-webkit-min-device-pixel-ratio: 2),
       only screen and (min--moz-device-pixel-ratio: 2),
       only screen and (-o-min-device-pixel-ratio: 2/1),
       only screen and (min-device-pixel-ratio: 2),
       only screen and (min-resolution: 192dpi),
       only screen and (min-resolution: 2dppx) {
    .testimonial-card:first-child .author-avatar {
        background-image: url('http://localhost:8888/tellmestories/wp-content/uploads/2025/09/IMG_45245-200x300.png');
    }
    
    .testimonial-card:nth-child(2) .author-avatar {
        background-image: url('http://localhost:8888/tellmestories/wp-content/uploads/2025/09/Profil_pic_Dave-200x300.png');
    }
}
    color: var(--burgundy);
    font-size: 1.25rem;

.addon-content p {
    margin: 0 0 1rem 0;
    color: var(--gray-600);
}

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

.addon-price small {
    display: block;
    font-size: 0.8rem;
    color: var(--gray-500);
    font-weight: 400;
}

/* Subscription Info Section */
.subscription-info {
    text-align: center;
    margin: 3rem 0;
    padding: 2rem;
    background: white;
    border-radius: 16px;
    border: 2px solid var(--gray-200);
}

.subscription-info h3 {
    font-size: 1.5rem;
    color: var(--burgundy);
    margin-bottom: 1rem;
}

.subscription-info p {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

/* Print Option */
.print-option {
    margin: 3rem 0;
}

.print-card {
    background: var(--cream);
    border: 2px solid var(--primary);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.print-content h4 {
    font-size: 1.25rem;
    color: var(--burgundy);
    margin-bottom: 0.5rem;
}

.print-content p {
    color: var(--gray-600);
    margin: 0;
    font-size: 0.95rem;
}

.print-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    margin: 0 2rem;
}

.print-price small {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-500);
    font-weight: 400;
    margin-top: 0.25rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pricing-cards-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .pricing-header h2 {
        font-size: 2rem;
    }
    
    .plan-header h3 {
        font-size: 1.25rem;
    }
    
    .amount {
        font-size: 2rem;
    }
    
    .print-card {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .print-price {
        margin: 0;
    }
}
/* Dark Mode Support for Pricing */
[data-theme="dark"] .pricing-card {
    background: #374151;
    border-color: #4B5563;
}

[data-theme="dark"] .pricing-card.popular {
    border-color: var(--primary);
    background: linear-gradient(135deg, #4B5563 0%, #374151 100%);
}

[data-theme="dark"] .plan-header h3 {
    color: #F9FAFB;
}

[data-theme="dark"] .plan-subtitle {
    color: #D1D5DB;
}

[data-theme="dark"] .price-section {
    background: rgba(255, 159, 103, 0.08);
    border-color: rgba(255, 159, 103, 0.15);
}

[data-theme="dark"] .currency,
[data-theme="dark"] .amount {
    color: #F9FAFB;
}

[data-theme="dark"] .price-detail {
    color: var(--primary-light);
}

[data-theme="dark"] .feature-item {
    color: #E5E7EB;
    border-bottom-color: #4B5563;
}

[data-theme="dark"] .feature-item.disabled {
    color: #9CA3AF;
    opacity: 0.6;
}

[data-theme="dark"] .feature-item.premium {
    background: linear-gradient(90deg, rgba(255, 159, 103, 0.1) 0%, transparent 100%);
}

[data-theme="dark"] .subscription-info {
    background: #374151;
    border-color: #4B5563;
}

[data-theme="dark"] .subscription-info h3 {
    color: #F9FAFB;
}

[data-theme="dark"] .subscription-info p {
    color: #D1D5DB;
}

[data-theme="dark"] .print-card {
    background: #374151;
    border-color: var(--primary);
}

[data-theme="dark"] .print-content h4 {
    color: #F9FAFB;
}

[data-theme="dark"] .print-content p {
    color: #D1D5DB;
}
/* Additional Options & Credit System */
.additional-options {
    margin: 3rem 0;
    text-align: center;
}

.option-card {
    background: var(--cream);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid var(--primary);
}

.option-content h4 {
    margin: 0 0 0.5rem 0;
    color: var(--burgundy);
    font-size: 1.25rem;
}

.option-content p {
    margin: 0 0 0.75rem 0;
    color: var(--gray-600);
    font-size: 0.95rem;
}

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

.option-price small {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-500);
    font-weight: 400;
}

.credit-system-explanation {
    margin: 4rem 0;
}

.explanation-card {
    background: linear-gradient(135deg, var(--light-cream) 0%, var(--cream) 100%);
    padding: 3rem 2rem;
    border-radius: var(--radius-xl);
    border: 2px solid var(--primary);
}

.explanation-card h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--burgundy);
    font-size: 1.75rem;
}

.credits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.credit-point {
    text-align: center;
    padding: 1.5rem 1rem;
}

.credit-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.credit-point h4 {
    margin-bottom: 1rem;
    color: var(--burgundy);
    font-size: 1.125rem;
}

.credit-point p {
    margin: 0;
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.6;
}

.pricing-footer {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--cream);
    color: var(--gray-500);
    font-size: 0.875rem;
}
.price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--gray-900);
    margin: var(--space-md) 0;
}
.price-currency {
    font-size: 1.5rem;
    vertical-align: super;
}
.price-period {
    font-size: 1rem;
    color: var(--gray-500);
}
/* Story Page Styles */
.story-hero {
    padding: 5rem 0 3rem;
    background: linear-gradient(135deg, var(--gray-50) 0%, white 100%);
}
.story-content {
    padding: 4rem 0;
    background: white;
}
.story-highlight {
    background: linear-gradient(90deg, rgba(255, 159, 103, 0.08) 0%, rgba(255, 159, 103, 0.03) 100%);
    border-left: 4px solid var(--primary);
    padding: 1.5rem 2rem;
    margin: 2.5rem 0;
    border-radius: var(--radius-lg);
}
/* Enhanced highlight box for article content */
.highlight-box {
    padding: 1.5rem 1.5rem 1.5rem 2rem;
    background: rgba(255, 159, 103, 0.08);
    border-left: 4px solid var(--primary);
    border-radius: 12px;
    margin: 2rem 0;
    border: 1px solid rgba(255, 159, 103, 0.15);
    box-shadow: 0 2px 12px rgba(255, 159, 103, 0.1);
    position: relative;
    font-style: italic;
    line-height: 1.7;
}

.highlight-box::before {
    content: '"';
    position: absolute;
    left: 8px;
    top: 8px;
    font-size: 2rem;
    color: var(--primary);
    font-family: serif;
    opacity: 0.6;
}

/* Dark mode support for highlight box */
[data-theme="dark"] .highlight-box {
    background: rgba(255, 159, 103, 0.12);
    border-left-color: var(--primary);
    border-color: rgba(255, 159, 103, 0.25);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .highlight-box::before {
    color: var(--primary-light);
}
/* Article Audio Player - Compact Design */
.article-audio {
    background: var(--gray-50);
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
    border: 1px solid var(--gray-200);
    display: flex;
    justify-content: center;
}
.article-audio.compact {
    padding: 0.75rem;
    margin: 0 0 1.5rem 0;
    background: transparent;
    border: none;
}
.article-audio audio {
    width: 100%;
    max-width: 400px;
    height: 40px;
}
/* Dark mode for audio player */
[data-theme="dark"] .article-audio {
    background: #374151;
    border-color: #4B5563;
}
[data-theme="dark"] .article-audio.compact {
    background: transparent;
}
.story-cta {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--gray-50);
    border-radius: var(--radius-xl);
    margin: 3rem 0;
}
/* Legal/Privacy Page Styles */
.legal-page .page-header {
    padding: 4rem 0 2rem;
    background: linear-gradient(135deg, var(--gray-50) 0%, white 100%);
    border-bottom: 1px solid var(--gray-200);
}
.legal-page .page-header-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.legal-page .page-title {
    margin-bottom: 1rem;
    color: var(--gray-900);
}
.legal-page .breadcrumb {
    font-size: 0.875rem;
    color: var(--gray-600);
}
.legal-page .breadcrumb a {
    color: var(--gray-600);
    text-decoration: none;
}
.legal-page .breadcrumb a:hover {
    color: var(--primary);
}
.legal-page .page-content {
    padding: 4rem 0;
    background: white;
    min-height: 60vh;
}
.legal-page .content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}
.legal-page .entry-content {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--gray-700);
}
.legal-page .entry-content h2 {
    font-size: 1.75rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: var(--gray-900);
}
.legal-page .entry-content h3 {
    font-size: 1.375rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--gray-800);
}
.legal-page .entry-content p {
    margin-bottom: 1.5rem;
}
.legal-page .entry-content ul,
.legal-page .entry-content ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}
.legal-page .entry-content li {
    margin-bottom: 0.5rem;
}
.legal-page .entry-content strong {
    font-weight: 600;
    color: var(--gray-900);
}
.legal-page .entry-content a {
    color: var(--primary);
    text-decoration: underline;
}
.legal-page .entry-content a:hover {
    color: var(--primary-dark);
}
.legal-page .entry-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}
.legal-page .last-updated {
    font-size: 0.875rem;
    color: var(--gray-600);
    font-style: italic;
}
.legal-page .back-navigation {
    margin-top: 3rem;
    text-align: center;
}
.legal-page .back-navigation .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.legal-page .back-navigation svg {
    transition: transform var(--transition-fast);
}
.legal-page .back-navigation .btn:hover svg {
    transform: translateX(-4px);
}
/* Footer */
.site-footer {
    width: 100%;
    background: #111827;
    color: white;
    padding: var(--space-3xl) 0 var(--space-xl);
}
.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-3xl);
    margin-bottom: var(--space-3xl);
}
.footer-brand h3 {
    color: white;
    font-size: 1.375rem;
    margin-bottom: var(--space-md);
}
.footer-brand p {
    color: #D1D5DB;
    max-width: 320px;
    line-height: 1.7;
}
.footer-links h4 {
    color: white;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-md);
}
.footer-links ul {
    list-style: none;
}
.footer-links li {
    margin-bottom: var(--space-sm);
}
.footer-links a {
    color: #D1D5DB;
    font-size: 0.9375rem;
    text-decoration: none;
}
.footer-links a:hover {
    color: white;
}
.footer-bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid var(--gray-800);
    text-align: center;
    color: var(--gray-400);
    font-size: 0.875rem;
}
/* Story Page Specific */
.story-hero {
    width: 100%;
    padding: 140px 0 var(--space-3xl);
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-white) 100%);
}
.story-content {
    background: var(--bg-white);
    padding: var(--space-3xl) 0;
}
.story-content h2 {
    margin: var(--space-3xl) 0 var(--space-lg);
    color: var(--gray-900);
}
.story-content p {
    font-size: 1.0625rem;
    line-height: 1.8;
    margin-bottom: var(--space-lg);
}
.story-highlight {
    padding: var(--space-xl);
    background: linear-gradient(135deg, rgba(255, 159, 103, 0.05) 0%, rgba(255, 159, 103, 0.02) 100%);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-lg);
    margin: var(--space-2xl) 0;
}
.story-cta {
    text-align: center;
    padding: var(--space-3xl);
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    margin-top: var(--space-3xl);
}
/* Mobile Menu Toggle - Clean, Single Implementation */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border: 1px solid rgba(64, 12, 8, 0.15);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    order: 3;
    position: relative;
    z-index: 1001;
}

.menu-toggle span {
    width: 18px;
    height: 2px;
    background: var(--burgundy);
    transition: all 0.3s ease;
    margin: 1.5px 0;
    display: block;
    border-radius: 1px;
    transform-origin: center;
}

.menu-toggle:hover {
    border-color: var(--primary);
    background: rgba(255, 159, 103, 0.08);
}

.menu-toggle:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
}
/* Language Switcher - Minimal Emoji Design */
.lang-switcher {
    position: relative;
}
.lang-selector {
    position: relative;
}
.lang-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
}
.lang-toggle:hover {
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 159, 103, 0.2);
}
/* Theme Switcher */
.theme-switcher {
    display: flex;
    align-items: center;
}
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--gray-200);
    background: white;
    border-radius: var(--radius-full);
    cursor: pointer;
    color: var(--gray-600);
    transition: all var(--transition-fast);
    position: relative;
}
.theme-toggle:hover {
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 159, 103, 0.2);
}
.theme-toggle:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
/* Theme Icons */
.theme-icon {
    position: absolute;
    transition: all var(--transition-fast);
}
.theme-icon-light {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}
.theme-icon-dark {
    opacity: 0;
    transform: rotate(180deg) scale(0.8);
}
/* Dark mode icon states */
[data-theme="dark"] .theme-icon-light {
    opacity: 0;
    transform: rotate(-180deg) scale(0.8);
}
[data-theme="dark"] .theme-icon-dark {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}
/* Dark mode button styling */
[data-theme="dark"] .theme-toggle {
    background: var(--gray-800);
    border-color: var(--gray-600);
    color: var(--primary-light);
}
[data-theme="dark"] .theme-toggle:hover {
    background: var(--gray-700);
    border-color: var(--primary);
    color: var(--primary);
}
.lang-toggle[aria-expanded="true"] {
    border-color: var(--primary);
    background: var(--gray-50);
}
.current-flag {
    font-size: 1.25rem;
    line-height: 1;
    display: flex;
}
.lang-options {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--gray-200);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-fast);
    z-index: 1001;
    min-width: 60px;
}

.lang-toggle[aria-expanded="true"] + .lang-options,
.lang-selector:hover .lang-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.lang-option {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    font-size: 1.5rem;
    line-height: 1;
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
    text-decoration: none;
}
.lang-option:hover {
    background: var(--gray-50);
    transform: scale(1.1);
    text-decoration: none;
}
/* Responsive Design - Mobile First Approach */
/* Base Mobile Styles (Default) */
body {
    font-size: 16px; /* Prevent iOS zoom */
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}
/* Mobile Navigation - Clean Implementation */
@media (max-width: 991px) {
    .site-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        width: 100%;
        display: block;
    }
    
    /* Header inner inherits main styles - no override needed */
    
    .site-branding {
        order: 1;
        flex: 1;
    }
    
    .theme-switcher {
        order: 2;
        margin-right: 0.5rem;
    }
    
    .menu-toggle {
        display: flex;
        order: 3;
        position: relative;
        z-index: 1002;
        align-self: center;
        flex-shrink: 0;
        margin-left: auto;
        background: transparent;
        border: 1px solid rgba(64, 12, 8, 0.15);
    }
    
    .menu-toggle:hover {
        background: rgba(255, 159, 103, 0.08);
        border-color: var(--primary);
    }
    
    .menu-toggle.active {
        background: rgba(255, 255, 255, 0.95);
        border-color: var(--primary);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    /* Mobile Navigation - Hide desktop menu */
    .nav-menu {
        display: none;
    }
    
    /* Mobile menu overlay - Production ready */
    .nav-menu.active {
        display: flex;
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100vw;
        height: calc(100vh - var(--header-height));
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 2rem 1rem;
        gap: 1rem;
        overflow-y: auto;
        z-index: 1000;
        border-top: 1px solid var(--gray-200);
        animation: slideDown 0.3s ease;
        box-sizing: border-box;
    }
    
    /* Adjust for scrolled header */
    .site-header.scrolled + * .nav-menu.active {
        top: var(--header-height-compact);
    }
    
    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-20px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu a:not(.btn) {
        display: block;
        padding: 1rem 1.5rem;
        font-size: 1rem;
        font-weight: 500;
        text-align: left;
        border-radius: var(--radius-md);
        transition: all var(--transition-fast);
        text-decoration: none;
        color: var(--burgundy);
        border-bottom: 1px solid var(--gray-100);
    }
    
    .nav-menu a:not(.btn):hover {
        background: var(--gray-50);
        color: var(--primary);
        transform: translateX(4px);
    }
    
    .nav-menu a:not(.btn):last-child {
        border-bottom: none;
    }
    
    .nav-menu .btn {
        margin: 1rem 0;
        padding: 1rem 2rem;
        font-size: 1rem;
        justify-self: center;
        width: auto;
        max-width: 300px;
        align-self: center;
    }
}
/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    :root {
        --container-padding: 1rem;
        --space-xs: 0.375rem;
        --space-sm: 0.75rem;
        --space-md: 1.25rem;
        --space-lg: 2rem;
        --space-xl: 2.5rem;
    }
    .container {
        padding: 0 var(--container-padding);
    }
    /* Typography Scale for Mobile */
    h1 {
        font-size: clamp(1.5rem, 7vw, 2rem);
        line-height: 1.2;
    }
    h2 {
        font-size: clamp(1.25rem, 6vw, 1.75rem);
        line-height: 1.3;
    }
    h3 {
        font-size: clamp(1.125rem, 5vw, 1.5rem);
    }
    .lead {
        font-size: clamp(1rem, 4vw, 1.125rem);
    }
    /* Mobile Hero */
    .hero {
        padding: 3rem 0;
    }
    .hero-content {
        text-align: center;
    }
    .hero-badge {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }
    .hero-cta {
        flex-direction: column;
        gap: 1rem;
        margin-top: 2rem;
    }
    .hero-cta .btn {
        width: 100%;
        padding: 1rem;
    }
    /* Mobile Sections */
    section {
        padding: 3rem 0;
    }
    /* Mobile Features */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .feature-card {
        padding: 1.5rem;
    }
    /* Mobile How It Works */
    .steps {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .step-card {
        padding: 1.5rem;
    }
    /* Mobile Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    /* Mobile Pricing */
    .pricing-cards {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .pricing-card {
        padding: 1.5rem;
    }
    /* Mobile Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    .footer-links {
        justify-content: center;
    }
    /* Mobile Story Page */
    .story-content {
        padding: 2rem 0;
    }
    .story-highlight {
        margin: 1.5rem -1rem;
        padding: 1.5rem 1rem;
    }
    /* Mobile Legal Pages */
    .legal-page .page-header {
        padding: 3rem 0 1.5rem;
    }
    .legal-page .page-content {
        padding: 2rem 0;
    }
    .legal-page .entry-content {
        font-size: 1rem;
    }
    .legal-page .entry-content h2 {
        font-size: 1.5rem;
        margin-top: 2rem;
    }
    .legal-page .entry-content h3 {
        font-size: 1.25rem;
    }
}
/* Medium Mobile (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    :root {
        --container-padding: 1.5rem;
    }
    h1 {
        font-size: clamp(1.75rem, 6vw, 2.25rem);
    }
    h2 {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }
    .hero {
        padding: 4rem 0;
    }
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .pricing-cards {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}
/* Tablet (769px - 991px) */
@media (min-width: 769px) and (max-width: 991px) {
    .container {
        max-width: 750px;
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .pricing-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
        text-align: left;
    }
}
/* Desktop (992px+) */
@media (min-width: 992px) {
    .menu-toggle {
        display: none !important;
    }
    .nav-menu {
        display: flex !important;
        position: static;
        background: transparent;
        padding: 0;
        box-shadow: none;
    }
    .lang-switcher {
        width: auto;
        margin-top: 0;
        border-top: none;
        padding-top: 0;
    }
}
/* Large Desktop (1200px+) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}
/* Extra Large Desktop (1400px+) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}
/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}
/* Accessibility */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute;
    height: 1px;
    width: 1px;
    overflow: hidden;
}
.screen-reader-text:focus {
    clip: auto;
    position: absolute;
    height: auto;
    width: auto;
    z-index: 100000;
    background: var(--bg-white);
    padding: var(--space-sm);
    border: 2px solid var(--primary);
    border-radius: var(--radius-md);
}
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: var(--space-sm) var(--space-md);
    text-decoration: none;
    z-index: 100;
    border-radius: var(--radius-md);
}
.skip-link:focus {
    top: var(--space-sm);
    left: var(--space-sm);
}
/* Enhanced Focus States for Better Accessibility */
button:focus,
input:focus,
textarea:focus,
select:focus,
a:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
/* High contrast focus for filter buttons */
.filter-chip:focus {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
    box-shadow: 0 0 0 2px white, 0 0 0 5px var(--primary);
}
/* Improved button states for screen readers */
.filter-chip[aria-pressed="true"] {
    position: relative;
}
/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms;
        animation-iteration-count: 1;
        transition-duration: 0.01ms;
        scroll-behavior: auto;
    }
}
/* Dark Mode - Better Previous System */
[data-theme="dark"] {
    --bg-primary: #1F2937;
    --bg-white: #111827;
    --gray-50: #374151;
    --gray-100: #4B5563;
    --gray-200: #6B7280;
    --gray-300: #9CA3AF;
    --gray-500: #D1D5DB;
    --gray-600: #E5E7EB;
    --gray-700: #F3F4F6;
    --gray-800: #F9FAFB;
    --gray-900: #FFFFFF;
}
[data-theme="dark"] body {
    background: var(--bg-primary);
    color: var(--gray-900);
}
[data-theme="dark"] .site-header {
    background: rgba(31, 41, 55, 0.95);
    border-bottom-color: var(--gray-100);
    backdrop-filter: blur(10px);
}
[data-theme="dark"] .nav-menu a:not(.btn) {
    color: #E5E7EB;
    border-bottom-color: #4B5563;
}
[data-theme="dark"] .nav-menu a:not(.btn):hover {
    color: var(--primary-light);
    background: rgba(255, 159, 103, 0.1);
}

[data-theme="dark"] .nav-menu {
    background: rgba(31, 41, 55, 0.98);
    border-color: #4B5563;
}

[data-theme="dark"] .menu-toggle {
    border-color: rgba(75, 85, 99, 0.4);
    background: transparent;
}

[data-theme="dark"] .menu-toggle:hover {
    background: rgba(255, 159, 103, 0.1);
    border-color: var(--primary);
}

[data-theme="dark"] .menu-toggle:focus {
    outline-color: var(--primary);
}

[data-theme="dark"] .menu-toggle span {
    background: #E5E7EB;
}

[data-theme="dark"] .menu-toggle.active {
    background: rgba(31, 41, 55, 0.95);
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
[data-theme="dark"] .article-card {
    background: #374151 !important;
    border-color: #4B5563 !important;
}

[data-theme="dark"] .post-title,
[data-theme="dark"] .post-title a {
    color: #F9FAFB !important;
}

[data-theme="dark"] .post-title a:hover {
    color: var(--primary-light) !important;
}

[data-theme="dark"] .post-excerpt {
    color: #D1D5DB !important;
}

[data-theme="dark"] .post-meta {
    color: #9CA3AF !important;
}

[data-theme="dark"] .article-title a {
    color: #F3F4F6;
}

[data-theme="dark"] .article-title a:hover {
    color: var(--primary-light);
}

[data-theme="dark"] .article-excerpt {
    color: #D1D5DB;
}

[data-theme="dark"] .article-meta {
    color: #9CA3AF;
}

[data-theme="dark"] .article-author {
    color: #D1D5DB;
}

/* Share buttons dark mode fix */
[data-theme="dark"] .share-btn {
    background: rgba(255, 159, 103, 0.08);
    border-color: rgba(255, 159, 103, 0.15);
    color: #E5E7EB;
}
[data-theme="dark"] .blog-filter {
    background: var(--bg-primary);
    border-bottom-color: var(--gray-100);
}
[data-theme="dark"] .filter-chip {
    background: var(--gray-100);
    border-color: var(--gray-200);
    color: var(--gray-600);
}
[data-theme="dark"] .filter-chip:hover {
    background: var(--gray-200);
    border-color: var(--gray-300);
}
[data-theme="dark"] .filter-chip.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}
[data-theme="dark"] .newsletter-widget {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}
[data-theme="dark"] .site-footer {
    background: #111827;
    color: white;
    border-top-color: #4B5563;
}
[data-theme="dark"] .footer-brand p {
    color: #D1D5DB;
}
[data-theme="dark"] .footer-links a {
    color: #D1D5DB;
}
[data-theme="dark"] .footer-links h4 {
    color: white;
}
/* Consolidated dark mode - Better specificity */
[data-theme="dark"] {
    color-scheme: dark;
}
[data-theme="dark"] .section-full,
[data-theme="dark"] .blog-grid,
[data-theme="dark"] .single-article,
[data-theme="dark"] .story-content,
[data-theme="dark"] .author-hero,
[data-theme="dark"] .contact-hero {
    background: var(--bg-primary);
    color: var(--gray-700);
}
[data-theme="dark"] .bg-white {
    background: #1F2937;
}
[data-theme="dark"] .bg-gray {
    background: #111827;
}
[data-theme="dark"] h1,
[data-theme="dark"] h2, 
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
    color: #F9FAFB;
}
[data-theme="dark"] p {
    color: #E5E7EB;
}
[data-theme="dark"] .newsletter-cta,
[data-theme="dark"] .cta-section {
    background: #1F2937;
    color: white;
}
/* Dark mode fixes for sidebar widgets */
[data-theme="dark"] .widget {
    background: #374151;
    border-color: #4B5563;
    color: #E5E7EB;
}
[data-theme="dark"] .widget h3 {
    color: #F9FAFB;
}
/* Text Size Controls */
[data-theme="dark"] .reading-settings-widget .control-label {
    color: #D1D5DB;
}
[data-theme="dark"] .font-size-btn {
    background: rgba(255, 159, 103, 0.08);
    border-color: rgba(255, 159, 103, 0.15);
    color: #E5E7EB;
}
[data-theme="dark"] .font-size-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}
[data-theme="dark"] .font-size-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}
/* Table of Contents */
[data-theme="dark"] .toc a {
    color: #D1D5DB;
    background: transparent;
}
[data-theme="dark"] .toc a:hover {
    color: var(--primary);
    background: rgba(255, 159, 103, 0.1);
}
[data-theme="dark"] .toc a.active {
    color: var(--primary);
    background: rgba(255, 159, 103, 0.2);
}
/* Author Box Complete Dark Mode */
[data-theme="dark"] .author-box {
    background: #374151;
    border: 1px solid #4B5563;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
[data-theme="dark"] .author-name {
    color: #F9FAFB;
}
[data-theme="dark"] .author-label {
    color: var(--primary-light);
}
[data-theme="dark"] .author-stat {
    color: #D1D5DB;
}
[data-theme="dark"] .author-box-bio {
    color: #E5E7EB;
}
[data-theme="dark"] .author-box-link.secondary {
    background: rgba(255, 159, 103, 0.08);
    color: #F3F4F6;
}
[data-theme="dark"] .author-box-link.primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

[data-theme="dark"] .author-box-link.primary:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 159, 103, 0.4);
}

[data-theme="dark"] .author-box-link.secondary:hover {
    background: rgba(255, 159, 103, 0.15);
    color: #F9FAFB;
}

/* Comprehensive author box dark mode button fixes */
[data-theme="dark"] .author-box-link.primary {
    color: white;
}

[data-theme="dark"] .author-box-link.primary:hover {
    color: white !important;
}

[data-theme="dark"] .author-box-actions .btn:hover,
[data-theme="dark"] .author-box .author-box-link:hover {
    color: white !important;
}

/* Override any article-content link styles within author box - DARK MODE ONLY */
[data-theme="dark"] .author-box .article-content a:hover,
[data-theme="dark"] .author-box a:hover {
    color: white !important;
}

/* Light mode author box buttons - ensure proper colors */
body:not([data-theme="dark"]) .author-box-link.primary,
body:not([data-theme="dark"]) .author-box-link.primary:hover {
    color: white;
}

body:not([data-theme="dark"]) .author-box-link.secondary,
body:not([data-theme="dark"]) .author-box-link.secondary:hover {
    color: var(--gray-700);
}

/* Ensure author page filter buttons work correctly in light mode */
body:not(.dark-theme) .filter-btn:hover,
body:not(.dark-theme) .filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Author page light mode comprehensive fixes */
body:not(.dark-theme) .author-hero {
    background: linear-gradient(135deg, rgba(255, 159, 103, 0.1) 0%, rgba(255, 181, 132, 0.05) 100%);
}

body:not(.dark-theme) .author-name-hero {
    color: var(--gray-900);
}

body:not(.dark-theme) .author-stat-number {
    color: var(--gray-900);
}

body:not(.dark-theme) .author-stat-label {
    color: var(--gray-600);
}

body:not(.dark-theme) .author-bio-hero {
    color: var(--gray-700);
}

body:not(.dark-theme) .content-title {
    color: var(--gray-900);
}

body:not(.dark-theme) .post-title {
    color: var(--gray-900);
}

body:not(.dark-theme) .post-excerpt {
    color: var(--gray-600);
}

/* Author CTA Component - Clean & Elegant Design */
.author-cta-section {
    background: linear-gradient(135deg, var(--light-cream) 0%, white 100%);
    padding: 3rem 0;
    margin: 4rem 0;
    border-top: 1px solid rgba(255, 159, 103, 0.1);
    border-bottom: 1px solid rgba(255, 159, 103, 0.1);
}

.author-cta-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.author-cta-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: center;
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 159, 103, 0.1);
    position: relative;
}

.author-cta-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--burgundy) 100%);
    border-radius: 20px 20px 0 0;
}

.author-cta-text {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.author-cta-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--burgundy);
    margin: 0;
    line-height: 1.2;
}

.author-cta-subtitle {
    font-size: 1rem;
    color: var(--primary);
    font-weight: 600;
    margin: 0;
    opacity: 0.9;
}

.author-cta-description {
    font-size: 1.125rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0;
}

.btn-author-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #25D366 0%, #20BD5C 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
    border: none;
    cursor: pointer;
    width: fit-content;
}

.btn-author-cta:hover {
    background: linear-gradient(135deg, #20BD5C 0%, #1DA851 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    color: white;
}

.author-cta-note {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin: 0.5rem 0 0 0;
    font-style: italic;
}

.author-cta-avatar {
    position: relative;
    flex-shrink: 0;
}

.author-cta-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.author-cta-badge {
    position: absolute;
    bottom: -8px;
    right: -8px;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--burgundy) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 12px rgba(255, 159, 103, 0.4);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .author-cta-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        padding: 2rem 1.5rem;
    }
    
    .author-cta-avatar {
        order: -1;
        margin: 0 auto;
    }
    
    .author-cta-title {
        font-size: 1.75rem;
    }
    
    .btn-author-cta {
        width: 100%;
        justify-content: center;
    }
}

/* Dark mode */
[data-theme="dark"] .author-cta-section {
    background: linear-gradient(135deg, var(--burgundy) 0%, #1F2937 100%);
}

[data-theme="dark"] .author-cta-content {
    background: rgba(31, 41, 55, 0.8);
    border-color: rgba(75, 85, 99, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .author-cta-title {
    color: white;
}

[data-theme="dark"] .author-cta-subtitle {
    color: var(--primary-light);
}

[data-theme="dark"] .author-cta-description {
    color: #D1D5DB;
}

[data-theme="dark"] .author-cta-note {
    color: #9CA3AF;
}

[data-theme="dark"] .author-cta-image {
    border-color: rgba(75, 85, 99, 0.5);
}

/* Floating WhatsApp CTA - Global Component */
.floating-whatsapp-cta {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1001;
}

/* Desktop: Pill-Shaped Banner (Exact Reference Match) */
.floating-cta-desktop {
    display: block;
}

.floating-cta-content {
    display: block;
}
.floating-pill-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 12px 16px 12px 12px;
    border-radius: 50px;
    box-shadow: 0 0 20px rgba(255, 159, 103, 0.6), 0 4px 16px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    transition: all 0.3s ease;
    width: 320px;
    cursor: pointer;
}

.floating-pill-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(255, 159, 103, 0.8), 0 6px 20px rgba(0, 0, 0, 0.15);
}

.pill-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.pill-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.pill-name-line {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pill-name {
    font-weight: 700;
    font-size: 14px;
    color: #2D3748;
    line-height: 1;
}

.pill-online-dot {
    width: 8px;
    height: 8px;
    background: #22C55E;
    border-radius: 50%;
    flex-shrink: 0;
}

.pill-main-message {
    font-size: 13px;
    color: #2D3748;
    font-weight: 500;
    line-height: 1.2;
    margin: 0;
}

.pill-sub-message {
    font-size: 12px;
    color: #718096;
    font-weight: 400;
    line-height: 1.2;
    margin: 0;
}

.pill-whatsapp-icon {
    width: 32px;
    height: 32px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pill-whatsapp-icon svg {
    width: 20px;
    height: 20px;
}

/* Cleanup: Remove unused old style rules only */

.floating-cta-header h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--burgundy);
    margin: 0 0 0.25rem 0;
    line-height: 1.2;
}

.floating-cta-header p {
    font-size: 0.8rem;
    color: var(--gray-600);
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
}

.floating-cta-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #25D366 0%, #20BD5C 100%);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    width: 100%;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}

.floating-cta-button:hover {
    background: linear-gradient(135deg, #20BD5C 0%, #1DA851 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    color: white;
}

.floating-cta-note {
    font-size: 0.7rem;
    color: var(--gray-500);
    margin: 0.5rem 0 0 0;
    text-align: center;
    font-style: italic;
    opacity: 0.8;
}

/* Mobile: WhatsApp Logo Only */
.floating-cta-mobile {
    display: none;
}

.floating-whatsapp-button {
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
}

.floating-whatsapp-button:hover {
    background: #20BD5C;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

/* Responsive behavior */
@media (max-width: 768px) {
    .floating-cta-desktop {
        display: none;
    }
    
    .floating-cta-mobile {
        display: block;
    }
    
    .floating-whatsapp-cta {
        bottom: 1.5rem;
        right: 1.5rem;
    }
}

/* Dark mode for pill banner */
[data-theme="dark"] .floating-pill-banner {
    background: rgba(31, 41, 55, 0.95);
    box-shadow: 0 0 20px rgba(255, 159, 103, 0.4), 0 4px 16px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .floating-pill-banner:hover {
    box-shadow: 0 0 25px rgba(255, 159, 103, 0.6), 0 6px 20px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .pill-name {
    color: white;
}

[data-theme="dark"] .pill-main-message {
    color: #E5E7EB;
}

[data-theme="dark"] .pill-sub-message {
    color: #9CA3AF;
}

/* Author page dark mode compatibility - minimal targeted fix */
body.dark-theme .author-hero {
    background: linear-gradient(135deg, rgba(255, 159, 103, 0.05) 0%, rgba(255, 181, 132, 0.02) 100%) !important;
}

body.dark-theme .author-name-hero {
    color: white !important;
}

body.dark-theme .author-stat-number {
    color: white !important;
}

body.dark-theme .author-stat-label {
    color: #A1A1AA !important;
}

body.dark-theme .author-bio-hero {
    color: #D4D4D8 !important;
}

body.dark-theme .content-title {
    color: white !important;
}

body.dark-theme .post-title {
    color: white !important;
}

body.dark-theme .post-title a {
    color: white !important;
}

body.dark-theme .post-excerpt {
    color: #A1A1AA !important;
}

body.dark-theme .post-card {
    background: #27272A !important;
    border-color: #3F3F46 !important;
}

body.dark-theme .author-content {
    background: inherit !important;
}

body.dark-theme .author-content-header {
    border-bottom-color: #3F3F46 !important;
}

body.dark-theme .pagination-item {
    background: #27272A !important;
    border-color: #3F3F46 !important;
    color: #D4D4D8 !important;
}

body.dark-theme .pagination-item:hover {
    background: #3F3F46 !important;
}

body.dark-theme .pagination-item.active {
    background: #FF9F67 !important;
    border-color: #FF9F67 !important;
    color: white !important;
}

/* Related Articles Dark Mode */
[data-theme="dark"] .related-posts {
    background: #1F2937;
}
[data-theme="dark"] .section-title {
    color: #F9FAFB;
}
[data-theme="dark"] .related-card {
    background: #374151;
    border-color: #4B5563;
}
[data-theme="dark"] .related-content h3 a {
    color: #F3F4F6;
}
[data-theme="dark"] .related-content h3 a:hover {
    color: var(--primary-light);
}
[data-theme="dark"] .related-excerpt {
    color: #D1D5DB;
}
[data-theme="dark"] .related-meta {
    color: #9CA3AF;
}
/* Breadcrumb Dark Mode */
[data-theme="dark"] .rank-math-breadcrumb {
    background: #374151;
    border-left-color: var(--primary-light);
}
[data-theme="dark"] .rank-math-breadcrumb p {
    color: #E5E7EB;
}
[data-theme="dark"] .rank-math-breadcrumb a {
    color: #F3F4F6;
}
[data-theme="dark"] .rank-math-breadcrumb a:hover {
    color: var(--primary-light);
}
[data-theme="dark"] .rank-math-breadcrumb .last {
    color: var(--primary-light);
}

/* My Story page Connect Section */
.connect-section {
    background: #F9FAFB !important;
    color: var(--gray-700) !important;
}

.connect-section h2 {
    color: var(--gray-900) !important;
    margin-bottom: 1.5rem !important;
}

.connect-section p {
    color: var(--gray-600) !important;
    line-height: 1.7 !important;
}

/* Dark mode for connect section */
[data-theme="dark"] .connect-section {
    background: #1F2937 !important;
    color: #E5E7EB !important;
}

[data-theme="dark"] .connect-section h2 {
    color: #F9FAFB !important;
}

[data-theme="dark"] .connect-section p {
    color: #D1D5DB !important;
}
/* Essential Utility Classes */
.text-center {
    text-align: center;
}
.mx-auto {
    margin-left: auto;
    margin-right: auto;
}
/* Print Styles */
@media print {
    .site-header,
    .site-footer,
    .navigation,
    .ad-zone {
        display: none;
    }
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: black;
    }
}/* Critical CSS for single post */
:root {
    --article-max-width: 720px;
    --font-size-base: 1.125rem;
    --font-size-small: 1rem;
    --font-size-large: 1.25rem;
    --line-height-base: 1.8;
}

/* Reading Progress Bar */
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
    z-index: 9999;
    width: 0%;
    transition: width 0.2s ease;
}

.single-article {
    background: white;
    min-height: 100vh;
}

/* Dark theme variables handled globally in style.css */

/* Single article dark mode handled globally */

.article-header {
    padding: 2rem 0 1rem;
    background: white;
    border-bottom: 1px solid var(--gray-200);
}

/* Article header dark mode handled globally */

/* RankMath Breadcrumb Styling - Enhanced Visibility */
.rank-math-breadcrumb {
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
    background: #F9FAFB;
    border-radius: var(--radius-md);
    border-left: 3px solid var(--primary);
}

.rank-math-breadcrumb p {
    margin: 0;
    font-size: 0.875rem;
    color: #4B5563;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.rank-math-breadcrumb a {
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.rank-math-breadcrumb a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.rank-math-breadcrumb .separator {
    color: #9CA3AF;
    font-weight: normal;
}

.rank-math-breadcrumb .last {
    color: var(--primary);
    font-weight: 600;
}

/* Dark mode breadcrumb styling handled globally */

.article-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--gray-900);
    font-weight: 700;
    text-transform: capitalize;
    letter-spacing: -0.02em;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-info img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--gray-200);
}

.author-name a {
    color: var(--gray-900);
    font-weight: 600;
    text-decoration: none;
}

.author-name a:hover {
    color: var(--primary);
}

.meta-details {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.meta-details svg {
    vertical-align: middle;
    margin-right: 0.25rem;
}

.category-badge {
    background: var(--primary-light);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.8rem;
    transition: all var(--transition-fast);
}

.category-badge:hover {
    background: var(--primary);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

/* Share Buttons */
.share-buttons {
    display: flex;
    gap: 0.5rem;
}

.share-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 2px solid var(--gray-200);
    border-radius: 50%;
    background: white;
    color: var(--gray-600);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.share-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.share-btn[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.25rem 0.5rem;
    background: var(--gray-900);
    color: white;
    font-size: 0.75rem;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    pointer-events: none;
}

.copy-link.copied .copy-icon {
    display: none;
}

.copy-link.copied .check-icon {
    display: block !important;
    color: var(--success, #10b981);
}

/* Featured Image - Reduced Size */
.featured-image {
    margin: 0 auto 2rem;
    max-width: 900px; /* Limit max width */
    overflow: hidden;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-medium);
}

.featured-image img {
    width: 100%;
    height: auto;
    max-height: 500px; /* Limit height */
    object-fit: cover;
    display: block;
}

.featured-image figcaption {
    padding: 1rem 1.5rem;
    background: var(--gray-50);
    font-size: 0.875rem;
    color: var(--gray-600);
    text-align: center;
    font-style: italic;
}


/* Content Layout */
.article-body {
    padding: 3rem 0;
    background: var(--bg-primary);
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    align-items: start;
}

.article-content {
    max-width: var(--article-max-width);
    overflow-wrap: break-word;
    font-size: var(--font-size-base);
}

/* Typography Enhancements */
.article-content h2 {
    font-size: 2rem;
    margin: 3rem 0 1.5rem;
    color: var(--gray-900);
    scroll-margin-top: 100px;
    font-weight: 700;
    position: relative;
    padding-bottom: 0.5rem;
}

.article-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.article-content h3 {
    font-size: 1.5rem;
    margin: 2.5rem 0 1rem;
    color: var(--gray-800);
    scroll-margin-top: 100px;
    font-weight: 600;
}

.article-content h4 {
    font-size: 1.25rem;
    margin: 2rem 0 1rem;
    color: var(--gray-800);
    font-weight: 600;
}

.article-content p {
    line-height: var(--line-height-base);
    margin-bottom: 1.75rem;
    color: var(--gray-700);
}

.article-content p.has-drop-cap:first-letter {
    float: left;
    font-size: 4.5rem;
    line-height: 1;
    font-weight: 700;
    margin: 0 0.75rem 0.25rem 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Lists */
.article-content ul,
.article-content ol {
    margin: 2rem 0;
    padding-left: 2rem;
    color: var(--gray-700);
}

.article-content li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
    position: relative;
}

.article-content ul li::before {
    content: '•';
    color: var(--primary);
    font-weight: bold;
    position: absolute;
    left: -1.5rem;
}

/* Blockquotes */
.article-content blockquote {
    margin: 2.5rem 0;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(255, 159, 103, 0.05) 0%, rgba(255, 159, 103, 0.02) 100%);
    border-left: 4px solid var(--primary);
    font-style: italic;
    color: var(--gray-700);
    border-radius: var(--radius-md);
    position: relative;
}

.article-content blockquote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.2;
}

/* Images - Centered and Enhanced */
.article-content img,
.article-content figure {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 2.5rem auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.article-content figure {
    text-align: center;
}

.article-content figcaption {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--gray-600);
    font-style: italic;
}

.article-content .alignleft {
    float: left;
    margin: 0.5rem 2rem 1.5rem 0;
}

.article-content .alignright {
    float: right;
    margin: 0.5rem 0 1.5rem 2rem;
}

.article-content .aligncenter {
    display: block;
    margin: 2.5rem auto;
}

/* Tables - Beautiful Styling */
.article-content table {
    width: 100%;
    margin: 2rem auto;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    font-size: 0.95rem;
}

.article-content thead {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

.article-content th {
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.article-content td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    color: var(--gray-700);
}

.article-content tbody tr {
    transition: background var(--transition-fast);
}

.article-content tbody tr:hover {
    background: var(--gray-50);
}

.article-content tbody tr:last-child td {
    border-bottom: none;
}

/* Alternating row colors */
.article-content tbody tr:nth-child(even) {
    background: var(--gray-50);
}

/* Code blocks */
.article-content pre {
    background: var(--gray-900);
    color: var(--gray-100);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    overflow-x: auto;
    margin: 2rem 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.article-content code {
    background: var(--gray-100);
    color: var(--primary-dark);
    padding: 0.2rem 0.4rem;
    border-radius: var(--radius-sm);
    font-size: 0.9em;
}

.article-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

/* Links */
.article-content a {
    color: var(--primary);
    text-decoration: none;
    position: relative;
    transition: color var(--transition-fast);
    border-bottom: 2px solid transparent;
}

.article-content a:hover {
    color: var(--primary-dark);
    border-bottom-color: var(--primary);
}

/* Tags */
.article-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--gray-200);
}

.tags-label {
    font-weight: 600;
    color: var(--gray-700);
    margin-right: 0.5rem;
}

.tag-link {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: var(--gray-100);
    border-radius: var(--radius-full);
    color: var(--gray-700);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all var(--transition-fast);
    border: 2px solid transparent;
}

.tag-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    border-color: var(--primary);
}

/* Sidebar */
.article-sidebar {
    position: sticky;
    top: 100px; /* Add space from header */
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    scrollbar-width: none;
    padding-top: 1rem; /* Additional padding */
}

.article-sidebar::-webkit-scrollbar {
    display: none;
}

.widget {
    background: white;
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--gray-200);
}

.widget h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    margin-bottom: 1.25rem;
    color: var(--gray-900);
    font-weight: 600;
}

.widget h3 svg {
    color: var(--primary);
}

/* Table of Contents - Compact */
.toc-widget {
    max-height: 450px;
    display: flex;
    flex-direction: column;
}

.toc {
    max-height: 350px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--gray-300) transparent;
    font-size: 0.875rem;
}

.toc::-webkit-scrollbar {
    width: 4px;
}

.toc::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 2px;
}

.toc::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 2px;
}

.toc::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

.toc ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.toc > ul > li {
    margin-bottom: 0.25rem;
}

.toc ul ul {
    padding-left: 1.25rem;
    margin-top: 0.125rem;
    margin-bottom: 0.125rem;
}

.toc a {
    display: block;
    padding: 0.375rem 0.5rem;
    color: var(--gray-600);
    text-decoration: none;
    font-size: 0.8125rem;
    line-height: 1.4;
    transition: all var(--transition-fast);
    border-left: 2px solid transparent;
    margin-left: -2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.toc > ul > li > a {
    font-weight: 500;
    font-size: 0.875rem;
}

.toc a:hover {
    color: var(--primary);
    background: var(--gray-50);
    border-left-color: var(--primary);
    padding-left: 0.75rem;
}

.toc a.active {
    color: var(--primary);
    font-weight: 600;
    background: linear-gradient(90deg, rgba(255, 159, 103, 0.1) 0%, transparent 100%);
    border-left-color: var(--primary);
}

/* Empty TOC message */
.toc-empty {
    padding: 1rem;
    text-align: center;
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* Compact Reading Settings Widget */
.reading-settings-widget.compact {
    padding: 1rem;
    margin-bottom: 0.75rem;
}

.reading-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.control-label {
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 500;
    margin-right: 0.5rem;
}

.font-size-controls {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.font-size-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid var(--gray-300);
    background: white;
    color: var(--gray-600);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-weight: 600;
    font-size: 0.875rem;
}

.font-size-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
}

.font-size-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Sidebar theme toggle removed - only menu toggle now */

/* Author Box - Modern Design */
.author-box {
    margin-top: 4rem;
    margin-bottom: 2rem;
    position: relative;
    background: white;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.author-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 50%, var(--primary) 100%);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.author-box-decoration {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 200px;
    height: 200px;
    opacity: 0.1;
    pointer-events: none;
}

.decoration-icon {
    width: 100%;
    height: 100%;
    color: var(--primary);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.author-box-content {
    display: flex;
    gap: 2.5rem;
    padding: 2.5rem;
    position: relative;
    z-index: 1;
}

.author-box-left {
    flex-shrink: 0;
}

.author-avatar-wrapper {
    position: relative;
}

.author-avatar-wrapper img {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    border: 4px solid white;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    background: white;
}

.author-badge {
    position: absolute;
    bottom: -8px;
    right: -8px;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 12px rgba(255, 159, 103, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.author-box-right {
    flex: 1;
    min-width: 0;
}

.author-label {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.author-name {
    margin: 0 0 0.75rem 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.2;
}

.author-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
}

.author-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 500;
}

.author-stat svg {
    width: 16px;
    height: 16px;
    color: var(--primary);
}

.author-box-bio {
    color: var(--gray-700);
    line-height: 1.8;
    margin-bottom: 1.75rem;
    font-size: 0.95rem;
}

.author-box-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.author-box-link {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.875rem 1.75rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: all var(--transition-fast);
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    background: transparent;
}

.author-box-link.primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(255, 159, 103, 0.3);
}

.author-box-link.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 159, 103, 0.4);
}

.author-box-link.secondary {
    background: var(--gray-100);
    color: var(--gray-700);
}

.author-box-link.secondary:hover {
    background: var(--gray-200);
    transform: translateY(-1px);
}

.author-box-link svg {
    width: 16px;
    height: 16px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .author-box-content {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.75rem;
        text-align: center;
    }
    
    .author-box-left {
        margin: 0 auto;
    }
    
    .author-stats {
        justify-content: center;
    }
    
    .author-box-actions {
        justify-content: center;
    }
    
    .author-name {
        font-size: 1.5rem;
    }
    
    .author-box-decoration {
        top: -20px;
        right: -20px;
        width: 120px;
        height: 120px;
    }
}

/* Newsletter Widget */
.newsletter-widget {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

.widget-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.widget-icon svg {
    width: 48px;
    height: 48px;
    stroke: white;
}

.newsletter-widget h3 {
    color: white;
    text-align: center;
    justify-content: center;
}

.newsletter-widget p {
    text-align: center;
    margin-bottom: 1.5rem;
    opacity: 0.95;
    color: white;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.newsletter-form input {
    padding: 0.875rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.95rem;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form input:focus {
    outline: none;
    border-color: white;
    background: rgba(255, 255, 255, 0.2);
}

.newsletter-form .btn {
    background: white;
    color: var(--primary);
    font-weight: 600;
}

.newsletter-form .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.privacy-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.75rem;
    opacity: 0.9;
}

/* Author Bio */
.author-bio-section {
    padding: 3rem 0;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
}

.author-bio {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
}

.author-bio img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 3px solid var(--primary);
}

.author-bio h3 {
    margin-bottom: 0.75rem;
    color: var(--gray-900);
    font-size: 1.25rem;
}

.author-bio p {
    margin-bottom: 1rem;
    color: var(--gray-700);
    line-height: 1.7;
}

.author-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.author-link:hover {
    gap: 0.75rem;
    color: var(--primary-dark);
}

/* Related Posts - Smaller Cards */
.related-posts {
    padding: 3rem 0;
    background: var(--gray-50);
}

.section-title {
    text-align: center;
    font-size: 1.75rem;
    margin-bottom: 2.5rem;
    color: var(--gray-900);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.related-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--gray-200);
}

.related-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary);
}

.related-image {
    display: block;
    aspect-ratio: 16/9;
    overflow: hidden;
    height: 180px;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.related-card:hover .related-image img {
    transform: scale(1.05);
}

.related-content {
    padding: 1.25rem;
}

.related-content h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-content h3 a {
    color: var(--gray-900);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.related-content h3 a:hover {
    color: var(--primary);
}

.related-excerpt {
    color: var(--gray-600);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* Font size adjustments */
body.font-small .article-content {
    font-size: var(--font-size-small);
}

body.font-large .article-content {
    font-size: var(--font-size-large);
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .article-sidebar {
        position: static;
        max-height: none;
        overflow-y: visible;
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .reading-settings-widget.compact {
        position: sticky;
        top: var(--header-height);
        z-index: 100;
        background: white;
        box-shadow: var(--shadow-medium);
    }
    
    .toc-widget {
        display: none;
    }
    
    .reading-controls {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .control-label {
        display: none;
    }
    
    .reading-controls {
        justify-content: space-around;
    }
    
    .article-header {
        padding: 1rem 0;
    }
    
    .article-title {
        font-size: 1.75rem;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .featured-image {
        border-radius: 0;
        margin: 0 -1rem 1.5rem;
    }
    
    .article-content {
        font-size: 1rem;
    }
    
    .article-content h2 {
        font-size: 1.5rem;
    }
    
    .article-content h3 {
        font-size: 1.25rem;
    }
    
    .article-content table {
        font-size: 0.875rem;
    }
    
    .article-content th,
    .article-content td {
        padding: 0.75rem;
    }
    
    .author-bio {
        flex-direction: column;
        text-align: center;
    }
    
    .author-bio img {
        margin: 0 auto;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .share-buttons {
        width: 100%;
        justify-content: center;
    }
}

/* Print Styles */
@media print {
    .share-buttons,
    .article-sidebar,
    .related-posts,
    .reading-progress-bar,
    .newsletter-widget {
        display: none;
    }
    
    .article-content {
        max-width: 100%;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .article-content table {
        break-inside: avoid;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection color */
::selection {
    background: var(--primary);
    color: white;
}

/* Focus styles for accessibility */
a:focus,
button:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* French Language Typography - Proper Capitalization */
body.lang-fr .article-title,
body.lang-fr .post-title,
body.lang-fr h1,
body.lang-fr h2,
body.lang-fr h3,
body.lang-fr h4 {
    text-transform: none !important;
}

/* Keep badges and labels uppercase for visual consistency */
body.lang-fr .post-category-badge,
body.lang-fr .category,
body.lang-fr .author-label {
    text-transform: uppercase;
}

/* Maintain English capitalization for English content */
body.lang-en .article-title,
body.lang-en .post-title {
    text-transform: capitalize;
}

/* Dark mode French typography */
[data-theme="dark"] body.lang-fr .post-title,
[data-theme="dark"] body.lang-fr .article-title {
    color: #F9FAFB !important;
    text-transform: none !important;
}
    color: #F9FAFB;

[data-theme="dark"] .credit-point p {
    color: #D1D5DB;
}
/* Clean Compact SaaS Pricing - No Orange Backgrounds */
#pricing {
    padding: 4rem 0;
    background: white;
}

.pricing-header {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--burgundy);
    margin-bottom: 1rem;
}

.pricing-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin: 0;
    line-height: 1.5;
}

.pricing-table {
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-group {
    margin-bottom: 3rem;
}

.group-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--burgundy);
    text-align: center;
    margin-bottom: 1.5rem;
}

.subscription-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Clean Billing Toggle */
.billing-toggle {
    display: flex;
    background: #F3F4F6;
    border-radius: 8px;
    padding: 4px;
    gap: 2px;
}

.toggle-option {
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: var(--burgundy);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.toggle-option.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.discount {
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
}

/* Compact Plans Grid */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Clean Plan Cards */
.plan-card {
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
    height: fit-content;
}

.plan-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.plan-card.featured {
    border-color: var(--primary);
    border-width: 2px;
}

.badge {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.badge.premium {
    background: var(--burgundy);
}

.plan-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--burgundy);
    margin-bottom: 0.5rem;
}

.plan-desc {
    color: var(--gray-500);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.price-container,
.price {
    text-align: center;
    margin: 1rem 0;
}

.price {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--burgundy);
    line-height: 1;
}

.period {
    font-size: 0.9rem;
    color: var(--gray-500);
    font-weight: 500;
}

.price-note {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
    margin-top: 0.25rem;
}

.features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.features li {
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--burgundy);
    border-bottom: 1px solid #F3F4F6;
}

.features li:last-child {
    border-bottom: none;
}

.cta-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
    border: 1px solid;
    cursor: pointer;
}

.cta-btn.primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.cta-btn.primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.cta-btn.secondary {
    background: white;
    color: var(--primary);
    border-color: var(--primary);
}

.cta-btn.secondary:hover {
    background: var(--primary);
    color: white;
}

/* Compact Print Card */
.print-info {
    margin-top: 2rem;
}

.print-card-compact {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 1.5rem;
    max-width: 500px;
    margin: 0 auto;
}

.print-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.print-details h4 {
    font-size: 1rem;
    color: var(--burgundy);
    margin-bottom: 0.25rem;
}

.print-details p {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin: 0;
}

.print-pricing {
    text-align: center;
    margin: 0 1rem;
}

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

.print-pricing small {
    display: block;
    font-size: 0.7rem;
    color: var(--gray-400);
}

.cta-btn.compact {
    width: auto;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .plans-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .pricing-header h2 {
        font-size: 2rem;
    }
    
    .plan-card {
        padding: 1.25rem;
    }
    
    .price {
        font-size: 2rem;
    }
    
    .subscription-header {
        flex-direction: column;
        text-align: center;
    }
    
    .print-card-compact {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .print-pricing {
        margin: 0;
    }
}

/* Credit System - Clean Design */
.credit-system {
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 2rem;
    margin-top: 3rem;
}

.credit-system h3 {
    text-align: center;
    font-size: 1.5rem;
    color: var(--burgundy);
    margin-bottom: 2rem;
}

.credit-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.credit-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.credit-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.credit-content h4 {
    font-size: 1rem;
    color: var(--burgundy);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.credit-content p {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin: 0;
    line-height: 1.4;
}

/* Dark Mode for Credit System */
[data-theme="dark"] .credit-system {
    background: #374151;
    border-color: #4B5563;
}

[data-theme="dark"] .credit-system h3 {
    color: #F9FAFB;
}

[data-theme="dark"] .credit-content h4 {
    color: #F9FAFB;
}

[data-theme="dark"] .credit-content p {
    color: #D1D5DB;
}

/* Mobile responsive for credit system */
@media (max-width: 768px) {
    .credit-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .credit-system {
        padding: 1.5rem;
    }
}

/* Enhanced Features with Disabled States */
.feature-disabled {
    opacity: 0.4;
    color: var(--gray-400) !important;
    position: relative;
}

.feature-disabled::after {
    content: '(subscription only)';
    font-size: 0.75rem;
    color: var(--gray-400);
    font-style: italic;
    margin-left: 0.5rem;
}

/* Freemium CTAs - Green Buttons */
.cta-btn.freemium {
    background: #22C55E;
    border-color: #22C55E;
    color: white;
    font-weight: 700;
}

.cta-btn.freemium:hover {
    background: #16A34A;
    border-color: #16A34A;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

/* Key Benefits Section */
.key-benefits {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #F0F9FF;
    border-radius: 12px;
    border: 1px solid #E0F2FE;
}

.benefits-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--burgundy);
    font-weight: 600;
}

.benefit-icon {
    font-size: 1rem;
}

/* Coming Soon Features */
.coming-soon-features {
    margin: 3rem 0 2rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #FEF7ED 0%, #FEFCFB 100%);
    border-radius: 12px;
    border: 1px solid #FED7AA;
}

.coming-soon-features h3 {
    text-align: center;
    font-size: 1.5rem;
    color: var(--burgundy);
    margin-bottom: 2rem;
    position: relative;
}

.coming-soon-features h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: #F59E0B;
    border-radius: 1px;
}

.coming-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.coming-feature {
    text-align: center;
    padding: 1rem;
}

.coming-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.coming-icon {
    font-size: 1.5rem;
}

.coming-feature h4 {
    font-size: 1.125rem;
    color: var(--burgundy);
    font-weight: 600;
    margin: 0;
}

.coming-feature p {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

/* Dark Mode Support */
[data-theme="dark"] .key-benefits {
    background: #374151;
    border-color: #4B5563;
}

[data-theme="dark"] .benefit-item {
    color: #E5E7EB;
}

[data-theme="dark"] .coming-soon-features {
    background: linear-gradient(135deg, #374151 0%, #4B5563 100%);
    border-color: rgba(255, 159, 103, 0.15);
}

[data-theme="dark"] .coming-soon-features h3 {
    color: #F9FAFB;
}

[data-theme="dark"] .coming-feature h4 {
    color: #F9FAFB;
}

[data-theme="dark"] .coming-feature p {
    color: #D1D5DB;
}

[data-theme="dark"] .feature-disabled {
    color: #6B7280 !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .benefits-grid {
        flex-direction: column;
        gap: 1rem;
    }
    
    .benefit-item {
        justify-content: center;
    }
    
    .coming-features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .coming-soon-features {
        padding: 1.5rem;
    }
}

/* Coming Soon Features in Plans */
.feature-coming-soon {
    opacity: 0.6;
    color: var(--gray-500) !important;
    font-style: italic;
    position: relative;
}


/* Dark mode for coming soon */
[data-theme="dark"] .feature-coming-soon {
    color: #9CA3AF !important;
}


/* Logo with T Icon - Silicon Valley Style */
.site-branding .logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(255, 159, 103, 0.3);
}

.logo-t {
    font-family: 'Delius Swash Caps', cursive;
    font-size: 24px;
    font-weight: 400;
    color: white;
    line-height: 1;
}

/* Dark mode logo icon */
[data-theme="dark"] .logo-icon {
    background: var(--burgundy);
    box-shadow: 0 2px 8px rgba(64, 12, 8, 0.4);
}

[data-theme="dark"] .logo-t {
    color: var(--primary-light);
}

/* Mobile logo adjustments */
@media (max-width: 768px) {
    .logo-icon {
        width: 32px;
        height: 32px;
    }
    
    .logo-t {
        font-size: 20px;
    }
    
    .site-branding .logo-container {
        gap: 8px;
    }
}

/* Personal Dad-focused Hero */
.personal-hero {
    background: linear-gradient(135deg, var(--light-cream) 0%, white 100%);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: scroll;
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport height for mobile browsers */
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for mobile browsers */
    display: flex;
    align-items: center;
    padding: 0 0 2rem 0;
    margin-top: calc(-1 * (var(--header-height) + 1rem));
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

    width: fit-content;
    box-shadow: 0 2px 4px rgba(255, 159, 103, 0.1);

.hero-content h1 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--burgundy);
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.lead.personal {
    font-size: 1.25rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Integrated How It Works */
.how-it-works-mini {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--cream);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

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

.step-icon {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 12px rgba(255, 159, 103, 0.3);
}

.step-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--burgundy);
    margin-bottom: 0.5rem;
}

.step-content p {
    font-size: 0.95rem;
    color: var(--gray-600);
    margin: 0;
    line-height: 1.4;
}

/* Enhanced WhatsApp CTA */
.hero-cta-container {
    margin: 3rem 0 2rem 0;
    text-align: center;
}

.btn-freemium {
    background: #22C55E;
    color: white;
    border: none;
    padding: 18px 32px;
    font-weight: 700;
    font-size: 1.125rem;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-freemium:hover {
    background: #16A34A;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4);
    color: white;
}

    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--gray-600);
    font-weight: 500;

.benefit-highlight span {
    white-space: nowrap;
}

/* Dark Mode for Personal Hero */
[data-theme="dark"] .personal-hero {
    background: linear-gradient(135deg, var(--bg-primary) 0%, #2A0805 100%);
}


[data-theme="dark"] .how-it-works-mini {
    background: #374151;
    border-color: #4B5563;
}

[data-theme="dark"] .step-content h4 {
    color: #F9FAFB;
}

[data-theme="dark"] .step-content p {
    color: #D1D5DB;
}

[data-theme="dark"] .benefit-highlight {
    color: #D1D5DB;
}

/* Comprehensive Mobile Optimization */
@media (max-width: 768px) {
    :root {
        --header-height: 50px;
        --header-height-compact: 45px;
    }
    
    /* Body padding now handled globally - no override needed */
    
    .personal-hero {
        min-height: calc(100vh - 10px);
        min-height: calc(100dvh - 10px);
        height: auto;
        padding: 0 0 2rem 0;
        margin-top: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero-content h1 {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
        line-height: 1.2;
        margin-bottom: 1.5rem;
    }
    
    .lead.personal {
        font-size: 1.125rem;
        margin-bottom: 2rem;
    }
    
    .how-it-works-mini {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .step-icon {
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    .step-content h4 {
        font-size: 1rem;
    }
    
    .step-content p {
        font-size: 0.875rem;
    }
    
    .benefit-highlight {
        flex-direction: column;
        gap: 0.5rem;
        font-size: 0.85rem;
    }
    
    .btn-freemium {
        padding: 14px 24px;
        font-size: 1rem;
        gap: 8px;
    }
    
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .lead.personal {
        font-size: 1.375rem;
    }
    
    .how-it-works-mini {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
        padding: 2.5rem;
    }
}

/* MacBook Pro 14" and Similar Laptops (1512x982) */
@media (min-width: 1400px) and (max-height: 1000px) {
    .personal-hero {
        min-height: 100vh;
        height: 100vh;
        padding: calc(var(--header-height) + 0.5rem) 0 1rem 0;
    }
    
    .hero-layout {
        gap: 3rem;
        max-width: 1200px;
        min-height: calc(100vh - var(--header-height) - 2rem);
        align-items: center;
    }
}

/* Extra Large Screens */
@media (min-width: 1400px) {
    .personal-hero {
        min-height: 100vh;
        height: 100vh;
    }
    
    .hero-content {
        max-width: 1100px;
    }
}

/* Ultra-wide Screens */
@media (min-width: 1600px) {
    .personal-hero {
        min-height: 100vh;
        height: 100vh;
    }
    
    .hero-content {
        max-width: 1200px;
    }
}

/* Performance Optimizations - Reduce Motion for Users Who Prefer It */
@media (prefers-reduced-motion: reduce) {
    .site-header,
    .hero-content,
    .step-icon,
    .btn-freemium,
    .logo-icon {
        transition: none !important;
        animation: none !important;
    }
}

/* High DPI Displays - Optimize for Retina */
@media only screen and (-webkit-min-device-pixel-ratio: 2),
       only screen and (min-resolution: 192dpi),
       only screen and (min-resolution: 2dppx) {
    .logo-icon,
    .step-icon {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

.hero-content-right {
    padding-left: 2rem;
}

/* SEO H1 - Hidden but SEO Optimized */

/* Personal Title (Visual H1) */
.personal-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--burgundy);
    margin: 0.5rem 0 1rem 0;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.personal-story {
    font-size: 1.125rem;
    color: var(--gray-600);
    line-height: 1.5;
    margin: 0;
}

/* How It Works - Compact Version */
.how-it-works-compact {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--cream);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.how-it-works-compact h3 {
    font-size: 1.5rem;
    color: var(--burgundy);
    margin-bottom: 1.5rem;
    text-align: center;
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.step-compact {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--light-cream);
    border-radius: 8px;
}

.step-number {
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.step-info {
    flex: 1;
}

.step-info h4 {
    font-size: 1rem;
    color: var(--burgundy);
    margin: 0 0 0.25rem 0;
    font-weight: 600;
}

.step-info p {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin: 0;
    line-height: 1.3;
}

.step-icon-small {
    font-size: 1.25rem;
    opacity: 0.7;
}

.hero-cta-section {
    margin-top: 1rem;
}

.hero-benefits {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-top: 1rem;
}

/* French Language Typography - No Automatic Capitalization */
html[lang*="fr"] .personal-title,
html[lang*="fr"] .hero-content h1,
html[lang*="fr"] .hero-content h2,
html[lang*="fr"] .step-info h4 {
    text-transform: none !important;
}

/* Dark Mode for Two-Column Hero */
[data-theme="dark"] .how-it-works-compact {
    background: #374151;
    border-color: #4B5563;
}

[data-theme="dark"] .how-it-works-compact h3 {
    color: #F9FAFB;
}

[data-theme="dark"] .step-compact {
    background: rgba(255, 159, 103, 0.08);
}

[data-theme="dark"] .step-info h4 {
    color: #F9FAFB;
}

[data-theme="dark"] .step-info p {
    color: #D1D5DB;
}

[data-theme="dark"] .personal-title {
    color: var(--gray-900);
}

[data-theme="dark"] .personal-story {
    color: var(--gray-700);
}

/* Mobile: Enhanced UI with Better Visual Hierarchy */
@media (max-width: 768px) {
    .hero-layout {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        min-height: calc(100vh - var(--header-height) - 2rem);
        min-height: calc(100dvh - var(--header-height) - 2rem);
        text-align: center;
        padding: 0.5rem 0;
        justify-content: space-evenly;
        align-items: center;
        width: 100%;
    }
    
    .hero-content-left {
        order: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
        width: 100%;
        padding: 1.5rem 1rem;
        background: rgba(255, 255, 255, 0.7);
        border-radius: 20px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        margin: 0 auto;
        max-width: 90%;
    }
    
    .hero-content-right {
        order: 2;
        padding-left: 0;
        display: flex;
        justify-content: center;
        width: 100%;
        max-width: 90%;
        margin: 0 auto;
    }
    
    .how-it-works-compact {
        padding: 1.5rem;
        text-align: center;
        background: rgba(255, 255, 255, 0.8) !important;
        border-radius: 20px !important;
        margin: 0 auto;
        width: 100%;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        border: 1px solid rgba(255, 159, 103, 0.1);
    }
    
    .how-it-works-compact h3 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .steps-list {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }
    
    .step-compact {
        padding: 1rem;
        gap: 0.75rem;
        text-align: left;
        display: flex;
        flex-direction: row;
        align-items: center;
        max-width: 100%;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        border-radius: 16px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
        border: 1px solid rgba(255, 159, 103, 0.05);
        transition: transform 0.2s ease;
    }
    
    .step-compact:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    }
    
    .step-number {
        width: 32px;
        height: 32px;
        font-size: 0.875rem;
        font-weight: 700;
        flex-shrink: 0;
        background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
        color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 8px rgba(255, 159, 103, 0.3);
    }
    
    .step-info {
        text-align: left;
        flex: 1;
    }
    
    .step-info h4 {
        font-size: 0.95rem;
        margin-bottom: 0.25rem;
        font-weight: 600;
        color: var(--burgundy);
    }
    
    .step-info p {
        font-size: 0.8rem;
        line-height: 1.4;
        color: var(--gray-600);
        margin: 0;
    }
    
    .step-icon-small {
        font-size: 1.5rem;
        flex-shrink: 0;
        opacity: 0.8;
    }
    
    /* Dark mode for enhanced mobile hero */
    [data-theme="dark"] .hero-content-left {
        background: rgba(31, 41, 55, 0.7);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    }
    
    [data-theme="dark"] .how-it-works-compact {
        background: rgba(31, 41, 55, 0.8) !important;
        border-color: rgba(75, 85, 99, 0.2);
    }
    
    .personal-title {
        font-size: clamp(1.5rem, 7vw, 2.25rem);
    }
    
    .personal-story {
        font-size: 1rem;
    }
    
    .hero-benefits {
        flex-direction: column;
        gap: 0.5rem;
        font-size: 0.8rem;
    }
}

/* Tablet: Optimize for Medium Screens */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-layout {
        gap: 2rem;
        max-width: 900px;
    }
    
    .hero-content-right {
        padding-left: 1rem;
    }
    
    .personal-title {
        font-size: 2.25rem;
    }
    
    .step-compact {
        padding: 0.875rem;
    }
}

/* Large Screens: Enhanced Spacing */
@media (min-width: 1200px) {
    .hero-layout {
        gap: 4rem;
        max-width: 1100px;
    }
    
    .personal-title {
        font-size: 3rem;
    }
    
    .personal-story {
        font-size: 1.25rem;
    }
    
    .how-it-works-compact {
        padding: 2.5rem;
    }
}

/* Two-Column Hero Layout - Fixed Implementation */
.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    min-height: calc(100vh - var(--header-height) - 4rem);
    min-height: calc(100dvh - var(--header-height) - 4rem);
    box-sizing: border-box;
}

.hero-content-left {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-content-right {
    padding: 0;
}

/* SEO H1 - Screen reader only */
.seo-h1 {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Duplicate .personal-title removed - using first definition above */

.personal-intro {
    margin-bottom: 1.5rem;
}

.personal-story {
    font-size: 1.125rem;
    color: var(--gray-600);
    line-height: 1.5;
    margin: 1rem 0 0 0;
}

/* How It Works - Right Column */
.how-it-works-compact {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--cream);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    height: fit-content;
}

.how-it-works-compact h3 {
    font-size: 1.5rem;
    color: var(--burgundy);
    margin-bottom: 1.5rem;
    text-align: center;
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.step-compact {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--light-cream);
    border-radius: 8px;
}

.step-number {
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.step-info {
    flex: 1;
}

.step-info h4 {
    font-size: 1rem;
    color: var(--burgundy);
    margin: 0 0 0.25rem 0;
    font-weight: 600;
}

.step-info p {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin: 0;
    line-height: 1.3;
}

.step-icon-small {
    font-size: 1.25rem;
    opacity: 0.7;
    margin-left: 0.5rem;
}

/* Mobile: Stack Columns */
@media (max-width: 768px) {
    .hero-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-content-right {
        order: 2;
    }
    
    .hero-content-left {
        order: 1;
    }
    
    .how-it-works-compact {
        padding: 1.5rem;
    }
    
    .step-compact {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .step-number {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    .personal-title {
        font-size: clamp(1.5rem, 7vw, 2.25rem);
    }
    
    .personal-story {
        font-size: 1rem;
    }
}

/* Tablet: Optimize columns */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-layout {
        gap: 2rem;
        max-width: 900px;
    }
    
    .personal-title {
        font-size: 2.25rem;
    }
    
    .step-compact {
        padding: 0.875rem;
    }
}

/* Large Screens: Enhanced spacing */
@media (min-width: 1200px) {
    .personal-hero {
        min-height: 100vh;
        height: 100vh;
        padding: calc(var(--header-height) + 1rem) 0 2rem 0;
    }
    
    .hero-layout {
        gap: 4rem;
        max-width: 1100px;
        min-height: calc(100vh - var(--header-height) - 4rem);
        align-items: center;
        justify-content: center;
    }
    
    .personal-title {
        font-size: 3rem;
    }
    
    .personal-story {
        font-size: 1.25rem;
    }
    
    .how-it-works-compact {
        padding: 2.5rem;
    }
}

    white-space: nowrap;

/* Duplicate .personal-title removed - consolidated above */

/* French Language - No Forced Capitalization */
html[lang*="fr"] .personal-title {
    text-transform: none !important;
}

/* Dark Mode */
[data-theme="dark"] .personal-title {
    color: var(--gray-900);
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .personal-title {
        font-size: clamp(1.5rem, 7vw, 2.25rem);
        margin: 0.5rem 0 1rem 0;
    }
}

@media (min-width: 1200px) {
    .personal-title {
        font-size: 3rem;
    }
}

/* Visible SEO H1 */
.seo-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--burgundy);
    margin: 0 0 1.5rem 0;
    line-height: 1.3;
    opacity: 0.85;
}

/* French H1 - no forced caps */
html[lang*="fr"] .seo-title {
    text-transform: none !important;
}

/* Dark mode H1 */
[data-theme="dark"] .seo-title {
    color: var(--gray-800);
}

/* Mobile H1 */
@media (max-width: 768px) {
    .seo-title {
        font-size: 1.25rem;
        margin: 0 0 1rem 0;
    }
}

@media (min-width: 1200px) {
    .seo-title {
        font-size: 1.75rem;
    }
}

/* Integrated Hero Title - SEO + Personal */
.hero-main-title {
    margin: 1.5rem 0 1rem 0; /* Reduced bottom margin since personal title is now separate */
    line-height: 1.2;
    display: flex;
    flex-direction: column;
    gap: 0; /* No gap needed since only SEO part is in H1 */
}

/* Personal Title Container - maintains visual continuity */
.hero-personal-title {
    margin: 1rem 0 2rem 0; /* Maintains the same spacing as before */
    line-height: 1.2;
}

.seo-part {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--burgundy);
    opacity: 0.8;
    display: block;
    letter-spacing: 0.02em;
}

.personal-part {
    font-size: clamp(2.25rem, 4.5vw, 3.5rem);
    font-weight: 700;
    color: var(--burgundy);
    display: block;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

/* French Typography */
html[lang*="fr"] .seo-part,
html[lang*="fr"] .personal-part,
html[lang*="fr"] .hero-personal-title .personal-part {
    text-transform: none !important;
}

/* Dark Mode */
[data-theme="dark"] .seo-part {
    color: var(--gray-700);
}

[data-theme="dark"] .personal-part {
    color: var(--gray-900);
}

[data-theme="dark"] .hero-personal-title .personal-part {
    color: var(--gray-900);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-main-title {
        gap: 0;
        margin: 0 0 1rem 0; /* Reduced since personal title is separate */
        text-align: center;
        width: 100%;
    }

    .hero-personal-title {
        margin: 1rem 0 2rem 0; /* Maintains mobile spacing */
        text-align: center;
        width: 100%;
    }
    
    .seo-part {
        font-size: 1rem;
        line-height: 1.4;
        opacity: 0.9;
        text-align: center;
        margin-bottom: 0.5rem;
    }
    
    .personal-part {
        font-size: clamp(1.875rem, 8vw, 2.75rem);
        text-align: center;
        font-weight: 700;
        line-height: 1.1;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .seo-part {
        font-size: 1.375rem;
    }
    
    .personal-part {
        font-size: 2.75rem;
    }
}

/* Large Screens */
@media (min-width: 1200px) {
    .seo-part {
        font-size: 1.5rem;
    }
    
    .personal-part {
        font-size: 3rem;
    }
}

/* Enhanced spacing for hero intro */
.hero-intro {
    display: flex;
    flex-direction: column;
    gap: 0;
}


/* Compact Left Column - Space Optimized */
.hero-intro {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Tighter H1 spacing */
.hero-main-title {
    margin: 0 0 1.5rem 0;
    line-height: 1.1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Compact story paragraph */
.personal-story {
    font-size: 1.0625rem;
    color: var(--gray-600);
    line-height: 1.45;
    margin: 0 0 1.5rem 0;
    max-width: 90%;
}

/* Compact CTA section */
.hero-cta-section {
    margin-top: 0.5rem;
}

.hero-benefits {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: var(--gray-600);
    margin-top: 1rem;
}

/* Mobile space optimization */
@media (max-width: 768px) {
    .hero-intro {
        gap: 1rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
    }
    
    .hero-main-title {
        margin: 0 0 1.5rem 0;
        gap: 0.5rem;
        text-align: center;
        width: 100%;
    }
    
    .personal-story {
        font-size: 1.125rem;
        line-height: 1.5;
        margin: 0 0 2rem 0;
        max-width: 90%;
        text-align: center;
    }
    
    .hero-cta-section {
        margin-top: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        width: 100%;
    }
    
    .hero-benefits {
        justify-content: center !important;
        gap: 1rem !important;
        font-size: 0.875rem !important;
        max-width: 100%;
        flex-wrap: wrap;
        margin-top: 1.5rem !important;
    }
    
    .btn-freemium {
        width: auto !important;
        max-width: 300px;
        padding: 16px 24px !important;
        font-size: 1.125rem !important;
        font-weight: 700;
    }
}

/* Large screens - more breathing room */
@media (min-width: 1200px) {
    .personal-story {
        font-size: 1.125rem;
        max-width: 85%;
    }
}

/* Reduced Font Sizes and CTA Optimization */
.personal-part {
    font-size: clamp(2rem, 4vw, 3rem) !important;
    font-weight: 700;
    color: var(--burgundy);
    display: block;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.btn-freemium {
    background: #22C55E;
    color: white;
    border: none;
    padding: 14px 24px !important;
    font-weight: 700;
    font-size: 1rem !important;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-freemium:hover {
    background: #16A34A;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
    color: white;
}

/* Mobile font size adjustments */
@media (max-width: 768px) {
    .personal-part {
        font-size: clamp(1.5rem, 6vw, 2rem) !important;
    }
    
    .btn-freemium {
        padding: 12px 20px !important;
        font-size: 0.95rem !important;
    }
}

/* Large screens */
@media (min-width: 1200px) {
    .personal-part {
        font-size: 2.75rem !important;
    }
}

/* Comprehensive Dark Mode for Pricing - Current Structure */
[data-theme="dark"] #pricing {
    background: var(--bg-primary);
}

[data-theme="dark"] .pricing-header h2 {
    color: #F9FAFB;
}

[data-theme="dark"] .pricing-subtitle {
    color: #D1D5DB;
}

/* Plan Cards Dark Mode */
[data-theme="dark"] .plan-card {
    background: #374151;
    border-color: #4B5563;
}

[data-theme="dark"] .plan-card.featured {
    background: linear-gradient(135deg, #4B5563 0%, #374151 100%);
    border-color: var(--primary);
}

[data-theme="dark"] .plan-card h4 {
    color: #F9FAFB;
}

[data-theme="dark"] .plan-desc {
    color: #D1D5DB;
}

/* Pricing Display Dark Mode */
[data-theme="dark"] .price-container,
[data-theme="dark"] .price {
    background: linear-gradient(135deg, #4B5563 0%, #6B7280 100%);
}

[data-theme="dark"] .price {
    color: #F9FAFB;
}

[data-theme="dark"] .price-note {
    color: var(--primary-light);
}

/* Features Dark Mode */
[data-theme="dark"] .features li {
    color: #E5E7EB;
    border-bottom-color: #4B5563;
}

[data-theme="dark"] .feature-disabled {
    color: #9CA3AF !important;
}

/* Billing Toggle Dark Mode */
[data-theme="dark"] .billing-toggle {
    background: rgba(255, 159, 103, 0.08);
    border-color: rgba(255, 159, 103, 0.15);
}

[data-theme="dark"] .toggle-option {
    color: #E5E7EB;
}

[data-theme="dark"] .toggle-option.active {
    background: #374151;
    color: var(--primary-light);
    border-color: var(--primary);
}

/* Group Titles Dark Mode */
[data-theme="dark"] .group-title {
    color: #F9FAFB;
}

[data-theme="dark"] .group-title::after {
    background: var(--primary);
}

/* Subscription Header Dark Mode */
[data-theme="dark"] .subscription-header h3 {
    color: #F9FAFB;
}

/* Credit System Dark Mode */
[data-theme="dark"] .credit-system {
    background: #374151;
    border-color: #4B5563;
}

[data-theme="dark"] .credit-system h3 {
    color: #F9FAFB;
}

[data-theme="dark"] .credit-item h4 {
    color: #F9FAFB;
}

[data-theme="dark"] .credit-item p {
    color: #D1D5DB;
}

/* Key Benefits Dark Mode */
[data-theme="dark"] .key-benefits {
    background: #374151;
    border-color: #4B5563;
}

[data-theme="dark"] .benefit-item {
    color: #E5E7EB;
}

/* Badges Dark Mode */
[data-theme="dark"] .badge {
    background: var(--primary);
    color: white;
}

[data-theme="dark"] .badge.premium {
    background: var(--burgundy-light);
}

/* Enhanced Dark Mode Price Styling */
[data-theme="dark"] .price-container {
    background: rgba(255, 159, 103, 0.08) !important;
    border: 1px solid rgba(255, 159, 103, 0.15);
}

[data-theme="dark"] .price {
    background: transparent !important;
}

/* Clean dark mode for price sections */
[data-theme="dark"] .price-section {
    background: rgba(255, 159, 103, 0.08) !important;
    border: 1px solid rgba(255, 159, 103, 0.15) !important;
}

/* Ensure price text is readable */
[data-theme="dark"] .currency,
[data-theme="dark"] .amount {
    color: #F9FAFB !important;
}

[data-theme="dark"] .period {
    color: #D1D5DB !important;
}

[data-theme="dark"] .price-note {
    color: var(--primary-light) !important;
}

/* How it works dark mode */
[data-theme="dark"] .how-it-works-compact {
    background: #374151 !important;
    border-color: #4B5563 !important;
}

[data-theme="dark"] .step-compact {
    background: rgba(255, 159, 103, 0.08) !important;
}
