/* ==========================================
   Zipe - Main Site Styles (Teal Redesign)
   ========================================== */

/* ==========================================
   DESIGN TOKENS
   ========================================== */
:root {
    /* Core palette - Warm neutral with electric accent */
    --ink: #1a1a1a;
    --ink-light: #2d2d2d;
    --ink-muted: #525252;
    --ink-subtle: #737373;
    --surface: #fafaf9;
    --surface-raised: #ffffff;
    --surface-sunken: #f5f5f4;
    --border: #e7e5e4;
    --border-strong: #d6d3d1;

    /* Accent - Electric teal */
    --accent: #0d9488;
    --accent-hover: #0f766e;
    --accent-light: #ccfbf1;
    --accent-glow: rgba(13, 148, 136, 0.15);

    /* Semantic */
    --positive: #16a34a;
    --positive-bg: #dcfce7;
    --warning: #ca8a04;
    --warning-bg: #fef9c3;
    --negative: #dc2626;
    --negative-bg: #fee2e2;
    --info: #2563eb;
    --info-bg: #dbeafe;

    /* AI Platform colors */
    --openai: #10a37f;
    --anthropic: #d4a27f;
    --perplexity: #20808d;
    --google: #4285f4;

    /* Typography */
    --font-sans: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

    /* Spacing scale */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Misc */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.08);
    --shadow-glow: 0 0 40px var(--accent-glow);

    --nav-height: 64px;
    --max-width: 1200px;
}

/* ==========================================
   RESET & BASE
   ========================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

main { flex-grow: 1; }

/* ==========================================
   LAYOUT
   ========================================== */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section {
    padding: var(--space-4xl) 0;
}

@media (max-width: 768px) {
    .section { padding: var(--space-3xl) 0; }
}

/* ==========================================
   NAVIGATION
   ========================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(250, 250, 249, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.logo-mark {
    width: 36px;
    height: 36px;
    background: var(--accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: 700;
}

.logo-mark svg {
    width: 20px;
    height: 20px;
    color: white;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--ink-muted);
    transition: color 0.15s;
}

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

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--ink);
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: var(--radius-md);
    transition: all 0.15s;
}

.nav-cta:hover {
    background: var(--ink-light);
    transform: translateY(-1px);
}

/* Mobile menu toggle */
.nav-toggle {
    display: none;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    color: var(--ink-muted);
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--surface-raised);
        border-bottom: 1px solid var(--border);
        padding: var(--space-md);
        gap: var(--space-md);
    }
    .nav-toggle { display: flex; }
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: var(--radius-md);
    transition: all 0.2s;
    text-decoration: none;
}

.btn svg {
    width: 18px;
    height: 18px;
}

.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.25);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(13, 148, 136, 0.3);
}

.btn-secondary {
    background: var(--surface-raised);
    color: var(--ink);
    border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
    background: var(--surface-sunken);
    border-color: var(--ink-subtle);
}

.btn-ghost {
    background: transparent;
    color: var(--ink-muted);
    padding: var(--space-sm) var(--space-md);
}

.btn-ghost:hover {
    background: var(--surface-sunken);
    color: var(--ink);
}

.btn-sm {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.8125rem;
}

.btn-sm svg {
    width: 16px;
    height: 16px;
}

/* ==========================================
   HERO
   ========================================== */
.hero {
    padding-top: calc(var(--nav-height) + var(--space-4xl));
    padding-bottom: var(--space-4xl);
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

@media (max-width: 968px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.hero-content {
    max-width: 540px;
}

@media (max-width: 968px) {
    .hero-content {
        max-width: 600px;
        margin: 0 auto;
    }
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xs) var(--space-md);
    border: 1px solid var(--accent);
    color: var(--accent);
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-lg);
}

.hero-eyebrow::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.9); }
}

.hero-title {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--ink);
    margin-bottom: var(--space-lg);
}

.hero-title em {
    font-style: normal;
    color: var(--accent);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--ink-muted);
    margin-bottom: var(--space-xl);
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

