/* --- CSS VARIABLES & RESET --- */
:root {
    /* Stormy Morning Palette - Blues & Grays */
    --bg-dark: #1a2332;              /* Deep stormy blue */
    --bg-card: #2a3544;              /* Lighter storm blue */
    --bg-card-hover: #384959;        /* Darkest blue from palette */
    --text-main: #f8fafc;            /* Clean white */
    --text-muted: #b0c4d4;           /* Soft blue-gray */
    --accent-primary: #88BDF2;       /* Sky blue (main accent) */
    --accent-primary-hover: #6A89A7; /* Muted blue (hover) */
    --accent-secondary: #BDDFC;      /* Light blue (incomplete hex, using #BBDDFF) */
    --accent-tertiary: #6A89A7;      /* Muted slate blue */
    --gradient-main: linear-gradient(135deg, #6A89A7 0%, #88BDF2 50%, #BBDDFF 100%);
    --border-color: rgba(136, 189, 242, 0.15);
    --border-hover: rgba(136, 189, 242, 0.5);
    --nav-height: 70px;
    --nav-height-shrunk: 56px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Scroll margin for anchor offset */
section[id] {
    scroll-margin-top: 100px;
}

/* --- ANIMATIONS --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(136, 189, 242, 0.4);
    }

    50% {
        box-shadow: 0 0 0 15px rgba(136, 189, 242, 0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
}

/* --- TYPOGRAPHY --- */
h1,
h2,
h3 {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: white;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

p {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: var(--gradient-main);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s linear infinite;
}

/* --- LAYOUT --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 6rem 0;
    border-bottom: 1px solid var(--border-color);
}

/* --- NAVIGATION --- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

nav.scrolled {
    background: rgba(15, 23, 42, 0.95);
}

nav.scrolled .nav-container {
    height: var(--nav-height-shrunk);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--nav-height);
    transition: height 0.3s ease;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 2px;
    color: white;
    text-decoration: none;
    transition: transform 0.2s;
}

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

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

.logo-img {
    height: 32px;
    width: auto;
    margin-right: 8px;
}

.nav-center {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-center a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
    padding: 4px 0;
}

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

.nav-center a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-main);
    transition: width 0.3s;
}

.nav-center a:hover::after,
.nav-center a.active::after {
    width: 100%;
}

.nav-center a.active {
    color: var(--accent-primary);
}

.nav-cta {
    background: var(--gradient-main);
    color: white !important;
    padding: 0.6rem 1.4rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(136, 189, 242, 0.3);
    text-decoration: none;
    white-space: nowrap;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(136, 189, 242, 0.4);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 12px;
    z-index: 1001;
    -webkit-tap-highlight-color: rgba(136, 189, 242, 0.2);
    transition: transform 0.15s ease;
}

.mobile-menu-btn:active {
    transform: scale(0.95);
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

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

.mobile-menu a {
    display: block;
    padding: 1rem 20px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.2s;
}

.mobile-menu a:hover {
    color: var(--accent-primary);
    background: rgba(136, 189, 242, 0.1);
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-main);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 20px rgba(136, 189, 242, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(136, 189, 242, 0.5);
}

.btn-primary::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.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    margin-left: 1rem;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-primary);
    transform: translateY(-3px);
}

/* --- HERO --- */
.hero {
    padding-top: 10rem;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(136, 189, 242, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.hero-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(136, 189, 242, 0.1);
    color: var(--accent-primary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(136, 189, 242, 0.3);
}

.hero-badge-pill.notarized {
    background: rgba(59, 142, 208, 0.1);
    color: var(--accent-secondary);
    border-color: rgba(59, 142, 208, 0.3);
}

.hero h1 {
    animation: fadeInUp 0.6s ease-out 0.1s forwards;
    opacity: 0;
}

.hero>.container>p {
    animation: fadeInUp 0.6s ease-out 0.2s forwards;
    opacity: 0;
}

.hero-buttons {
    margin-top: 2rem;
    animation: fadeInUp 0.6s ease-out 0.3s forwards;
    opacity: 0;
}

.hero-carousel {
    margin-top: 3rem;
    position: relative;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.6s ease-out 0.4s forwards;
    opacity: 0;
}

.carousel-track {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6), 0 0 40px rgba(136, 189, 242, 0.1);
    border: 1px solid var(--border-color);
}

.carousel-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.carousel-image {
    width: 100%;
    height: auto;
    display: none;
    animation: float 6s ease-in-out infinite;
}

.carousel-image.active {
    display: block;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 1.5rem;
}

.carousel-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dots .dot:hover {
    background: rgba(255, 255, 255, 0.4);
}

.carousel-dots .dot.active {
    background: var(--accent-primary);
    width: 28px;
    border-radius: 5px;
}

.carousel-arrow {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 10px;
}

.carousel-arrow:hover {
    color: var(--accent-primary);
    transform: scale(1.2);
}

/* --- PROBLEM SECTION --- */
.before-after-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 800px;
    margin: 3rem auto 0;
}

.comparison-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.comparison-card.before {
    border-color: rgba(239, 68, 68, 0.3);
}

.comparison-card.after {
    border-color: rgba(136, 189, 242, 0.3);
}

.comparison-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1.5rem;
    font-weight: 700;
    font-size: 1.1rem;
}

.comparison-card.before .comparison-card-header {
    color: #ef4444;
}

.comparison-card.after .comparison-card-header {
    color: var(--accent-primary);
}

.mock-timeline-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.mock-timeline-item .icon {
    font-size: 1.2rem;
}

.mock-timeline-item .date {
    color: var(--text-muted);
    margin-left: auto;
    font-size: 0.85rem;
}

.comparison-card.before .mock-timeline-item .date {
    color: #ef4444;
}

.comparison-card.after .mock-timeline-item .date {
    color: var(--accent-primary);
}

/* --- HOW IT WORKS (3 Steps) --- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.step-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.step-number-circle {
    width: 50px;
    height: 50px;
    background: var(--gradient-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 800;
    color: white;
    margin: 0 auto 1.2rem;
}

.step-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.step-card p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* --- PRIVACY SECTION --- */
.privacy-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.privacy-card {
    flex: 1 1 200px;
    max-width: 250px;
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
}

.privacy-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.privacy-card .icon {
    font-size: 2rem;
    margin-bottom: 0.8rem;
}

.privacy-card h4 {
    font-size: 1rem;
    color: white;
    margin-bottom: 0.4rem;
}

.privacy-card p {
    font-size: 0.85rem;
    margin-bottom: 0;
}

/* --- FEATURES --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.features-grid .feature-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: 450px;
    margin: 0 auto;
}

.feature-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(59, 142, 208, 0.03) 100%);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-main);
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), 0 0 30px rgba(136, 189, 242, 0.1);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(136, 189, 242, 0.15) 0%, rgba(59, 142, 208, 0.15) 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    border: 1px solid rgba(136, 189, 242, 0.2);
    transition: all 0.3s;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    border-color: var(--accent-primary);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
}

.feature-card p {
    font-size: 1rem;
    margin-bottom: 0;
    line-height: 1.7;
}

/* --- REAL PHOTO EXAMPLE (INTERACTIVE TOGGLE) --- */
#real-example {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--bg-section) 0%, var(--bg-main) 100%);
}

/* Global Toggle Control */
.diff-global-toggle {
    display: flex;
    gap: 0;
    max-width: 500px;
    margin: 2.5rem auto 2rem;
    background: var(--bg-card);
    border-radius: 12px;
    padding: 4px;
    border: 1px solid var(--border-color);
}

.diff-global-btn {
    flex: 1;
    padding: 1rem 1.75rem;
    font-size: 1.05rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    position: relative;
}

.diff-global-btn:hover:not(.active) {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.diff-global-btn.active {
    color: white;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.diff-global-btn.active[data-state="without"] {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.diff-global-btn.active[data-state="with"] {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.diff-global-btn:focus-visible {
    outline: 2px solid var(--accent-secondary);
    outline-offset: 2px;
}

/* Cards Grid */
/* Global Toggle + Helper Text */
.diff-helper-text {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin: 1rem auto 2rem;
    max-width: 600px;
    transition: opacity 0.2s ease;
}

/* Section intro text above toggle */
.diff-section-intro {
    text-align: center;
    color: var(--text-muted);
    font-size: 1rem;
    margin: 2.5rem auto 1.5rem;
    max-width: 600px;
}

/* Compact before/after grid for merged section */
.before-after-compact {
    max-width: 680px;
    margin: 2rem auto;
    gap: 1rem;
}

.before-after-compact .comparison-card {
    padding: 1rem;
}

.before-after-compact .comparison-card-header {
    font-size: 0.9rem;
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
}

.before-after-compact .mock-timeline-item {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
}

/* ===== PHOTO FRAME PATTERN (prevents squishing) ===== */
/* Wrapper controls size via aspect-ratio; images fill without distortion */

/* ===== STAGE: Fixed-height container for smooth transitions ===== */
.diff-stage {
    position: relative;
    max-width: 680px;
    margin: 0 auto 2rem;
    /* Stable height prevents layout jump during transition */
    min-height: 580px;
}

/* ===== VIEW SYSTEM: Layered with crossfade ===== */
.diff-view {
    position: absolute;
    inset: 0;
    transition: opacity 220ms ease, transform 220ms ease;
}

.diff-view--without {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.diff-view--with {
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
}

/* When section has .is-with class */
#real-example.is-with .diff-view--without {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

#real-example.is-with .diff-view--with {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Mobile fix: Stack views instead of overlaying */
@media (max-width: 768px) {
    .diff-view {
        position: relative;
        inset: auto;
    }

    /* Hide inactive view completely on mobile */
    .diff-view--with {
        display: none;
    }

    #real-example.is-with .diff-view--without {
        display: none;
    }

    #real-example.is-with .diff-view--with {
        display: block;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .diff-view {
        transition: opacity 150ms ease;
        transform: none !important;
    }
}

/* ===== WITHOUT VIEW: Grouped Card ===== */
.diff-group-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    overflow: hidden;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.diff-group-card:hover {
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

.diff-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.diff-group-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.diff-bad-date {
    color: #ef4444;
    font-family: 'Courier New', monospace;
    font-weight: 700;
}

.diff-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.diff-badge--export {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.diff-group-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    padding: 1rem 0.5rem;
    align-items: start;
    justify-items: center;
}

.diff-group-item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: fit-content;
}

/* Align items toward center */
.diff-group-item:first-child {
    margin-left: auto;
}

.diff-group-item:last-child {
    margin-right: auto;
}

.diff-group-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    padding-left: 0;
    text-align: center;
}

/* ===== WITH VIEW: Two Cards Grid ===== */
.diff-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    align-items: start;
    padding-top: 1.75rem;
}

.diff-card-item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.diff-card-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    padding-left: 0;
    text-align: left;
}

.diff-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.diff-card:hover {
    transform: translateY(-4px);
    border-color: rgba(34, 197, 94, 0.5);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.3);
}

/* Add spacing between photo and footer in WITH cards */
.diff-card .diff-media {
    margin-bottom: 1rem;
    margin-top: 1rem;
}

/* ===== PHOTO FRAME: Unified sizing for both WITHOUT and WITH states ===== */
/* This is the reusable component that controls image container dimensions */
.diff-photo-frame,
.diff-media {
    position: relative;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    /* Portrait aspect ratio for Snapchat exports */
    aspect-ratio: 9 / 16;
    border-radius: 18px;
    overflow: hidden;
    /* Subtle background shows if using object-fit: contain */
    background: rgba(255, 255, 255, 0.03);
}

/* ===== IMAGE FILL: Preserves aspect ratio, no distortion ===== */
/* Images fill the frame; may crop (cover) or show letterbox (contain) */
.diff-photo-frame>img,
.diff-media>img,
.diff-media img {
    display: block;
    width: 100%;
    height: 100%;
    /* Use 'cover' to fill frame (may crop edges) or 'contain' to show full photo (may letterbox) */
    object-fit: cover;
    object-position: center;
    /* Prevent any conflicting rules from other selectors */
    max-width: none;
    max-height: none;
}

/* ===== OVERLAY PILL (WITH view only) ===== */
.diff-pill {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    padding: 0.5rem 0.875rem;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: white;
    border: 1px solid rgba(34, 197, 94, 0.35);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

/* WITHOUT state pills (error styling) */
.diff-pill--without {
    border: 1px solid rgba(239, 68, 68, 0.35);
}

/* ===== FOOTER (WITH view) ===== */
.diff-footer {
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-card);
}

/* Footer at top of card */
.diff-footer--top {
    border-bottom: 1px solid var(--border-color);
    border-top: none;
}

.diff-footer-date {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
}

.diff-footer-badge {
    font-size: 0.75rem;
    font-weight: 600;
    color: #22c55e;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Example caption */
.example-caption {
    text-align: center;
    margin-top: 4.5rem;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    font-size: 1.05rem;
    line-height: 1.6;
}

.caption-accent {
    color: var(--accent-primary);
    font-weight: 600;
}

/* --- VIDEO DEMO --- */
.video-container {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* --- COMPARISON TABLE --- */
#comparison {
    padding: 5rem 0;
}

#comparison h2 {
    text-align: center;
    margin-bottom: 0.5rem;
}

.comparison-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.comparison-table {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 0;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.comparison-header {
    padding: 1.5rem 1rem;
    font-weight: 700;
    font-size: 1.1rem;
    text-align: center;
}

.comparison-header.feature-header {
    background: var(--bg-card);
    text-align: left;
    padding-left: 1.5rem;
}

.comparison-header.competitor {
    background: rgba(100, 100, 100, 0.2);
    color: var(--text-muted);
}

.comparison-header.dateback {
    background: rgba(136, 189, 242, 0.15);
    color: var(--accent-primary);
    border-left: 2px solid var(--accent-primary);
}

.comparison-row {
    display: contents;
}

.comparison-cell {
    padding: 1.2rem 1rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}

.comparison-cell.feature {
    background: var(--bg-card);
    font-weight: 600;
    padding-left: 1.5rem;
}

.comparison-cell.competitor {
    background: rgba(100, 100, 100, 0.1);
    color: var(--text-muted);
    justify-content: center;
    text-align: center;
}

.comparison-cell.dateback {
    background: rgba(136, 189, 242, 0.08);
    color: var(--accent-primary);
    font-weight: 600;
    justify-content: center;
    text-align: center;
    border-left: 2px solid var(--accent-primary);
}

.comparison-caption {
    text-align: center;
    margin-top: 2rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(136, 189, 242, 0.1), rgba(136, 189, 242, 0.05));
    border-radius: 12px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 1.1rem;
}

/* Mobile comparison cards - hidden on desktop */
.comparison-mobile {
    display: none;
}

@media (max-width: 768px) {
    .comparison-mobile {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .comparison-mobile-card {
        border-radius: 12px;
        padding: 1.5rem;
    }

    .comparison-mobile-card h4 {
        margin-bottom: 1rem;
        font-size: 1.1rem;
    }

    .comparison-mobile-card ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .comparison-mobile-card li {
        padding: 0.5rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 0.95rem;
        color: var(--text-main);
    }

    .comparison-mobile-card li:last-child {
        border-bottom: none;
    }

    .comparison-mobile-card li strong {
        color: var(--text-muted);
    }

    .competitor-card {
        background: rgba(100, 100, 100, 0.15);
        border: 1px solid rgba(100, 100, 100, 0.3);
    }

    .competitor-card h4 {
        color: #ef4444;
    }

    .dateback-card {
        background: rgba(136, 189, 242, 0.1);
        border: 1px solid rgba(136, 189, 242, 0.3);
    }

    .dateback-card h4 {
        color: var(--accent-primary);
    }
}

/* --- PRICING --- */
#pricing {
    position: relative;
}

#pricing::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(136, 189, 242, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.pricing-card {
    background: linear-gradient(180deg, var(--bg-card) 0%, rgba(30, 41, 59, 0.5) 100%);
    border: 2px solid transparent;
    border-radius: 24px;
    padding: 3rem;
    text-align: center;
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 2px;
    background: var(--gradient-main);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3), 0 0 50px rgba(136, 189, 242, 0.15);
}

