/* ============================================================
   Swipe Photo Cleaner - Modern CSS Design System
   ============================================================ */

/* --- CSS Custom Properties --- */
:root, [data-theme="light"] {
    /* Colors */
    --primary: #0066cc;
    --primary-hover: #0052a3;
    --primary-light: rgba(0, 102, 204, 0.1);
    --accent-pink: #ff2d55;
    --accent-purple: #5856d6;
    --accent-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --hero-gradient: linear-gradient(160deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    
    /* Surfaces */
    --bg: #ffffff;
    --bg-secondary: #f5f5f7;
    --bg-card: rgba(255, 255, 255, 0.8);
    --bg-glass: rgba(255, 255, 255, 0.6);
    --header-bg: rgba(255, 255, 255, 0.85);
    
    /* Text */
    --text-primary: #1d1d1f;
    --text-secondary: #6e6e73;
    --text-tertiary: #636366;
    --text-on-dark: #ffffff;
    --text-on-dark-muted: rgba(255, 255, 255, 0.7);
    
    /* Borders & Shadows */
    --border: #e5e5e7;
    --border-light: rgba(0, 0, 0, 0.06);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 40px rgba(0, 122, 255, 0.15);
    
    /* Layout */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --max-width: 1080px;
    
    /* Animation */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-fast: 0.2s var(--ease-out);
    --transition-normal: 0.4s var(--ease-out);
    /* Legacy Article CSS Variable Aliases */
    --card-bg: var(--bg-card);
    --border-color: var(--border);
    --text-heading: var(--text-primary);
}

/* --- Explicit Dark Mode --- */
[data-theme="dark"] {
    --primary: #2997ff;
    --primary-hover: #47a6ff;
    --primary-light: rgba(41, 151, 255, 0.15);
    --bg: #1c1c1e;
    --bg-secondary: #2c2c2e;
    --bg-card: rgba(44, 44, 46, 0.8);
    --bg-glass: rgba(44, 44, 46, 0.6);
    --header-bg: rgba(28, 28, 30, 0.85);
    --text-primary: #f5f5f7;
    --text-secondary: #98989d;
    --text-tertiary: #a1a1a6;
    --border: #38383a;
    --border-light: rgba(255, 255, 255, 0.08);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.4);

    /* Legacy Article CSS Variable Aliases */
    --card-bg: var(--bg-card);
    --border-color: var(--border);
    --text-heading: var(--text-primary);
}

/* --- OS Preference Fallback (Dark Mode) --- */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --primary: #2997ff;
        --primary-hover: #47a6ff;
        --primary-light: rgba(41, 151, 255, 0.15);
        --bg: #1c1c1e;
        --bg-secondary: #2c2c2e;
        --bg-card: rgba(44, 44, 46, 0.8);
        --bg-glass: rgba(44, 44, 46, 0.6);
        --header-bg: rgba(28, 28, 30, 0.85);
        --text-primary: #f5f5f7;
        --text-secondary: #98989d;
        --text-tertiary: #a1a1a6;
        --border: #38383a;
        --border-light: rgba(255, 255, 255, 0.08);
        --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
        --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
        --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.4);
    }
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* ============================================================
   HEADER
   ============================================================ */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--header-bg);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border-light);
    padding: 12px 0;
    transition: background var(--transition-fast), box-shadow var(--transition-fast);
}

header.scrolled {
    box-shadow: var(--shadow-sm);
}

.nav-wrapper,
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
}

.logo picture,
.logo img {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: block;
    object-fit: cover;
}

header nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    margin: 0 12px;
}

.app-mini-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.app-icon-small {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.app-icon-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-name-small {
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
}

/* Navigation */
.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text-primary);
}

.nav-toggle svg {
    width: 24px;
    height: 24px;
    display: block;
}

/* Download Buttons */
.btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background-color: #0066cc;
    color: #ffffff !important;
    padding: 8px 18px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.85rem;
    line-height: 1;
    transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
    white-space: nowrap;
    text-decoration: none;
    flex-shrink: 0;
    box-sizing: border-box;
    height: 36px;
}

.btn-download:hover {
    background-color: #0052a3;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.btn-download-android {
    background: #1e293b;
    color: #ffffff;
    border: 1px solid rgba(61, 220, 132, 0.4);
}

.btn-download-android svg {
    fill: #3ddc84;
}

.btn-download-android:hover {
    background: #0f172a;
    border-color: #3ddc84;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(61, 220, 132, 0.25);
    transform: translateY(-1px);
}

[data-theme="light"] .btn-download-android {
    background: #16a34a;
    color: #ffffff !important;
    border-color: #15803d;
}

[data-theme="light"] .btn-download-android svg {
    fill: #ffffff;
}

[data-theme="light"] .btn-download-android:hover {
    background: #15803d;
    border-color: #166534;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.3);
}