@media (max-width: 968px) {
    .hero-actions { justify-content: center; }
}

/* Hero Demo */
.hero-demo {
    position: relative;
}

@media (max-width: 968px) {
    .hero-demo {
        max-width: 500px;
        margin: var(--space-2xl) auto 0;
    }
}

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

.demo-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: var(--surface-sunken);
    border-bottom: 1px solid var(--border);
}

.demo-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-strong);
}

.demo-title {
    margin-left: var(--space-sm);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--ink-subtle);
}

.demo-content {
    padding: var(--space-lg);
}

.demo-query {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border);
}

.demo-query-icon {
    width: 32px;
    height: 32px;
    background: var(--info-bg);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.demo-query-text {
    font-size: 0.9375rem;
    color: var(--ink);
}

.demo-query-label {
    font-size: 0.75rem;
    color: var(--ink-subtle);
    margin-bottom: var(--space-xs);
}

.demo-response {
    display: flex;
    gap: var(--space-md);
}

.demo-ai-icon {
    width: 32px;
    height: 32px;
    background: var(--openai);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
    font-weight: 700;
    font-size: 12px;
}

.demo-response-content {
    flex: 1;
}

.demo-response-label {
    font-size: 0.75rem;
    color: var(--ink-subtle);
    margin-bottom: var(--space-xs);
}

.demo-response-text {
    font-size: 0.9375rem;
    color: var(--ink-muted);
    line-height: 1.7;
}

.demo-highlight {
    background: var(--positive-bg);
    color: var(--positive);
    padding: 1px 4px;
    border-radius: 3px;
    font-weight: 600;
}

.demo-competitor {
    background: var(--warning-bg);
    color: var(--warning);
    padding: 1px 4px;
    border-radius: 3px;
}

.demo-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    margin-top: var(--space-md);
    padding: var(--space-xs) var(--space-sm);
    background: var(--accent-light);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
}

/* ==========================================
   URGENCY SECTION
   ========================================== */
.urgency {
    background: var(--ink);
    color: white;
    position: relative;
    overflow: hidden;
}

.urgency::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 30% 0%, rgba(13, 148, 136, 0.15) 0%, transparent 50%);
}

.urgency-inner {
    position: relative;
    z-index: 1;
}

.urgency-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-3xl);
}

.urgency-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-md);
}

.urgency-subtitle {
    font-size: 1.0625rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

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

.stat-card {
    text-align: center;
    padding: var(--space-xl);
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: var(--space-xs);
    font-family: var(--font-mono);
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
}

/* ==========================================
   SECTION STYLES
   ========================================== */
.scanner {
    background: var(--surface-sunken);
}

.scanner-header,
.section-header-center {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-3xl);
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: var(--space-md);
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: var(--space-md);
}

.section-subtitle {
    font-size: 1.0625rem;
    color: var(--ink-muted);
    line-height: 1.7;
}

/* ==========================================
   SCANNER CARD
   ========================================== */
.scanner-card {
    max-width: 640px;
    margin: 0 auto;
    background: var(--surface-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.scanner-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
}

.scanner-tab {
    flex: 1;
    padding: var(--space-md) var(--space-lg);
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--ink-muted);
    text-align: center;
    background: var(--surface-sunken);
    border: none;
    cursor: pointer;
    transition: all 0.15s;
}

.scanner-tab.active {
    background: var(--surface-raised);
    color: var(--ink);
    box-shadow: inset 0 -2px 0 var(--accent);
}

.scanner-body {
    padding: var(--space-xl);
}

.scanner-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    padding: var(--space-md);
    background: var(--surface-sunken);
    border-top: 1px solid var(--border);
    font-size: 0.8125rem;
    color: var(--ink-subtle);
}

.scanner-footer-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.scanner-footer-item svg {
    width: 14px;
    height: 14px;
    color: var(--positive);
}

