/* ============================================================
   Time Capsule: Memory Vault — Website
   Design tokens mirrored from TVTheme.swift + ThemeManager.swift
   Cal AI-inspired layout, fully responsive, light/dark mode
   ============================================================ */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ---------- CSS Custom Properties (Dark = default) ---------- */
:root {
    /* Midnight theme tokens */
    --bg: #060608;
    --surface-1: #171a21;
    --surface-2: #242633;
    --accent: #66c7ff;
    --accent-rgb: 102, 199, 255;
    --accent-subtle: rgba(102, 199, 255, 0.12);
    --accent-warm: #ffbd61;
    --text-1: #ffffff;
    --text-2: #a1a8bd;
    --text-3: #6b7080;
    --divider: rgba(255, 255, 255, 0.06);
    --success: #4dd98c;
    --destructive: #ff5a5e;
    --card-shadow: 0 1px 3px rgba(0,0,0,0.3);
    --card-shadow-hover: 0 8px 32px rgba(0,0,0,0.35);
    --nav-bg: rgba(6, 6, 8, 0.82);

    /* Layout */
    --max-w: 1120px;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 100px;

    /* Font */
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
}

/* ---------- Light mode ---------- */
[data-theme="light"] {
    --bg: #f5f5f7;
    --surface-1: #ffffff;
    --surface-2: #f0f0f2;
    --text-1: #1d1d1f;
    --text-2: #6e6e73;
    --text-3: #aeaeb2;
    --divider: rgba(0, 0, 0, 0.08);
    --card-shadow: 0 1px 4px rgba(0,0,0,0.06);
    --card-shadow-hover: 0 8px 32px rgba(0,0,0,0.10);
    --nav-bg: rgba(245, 245, 247, 0.82);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text-1);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 0.3s, color 0.3s;
}

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

a {
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.2s;
}
a:hover { opacity: 0.85; }

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

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--divider);
    transition: background 0.3s;
}

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

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

.nav-logo img {
    width: 34px;
    height: 34px;
    border-radius: 9px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-2);
    transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--text-1); }

.nav-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: var(--text-1);
    color: var(--bg) !important;
    font-weight: 600;
    font-size: 14px;
    border-radius: var(--radius-full);
    transition: transform 0.2s, opacity 0.2s;
}
.nav-cta-link:hover { transform: scale(1.04); opacity: 1; }

/* Theme toggle in nav */
.theme-toggle {
    background: var(--surface-2);
    border: 1px solid var(--divider);
    border-radius: var(--radius-full);
    width: 38px; height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s;
    color: var(--text-2);
    flex-shrink: 0;
}
.theme-toggle:hover { background: var(--accent-subtle); }

/* Mobile toggle - hamburger to X morph */
.nav-mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-1);
    cursor: pointer;
    padding: 4px;
    width: 28px;
    height: 28px;
    position: relative;
}
.nav-mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-1);
    position: absolute;
    left: 3px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
    border-radius: 2px;
}
.nav-mobile-toggle span:nth-child(1) { top: 6px; }
.nav-mobile-toggle span:nth-child(2) { top: 13px; }
.nav-mobile-toggle span:nth-child(3) { top: 20px; }
.nav-mobile-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-mobile-toggle.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.nav-mobile-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Theme toggle in nav (top-left mobile) */
.nav-theme-toggle-mobile {
    display: none;
}