.btn-download svg,
.btn-download-android svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.header-actions,
.header-downloads {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

@media (max-width: 1040px) {
    .nav-links {
        gap: 16px;
    }
}

@media (max-width: 900px) {
    .nav-links {
        gap: 12px;
    }
    .nav-links a {
        font-size: 0.82rem;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 16px;
    }
    .app-name-small,
    .logo-text {
        display: none;
    }
    .header-actions .btn-download,
    .header-actions .btn-download-android {
        padding: 6px 12px;
        font-size: 0.8rem;
        height: 32px;
        gap: 5px;
    }
    .header-actions .btn-download svg,
    .header-actions .btn-download-android svg {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 480px) {
    .header-actions {
        gap: 6px;
    }
    .header-actions .btn-download {
        padding: 6px 10px;
        font-size: 0.78rem;
    }
}

@media (max-width: 440px) {
    .header-actions .btn-download-android {
        display: none;
    }
}

.hero-btn-android {
    background: #1e293b !important;
    color: #ffffff !important;
    border: 1px solid rgba(61, 220, 132, 0.35);
}

.hero-btn-android svg {
    fill: #3ddc84 !important;
}

.hero-btn-android:hover {
    background: #0f172a !important;
    border-color: #3ddc84 !important;
    box-shadow: 0 6px 24px rgba(61, 220, 132, 0.25) !important;
}

[data-theme="light"] .hero-btn-android {
    background: #f0fdf4 !important;
    color: #166534 !important;
    border-color: rgba(34, 197, 94, 0.35) !important;
}

[data-theme="light"] .hero-btn-android svg {
    fill: #16a34a !important;
}

[data-theme="light"] .hero-btn-android:hover {
    background: #dcfce7 !important;
    border-color: #16a34a !important;
    box-shadow: 0 6px 24px rgba(34, 197, 94, 0.2) !important;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    background: var(--hero-gradient);
    padding: 80px 0 90px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.3) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(118, 75, 162, 0.25) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    display: flex;
    gap: 50px;
    align-items: flex-start;
    position: relative;
    z-index: 1;
}

.app-icon-large {
    width: 160px;
    height: 160px;
    border-radius: 36px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    animation: float 6s ease-in-out infinite;
    margin-top: 10px;
}

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

.app-icon-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-text {
    max-width: 560px;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--text-on-dark);
    margin-bottom: 16px;
}

.hero-text h2 {
    font-size: 1.2rem;
    color: var(--text-on-dark-muted);
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 28px;
}

.hero-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-on-dark);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.ratings {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    color: var(--text-on-dark-muted);
    font-size: 0.88rem;
    font-weight: 500;
}

.stars {
    color: #ffb800;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-btn-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #fff;
    color: #1d1d1f;
    padding: 16px 32px;
    border-radius: var(--radius-xl);
    font-weight: 700;
    font-size: 1.05rem;
    white-space: nowrap;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: cta-pulse 4.5s ease-in-out infinite;
}

.hero-btn-large:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    animation: none;
}

@keyframes cta-pulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    }
    50% {
        box-shadow: 0 4px 25px rgba(0, 122, 255, 0.4), 0 0 0 4px rgba(0, 122, 255, 0.15);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-btn-large {
        animation: none !important;
    }
}

.hero-btn-large svg {
    width: 22px;
    height: 22px;
}

.hero-subnote {
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--text-on-dark-muted);
    max-width: 400px;
}

.hero-subnote a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.3);
    text-underline-offset: 3px;
    transition: text-decoration-color var(--transition-fast);
}

.hero-subnote a:hover {
    text-decoration-color: rgba(255, 255, 255, 0.8);
}

/* Desktop QR Code Badge */
.hero-qr-card {
    display: none;
}

@media (min-width: 769px) {
    .hero-qr-card {
        display: inline-flex;
        align-items: center;
        gap: 14px;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.16);
        border-radius: 16px;
        padding: 10px 16px;
        margin-top: 20px;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        transition: transform 0.2s, background 0.2s, border-color 0.2s;
    }
    .hero-qr-card:hover {
        transform: translateY(-2px);
        background: rgba(255, 255, 255, 0.12);
        border-color: rgba(255, 255, 255, 0.3);
    }
    .hero-qr-img {
        width: 72px;
        height: 72px;
        background: #ffffff;
        padding: 5px;
        border-radius: 10px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
        flex-shrink: 0;
    }
    .hero-qr-img img {
        width: 100%;
        height: 100%;
        display: block;
    }
    .hero-qr-text {
        display: flex;
        flex-direction: column;
        gap: 3px;
        text-align: left;
    }
    .hero-qr-text strong {
        font-size: 0.92rem;
        font-weight: 700;
        color: #ffffff;
        display: flex;
        align-items: center;
        gap: 5px;
    }
    .hero-qr-text span {
        font-size: 0.78rem;
        color: rgba(255, 255, 255, 0.75);
        max-width: 190px;
        line-height: 1.35;
    }
}

