/* assets/css/styles.css */

html {
    scroll-behavior: smooth;
}

:root {
    /* Colors */
    --tinder-pink: #FD297B;
    --tinder-red: #FF5864;
    --tinder-orange: #FF655B;
    --bg-light: #ffffff;
    --bg-dark: #040206;
    --bg-dark-grad-start: #100819;
    --text-light: rgba(19, 15, 26, 0.78);
    --text-dark: #E2E8F0;
    --heading-light: #1A202C;
    --heading-dark: #F7FAFC;
    --star-color: #f8b749;

    --text-color: var(--text-light);
    /* Default text color */

    /* Gradients */
    --gradient-primary: linear-gradient(90deg, #FD297B, #FF5864, #FF655B);
    --gradient-text: -webkit-linear-gradient(45deg, #FD297B, #FF655B);

    /* Layout */
    --header-height: 58px;
    --border-radius-btn: 100px;
    --border-radius-card: 24px;

    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-medium: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    --border-color: rgba(0, 0, 0, 0.08);

    /* Background Variables for mix */
    --bgTop: #100819;
    --bg: #040206;
}

/* Base Setup */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-light);
    background: radial-gradient(1200px 600px at 50% 0%, color-mix(in srgb, var(--tinder-pink) 12%, transparent), transparent 60%), var(--bg-light);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

html.theme-dark body {
    background: radial-gradient(1200px 600px at 50% 0%, color-mix(in srgb, var(--bgTop) 92%, transparent), transparent 62%), var(--bg);
    /* Soften white text for professional look */
    --text-color: #D1D5DB;
    --heading-light: #EDF2F7;
    /* Slightly darker off-white for headings */

    /* FIX: Remap --text-light (which is dark) to a light color in dark mode */
    --text-light: #A0AEC0;
}

/* Typography */
h1,
h2,
h3 {
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--heading-light);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -0.02em;
    text-align: center;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.5rem;
}



a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:not(.btn):not(.nav-link):not(.header__logo):not(.mobile-link) {
    text-decoration: underline;
    text-decoration-color: rgba(0, 0, 0, 0.2);
}

a:not(.btn):hover {
    color: var(--tinder-pink);
}

/* Utilities */
.container {
    max-width: 1200px;
    padding: 0 20px;
    margin-right: auto;
    margin-left: auto;
}

.blog-articles {
    margin-top: 0 !important;
    margin-bottom: 60px;
}

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

.hidden {
    display: none !important;
}

/* Buttons - Only two types: primary and secondary */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: var(--border-radius-btn);
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.4;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid transparent;
    text-decoration: none !important;
    gap: 6px;
}

.btn svg {
    flex-shrink: 0;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(253, 41, 123, 0.15);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Primary Button - Gradient background */
.btn--primary {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

.btn--primary:hover {
    color: white;
}

/* Secondary Button - Transparent with subtle border */
.btn--secondary {
    background: transparent;
    border-color: rgba(143, 143, 143, 0.25);
    color: var(--heading-light);
}

html.theme-dark .btn--secondary {
    color: var(--text-dark);
    border-color: rgba(255, 255, 255, 0.15);
}

.btn--secondary:hover {
    background: rgba(0, 0, 0, 0.03);
}

html.theme-dark .btn--secondary:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Icon-only buttons (theme toggle, etc.) */
.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    color: var(--text-light);
    transition: background-color var(--transition-fast);
}

.btn-icon:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.btn-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

html.theme-dark .btn-icon {
    color: var(--text-dark);
}

html.theme-dark .btn-icon:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Button SVG icons - color based on button type */
.btn--primary svg {
    fill: white;
}

.btn--secondary svg {
    fill: currentColor;
}

/* Euro symbol superscript */
.euro-sup {
    font-size: 0.7em;
    vertical-align: super;
}

/* Header */
.header {
    position: sticky;
    top: 15px;
    z-index: 1000;
    width: 100%;
    transition: all var(--transition-medium);
    padding: 0 20px;
}

.header__wrapper {
    max-width: 950px;
    margin: 0 auto;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    /* Pill shape */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: all var(--transition-medium);
}

@media (min-width: 992px) {

    /* Header Compact State - Desktop Only */
    .header--compact .header__wrapper {
        max-width: 850px;
        height: 60px;
        padding: 0 14px;
    }

    .header--compact .header__nav {
        gap: 24px;
    }
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--heading-light);
}

.header__logo-icon-wrapper {
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: -4px;
}

.header__logo-icon {
    height: 32px;
    width: auto;
}

/* ========================================
   LOGO DEFAULT STATE
   SVG = Tinder gradient, AI = Animated rainbow
   ======================================== */

/* Static primary - always visible as base layer */
.logo-icon-static.logo-icon-primary {
    opacity: 1;
}

/* Static secondary - always 0.4 opacity */
.logo-icon-static.logo-icon-secondary {
    opacity: 0.4;
}