.pricing-badge {
    display: inline-block;
    background: var(--gradient-main);
    color: white;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price {
    font-size: 4.5rem;
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 1rem 0;
    line-height: 1;
}

.price span {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 400;
    -webkit-text-fill-color: var(--text-muted);
}

.check-list {
    list-style: none;
    margin: 2rem 0;
    text-align: left;
}

.check-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-main);
    font-size: 1.05rem;
}

.check-list li svg {
    flex-shrink: 0;
}

.pricing-card .btn-primary {
    width: 100%;
    padding: 1.2rem;
    font-size: 1.15rem;
    animation: pulse 2s infinite;
}

.pricing-card .btn-primary:hover {
    animation: none;
}

/* --- TRUST SECTION --- */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.trust-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
}

.trust-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.trust-card .icon {
    font-size: 2rem;
    margin-bottom: 0.8rem;
}

.trust-card h4 {
    font-size: 1rem;
    color: white;
    margin-bottom: 0.4rem;
}

.trust-card p {
    font-size: 0.85rem;
    margin-bottom: 0;
}

/* --- FAQ --- */
.faq-grid {
    display: grid;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(59, 142, 208, 0.03) 100%);
    padding: 1.8rem 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.faq-item h3 {
    font-size: 1.15rem;
    color: white;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-item h3::before {
    content: '?';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--gradient-main);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    flex-shrink: 0;
}