@media (max-width: 800px) {
    .nav-mobile-toggle { display: flex; align-items: center; justify-content: center; z-index: 1002; }
    .nav-theme-toggle-mobile { display: flex; z-index: 1002; }
    .nav-links li:has(.theme-toggle) { display: none; }
    .nav-links {
        display: none;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background: #000;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 100px 32px 48px;
        gap: 0;
        z-index: 1001;
        overflow-y: auto;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s;
    }
    .nav-links.open {
        display: flex;
        opacity: 1;
        visibility: visible;
    }
    .nav-links li {
        opacity: 0;
        transform: translateY(12px);
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
    .nav-links.open li {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .nav-links.open li:nth-child(1) { transition-delay: 0.12s; }
    .nav-links.open li:nth-child(2) { transition-delay: 0.18s; }
    .nav-links.open li:nth-child(3) { transition-delay: 0.24s; }
    .nav-links.open li:nth-child(4) { transition-delay: 0.3s; }
    .nav-links.open li:nth-child(5) { transition-delay: 0.36s; }
    .nav-links.open li:nth-child(6) { transition-delay: 0.42s; }
    .nav-links.open li:nth-child(7) { transition-delay: 0.48s; }
    .nav-links.open li:nth-child(8) { transition-delay: 0.54s; }
    .nav-links a {
        display: block;
        padding: 16px 0;
        font-size: 19px;
        font-weight: 600;
        color: var(--text-1);
        letter-spacing: -0.01em;
    }
    .nav-links .nav-cta-link {
        margin-top: 32px;
        text-align: center;
        padding: 16px 28px;
        font-size: 17px;
        font-weight: 600;
        border-radius: var(--radius-md);
        width: 100%;
        justify-content: center;
    }
    /* On mobile: hide See Features button, show only Download */
    .hero-actions .hero-btn-features {
        display: none !important;
    }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    padding: 140px 24px 80px;
    text-align: center;
    max-width: var(--max-w);
    margin: 0 auto;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: var(--accent-subtle);
    border: 1px solid rgba(var(--accent-rgb), 0.15);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(36px, 7vw, 64px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.hero h1 .accent-text {
    color: var(--accent);
}

.hero-sub {
    font-size: 18px;
    color: var(--text-2);
    max-width: 500px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

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

/* Social proof row */
.hero-proof {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-2);
    font-weight: 500;
}
.hero-proof .stars {
    color: #ffb800;
    font-size: 15px;
    letter-spacing: 1px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font);
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    border-radius: var(--radius-md);
    padding: 14px 28px;
    text-decoration: none;
}
.btn:hover { transform: translateY(-1px); opacity: 1; }

.btn-primary {
    background: var(--text-1);
    color: var(--bg);
}
.btn-primary:hover { box-shadow: 0 4px 20px rgba(var(--accent-rgb), 0.2); color: var(--bg); }

.btn-secondary {
    background: var(--surface-1);
    color: var(--text-1);
    border: 1px solid var(--divider);
}
.btn-secondary:hover { background: var(--surface-2); }

.btn-accent {
    background: var(--accent);
    color: #000;
}
.btn-accent:hover { box-shadow: 0 4px 20px rgba(var(--accent-rgb), 0.35); color: #000; }

.btn-sm {
    padding: 10px 20px;
    font-size: 14px;
    border-radius: var(--radius-sm);
}

/* App Store badge */
.app-store-badge {
    height: 52px;
    width: auto;
    transition: transform 0.2s;
}
.app-store-badge:hover { transform: scale(1.04); }

/* ============================================================
   MEMORY TICKER (infinite scroll, above Features)
   ============================================================ */
.memory-ticker-wrap {
    overflow: hidden;
    padding: 24px 0;
    border-top: 1px solid var(--divider);
    border-bottom: 1px solid var(--divider);
    background: var(--surface-0);
}
.memory-ticker {
    overflow: hidden;
    width: 100%;
}
.memory-ticker-track {
    display: flex;
    gap: 2.5rem;
    width: max-content;
    animation: memory-ticker-scroll 50s linear infinite;
}
.memory-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-2);
    white-space: nowrap;
}
.memory-ticker-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent);
}
.memory-ticker-icon svg {
    display: block;
}
@keyframes memory-ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================================
   PHONE MOCKUP (Interactive Demo)
   ============================================================ */
.phone-section {
    padding: 0 24px 100px;
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.phone-section-label {
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-2);
    margin-bottom: 16px;
}