/* Animated paths - overlay layer, hidden by default */
.logo-icon-animated.logo-icon-primary {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.logo-icon-animated.logo-icon-secondary {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Text container - "TinderPics" gets Tinder gradient */
.header__logo-text {
    position: relative;
    z-index: 10;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* AI part - Animated rainbow gradient BY DEFAULT */
.logo-ai {
    font-weight: 800;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #4facfe, #667eea);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-move 3s ease-in-out infinite;
}

/* ========================================
   LOGO HOVER STATE
   Animated overlay fades in ON TOP (no flash)
   ======================================== */

/* On hover: show animated paths on top of static (no need to hide static) */
.header__logo:hover .logo-icon-animated.logo-icon-primary {
    opacity: 1;
}

.header__logo:hover .logo-icon-animated.logo-icon-secondary {
    opacity: 0.4;
}

/* Hover overlay for text - ONLY "TinderPics" to avoid double AI */
.header__logo-text::after {
    content: 'TinderPics';
    position: absolute;
    left: 0;
    top: 0;
    font-weight: inherit;
    font-size: inherit;
    letter-spacing: inherit;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #4facfe, #667eea);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-move 3s ease-in-out infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 20;
}

/* On hover: show overlay for TinderPics part */
.header__logo:hover .header__logo-text::after {
    opacity: 1;
}


.header__nav {
    display: flex;
    gap: 30px;
    transition: gap var(--transition-medium);
}

.nav-link {
    font-weight: 500;
    color: var(--text-light);
    font-size: 0.90rem;
    position: relative;
    text-decoration: none !important;
}

.nav-link:hover {
    color: var(--heading-light);
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Mobile Menu */
.mobile-only {
    display: none;
}

/* Mobile header actions - hidden by default, shown via mobile-only in @media */
.header__mobile-actions {
    align-items: center;
    gap: 8px;
}

.mobile-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.5);
    /* Slightly more opaque for readability but glass style */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    /* Always flex, hide with opacity/visibility */
    flex-direction: column;
    gap: 16px;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.mobile-menu.menu--open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: all;
}

.mobile-link {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--heading-light);
    text-decoration: none !important;
}

.mobile-actions {
    width: fit-content;
    border-top: 1px solid #eee;
    padding-top: 16px;
}

/* Hamburger */
.burger-btn {
    width: 24px;
    height: 32px;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 0;
    z-index: 100;
}

.burger-btn span {
    display: block;
    width: 100%;
    height: 2px;
    /* Thinner bars */
    background: var(--heading-light);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

/* Burger Animation */
.burger-btn.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.burger-btn.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.burger-btn.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section */
section {
    margin-top: 60px;
}

@media (max-width: 768px) {
    section {
        margin-top: 40px !important;
    }

    .hero {
        padding-top: 20px;
    }

    .blog-articles {
        margin-bottom: 40px !important;
        margin-top: 16px !important;
    }

    .blog-latest {
        margin-top: 0 !important;
    }
}

.hero {
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero__left {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
    margin: auto 0;
    text-align: left;
}

/* Override alignment for desktop if needed? User said "Essaie que tout continue d'être responsive". Usually hero is left-aligned on desktop.
   However, user explicitly asked for 'align items center'. I will follow the explicit instruction. */

html.theme-dark .hero__badge {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.hero__badge-divider {
    width: 4px;
    height: 4px;
    background: #CBD5E0;
    border-radius: 50%;
}

.hero__badge-icon {
    font-size: 1.1em;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* Steps Guarantee */
.steps-guarantee {
    font-size: 0.9rem;
    color: var(--text-light);
    opacity: 0.8;
    margin-top: 20px;
}

.hero__avatars {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.avatar-group {
    display: flex;
}

.avatar-group img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid white;
    margin-left: -12px;
    object-fit: cover;
}

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

.stars svg {
    color: var(--star-color);
    fill: var(--star-color);
    width: 16px;
    height: 16px;
}

.social-proof-text {
    font-size: 0.9rem;
    font-weight: 500;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero__btns {
    display: flex;
    gap: 16px;
}

/* Comparisons */
.comparison-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 600px;
    border-radius: 24px;
    overflow: hidden;
    margin: 0 auto;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.comparison-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.comparison-before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
    /* Initial */
}

/* Overlay for APRÈS label - full width, will be clipped inverse to before */
.comparison-after-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);
    /* Initial - shows right half */
}

/* How It Works - New Design */
/* How It Works - Grid */
.how-it-works__grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 40px;
    align-items: center;
}

.step-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px;
    text-align: center;
    background: white;
    border-radius: 24px;
    border: 1px solid #E2E8F0;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    width: 100%;
    max-width: 340px;
}

html.theme-dark .step-card {
    background: #2D3748;
    border-color: #4A5568;
    box-shadow: none;
}

.step-card:hover {
    border-color: #CBD5E0;
    /* Card stays put, Icon jumps */
}

html.theme-dark .step-card:hover {
    border-color: #718096;
}

.step-visual {
    position: relative;
    display: inline-block;
    margin-bottom: 24px;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* Bouncy pop */
}

.step-card:hover .step-visual {
    transform: translateY(-8px) rotate(6deg);
}

.step-card__number {
    width: 28px;
    height: 28px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    position: absolute;
    top: -10px;
    left: -10px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(253, 41, 123, 0.3);
}

html.theme-dark .step-card__number {
    color: rgba(255, 255, 255, 0.9);
    /* High contrast for readability on gradient if needed, or keeping it white/transparent? Original was rgba...0.05 which seems weird for text color? Ah, it was color: #EDF2F7 originally. 0.05 is probably for background? No, property says color. Let's stick to white for readibility on the gradient background */
    color: white;
}

.step-card__icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tinder-pink);
    border-radius: 20px;
    background: rgba(253, 41, 123, 0.05);
    margin-bottom: 0;
    /* Wrapper handles margin */
    position: relative;
    z-index: 1;
}

html.theme-dark .step-card__icon {
    background: rgba(253, 41, 123, 0.1);
}

.step-card__title {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--heading-light);
}

.step-card__text {
    font-size: 0.95rem;
    color: var(--text-light);
    max-width: 250px;
    margin: 0 auto;
}

/* Arrow Container - Now a separate flex item in the grid */
.step-arrow-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 0;
    color: var(--tinder-pink);
}

.step-arrow-icon {
    width: 32px;
    height: 32px;
    transform: rotate(90deg);
    /* Down on mobile */
    transition: transform 0.3s ease;
}

@media (min-width: 992px) {
    .how-it-works__grid {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 0;
    }

    .step-card {
        flex: 0 1 300px;
        /* Fixed width cards */
        max-width: 300px;
    }

    .step-arrow-container {
        flex: 0 0 60px;
        /* Fixed width for arrow */
        padding: 0 8px;
    }

    .step-arrow-icon {
        transform: rotate(0deg);
        /* Right on desktop */
        width: 28px;
        height: 28px;
    }
}