/* ==========================================
   FORMS
   ========================================== */
.form-stack {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

@media (max-width: 540px) {
    .form-row { grid-template-columns: 1fr; }
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ink);
}

.form-label-hint {
    font-weight: 400;
    color: var(--ink-subtle);
}

.form-hint {
    display: block;
    font-size: 0.75rem;
    color: var(--ink-subtle);
    margin-top: var(--space-xs);
}

.form-input,
.form-select,
.form-textarea {
    padding: var(--space-md);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    color: var(--ink);
    transition: all 0.15s;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--ink-subtle);
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
    border-color: var(--border-strong);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-error {
    color: var(--negative);
    font-size: 0.8125rem;
    margin-top: var(--space-xs);
}

.form-help {
    color: var(--ink-subtle);
    font-size: 0.8125rem;
    margin-top: var(--space-xs);
}

/* Platform select */
.platform-select {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-sm);
}

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

.platform-option {
    position: relative;
}

.platform-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.platform-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-md);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.15s;
}

.platform-label:hover {
    border-color: var(--border-strong);
}

.platform-option input:checked + .platform-label {
    border-color: var(--accent);
    background: var(--accent-light);
}

.platform-icon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
}

.platform-name {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--ink-muted);
}

.scanner-submit {
    width: 100%;
    padding: var(--space-md) var(--space-xl);
    background: var(--accent);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
}

.scanner-submit:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(13, 148, 136, 0.3);
}

.scanner-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.scanner-submit-text { display: inline; }
.scanner-loading { display: none; align-items: center; gap: var(--space-sm); }
.htmx-request .scanner-submit-text { display: none; }
.htmx-request .scanner-loading { display: inline-flex; }

.scanner-spinner {
    animation: spin 1s linear infinite;
}

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

/* ==========================================
   PLATFORM CARDS
   ========================================== */
.platforms-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-3xl);
}

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

.platform-card {
    padding: var(--space-xl);
    background: var(--surface-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.2s;
}

.platform-card:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.platform-card-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--space-md);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
}

.platform-card-icon.openai { background: var(--openai); }
.platform-card-icon.anthropic { background: var(--anthropic); }
.platform-card-icon.perplexity { background: var(--perplexity); }
.platform-card-icon.google { background: var(--google); }

.platform-card-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: var(--space-xs);
}

.platform-card-desc {
    font-size: 0.8125rem;
    color: var(--ink-subtle);
}

/* ==========================================
   PROCESS STEPS
   ========================================== */
.process {
    background: var(--surface-sunken);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

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

.process-step {
    position: relative;
    padding: var(--space-xl);
    background: var(--surface-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.process-number {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    font-family: var(--font-mono);
    font-size: 3rem;
    font-weight: 700;
    color: var(--surface-sunken);
    line-height: 1;
}

.process-icon {
    width: 44px;
    height: 44px;
    background: var(--accent-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: var(--space-lg);
}

.process-icon svg {
    width: 22px;
    height: 22px;
}

.process-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: var(--space-sm);
}

.process-desc {
    font-size: 0.9375rem;
    color: var(--ink-muted);
    line-height: 1.7;
}

/* ==========================================
   FEATURES
   ========================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

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

.feature-card {
    display: flex;
    gap: var(--space-lg);
    padding: var(--space-xl);
    background: var(--surface-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.2s;
}

.feature-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
}

.feature-icon {
    width: 44px;
    height: 44px;
    background: var(--surface-sunken);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-muted);
    flex-shrink: 0;
}

.feature-icon svg {
    width: 22px;
    height: 22px;
}

.feature-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: var(--space-xs);
}

.feature-content p {
    font-size: 0.875rem;
    color: var(--ink-muted);
    line-height: 1.6;
    margin: 0;
}

/* ==========================================
   PRICING
   ========================================== */
.pricing {
    background: var(--surface-sunken);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 868px) {
    .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
}

.pricing-card {
    padding: var(--space-xl);
    background: var(--surface-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
}

.pricing-card.featured {
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
    position: relative;
}

.pricing-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: var(--space-xs) var(--space-md);
    background: var(--accent);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-xl);
}

.pricing-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: var(--space-xs);
}

.pricing-desc {
    font-size: 0.875rem;
    color: var(--ink-subtle);
    margin-bottom: var(--space-lg);
}

.pricing-price {
    display: flex;
    align-items: baseline;
    gap: var(--space-xs);
    margin-bottom: var(--space-lg);
}

.pricing-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--ink);
}

