/* ============================================================
   TOS Guardian — Website Styles
   ============================================================ */

:root {
    --bg-primary:    #161616;
    --bg-secondary:  #1a1a1a;
    --bg-tertiary:   #222222;
    --bg-card:       rgba(26, 26, 26, 0.9);
    --bg-glass:      rgba(255, 255, 255, 0.04);

    --border:        rgba(255, 255, 255, 0.08);
    --border-hover:  rgba(255, 255, 255, 0.15);

    --text-primary:   #f5f5f5;
    --text-secondary: #a0a0a0;
    --text-tertiary:  #666666;

    --indigo:  #6366f1;
    --cyan:    #06b6d4;
    --green:   #22c55e;
    --yellow:  #fbbf24;
    --orange:  #f97316;
    --red:     #ef4444;

    --gradient-primary: linear-gradient(135deg, #6366f1, #06b6d4);
    --gradient-safe:    linear-gradient(135deg, #22c55e, #06b6d4);
    --gradient-hero:    linear-gradient(160deg, #161616 0%, #1a1a1a 60%, #222222 100%);

    --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 30px rgba(99,102,241,0.12);

    --radius: 12px;
    --radius-lg: 16px;
    --radius-pill: 999px;

    --transition: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 72px;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ─── NAV ────────────────────────────────────────── */
#mainNav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: 64px;
    background: rgba(22, 22, 22, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

#mainNav.scrolled {
    background: rgba(22, 22, 22, 0.95);
    border-bottom-color: var(--border);
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
}

.nav-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    flex-shrink: 0;
}

.nav-brand svg {
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    margin-right: 16px;
}

.nav-link {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    transition: color var(--transition), background var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.12);
}

.nav-download-wrapper {
    position: relative;
}

.nav-download-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 6px;
    min-width: 180px;
    box-shadow: var(--shadow-md);
    z-index: 1000;
}

.nav-download-wrapper.open .nav-download-dropdown {
    display: block;
}

.nav-download-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    border-radius: 8px;
    transition: all var(--transition);
}

.nav-download-item:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.nav-btn {
    font-size: 13px;
    font-weight: 600;
    padding: 7px 18px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.nav-btn-ghost {
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid transparent;
}

.nav-btn-ghost:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-btn-primary {
    color: #fff;
    background: var(--gradient-primary);
    border: none;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.3);
}

.nav-btn-primary:hover {
    box-shadow: 0 4px 18px rgba(99, 102, 241, 0.5);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    margin-left: auto;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s 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);
}

/* Mobile nav */
@media (max-width: 768px) {
    .nav-links,
    .nav-actions {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    #mainNav.mobile-open .nav-links,
    #mainNav.mobile-open .nav-actions {
        display: flex;
    }

    #mainNav.mobile-open .nav-inner {
        flex-wrap: wrap;
        padding-bottom: 16px;
    }

    #mainNav.mobile-open .nav-links {
        flex-direction: column;
        width: 100%;
        order: 3;
        margin: 12px 0 0 0;
        gap: 2px;
    }

    #mainNav.mobile-open .nav-link {
        padding: 10px 14px;
        width: 100%;
        text-align: left;
        border-radius: var(--radius);
    }

    #mainNav.mobile-open .nav-actions {
        width: 100%;
        order: 4;
        margin-top: 8px;
    }

    #mainNav.mobile-open .nav-btn {
        flex: 1;
        text-align: center;
        padding: 10px 14px;
    }

    #mainNav.mobile-open {
        background: rgba(22, 22, 22, 0.97);
        border-bottom-color: var(--border);
        height: auto;
    }
}

/* ─── SCROLLBAR ──────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 3px; }

/* ─── TYPOGRAPHY ─────────────────────────────────── */
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.3px; line-height: 1.2; }

.section-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--indigo);
    background: rgba(99,102,241,0.12);
    border: 1px solid rgba(99,102,241,0.25);
    padding: 4px 14px;
    border-radius: var(--radius-pill);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    margin-bottom: 14px;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
}