.phone-wrapper {
    position: relative;
}

.phone-device {
    width: 300px;
    height: 620px;
    background: var(--surface-1);
    border-radius: 44px;
    border: 3px solid var(--surface-2);
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    overflow: hidden;
    position: relative;
}

[data-theme="light"] .phone-device {
    /* Always dark inside phone to match app */
    background: #171a21;
    border-color: #242633;
}

.phone-notch {
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 128px; height: 30px;
    background: #000;
    border-radius: 0 0 18px 18px;
    z-index: 10;
}

.phone-status-bar {
    height: 54px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #a1a8bd;
}

.phone-screen {
    height: calc(100% - 54px);
    overflow: hidden;
    position: relative;
}

/* Individual demo screens */
.demo-screen {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 20px;
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}
.demo-screen.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}
.demo-screen.exit {
    opacity: 0;
    transform: translateX(-40px);
}

/* Shared demo screen styles */
.demo-icon {
    font-size: 48px;
    margin-bottom: 12px;
    margin-top: 20px;
}

.demo-title {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    text-align: center;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.demo-subtitle {
    font-size: 13px;
    color: #a1a8bd;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.5;
    padding: 0 8px;
}

.demo-btn {
    margin-top: auto;
    margin-bottom: 24px;
    padding: 12px 0;
    width: calc(100% - 16px);
    background: #66c7ff;
    color: #000;
    border: none;
    border-radius: 14px;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s, opacity 0.15s;
    text-align: center;
    -webkit-appearance: none;
    appearance: none;
}
.demo-btn:hover { transform: scale(0.97); }
.demo-btn:active { transform: scale(0.95); opacity: 0.9; }

/* Screen-specific elements */
.demo-vault-ring {
    width: 120px; height: 120px;
    border: 4px solid #66c7ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 16px 0;
}

.demo-vault-ring .inner {
    width: 80px; height: 80px;
    background: rgba(102, 199, 255, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.demo-chip-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 12px;
}

.demo-chip {
    padding: 6px 14px;
    background: #242633;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 100px;
    font-size: 12px;
    color: #a1a8bd;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.demo-chip.selected {
    background: rgba(102, 199, 255, 0.15);
    color: #66c7ff;
    border-color: rgba(102, 199, 255, 0.3);
}

.demo-media-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    width: 100%;
    margin-bottom: 12px;
}

.demo-media-item {
    aspect-ratio: 1;
    background: #242633;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    transition: transform 0.15s, background 0.15s;
    border: 1px solid rgba(255,255,255,0.04);
}
.demo-media-item:hover { transform: scale(0.96); background: #2d3045; }
.demo-media-item.active {
    border-color: #66c7ff;
    background: rgba(102, 199, 255, 0.1);
}

.demo-progress-bar {
    width: 100%;
    height: 8px;
    background: #242633;
    border-radius: 4px;
    overflow: hidden;
    margin: 12px 0;
}
.demo-progress-fill {
    height: 100%;
    background: #66c7ff;
    border-radius: 4px;
    width: 0%;
    transition: width 0.4s ease;
}

.demo-checklist {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 4px;
}

.demo-check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #a1a8bd;
    transition: color 0.2s;
}
.demo-check-item.done { color: #fff; }

.demo-check-dot {
    width: 20px; height: 20px;
    border-radius: 50%;
    background: #242633;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    flex-shrink: 0;
    transition: background 0.2s;
}
.demo-check-item.done .demo-check-dot {
    background: #4dd98c;
    color: #000;
}

.demo-counter {
    font-size: 52px;
    font-weight: 800;
    color: #fff;
    font-variant-numeric: tabular-nums;
    margin: 8px 0;
    letter-spacing: -0.02em;
}

/* Vault list rows */
.demo-vault-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin-bottom: 12px;
}

.demo-vault-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #242633;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.demo-vault-row:hover {
    background: #2d3045;
    border-color: rgba(255,255,255,0.1);
}