.pricing-period {
    font-size: 0.875rem;
    color: var(--ink-subtle);
}

.pricing-features {
    flex: 1;
    margin-bottom: var(--space-xl);
}

.pricing-feature {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    font-size: 0.875rem;
    color: var(--ink-muted);
}

.pricing-feature svg {
    width: 16px;
    height: 16px;
    color: var(--positive);
    flex-shrink: 0;
    margin-top: 2px;
}

.pricing-cta {
    width: 100%;
    padding: var(--space-md);
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: var(--radius-md);
    text-align: center;
    transition: all 0.15s;
    display: block;
}

.pricing-cta-primary {
    background: var(--accent);
    color: white;
}

.pricing-cta-primary:hover {
    background: var(--accent-hover);
}

.pricing-cta-secondary {
    background: var(--surface);
    color: var(--ink);
    border: 1px solid var(--border);
}

.pricing-cta-secondary:hover {
    background: var(--surface-sunken);
}

/* Pricing Toggle */
.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.pricing-toggle-label {
    font-size: 0.9375rem;
    color: var(--ink-subtle);
    transition: color 0.2s;
}

.pricing-toggle-label[data-period="monthly"].active,
.pricing-toggle-label[data-period="yearly"].active {
    color: var(--ink);
    font-weight: 600;
}

.pricing-toggle-switch {
    position: relative;
    width: 52px;
    height: 28px;
    background: var(--surface-sunken);
    border: 1px solid var(--border);
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.pricing-toggle-switch:hover {
    border-color: var(--accent);
}

.pricing-toggle-switch[aria-pressed="true"] {
    background: var(--accent);
    border-color: var(--accent);
}

.pricing-toggle-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.pricing-toggle-switch[aria-pressed="true"] .pricing-toggle-slider {
    transform: translateX(24px);
}

.pricing-toggle-badge {
    display: inline-block;
    padding: 2px 8px;
    background: var(--positive-subtle);
    color: var(--positive);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    margin-left: var(--space-xs);
}

/* ==========================================
   FAQ
   ========================================== */
.faq-list {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg) 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
    background: none;
    border: none;
}

.faq-question svg {
    width: 20px;
    height: 20px;
    color: var(--ink-subtle);
    transition: transform 0.2s;
}

.faq-item.open .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding-bottom: var(--space-lg);
    font-size: 0.9375rem;
    color: var(--ink-muted);
    line-height: 1.7;
}

.faq-item.open .faq-answer {
    display: block;
}

/* ==========================================
   CTA SECTION
   ========================================== */
.cta-section {
    background: linear-gradient(135deg, var(--ink) 0%, #2d2d2d 100%);
    color: white;
    text-align: center;
}

.cta-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-md);
}

.cta-subtitle {
    font-size: 1.0625rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: var(--space-xl);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn-primary {
    background: var(--accent);
    color: white;
}

.cta-btn-secondary {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
}

.cta-btn-secondary:hover {
    background: rgba(255,255,255,0.15);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: var(--ink);
    color: rgba(255,255,255,0.7);
    padding: var(--space-4xl) 0 var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: var(--space-3xl);
    margin-bottom: var(--space-3xl);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
    }
}

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