/* Dark mode adaptation */
html.theme-dark .step-icon-wrapper {
    background: rgba(147, 51, 234, 0.1);
    /* Purple tint */
}

.comparison-handle {
    position: absolute;
    top: 0;
    left: 50%;
    bottom: 0;
    width: 4px;
    background: white;
    cursor: pointer;
    z-index: 10;
    touch-action: none;
    /* Critical for mobile: disables scrolling while touching this */
}

.handle-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    color: var(--tinder-pink);
}

.handle-btn svg {
    width: 20px;
    height: 20px;
}

.label-comparison {
    position: absolute;
    top: 20px;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    pointer-events: none;
    z-index: 5;
}

.label-before {
    left: 20px;
}

.label-after {
    right: 20px;
}

.upload-card {
    background: white;
    border-radius: 32px;
    padding: 40px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
    text-align: center;
    max-width: 880px;
    margin: 0 auto;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.upload-error {
    font-style: italic;
    margin-top: 5px;
    font-size: 0.8rem;
}

.dropzone {
    border: 2px dashed #CBD5E0;
    border-radius: 24px;
    padding: 40px;
    transition: all var(--transition-medium);
    cursor: pointer;
    background: #F7FAFC;
    margin-bottom: 24px;
}

.dropzone:hover,
.dropzone.dragover {
    border-color: var(--tinder-pink);
    background: rgba(253, 41, 123, 0.02);
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.preview-item {
    width: 100%;
    padding-top: 100%;
    /* square */
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.preview-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Upload progress bar */
.preview-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(200, 200, 200, 0.5);
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}

.preview-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--gradient-primary);
    transition: width 0.2s ease;
    border-radius: 0 0 12px 12px;
}

.remove-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    background: none;
    color: white;
    /* Keep white for the SVG paths if they use currentColor */
    border: none;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    /* transition-duration: 0.15s; */
}

.remove-btn:hover {
    filter: opacity(.6);
}

.remove-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    opacity: 1;
}

/* Loader Overlay */
.overlay-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-light);
    z-index: 9999;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s;
}

.overlay-loader.active {
    display: flex;
    opacity: 1;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(253, 41, 123, 0.2);
    border-top-color: var(--tinder-pink);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 30px;
}

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

.progress-container {
    width: 300px;
    height: 8px;
    background: #EDF2F7;
    border-radius: 100px;
    overflow: hidden;
    margin: 20px 0;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: var(--gradient-primary);
    border-radius: 100px;
    transition: width 0.3s linear;
}

.progress-percentage {
    font-size: 3rem;
    font-weight: 800;
    color: var(--heading-light);
}

.step-log {
    font-family: monospace;
    color: var(--text-light);
    margin-top: 10px;
    height: 20px;
}

/* Results Page */
.results-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin: 40px 0;
}

/* Blog Grid - Featured first item + equal height cards */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px 0;
}

/* Featured article spans full width */
.blog-grid .blog-card:first-child {
    grid-column: 1 / -1;
}

.blog-grid .blog-card:first-child .blog-card-cover {
    height: 400px;
}

@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

.photo-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    width: 261px;
    height: 464px;
    flex-shrink: 0;
}

.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-card.blurred img {
    filter: blur(20px);
    transform: scale(1.1);
    /* avoid white edges */
}

.photo-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    padding: 24px 20px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--heading-light);
    text-align: center;
}

html.theme-dark .photo-overlay {
    background: rgba(30, 30, 30, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

.photo-overlay h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: inherit;
}

.lock-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 8px;
    color: var(--heading-light);
}

html.theme-dark .lock-icon {
    color: #fff;
}

/* Results Page Layout */
.page-section {
    padding: 80px 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header .hero__badge {
    margin-top: 16px;
}

/* Photo card download overlay (no blur, transparent) */
.photo-overlay--download {
    position: absolute;
    top: auto;
    bottom: 0;
    left: 0;
    transform: none;
    width: 100%;
    background: none;
    /* No background */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 0;
    box-shadow: none;
    border-radius: 0 0 16px 16px;
    padding: 40px 20px 20px;
}

/* Free badge */
.badge-free {
    display: inline-block;
    background: #48BB78;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 12px;
}

/* Locked badge */
.locked-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    opacity: 0.8;
}

.locked-badge svg {
    width: 14px;
    height: 14px;
}

.locked-badge span {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Button icon spacing */
.btn svg {
    margin-right: 4px;
    width: 18px;
    height: 18px;
    margin-top: -2px;
}

/* Upsell Card */
.upsell-card {
    background: #F7FAFC;
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    margin-top: 48px;
}

html.theme-dark .upsell-card {
    background: rgba(255, 255, 255, 0.05);
}

.upsell-card h2 {
    margin-bottom: 12px;
}

.upsell-card p {
    color: var(--text-light);
    margin-bottom: 24px;
}

/* Check list */
.check-list {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.check-list__item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.check-list__icon {
    color: #48BB78;
}

.upsell-card__cta {
    margin-top: 28px;
}

/* Comparison Section */
.comparison-section {
    margin-top: 64px;
}

.comparison-section h2 {
    text-align: center;
    margin-bottom: 32px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .page-section {
        padding: 48px 16px;
    }

    .section-header {
        margin-bottom: 32px;
    }

    .section-header h1 {
        font-size: 1.75rem;
    }

    .upsell-card {
        padding: 28px 20px;
        margin-top: 32px;
        border-radius: 20px;
    }

    .check-list {
        gap: 12px;
    }

    .check-list__item {
        font-size: 0.9rem;
    }

    .comparison-section {
        margin-top: 48px;
    }

    .comparison-section h2 {
        margin-bottom: 24px;
        font-size: 1.25rem;
    }

    .photo-overlay {
        padding: 20px 16px;
    }

    .photo-overlay--download {
        padding: 32px 16px 16px;
    }

    .results-gallery {
        gap: 16px;
    }

    .photo-card {
        width: 100%;
        max-width: 280px;
        height: auto;
        aspect-ratio: 9/16;
    }
}

/* Pricing */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
    align-items: start;
}

.pricing-card {
    border-radius: 24px;
    padding: 32px;
    position: relative;
    background: white;
    border: 1px solid #E2E8F0;
    margin: auto 0;
}

.pricing-card.featured {
    border: 2px solid var(--tinder-pink);
    box-shadow: 0 20px 40px rgba(253, 41, 123, 0.15);
}

.price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--heading-light);
}