/* ============================================================
   SOCIAL PROOF / STATS BAR
   ============================================================ */
.stats-bar {
    background: var(--bg-secondary);
    padding: 48px 0;
    border-bottom: 1px solid var(--border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.howto-section {
    padding: 80px 0;
}

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

.section-heading h2 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.section-heading p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
}

.hero-quick-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.hero-step-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    text-align: center;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.hero-step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.hero-step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.hero-step-card:hover::before {
    opacity: 1;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--accent-gradient);
    color: #fff;
    border-radius: 50%;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.hero-step-card strong {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.hero-step-card span {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ============================================================
   SCREENSHOTS CAROUSEL
   ============================================================ */
.screenshots-section {
    padding: 80px 0;
    overflow: hidden;
    background: var(--bg-secondary);
}

.screenshots-heading {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
    text-align: center;
}

.screenshots-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 40px;
}

.screenshots-container {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding: 20px 24px 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    justify-content: center;
}

.screenshots-container::-webkit-scrollbar {
    display: none;
}

.screenshot {
    width: 240px;
    height: 520px;
    background: var(--bg-secondary);
    border-radius: 32px;
    flex-shrink: 0;
    overflow: hidden;
    border: 3px solid rgba(0, 0, 0, 0.08);
    box-shadow: var(--shadow-lg);
    scroll-snap-align: center;
    transition: transform var(--transition-normal);
    position: relative;
}

@media (prefers-color-scheme: dark) {
    .screenshot {
        border-color: rgba(255, 255, 255, 0.1);
    }
}

.screenshot:hover {
    transform: scale(1.03);
}

.screenshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.screenshots-indicator {
    width: min(300px, 60%);
    height: 4px;
    margin: 20px auto 0;
    background: var(--border);
    border-radius: 999px;
    overflow: hidden;
    cursor: pointer;
    touch-action: none;
}

.screenshots-indicator-thumb {
    height: 100%;
    width: 25%;
    background: var(--primary);
    border-radius: inherit;
    transform: translateX(0);
    transition: transform 0.12s linear;
    cursor: grab;
}

.screenshots-indicator-thumb.is-dragging {
    cursor: grabbing;
}

/* ============================================================
   FEATURES GRID
   ============================================================ */
.features-section {
    padding: 80px 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 0;
}

.feature-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 28px 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 122, 255, 0.2);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    font-size: 1.5rem;
    margin-bottom: 16px;
    background: var(--primary-light);
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 0;
}

/* ============================================================
   DESCRIPTION / LONG-FORM CONTENT
   ============================================================ */
.description-section {
    padding: 60px 0 80px;
    border-top: 1px solid var(--border);
}

.description-text {
    max-width: 720px;
    margin: 0 auto;
}

.description-text h2 {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    margin-top: 48px;
    color: var(--text-primary);
}

.description-text h2:first-of-type {
    margin-top: 0;
}

