/* Modern Landing Page Styles */
:root {
    --primary-color: #202954;
    --secondary-color: #FF6B35;
    --accent-color: #F7931E;
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;
    --bg-light: #F8F9FA;
    --bg-white: #FFFFFF;
    --border-color: #E2E8F0;
    --border-light: #E2E8F0;
    --shadow-light: 0 2px 20px rgba(0,0,0,0.1);
    --shadow-medium: 0 8px 30px rgba(0,0,0,0.15);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Note: Removed global overflow-x: hidden to fix sticky navbar positioning */

*,
*::before,
*::after {
    max-width: 100%;
}

body {
    font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    width: 100%;
}

.title-accent { color: var(--secondary-color); }

/* Global section spacing with visual separation */
section {
    padding: 72px 0;
    position: relative;
}

/* Selective section borders for better content hierarchy */
.features-section {
    border-bottom: 1px solid var(--border-color);
}

.styles-section {
    border-bottom: 1px solid var(--border-color);
}

.social-proof-section {
    border-bottom: 1px solid var(--border-color);
}

.faq-section {
    border-bottom: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    section {
        padding: 48px 0;
    }
    
    .promise-section {
        margin: 1.5rem 0;
    }
    
    .features-section,
    .styles-section,
    .gallery-section,
    .social-proof-section,
    .faq-section {
        margin-top: 1.5rem;
    }
}

/* Hero Section - With Integrated Demo */
/* Override conflicting styles from style.css */
section.hero-section,
.hero-section {
    position: relative !important;
    background: linear-gradient(135deg, var(--primary-color) 0%, #3D4A7A 100%) !important;
    padding: 100px 0 60px 0 !important;
    min-height: 100vh !important;
    height: auto !important;
    overflow: visible !important;
    margin-top: 0 !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
}

/* Ensure mobile override works */
@media (max-width: 768px) {
    section.hero-section,
    .hero-section {
        padding: 80px 0 20px 0 !important;
        height: auto !important;
        overflow: visible !important;
        align-items: flex-start !important;
        min-height: auto !important;
    }
}

/* Trust / Credibility Section */
.trust-section {
    padding: 40px 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
}

.trust-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
}

.trust-badge i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
    padding: 0 1rem;
}

.hero-text {
    text-align: left;
}

.hero-demo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    margin-bottom: 0.75rem;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
    letter-spacing: -0.02em;
}