/* Phone dots navigation */
.phone-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 20px;
}

.phone-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--text-3);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    border: none;
    padding: 0;
    -webkit-appearance: none;
    appearance: none;
}
.phone-dot.active {
    background: var(--accent);
    transform: scale(1.3);
}

/* ============================================================
   SECTION SHARED
   ============================================================ */
.section {
    padding: 100px 24px;
    max-width: var(--max-w);
    margin: 0 auto;
}

.section-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(26px, 4.5vw, 38px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
}

.section-sub {
    font-size: 16px;
    color: var(--text-2);
    max-width: 520px;
    line-height: 1.7;
    margin-bottom: 48px;
}

.section-centered {
    text-align: center;
}
.section-centered .section-sub {
    margin-left: auto;
    margin-right: auto;
}

/* ============================================================
   FEATURE CARDS (Cal AI-inspired carousel + grid)
   ============================================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.feature-card {
    background: var(--surface-1);
    border: 1px solid var(--divider);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.feature-card:hover {
    transform: translateY(-3px);
    border-color: rgba(var(--accent-rgb), 0.18);
    box-shadow: var(--card-shadow-hover);
}

.feature-icon {
    width: 44px; height: 44px;
    background: var(--accent-subtle);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 18px;
}

.feature-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
}

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

@media (max-width: 800px) {
    .features-grid { grid-template-columns: 1fr; }
}
@media (min-width: 801px) and (max-width: 1000px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   HOW IT WORKS — Steps
   ============================================================ */
.steps-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.step-item { text-align: center; }

.step-num {
    width: 48px; height: 48px;
    background: var(--accent);
    color: #000;
    font-size: 20px;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.step-item h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
}

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

@media (max-width: 700px) {
    .steps-row { grid-template-columns: 1fr; gap: 24px; }
}

/* Use case list (no boxes) */
.use-case-list {
    list-style: none;
    max-width: 640px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.use-case-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--divider);
    font-size: 15px;
    color: var(--text-2);
    line-height: 1.6;
}
.use-case-list li:last-child { border-bottom: none; }
.use-case-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--accent-subtle);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}
.use-case-list strong { color: var(--text-1); }

/* ============================================================
   THEMES SHOWCASE
   ============================================================ */
.themes-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.theme-card {
    background: var(--surface-1);
    border: 1px solid var(--divider);
    border-radius: var(--radius-lg);
    padding: 20px 12px;
    text-align: center;
    transition: transform 0.2s, border-color 0.2s;
    cursor: default;
}
.theme-card:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--accent-rgb), 0.15);
}

.theme-dot {
    width: 32px; height: 32px;
    border-radius: 50%;
    margin: 0 auto 10px;
}

.theme-card span {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-2);
}

