/* ============================================================
   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');

/* Skip link (accessibility / WCAG navigation patterns) */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 99999;
    padding: 12px 20px;
    background: var(--surface-2);
    color: var(--text-1);
    border: 1px solid var(--divider);
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    box-shadow: var(--card-shadow);
}
.skip-link:focus {
    left: 16px;
    top: 16px;
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

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

/* ---------- 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;
}

.hero-cta-row {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

.hero-android-waitlist {
    max-width: 440px;
    margin: 0 auto;
    text-align: center;
}

.hero-android-lead {
    font-size: 16px;
    color: var(--text-2);
    line-height: 1.65;
    margin-bottom: 20px;
}

.waitlist-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: left;
    margin-bottom: 10px;
}

.waitlist-field {
    display: block;
}

.waitlist-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-2);
    margin-bottom: 6px;
}

.waitlist-optional {
    font-weight: 400;
    color: var(--text-3);
}

.waitlist-submit {
    width: 100%;
    justify-content: center;
    margin-top: 4px;
}

.waitlist-status {
    font-size: 14px;
    color: var(--accent);
    min-height: 1.4em;
    margin: 4px 0 8px;
}

/* 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%); }
}

/* ============================================================
   MEET THE FOUNDER (home, above CTA)
   ============================================================ */
.home-founder-strip {
    padding: 48px 24px 8px;
    text-align: center;
}
.home-founder-strip-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-1);
    text-decoration: none;
    padding: 12px 22px;
    border-radius: var(--radius-full);
    border: 1px solid var(--divider);
    background: var(--surface-1);
    box-shadow: var(--card-shadow);
    transition: border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.home-founder-strip-link:hover {
    border-color: rgba(var(--accent-rgb), 0.35);
    box-shadow: var(--card-shadow-hover);
    opacity: 1;
}
.home-founder-strip-link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* ============================================================
   CREATOR SPOTLIGHT / INFLUENCERS (home)
   ============================================================ */
.creator-spotlight {
    padding: 24px 24px 56px;
    display: flex;
    justify-content: center;
}
.creator-spotlight .container {
    display: flex;
    justify-content: center;
    max-width: var(--max-w);
    margin: 0 auto;
}
.creator-spotlight-stack {
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.creator-spotlight-title {
    margin: 0;
    font-size: clamp(22px, 4vw, 28px);
    font-weight: 700;
    letter-spacing: -0.03em;
    text-align: center;
    color: var(--text-1);
}
.creator-spotlight-title strong {
    font-weight: 800;
}
.creator-spotlight-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    max-width: 300px;
    width: 100%;
    padding: 28px 28px 30px;
    background: var(--surface-1);
    border: 1px solid var(--divider);
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    text-decoration: none;
    color: var(--text-1);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.creator-spotlight-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
    border-color: rgba(var(--accent-rgb), 0.28);
    opacity: 1;
}
.creator-spotlight-card:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}
.creator-spotlight-ring {
    width: 108px;
    height: 108px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(145deg, var(--accent), var(--accent-warm));
    flex-shrink: 0;
}
.creator-spotlight-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    border-radius: 50%;
    border: 3px solid var(--surface-1);
}
.creator-spotlight-handle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.creator-spotlight-handle strong {
    font-weight: 800;
}
.creator-spotlight-ig {
    flex-shrink: 0;
    opacity: 0.75;
    color: var(--text-2);
    transition: color 0.2s, opacity 0.2s;
}
.creator-spotlight-card:hover .creator-spotlight-ig {
    color: var(--accent);
    opacity: 1;
}