.hero-title span {
    background: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.hero-subtitle {
    font-size: clamp(0.95rem, 2.2vw, 1.15rem);
    margin-bottom: 1.5rem;
    opacity: 0.95;
    max-width: 500px;
    margin-left: 0;
    margin-right: 0;
    line-height: 1.5;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-stats {
    display: flex;
    justify-content: flex-start;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.urgency-banner {
    background: linear-gradient(45deg, var(--accent-color), #FFB84D);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(247, 147, 30, 0.3);
    animation: pulse 2s infinite;
}

.urgency-text {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.btn-primary-custom {
    background: var(--secondary-color);
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.2;
    text-decoration: none;
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
    min-width: 200px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary-custom:hover {
    background: #E55A2B;
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(255, 107, 53, 0.4);
    color: white;
}

.hero-offer {
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0.5rem 0 0.1rem 0;
    text-align: left;
}

.hero-microcopy {
    opacity: 0.85;
    font-size: 0.85rem;
    text-align: left;
    margin: 0 0 0 0;
}

.trust-indicators {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    opacity: 0.8;
    margin-top: 0.75rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Demo intro text */
.demo-intro {
    opacity: 0.9;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Urgency banner */
.urgency-banner {
    background: linear-gradient(135deg, #FFE5B4 0%, #FFD700 100%);
    color: #8B4513;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    text-align: center;
    border: 1px solid rgba(255, 215, 0, 0.3);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: default;
}

.urgency-text {
    display: block;
}

.before-after-container {
    position: relative;
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.before-after-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    max-height: 560px;
}

.before-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.before-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.after-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    clip-path: inset(0 50% 0 0);
    will-change: clip-path;
}

.after-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.slider-caption {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    z-index: 3;
}



.slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50px;  /* Match button width exactly */
    height: 100%;
    cursor: ew-resize;
    z-index: 10;
    transform: translateX(-50%);
    will-change: transform;
    transition: none;
    /* Ensure handle is always interactive */
    pointer-events: auto;
}

.slider-line {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: var(--color-theme);
    transform: translateX(-50%);
    z-index: 15;
    pointer-events: none;
}

.slider-button {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    background: transparent;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    cursor: ew-resize;
    transition: var(--transition);
    padding: 0;
    z-index: 20;
    /* Ensure button is always interactive */
    pointer-events: auto;
}

.slider-logo-img {
    width: 50px;  /* Restored to original size */
    height: 50px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
    transition: var(--transition);
    z-index: 25;
    position: relative;
    cursor: ew-resize;
    /* Allow click-through to parent for interaction */
    pointer-events: none;
}

.slider-button:hover {
    transform: translate(-50%, -50%) scale(1.05);
}

.slider-button:hover .slider-logo-img {
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
    transform: scale(1.1);
}

/* Add visual hint that the logo is draggable on desktop */
@media (hover: hover) and (pointer: fine) {
    .slider-button {
        /* Subtle pulse animation to indicate interactivity */
        animation: subtle-pulse 3s ease-in-out infinite;
    }
    
    .slider-button:hover {
        animation: none;
    }
}

@keyframes subtle-pulse {
    0%, 100% { 
        filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
    }
    50% { 
        filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6));
    }
}

/* Approach 1: Pulsing Magnetic Field Animation */
.slider-intro-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.slider-magnetic-field {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(
        circle at center,
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.08) 40%,
        transparent 70%
    );
    opacity: 0;
    animation: magneticFieldPulse 3s ease-in-out 0.5s infinite;
}

.slider-magnetic-field::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 20%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid rgba(255, 255, 255, 0.6);
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    opacity: 0;
    animation: leftArrowFloat 2s ease-in-out 1.5s infinite;
}

.slider-magnetic-field::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 20%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-right: 8px solid rgba(255, 255, 255, 0.6);
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    opacity: 0;
    animation: rightArrowFloat 2s ease-in-out 1.5s infinite;
}

@keyframes magneticFieldPulse {
    0%, 100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

@keyframes leftArrowFloat {
    0%, 100% {
        opacity: 0;
        transform: translateY(-50%) translateX(-5px);
    }
    50% {
        opacity: 0.8;
        transform: translateY(-50%) translateX(5px);
    }
}

@keyframes rightArrowFloat {
    0%, 100% {
        opacity: 0;
        transform: translateY(-50%) translateX(5px);
    }
    50% {
        opacity: 0.8;
        transform: translateY(-50%) translateX(-5px);
    }
}

/* Approach 2: Ghost Trail Effect */
.slider-ghost-trail {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50px;
    height: 100%;
    transform: translateX(-25px);
    pointer-events: none;
}

.ghost-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    opacity: 0;
}

.ghost-handle:nth-child(1) {
    animation: ghostTrail 4s ease-in-out 1s infinite;
    animation-delay: 0s;
}

.ghost-handle:nth-child(2) {
    animation: ghostTrail 4s ease-in-out 1s infinite;
    animation-delay: 0.3s;
}

.ghost-handle:nth-child(3) {
    animation: ghostTrail 4s ease-in-out 1s infinite;
    animation-delay: 0.6s;
}

@keyframes ghostTrail {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) translateX(-40px) scale(0.8);
    }
    15% {
        opacity: 0.6;
        transform: translate(-50%, -50%) translateX(-20px) scale(0.9);
    }
    30% {
        opacity: 0.4;
        transform: translate(-50%, -50%) translateX(0px) scale(1);
    }
    45% {
        opacity: 0.6;
        transform: translate(-50%, -50%) translateX(20px) scale(0.9);
    }
    60% {
        opacity: 0;
        transform: translate(-50%, -50%) translateX(40px) scale(0.8);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) translateX(40px) scale(0.8);
    }
}

/* Approach 3: Kinetic Typography with Contextual Hints */
.slider-kinetic-hint {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0;
    animation: kineticHintReveal 1s ease-out 1.8s forwards;
}

.drag-icon {
    display: flex;
    align-items: center;
    gap: 2px;
}

.drag-dot {
    width: 4px;
    height: 4px;
    background: var(--text-light);
    border-radius: 50%;
    opacity: 0.4;
    animation: dragDotFlow 2s ease-in-out 2.5s infinite;
}

.drag-dot:nth-child(1) { animation-delay: 2.5s; }
.drag-dot:nth-child(2) { animation-delay: 2.7s; }
.drag-dot:nth-child(3) { animation-delay: 2.9s; }
.drag-dot:nth-child(4) { animation-delay: 3.1s; }
.drag-dot:nth-child(5) { animation-delay: 3.3s; }

.hint-text {
    font-weight: 600;
    position: relative;
}