@media (max-width: 700px) {
    .themes-row { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 400px) {
    .themes-row { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   STATS ROW
   ============================================================ */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 60px 0;
}

.stat-item { text-align: center; }

.stat-value {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 14px;
    color: var(--text-2);
    margin-top: 4px;
    font-weight: 500;
}

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

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

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

.faq-question {
    width: 100%;
    background: none;
    border: none;
    color: var(--text-1);
    font-family: var(--font);
    font-size: 16px;
    font-weight: 600;
    text-align: left;
    padding: 20px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    transition: color 0.2s;
}
.faq-question:hover { color: var(--accent); }

.faq-arrow {
    font-size: 14px;
    transition: transform 0.25s;
    flex-shrink: 0;
    color: var(--text-3);
}
.faq-item.open .faq-arrow { transform: rotate(180deg); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.open .faq-answer {
    max-height: 300px;
    padding-bottom: 20px;
}

.faq-answer p {
    font-size: 15px;
    color: var(--text-2);
    line-height: 1.7;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-box {
    background: var(--surface-1);
    border: 1px solid var(--divider);
    border-radius: var(--radius-xl);
    padding: 64px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-box h2 {
    font-size: clamp(24px, 4vw, 34px);
    font-weight: 800;
    margin-bottom: 12px;
    position: relative;
}

.cta-box p {
    font-size: 16px;
    color: var(--text-2);
    margin-bottom: 28px;
    position: relative;
}

@media (max-width: 600px) {
    .cta-box { padding: 40px 20px; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    border-top: 1px solid var(--divider);
    padding: 40px 24px;
    transition: border-color 0.3s;
}

.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo {
    width: 24px; height: 24px;
    border-radius: 6px;
}

.footer-copy {
    font-size: 13px;
    color: var(--text-3);
}

.footer-links {
    display: flex;
    gap: 20px;
    list-style: none;
}

.footer-links a {
    font-size: 13px;
    color: var(--text-2);
    font-weight: 500;
}
.footer-links a:hover { color: var(--text-1); }

/* ============================================================
   LEGAL PAGES (Privacy, Terms)
   ============================================================ */
.legal-page {
    max-width: 700px;
    margin: 0 auto;
    padding: 120px 24px 80px;
}

.legal-page h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
}

.legal-page .date {
    font-size: 14px;
    color: var(--text-3);
    margin-bottom: 40px;
}

.legal-page h2 {
    font-size: 20px;
    font-weight: 700;
    margin-top: 36px;
    margin-bottom: 12px;
}

.legal-page p,
.legal-page li {
    font-size: 15px;
    color: var(--text-2);
    line-height: 1.7;
    margin-bottom: 12px;
}

.legal-page ul {
    padding-left: 24px;
    margin-bottom: 16px;
}

.legal-page strong { color: var(--text-1); }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-section-block {
    padding-top: 80px;
    padding-bottom: 80px;
}
.about-why-section { padding-bottom: 80px; }
.about-why-content {
    max-width: 680px;
    margin-top: 24px;
}
.about-why-lead {
    font-size: 17px;
    color: var(--text-2);
    line-height: 1.75;
    margin-bottom: 28px;
}
.about-why-p {
    font-size: 16px;
    color: var(--text-2);
    line-height: 1.75;
    margin-bottom: 28px;
}
.about-why-end {
    font-size: 16px;
    color: var(--text-2);
    line-height: 1.75;
    margin-bottom: 0;
}
.about-why-grid {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 48px;
    align-items: start;
    margin-top: 24px;
}
.about-why-text { min-width: 0; }
.about-why-phones { position: relative; }
.about-phone-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    position: sticky;
    top: 100px;
}
.about-phone-frame {
    width: 120px;
    height: 200px;
    background: var(--surface-1);
    border: 2px solid var(--divider);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}
.about-phone-frame img {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    object-fit: contain;
}
.about-phone-offset { transform: translateX(24px); }
.about-phone-offset-2 { transform: translateX(-16px); }
@media (max-width: 900px) {
    .about-why-grid { grid-template-columns: 1fr; }
    .about-why-phones { order: -1; }
    .about-phone-stack {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        position: static;
        gap: 20px;
        margin-bottom: 32px;
    }
    .about-phone-offset { transform: translateY(12px); }
    .about-phone-offset-2 { transform: translateY(-8px); }
}

.founder-section-wrap { text-align: center; }
.founder-section-centered { margin: 0 auto; }

/* Article-style cards (More from Austin) */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 680px;
    margin: 0 auto;
}
.article-card {
    position: relative;
    padding: 28px 28px 28px 36px;
    border-bottom: 1px solid var(--divider);
    text-align: left;
}
.article-card:last-child { border-bottom: none; }
.article-card-accent {
    position: absolute;
    left: 0;
    top: 28px;
    bottom: 28px;
    width: 4px;
    background: var(--accent);
    border-radius: 0 4px 4px 0;
}
.article-card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-1);
}
.article-card-excerpt {
    font-size: 15px;
    color: var(--text-2);
    line-height: 1.7;
    margin-bottom: 12px;
}
.article-card-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.article-card-link:hover { opacity: 1; text-decoration: underline; }

/* Values list (strip style) */
.values-list {
    list-style: none;
    max-width: 560px;
    margin: 32px auto 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.values-list li {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid var(--divider);
    font-size: 15px;
    color: var(--text-2);
    line-height: 1.65;
}
.values-list li:last-child { border-bottom: none; }
.values-list-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: var(--accent-subtle);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}
.values-list strong { color: var(--text-1); }

.about-hero {
    padding: 140px 24px 60px;
    text-align: center;
    max-width: var(--max-w);
    margin: 0 auto;
}

.about-hero h1 {
    font-size: clamp(32px, 6vw, 48px);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.about-hero p {
    font-size: 18px;
    color: var(--text-2);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.value-card {
    background: var(--surface-1);
    border: 1px solid var(--divider);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: transform 0.2s;
}
.value-card:hover { transform: translateY(-2px); }

.value-card .value-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-subtle);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.value-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
}

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

/* ============================================================
   RESPONSIVE — SMALL SCREENS
   ============================================================ */
@media (max-width: 600px) {
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
    .footer-left { justify-content: center; }
    .footer-links { justify-content: center; flex-wrap: wrap; gap: 12px 16px; }
    .hero { padding: 120px 20px 60px; }
    .hero-sub { font-size: 16px; }
    .section { padding: 60px 20px; }
    .about-hero { padding: 120px 20px 40px; }
    .legal-page { padding: 100px 20px 60px; }
    .phone-device { width: 260px; height: 540px; border-radius: 36px; }
    .phone-notch { width: 110px; height: 26px; }
    .demo-title { font-size: 19px; }
    .demo-subtitle { font-size: 12px; }
    .demo-btn { font-size: 14px; padding: 10px 0; margin-bottom: 16px; }
    .demo-chip { font-size: 11px; padding: 5px 10px; }
    .demo-counter { font-size: 40px; }
}

@media (max-width: 360px) {
    .hero h1 { font-size: 28px; }
    .btn { padding: 12px 20px; font-size: 14px; }
    .phone-device { width: 240px; height: 500px; }
    .stats-row { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   BLOG ARTICLES
   ============================================================ */
.blog-article {
    max-width: 680px;
    margin: 0 auto;
    padding: 120px 24px 80px;
}

.blog-header {
    margin-bottom: 40px;
}

.blog-article h1 {
    font-size: clamp(28px, 5vw, 40px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.blog-meta {
    font-size: 14px;
    color: var(--text-3);
    font-weight: 500;
}

.blog-article h2 {
    font-size: 22px;
    font-weight: 700;
    margin-top: 48px;
    margin-bottom: 16px;
}

.blog-article p {
    font-size: 16px;
    color: var(--text-2);
    line-height: 1.75;
    margin-bottom: 16px;
}

.blog-article strong {
    color: var(--text-1);
}

.blog-article ul {
    padding-left: 24px;
    margin-bottom: 20px;
}

.blog-article li {
    font-size: 16px;
    color: var(--text-2);
    line-height: 1.75;
    margin-bottom: 8px;
}

.blog-article code {
    background: var(--surface-2);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 14px;
    color: var(--accent);
}

.blog-phone-section {
    margin: 40px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.blog-phone {
    width: 260px;
    height: 520px;
    background: #171a21;
    border-color: #242633;
}

.blog-phone-caption {
    font-size: 13px;
    color: var(--text-3);
    text-align: center;
    margin-top: 16px;
    font-style: italic;
    max-width: 300px;
}

.blog-cta {
    background: var(--surface-1);
    border: 1px solid var(--divider);
    border-radius: var(--radius-xl);
    padding: 48px 32px;
    text-align: center;
    margin-top: 48px;
}

.blog-cta h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-1);
}

.blog-cta p {
    font-size: 15px;
    color: var(--text-2);
    margin-bottom: 24px;
}

@media (max-width: 600px) {
    .blog-article { padding: 100px 20px 60px; }
    .blog-phone { width: 230px; height: 460px; }
    .blog-cta { padding: 32px 20px; }
}

/* ============================================================
   FOUNDER SECTION
   ============================================================ */
.founder-section {
    max-width: 700px;
}

.founder-content {
    background: var(--surface-1);
    border: 1px solid var(--divider);
    border-radius: var(--radius-xl);
    padding: 40px 36px;
}

.founder-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.founder-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--surface-2);
    border: 1px solid var(--divider);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-1);
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.founder-link:hover {
    background: var(--accent-subtle);
    border-color: rgba(var(--accent-rgb), 0.2);
    transform: translateY(-1px);
    color: var(--text-1);
    opacity: 1;
}

.founder-link svg {
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .founder-content { padding: 28px 20px; }
    .founder-links { flex-direction: column; }
    .founder-link { justify-content: center; }
}

/* ============================================================
   SUPPORT BOX
   ============================================================ */
.support-box {
    background: var(--surface-1);
    border: 1px solid var(--divider);
    border-radius: var(--radius-xl);
    padding: 48px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.support-icon {
    width: 56px;
    height: 56px;
    background: var(--accent-subtle);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

@media (max-width: 600px) {
    .support-box { padding: 32px 20px; }
}

/* ============================================================
   REVIEWS / TESTIMONIALS
   ============================================================ */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.review-card {
    background: var(--surface-1);
    border: 1px solid var(--divider);
    border-radius: var(--radius-lg);
    padding: 28px;
    text-align: left;
    transition: transform 0.2s, border-color 0.2s;
}
.review-card:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--accent-rgb), 0.15);
}

.review-stars {
    color: #ffb800;
    font-size: 14px;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.review-text {
    font-size: 15px;
    color: var(--text-2);
    line-height: 1.7;
    margin-bottom: 16px;
    font-style: italic;
}

.review-author {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-1);
}

.review-role {
    font-size: 12px;
    color: var(--text-3);
    margin-top: 2px;
}

@media (max-width: 800px) {
    .reviews-grid { grid-template-columns: 1fr; }
}
@media (min-width: 801px) and (max-width: 1000px) {
    .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   SCREEN READER ONLY
   ============================================================ */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* ============================================================
   PAGE FLASH PREVENTION
   ============================================================ */
html:not([data-theme]) body {
    visibility: hidden;
}

/* ============================================================
   BLOG ARTICLE CARDS (homepage "Read more")
   ============================================================ */
.blog-card {
    background: var(--surface-1);
    border: 1px solid var(--divider);
    border-radius: var(--radius-lg);
    padding: 28px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
    position: relative;
    overflow: hidden;
}
.blog-card:hover {
    transform: translateY(-3px);
    border-color: rgba(var(--accent-rgb), 0.18);
    box-shadow: var(--card-shadow-hover);
    opacity: 1;
}
.blog-card-read-time {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-3);
}
.blog-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
    text-decoration: underline;
    text-decoration-color: rgba(var(--accent-rgb), 0.3);
    text-underline-offset: 3px;
}
.blog-card p {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}
.blog-card-cta {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ============================================================
   STATS ANIMATION
   ============================================================ */
.stat-value {
    font-variant-numeric: tabular-nums;
}
.stat-value.animated {
    transition: none;
}

/* ============================================================
   TIMELINE (More from Austin Frankel)
   ============================================================ */
.timeline {
    position: relative;
    max-width: 680px;
    margin: 0 auto;
    padding-left: 40px;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), rgba(var(--accent-rgb), 0.15));
    border-radius: 2px;
}
.timeline-item {
    position: relative;
    padding: 0 0 40px 24px;
    text-align: left;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
    position: absolute;
    left: -34px;
    top: 4px;
    width: 14px;
    height: 14px;
    background: var(--accent);
    border-radius: 50%;
    border: 3px solid var(--bg);
    z-index: 1;
}
.timeline-item-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: 4px;
}
.timeline-item-role {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}
.timeline-item-desc {
    font-size: 15px;
    color: var(--text-2);
    line-height: 1.7;
    margin-bottom: 12px;
}
.timeline-item-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.timeline-item-link:hover { opacity: 1; text-decoration: underline; }