/* ============================================================
   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;
}

/* Flat Android-style bezel (no notch; centered camera pill) */
.phone-device-android {
    width: 300px;
    height: 620px;
    background: var(--surface-1);
    border-radius: 28px;
    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-android {
    background: #171a21;
    border-color: #242633;
}

.phone-android-pill {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 18px;
    background: #0c0d10;
    border-radius: 12px;
    z-index: 10;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.phone-device-android .phone-status-bar {
    padding-top: 18px;
    height: 56px;
}

.phone-device-android .phone-screen {
    height: calc(100% - 56px);
}

.android-page-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 28px auto 48px;
    padding: 0 20px;
}

.android-page-visual .android-waitlist-hero-svg {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
}

.android-play-soon {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Capsule fullscreen open experience (app-style ring + lock, light/dark) */
html.tc-capsule-open-html,
body.tc-capsule-open-body {
    height: 100%;
    margin: 0;
    overflow: hidden;
}

body.tc-capsule-open-body {
    --tc-capsule-fg: #ffffff;
    --tc-capsule-muted: #8e8e93;
    --tc-capsule-panel: rgba(28, 28, 30, 0.92);
    --tc-capsule-ring-blue: #5ac8fa;
    --tc-capsule-ring-dim: rgba(90, 200, 250, 0.22);
    --tc-capsule-bg: #000000;
    font-family: var(--font);
    background: var(--tc-capsule-bg);
    color: var(--tc-capsule-fg);
}

[data-theme="light"] body.tc-capsule-open-body {
    --tc-capsule-fg: #1d1d1f;
    --tc-capsule-muted: #6e6e73;
    --tc-capsule-panel: rgba(255, 255, 255, 0.94);
    --tc-capsule-ring-dim: rgba(0, 122, 255, 0.2);
    --tc-capsule-ring-blue: #007aff;
    --tc-capsule-bg: #e8eaed;
}

.tc-capsule-theme-toggle {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 100;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: var(--tc-capsule-panel);
    color: var(--tc-capsule-fg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

[data-theme="light"] .tc-capsule-theme-toggle {
    border-color: rgba(0, 0, 0, 0.1);
}

.tc-capsule-theme-toggle:focus-visible {
    outline: 2px solid var(--tc-capsule-ring-blue);
    outline-offset: 2px;
}

.tc-capsule-exit {
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 100;
    font-size: 14px;
    font-weight: 600;
    color: var(--tc-capsule-muted);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: var(--tc-capsule-panel);
}

[data-theme="light"] .tc-capsule-exit {
    border-color: rgba(0, 0, 0, 0.1);
}

.tc-capsule-exit:focus-visible {
    outline: 2px solid var(--tc-capsule-ring-blue);
}

.tc-capsule-stage {
    height: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(72px, 6vmin) max(20px, 4vmin) max(40px, 4vmin);
}

.tc-capsule-shell {
    width: min(100%, 400px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
}

.tc-capsule-lock {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.tc-capsule-ring-stack {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 10px;
}

.tc-capsule-ring-svg {
    display: block;
}

.tc-capsule-ring-track {
    stroke: var(--tc-capsule-ring-dim);
}

.tc-capsule-ring-progress {
    stroke: var(--tc-capsule-ring-blue);
    transition: stroke-dashoffset 0.12s linear;
}

.tc-capsule-ring-center {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tc-capsule-fg);
    pointer-events: none;
}

.tc-capsule-lock-svg {
    display: block;
    opacity: 0.95;
}

.tc-capsule-pct {
    font-size: 15px;
    font-weight: 600;
    color: var(--tc-capsule-fg);
    letter-spacing: 0.02em;
    margin-bottom: 22px;
}

.tc-capsule-dhms {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 6px;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    padding: 16px 18px 14px;
    border-radius: 18px;
    background: var(--tc-capsule-panel);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-sizing: border-box;
}

[data-theme="light"] .tc-capsule-dhms {
    border-color: rgba(0, 0, 0, 0.08);
}

.tc-capsule-dhms-cell {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.tc-capsule-dhms-val {
    font-size: clamp(20px, 5.5vw, 28px);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    color: var(--tc-capsule-fg);
}

.tc-capsule-dhms-lbl {
    font-size: 11px;
    font-weight: 600;
    color: var(--tc-capsule-muted);
    text-transform: none;
    letter-spacing: 0.02em;
}

.tc-capsule-dhms-sep {
    font-size: clamp(18px, 4.5vw, 24px);
    font-weight: 700;
    color: var(--tc-capsule-muted);
    line-height: 1;
    padding-bottom: 18px;
    opacity: 0.85;
}

.tc-capsule-ready {
    width: 100%;
    max-width: 400px;
    margin-top: 8px;
}

.tc-capsule-open-line {
    width: 100%;
    min-height: 56px;
    padding: 14px 20px;
    margin: 0;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: var(--tc-capsule-panel);
    color: var(--tc-capsule-fg);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
    font-size: clamp(17px, 4.2vw, 20px);
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    box-sizing: border-box;
    transition: border-color 0.2s, transform 0.15s;
}

[data-theme="light"] .tc-capsule-open-line {
    border-color: rgba(0, 0, 0, 0.12);
}

.tc-capsule-open-line:hover {
    border-color: var(--tc-capsule-ring-blue);
}

.tc-capsule-open-line:active {
    transform: scale(0.99);
}

.tc-capsule-open-line:focus-visible {
    outline: 2px solid var(--tc-capsule-ring-blue);
    outline-offset: 3px;
}

.tc-capsule-open-line-inner {
    display: block;
    min-height: 1.35em;
}

.tc-capsule-ready-pulse .tc-capsule-open-line.tc-capsule-open-line-ready {
    animation: tc-capsule-line-pulse 1.25s ease-in-out infinite alternate;
}

@keyframes tc-capsule-line-pulse {
    from {
        opacity: 0.72;
    }
    to {
        opacity: 1;
    }
}

.tc-capsule-reveal {
    width: 100%;
    max-width: 400px;
    margin-top: 24px;
    text-align: left;
    overflow-y: auto;
    max-height: min(56vh, 480px);
    display: none;
    flex-direction: column;
    gap: 16px;
}

.tc-capsule-reveal.tc-capsule-reveal-active {
    display: flex;
}

.tc-capsule-reveal-video,
.tc-capsule-reveal-img {
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.tc-capsule-reveal-img img {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: middle;
}

.tc-capsule-reveal-video video {
    display: block;
    width: 100%;
    max-height: 240px;
    background: #000;
}

.tc-capsule-reveal-audio audio {
    width: 100%;
}

.tc-capsule-app-cta {
    margin-top: 8px;
    padding-top: 8px;
}

.tc-capsule-app-store-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 18px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    font-family: var(--font);
    color: #fff;
    background: linear-gradient(180deg, #42a5ff 0%, #007aff 100%);
    border: none;
    text-decoration: none;
    box-sizing: border-box;
    transition: opacity 0.2s, transform 0.15s;
}

.tc-capsule-app-store-btn:hover {
    opacity: 0.92;
    color: #fff;
}

.tc-capsule-app-store-btn:active {
    transform: scale(0.99);
}

.tc-capsule-err {
    font-size: 15px;
    color: var(--tc-capsule-muted);
}

@media (prefers-reduced-motion: reduce) {
    .tc-capsule-ready-pulse .tc-capsule-open-line.tc-capsule-open-line-ready {
        animation: none;
    }
    .tc-capsule-ring-progress {
        transition: none;
    }
}

.phone-status-bar {
    height: 54px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 4px;
    padding-left: 24px;
    padding-right: 24px;
    font-size: 11px;
    font-weight: 600;
    color: #a1a8bd;
}
.phone-status-bar #tcDemoClock {
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.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);
}

/* ---------- Interactive demo (iOS-style, inside phone) ---------- */
.phone-screen {
    --tc-ios-blue: #0a84ff;
    --tc-ios-blue-2: #5ac8fa;
    --tc-demo-bg: #000000;
    --tc-demo-card: #1c1c1e;
    --tc-demo-fg: #ffffff;
    --tc-demo-muted: #8e8e93;
    --tc-demo-sep: rgba(255, 255, 255, 0.08);
    --tc-demo-green: #30d158;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, sans-serif;
    background: var(--tc-demo-bg);
}

[data-theme="light"] .phone-device .phone-screen {
    --tc-demo-bg: #000000;
    --tc-demo-card: #1c1c1e;
    --tc-demo-fg: #ffffff;
    --tc-demo-muted: #8e8e93;
    --tc-ios-blue: #0a84ff;
}

.demo-screen {
    padding: 0;
    align-items: stretch;
}

.tc-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.tc-demo-splash {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 50;
    border-radius: inherit;
    opacity: 0;
    background: radial-gradient(circle at 50% 60%, rgba(90, 200, 250, 0.55) 0%, transparent 55%);
    transition: opacity 0.35s ease;
}
.tc-demo-splash.tc-demo-splash--on {
    opacity: 1;
}

.tc-demo-chrome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 12px 4px;
    flex-shrink: 0;
}
.tc-demo-back {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: var(--tc-demo-fg);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    border-radius: 10px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tc-demo-back--spacer {
    visibility: hidden;
    pointer-events: none;
}
.tc-demo-dots {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: center;
    flex: 1;
}
.tc-demo-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #3a3a3c;
    transition: transform 0.2s, background 0.2s;
}
.tc-demo-dots span.tc-demo-dot--on {
    background: var(--tc-ios-blue-2);
    transform: scale(1.35);
}
.tc-demo-lang {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 100px;
    border: none;
    background: var(--tc-demo-card);
    color: var(--tc-demo-fg);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}
.tc-demo-lang--ghost {
    opacity: 0.35;
    pointer-events: none;
}
.tc-demo-flag {
    width: 14px;
    height: 10px;
    border-radius: 2px;
    background: linear-gradient(180deg, #b22234 0%, #b22234 50%, #fff 50%, #fff 100%);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.tc-demo-body {
    flex: 1;
    min-height: 0;
    padding: 8px 18px 12px;
    display: flex;
    flex-direction: column;
}
.tc-demo-body--center {
    align-items: center;
    text-align: center;
    padding-top: 28px;
}
.tc-demo-body--scroll {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.tc-demo-appicon {
    border-radius: 18px;
    margin-bottom: 12px;
}
.tc-demo-title-left {
    text-align: left;
    align-self: stretch;
    padding: 0 2px;
}
.tc-demo-subtle {
    font-size: 14px;
    color: var(--tc-demo-muted);
    margin: -8px 0 14px;
    text-align: left;
    align-self: stretch;
}
.tc-demo-input {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--tc-demo-sep);
    background: var(--tc-demo-card);
    color: var(--tc-demo-fg);
    font-size: 16px;
    font-family: inherit;
}
.tc-demo-textlink {
    background: none;
    border: none;
    color: var(--tc-ios-blue-2);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 0;
    font-family: inherit;
    align-self: flex-start;
}
.tc-demo-muted-label {
    font-size: 11px;
    color: var(--tc-demo-muted);
    text-transform: none;
    letter-spacing: 0.02em;
    margin: 12px 0 8px;
    align-self: flex-start;
}
.tc-demo-chip-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
}
.tc-demo-sugg {
    padding: 12px 10px;
    border-radius: 12px;
    border: 1px solid var(--tc-demo-sep);
    background: var(--tc-demo-card);
    color: var(--tc-demo-muted);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}
.tc-demo-sugg--active {
    color: var(--tc-demo-fg);
    border-color: rgba(90, 200, 250, 0.35);
    background: rgba(90, 200, 250, 0.12);
}
.tc-demo-time-row {
    margin-top: 8px;
    width: 100%;
}
.tc-demo-time-input {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--tc-demo-sep);
    background: var(--tc-demo-card);
    color: var(--tc-demo-fg);
    font-size: 16px;
    font-family: inherit;
}
.tc-demo-date-err {
    color: #ff453a;
    font-size: 13px;
    margin-top: 8px;
}

/* Wheel picker */
.tc-demo-wheel-wrap {
    position: relative;
    height: 160px;
    margin: 8px 0 4px;
    width: 100%;
}
.tc-demo-wheel-mask {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    background: linear-gradient(
        180deg,
        var(--tc-demo-bg) 0%,
        transparent 28%,
        transparent 72%,
        var(--tc-demo-bg) 100%
    );
    border-radius: 12px;
}
.tc-demo-wheel-cols {
    display: flex;
    height: 100%;
    position: relative;
    z-index: 1;
}
.tc-demo-wheel-col {
    flex: 1;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 62px 0;
    border-left: 1px solid var(--tc-demo-sep);
}
.tc-demo-wheel-col:first-child {
    border-left: none;
}
.tc-demo-wheel-col::-webkit-scrollbar {
    display: none;
}
.tc-demo-wheel-item {
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: center;
    font-size: 17px;
    font-weight: 500;
    color: var(--tc-demo-muted);
    flex-shrink: 0;
}
.tc-demo-wheel-item--sel {
    color: var(--tc-demo-fg);
    font-weight: 600;
}

.tc-demo-primary {
    margin-top: auto;
    margin-bottom: max(16px, env(safe-area-inset-bottom));
    margin-left: 16px;
    margin-right: 16px;
    width: auto;
    align-self: stretch;
    background: var(--tc-ios-blue-2) !important;
    color: #fff !important;
    border-radius: 14px;
    font-weight: 700;
}
.tc-demo-primary:disabled {
    opacity: 0.45;
    pointer-events: none;
}

/* Add screen FAB */
.tc-demo-add {
    align-items: center;
    padding-top: 16px;
}
.tc-demo-tap-add {
    color: var(--tc-ios-blue-2);
    font-size: 15px;
    font-weight: 600;
    margin: 4px 0 16px;
}
.tc-demo-fab-stack {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    flex: 1;
    min-height: 120px;
}
.tc-demo-add-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.25s ease;
    margin-bottom: 0;
}
.tc-demo-add-list.tc-demo-add-list--open {
    max-height: 320px;
    opacity: 1;
    margin-bottom: 12px;
}
.tc-demo-add-row {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--tc-demo-sep);
    background: var(--tc-demo-card);
    color: var(--tc-demo-fg);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
}
.tc-demo-add-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    flex-shrink: 0;
}
.tc-demo-add-icon--doc {
    background: #ff9500;
}
.tc-demo-add-icon--cam {
    background: #64d2ff;
}
.tc-demo-add-icon--lib {
    background: #bf5af2;
}
.tc-demo-add-icon--mic {
    background: #30d158;
}
.tc-demo-add-icon--file {
    background: #ffd60a;
}
.tc-demo-fab {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: var(--tc-ios-blue-2);
    color: #fff;
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 24px rgba(90, 200, 250, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    transition: transform 0.2s ease;
}
.tc-demo-fab:active {
    transform: scale(0.96);
}
.tc-demo-fab-icon {
    display: block;
    transition: transform 0.2s ease;
}
.tc-demo-item-summary {
    font-size: 13px;
    color: var(--tc-demo-muted);
    margin-top: auto;
    padding-bottom: 8px;
}

/* Secure */
.tc-demo-progressbar {
    flex: 1;
    height: 6px;
    background: #3a3a3c;
    border-radius: 100px;
    margin: 0 10px;
    overflow: hidden;
}
.tc-demo-progressbar span {
    display: block;
    height: 100%;
    width: 35%;
    background: var(--tc-ios-blue-2);
    border-radius: 100px;
    transition: width 0.3s ease;
}
.tc-demo-progressbar--wide span {
    width: 100%;
}
.tc-demo-bar-fullspan {
    width: 92% !important;
}
.tc-demo-secure-card {
    width: 100%;
    max-width: 220px;
    aspect-ratio: 1;
    margin: 16px auto;
    border-radius: 28px;
    border: 1px solid rgba(90, 200, 250, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(28, 28, 30, 0.9);
}
.tc-demo-secure-inner {
    width: 72%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: linear-gradient(180deg, #2c2c2e 0%, #2c2c2e 45%, var(--tc-ios-blue-2) 45%, var(--tc-ios-blue-2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.tc-demo-secure-inner.tc-demo-secure-inner--locked {
    background: var(--tc-ios-blue-2);
}
.tc-demo-lock-ic {
    display: flex;
    color: #fff;
    z-index: 1;
}
.tc-demo-opens-line {
    text-align: center;
    font-size: 13px;
    color: var(--tc-demo-muted);
    margin: 0 0 6px;
}
.tc-demo-locked-label {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--tc-demo-fg);
    margin: 0 0 16px;
}
.tc-demo-hold-track {
    position: relative;
    width: 100%;
    height: 52px;
    border-radius: 100px;
    background: var(--tc-demo-card);
    overflow: hidden;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}
.tc-demo-hold-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0%;
    background: var(--tc-ios-blue-2);
    border-radius: 100px;
    transition: width 0.05s linear;
}
.tc-demo-hold-text {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    gap: 8px;
}

.tc-demo-done-line {
    text-align: center;
    font-size: 15px;
    color: var(--tc-demo-muted);
    margin: -4px 0 8px;
}
.tc-demo-bar-full {
    margin-bottom: 12px !important;
}

/* Ready card */
.tc-demo-success-ring {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--tc-demo-green);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.tc-demo-summary-card {
    width: 100%;
    background: var(--tc-demo-card);
    border-radius: 16px;
    padding: 16px;
    border: 1px solid var(--tc-demo-sep);
    text-align: left;
    margin-top: 8px;
}
.tc-demo-sum-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--tc-demo-fg);
}
.tc-demo-sum-meta {
    font-size: 13px;
    color: var(--tc-demo-muted);
    margin-top: 4px;
}
.tc-demo-sum-divider {
    height: 1px;
    background: var(--tc-demo-sep);
    margin: 14px 0 10px;
}
.tc-demo-update {
    width: 100%;
    border: none;
    background: none;
    color: var(--tc-ios-blue-2);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

/* App shell */
.tc-demo-app {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    position: relative;
    padding-bottom: 88px;
}
.tc-demo-app-panel {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 8px 14px 12px;
    -webkit-overflow-scrolling: touch;
}
.tc-demo-app-header {
    padding: 4px 0 12px;
}
.tc-demo-app-h-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--tc-demo-fg);
    letter-spacing: -0.03em;
}
.tc-demo-hero-card {
    background: var(--tc-demo-card);
    border-radius: 20px;
    padding: 16px;
    border: 1px solid var(--tc-demo-sep);
    margin-bottom: 20px;
}
.tc-demo-hero-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}
.tc-demo-hero-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--tc-demo-fg);
    padding-right: 8px;
}
.tc-demo-share {
    border: none;
    background: transparent;
    color: var(--tc-ios-blue-2);
    padding: 4px;
    cursor: pointer;
    border-radius: 8px;
}
.tc-demo-hero-ring-wrap {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 12px auto 8px;
}
.tc-demo-hero-ring {
    display: block;
}
.tc-demo-hero-track {
    stroke: rgba(90, 200, 250, 0.2);
}
.tc-demo-hero-prog {
    stroke: var(--tc-ios-blue-2);
    stroke-dasharray: 326.73;
    stroke-dashoffset: 326.73;
    transition: stroke-dashoffset 0.4s ease;
}
.tc-demo-hero-lock {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -58%);
    color: #fff;
    font-size: 28px;
}
.tc-demo-hero-pct {
    position: absolute;
    left: 50%;
    bottom: 18%;
    transform: translateX(-50%);
    font-size: 12px;
    font-weight: 600;
    color: var(--tc-demo-fg);
}
.tc-demo-hero-count {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    margin-top: 8px;
}
.tc-demo-dhms {
    text-align: center;
    min-width: 36px;
}
.tc-demo-dhms-n {
    display: block;
    font-size: 22px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--tc-demo-fg);
    line-height: 1.1;
}
.tc-demo-dhms-l {
    display: block;
    font-size: 9px;
    color: var(--tc-demo-muted);
    text-transform: capitalize;
}
.tc-demo-dhms-sep {
    font-size: 20px;
    font-weight: 700;
    color: var(--tc-demo-fg);
    padding-bottom: 14px;
    opacity: 0.5;
}
.tc-demo-unlock-banner {
    text-align: center;
    margin-top: 12px;
}
.tc-demo-unlock-banner p {
    font-size: 14px;
    color: var(--tc-demo-muted);
    margin-bottom: 10px;
}
.tc-demo-store {
    text-decoration: none;
    display: flex !important;
    align-items: center;
    justify-content: center;
}
.tc-demo-section-lbl {
    font-size: 17px;
    font-weight: 700;
    color: var(--tc-demo-fg);
    margin-bottom: 10px;
}
.tc-demo-mini-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tc-demo-hist-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 4px 16px;
}
.tc-demo-hist-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--tc-demo-fg);
}
.tc-demo-hist-select {
    font-size: 17px;
    font-weight: 600;
    color: var(--tc-ios-blue-2);
}
.tc-demo-hist-scroll {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 16px;
}
.tc-demo-hist-card {
    background: var(--tc-demo-card);
    border-radius: 16px;
    padding: 14px;
    border: 1px solid var(--tc-demo-sep);
}
.tc-demo-hist-card-inner {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.tc-demo-hist-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--tc-ios-blue-2);
    margin-top: 6px;
    flex-shrink: 0;
}
.tc-demo-hist-main {
    flex: 1;
    min-width: 0;
}
.tc-demo-hist-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--tc-demo-fg);
}
.tc-demo-hist-sub {
    font-size: 12px;
    color: var(--tc-demo-muted);
    margin-top: 4px;
    line-height: 1.35;
}
.tc-demo-hist-bar {
    height: 4px;
    border-radius: 100px;
    background: #3a3a3c;
    margin-top: 10px;
    overflow: hidden;
}
.tc-demo-hist-bar > span {
    display: block;
    height: 100%;
    background: var(--tc-ios-blue-2);
    border-radius: 100px;
    width: 0%;
}
.tc-demo-hist-right {
    text-align: right;
    flex-shrink: 0;
}
.tc-demo-hist-remain {
    font-size: 14px;
    font-weight: 700;
    color: var(--tc-ios-blue-2);
    font-variant-numeric: tabular-nums;
}