.list-features {
    list-style: none;
    margin: 16px 0;
    text-align: left;
}

.list-features li {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

/* FAQ */
.faq-question {
    padding: 14px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.15s ease-out;
    color: var(--text-light);
}

.faq-content {
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.25s ease-out, padding 0.25s ease;
    padding-bottom: 0;
}

.faq-item.active .faq-answer {
    grid-template-rows: 1fr;
}

.faq-item.active .faq-content {
    opacity: 1;
    padding-bottom: 18px;
}

.icon-plus {
    font-size: 1.5rem;
    /* Larger icon */
    transition: transform 0.15s ease;
    display: inline-block;
}

.faq-item.active .icon-plus {
    transform: rotate(45deg);
}

/* Footer */
/* Footer */
.footer {
    background: rgba(255, 255, 255, 0.02);
    /* Light theme adaptation */
    color: #fff;
    padding: 64px 0 36px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

html.theme-dark .footer {
    background: #000;
    border-top: 1px solid #222;
}


.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr;
    gap: 60px;
    margin-bottom: 60px;
}

@media (max-width: 900px) {
    .footer__grid {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 40px;
        /* Reduced for mobile */
    }

    .footer {
        padding: 40px 0 30px;
        /* Reduced padding */
    }
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 1.25rem;
    text-decoration: none;
    color: inherit;
}

.footer__logo .header__logo-text {
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: opacity 0.4s ease;
    position: relative;
}

/* Footer logo uses same ::after overlay technique as header */
/* Footer hover logic mirrors header logic */
.footer__logo:hover .ai-gradient-text {
    opacity: 1;
}

.footer__logo:hover .ai-glow {
    opacity: 0;
}





.footer p {
    color: var(--text-light);
    font-size: 0.90rem;
    margin: 16px 0;
    line-height: 1.6;
}

.footer h4 {
    color: var(--heading-light);
    margin-bottom: 15px;
    font-size: 1.05rem;
    font-weight: 700;
}

.footer ul {
    list-style: none;
}

.footer a {
    text-decoration: none !important;
    color: var(--text-light);
    transition: color 0.15s;
}

.footer ul li {
    font-size: 0.90rem;
}

.footer a:hover {
    color: var(--tinder-pink);
}

.contact-item {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    align-items: center;
    color: var(--text-light);
    text-decoration: none !important;
    transition: opacity 0.15s;
    line-height: 1.4;
}

.contact-item svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    flex-shrink: 0;
}

.contact-item:hover {
    opacity: 0.8;
}

.sub-text {
    display: block;
    font-size: 0.75rem;
    font-style: italic;
    color: var(--text-light);
    opacity: 0.7;
}

/* Footer Badge & Mini Column */
.footer-bullets li {
    position: relative;
    padding-left: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.footer-bullets li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--tinder-pink);
}

.footer-badge {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: rgba(0, 0, 0, 0.02);
    margin-top: 24px;
}

html.theme-dark .footer-badge {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.footer-badge .shield {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    margin: auto 0;
}

.footer-badge .shield svg {
    width: 100%;
    height: 100%;
}

/* Apply gradient fill to shield paths */
.footer-badge .shield .fa-primary {
    fill: #FD297B;
}

.footer-badge .shield .fa-secondary {
    fill: #FF655B;
    opacity: 0.6;
}

.footer-badge__title {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--heading-light);
    margin-bottom: 4px;
}

.footer-badge__text {
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.4;
}


.footer__separator {
    border-top-width: 1px;
    border-top-style: solid;
    border-top-color: rgba(0, 0, 0, 0.1);
    margin: 40px auto;
    /* Centered vertically and horizontally */
    max-width: 1200px;
    width: 90%;
    /* Prevent full width touching */
    display: block;
    border-radius: 100%;
}

html.theme-dark .footer__separator {
    border-top-color: rgba(255, 255, 255, 0.1);
}

.footer__disclaimer {
    text-align: center;
    color: var(--text-light);
    font-size: 0.8rem;
    opacity: 0.8;
}



.copyright {
    margin-top: 12px;
}

/* REFACTORED UTILITIES */
.optimized-for {
    margin-top: 30px;
}

.optimized-label {
    font-size: 0.9rem;
    color: #718096;
    font-weight: 600;
}

.optimized-logos {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-top: 10px;
}

.logo-text {
    font-weight: 800;
    font-size: 1.2rem;
}

.logo-tinder {
    color: #FD297B;
}

.logo-bumble {
    color: #F5B041;
}

.logo-hinge {
    color: #000;
}

html.theme-dark .logo-hinge {
    color: #fff;
}

.data-protection-text {
    margin-top: 10px;
    font-size: 0.8rem;
    color: #A0AEC0;
}

.upload-icon {
    margin-bottom: 16px;
}

.upload-icon svg {
    width: 48px;
    height: 48px;
    fill: var(--tinder-pink);
}

.upload-main-text {
    font-size: 1.1rem;
    font-weight: 600;
}

.upload-sub-text {
    color: #A0AEC0;
}

.upload-notice {
    margin-top: 16px;
    font-size: 0.9rem;
    color: #718096;
    text-align: center;
}

.upload-notice svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    margin-right: 3px;
    margin-bottom: -1px;
}

.upload-selection-info {
    margin-top: 14px;
}

.upload-count {
    margin-bottom: 12px;
    font-weight: 600;
}

.upload-