.faq-item p {
    margin-bottom: 0;
    font-size: 1rem;
    padding-left: 38px;
}

/* --- EXPORT GUIDE ACCORDION --- */
.export-guide-accordion {
    max-width: 900px;
    margin: 0 auto;
}

.export-guide-accordion summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1.5rem 2rem;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    list-style: none;
    transition: all 0.3s;
}

.export-guide-accordion summary::-webkit-details-marker {
    display: none;
}

.export-guide-accordion summary::before {
    content: '▶';
    font-size: 0.8rem;
    transition: transform 0.3s;
}

.export-guide-accordion[open] summary::before {
    transform: rotate(90deg);
}

.export-guide-accordion summary:hover {
    border-color: var(--border-hover);
}

.export-guide-accordion[open] summary {
    border-radius: 12px 12px 0 0;
    border-bottom: none;
}

.export-guide-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 12px 12px;
    padding: 2rem;
}

/* Tutorial steps inside accordion */
.tutorial-step-large {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.step-header {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.step-number {
    background: var(--gradient-main);
    color: white;
    font-size: 1.2rem;
    font-weight: 800;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-text {
    flex: 1;
}

.step-text h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.step-text p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

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

.step-alert {
    background: rgba(255, 107, 107, 0.1);
    border-left: 4px solid #ff6b6b;
    padding: 1rem;
    border-radius: 0 8px 8px 0;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #ff6b6b;
}

.step-image {
    text-align: center;
    margin-top: 1rem;
}

.step-image img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: transform 0.2s;
}

.step-image img:hover {
    transform: scale(1.02);
}

/* --- CHANGELOG --- */
.changelog-container {
    max-width: 700px;
    margin: 0 auto;
}

.changelog-entry {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(59, 142, 208, 0.03) 100%);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.changelog-entry:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
}

.changelog-entry.coming-soon {
    border-style: dashed;
    opacity: 0.7;
}

.changelog-version {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    cursor: pointer;
    position: relative;
    padding-right: 40px;
}

/* Plus/Minus icon on the right */
.changelog-version::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(136, 189, 242, 0.15);
    border: 1px solid rgba(136, 189, 242, 0.3);
    border-radius: 6px;
    color: var(--accent-primary);
    font-size: 20px;
    font-weight: 600;
    line-height: 1;
    padding-bottom: 2px;
    transition: all 0.3s ease;
}