.description-text h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: 36px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.description-text p {
    margin-bottom: 1.4rem;
    font-size: 1.02rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.highlight {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.1rem;
    line-height: 1.6;
}

.steps,
.tips {
    margin: 20px 0 30px;
    padding-left: 22px;
    color: var(--text-secondary);
    font-size: 1rem;
}

.steps li,
.tips li {
    margin-bottom: 14px;
    line-height: 1.6;
}

.steps li strong,
.tips li strong {
    color: var(--text-primary);
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.faq-list {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: box-shadow var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.faq-item:hover {
    box-shadow: var(--shadow-sm);
}

/* Accordion FAQs (homepage details) */
details.faq-item {
    padding: 0;
}

details.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
    user-select: none;
    -webkit-user-select: none;
    transition: background var(--transition-fast);
}

details.faq-item summary:hover {
    background: var(--bg-secondary);
}

details.faq-item summary::-webkit-details-marker {
    display: none;
}

details.faq-item summary::after {
    content: '+';
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--text-tertiary);
    flex-shrink: 0;
    margin-left: 16px;
    transition: transform var(--transition-fast);
}

details.faq-item[open] summary::after {
    content: '−';
}

.faq-answer {
    padding: 0 24px 20px;
    font-size: 0.98rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* Static Block FAQs (Articles & Comparison Pages) */
div.faq-item,
.faq-item:not(details),
.article-body .faq-item {
    padding: 24px 28px;
    margin-bottom: 18px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

div.faq-item:hover,
.faq-item:not(details):hover,
.article-body .faq-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 102, 204, 0.3);
}

[data-theme="dark"] div.faq-item,
[data-theme="dark"] .faq-item:not(details),
[data-theme="dark"] .article-body .faq-item {
    background: #242426;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] div.faq-item:hover,
[data-theme="dark"] .faq-item:not(details):hover,
[data-theme="dark"] .article-body .faq-item:hover {
    border-color: rgba(41, 151, 255, 0.4);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
}

.faq-list > div.faq-item,
.faq-list > .faq-item:not(details) {
    margin-bottom: 0;
}

div.faq-item h3,
.faq-item:not(details) h3,
.article-body .faq-item h3 {
    margin: 0 0 12px 0 !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    line-height: 1.45 !important;
    color: var(--text-primary) !important;
    letter-spacing: -0.01em;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

div.faq-item h3::before,
.faq-item:not(details) h3::before,
.article-body .faq-item h3::before {
    content: "Q";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 800;
    flex-shrink: 0;
    margin-top: 1px;
}

div.faq-item p,
.faq-item:not(details) p,
.article-body .faq-item p {
    margin: 0 !important;
    font-size: 1rem !important;
    line-height: 1.65 !important;
    color: var(--text-secondary) !important;
    padding-left: 38px;
}

div.faq-item p + p,
.faq-item:not(details) p + p,
.article-body .faq-item p + p {
    margin-top: 10px !important;
}

[data-theme="dark"] div.faq-item p,
[data-theme="dark"] .faq-item:not(details) p,
[data-theme="dark"] .article-body .faq-item p {
    color: #a1a1a6 !important;
}

@media (max-width: 640px) {
    div.faq-item,
    .faq-item:not(details),
    .article-body .faq-item {
        padding: 18px 20px;
        margin-bottom: 14px;
        border-radius: 14px;
    }

    div.faq-item h3,
    .faq-item:not(details) h3,
    .article-body .faq-item h3 {
        font-size: 1.05rem !important;
        gap: 10px;
    }

    div.faq-item p,
    .faq-item:not(details) p,
    .article-body .faq-item p {
        padding-left: 0;
        margin-top: 8px !important;
        font-size: 0.96rem !important;
    }
}

/* ============================================================
   REVIEWS SECTION
   ============================================================ */
.reviews-section {
    padding: 80px 0;
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    max-width: var(--max-width);
    margin: 0 auto 40px;
    padding: 0 24px;
    gap: 16px;
}

.reviews-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 0 24px 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    max-width: var(--max-width);
    margin: 0 auto;
}

.reviews-scroll::-webkit-scrollbar {
    display: none;
}

.review-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 24px;
    border-radius: var(--radius-lg);
    min-width: 320px;
    max-width: 360px;
    flex-shrink: 0;
    scroll-snap-align: start;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.review-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.review-stars {
    color: #ffb800;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
}

.review-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
}

.review-date {
    color: var(--text-tertiary);
    font-size: 0.82rem;
    white-space: nowrap;
}

.review-body {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

.review-author {
    margin-top: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.section-link {
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    transition: opacity var(--transition-fast);
}

.section-link:hover {
    opacity: 0.8;
}

/* ============================================================
   MID-PAGE CTA BANNER
   ============================================================ */
.cta-banner {
    padding: 60px 0;
    background: var(--hero-gradient);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(102, 126, 234, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.cta-banner h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-on-dark);
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.cta-banner p {
    color: var(--text-on-dark-muted);
    font-size: 1.05rem;
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
}

.cta-banner .hero-btn-large {
    position: relative;
    z-index: 1;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    border-top: 1px solid var(--border);
    padding: 48px 0 40px;
    background: var(--bg-secondary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: 32px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-brand-name {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1rem;
}

.footer-brand-name img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.footer-brand p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
    max-width: 280px;
}

.footer-col h4,
.footer-col h3 {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.footer-col a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: var(--text-tertiary);
}

/* ============================================================
   STICKY MOBILE CTA
   ============================================================ */
.sticky-cta,
.mobile-sticky-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    padding: 12px 20px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-top: 1px solid var(--border-light);
    transform: translateY(100%);
    transition: transform 0.4s var(--ease-out);
}

@media (prefers-color-scheme: dark) {
    .sticky-cta,
    .mobile-sticky-cta {
        background: rgba(28, 28, 30, 0.92);
    }
}

.sticky-cta.visible,
.mobile-sticky-cta.visible {
    transform: translateY(0);
}

.sticky-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.sticky-cta-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.sticky-cta-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.sticky-cta-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sticky-cta-text {
    min-width: 0;
}

.sticky-cta-text strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sticky-cta-text span {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.sticky-cta-btn {
    display: inline-flex;
    align-items: center;
    background: var(--primary);
    color: #fff;
    padding: 10px 24px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.88rem;
    white-space: nowrap;
    transition: background var(--transition-fast);
    flex-shrink: 0;
}

.sticky-cta-btn:hover {
    background: var(--primary-hover);
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ============================================================
   LEGAL / SUPPORT PAGES
   ============================================================ */
.page-shell {
    padding: 40px 0 80px;
}

.legal-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.legal-card h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.2;
}

.legal-card h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 28px;
    margin-bottom: 10px;
}

.legal-card p,
.legal-card li {
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.6;
}

.legal-card ul {
    padding-left: 20px;
    display: grid;
    gap: 8px;
}

.legal-card .muted {
    color: var(--text-tertiary);
    font-size: 0.9rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 28px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
    
    .stats-grid {
        gap: 20px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 50px 0 60px;
    }
    
    .hero-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 28px;
    }

    .hero-text {
        max-width: 100%;
    }

    .app-icon-large {
        width: 120px;
        height: 120px;
        border-radius: 30px;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .hero-badges {
        justify-content: center;
    }

    .ratings {
        justify-content: center;
    }

    .hero-cta-group {
        justify-content: center;
    }

    .hero-subnote {
        margin: 20px auto 0;
        text-align: center;
    }

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

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

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .screenshot {
        width: 200px;
        height: 434px;
    }
    
    .screenshots-container {
        justify-content: flex-start;
    }

    .section-heading h2,
    .screenshots-heading,
    .section-title {
        font-size: 1.7rem;
    }

    header nav {
        display: contents;
    }

    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: block;
    }
    
    /* Mobile nav drawer */
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        padding: 16px 24px;
        gap: 16px;
        box-shadow: var(--shadow-md);
    }

    .sticky-cta,
    .mobile-sticky-cta {
        display: block;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .reviews-scroll {
        padding: 0 16px 20px;
    }

    .review-card {
        min-width: 280px;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.85rem;
    }
    
    .hero-btn-large {
        padding: 14px 20px;
        font-size: 0.98rem;
        max-width: 100%;
        box-sizing: border-box;
        white-space: normal;
        text-align: center;
    }
    
    .section-heading h2,
    .screenshots-heading,
    .section-title {
        font-size: 1.5rem;
    }
}

/* ============================================================
   STORAGE CALCULATOR
   ============================================================ */
.calculator-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.calculator-card {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.calc-inputs {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.calc-field label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.calc-slider-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
}

.calc-slider {
    flex: 1;
    height: 6px;
    border-radius: 999px;
    outline: none;
    border: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background: linear-gradient(to right, var(--primary) 0%, var(--primary) 35%, var(--border) 35%);
}

.calc-slider::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,122,255,0.35);
    transition: transform 0.15s;
}

.calc-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.calc-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary);
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,122,255,0.35);
}