/* H1 Typography */
.hero h1 {
    font-size: clamp(2.6rem, 4vw + 1.4rem, 4.2rem);
    line-height: 1.03;
    letter-spacing: -0.04em;
    margin: 16px 0 14px;
    font-weight: 850;
    background: linear-gradient(135deg, var(--text) 0%, var(--text-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

html.theme-dark .hero h1 {
    background: linear-gradient(135deg, #fff 0%, #cbd5e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Header Gap */
.header__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    /* Reduced from 24px */
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* New Hero Styles */
.hero__flex {
    display: flex;
    align-items: center;
    gap: 40px;
    justify-content: space-between;
}

.hero__flex>.hero__left {
    flex: 1.05;
}

.hero__flex>.hero__right {
    min-width: 0;
    /* Prevent flex overflow */
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: var(--surface-2);
    border: 1px solid rgba(143, 143, 143, 0.25);
    /* Visible brand border */
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
    width: fit-content;
    box-shadow: 0 2px 10px rgba(253, 41, 123, 0.05);
    margin-right: auto;
}

.hero__badge-icon {
    font-size: 1.1em;
}

.hero__badge-divider {
    width: 1px;
    height: 16px;
    background-color: rgba(143, 143, 143, 0.25);
    /* Matching border */
}

.hero-h1 {
    margin: 0;
    text-align: left;
}

.hero__bullets {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0;
    margin-right: auto;
    list-style: none;
}

.hero__bullets li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
    margin-left: 5px;
}

.bullet-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--gradient-primary);
    flex-shrink: 0;
    animation: pulse-shadow 1.5s infinite;
}

@keyframes pulse-shadow {
    0% {
        box-shadow: rgba(253, 41, 123, 0.15) 0px 0px 0px 0px;
    }

    50% {
        box-shadow: rgba(253, 41, 123, 0.25) 0px 0px 0px 5px;
    }

    100% {
        box-shadow: rgba(253, 41, 123, 0) 0px 0px 0px 5px;
    }
}

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    /* Space between buttons */
    align-items: center;
    margin-right: auto;
}

.hero__buttons-wrapper {
    display: flex;
    gap: 12px;
}

@media (max-width: 500px) {
    .hero__buttons-wrapper {
        flex-direction: column;
    }
}

.hero__right {
    position: relative;
}

.hero__mock {
    border-radius: 24px;
    /* border: 1px solid var(--border-color); */
    /* background: var(--card-bg); */
    overflow: hidden;
    /* box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15); */
    position: relative;
    z-index: 1;
    width: fit-content;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

html.theme-dark .hero__mock {
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4);
}

/* Social Proof */
.social-proof {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 12px 20px;
    background: var(--surface-2);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    margin-right: auto;
}

html.theme-dark .social-proof {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.avatars {
    display: inline-flex;
    align-items: center;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--bg-color);
    margin-left: -10px;
    background-color: #eee;
    background-size: cover;
}

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

.social-proof__text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.social-proof__text strong {
    font-size: 0.95rem;
    color: var(--text-color);
}

.social-proof__text span {
    font-size: 0.8rem;
    color: var(--text-light);
}

@media (max-width: 980px) {
    .hero__flex {
        flex-direction: column;
        text-align: center;
    }

    .hero__trust,
    .hero__bullets li {
        justify-content: center;
        margin-right: auto;
    }

    .hero__bullets {
        max-width: fit-content;
    }

    .hero__cta {
        justify-content: center;
        margin: auto;
    }

    .social-proof {
        align-self: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-h1 {
        text-align: center;
    }

    .header {
        top: 5px;
    }

    .social-proof {
        margin: auto;
    }

    .hero__badge {
        margin: auto;
    }
}

.pricing-header {
    margin-bottom: 50px;
}

.mb-12 {
    padding: 0 20px;
}

@media (max-width: 768px) {
    .pricing-header {
        margin-bottom: 30px;
    }
}

.old-price {
    text-decoration: line-through;
    color: #A0AEC0;
    font-size: 2rem;
}

.price-subtitle {
    color: #718096;
    margin-bottom: 24px;
}

.cross-icon {
    color: #E53E3E;
}

.check-icon {
    color: #48BB78;
}

.best-choice-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.section-bg-light {
    background-color: #F7FAFC;
    padding: 60px 0;
}

@media (max-width: 768px) {
    .section-bg-light {
        padding: 40px 0;
    }
}

html.theme-dark .section-bg-light {
    background-color: #1A202C;
}

/* Testimonials Horizontal */
.testimonials-section {
    position: relative;
    overflow: hidden;
}

.testimonials-wrapper.horizontal-mode {
    position: relative;
    /* Single track container */
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
    display: flex;
    gap: 24px;
    width: max-content;
    will-change: transform;
    cursor: grab;
    user-select: none;
    /* Prevent jank on page focus */
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

.marquee-track.is-ready {
    opacity: 1;
}

.marquee-track:active {
    cursor: grabbing;
}

.marquee-track.is-dragging {
    animation-play-state: paused;
    cursor: grabbing;
}

.marquee-track img,
.marquee-track * {
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: none;
}

/* Remove hover pause as requested */
/* .marquee-track:hover { animation-play-state: paused; } */

@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-33.33%);
    }
}

.testimonial-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.testimonial-card {
    background-color: rgb(249 250 251);
    border: none;
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    width: clamp(260px, 18vw, 300px);
    /* Responsive: min 280px, prefer 20vw, max 340px */
    flex-shrink: 0;
}

html.theme-dark .testimonial-card {
    background-color: #1A202C;
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-content {
    font-size: 0.95rem;
    color: var(--heading-light);
    line-height: 1.5;
}

.testimonial-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

html.theme-dark .testimonial-footer {
    border-color: rgba(255, 255, 255, 0.1);
}

.testimonial-date {
    font-size: 0.8rem;
    color: var(--text-light);
    font-style: italic;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
}

.testimonial-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    object-fit: cover;
}