/* ─── LAYOUT ─────────────────────────────────────── */
.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 100px 0;
}

.text-center { text-align: center; }

/* ─── HERO ────────────────────────────────────────── */
#hero {
    padding-top: 140px;
    padding-bottom: 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: -120px; left: 50%;
    transform: translateX(-50%);
    width: 700px; height: 700px;
    background: radial-gradient(ellipse at center, rgba(99,102,241,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--green);
    background: rgba(52,211,153,0.1);
    border: 1px solid rgba(52,211,153,0.25);
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    margin-bottom: 28px;
}

.hero-badge-dot {
    width: 6px; height: 6px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.3); }
}

.hero-title {
    font-size: clamp(40px, 6vw, 76px);
    font-weight: 900;
    letter-spacing: -1.5px;
    line-height: 1.05;
    margin-bottom: 24px;
}

.hero-title .gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 19px;
    color: var(--text-secondary);
    max-width: 580px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.btn-hero {
    padding: 14px 32px;
    border-radius: var(--radius-pill);
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background: var(--gradient-primary);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 4px 24px rgba(99,102,241,0.4);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(99,102,241,0.55);
}

.btn-hero-outline {
    padding: 14px 32px;
    border-radius: var(--radius-pill);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    background: transparent;
    border: 1px solid var(--border-hover);
    cursor: pointer;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.btn-hero-outline:hover {
    background: var(--bg-glass);
    border-color: rgba(99,102,241,0.4);
}

/* ─── HERO DOWNLOAD BUTTONS ─────────────────────── */
.hero-download-wrapper {
    position: relative;
}

.hero-mac-toggle {
    position: relative;
}

.hero-dropdown-chevron {
    margin-left: 2px;
    transition: transform 0.2s ease;
}

.hero-download-wrapper.open .hero-dropdown-chevron {
    transform: rotate(180deg);
}

.hero-mac-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-hover);
    border-radius: var(--radius);
    padding: 4px;
    box-shadow: var(--shadow-md);
    z-index: 10;
}

.hero-download-wrapper.open .hero-mac-dropdown {
    display: block;
}

.hero-mac-option {
    display: block;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: 8px;
    transition: all var(--transition);
    text-decoration: none;
}

.hero-mac-option:hover {
    background: rgba(99, 102, 241, 0.12);
    color: var(--text-primary);
}

/* ─── HOW IT WORKS (Zigzag) ──────────────────────── */
.install-note {
    margin-top: 24px;
    text-align: left;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}
.install-note details {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 16px;
}
.install-note summary {
    cursor: pointer;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    font-weight: 500;
}
.install-note summary:hover {
    color: rgba(255,255,255,0.7);
}
.install-note p, .install-note ol {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    margin-top: 10px;
    line-height: 1.6;
}
.install-note ol {
    padding-left: 20px;
}
.install-cmd {
    display: block;
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 10px 14px;
    font-family: monospace;
    font-size: 12px;
    color: #34d399;
    margin: 10px 0;
    user-select: all;
    word-break: break-all;
}

#how-it-works {
    position: relative;
}

#demo {
    padding-top: 0;
    padding-bottom: 0;
}

.steps-zigzag {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.step-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 48px;
}

.step-row.reverse .step-row-text {
    order: 2;
}

.step-row.reverse .step-row-image {
    order: 1;
}

.step-row-text {
    text-align: left;
}

.step-number {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--indigo);
    margin-bottom: 16px;
    opacity: 0.7;
}

.step-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.step-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.step-row-image {
    aspect-ratio: 16 / 9;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    font-size: 14px;
    font-weight: 500;
}

/* ─── STEP MOCKUPS ───────────────────────────────── */
.step-mockup {
    padding: 24px;
    overflow: hidden;
}