.calc-value {
    min-width: 70px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
    text-align: right;
}

.calc-result {
    background: var(--hero-gradient);
    border-radius: var(--radius-lg);
    padding: 32px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.calc-result::before {
    content: '';
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(102,126,234,0.3) 0%, transparent 70%);
    pointer-events: none;
}

.calc-result-number {
    font-size: 4rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.04em;
    line-height: 1;
    position: relative;
}

.calc-result-label {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    position: relative;
}

.calc-result-sub {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.4;
    position: relative;
}

.calc-result .hero-cta-group {
    width: 100%;
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
}

.calc-result .hero-btn-large {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 13px 16px !important;
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    white-space: normal !important;
    text-align: center;
    line-height: 1.25;
    border-radius: var(--radius-md, 12px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    word-break: normal;
}

.calc-result .hero-btn-large svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

@media (max-width: 768px) {
    .calculator-card {
        grid-template-columns: 1fr;
        padding: 28px 20px;
    }
    .calc-result-number {
        font-size: 3rem;
    }
}

/* ============================================================
   BLOG PREVIEW SECTION
   ============================================================ */
.blog-preview-section {
    padding: 80px 0;
    border-top: 1px solid var(--border);
}

.blog-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 32px;
}

.blog-preview-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-decoration: none;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.blog-preview-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0,122,255,0.2);
}

.blog-preview-icon {
    font-size: 2rem;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 2px;
}

.blog-preview-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.blog-preview-tag {
    display: inline-block;
    padding: 2px 8px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    width: fit-content;
}

.blog-preview-card h3 {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.35;
}

.blog-read-link {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary);
    margin-top: 2px;
}

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

/* ============================================================
   NEWSLETTER / EMAIL CAPTURE
   ============================================================ */
.newsletter-section {
    padding: 60px 0;
}

.newsletter-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 48px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.newsletter-content p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    justify-content: center;
}

.newsletter-form input[type="email"] {
    flex: 1;
    max-width: 350px;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    transition: border-color var(--transition-fast);
}

.newsletter-form input[type="email"]:focus {
    border-color: var(--primary);
}