.tc-demo-prof-head {
    font-size: 28px;
    font-weight: 800;
    color: var(--tc-demo-fg);
    padding: 8px 4px 12px;
}
.tc-demo-prof-copy {
    font-size: 15px;
    color: var(--tc-demo-muted);
    line-height: 1.45;
    margin-bottom: 20px;
}
.tc-demo-textbtn {
    display: block;
    width: 100%;
    margin-top: 16px;
    padding: 12px;
    border: none;
    background: none;
    color: var(--tc-demo-muted);
    font-size: 15px;
    cursor: pointer;
    font-family: inherit;
}

.tc-demo-vault-add {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 86px;
    z-index: 25;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 8px;
}
.tc-demo-vault-add[hidden] {
    display: none !important;
}
.tc-demo-dock {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 20;
}
.tc-demo-glass {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 8px 6px;
    border-radius: 100px;
    background: rgba(28, 28, 30, 0.72);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}
.tc-demo-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 4px;
    border: none;
    border-radius: 14px;
    background: transparent;
    color: var(--tc-demo-muted);
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}
.tc-demo-tab--active {
    background: rgba(90, 200, 250, 0.22);
    color: var(--tc-demo-fg);
}
.tc-demo-tab-ic {
    font-size: 16px;
    line-height: 1;
}
.tc-demo-fab--dock {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    font-size: 26px;
}