/* Step 1: Upload */
.mock-upload {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.mock-upload-zone {
    border: 2px dashed rgba(99,102,241,0.3);
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.mock-upload-label {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
}
.mock-upload-hint {
    font-size: 11px;
    color: rgba(255,255,255,0.3);
    margin-top: 4px;
}
.mock-or {
    font-size: 11px;
    color: rgba(255,255,255,0.25);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.mock-textarea {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.mock-textarea-line {
    height: 6px;
    background: rgba(255,255,255,0.06);
    border-radius: 3px;
}

/* Step 2: Scan */
.mock-scan {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.mock-scan-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
}
.mock-scan-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}
.mock-scan-bar {
    flex: 1;
    height: 6px;
    background: rgba(255,255,255,0.06);
    border-radius: 3px;
    overflow: hidden;
}
.mock-scan-fill {
    height: 100%;
    width: 72%;
    background: linear-gradient(90deg, #6366f1, #06b6d4);
    border-radius: 3px;
    animation: scanPulse 2s ease-in-out infinite;
}
@keyframes scanPulse {
    0%, 100% { width: 60%; }
    50% { width: 85%; }
}
.mock-scan-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.mock-cat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 6px 10px;
    border-radius: 6px;
}
.mock-cat-muted {
    opacity: 0.4;
}
.mock-cat-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Step 3: Review */
.mock-review {
    width: 100%;
}
.mock-flag {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.mock-flag-header {
    display: flex;
    align-items: center;
    gap: 8px;
}
.mock-flag-severity {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 4px;
}
.mock-flag-severity.high {
    background: rgba(239,68,68,0.15);
    color: #ef4444;
}
.mock-flag-cat {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
}
.mock-flag-clause {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    font-style: italic;
    line-height: 1.5;
    padding: 8px 10px;
    background: rgba(239,68,68,0.05);
    border-left: 3px solid rgba(239,68,68,0.3);
    border-radius: 0 6px 6px 0;
}
.mock-flag-explanation {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    line-height: 1.6;
}
.mock-flag-revision {
    font-size: 12px;
    color: rgba(52,211,153,0.8);
    line-height: 1.5;
    padding: 8px 10px;
    background: rgba(52,211,153,0.05);
    border-left: 3px solid rgba(52,211,153,0.3);
    border-radius: 0 6px 6px 0;
}
.mock-flag-revision-label {
    font-size: 10px;
    font-weight: 700;
    color: #34d399;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

/* Step 4: PDF Report */
.mock-pdf {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.mock-pdf-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    padding: 10px 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px 8px 0 0;
}
.mock-pdf-body {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.08);
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.mock-pdf-title {
    font-size: 14px;
    font-weight: 700;
    color: rgba(255,255,255,0.7);
    text-align: center;
}
.mock-pdf-score {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
}
.mock-pdf-score-ring {
    position: relative;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}
.mock-pdf-score-num {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    color: #f97316;
}
.mock-pdf-score-info {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    line-height: 1.6;
}
.mock-pdf-lines {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.mock-pdf-line {
    height: 5px;
    background: rgba(255,255,255,0.05);
    border-radius: 3px;
}

@media (max-width: 768px) {
    .step-mockup { padding: 16px; }
    .mock-upload-zone { padding: 16px 12px; }
    .mock-upload-zone svg { width: 28px; height: 28px; }
    .mock-flag { padding: 12px; }
    .mock-flag-clause, .mock-flag-explanation, .mock-flag-revision { font-size: 11px; }
}

@media (max-width: 768px) {
    .steps-zigzag {
        gap: 48px;
    }

    .step-row {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .step-row .step-row-image {
        order: -1;
    }

    .step-row.reverse .step-row-text {
        order: 2;
    }

    .step-row.reverse .step-row-image {
        order: 1;
    }
}

/* ─── DEMO VIDEO ─────────────────────────────────── */
.demo-video-wrapper {
    margin-top: 56px;
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    background: var(--bg-card);
}

.demo-video-wrapper video {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.product-demo-iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
    display: block;
}

.demo-video-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--text-tertiary);
}

.demo-video-fallback p {
    font-size: 14px;
    font-weight: 500;
}

.demo-video-wrapper video:not([src=""]) + .demo-video-fallback {
    display: none;
}

/* ─── COMPARISON ─────────────────────────────────── */
#comparison {
    position: relative;
}

/* ─── COMPARISON TABLE (flexbox columns) ───────── */
.ct {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-end;
    gap: 16px;
    margin-top: 56px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Each column */
.ct-col {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: #141414;
    border: 1px solid #202020;
    border-radius: 16px;
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.08);
    overflow: hidden;
}

/* Features column (wide) */
.ct-features {
    flex: 1;
    min-width: 0;
}

/* Narrow data columns */
.ct-col.ct-old,
.ct-col.ct-tier,
.ct-col.ct-cg {
    width: 120px;
    flex-shrink: 0;
}

/* CG tier columns (Free, PAYG) — slightly muted */
.ct-col.ct-tier {
    border-color: rgba(99,102,241,0.15);
}

/* Contract Aegis Pro column (featured) */
.ct-col.ct-cg {
    background: linear-gradient(0deg, rgba(0,0,0,0.8), rgba(0,0,0,0.8)),
                linear-gradient(180deg, #6366f1 0%, #06b6d4 100%);
    border-color: rgba(99,102,241,0.3);
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.15),
                0 0 40px rgba(99,102,241,0.12);
}

/* Cells */
.ct-cell {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    height: 64px;
    padding: 0 20px;
    border-bottom: 1px solid #202020;
    transition: background 0.15s ease;
}

.ct-row-last {
    border-bottom: none;
}

.ct-features .ct-cell {
    justify-content: flex-start;
}

.ct-features .ct-row:hover {
    background: rgba(255,255,255,0.03);
}

.ct-col.ct-cg .ct-cell {
    border-bottom-color: rgba(255,255,255,0.08);
}

/* Header cells */
.ct-head {
    height: 64px;
    gap: 8px;
}

.ct-head-label {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    letter-spacing: -0.01em;
}

.ct-features .ct-head-label {
    font-size: 14px;
    color: rgba(255,255,255,0.4);
}

.ct-col.ct-cg .ct-head-label {
    color: #fff;
    font-weight: 700;
}

.ct-cg-logo {
    flex-shrink: 0;
}

/* Feature row content */
.ct-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-right: 14px;
    color: rgba(255,255,255,0.25);
}

.ct-features .ct-row span {
    font-size: 15px;
    font-weight: 500;
    color: rgba(255,255,255,0.5);
    line-height: 1.3;
    letter-spacing: -0.01em;
}

/* Value text */
.ct-val {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-align: center;
    line-height: 1.3;
}

.ct-val-bad {
    color: rgba(255,255,255,0.35);
}

.ct-val-muted {
    color: rgba(255,255,255,0.45);
}

.ct-val-good {
    color: #34d399;
}

/* Check / X icons */
.ct-check {
    color: #34d399;
    filter: drop-shadow(0 0 8px rgba(52,211,153,0.3));
}

.ct-check-muted {
    color: rgba(255,255,255,0.35);
    filter: none;
}

.ct-x {
    color: rgba(255,255,255,0.15);
}

/* Mobile */
@media (max-width: 900px) {
    .ct {
        gap: 8px;
    }

    .ct-col.ct-old,
    .ct-col.ct-tier,
    .ct-col.ct-cg {
        width: 90px;
    }

    .ct-cell {
        height: 52px;
        padding: 0 10px;
    }

    .ct-icon {
        width: 16px;
        height: 16px;
        margin-right: 10px;
    }

    .ct-features .ct-row span {
        font-size: 13px;
    }

    .ct-head-label {
        font-size: 11px;
    }

    .ct-val {
        font-size: 10px;
    }
}

@media (max-width: 700px) {
    .ct {
        gap: 5px;
    }

    .ct-col {
        border-radius: 10px;
    }

    .ct-col.ct-old,
    .ct-col.ct-tier,
    .ct-col.ct-cg {
        width: 62px;
    }

    .ct-cell {
        height: 46px;
        padding: 0 6px;
    }

    .ct-icon {
        display: none;
    }

    .ct-features .ct-row span {
        font-size: 11px;
    }

    .ct-head-label {
        font-size: 9px;
    }

    .ct-val {
        font-size: 8px;
    }

    .ct-check {
        width: 20px;
        height: 20px;
    }

    .ct-x {
        width: 16px;
        height: 16px;
    }

    .ct-cg-logo {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 480px) {
    .ct-col.ct-old,
    .ct-col.ct-tier,
    .ct-col.ct-cg {
        width: 52px;
    }

    .ct-cell {
        height: 40px;
        padding: 0 4px;
    }

    .ct-features .ct-row span {
        font-size: 10px;
    }

    .ct-head-label {
        font-size: 8px;
    }

    .ct-val {
        font-size: 7px;
    }
}

/* ─── PRICING ────────────────────────────────────── */
#pricing {
    position: relative;
}

/* ─── BILLING TOGGLE ─────────────────────────────── */
.billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}
.billing-option {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s;
}
.billing-option[data-billing="monthly"] { color: var(--text-primary); }
.billing-toggle.annual .billing-option[data-billing="monthly"] { color: var(--text-secondary); }
.billing-toggle.annual .billing-option[data-billing="annual"] { color: var(--text-primary); }
.billing-save {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    color: var(--green);
    background: rgba(52,211,153,0.1);
    border: 1px solid rgba(52,211,153,0.25);
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    margin-left: 4px;
}
.billing-switch {
    position: relative;
    width: 44px;
    height: 24px;
    cursor: pointer;
}
.billing-switch input { display: none; }
.billing-slider {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-pill);
    transition: background 0.2s;
}
.billing-slider::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.2s;
}
.billing-switch input:checked + .billing-slider {
    background: rgba(99,102,241,0.5);
    border-color: rgba(99,102,241,0.6);
}
.billing-switch input:checked + .billing-slider::before {
    transform: translateX(20px);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 56px;
    align-items: start;
}