.btn-subscribe {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.btn-subscribe:hover {
    background: var(--primary-hover);
}

.newsletter-disclaimer {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

@media (max-width: 600px) {
    .newsletter-form {
        flex-direction: column;
    }
    .newsletter-form input[type="email"] {
        max-width: 100%;
    }
    .btn-subscribe {
        width: 100%;
    }
    .newsletter-card {
        padding: 32px 20px;
    }
}

/* ============================================================
   BEFORE / AFTER SLIDER
   ============================================================ */
.before-after-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.ba-slider-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 4px solid var(--border);
    background: var(--bg);
}

.ba-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.ba-after {
    z-index: 1;
}

.ba-before {
    z-index: 2;
    width: 50%; /* JS will update this */
    border-right: 2px solid #fff;
}

/* Mockup styles to simulate photos */
.gallery-mockup {
    width: 800px; /* fixed to container max-width */
    height: 100%;
    background: #000;
    display: flex;
    flex-direction: column;
}

.mockup-header {
    padding: 12px;
    text-align: center;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mockup-header::before {
    content: "9:41";
    font-size: 0.8rem;
    opacity: 0.8;
}

.mockup-header::after {
    content: "🔋";
    font-size: 0.9rem;
}

.mockup-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    padding: 2px;
    flex: 1;
}

.m-item {
    background-color: #333;
    aspect-ratio: 1;
    position: relative;
}

/* Mock image styles */
.m-good { background: url('https://images.unsplash.com/photo-1682687220742-aba13b6e50ba?auto=format&fit=crop&w=400&q=60') center/cover; }
.m-dup { background: url('https://images.unsplash.com/photo-1682687220742-aba13b6e50ba?auto=format&fit=crop&w=400&q=60') center/cover; filter: contrast(1.2) brightness(0.9); }
.m-blur { background: url('https://images.unsplash.com/photo-1682687220742-aba13b6e50ba?auto=format&fit=crop&w=400&q=60') center/cover; filter: blur(4px); }
.m-screen { background: #e0e0e0; display: flex; align-items: center; justify-content: center; }
.m-screen::after { content: "TEXT"; font-family: sans-serif; font-weight: bold; color: #999; font-size: 1.5rem; letter-spacing: 2px; }

/* Labels */
.ba-label {
    position: absolute;
    bottom: 20px;
    padding: 6px 12px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 700;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.ba-label-before { right: 20px; }
.ba-label-after { left: 20px; }

.ba-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    outline: none;
    background: transparent;
    appearance: none;
    -webkit-appearance: none;
    z-index: 3;
    cursor: col-resize;
    margin: 0;
}

.ba-slider::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 4px;
    height: 800px;
    background: transparent;
    cursor: col-resize;
}

.ba-slider::-moz-range-thumb {
    width: 4px;
    height: 800px;
    background: transparent;
    cursor: col-resize;
    border: none;
}

.ba-slider-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    z-index: 2;
    pointer-events: none;
}

@media (max-width: 600px) {
    .ba-slider-container {
        aspect-ratio: 1 / 1.2;
    }
    .gallery-mockup {
        width: 100%;
    }
}
.theme-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    flex-shrink: 0;
    box-sizing: border-box;
}

.theme-btn:hover {
    background: var(--border-light);
}

.theme-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

[data-theme="dark"] .icon-moon {
    display: none;
}
[data-theme="light"] .icon-sun {
    display: none;
}
[data-theme="dark"] .icon-sun {
    display: block;
}
[data-theme="light"] .icon-moon {
    display: block;
}

/* Base OS theme handling */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .icon-moon {
        display: none;
    }
    :root:not([data-theme="light"]) .icon-sun {
        display: block;
    }
}
@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) .icon-sun {
        display: none;
    }
    :root:not([data-theme="dark"]) .icon-moon {
        display: block;
    }
}


/* ============================================================
   DESKTOP QR DOWNLOAD MODAL
   ============================================================ */
.qr-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    padding: 20px;
}

.qr-modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.qr-modal-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 30px 24px;
    max-width: 440px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transform: scale(0.92);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    color: var(--text-primary);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.qr-modal-backdrop.active .qr-modal-card {
    transform: scale(1);
}

.qr-modal-title {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.qr-modal-desc {
    font-size: 0.86rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 14px;
}

.qr-platforms-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}

.qr-platform-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: var(--radius-md, 12px);
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.qr-platform-option:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.qr-platform-option.ios-option:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}
.qr-platform-option.ios-option:hover .qr-platform-sub,
.qr-platform-option.ios-option:hover .qr-platform-arrow {
    color: rgba(255, 255, 255, 0.85);
}

.qr-platform-option.android-option:hover {
    background: #1e293b;
    color: #ffffff;
    border-color: #3ddc84;
}
.qr-platform-option.android-option:hover .qr-platform-sub,
.qr-platform-option.android-option:hover .qr-platform-arrow {
    color: rgba(255, 255, 255, 0.85);
}

.qr-platform-info {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.qr-platform-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--bg);
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.qr-platform-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
}