/* When expanded, show minus */
details[open] .changelog-version::after {
    content: '−';
    background: rgba(136, 189, 242, 0.25);
    border-color: rgba(136, 189, 242, 0.5);
}

/* Hover effect */
.changelog-version:hover::after {
    background: rgba(136, 189, 242, 0.3);
    border-color: rgba(136, 189, 242, 0.6);
    transform: translateY(-50%) scale(1.1);
}

.version-badge {
    background: var(--gradient-main);
    color: white;
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
}

.version-badge.upcoming {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

.version-date {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.changelog-list {
    list-style: none;
}

.changelog-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.6rem;
    color: var(--text-muted);
    font-size: 1rem;
}

.changelog-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
}

.changelog-entry.coming-soon .changelog-list li::before {
    background: var(--text-muted);
}

/* --- LIGHTBOX --- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.lightbox-close:hover {
    color: var(--accent-primary);
}

/* --- FOOTER --- */
footer {
    padding: 4rem 0 3rem;
    text-align: center;
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: var(--gradient-main);
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.footer-logo span {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-links {
    margin-bottom: 2rem;
}

.footer-links a {
    color: var(--text-muted);
    margin: 0 15px;
    text-decoration: none;
    transition: color 0.2s;
}

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

footer p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.disclaimer {
    font-size: 0.8rem;
    opacity: 0.5;
    max-width: 600px;
    margin: 1.5rem auto 0;
    line-height: 1.6;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {

    /* Prevent right-alignment on zoom */
    html,
    body {
        overflow-x: hidden;
        width: 100%;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .nav-center {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
    }

    .mobile-menu {
        display: block;
    }

    .nav-right {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    /* Hide Buy button on mobile top bar - it's in the mobile menu instead */
    .nav-cta.desktop-only {
        display: none !important;
    }

    .hero {
        padding-top: 7rem;
    }

    .hero img {
        animation: fadeInUp 0.6s ease-out 0.4s forwards;
    }

    .hero-badges {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        padding: 0.9rem 1.8rem;
        font-size: 1rem;
    }

    .btn-secondary {
        margin-left: 0;
        margin-top: 1rem;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Hide carousel arrows on mobile */
    .carousel-arrow {
        display: none;
    }

    .carousel-wrapper {
        gap: 0;
    }

    .before-after-grid {
        grid-template-columns: 1fr;
    }

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

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

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

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

    .pricing-card {
        padding: 2rem;
    }

    .price {
        font-size: 3.5rem;
    }

    section {
        padding: 4rem 0;
    }

    /* Mobile Comparison Table - Hide the grid, show as simple cards */
    .comparison-table {
        display: none;
    }

    /* Create mobile-friendly comparison */
    #comparison .container::after {
        content: '';
        display: block;
    }

    .step-header {
        flex-direction: column;
        gap: 1rem;
    }
}

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

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

/* ====================================
   CONTACT MODAL
   ==================================== */

/* Modal Overlay */
.contact-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

.contact-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Modal Content Container */
.contact-modal-content {
    background: rgba(30, 41, 59, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Close Button */
.contact-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- OVERLAY COMPARISON SECTION --- */
.overlay-comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch;
}

.comparison-item {
    display: flex;
    flex-direction: column;
}

.comparison-item.good .comparison-box {
    border-color: rgba(136, 189, 242, 0.35);
    box-shadow: 0 0 0 1px rgba(136, 189, 242, 0.22),
        0 12px 28px rgba(136, 189, 242, 0.12);
    padding: 1.75rem 1.25rem;
    max-width: 380px;
    width: 100%;
    margin: 0 auto;
}

.comparison-item.bad .comparison-box {
    border-color: rgba(239, 68, 68, 0.35);
    box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.22),
        0 12px 28px rgba(239, 68, 68, 0.12);
}

.comparison-title {
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    text-transform: none;
    letter-spacing: 1.25px;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.comparison-title.bad {
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.3);
}

.comparison-title.good {
    color: var(--accent-primary);
    border-color: rgba(136, 189, 242, 0.3);
}

.comparison-box {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 1.75rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}

.comparison-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-main);
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: 16px 16px 0 0;
}

/* Red border for bad/without comparison */
.comparison-item.bad .comparison-box::before {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.comparison-item.good:hover .comparison-box {
    border-color: var(--accent-primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4),
        0 14px 30px rgba(136, 189, 242, 0.28);
}

.comparison-item:hover .comparison-box {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--border-hover);
}

/* Red border on hover for bad comparison */
.comparison-item.bad:hover .comparison-box {
    border-color: #ef4444;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4),
        0 14px 30px rgba(239, 68, 68, 0.28);
}

.comparison-item:hover .comparison-box::before {
    opacity: 1;
}

.file-pair {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    width: 100%;
    margin-top: 0.25rem;
}

.file-item {
    flex: 1;
    text-align: center;
    /* Removed max-width to allow height to dictate size */
}

.file-item img {
    width: 100%;
    max-width: 100%;
    height: 420px;
    /* Fixed height for alignment */
    border-radius: 10px;
    border: 1px solid var(--border-color);
    margin-bottom: 0.75rem;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
    object-fit: cover;
}

.comparison-item:hover .file-item img {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.file-item.overlay-file img {
    background-color: rgba(255, 255, 255, 0.03);
    background-image:
        linear-gradient(45deg, rgba(255, 255, 255, 0.08) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255, 255, 255, 0.08) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.08) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.08) 75%);
    background-size: 18px 18px;
    background-position: 0 0, 0 9px, 9px -9px, -9px 0px;
    padding: 10px;
    border-radius: 12px;
}

.file-name {
    font-size: 0.9rem;
    color: var(--text-main);
    font-family: 'Courier New', monospace;
    margin-bottom: 0;
    opacity: 1;
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-weight: 500;
}

.file-separator {
    font-size: 3rem;
    color: #f87171;
    font-weight: 300;
    opacity: 0.8;
    flex-shrink: 0;
}

.merged-result {
    text-align: center;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    margin-top: 0.25rem;
}

.merged-result img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 440px;
    border-radius: 10px;
    border: 1px solid rgba(136, 189, 242, 0.5);
    /* Semi-transparent green */
    margin-bottom: 0.75rem;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    /* Match left image depth */
    transition: all 0.3s ease;
}