/* Modals */
.tc-demo-modal {
    position: absolute;
    inset: 0;
    z-index: 40;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 0;
}
.tc-demo-modal[hidden] {
    display: none !important;
}
.tc-demo-modal-card {
    width: 100%;
    background: var(--tc-demo-bg);
    display: flex;
    flex-direction: column;
    padding: 8px 14px 20px;
    min-height: 0;
}
.tc-demo-modal-card--cam {
    padding-bottom: 16px;
}
.tc-demo-modal-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0 12px;
    font-size: 16px;
    font-weight: 700;
    color: var(--tc-demo-fg);
}
.tc-demo-pill {
    padding: 8px 14px;
    border-radius: 100px;
    border: none;
    background: var(--tc-demo-card);
    color: var(--tc-demo-fg);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}
.tc-demo-pill--accent {
    background: var(--tc-demo-card);
    color: var(--tc-ios-blue-2);
}
.tc-demo-pill--ghost {
    visibility: hidden;
    pointer-events: none;
}
.tc-demo-textarea {
    flex: 1;
    min-height: 180px;
    margin-top: 8px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid var(--tc-demo-sep);
    background: var(--tc-demo-card);
    color: var(--tc-demo-fg);
    font-size: 16px;
    font-family: inherit;
    resize: none;
}
.tc-demo-charcount {
    font-size: 12px;
    color: var(--tc-demo-muted);
    margin-top: 8px;
}
.tc-demo-wave {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
    height: 72px;
    margin: 24px 0 12px;
}
.tc-demo-wave span {
    width: 4px;
    height: 12px;
    background: var(--tc-demo-muted);
    border-radius: 2px;
    transition: height 0.08s ease;
}
.tc-demo-rec-time {
    text-align: center;
    font-size: 36px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--tc-demo-fg);
    margin: 8px 0 20px;
}
.tc-demo-rec-btn {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 5px solid var(--tc-ios-blue-2);
    background: #fff;
    margin: 0 auto;
    cursor: pointer;
    padding: 0;
}
.tc-demo-rec-btn.tc-demo-rec-btn--on {
    background: #ff453a;
    border-color: #ff453a;
}
.tc-demo-rec-err {
    color: #ff453a;
    font-size: 13px;
    text-align: center;
    margin-top: 12px;
}
.tc-demo-video {
    width: 100%;
    border-radius: 16px;
    background: #000;
    max-height: 280px;
    object-fit: cover;
    margin: 8px 0 12px;
}