.testimonial-image-wrapper {
    position: relative;
    margin-top: 12px;
}

/* Watermark */
.testimonial-watermark {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: white;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 4px 10px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 10;
    pointer-events: none;
    font-weight: 500;
    backdrop-filter: blur(2px);
}

@media (max-width: 600px) {
    .testimonial-card {
        width: 280px;
    }
}



.stars {
    display: flex;
    gap: 2px;
}

.stars svg {
    width: 14px;
    height: 14px;
    fill: #f8b749;
}

.star-half {
    opacity: 0.3;
}

.testimonial-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.5;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    /* Prevent overflow */
}

.faq-header {
    text-align: center;
    margin-bottom: 30px;
}

.faq-more {
    text-align: center;
    margin-top: 30px;
}

.final-cta {
    padding: 60px 0;
    text-align: center;
    background: url('/assets/images/final-cta-bg.webp') center/cover;
    position: relative;
    margin: 0;
}

/* Used available mock or placeholder */
.final-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.final-cta .container {
    position: relative;
    z-index: 1;
}

.final-cta h2 {
    color: white;
    margin-bottom: 20px;
}

.final-cta-sub {
    color: rgba(255, 255, 255, 0.5);
    margin-top: 16px;
}

/* Dark Mode Overrides */
html.theme-dark body {
    background-color: var(--bg-dark);
    background-image: radial-gradient(circle at 50% 0%, var(--bg-dark-grad-start), transparent 40%);
    color: var(--text-dark);
}

html.theme-dark .header__wrapper {
    background: rgba(16, 8, 25, 0.7);
    border-color: rgba(255, 255, 255, 0.1);
}

html.theme-dark .upload-card {
    background: #1A202C;
    /* Darker card */
    border-color: #2D3748;
}

html.theme-dark .dropzone {
    background: #2D3748;
    border-color: #4A5568;
}

html.theme-dark .btn--secondary {
    border-color: #4A5568;
    color: white;
}

html.theme-dark .pricing-card {
    background: #1A202C;
    border-color: #2D3748;
}

html.theme-dark h1,
html.theme-dark h2,
html.theme-dark h3,
html.theme-dark h4 {
    color: var(--heading-dark);
}

html.theme-dark .mobile-menu {
    background: #1A202C;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

html.theme-dark .burger-btn span {
    background: white;
}

html.theme-dark a:not(.btn):not(.nav-link):not(.header__logo):not(.mobile-link) {
    text-decoration-color: rgba(255, 255, 255, 0.2);
}

html.theme-dark .nav-link {
    color: var(--heading-dark);
}

html.theme-dark .nav-link:hover {
    color: white;
}

/* Response */
@media (max-width: 900px) {

    .header__nav,
    .header__actions {
        display: none;
    }

    .mobile-only {
        display: flex;
    }

    .header__mobile-actions {
        display: flex;
    }

    .burger-btn {
        display: flex;
    }

    .hero__content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .hero__btns {
        justify-content: center;
    }

    .footer__grid {
        grid-template-columns: 1fr;
    }

    .comparison-container {
        max-width: 320px;
        height: 480px;
    }

    h1 {
        font-size: 2.2rem;
    }

    /* Make comparisons handle touch target larger but keep visible */
    .comparison-handle {
        /* Removing opacity: 0 to ensure it is visible */
        width: 4px;
        /* Reset width to standard line width if it was overridden to 40px for touch */
        /* If we want a larger touch target, we should use a pseudo element or padding, 
           but for now let's restore visibility */
    }

    /* Ensure handle button is visible */
    .handle-btn {
        display: flex !important;
        opacity: 1 !important;
    }

    /* Invisible touch target */
}

.ai-gradient-text {
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #4facfe, #667eea);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% auto;
    animation: gradient-move 3s ease-in-out infinite;
    font-weight: 800;
    position: relative;
    z-index: 2;
}

.ai-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #4facfe, #667eea);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% auto;
    animation: gradient-move 3s ease-in-out infinite;
    filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1;
}



@keyframes gradient-move {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Anchor scroll offset correction */
#upload-section,
#comment-ca-marche,
#faq {
    scroll-margin-top: 120px;
}

#tarifs,
#testimonials {
    scroll-margin-top: 110px;
}

/* Mobile Visibility Utilities */
.mobile-text {
    display: none;
}

@media (max-width: 768px) {
    .desktop-text {
        display: none;
    }

    .mobile-text {
        display: inline;
    }
}

/* Logo text wrapper - shared between header and footer */
.logo-text-wrapper {
    display: flex;
    align-items: center;
}

/* 404 Page */
.error-404-title {
    font-size: 4rem;
}

.mt-20 {
    margin-top: 20px;
}

/* Social icon brand colors */
.social-icon--facebook {
    color: #1877F2;
}

.social-icon--twitter {
    color: #1DA1F2;
}

/* Half star for ratings */
.star-half {
    opacity: 0.3;
}

/* Social icon SVG sizing */
.social-icon svg {
    width: 20px;
    height: 20px;
}

/* Hero badge small icons */
.hero__badge svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    vertical-align: -2px;
}

/* Step card icons */
.step-card__icon svg {
    width: 32px;
    height: 32px;
}

/* Homepage comparison container override */
.comparison-container--hero {
    max-width: min(338px, 65vh);
    width: 100%;
    height: auto;
    /* border-radius: 0; Removed to restore rounded corners */
    margin: 0 auto;
}

.comparison-hero-base {
    width: 100%;
    height: auto;
    display: block;
}

/* Refactored Inline Styles */

/* FAQ Page */
.faq-page-title {
    text-align: center;
    margin-bottom: 60px;
}

.faq-list-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

/* Legal Pages (CGV, Privacy, etc.) */
.legal-card {
    padding: 40px;
    margin-top: 30px;
}

/* Homepage Avatars Backgrounds */
.avatar-bg-1 {
    background-image: url('https://ui-avatars.com/api/?name=Alex&background=random');
}