/* ============================================================
   VALUES HORIZONTAL BOXES
   ============================================================ */
.values-grid-horizontal {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 960px;
    margin: 32px auto 0;
}
.value-box {
    background: var(--surface-1);
    border: 1px solid var(--divider);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: left;
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
    position: relative;
    overflow: hidden;
}
.value-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
    opacity: 0;
    transition: opacity 0.25s;
}
.value-box:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--accent-rgb), 0.18);
    box-shadow: var(--card-shadow-hover);
}
.value-box:hover::before { opacity: 1; }
.value-box-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-subtle);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.value-box h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-1);
}
.value-box p {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.6;
}
@media (max-width: 700px) {
    .values-grid-horizontal { grid-template-columns: 1fr; }
}

/* ============================================================
   PRESS PAGE
   ============================================================ */
.press-form {
    max-width: 600px;
    margin: 0 auto;
}
.form-group {
    margin-bottom: 20px;
    text-align: left;
}
.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-1);
    margin-bottom: 6px;
}
.form-group label .required {
    color: var(--accent);
    margin-left: 2px;
}
.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--surface-1);
    border: 1px solid var(--divider);
    border-radius: var(--radius-md);
    font-family: var(--font);
    font-size: 15px;
    color: var(--text-1);
    transition: border-color 0.2s;
}
.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-3);
}
.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent);
}
.form-textarea {
    min-height: 140px;
    resize: vertical;
    line-height: 1.6;
}