.hint-text .word {
    display: inline-block;
    opacity: 0.7;
    animation: wordPulse 3s ease-in-out 3s infinite;
}

.hint-text .word:nth-child(1) { animation-delay: 3s; }
.hint-text .word:nth-child(2) { animation-delay: 3.2s; }
.hint-text .word:nth-child(3) { animation-delay: 3.4s; }

@keyframes kineticHintReveal {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
    to {
        opacity: 0.8;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes dragDotFlow {
    0%, 100% {
        opacity: 0.4;
        transform: translateX(0) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translateX(3px) scale(1.2);
    }
}

@keyframes wordPulse {
    0%, 100% {
        opacity: 0.7;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateY(-1px);
    }
}

/* Magnetic Field Animation */
.slider-magnetic-field {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 160px;
    height: 160px;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 5;
}

.magnetic-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, 
        rgba(255, 210, 0, 0.6) 0%, 
        rgba(255, 210, 0, 0.4) 25%, 
        rgba(32, 41, 84, 0.3) 50%, 
        transparent 85%
    );
    border: 3px solid rgba(255, 210, 0, 0.7);
    box-shadow: 
        0 0 50px rgba(255, 210, 0, 0.5),
        0 0 80px rgba(32, 41, 84, 0.4),
        inset 0 0 30px rgba(255, 210, 0, 0.3);
    animation: magneticPulse 2.5s ease-in-out infinite;
}

.magnetic-arrow {
    position: absolute;
    top: 50%;
    font-size: 1.8rem;
    color: rgba(255, 210, 0, 1);
    text-shadow: 
        0 2px 10px rgba(0, 0, 0, 0.9),
        0 0 20px rgba(255, 210, 0, 0.8);
    transform: translateY(-50%);
    opacity: 0;
    animation: magneticArrowFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 210, 0, 0.8));
    font-weight: bold;
}

.magnetic-arrow.left {
    left: 10px;
    animation-delay: 0s;
}

.magnetic-arrow.right {
    right: 10px;
    animation-delay: 1.5s;
}

.slider-helper-text {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 210, 0, 0.9);
    font-size: 1rem;
    font-weight: 600;
    opacity: 0;
    animation: fadeInHelper 0.8s ease-out 1s forwards;
    white-space: nowrap;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    letter-spacing: 0.5px;
}

@keyframes magneticPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(0.9);
        opacity: 0.8;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.4);
        opacity: 0.4;
    }
}

@keyframes magneticArrowFloat {
    0% {
        opacity: 0;
        transform: translateY(-50%) translateX(0px) scale(0.8);
    }
    25% {
        opacity: 1;
        transform: translateY(-50%) translateX(15px) scale(1.1);
    }
    75% {
        opacity: 1;
        transform: translateY(-50%) translateX(-15px) scale(1.1);
    }
    100% {
        opacity: 0;
        transform: translateY(-50%) translateX(0px) scale(0.8);
    }
}

@keyframes fadeInHelper {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
    to {
        opacity: 0.7;
        transform: translateX(-50%) translateY(0);
    }
}

/* Hide intro animation when user interacts */
.slider-interacted .slider-intro-animation {
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Animation Control Classes - Show magnetic field by default */
.before-after-slider .slider-ghost-trail { display: none; }
.before-after-slider .slider-kinetic-hint { display: none; }

/* Optionally use specific approaches by adding these classes */
.before-after-slider.approach-ghost .slider-magnetic-field { display: none; }
.before-after-slider.approach-ghost .slider-ghost-trail { display: block; }

.before-after-slider.approach-kinetic .slider-magnetic-field { display: none; }
.before-after-slider.approach-kinetic .slider-kinetic-hint { display: block; }

/* Mobile responsive adjustments for all slider animations */
@media (max-width: 768px) {
    /* Approach 1: Mobile magnetic field */
    .slider-magnetic-field {
        width: 100px;
        height: 100px;
    }
    
    .slider-magnetic-field::before,
    .slider-magnetic-field::after {
        border-width: 6px 0 6px 6px;
        border-right-width: 6px;
    }
    
    /* Approach 2: Mobile ghost trail */
    .ghost-handle {
        width: 40px;
        height: 40px;
    }
    
    /* Approach 3: Mobile kinetic typography */
    .slider-kinetic-hint {
        font-size: 0.8rem;
        bottom: -40px;
        gap: 6px;
    }
    
    .drag-dot {
        width: 3px;
        height: 3px;
    }
    
    /* Original arrows (when enabled) */
    .slider-arrow-left,
    .slider-arrow-right {
        font-size: 1.5rem;
    }
    
    .slider-arrow-left {
        animation: slideInLeftMobile 1s ease-out 1s forwards, arrowPulse 2s ease-in-out 2.5s infinite;
    }
    
    .slider-arrow-right {
        animation: slideInRightMobile 1s ease-out 1s forwards, arrowPulse 2s ease-in-out 2.5s infinite;
    }
    
    .slider-helper-text {
        font-size: 0.8rem;
        bottom: -35px;
    }
}

@keyframes slideInLeftMobile {
    from {
        left: -50px;
        opacity: 0;
    }
    to {
        left: 60px;
        opacity: 0.8;
    }
}

@keyframes slideInRightMobile {
    from {
        right: -50px;
        opacity: 0;
    }
    to {
        right: 60px;
        opacity: 0.8;
    }
}

/* Risk Reversal Banner */
.risk-reversal-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    background: linear-gradient(135deg, #E8F5E8, #F0F8FF);
    border: 2px solid #28A745;
    border-radius: var(--border-radius);
    padding: 1rem 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.risk-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #155724;
    font-weight: 600;
    font-size: 0.9rem;
}

.risk-item i {
    color: #28A745;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .risk-reversal-banner {
        gap: 1rem;
        padding: 0.75rem 1rem;
    }
    
    .risk-item {
        font-size: 0.8rem;
    }
}