.plan-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    position: relative;
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.plan-card:hover {
    border-color: rgba(99,102,241,0.3);
    transform: translateY(-4px);
}

.plan-card.featured {
    border-color: rgba(99,102,241,0.5);
    background: linear-gradient(160deg, rgba(99,102,241,0.07) 0%, rgba(6,182,212,0.04) 100%);
    box-shadow: 0 0 0 1px rgba(99,102,241,0.2), var(--shadow-glow);
    transform: scale(1.02);
}

.plan-card.featured:hover {
    transform: scale(1.02) translateY(-4px);
}

.plan-badge {
    display: block;
    width: fit-content;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    margin: 0 auto 20px;
}

.plan-badge.free     { background: rgba(90,106,138,0.2); color: var(--text-secondary); border: 1px solid var(--border); }
.plan-badge.pro      { background: rgba(99,102,241,0.2); color: var(--indigo); border: 1px solid rgba(99,102,241,0.3); }
.plan-badge.popular  { background: rgba(99,102,241,0.25); color: #a5b4fc; border: 1px solid rgba(99,102,241,0.4); }
.plan-badge.enterprise { background: rgba(52,211,153,0.15); color: var(--green); border: 1px solid rgba(52,211,153,0.3); }

.plan-name {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 8px;
    text-align: center;
}

.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: 6px;
}

