/* ===== PhotoPurge - Static Site Styles ===== */
/* Theme: light-first warm cream + indigo accent (simple, fluent, modern) */

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

:root {
    /* Indigo accent */
    --accent: #4F46E5;
    --accent-hover: #4338CA;
    --accent-active: #3730A3;
    --accent-soft: #EEEDFB;
    --accent-softer: #E0DDFA;

    /* Warm neutral surfaces */
    --bg: #FAF8F3;
    --bg-subtle: #F4F1EA;
    --surface: #FFFFFF;

    /* Text */
    --text: #1C2330;
    --text-2: #4A5160;
    --text-muted: #6E6A61;

    /* Borders */
    --border: #E7E2D6;
    --border-strong: #D8D1C0;

    /* Semantic */
    --danger: #DC2626;

    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --max-width: 1080px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --shadow-card: 0 1px 3px rgba(28, 35, 48, 0.07);
    --shadow-card-hover: 0 10px 28px -14px rgba(28, 35, 48, 0.18);
    --shadow-hero: 0 24px 64px -24px rgba(79, 70, 229, 0.28);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

.container-narrow {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease,
                box-shadow 0.16s ease, transform 0.12s ease;
    cursor: pointer;
    border: 1px solid transparent;
    white-space: nowrap;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
    background: var(--accent);
    color: #fff;
    padding: 10px 20px;
}

.btn-primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.28);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-strong);
    padding: 10px 20px;
}

.btn-ghost:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent-active);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-lg {
    padding: 13px 26px;
    font-size: 15px;
}

/* Navigation */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250, 248, 243, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 15px;
    color: var(--text);
}

.nav-links {
    display: flex;
    gap: 28px;
}

.nav-links a {
    font-size: 14px;
    color: var(--text-2);
    position: relative;
    padding-bottom: 4px;
    background-image: linear-gradient(var(--accent), var(--accent));
    background-size: 0% 2px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: color 0.15s ease, background-size 0.2s ease;
}

.nav-links a:hover {
    color: var(--text);
    background-size: 100% 2px;
}

/* Tooltip hint on hover */
.nav-links a[data-tip]::before {
    content: attr(data-tip);
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    background: var(--text);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    padding: 6px 10px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 200;
    box-shadow: 0 4px 12px rgba(28, 35, 48, 0.18);
}

.nav-links a[data-tip]::after {
    content: '';
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-bottom-color: var(--text);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
    z-index: 200;
}

.nav-links a[data-tip]:hover::before,
.nav-links a[data-tip]:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Mobile nav toggle (hamburger) — hidden on desktop */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: -12px;
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 1px;
    background: var(--text);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Hero — light cream canvas with soft indigo glow */
.hero {
    background:
        radial-gradient(900px 420px at 50% -12%, rgba(79, 70, 229, 0.12), transparent 62%),
        radial-gradient(700px 360px at 90% 108%, rgba(79, 70, 229, 0.08), transparent 60%),
        var(--bg);
    padding: 72px 0 0;
    text-align: center;
    overflow: hidden;
    color: var(--text);
}

.hero-content {
    max-width: 680px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 13px;
    color: var(--text-2);
    margin-bottom: 28px;
    box-shadow: var(--shadow-card);
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px rgba(79, 70, 229, 0.6);
}

.hero-title {
    font-size: 46px;
    font-weight: 700;
    line-height: 1.12;
    color: var(--text);
    letter-spacing: -0.025em;
    margin-bottom: 20px;
}

.accent {
    color: var(--accent);
}

.hero-subtitle {
    font-size: 17px;
    color: var(--text-2);
    line-height: 1.65;
    margin-bottom: 32px;
}

.hero-cta {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.hero-meta {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 56px;
}

.hero-meta .dot-sep {
    margin: 0 8px;
}

/* Hero mockup */
.hero-mockup {
    padding: 0 24px 64px;
    max-width: 880px;
    margin: 0 auto;
}

.mockup-window {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-hero);
    overflow: hidden;
}

.mockup-titlebar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--bg-subtle);
    border-bottom: 1px solid var(--border);
}