.avatar-bg-2 {
    background-image: url('https://ui-avatars.com/api/?name=Ben&background=random');
}

.avatar-bg-3 {
    background-image: url('https://ui-avatars.com/api/?name=Chris&background=random');
}

.avatar-bg-4 {
    background-image: url('https://ui-avatars.com/api/?name=David&background=random');
}

/* Homepage Comparison Backgrounds */
.comparison-bg-after {
    background-image: url('/assets/images/photo-tinder-apres.webp');
}

.comparison-bg-before {
    background-image: url('/assets/images/photo-tinder-avant.webp');
}

/* Blog Page Styles */
/* ========================================
   BLOG PAGE - DatePhotos.AI Inspired Design
   ======================================== */

.blog-header {
    text-align: center;
    margin-bottom: 50px;
}

.blog-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-top: 10px;
}

/* ---- Featured Article ---- */
.blog-featured {
    display: block;
    text-decoration: none !important;
    margin-bottom: 0;
}

.blog-featured__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 20px;
    padding: 16px;
    gap: 16px;
    background: var(--card-bg);
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.blog-featured:hover .blog-featured__inner {
    border-color: rgba(253, 41, 123, 0.3);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.blog-featured__image {
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    min-height: 100%;
    border-radius: 12px;
}

.blog-featured__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-featured:hover .blog-featured__image img {
    transform: scale(1.05);
}

.blog-featured__placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

.blog-featured__content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.blog-featured__content>.blog-badge--featured {
    margin-bottom: 16px;
    align-self: flex-start;
}

.blog-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.blog-badge--featured {
    background: rgba(253, 41, 123, 0.15);
    color: #FD297B;
}

.blog-tag {
    font-size: 0.85rem;
    color: var(--text-light);
}

.blog-featured__title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--heading-light);
    line-height: 1.3;
    margin-bottom: 16px;
    transition: color 0.3s ease;
}

.blog-featured:hover .blog-featured__title {
    color: #FD297B;
}

.blog-featured__excerpt {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.blog-featured__date {
    color: var(--text-light);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.4;
}

.blog-featured__date span {
    display: inline-flex;
    align-items: center;
}

.blog-featured__date span svg {
    vertical-align: middle;
    overflow: visible;
}

/* Blog post card date - same pattern as featured */
.blog-post-card__date {
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.5;
}

.blog-post-card__date span {
    display: inline-flex;
    align-items: center;
}

.blog-post-card__date span svg {
    vertical-align: middle;
    overflow: visible;
}

/* ---- Latest Posts Section ---- */
.blog-latest {
    margin-top: 40px;
}

.blog-latest__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--heading-light);
    margin-bottom: 24px;
}

.blog-latest__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    align-items: stretch;
}

/* ---- Compact Post Card ---- */
.blog-post-card {
    display: flex;
    text-decoration: none;
    height: 160px;
    /* Fixed height for uniformity */
}

.blog-post-card__inner {
    display: flex;
    gap: 16px;
    padding: 16px;
    border-radius: 16px;
    background: var(--card-bg);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    flex: 1;
    width: 100%;
}

.blog-post-card:hover .blog-post-card__inner {
    border-color: rgba(253, 41, 123, 0.2);
    background: rgba(253, 41, 123, 0.02);
}

.blog-post-card,
.blog-post-card:hover {
    text-decoration: none !important;
}

.blog-post-card__thumb {
    flex-shrink: 0;
    width: 180px;
    height: 100%;
    align-self: flex-start;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

.blog-post-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;

    @media(min-width: 0) {
        position: absolute;
        top: 0;
        left: 0;
    }

    /* Keep absolute? */
}

.blog-post-card:hover .blog-post-card__thumb img {
    transform: scale(1.05);
}

.blog-post-card__content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.blog-post-card__title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--heading-light);
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.blog-post-card:hover .blog-post-card__title {
    color: #FD297B;
}

.blog-post-card__excerpt {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.blog-post-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-light);
    width: 100%;
    margin-top: auto;
    line-height: 1.5;
    overflow: visible;
    filter: opacity(.6);
}

.blog-post-card__meta span {
    display: inline-flex;
    align-items: center;
    overflow: visible;
}

.blog-featured__meta-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    font-size: 0.8rem;
    filter: opacity(.6);
}

.blog-featured__meta-bottom .blog-tag {
    color: var(--text-light);
}

/* Dot divider - same style as hero badge */
.blog-dot-divider {
    width: 4px;
    height: 4px;
    background: #CBD5E0;
    border-radius: 50%;
    flex-shrink: 0;
}

.blog-post-card__date svg,
.blog-featured__date svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    flex-shrink: 0;
    margin-right: 5px;
}