/* Pricing Section - Moved up */
.pricing-section {
    background: var(--bg-light);
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-pill {
    display: inline-block;
    background: #EEF2FF;
    color: #3D4A7A;
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1140px;
    margin: 0 auto 3rem;
}

.pricing-tier-card {
    background: var(--bg-white);
    border: 2px solid #E9ECEF;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    text-align: center;  /* Center pricing text */
}

.pricing-tier-card:hover { 
    box-shadow: var(--shadow-medium); 
    transform: translateY(-4px); 
}

.pricing-tier-card.featured {
    border-color: var(--secondary-color);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.25);
    position: relative;
}

.pricing-best-badge {
    position: absolute;
    top: -12px;
    left: 16px;
    background: var(--secondary-color);
    color: #fff;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
}

.pricing-range { 
    font-weight: 700; 
    color: var(--text-dark); 
    margin-bottom: 0.5rem; 
}

.price-value { 
    font-size: 2.25rem; 
    font-weight: 800; 
    color: var(--primary-color); 
    line-height: 1; 
    font-variant-numeric: tabular-nums; 
    font-feature-settings: 'tnum' 1; 
}

.price-unit { 
    color: var(--text-light); 
    margin-bottom: 0.75rem; 
}

.tier-bullets { 
    list-style: none; 
    padding-left: 0; 
    margin: 0; 
}

.tier-bullets li { 
    color: var(--text-light); 
    padding: 0.25rem 0; 
}

.tier-bullets li:before { 
    content: "•"; 
    margin-right: 0.5rem; 
    color: var(--secondary-color); 
}