@media (max-width: 768px) {
    .footer-brand {
        grid-column: span 2;
        max-width: none;
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: var(--space-md);
}

.footer-tagline {
    font-size: 0.875rem;
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.footer-social {
    display: flex;
    gap: var(--space-sm);
}

.footer-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    color: white;
    transition: background 0.15s;
}

.footer-social a:hover {
    background: rgba(255,255,255,0.2);
}

.footer-social svg {
    width: 18px;
    height: 18px;
}

.footer-column h4 {
    font-size: 0.8125rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-lg);
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-column a {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
    transition: color 0.15s;
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8125rem;
}

@media (max-width: 540px) {
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
}

.footer-legal {
    display: flex;
    gap: var(--space-lg);
}

.footer-legal a:hover {
    color: white;
}

/* ==========================================
   CARDS
   ========================================== */
.card {
    background: var(--surface-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
}

.card-header {
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border);
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--ink);
}

.card-subtitle {
    font-size: 0.875rem;
    color: var(--ink-subtle);
    margin-top: var(--space-xs);
}

/* ==========================================
   ALERTS & BADGES
   ========================================== */
.alert {
    padding: var(--space-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    font-size: 0.9375rem;
}

.alert-success {
    background: var(--positive-bg);
    color: var(--positive);
    border: 1px solid var(--positive);
}

.alert-warning {
    background: var(--warning-bg);
    color: var(--warning);
    border: 1px solid var(--warning);
}

.alert-error {
    background: var(--negative-bg);
    color: var(--negative);
    border: 1px solid var(--negative);
}

.alert-info {
    background: var(--info-bg);
    color: var(--info);
    border: 1px solid var(--info);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-radius: var(--radius-sm);
}

.badge-primary {
    background: var(--accent-light);
    color: var(--accent);
}

.badge-success {
    background: var(--positive-bg);
    color: var(--positive);
}

.badge-warning {
    background: var(--warning-bg);
    color: var(--warning);
}

.badge-error {
    background: var(--negative-bg);
    color: var(--negative);
}

/* ==========================================
   STATUS INDICATORS
   ========================================== */
.status {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.8125rem;
    font-weight: 500;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-healthy .status-dot { background: var(--positive); }
.status-warning .status-dot { background: var(--warning); }
.status-critical .status-dot { background: var(--negative); }

.status-healthy { color: var(--positive); }
.status-warning { color: var(--warning); }
.status-critical { color: var(--negative); }

/* ==========================================
   UTILITIES
   ========================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-muted { color: var(--ink-muted); }
.text-subtle { color: var(--ink-subtle); }
.text-accent { color: var(--accent); }

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.hidden { display: none; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ==========================================
   LOADING & SPINNER
   ========================================== */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* ==========================================
   PAGE WRAPPER FOR AUTH/SIMPLE PAGES
   ========================================== */
.page-simple {
    padding-top: calc(var(--nav-height) + var(--space-3xl));
    padding-bottom: var(--space-3xl);
}

.page-simple .container {
    max-width: 480px;
}

.page-simple .card {
    margin: 0 auto;
}

/* ==========================================
   CONTENT PAGES (Privacy, Terms, etc.)
   ========================================== */
.content-page {
    padding-top: calc(var(--nav-height) + var(--space-3xl));
    padding-bottom: var(--space-4xl);
}

.content-page .container {
    max-width: 800px;
}

.content-page h1 {
    font-size: 2rem;
    margin-bottom: var(--space-xl);
    color: var(--ink);
}

.content-page h2 {
    font-size: 1.5rem;
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-md);
    color: var(--ink);
}

.content-page h3 {
    font-size: 1.25rem;
    margin-top: var(--space-xl);
    margin-bottom: var(--space-sm);
    color: var(--ink);
}

.content-page p {
    margin-bottom: var(--space-md);
    color: var(--ink-muted);
    line-height: 1.7;
}

.content-page ul,
.content-page ol {
    margin-bottom: var(--space-md);
    padding-left: var(--space-xl);
    color: var(--ink-muted);
}

.content-page li {
    margin-bottom: var(--space-sm);
    line-height: 1.6;
}

.content-page ul { list-style-type: disc; }
.content-page ol { list-style-type: decimal; }

.content-page a {
    color: var(--accent);
    text-decoration: underline;
}

.content-page a:hover {
    color: var(--accent-hover);
}

.content-page strong {
    color: var(--ink);
    font-weight: 600;
}

.content-page .section {
    margin-bottom: var(--space-2xl);
}

.content-page .last-updated {
    font-size: 0.875rem;
    color: var(--ink-subtle);
    margin-bottom: var(--space-xl);
}

/* Info boxes for content pages */
.content-page .info-box {
    background: var(--surface-sunken);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    margin: var(--space-md) 0;
}

.content-page .info-box p {
    margin-bottom: var(--space-sm);
}

.content-page .info-box p:last-child {
    margin-bottom: 0;
}

/* Alert/callout boxes */
.content-page .callout {
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    border-left: 4px solid;
    margin: var(--space-lg) 0;
}

.content-page .callout-warning {
    background: var(--warning-bg);
    border-color: var(--warning);
}

.content-page .callout-warning .callout-title {
    color: #92400e;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.content-page .callout-warning p {
    color: #78350f;
}

.content-page .callout-info {
    background: var(--info-bg);
    border-color: var(--info);
}

.content-page .callout-info .callout-title {
    color: #1e40af;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.content-page .callout-info p {
    color: #1e3a8a;
}

/* Tables for content pages */
.content-page table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-md) 0;
    font-size: 0.875rem;
}