.price-amount {
    font-size: 42px;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-period {
    font-size: 14px;
    color: var(--text-tertiary);
}

.plan-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
    min-height: 48px;
    text-align: center;
}

.plan-features {
    display: flex;
    flex-direction: column;
    gap: 11px;
    margin-bottom: 32px;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
    white-space: nowrap;
}

.plan-features li.included { color: var(--text-primary); }

.plan-features li svg {
    flex-shrink: 0;
}

.plan-features li.included svg { color: var(--green); }
.plan-features li.excluded svg { color: var(--text-tertiary); }
.plan-features li.excluded { color: var(--text-tertiary); }

.plan-cta {
    width: 100%;
    padding: 13px 20px;
    border-radius: var(--radius-pill);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
    display: block;
    text-decoration: none;
    box-sizing: border-box;
}

.plan-cta.free-btn {
    background: var(--bg-glass);
    border: 1px solid var(--border-hover);
    color: var(--text-secondary);
}
.plan-cta.free-btn:hover {
    background: rgba(255,255,255,0.06);
    color: var(--text-primary);
}

.plan-cta.upgrade-btn {
    background: var(--gradient-primary);
    border: none;
    color: #fff;
    box-shadow: 0 3px 14px rgba(99,102,241,0.4);
}
.plan-cta.upgrade-btn:hover {
    box-shadow: 0 6px 24px rgba(99,102,241,0.6);
    transform: translateY(-1px);
}