.roi-highlight {
    background: linear-gradient(135deg, #FFF5F2, #FFF8E1);
    border: 1px solid var(--secondary-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    margin-top: 2rem;
}

.roi-text {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.roi-savings {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.pricing-shared-perks {
    text-align: center;
    margin: 2rem auto 1rem;
    padding: 1rem;
    background: rgba(32, 41, 84, 0.05);
    border-radius: var(--border-radius);
    max-width: 600px;
}

.pricing-shared-perks p {
    color: var(--text-dark);
    font-weight: 500;
    margin: 0;
    font-style: italic;
}

.pricing-helper-text {
    text-align: center;
    margin-bottom: 1.5rem;
}

.pricing-helper-text p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

/* ROI Calculator */
.roi-calculator {
    background: var(--bg-white);
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-top: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.calculator-title {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.calculator-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.input-group input {
    padding: 0.5rem;
    border: 2px solid #E9ECEF;
    border-radius: 6px;
    font-size: 1rem;
    text-align: center;
    transition: border-color 0.2s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.calculation-results {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: var(--border-radius);
    border: 1px solid #E9ECEF;
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #E9ECEF;
}

.result-row:last-child {
    border-bottom: none;
}

.result-value {
    font-weight: 600;
    color: var(--text-dark);
}

.savings-row {
    background: linear-gradient(135deg, #E8F5E8, #F0F8FF);
    padding: 1rem;
    margin: 0.5rem -1rem -1rem -1rem;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    border-top: 2px solid var(--secondary-color);
}

.savings-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary-color);
}

@media (max-width: 768px) {
    .calculator-inputs {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .roi-calculator {
        padding: 1.5rem;
        margin: 2rem 1rem 0;
    }
}

/* Bottom CTA Section */
.bottom-cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #3D4A7A 100%);
    color: white;
    text-align: center;
    margin-top: 3rem;
    border-top: 3px solid var(--secondary-color);
}

.bottom-cta-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 769px) {
    .bottom-cta-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
    
    .bottom-cta-title {
        flex: 1;
        margin-right: 2rem;
    }
}

.bottom-cta-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* Gallery before/after sliders */
.gallery-before-after-slider {
    position: relative;
    width: 100%;
    height: 240px;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-light);
}

.slider-labels {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    z-index: 3;
    pointer-events: none;
}

.before-label, .after-label {
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: calc(var(--border-radius) / 3);
    font-size: 0.75rem;
    font-weight: 500;
}

.gallery-before-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.gallery-before-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.gallery-after-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    clip-path: inset(0 50% 0 0);
    will-change: clip-path;
}

.gallery-after-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.gallery-slider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    cursor: grab;
    will-change: transform;
    transition: none;
}

.gallery-slider-button {
    width: 40px;
    height: 40px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
}

.gallery-slider-button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

/* Social Proof Section */
.social-proof-section {
    padding: 60px 0;
    background: var(--bg-white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    border: 1px solid #E9ECEF;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.testimonial-text {
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.author-info h4 {
    margin: 0;
    color: var(--text-dark);
    font-size: 1rem;
}

.author-info p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* How It Works Section */
.features-section {
    background: var(--bg-light);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-light);
    border: 1px solid #E9ECEF;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: white;
}

.feature-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.feature-description {
    color: var(--text-light);
    line-height: 1.5;
    font-size: 0.9rem;
}

.feature-helper-text {
    color: var(--text-light);
    font-size: 0.8rem;
    font-style: italic;
    margin-top: 0.5rem;
    line-height: 1.4;
}

.photo-guide-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
}

.photo-guide-link:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Business Applications */
.business-applications {
    margin-top: 3rem;
}

.applications-title {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.applications-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.application-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    text-align: center;
}

.application-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.application-image {
    width: 100%;
    height: 120px;
    overflow: hidden;
}

.application-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.application-title {
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

/* Styles Section */
.styles-section {
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
    position: relative;
}

.styles-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.styles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.style-card {
    background: var(--bg-white);
    border: 2px solid #E9ECEF;
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.style-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
    border-color: var(--secondary-color);
}

.style-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
    color: white;
}

.style-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.style-tokens {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.style-token {
    color: var(--primary-color);
}

.style-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.style-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.backdrop-options {
    margin-top: auto;
    padding-top: 1rem;
    text-align: center;
}

.choose-label {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}

.backdrop-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.backdrop-option {
    font-size: 0.8rem;
    background: var(--bg-light);
    color: var(--text-dark);
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    font-weight: 500;
}

.custom-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

.custom-link:hover {
    text-decoration: underline;
}

.style-feature {
    background: var(--bg-light);
    color: var(--text-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Gallery Section */
.gallery-section {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    /* Prevent any text selection in gallery */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    aspect-ratio: 16/12;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    cursor: pointer;
    background: var(--bg-white);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    backdrop-filter: blur(2px);
    color: white;
    padding: 1.5rem;
    transform: translateY(100%);
    transition: var(--transition);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.image-title {
    font-size: 1.3rem;  /* Increased title size to be noticeably larger */
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
    letter-spacing: 0.02em;
}

.style-label {
    font-size: 0.85rem;  /* Base text size */
    color: #ffffff;
    margin-bottom: 0.3rem;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.gallery-overlay .style-name {
    color: #ffffff;  /* White for better visibility */
    font-weight: 600;  /* Reduced from 700 to match other text weight */
    font-size: inherit;  /* Same size as parent style-label */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.backdrop-info {
    font-size: 0.85rem;  /* Same as style-label for consistency */
    color: #ffffff;
    margin-bottom: 0.4rem;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.style-result {
    font-size: 0.85rem;  /* Same as other text for uniformity */
    color: #f0f0f0;
    font-style: italic;
    line-height: 1.4;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    margin-top: 0.3rem;
}

.toggle-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
    transition: all 0.3s ease;
    user-select: none;
    pointer-events: auto;
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Interactive hint animation - desktop */
.gallery-item.ready .toggle-badge {
    animation: badgeGlow 3s ease-in-out infinite;
    border-color: rgba(255, 210, 0, 0.3);
}

@keyframes badgeGlow {
    0%, 100% {
        background: rgba(0, 0, 0, 0.8);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }
    50% {
        background: rgba(255, 210, 0, 0.85);
        box-shadow: 0 0 20px rgba(255, 210, 0, 0.5);
        color: #000;
    }
}

/* Stop animation on hover/interaction */
.gallery-item:hover .toggle-badge,
.gallery-item.original .toggle-badge {
    animation: none;
    border-color: transparent;
}

/* Mobile-specific improvements for gallery items */
@media (hover: none) and (pointer: coarse) {
    .gallery-item {
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -khtml-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        cursor: default;
        -webkit-tap-highlight-color: transparent;
        -webkit-highlight: none;
        outline: none;
    }
    
    .gallery-item * {
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -khtml-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
        pointer-events: none; /* Prevent selection on child elements */
    }
    
    .gallery-item img {
        transition: none; /* Remove transition for instant feedback */
        -webkit-user-drag: none;
        -khtml-user-drag: none;
        -moz-user-drag: none;
        -o-user-drag: none;
        user-drag: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }
    
    .toggle-badge {
        background: rgba(255, 210, 0, 0.9);
        color: #000;
        font-size: 0.85rem;
        padding: 8px 12px;
        font-weight: 700;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        border: 2px solid rgba(255, 255, 255, 0.3);
        pointer-events: auto; /* Override parent pointer-events: none */
    }
    
    /* Mobile interactive hint */
    .gallery-item.ready .toggle-badge {
        animation: pulseMobile 2.5s ease-in-out infinite;
    }
    
    @keyframes pulseMobile {
        0%, 100% {
            transform: scale(1);
            background: rgba(255, 210, 0, 0.9);
        }
        50% {
            transform: scale(1.08);
            background: rgba(255, 210, 0, 1);
            box-shadow: 0 0 15px rgba(255, 210, 0, 0.6);
        }
    }
}


/* Loading state for gallery images */
.gallery-image {
    transition: opacity 0.3s ease;
}

.gallery-item.loading .gallery-image {
    opacity: 0.7;
}

/* Loading spinner removed - images preload in background */

/* FAQ Section - Expanded */
.faq-section {
    background: var(--bg-light);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-light);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
}

.faq-question:hover {
    background-color: var(--bg-light);
}

.faq-icon {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--primary-color);
    transition: transform 0.2s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.3s ease-out,
                padding 0.3s ease-out;
    background: var(--bg-white);
    opacity: 0;
}

.faq-answer.open {
    max-height: 400px;
    opacity: 1;
}

.faq-answer p {
    padding: 0 1.5rem 1.25rem 1.5rem;
    margin: 0;
    color: var(--text-light);
    line-height: 1.6;
}

/* Promise Section */
.promise-section {
    background: var(--bg-white);
    margin: 3rem 0;
}

.promise-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
    align-items: start;
}

.promise-story {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    border: 1px solid #f1f5f9;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.promise-intro {
    margin-bottom: 2rem;
}

.promise-lead {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0;
    line-height: 1.4;
}

.promise-explanation {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-dark);
}

.promise-explanation p {
    margin-bottom: 1.5rem;
}

.promise-conclusion {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.promise-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 0;
}

.promise-pillar {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    border-left: 4px solid var(--secondary-color);
    transition: var(--transition);
    position: relative;
}

.promise-pillar:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}

.pillar-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.2);
}

.pillar-icon i {
    font-size: 1.25rem;
    color: white;
    width: auto;
    text-align: center;
}

.pillar-content {
    flex: 1;
}

.pillar-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.pillar-description {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.4;
    margin: 0;
}



/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #3D4A7A 100%);
    color: white;
    text-align: center;
}

.cta-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Medium screens (tablets) */
@media (max-width: 1024px) and (min-width: 769px) {
    section.hero-section,
    .hero-section {
        padding: 120px 0 60px 0 !important;
        height: auto !important;
        overflow: visible !important;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
        max-width: 900px;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero-title {
        font-size: clamp(2rem, 4vw, 2.8rem);
    }
    
    .hero-subtitle {
        font-size: clamp(1.1rem, 2.5vw, 1.3rem);
        margin-left: auto;
        margin-right: auto;
        max-width: 700px;
    }
    
    .hero-cta {
        align-items: center;
    }
    
    .hero-offer,
    .hero-microcopy {
        text-align: center;
    }
    
    .trust-indicators {
        justify-content: center;
    }
    
    .before-after-container {
        max-width: 600px;
    }
    
    /* Gallery improvements for medium screens */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        max-width: 800px;
    }
    
    .gallery-info h4 {
        font-size: 1rem;
    }
    
    .gallery-info p {
        font-size: 0.85rem;
    }
    
    /* Styles grid improvements for medium screens */
    .styles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        max-width: 900px;
    }
    
    /* Promise pillars for medium screens */
    .promise-pillars {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    
    .promise-pillar:last-child {
        grid-column: 1 / -1;
        max-width: 500px;
        margin: 0 auto;
    }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    /* Hero Section Mobile - already defined above with !important */
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 1rem;
        text-align: center;
        margin-top: 0;
    }
    
    .hero-text {
        text-align: center;
        order: 1;
    }
    
    .hero-demo {
        order: 2;
    }
    
    .hero-title {
        font-size: clamp(2.2rem, 7vw, 2.8rem);
        margin-bottom: 0.5rem;
        line-height: 1.1;
        margin-top: 1.5rem;
    }

    .hero-subtitle {
        font-size: clamp(1rem, 3.2vw, 1.2rem);
        margin-bottom: 1rem;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        line-height: 1.4;
    }
    
    .hero-cta {
        align-items: center;
        margin-bottom: 1rem;
        gap: 0.4rem;
    }
    
    .hero-offer {
        text-align: center;
        margin: 0.3rem 0 0.1rem 0;
        font-size: 0.85rem;
    }
    
    .hero-microcopy {
        text-align: center;
        margin: 0 0 0.3rem 0;
        font-size: 0.8rem;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .stat-number {
        font-size: 1.1rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .hero-cta {
        align-items: center;
        margin-bottom: 0.75rem;
    }
    
    .hero-microcopy {
        text-align: center;
        font-size: 0.8rem;
    }
    
    .trust-indicators {
        justify-content: center;
        gap: 0.75rem;
        flex-wrap: wrap;
        margin-top: 0.5rem;
        margin-bottom: 0;
    }
    
    .trust-item {
        font-size: 0.75rem;
    }
    
    .hero-demo {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Slider button now matches desktop - no overrides needed */
    
    .before-after-container {
        max-width: 75vw;
        width: 100%;
    }
    
    .before-after-slider {
        aspect-ratio: 3/4;
        max-height: 40vh;
    }
    
    .demo-intro {
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
    }
    
    .btn-primary-custom {
        width: 100%;
        max-width: 280px;
        font-size: 0.95rem;
        padding: 0.85rem 1.75rem;
        margin: 0.3rem auto;
        min-width: auto;
    }

    /* General mobile responsive */
    .container {
        padding: 0 1rem;
    }

    /* Grids responsive */
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .applications-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        max-width: 400px;
    }
    
    .application-image {
        height: 100px;
    }
    
    .application-title {
        font-size: 0.9rem;
        padding: 0.75rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .styles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .style-card {
        padding: 1.5rem 1rem;
    }
    
    .style-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 1rem;
        font-size: 1.4rem;
    }
    
    .style-name {
        font-size: 1.1rem;
        margin-bottom: 0.4rem;
    }
    
    .style-tokens {
        font-size: 0.75rem;
        margin-bottom: 0.6rem;
    }
    
    .style-description {
        font-size: 0.85rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }
    
    .style-features {
        gap: 0.4rem;
    }
    
    .style-feature {
        padding: 0.2rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Trust badges mobile */
    .trust-badges {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
    
    /* Section headings mobile */
    .section-title {
        font-size: clamp(1.5rem, 4vw, 2rem);
        margin-bottom: 1rem;
    }

    .section-subtitle {
        font-size: clamp(0.9rem, 2.5vw, 1rem);
        margin-bottom: 2rem;
    }
    
    /* Promise section mobile */
    .promise-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .promise-story {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .promise-pillars {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-top: 0;
    }
}

/* Tall narrow phones - reduce excessive bottom space */
@media (max-width: 480px) and (min-height: 800px) {
    section.hero-section,
    .hero-section {
        padding: 70px 0 10px 0 !important;
    }
    
    .hero-content {
        gap: 0.75rem;
    }
    
    .before-after-slider {
        max-height: 35vh;
    }
}

/* Extra small screens (very narrow phones) */
@media (max-width: 320px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .hero-content {
        padding: 0 0.5rem;
    }
    
    .btn-primary-custom {
        min-width: auto;
        width: 100%;
        max-width: 260px;
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .promise-story {
        padding: 1rem;
        margin: 0 0.5rem;
    }
    
    .hero-title {
        font-size: clamp(1.3rem, 5vw, 1.7rem);
        margin-bottom: 0.4rem;
    }
    
    .hero-subtitle {
        font-size: clamp(0.8rem, 2.5vw, 0.9rem);
        margin-bottom: 0.8rem;
    }
    
    .before-after-container {
        max-width: 90vw;
    }
    
    .before-after-slider {
        max-height: 35vh;
    }
    
    .section-title {
        font-size: clamp(1.3rem, 5vw, 1.6rem);
    }
}

/* Loading animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    animation: fadeInUp 0.6s ease-out;
}

/* Touch interactions for mobile */
@media (hover: none) and (pointer: coarse) {
    .gallery-overlay {
        transform: translateY(0);
        opacity: 0.9;
    }
    
    .feature-card:hover,
    .gallery-item:hover,
    .testimonial-card:hover {
        transform: none;
    }
    
    .btn-primary-custom:hover {
        transform: none;
        opacity: 0.9;
        box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    }

    .btn-primary-custom:active {
        transform: scale(0.98);
        opacity: 0.8;
    }
}

/* Focus Indicators for Accessibility */
.gallery-item:focus {
    outline: 3px solid var(--color-theme);
    outline-offset: 2px;
    border-radius: 8px;
}

.faq-question:focus {
    outline: 2px solid var(--color-theme);
    outline-offset: 2px;
    background-color: rgba(32, 41, 84, 0.05);
}

.btn-primary-custom:focus {
    outline: 3px solid var(--color-theme);
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(32, 41, 84, 0.3);
}

.slider-handle:focus {
    outline: 3px solid var(--color-theme);
    outline-offset: 2px;
    border-radius: 50%;
}

a:focus,
button:focus {
    outline: 2px solid var(--color-theme);
    outline-offset: 2px;
}

/* Ensure focus indicators are always visible */
*:focus {
    outline-style: solid !important;
}

/* High contrast focus indicators for better visibility */
@media (prefers-contrast: high) {
    .gallery-item:focus,
    .faq-question:focus,
    .btn-primary-custom:focus,
    a:focus,
    button:focus {
        outline: 4px solid #000;
        outline-offset: 2px;
    }
}

/* Mobile Typography and Spacing Improvements */
@media (max-width: 768px) {
    /* Improve mobile typography */
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        line-height: 1.4;
        margin-bottom: 1.5rem;
    }
    
    .section-title {
        font-size: 1.75rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 2rem;
    }
    
    /* Better mobile spacing */
    .feature-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .gallery-grid {
        gap: 1rem;
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .styles-grid {
        gap: 1rem;
        grid-template-columns: 1fr;
    }
    
    .style-card {
        padding: 1.5rem;
    }
    
    /* FAQ mobile optimization */
    .faq-question {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .faq-answer {
        padding: 1rem;
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    /* Promise section mobile */
    .promise-pillars {
        gap: 1.5rem;
    }
    
    .promise-pillar {
        padding: 1rem;
    }
    
    /* Applications grid mobile */
    .applications-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .application-card {
        padding: 1rem;
    }
    
    .application-title {
        font-size: 0.9rem;
        margin-top: 0.5rem;
    }
}

/* Loading states for performance */
/* Loading state removed - images preload in background */

/* Remove loading styles - no longer needed */

/* Hide text overlay when viewing original */
.gallery-item.original .gallery-overlay {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.gallery-item.original .toggle-badge {
    background: var(--secondary-color);
    color: white;
}

/* Preload critical images */
.before-image img,
.after-image img {
    will-change: clip-path;
}

/* Optimize image rendering */
img {
    image-rendering: auto;
    image-rendering: crisp-edges;
    image-rendering: -webkit-optimize-contrast;
}

/* Enhanced CTA Button Animations */
.btn-primary-custom {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary-custom:hover::before {
    left: 100%;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
}

.btn-primary-custom:active {
    transform: translateY(0);
    transition: transform 0.1s;
}

/* Pulse animation for CTA buttons */
@keyframes ctaPulse {
    0% {
        box-shadow: 0 4px 15px rgba(255, 107, 53, 0.2);
    }
    50% {
        box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4);
    }
    100% {
        box-shadow: 0 4px 15px rgba(255, 107, 53, 0.2);
    }
}

.btn-primary-custom {
    animation: ctaPulse 3s ease-in-out infinite;
}

.btn-primary-custom:hover {
    animation: none;
}