.mockup-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.mockup-dot.red { background: #FF5F57; }
.mockup-dot.yellow { background: #FEBC2E; }
.mockup-dot.green { background: #28C840; }

.mockup-title {
    font-size: 12px;
    color: var(--text-muted);
    margin-left: 8px;
}

.mockup-body {
    display: flex;
    min-height: 320px;
}

.mockup-sidebar {
    width: 180px;
    border-right: 1px solid var(--border);
    padding: 12px 8px;
    flex-shrink: 0;
}

.mockup-nav-item {
    font-size: 13px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-2);
    margin-bottom: 2px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mockup-nav-item.active {
    background: var(--accent-soft);
    color: var(--accent-active);
    font-weight: 600;
}

.mockup-count {
    font-size: 11px;
    background: var(--bg-subtle);
    color: var(--text-2);
    padding: 1px 6px;
    border-radius: 999px;
}

.mockup-nav-item.active .mockup-count {
    background: var(--accent);
    color: #fff;
}

.mockup-grid {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mockup-group {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.mockup-photo {
    width: 120px;
    height: 90px;
    border-radius: var(--radius-sm);
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.photo-1 { background: linear-gradient(135deg, #FCD34D, #F59E0B); }
.photo-2 { background: linear-gradient(135deg, #FCD34D, #F59E0B); }
.photo-3 { background: linear-gradient(135deg, #FCD34D, #F59E0B); }
.photo-4 { background: linear-gradient(135deg, #93C5FD, #3B82F6); }
.photo-5 { background: linear-gradient(135deg, #93C5FD, #3B82F6); }
.photo-6 { background: linear-gradient(135deg, #6EE7B7, #10B981); }
.photo-7 { background: linear-gradient(135deg, #6EE7B7, #10B981); }
.photo-8 { background: linear-gradient(135deg, #6EE7B7, #10B981); }

.mockup-photo.dimmed {
    opacity: 0.45;
    filter: grayscale(0.3);
}

.mockup-ai-tag {
    position: absolute;
    top: 4px;
    left: 4px;
    font-size: 9px;
    font-weight: 600;
    color: #fff;
    background: var(--accent);
    padding: 2px 6px;
    border-radius: 4px;
}

.mockup-purge-tag {
    position: absolute;
    top: 4px;
    left: 4px;
    font-size: 9px;
    font-weight: 500;
    color: var(--text-2);
    background: rgba(255, 255, 255, 0.85);
    padding: 2px 6px;
    border-radius: 4px;
}

/* Trust bar */
.trust-bar {
    padding: 40px 0;
    text-align: center;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}

.trust-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.trust-logos {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
}

.trust-logo {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

/* Section headers */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.section-header p {
    font-size: 16px;
    color: var(--text-2);
    max-width: 560px;
    margin: 0 auto;
}

/* How it works */
.how-it-works {
    padding: 80px 0;
    background: var(--surface);
}

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

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.step-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.step h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.step p {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.65;
}

/* Features */
.features {
    padding: 80px 0;
    background: var(--bg-subtle);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.feature-card:hover {
    border-color: var(--accent-softer);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
}

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

.feature-card h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.6;
}

.feature-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-active);
    background: var(--accent-soft);
    padding: 2px 8px;
    border-radius: 999px;
    margin-bottom: 10px;
    letter-spacing: 0.03em;
}

/* AI Engine */
.ai-engine {
    padding: 80px 0;
    background: var(--surface);
}

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

.ai-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: border-color 0.16s ease;
}

.ai-card:hover {
    border-color: var(--accent-softer);
}

.ai-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.ai-card-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.ai-card p {
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.6;
}

.ai-note {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--accent-soft);
    border-radius: var(--radius-md);
    padding: 14px 20px;
    font-size: 14px;
    color: var(--accent-active);
}

/* Before / After */
.before-after {
    padding: 80px 0;
    background: var(--bg-subtle);
}

.ba-container {
    display: flex;
    align-items: center;
    gap: 32px;
    justify-content: center;
}

.ba-card {
    flex: 1;
    max-width: 420px;
}

.ba-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.ba-label-before { color: var(--text-muted); }
.ba-label-after { color: var(--accent); }

.ba-visual {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 12px;
    display: grid;
    gap: 8px;
    background: var(--surface);
}

.ba-before {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 1fr);
}

.ba-after {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
}

.ba-photo {
    border-radius: var(--radius-sm);
    height: 60px;
}

.b1 { background: linear-gradient(135deg, #FCD34D, #F59E0B); }
.b2 { background: linear-gradient(135deg, #FCD34D, #F59E0B); }
.b3 { background: linear-gradient(135deg, #93C5FD, #3B82F6); }
.b4 { background: linear-gradient(135deg, #93C5FD, #3B82F6); }
.b5 { background: linear-gradient(135deg, #6EE7B7, #10B981); }
.b6 { background: linear-gradient(135deg, #6EE7B7, #10B981); }
.b7 { background: linear-gradient(135deg, #F9A8D4, #EC4899); }
.b8 { background: linear-gradient(135deg, #F9A8D4, #EC4899); }
.b9 { background: linear-gradient(135deg, #C4B5FD, #8B5CF6); }
.b10 { background: linear-gradient(135deg, #C4B5FD, #8B5CF6); }
.b11 { background: linear-gradient(135deg, #FCD34D, #F59E0B); }
.b12 { background: linear-gradient(135deg, #93C5FD, #3B82F6); }

.a1 { background: linear-gradient(135deg, #FCD34D, #F59E0B); }
.a2 { background: linear-gradient(135deg, #93C5FD, #3B82F6); }
.a3 { background: linear-gradient(135deg, #6EE7B7, #10B981); }
.a4 { background: linear-gradient(135deg, #F9A8D4, #EC4899); }
.a5 { background: linear-gradient(135deg, #C4B5FD, #8B5CF6); }
.a6 { background: linear-gradient(135deg, #FCA5A5, #EF4444); }

.ba-stats {
    text-align: center;
    margin-top: 12px;
    font-size: 14px;
    color: var(--text-2);
}

.ba-stat-num {
    font-weight: 600;
    color: var(--text);
}

.ba-stat-saved {
    color: var(--accent);
    font-weight: 600;
}

.ba-stat-sep {
    margin: 0 8px;
    color: var(--border-strong);
}

.ba-arrow {
    flex-shrink: 0;
}

.ba-arrow svg path {
    stroke: var(--accent);
}

/* Download */
.download {
    padding: 80px 0;
    text-align: center;
    background:
        radial-gradient(900px 380px at 50% -20%, rgba(79, 70, 229, 0.12), transparent 62%),
        var(--surface);
    color: var(--text);
}

.download h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.download p {
    font-size: 16px;
    color: var(--text-2);
    margin-bottom: 32px;
}

.download-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.download .btn-primary {
    background: var(--accent);
    color: #fff;
}

.download .btn-primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.32);
}

.download-meta {
    font-size: 13px;
    color: var(--text-muted);
}

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

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    overflow: hidden;
    transition: border-color 0.16s ease;
}

.faq-item[open] {
    border-color: var(--accent-softer);
}

.faq-item summary {
    padding: 18px 24px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::after {
    content: '+';
    font-size: 20px;
    color: var(--text-muted);
    transition: transform 0.15s ease;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

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

.faq-item p {
    padding: 0 24px 18px;
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.65;
}

/* Footer */
.footer {
    background: var(--bg-subtle);
    color: var(--text-2);
    padding: 48px 0 0;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 48px;
    padding-bottom: 48px;
}

.footer-brand {
    max-width: 280px;
}

.footer .nav-logo {
    color: var(--text);
    margin-bottom: 12px;
}

.footer-tagline {
    font-size: 14px;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 48px;
}

.footer-col h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    font-size: 14px;
    color: var(--text-2);
    margin-bottom: 10px;
    transition: color 0.15s ease;
}

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

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 20px 0;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-muted);
}

/* Legal pages (privacy.html / terms.html) */
.legal {
    padding: 72px 0 88px;
    background: var(--surface);
}

.legal h1 {
    font-size: 32px;
    line-height: 1.25;
    margin: 8px 0 16px;
}

.legal h2 {
    font-size: 19px;
    margin: 36px 0 10px;
    color: var(--text);
}

.legal p {
    margin: 0 0 14px;
    color: var(--text-2, #4a5162);
    line-height: 1.65;
}

.legal ul {
    margin: 0 0 16px;
    padding-left: 22px;
    color: var(--text-2, #4a5162);
    line-height: 1.65;
}

.legal li {
    margin-bottom: 6px;
}

.legal code {
    background: rgba(79, 70, 229, 0.07);
    color: var(--accent, #4F46E5);
    padding: 2px 6px;
    border-radius: 5px;
    font-size: 13px;
}

.legal a {
    color: var(--accent, #4F46E5);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-lead {
    font-size: 16px;
    color: var(--text);
}

.legal-updated {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

/* Responsive */
@media (max-width: 900px) {
    .feature-grid,
    .ai-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 8px 20px rgba(28, 35, 48, 0.08);
        padding: 8px 0;
        z-index: 99;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 12px 24px;
        border-radius: 0;
    }

    .nav-links a:hover {
        background: var(--bg-subtle);
    }

    /* tooltip 喺 mobile dropdown 上冇意義，禁用 */
    .nav-links a[data-tip]::before,
    .nav-links a[data-tip]::after {
        display: none;
    }

    .ba-container {
        flex-direction: column;
    }

    .ba-arrow {
        transform: rotate(90deg);
    }

    .footer-content {
        flex-direction: column;
        gap: 32px;
    }

    .footer-links {
        gap: 32px;
        flex-wrap: wrap;
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 34px;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .section-header h2 {
        font-size: 26px;
    }

    .download h2 {
        font-size: 26px;
    }

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

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }

    .mockup-sidebar {
        display: none;
    }

    .hero-mockup {
        padding: 0 16px 48px;
    }

    .trust-logos {
        gap: 20px;
    }
}