/* ============================================================
   BLOG LISTING PAGE
   ============================================================ */
.blog-listing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}
.blog-listing-card {
    background: var(--surface-1);
    border: 1px solid var(--divider);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
    position: relative;
}
.blog-listing-card:hover {
    transform: translateY(-3px);
    border-color: rgba(var(--accent-rgb), 0.18);
    box-shadow: var(--card-shadow-hover);
    opacity: 1;
}
.blog-listing-card-time {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-3);
}
.blog-listing-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-1);
    line-height: 1.3;
}
.blog-listing-card-date {
    font-size: 13px;
    color: var(--text-3);
    margin-bottom: 12px;
    font-weight: 500;
}
.blog-listing-card p {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}
.blog-listing-card-cta {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Blog listing: single column, no boxes, one per line, more space */
.blog-listing-list {
    max-width: 720px;
    margin: 56px auto 0;
    padding: 48px 0 80px;
}
.blog-intro {
    font-size: 15px;
    color: var(--text-2);
    text-transform: lowercase;
    margin-bottom: 0;
}
.blog-listing-row {
    display: block;
    padding: 40px 0;
    text-decoration: none;
    color: inherit;
    border-bottom: none;
    transition: opacity 0.2s;
}
.blog-listing-row:first-child { padding-top: 0; }
.blog-listing-row:hover { opacity: 0.85; }
.blog-listing-row-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-1);
    line-height: 1.35;
    margin-bottom: 6px;
}
.blog-listing-row-date {
    font-size: 14px;
    color: var(--text-3);
    font-weight: 500;
}
.blog-listing-row-meta,
.blog-listing-row-excerpt,
.blog-listing-row-cta { display: none; }
@media (max-width: 700px) {
    .blog-listing-list { padding: 32px 0 64px; }
    .blog-listing-row { padding: 36px 0; }
    .blog-listing-row-title { font-size: 18px; }
}
@media (max-width: 700px) {
    .blog-listing-grid { grid-template-columns: 1fr; }
}

/* Demo is first in main (right below hero line) on both desktop and mobile; no reorder needed */