.demo-screen[data-screen="0"] .demo-title,
.demo-screen[data-screen="0"] .demo-subtitle {
    color: var(--tc-demo-fg);
}
.demo-screen[data-screen="0"] .demo-chip {
    background: var(--tc-demo-card);
    color: var(--tc-demo-muted);
    border-color: var(--tc-demo-sep);
}

@media (max-width: 480px) {
    .phone-device {
        width: min(300px, 92vw);
    }
}

/* ============================================================
   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); }

/* Grid rows accordion: any answer height without clipping (replaces fixed max-height) */
.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s ease, padding-bottom 0.35s ease;
    padding-bottom: 0;
}
.faq-answer > * {
    min-height: 0;
    overflow: hidden;
}
.faq-item.open .faq-answer {
    grid-template-rows: 1fr;
    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); }

.footer-boost-wrap {
    flex: 1 1 100%;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.footer-swb-badge {
    display: inline-block;
    line-height: 0;
    opacity: 0.92;
    transition: opacity 0.2s;
}

.footer-swb-badge:hover { opacity: 1; }

.footer-swb-badge img {
    height: 40px;
    width: auto;
    max-width: 100%;
}

.footer-swb-badge-img--light { display: none; }

[data-theme="light"] .footer-swb-badge-img--dark { display: none; }
[data-theme="light"] .footer-swb-badge-img--light { display: block; }

/* ============================================================
   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-device-android { width: 260px; height: 540px; border-radius: 24px; }
    .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; }
    .phone-device-android { width: 240px; height: 500px; border-radius: 22px; }
    .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 */

/* Founder profile (austin-frankel.html) */
.founder-profile-wrap {
    max-width: 560px;
    margin: 0 auto;
    padding: 120px 20px 80px;
    text-align: center;
}
.founder-profile-photo {
    width: 148px;
    height: 148px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto 20px;
    border: 3px solid rgba(102, 199, 255, 0.4);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.founder-profile-role {
    font-size: 13px;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}
.founder-profile-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 28px 0 32px;
    list-style: none;
    padding: 0;
}
.founder-profile-contact li {
    margin: 0;
}
.founder-profile-contact a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text-1);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: border-color 0.15s, background 0.15s;
}
.founder-profile-contact a:hover {
    border-color: var(--accent);
    background: rgba(102, 199, 255, 0.08);
}
.founder-profile-contact a svg {
    flex-shrink: 0;
}
.founder-profile-bio {
    text-align: left;
    font-size: 15px;
    line-height: 1.75;
    color: var(--text-2);
    max-width: 520px;
    margin: 0 auto;
}
.founder-profile-bio p + p {
    margin-top: 1rem;
}
.founder-profile-meta {
    font-size: 14px;
    color: var(--text-3);
    line-height: 1.6;
    margin-top: 1.5rem;
    text-align: center;
}
.founder-profile-meta a {
    color: var(--accent);
    text-decoration: none;
}
.founder-profile-meta a:hover {
    text-decoration: underline;
}

.founder-profile-wrap--wide {
    max-width: 720px;
}
.founder-tagline {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-2);
}
.founder-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 14px 0 6px;
    padding: 0;
    list-style: none;
}
.founder-quick-links a {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text-1);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: border-color 0.15s, background 0.15s, transform 0.12s;
}
.founder-quick-links a:hover {
    border-color: var(--accent);
    background: rgba(102, 199, 255, 0.08);
}
.founder-quick-links a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}
.founder-url-alt {
    font-size: 13px;
    color: var(--text-3);
    margin-top: 1.35rem;
    text-align: center;
    line-height: 1.55;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}
.founder-url-alt a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}
.founder-url-alt a:hover {
    text-decoration: underline;
}
.founder-profile-wrap--wide .founder-profile-bio {
    max-width: 680px;
}
@media (max-width: 480px) {
    .founder-quick-links {
        flex-direction: column;
        align-items: stretch;
    }
    .founder-quick-links a {
        justify-content: center;
    }
}

/* Google Translate (hide widget, auto-translate to user language) */
#google_translate_element,
.skiptranslate,
.goog-te-banner-frame,
iframe.goog-te-banner-frame,
body > .skiptranslate { display: none !important; }
body { top: 0 !important; }