.pricing-footnote {
    margin-top: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-tertiary);
}

/* ─── DOWNLOAD ───────────────────────────────────── */
#download {
    position: relative;
}

.download-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 56px;
}

.download-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    transition: border-color var(--transition), transform var(--transition);
}

.download-card:hover {
    border-color: rgba(99,102,241,0.3);
    transform: translateY(-3px);
}

.download-card-icon {
    width: 56px; height: 56px;
    background: rgba(99,102,241,0.1);
    border: 1px solid rgba(99,102,241,0.2);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--indigo);
    align-self: center;
}

.download-card h3 {
    font-size: 20px;
    font-weight: 700;
}

.download-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.download-card .platform-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.platform-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-glass);
    border: 1px solid var(--border);
    padding: 4px 10px;
    border-radius: var(--radius-pill);
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
    margin-top: auto;
    text-decoration: none;
}

.download-btn.primary {
    background: var(--gradient-primary);
    border: none;
    color: #fff;
    box-shadow: 0 3px 14px rgba(99,102,241,0.35);
}
.download-btn.primary:hover {
    box-shadow: 0 6px 24px rgba(99,102,241,0.5);
    transform: translateY(-1px);
}

.download-btn.outline {
    background: transparent;
    border: 1px solid var(--border-hover);
    color: var(--text-secondary);
}
.download-btn.outline:hover {
    border-color: rgba(99,102,241,0.4);
    color: var(--text-primary);
}

.mac-download-buttons {
    display: flex;
    gap: 10px;
    margin-top: auto;
}
.mac-download-buttons .download-btn {
    flex: 1;
    font-size: 13px;
    padding: 10px 16px;
}

@media (max-width: 640px) {
    .download-grid { grid-template-columns: 1fr; }
}

/* ─── FAQ ────────────────────────────────────────── */

.faq-list {
    max-width: 720px;
    margin: 56px auto 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color var(--transition);
}

.faq-item:hover { border-color: rgba(99,102,241,0.3); }

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    gap: 16px;
    user-select: none;
}

.faq-question svg {
    flex-shrink: 0;
    color: var(--text-secondary);
    transition: transform var(--transition);
}

.faq-item.open .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1);
}

.faq-item.open .faq-answer {
    max-height: 600px;
}

.faq-answer-inner {
    padding: 0 24px 20px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    border-top: 1px solid var(--border);
    padding-top: 16px;
}

/* ─── FOOTER ─────────────────────────────────────── */
footer {
    border-top: 1px solid var(--border);
    padding: 48px 0 32px;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
}

.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    font-size: 13px;
    color: var(--text-tertiary);
    transition: color var(--transition);
}
.footer-links a:hover { color: var(--text-primary); }

.footer-copy {
    font-size: 12px;
    color: var(--text-tertiary);
    text-align: center;
}

/* ─── LEGAL PAGES (Terms, Privacy) ────────────────── */
.legal-page {
    padding: 120px 0 80px;
    min-height: 100vh;
}

.legal-header {
    text-align: center;
    margin-bottom: 48px;
}