.content-page table th,
.content-page table td {
    text-align: left;
    padding: var(--space-sm) var(--space-md);
    border-bottom: 1px solid var(--border);
}

.content-page table th {
    font-weight: 600;
    color: var(--ink);
    background: var(--surface-sunken);
}

.content-page table td {
    color: var(--ink-muted);
}

.content-page .table-wrapper {
    background: var(--surface-sunken);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    overflow-x: auto;
}

/* Footer links for content pages */
.content-page .page-footer {
    margin-top: var(--space-3xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border);
}

.content-page .page-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.content-page .page-footer-links a {
    font-weight: 500;
    text-decoration: none;
}

.content-page .page-footer-links a:hover {
    text-decoration: underline;
}

/* Cookie/Privacy settings toggles */
.preference-card {
    background: var(--surface-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
}

.preference-card.disabled {
    background: var(--surface-sunken);
}

.preference-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-lg);
}

.preference-info {
    flex: 1;
}

.preference-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: var(--space-xs);
}

.preference-desc {
    font-size: 0.875rem;
    color: var(--ink-muted);
    margin-bottom: var(--space-xs);
}

.preference-examples {
    font-size: 0.75rem;
    color: var(--ink-subtle);
}

.preference-badge {
    padding: var(--space-xs) var(--space-md);
    background: var(--surface-sunken);
    color: var(--ink-subtle);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
}

/* Toggle switch */
.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.toggle-switch input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--border-strong);
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: var(--shadow-sm);
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--accent);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(20px);
}

.toggle-switch input:focus + .toggle-slider {
    box-shadow: 0 0 0 3px var(--accent-glow);
}

/* Data rights grid */
.rights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin: var(--space-lg) 0;
}

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

.rights-card {
    background: var(--surface-sunken);
    padding: var(--space-md);
    border-radius: var(--radius-md);
}

.rights-card h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 var(--space-xs) 0;
}

.rights-card p {
    font-size: 0.8125rem;
    color: var(--ink-muted);
    margin: 0 0 var(--space-sm) 0;
}

.rights-card a {
    font-size: 0.8125rem;
    font-weight: 500;
}

/* Action cards for privacy settings */
.action-card {
    background: var(--surface-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-bottom: var(--space-md);
}

.action-card h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 var(--space-xs) 0;
}

.action-card p {
    font-size: 0.8125rem;
    color: var(--ink-muted);
    margin: 0 0 var(--space-sm) 0;
}