.qr-platform-sub {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.qr-platform-arrow {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-secondary);
    transition: transform 0.2s ease;
}
.qr-platform-option:hover .qr-platform-arrow {
    transform: translateX(3px);
}

.qr-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    transition: background 0.15s, color 0.15s;
}

.qr-modal-close:hover {
    background: var(--border);
    color: var(--text-primary);
}

.qr-code-wrapper {
    background: #ffffff;
    padding: 14px;
    border-radius: var(--radius-lg);
    display: inline-block;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    margin: 18px 0;
}

.qr-code-wrapper img, .qr-code-wrapper svg {
    display: block;
    width: 170px;
    height: 170px;
}

.qr-modal-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.qr-modal-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

.qr-modal-web-btn {
    display: inline-block;
    margin-top: 14px;
    font-size: 0.84rem;
    color: var(--primary);
    text-decoration: underline;
    cursor: pointer;
}


/* Language Dropdown */
.lang-dropdown {
    position: relative;
    display: inline-block;
    margin: 0;
}
.lang-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 7px 12px;
    border-radius: var(--radius-sm, 8px);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all var(--transition-fast, 0.2s ease);
}
.lang-btn:hover,
.lang-dropdown.active .lang-btn {
    background: var(--bg);
    border-color: var(--primary);
    color: var(--primary);
}
.lang-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    background: var(--bg);
    min-width: 175px;
    max-height: 380px;
    overflow-y: auto;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
    border-radius: var(--radius-md, 12px);
    border: 1px solid var(--border);
    z-index: 1000;
    padding: 6px;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}
.lang-menu::-webkit-scrollbar {
    width: 5px;
}
.lang-menu::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}
.lang-dropdown.active .lang-menu {
    display: block;
    animation: fadeInDropdown 0.15s ease forwards;
}
@keyframes fadeInDropdown {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.lang-menu a {
    color: var(--text-primary);
    padding: 8px 12px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.15s ease;
}
.lang-menu a:hover,
.lang-menu a.active {
    background-color: var(--bg-secondary);
    color: var(--primary);
    font-weight: 600;
}

/* ============================================================
   ACCESSIBILITY & LIVE SWIPE SIMULATOR
   ============================================================ */
.skip-link {
    position: absolute;
    top: -50px;
    left: 16px;
    background: var(--primary);
    color: #ffffff !important;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    z-index: 9999;
    text-decoration: none !important;
    transition: top 0.2s ease;
}
.skip-link:focus {
    top: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.swipe-demo-container {
    max-width: 360px;
    margin: 32px auto 0 auto;
    position: relative;
    user-select: none;
}
.swipe-demo-card-stage {
    position: relative;
    width: 300px;
    height: 390px;
    margin: 0 auto;
}
.swipe-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    touch-action: none;
    cursor: grab;
    transition: transform 0.3s ease, opacity 0.3s ease;
    will-change: transform, opacity;
}
.swipe-card:active {
    cursor: grabbing;
}
.swipe-card.is-dragging {
    transition: none !important;
}
.swipe-card-img {
    height: 260px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-tertiary, #1f2937);
}
.swipe-card-img picture {
    width: 100%;
    height: 100%;
    display: block;
}
.swipe-card-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}
.swipe-stamp {
    position: absolute;
    top: 24px;
    padding: 6px 14px;
    font-size: 1.3rem;
    font-weight: 800;
    border-radius: 8px;
    border: 3px solid;
    text-transform: uppercase;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
    z-index: 10;
}
.swipe-stamp.keep {
    right: 18px;
    color: #30d158;
    border-color: #30d158;
    transform: rotate(12deg);
}
.swipe-stamp.delete {
    left: 18px;
    color: #ff453a;
    border-color: #ff453a;
    transform: rotate(-12deg);
}
.swipe-card-info {
    padding: 16px;
    text-align: left;
    background: var(--bg-secondary);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.swipe-card-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.swipe-card-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
}
.swipe-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}
.swipe-ctrl-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: transform 0.15s ease, background 0.15s ease;
}
.swipe-ctrl-btn:hover {
    transform: scale(1.1);
}
.swipe-ctrl-btn.btn-trash {
    color: #ff453a;
}
.swipe-ctrl-btn.btn-trash:hover {
    background: rgba(255, 69, 58, 0.1);
}
.swipe-ctrl-btn.btn-keep {
    color: #30d158;
}
.swipe-ctrl-btn.btn-keep:hover {
    background: rgba(48, 209, 88, 0.1);
}
.swipe-ctrl-btn.btn-restart {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    color: var(--text-secondary);
}
.swipe-stats-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(48, 209, 88, 0.1);
    color: #30d158;
    border-radius: 20px;
    font-size: 0.88rem;
    font-weight: 700;
    margin-top: 14px;
}
.swipe-complete-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
    background: var(--bg-secondary);
    border-radius: 20px;
    border: 1px solid var(--border);
}
.swipe-complete-card h4 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin: 12px 0 8px;
}
.swipe-complete-card p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin: 0 0 20px;
}