.comparison-item:hover .merged-result img {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(136, 189, 242, 0.35);
    /* Stronger depth with a green edge */
    border-color: var(--accent-primary);
}

.comparison-result {
    text-align: center;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.875rem 1.25rem;
    border-radius: 8px;
    margin-top: 1.25rem;
    margin-bottom: 0;
    width: fit-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.bad-result {
    background: rgba(239, 68, 68, 0.08);
    color: #f87171;
}

.good-result {
    background: rgba(136, 189, 242, 0.08);
    color: var(--accent-primary);
}

@media (max-width: 768px) {
    .overlay-comparison-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .comparison-box {
        padding: 1.75rem;
        min-height: 380px;
    }

    .comparison-item.good .comparison-box {
        max-width: 100%;
        width: 100%;
        margin: 0;
        padding: 1.75rem;
    }

    .file-pair {
        flex-direction: column;
        gap: 0.75rem;
    }

    .file-item {
        max-width: 240px;
    }

    .file-item img {
        height: 400px;
    }

    .file-separator {
        transform: rotate(90deg);
        margin: 0.5rem 0;
        font-size: 1.5rem;
    }

    .merged-result img {
        width: auto;
        height: auto;
        max-width: 100%;
        max-height: 420px;
    }
}

/* --- Mobile: Real Photo Example (Interactive Toggle) --- */
@media (max-width: 768px) {
    .diff-global-toggle {
        max-width: 100%;
        margin: 2rem auto 1.5rem;
    }

    .diff-global-btn {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }

    .diff-helper-text {
        font-size: 0.875rem;
        margin: 0.875rem auto 1.5rem;
        padding: 0 1rem;
    }

    /* Stage - Mobile: reduce photo frame size, stacked layout */
    .diff-photo-frame {
        max-width: 100%;
    }

    .diff-stage {
        min-height: 520px;
    }

    /* Grouped Card - Mobile */
    .diff-group-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 1rem 1.25rem;
    }

    .diff-group-title {
        font-size: 0.875rem;
    }

    .diff-group-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 1.25rem;
    }

    .diff-group-label {
        font-size: 0.8125rem;
    }

    /* Center grid items on mobile instead of pushing to sides */
    .diff-group-item:first-child,
    .diff-group-item:last-child {
        margin-left: auto;
        margin-right: auto;
    }

    /* Cards Grid - Mobile */
    .diff-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .diff-card-label {
        font-size: 0.8125rem;
    }

    /* Pill - Mobile: compact size with proper positioning */
    .diff-pill {
        bottom: 0.75rem;
        left: 0.75rem;
        top: auto;
        padding: 0.375rem 0.625rem;
        font-size: 0.75rem;
        width: fit-content;
        max-width: calc(100% - 1.5rem);
    }

    /* Image centering on mobile */
    .diff-media {
        margin-left: auto;
        margin-right: auto;
    }

    /* Footer - Mobile */
    .diff-footer {
        padding: 0.875rem 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .diff-footer-date {
        font-size: 0.9375rem;
    }

    .diff-footer-badge {
        font-size: 0.6875rem;
        padding: 0.3125rem 0.625rem;
    }
}

/* ============================================
   Sticky Mobile CTA Bar
   ============================================ */

.mobile-cta-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 1rem;
    z-index: 999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.mobile-cta-bar .btn {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .mobile-cta-bar {
        display: block;
    }
}

/* ============================================
   Accessibility - Skip Link
   ============================================ */

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent-primary);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 10000;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    top: 0;
}
/* ============================================
   Contact Form Styling
   ============================================ */

.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--bg-section);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