/* ---- Responsive ---- */
@media (max-width: 1200px) {
    .blog-featured__inner {
        grid-template-columns: 1fr;
    }

    .blog-featured__image {
        aspect-ratio: 16 / 9;
    }

    .blog-latest__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {

    /* Mobile blog cards - full width, stacked layout */
    .blog-post-card {
        height: auto;
        min-height: 0;
    }

    .blog-post-card__inner {
        flex-direction: column;
        gap: 12px;
        padding: 12px;
        width: 100%;
        max-width: 100%;
    }

    .blog-post-card__thumb {
        width: 100%;
        height: 140px;
        flex-shrink: 0;
        align-self: stretch;
    }

    .blog-post-card__thumb img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .blog-post-card__content {
        width: 100%;
    }

    .blog-post-card__title {
        -webkit-line-clamp: 2;
        margin-bottom: 4px;
    }

    .blog-post-card__excerpt {
        -webkit-line-clamp: 2;
        margin-bottom: 8px;
        line-height: 1.4;
    }

    /* Keep hashtag on same line as date/time on mobile */
    .blog-post-card__meta {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }

    .blog-latest__grid {
        gap: 16px;
    }

    /* ======================================
       FEATURED ARTICLE - Match blog cards on mobile
       ====================================== */
    .blog-featured__inner {
        grid-template-columns: 1fr;
        border-radius: 16px;
        padding: 12px;
        gap: 12px;
        background: var(--card-bg);
        border: 1px solid rgba(0, 0, 0, 0.06);
    }

    .blog-featured__image {
        position: relative;
        width: 100%;
        height: 140px;
        border-radius: 12px;
        overflow: hidden;
    }

    .blog-featured__image img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .blog-featured__content {
        padding: 0;
        display: flex;
        flex-direction: column;
    }

    /* Badge at top, centered on mobile */
    .blog-featured__content>.blog-badge--featured {
        order: 1;
        margin-bottom: 8px;
        align-self: center;
        width: auto;
    }

    .blog-featured__meta-bottom {
        order: 4;
        /* After title (2) and excerpt (3) */
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        gap: 8px;
        font-size: 0.8rem !important;
        margin-top: auto;
        /* Push to bottom */
        color: var(--text-light) !important;
        opacity: 0.7 !important;
    }

    /* Match blog card title size */
    .blog-featured__title {
        order: 2;
        font-size: 1rem !important;
        font-weight: 600 !important;
        color: var(--heading-light) !important;
        line-height: 1.4 !important;
        margin-bottom: 4px !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Match blog card excerpt size */
    .blog-featured__excerpt {
        order: 3;
        font-size: 0.9rem !important;
        color: var(--text-light) !important;
        line-height: 1.5 !important;
        -webkit-line-clamp: 2;
        margin-bottom: 8px !important;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

/* ========================================
   BLOG ARTICLE PAGE
   ======================================== */

.article-container {
    padding: 0 20px;
    margin: 60px auto;
    max-width: 900px;
}

.article-not-found {
    padding: 100px 0;
    text-align: center;
}

.article-cover {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 40px;
}

.article-back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s;
}

.article-back-link:hover {
    color: #FD297B;
}

.article-main-title {
    margin-bottom: 20px;
    font-size: 2.5rem;
    line-height: 1.2;
    color: var(--heading-light);
    font-weight: 800;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding-bottom: 20px;
    filter: opacity(.6);
}

.article-meta__left,
.article-meta__right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-meta svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    margin: auto 3px -2px auto;
}

.article-content {
    line-height: 1.8;
    /* font-size: 1.1rem; REMOVED as requested */
    color: var(--text-light);
    text-align: left;
}

.article-content h2 {
    margin-top: 32px;
    margin-bottom: 16px;
    color: var(--heading-light);
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.3;
}

.article-content h3 {
    margin-top: 32px;
    margin-bottom: 16px;
    color: var(--heading-light);
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.3;
}

.article-content p {
    margin-bottom: 24px;
}

.article-content ul,
.article-content ol {
    margin-bottom: 24px;
    padding-left: 24px;
}

.article-content li {
    margin-bottom: 10px;
}

.article-intro {
    color: var(--text-light);
    border-left: 4px solid #FD297B;
    padding-left: 24px;
    margin-bottom: 40px;
    font-style: italic;
    background: rgba(253, 41, 123, 0.03);
    padding: 24px;
    border-radius: 0 16px 16px 0;
}

.article-cta-box {
    margin-top: 60px;
    background: rgba(253, 41, 123, 0.05);
    border: 1px solid rgba(253, 41, 123, 0.15);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
}

.article-cta-text {
    margin-bottom: 24px;
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Dynamic Backgrounds (Resultats) */
.comparison-after-dynamic,
.comparison-before-dynamic {
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center;
}

/* Prevent flash on page load - hide until images loaded */
.comparison-loading {
    visibility: hidden;
}

.comparison-loaded {
    visibility: visible;
}

.footer__bullets {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Article Cover Image */
.article-cover-wrapper {
    margin: 32px 0 20px;
    width: 100%;
    /* Reduced bottom margin to bring caption closer */
    /* Removed aspect-ratio/shadow/radius from wrapper so it grows with caption */
}

.article-cover-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
    border-radius: 20px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .article-cover-wrapper {
        margin: 24px 0 32px;
        border-radius: 16px;
    }
}

/* Article Caption */
.article-cover-caption {
    padding: 12px 20px;
    background: transparent;
    color: var(--text-light);
    font-size: 0.9rem;
    font-style: italic;
    text-align: center;
    border-top: none;
    margin-top: 0;
    /* Pull up closer */
    display: block;
    opacity: 0.8;
}

html.theme-dark .article-cover-caption {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.05);
}

/* Related Posts */
.related-posts {
    margin-top: 60px;
    padding-top: 50px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

html.theme-dark .related-posts {
    border-color: rgba(255, 255, 255, 0.1);
}

.related-posts__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--heading-light);
    margin-bottom: 32px;
}

.related-posts__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.related-posts .blog-post-card__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.related-posts .blog-post-card__title {
    -webkit-line-clamp: 3;
}

@media (max-width: 768px) {
    .related-posts__grid {
        grid-template-columns: 1fr;
    }
}

/* FAQ Section */
.article-faq {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

html.theme-dark .article-faq {
    border-top-color: rgba(255, 255, 255, 0.1);
}

.article-faq h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 40px;
    color: var(--heading-light);
}

.faq-item h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--heading-light);
}

.faq-item p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 1.05rem;
}

/* ========================================
   BLOG CARDS - Dark Mode Borders
   ======================================== */
html.theme-dark .blog-featured__inner {
    border-color: rgba(255, 255, 255, 0.1);
}

html.theme-dark .blog-featured:hover .blog-featured__inner {
    border-color: rgba(253, 41, 123, 0.4);
}

html.theme-dark .blog-post-card__inner {
    border-color: rgba(255, 255, 255, 0.08);
}

html.theme-dark .blog-post-card:hover .blog-post-card__inner {
    border-color: rgba(253, 41, 123, 0.3);
    background: rgba(253, 41, 123, 0.05);
}

.close-svg {
    fill: #000;
}