/* Blog Instant Search */
.blog-search-container {
    max-width: 620px;
    margin: 0 auto 36px auto;
    position: relative;
    padding: 0 16px;
    box-sizing: border-box;
}
.blog-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.blog-search-input {
    width: 100%;
    padding: 14px 44px 14px 46px;
    font-size: 1rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-primary);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    font-family: inherit;
    outline: none;
    box-sizing: border-box;
}
.blog-search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 4px 18px rgba(0, 122, 255, 0.18);
}
.blog-search-icon {
    position: absolute;
    left: 18px;
    color: var(--text-secondary);
    pointer-events: none;
    display: flex;
    align-items: center;
}
.blog-search-clear {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    display: none;
}
.blog-search-count {
    text-align: center;
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-top: 12px;
}

/* Back to Top Floating Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 28px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-card, #ffffff);
    color: var(--text-primary, #0f172a);
    border: 1px solid var(--border, rgba(0, 0, 0, 0.12));
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: var(--primary, #007aff);
    color: #ffffff;
    border-color: var(--primary, #007aff);
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 122, 255, 0.35);
}
@media (max-width: 768px) {
    .back-to-top {
        bottom: 84px;
        right: 18px;
        width: 40px;
        height: 40px;
    }
}

/* FAQ Accordions for Static / Comparison pages */
.faq-accordion-item {
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: var(--radius-md, 12px);
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.faq-accordion-item:hover {
    border-color: var(--primary, #007aff);
}
.faq-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    margin: 0 !important;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-heading, var(--text-primary, #0f172a));
    user-select: none;
}
.faq-chevron {
    display: inline-flex;
    align-items: center;
    color: var(--text-secondary, #64748b);
    transition: transform 0.25s ease;
    flex-shrink: 0;
    margin-left: 12px;
}
.faq-accordion-item.active .faq-chevron {
    transform: rotate(180deg);
    color: var(--primary, #007aff);
}
.faq-accordion-item p,
.faq-accordion-item .faq-answer {
    display: none;
    padding: 0 20px 18px 20px;
    margin: 0;
    color: var(--text-secondary, #475569);
    line-height: 1.6;
    font-size: 0.96rem;
}
.faq-accordion-item.active p,
.faq-accordion-item.active .faq-answer {
    display: block;
}

/* Desktop Sticky Social Bar */
.desktop-share-bar {
    position: fixed;
    top: 50%;
    left: 24px;
    transform: translateY(-50%) translateX(-20px);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 990;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.desktop-share-bar.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}
.desktop-share-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border, #cbd5e1);
    color: var(--text-secondary, #64748b);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
    text-decoration: none;
}
.desktop-share-btn:hover {
    transform: translateY(-3px) scale(1.05);
}
.desktop-share-btn.desktop-copy-btn:hover {
    color: var(--primary, #007aff);
    border-color: var(--primary, #007aff);
}
.desktop-share-btn.desktop-share-tg:hover {
    color: #0088cc;
    border-color: #0088cc;
}
.desktop-share-btn.desktop-share-wa:hover {
    color: #25d366;
    border-color: #25d366;
}
.desktop-share-btn.desktop-share-x:hover {
    color: #000;
    border-color: #000;
}
[data-theme="dark"] .desktop-share-btn.desktop-share-x:hover {
    color: #fff;
    border-color: #fff;
}
@media (max-width: 1180px) {
    .desktop-share-bar {
        display: none !important;
    }
}

/* ============================================================
   PRINT STYLESHEET
   ============================================================ */
@media print {
    *,
    *::before,
    *::after {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    body {
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
        font-size: 11pt !important;
        line-height: 1.5 !important;
        background: #fff !important;
        color: #111 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Hide screen-only interactive & floating elements */
    header,
    nav,
    #site-header,
    .mobile-sticky-cta,
    #sticky-cta,
    .desktop-share-bar,
    .article-share-bar,
    .reading-progress-bar,
    .back-to-top,
    .qr-modal-backdrop,
    .btn-download,
    .hero-btn-large,
    .copy-takeaways-btn,
    .lang-dropdown,
    .theme-toggle,
    .swipe-demo-container,
    .calc-container,
    .ba-slider-container,
    .cookie-banner,
    .skip-link {
        display: none !important;
    }

    /* Ensure readable contrast and clean links */
    a {
        color: #000 !important;
        text-decoration: underline !important;
    }

    /* Headings and breaks */
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        break-after: avoid;
        color: #000 !important;
    }

    img, figure, pre, blockquote, table, .quick-takeaways, .faq-accordion {
        page-break-inside: avoid;
        break-inside: avoid;
        max-width: 100% !important;
    }

    /* Clean container layout */
    .container, .hero-content, .article-content, main {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
}