.legal-title {
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 800;
    margin-top: 16px;
    margin-bottom: 8px;
    background: var(--gradient-hero, linear-gradient(135deg, #f0f4ff, #c7d2fe, #a5b4fc));
    -webkit-background-clip: text;
    -webkit-text-fill-color: whitesmoke;
    background-clip: text;
}

.legal-effective {
    font-size: 14px;
    color: var(--text-tertiary);
    font-weight: 500;
}

.legal-content {
    max-width: 780px;
    margin: 0 auto;
}

.legal-section {
    margin-bottom: 36px;
    padding-bottom: 36px;
    border-bottom: 1px solid var(--border);
}

.legal-section:last-child {
    border-bottom: none;
}

.legal-section h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.legal-section h3 {
    font-size: 15px;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.legal-section p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.legal-section ul {
    margin: 12px 0 16px 20px;
    padding: 0;
}

.legal-section ul li {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.legal-section a {
    color: var(--indigo);
    font-weight: 500;
    transition: opacity var(--transition);
}

.legal-section a:hover {
    opacity: 0.8;
}

.legal-section strong {
    color: var(--text-primary);
    font-weight: 600;
}

.legal-callout {
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin: 20px 0;
}

.legal-callout p {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0;
}

@media (max-width: 600px) {
    .legal-page { padding: 100px 0 60px; }
    .legal-content { padding: 0 4px; }
}

/* ─── CTA BANNER ─────────────────────────────────── */
.cta-banner {
    margin: 0;
    padding: 80px 0;
    text-align: center;
}

.cta-banner h2 {
    font-size: clamp(24px, 4vw, 40px);
    font-weight: 800;
    margin-bottom: 14px;
}

.cta-banner p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* ─── SIGNUP PAGE ────────────────────────────────── */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 24px 60px;
    position: relative;
    overflow: hidden;
}

.auth-glow {
    position: absolute;
    top: -200px; left: 50%;
    transform: translateX(-50%);
    width: 600px; height: 600px;
    background: radial-gradient(ellipse, rgba(99,102,241,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 48px 44px;
    width: 100%;
    max-width: 460px;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1;
}

.auth-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 32px;
}

.auth-title {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 6px;
}

.auth-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group input {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 11px 14px;
    font-size: 14px;
    color: var(--text-primary);
    font-family: inherit;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
    width: 100%;
}

.form-group input:focus {
    border-color: rgba(99,102,241,0.5);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}

.form-group input::placeholder { color: var(--text-tertiary); }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.auth-submit {
    width: 100%;
    padding: 13px;
    border-radius: var(--radius-pill);
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: var(--gradient-primary);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 3px 14px rgba(99,102,241,0.4);
    margin-top: 4px;
}
.auth-submit:hover {
    box-shadow: 0 6px 24px rgba(99,102,241,0.55);
    transform: translateY(-1px);
}
.auth-submit:active { transform: translateY(0); }

.auth-google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    border: 1px solid var(--border-hover);
    border-radius: 10px;
    cursor: pointer;
    transition: all var(--transition);
    margin-bottom: 4px;
}

.auth-google-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-1px);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 4px 0;
}
.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}
.auth-divider span {
    font-size: 12px;
    color: var(--text-tertiary);
    white-space: nowrap;
}

.auth-footer-text {
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 20px;
}

.auth-footer-text a {
    color: var(--indigo);
    font-weight: 600;
    transition: opacity var(--transition);
}
.auth-footer-text a:hover { opacity: 0.8; }

.auth-terms {
    font-size: 12px;
    color: var(--text-tertiary);
    text-align: center;
    line-height: 1.5;
    margin-top: 16px;
}

.auth-terms a { color: var(--indigo); }

/* ─── ANIMATIONS ─────────────────────────────────── */
.fade-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 900px) {
    .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }
    .plan-card.featured { transform: none; }
    .plan-card.featured:hover { transform: translateY(-4px); }

}

@media (max-width: 600px) {
    section { padding: 70px 0; }
    .auth-card { padding: 32px 24px; }
    .form-row { grid-template-columns: 1fr; }
    .hero-stats { gap: 20px; }
    .hero-stat-divider { display: none; }
}