.action-card button {
    color: var(--accent);
    font-size: 0.875rem;
    font-weight: 500;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.action-card button:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* Success message */
.success-message {
    display: none;
    padding: var(--space-md);
    background: var(--positive-bg);
    border: 1px solid #86efac;
    border-radius: var(--radius-md);
    margin-top: var(--space-md);
}

.success-message.show {
    display: block;
}

.success-message p {
    color: #166534;
    font-weight: 500;
    margin: 0;
}

/* ==========================================
   TIER BADGES
   ========================================== */
.tier-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 2px 8px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-radius: var(--radius-sm);
}

.tier-free {
    background: var(--surface-sunken);
    color: var(--ink-muted);
}

.tier-pro {
    background: var(--info-bg);
    color: var(--info);
}

.tier-premium {
    background: #f3e8ff;
    color: #7c3aed;
}

.tier-enterprise {
    background: #fef3c7;
    color: #d97706;
}

/* Cookie consent banner */
.cookie-banner {
    position: fixed;
    bottom: var(--space-md);
    left: var(--space-md);
    right: var(--space-md);
    max-width: 400px;
    background: var(--surface-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--space-lg);
    z-index: 9999;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cookie-banner-title {
    font-weight: 600;
    color: var(--ink);
    margin-bottom: var(--space-sm);
}

.cookie-banner-text {
    font-size: 0.875rem;
    color: var(--ink-muted);
    margin-bottom: var(--space-md);
    line-height: 1.6;
}

.cookie-banner-actions {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

/* ==========================================
   SCAN PROGRESS & RESULT CARDS
   ========================================== */

/* Progress Card (during scan) */
.scan-progress-card {
    background: var(--surface-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
}

.scan-progress-content {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.scan-progress-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    flex-shrink: 0;
}

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

.scan-progress-info {
    flex: 1;
}

.scan-progress-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: var(--space-xs);
}

.scan-progress-desc {
    font-size: 0.875rem;
    color: var(--ink-muted);
}

.scan-progress-warning {
    margin-top: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    background: var(--warning-bg);
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    color: var(--warning);
}

/* Result Card (after scan completes) */
.scan-result-card {
    background: var(--surface-raised);
    border: 1px solid var(--border);
    /*border-radius: var(--radius-lg);*/
    padding: var(--space-xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.scan-result-card.good {
    border-color: var(--positive);
    background: linear-gradient(135deg, var(--positive-bg) 0%, var(--surface-raised) 100%);
}

.scan-result-card.moderate {
    border-color: var(--warning);
    background: linear-gradient(135deg, var(--warning-bg) 0%, var(--surface-raised) 100%);
}

.scan-result-card.poor {
    border-color: var(--negative);
    background: linear-gradient(135deg, var(--negative-bg) 0%, var(--surface-raised) 100%);
}

.scan-result-card.error {
    border-color: var(--negative);
    background: var(--negative-bg);
}

.scan-result-content {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.scan-result-score {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.scan-result-number {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.scan-result-number.good { color: var(--positive); }
.scan-result-number.moderate { color: var(--warning); }
.scan-result-number.poor { color: var(--negative); }

.scan-result-max {
    font-size: 1rem;
    color: var(--ink-subtle);
}

.scan-result-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.scan-result-icon.error {
    background: var(--negative);
    color: white;
}

.scan-result-icon svg {
    width: 24px;
    height: 24px;
}

.scan-result-info {
    flex: 1;
    min-width: 0;
}

.scan-result-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: var(--space-xs);
}

.scan-result-brand {
    font-size: 0.875rem;
    color: var(--ink-muted);
}

.scan-result-error {
    font-size: 0.875rem;
    color: var(--negative);
    line-height: 1.5;
}

@media (max-width: 480px) {
    .scan-result-card {
        flex-direction: column;
        text-align: center;
    }

    .scan-result-content {
        flex-direction: column;
    }

    .scan-result-card .btn {
        width: 100%;
        justify-content: center;
    }
}
