/* ESL Workflow Landing Page - Zero Context Switch Focus */

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

:root {
    /* Unified teal-based palette */
    --esl-primary: #38B2AC;
    --esl-primary-dark: #2C7A7B;
    --esl-primary-light: #81E6D9;
    --esl-accent: #F6AD55;
    --esl-text: #1a202c;
    --esl-text-secondary: #64748b;
    --esl-bg: #ffffff;
    --esl-bg-alt: #f7fafa;
    --esl-surface: #f0fdfa;
    --esl-border: #e2e8f0;

    /* Typography */
    --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body.segment-esl-workflow {
    background: var(--esl-bg);
    color: var(--esl-text);
    font-family: var(--font-body);
}

/* Apply display font to all headings */
body.segment-esl-workflow h1,
body.segment-esl-workflow h2,
body.segment-esl-workflow h3,
body.segment-esl-workflow h4 {
    font-family: var(--font-display);
}

/* Combined Hero + Steps Pinned Section */
.esl-hero-pinned {
    min-height: 100vh;
    padding: 6rem 2rem 4rem;
    background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    position: relative;
}

/* Subtle noise texture overlay - reduced for cleaner look */
.esl-hero-pinned::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.01;
    pointer-events: none;
}

.hero-step-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Mobile-only headline (hidden on desktop) */
.mobile-headline-wrapper {
    display: none;
}

.mobile-subtitle {
    display: none;
}

/* Left content wrapper */
.left-content-wrapper {
    display: flex;
    flex-direction: column;
}

.hero-content-phase {
    width: 100%;
}

.hero-content-phase h1 {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 1rem;
    color: var(--esl-text);
    letter-spacing: -0.04em;
}

.hero-content-phase .gradient-text {
    background: linear-gradient(135deg, var(--esl-primary) 0%, #0d9488 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.esl-hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--esl-text-secondary);
    margin-bottom: 1.25rem;
    max-width: 500px;
}

/* Hero Keyboard Showcase */
.hero-keyboard-showcase {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    border: 1px solid rgba(49, 130, 206, 0.15);
    box-shadow: 0 4px 20px rgba(49, 130, 206, 0.1);
    width: fit-content;
}

.hero-kbd-key {
    background: linear-gradient(180deg, #f5f5f7 0%, #e8e8ed 100%);
    border: 1px solid #c0c0c0;
    border-radius: 10px;
    padding: 12px 18px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
    color: #1d1d1f;
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.12),
        0 2px 0 #b8b8b8,
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 70px;
    transition: all 0.15s ease;
    animation: key-pulse 3s ease-in-out infinite;
}

.hero-kbd-key:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes key-pulse {
    0%, 100% {
        transform: translateY(0);
        box-shadow:
            0 4px 8px rgba(0, 0, 0, 0.12),
            0 2px 0 #b8b8b8,
            inset 0 1px 0 rgba(255, 255, 255, 0.9);
    }
    50% {
        transform: translateY(-2px);
        box-shadow:
            0 6px 12px rgba(49, 130, 206, 0.2),
            0 3px 0 #b8b8b8,
            inset 0 1px 0 rgba(255, 255, 255, 0.9),
            0 0 20px rgba(49, 130, 206, 0.15);
    }
}

.hero-kbd-key .key-symbol {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1;
    color: #1d1d1f;
}

.hero-kbd-key .key-label {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: lowercase;
    color: #1d1d1f;
    letter-spacing: -0.01em;
}

.hero-kbd-plus {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--esl-text-secondary);
}

.hero-kbd-equals {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--esl-text-secondary);
    margin-left: 0.25rem;
}

.hero-kbd-result {
    font-size: 1.125rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--esl-primary) 0%, #0ea5e9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-left: 0.25rem;
}

.esl-hero-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
}

/* Scroll Hint */
.scroll-hint {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2.5rem;
    font-size: 0.875rem;
    color: var(--esl-text-secondary);
    animation: bounce-hint 2s infinite;
}

.scroll-hint svg {
    width: 18px;
    height: 18px;
}

@keyframes bounce-hint {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

/* macOS Demo Wrapper */
.macos-demo-wrapper {
    /* Container for the persistent macOS simulation */
}

/* Demo Drawer */
.demo-drawer {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 50%, rgba(240, 147, 251, 0.08) 100%);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 0 0 12px 12px;
    padding: 1.5rem 1.5rem;
    margin: -12px 12px 0;
    text-align: center;
    position: relative;
}

.drawer-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.demo-caption {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.demo-caption kbd {
    background: rgba(102, 126, 234, 0.15);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.9em;
}

.demo-caption .completion-check {
    stroke: #667eea;
}

.drawer-action {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.drawer-hint {
    color: #666;
}

.drawer-key {
    background: #1a1a1a;
    color: white;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #1a1a1a;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

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

.btn-primary.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-primary.btn-large svg {
    width: 20px;
    height: 20px;
}

.cta-note {
    font-size: 0.875rem;
    color: var(--esl-text-secondary);
}

.github-stars-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: #f6f8fa;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    color: #24292f;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.github-stars-badge:hover {
    background: #f3f4f6;
    border-color: #1a1a1a;
}

.github-stars-badge svg {
    opacity: 0.8;
}

.cta-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    color: #1a1a1a;
    padding: 1rem 2rem;
    border: 2px solid #1a1a1a;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: #1a1a1a;
    color: white;
    transform: translateY(-2px);
}

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


/* Sections */
.esl-section {
    padding: 7rem 2rem;
}

.esl-section.esl-problem {
    background: var(--esl-bg);
}

.esl-section.esl-features {
    background: var(--esl-bg-alt);
}

.esl-section.esl-testimonials {
    background: var(--esl-bg);
}

.esl-section.esl-faq {
    background: var(--esl-bg-alt);
}

.section-container {
    max-width: 1100px;
    margin: 0 auto;
}

/* Section Labels and Headers */
.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--esl-primary);
    margin-bottom: 0.75rem;
}

.section-header-centered {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header-centered h2 {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--esl-text);
    margin-bottom: 0.75rem;
    letter-spacing: -0.03em;
}

.section-header-centered p {
    font-size: 1.125rem;
    color: var(--esl-text-secondary);
}

/* ============================================
   COMPARISON SECTION - Old Way vs TheQuickFox
   ============================================ */

.esl-section.esl-comparison {
    background: linear-gradient(135deg, #f8fafc 0%, #f0f9ff 100%);
    padding: 6rem 2rem;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: stretch;
}

.comparison-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--esl-border);
    transition: all 0.3s ease;
}

.comparison-card.comparison-old {
    opacity: 0.85;
}

.comparison-card.comparison-old:hover {
    opacity: 1;
}

.comparison-card.comparison-new {
    border-color: rgba(49, 130, 206, 0.3);
    box-shadow: 0 10px 40px rgba(49, 130, 206, 0.12);
    background: linear-gradient(180deg, #ffffff 0%, #f0f9ff 100%);
}

.comparison-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--esl-border);
}

.comparison-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.25rem;
}

.comparison-old .comparison-label {
    color: #94a3b8;
}

.comparison-new .comparison-label {
    color: var(--esl-primary);
}

.comparison-tool {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--esl-text);
}

.comparison-new .comparison-tool {
    background: linear-gradient(135deg, var(--esl-primary) 0%, #0ea5e9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.comparison-steps {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.comparison-steps li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0;
    font-size: 0.9375rem;
    color: var(--esl-text);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.comparison-steps li:last-child {
    border-bottom: none;
}

.comparison-old .comparison-steps li {
    color: var(--esl-text-secondary);
}

.comparison-new .comparison-steps li.highlight {
    color: var(--esl-text);
    font-weight: 500;
}

.comparison-new .comparison-steps li.done {
    color: var(--esl-accent);
    font-weight: 600;
    padding-top: 1rem;
    margin-top: 0.5rem;
    border-top: 1px dashed rgba(16, 185, 129, 0.3);
    border-bottom: none;
}

.comparison-new .comparison-steps li.done svg {
    width: 20px;
    height: 20px;
    color: var(--esl-accent);
    flex-shrink: 0;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
}

.comparison-old .step-num {
    background: #f1f5f9;
    color: #94a3b8;
}

.comparison-new .step-num {
    background: linear-gradient(135deg, var(--esl-primary) 0%, #0ea5e9 100%);
    color: white;
}

.comparison-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--esl-border);
}

.comparison-stats .stat {
    text-align: center;
}

.comparison-stats .stat-value {
    display: block;
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.125rem;
}

.comparison-stats .stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--esl-text-secondary);
}

.comparison-old .stat-value {
    color: #94a3b8;
}

.comparison-new .stat.highlight .stat-value {
    color: var(--esl-primary);
}

.comparison-new .stat.highlight .stat-label {
    color: var(--esl-text);
}

/* VS Divider */
.comparison-divider {
    display: flex;
    align-items: center;
    justify-content: center;
}

.vs-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 2px solid var(--esl-border);
    border-radius: 50%;
    font-size: 0.875rem;
    font-weight: 800;
    color: var(--esl-text-secondary);
    letter-spacing: 0.05em;
}

/* Problem Section */
.problem-header {
    text-align: center;
    margin-bottom: 3rem;
}

.problem-header h2 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.problem-header p {
    font-size: 1.125rem;
    color: var(--esl-text-secondary);
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.problem-card {
    background: var(--esl-bg-alt);
    border: 1px solid var(--esl-border);
    border-radius: 16px;
    padding: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.problem-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.problem-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #dbeafe 0%, #e0f2fe 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.problem-icon svg {
    width: 24px;
    height: 24px;
    color: var(--esl-primary);
}

.problem-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.problem-card p {
    color: var(--esl-text-secondary);
    line-height: 1.6;
    font-size: 0.9375rem;
}

/* Step content styling (within combined hero section) */

.step-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--esl-primary) 0%, #0ea5e9 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.375rem 0.875rem;
    border-radius: 100px;
    margin-bottom: 1rem;
}

.step-content h3 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.step-content > p {
    font-size: 1.0625rem;
    color: var(--esl-text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Try it live prompt */
.try-live-prompt {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    background: linear-gradient(135deg, rgba(56, 178, 172, 0.1) 0%, rgba(49, 130, 206, 0.1) 100%);
    border: 1px solid rgba(56, 178, 172, 0.3);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(56, 178, 172, 0.2);
    }
    50% {
        box-shadow: 0 0 20px 4px rgba(56, 178, 172, 0.25);
    }
}

.try-live-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.75rem;
    background: linear-gradient(135deg, #38B2AC 0%, #0d9488 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 8px;
    box-shadow:
        0 2px 8px rgba(56, 178, 172, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    animation: badge-shine 3s ease-in-out infinite;
    white-space: nowrap;
}

@keyframes badge-shine {
    0%, 100% {
        box-shadow:
            0 2px 8px rgba(56, 178, 172, 0.3),
            0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    }
    50% {
        box-shadow:
            0 4px 12px rgba(56, 178, 172, 0.5),
            0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    }
}

.try-live-text {
    font-size: 0.9375rem;
    color: var(--esl-text);
    font-weight: 500;
}

.try-live-text kbd {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    background: rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
}

/* Hero Guidance States - Above Keyboard */
.hero-guidance {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    min-height: 80px;
    text-align: center;
}

.guidance-state {
    animation: fadeIn 0.3s ease-out;
}

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

.guidance-hint {
    font-size: 0.9rem;
    color: var(--esl-text-secondary);
    margin-top: 0.75rem;
    font-style: italic;
}

/* Center the prompt when inside hero-guidance (above keyboard) */
.hero-guidance .try-live-prompt {
    display: inline-flex;
    margin: 0 auto;
}

.hero-guidance .completion-message {
    display: inline-flex;
    margin: 0 auto;
}

/* Hide mobile-only elements on desktop */
.mobile-only {
    display: none;
}

/* Ensure mobile try prompt is hidden on desktop (higher specificity) */
.try-live-prompt.mobile-only {
    display: none;
}

/* Pulse animation for initial try-it prompt */
.try-live-prompt.pulse {
    animation: pulse-glow-strong 2s infinite;
}

@keyframes pulse-glow-strong {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(56, 178, 172, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 30px 8px rgba(56, 178, 172, 0.35);
        transform: scale(1.02);
    }
}

/* Completion message */
.completion-message {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(56, 178, 172, 0.1) 100%);
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: 12px;
    font-size: 1.0625rem;
    font-weight: 600;
    color: #059669;
    animation: celebrate 0.5s ease-out;
}

@keyframes celebrate {
    0% { opacity: 0; transform: scale(0.9); }
    50% { transform: scale(1.02); }
    100% { opacity: 1; transform: scale(1); }
}

.completion-check {
    width: 24px;
    height: 24px;
    stroke: #059669;
    stroke-width: 3;
    flex-shrink: 0;
}

/* Enhanced CTA after completion */
.esl-hero-cta.highlighted {
    margin-top: 1.5rem;
    animation: ctaHighlight 0.5s ease-out;
}

.esl-hero-cta.highlighted .btn-primary {
    background: linear-gradient(135deg, #059669 0%, #10B981 100%);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.4);
    transform: scale(1.05);
}

.esl-hero-cta.highlighted .btn-primary:hover {
    background: linear-gradient(135deg, #047857 0%, #059669 100%);
    box-shadow: 0 12px 40px rgba(16, 185, 129, 0.5);
    transform: scale(1.08);
}

@keyframes ctaHighlight {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.app-logos {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.app-logo {
    width: 32px;
    height: 32px;
    opacity: 0.85;
    transition: opacity 0.2s, transform 0.2s;
}

.app-logo:hover {
    opacity: 1;
    transform: scale(1.1);
}

.step-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.step-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.9375rem;
    color: var(--esl-text);
}

.step-features li svg {
    width: 20px;
    height: 20px;
    color: var(--esl-accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.step-note {
    font-size: 0.9375rem;
    color: var(--esl-text-secondary);
    font-style: italic;
    padding: 1rem;
    background: rgba(49, 130, 206, 0.05);
    border-radius: 8px;
    border-left: 3px solid var(--esl-primary);
}

/* Keyboard Visual */
.keyboard-visual {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.keyboard-visual .key {
    background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    color: #475569;
    box-shadow: 0 2px 0 #cbd5e1;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
}

.keyboard-visual .key-caret {
    font-size: 0.875rem;
    align-self: flex-end;
    line-height: 1;
}

.keyboard-visual .key-plus {
    color: var(--esl-text-secondary);
    font-size: 1rem;
}


/* macOS Desktop Environment */
.macos-desktop {
    position: relative;
    background: url('/sequoia-wallpaper.jpg') center/cover no-repeat;
    border-radius: 12px;
    padding: 0 0 70px;
    box-shadow: 0 25px 80px -20px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

/* macOS Menu Bar */
.macos-menubar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 16px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    font-size: 0.8125rem;
    font-weight: 500;
    color: #000;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.menubar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.menubar-apple {
    display: flex;
    align-items: center;
}

.menubar-apple svg {
    width: 14px;
    height: 14px;
}

.menubar-app {
    font-weight: 600;
}

.menubar-items {
    display: flex;
    gap: 16px;
}

.menubar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.75rem;
}

.menubar-tail {
    width: 16px;
    height: 16px;
}

.macos-desktop-content {
    padding: 16px 24px 0;
}

/* Floating Keyboard Shortcut Hint */
.keyboard-shortcut-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
}

.kbd-key {
    background: linear-gradient(180deg, #f5f5f7 0%, #e8e8ed 100%);
    border: 1px solid #c0c0c0;
    border-radius: 10px;
    padding: 10px 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
    color: #1d1d1f;
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.12),
        0 2px 0 #b8b8b8,
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    min-width: 70px;
    text-align: center;
    transition: all 0.08s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.key-symbol {
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1;
    color: #1d1d1f;
    align-self: flex-end;
    margin-right: 2px;
}

.key-label {
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: lowercase;
    color: #1d1d1f;
    letter-spacing: -0.01em;
}

.kbd-key.pressed {
    transform: translateY(2px);
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.1),
        0 1px 0 #c0c0c0,
        inset 0 1px 2px rgba(0, 0, 0, 0.08),
        0 0 20px rgba(56, 178, 172, 0.5);
    background: linear-gradient(180deg, #e8e8ed 0%, #d8d8dd 100%);
    border-color: #38B2AC;
}

/* Windows Container - holds both windows for tab switching */
.windows-container {
    position: relative;
    height: 340px;
    overflow: hidden;
}

.windows-container .browser-window {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
}

/* Browser Window Frame */
.browser-window {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.window-titlebar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: linear-gradient(180deg, #e8e8e8 0%, #d8d8d8 100%);
    border-bottom: 1px solid #c0c0c0;
}

.window-buttons {
    display: flex;
    gap: 8px;
}

.window-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.window-btn.close { background: #ff5f57; }
.window-btn.minimize { background: #febc2e; }
.window-btn.maximize { background: #28c840; }

.window-title {
    flex: 1;
    text-align: center;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #444;
    margin-right: 44px;
}

.window-content {
    background: #fff;
    position: relative;
    overflow: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.window-content .article-mockup {
    flex: 1;
    overflow: hidden;
}

.window-content .linkedin-chat-mockup {
    flex: 1;
    overflow-y: auto;
}

/* LinkedIn Chat Mockup */
.linkedin-chat-mockup {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    display: flex;
}

.linkedin-sidebar {
    width: 60px;
    background: #fff;
    border-right: 1px solid #e0e0e0;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.linkedin-logo {
    width: 28px;
    height: 28px;
}

.sidebar-section {
    font-size: 0.625rem;
    color: #0a66c2;
    font-weight: 600;
    text-align: center;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    letter-spacing: 0.5px;
}

.linkedin-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #e0e0e0;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 0.875rem;
}

.chat-avatar-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.message-avatar-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.chat-info {
    flex: 1;
}

.chat-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: #000;
}

.chat-title {
    font-size: 0.75rem;
    color: #666;
}

.chat-messages {
    padding: 16px;
    min-height: 120px;
    background: #f3f2ef;
}

.chat-message {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.chat-message.sent {
    justify-content: flex-end;
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.message-bubble {
    background: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    max-width: 85%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.message-bubble p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #000;
}

.message-bubble.sent-bubble {
    background: #0a66c2;
    color: #fff;
}

.message-bubble.sent-bubble p {
    color: #fff;
}

.message-time {
    display: block;
    font-size: 0.6875rem;
    color: #999;
    margin-top: 4px;
}

.sent-bubble .message-time {
    color: rgba(255, 255, 255, 0.7);
}

#sent-message {
    visibility: hidden;
    height: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.chat-input-area {
    padding: 12px 16px;
    background: #fff;
    border-top: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-send-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #0a66c2;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s;
}

.chat-send-btn:hover {
    background: #004182;
}

.chat-send-btn svg {
    width: 18px;
    height: 18px;
}

.chat-input-field {
    flex: 1;
    background: #f3f2ef;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 0.875rem;
    color: #000;
    position: relative;
    min-height: 40px;
    max-height: 80px;
    overflow-y: auto;
    line-height: 1.4;
    box-sizing: border-box;
}

#chat-input-text,
#linkedin-input-text {
    color: #000;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.input-placeholder {
    color: #666;
}

#linkedin-placeholder {
    color: #666;
}

.input-cursor {
    color: #0a66c2;
    animation: blink 1s infinite;
    display: none;
}

/* Article Mockup */
.article-mockup {
    padding: 20px;
    background: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    height: 100%;
    overflow-y: auto;
}

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

.article-tag {
    background: #d1fae5;
    color: #047857;
    font-size: 0.625rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-date {
    font-size: 0.75rem;
    color: #64748b;
}

.article-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
    margin-bottom: 8px;
}

.article-meta {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.article-body {
    font-size: 0.8125rem;
    line-height: 1.6;
    color: #334155;
}

.article-body p {
    margin-bottom: 12px;
}

.article-body h2 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #0f172a;
    margin: 16px 0 8px;
}

/* Figma Mockup */
.figma-mockup {
    display: flex;
    height: 100%;
    background: #1e1e1e;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.figma-sidebar {
    width: 90px;
    background: #2c2c2c;
    border-right: 1px solid #3c3c3c;
    padding: 6px;
}

.figma-layers {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.figma-section-title {
    font-size: 0.5rem;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.figma-layer {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px 4px;
    border-radius: 3px;
    font-size: 0.5625rem;
    color: #aaa;
    cursor: pointer;
}

.figma-layer svg {
    width: 10px;
    height: 10px;
    opacity: 0.7;
}

.figma-layer:hover {
    background: #3c3c3c;
}

.figma-layer.active {
    background: #0d99ff22;
    color: #0d99ff;
}

.figma-canvas {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(90deg, #2a2a2a 1px, transparent 1px),
        linear-gradient(#2a2a2a 1px, transparent 1px);
    background-size: 20px 20px;
    background-color: #1e1e1e;
    padding: 20px;
}

.figma-artboard {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-height: 95%;
}

.figma-artboard-title {
    font-size: 0.5625rem;
    color: #999;
    margin-bottom: 4px;
    font-weight: 500;
}

.figma-logo-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 0;
    background: white;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.window-title .figma-logo {
    margin-right: 4px;
}

/* Tighter titlebar for Figma window */
#ask-window .window-titlebar {
    padding: 6px 10px;
    gap: 8px;
}

#ask-window .window-btn {
    width: 9px;
    height: 9px;
}

#ask-window .window-buttons {
    gap: 5px;
}

#ask-window .window-title {
    font-size: 0.625rem;
    margin-right: 32px;
}

#ask-window .window-title .figma-logo {
    width: 8px;
    height: 12px;
}

.figma-right-sidebar {
    width: 100px;
    background: #2c2c2c;
    border-left: 1px solid #3c3c3c;
    padding: 6px;
}

.figma-right-sidebar .figma-section-title {
    margin-bottom: 6px;
}

.figma-property {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 3px;
}

.figma-prop-label {
    font-size: 0.5625rem;
    color: #666;
    width: 12px;
}

.figma-prop-value {
    font-size: 0.5625rem;
    color: #aaa;
    background: #1e1e1e;
    padding: 2px 6px;
    border-radius: 3px;
    flex: 1;
}

.figma-divider {
    height: 1px;
    background: #3c3c3c;
    margin: 8px 0;
}

.figma-color-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.figma-color-swatch {
    width: 14px;
    height: 14px;
    background: #1a1a1a;
    border-radius: 3px;
    border: 1px solid #3c3c3c;
}

/* AI Answer Bubble */
.ai-answer-bubble {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: linear-gradient(135deg, #f0fdfa 0%, #e6fffa 100%);
    border: 1px solid rgba(56, 178, 172, 0.3);
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 8px 32px rgba(56, 178, 172, 0.2);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: 10;
}

.ai-answer-bubble.visible {
    opacity: 1;
    transform: translateY(0);
}

.ai-answer-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--esl-primary-dark);
}

.ai-answer-logo {
    width: 20px;
    height: 20px;
}

.ai-answer-bubble p {
    font-size: 0.8125rem;
    line-height: 1.5;
    color: #334155;
    margin: 0;
}

/* TheQuickFox HUD */
.tqf-hud {
    position: absolute;
    bottom: 80px; /* Above the dock */
    left: 50%;
    transform: translateX(-50%);
    /* transform handled by GSAP for consistent animations */
    width: 340px;
    background: rgba(30, 30, 40, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
    /* opacity controlled by GSAP - visible in hero, animated in steps */
    z-index: 10;
    overflow: visible;
}

.tqf-hud-logo {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.tqf-hud-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tqf-hud-header {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tqf-tabs {
    display: flex;
    gap: 2px;
}

.tqf-tab {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.2s ease;
    cursor: pointer;
}

.tqf-tab:hover:not(.active) {
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.05);
}

.tqf-tab.active {
    background: rgba(56, 178, 172, 0.15);
    color: #4FD1C5;
}

.tqf-content {
    padding: 16px;
    min-height: 60px;
    display: flex;
    align-items: center;
}

/* Input wrapper - the single input field */
.tqf-input-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.9);
    min-height: 1.4em;
    line-height: 1.4;
}

#tqf-input-text {
    white-space: pre-wrap;
}

#tqf-input-text:empty::before {
    content: 'Type your message...';
    color: rgba(255, 255, 255, 0.3);
}

/* Interactive input for live demo */
.tqf-interactive-input {
    display: none;
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.95);
    font-family: inherit;
    padding: 0;
    caret-color: #4FD1C5;
}

.tqf-interactive-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.tqf-interactive-input:focus {
    outline: none;
}

.tqf-cursor {
    animation: blink 1s infinite;
    color: #4FD1C5;
    font-weight: 300;
}

/* Loader - replaces input when processing */
.tqf-loader {
    display: none;
    gap: 6px;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 8px 0;
}

.tqf-loader span {
    width: 8px;
    height: 8px;
    background: #4FD1C5;
    border-radius: 50%;
    animation: loader-bounce 1.4s infinite ease-in-out;
}

.tqf-loader span:nth-child(1) { animation-delay: 0s; }
.tqf-loader span:nth-child(2) { animation-delay: 0.16s; }
.tqf-loader span:nth-child(3) { animation-delay: 0.32s; }

@keyframes loader-bounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

/* Response display area */
.tqf-response {
    display: none;
    width: 100%;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    max-height: 140px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(79, 209, 197, 0.4) transparent;
}

.tqf-response::-webkit-scrollbar {
    width: 4px;
}

.tqf-response::-webkit-scrollbar-track {
    background: transparent;
}

.tqf-response::-webkit-scrollbar-thumb {
    background: rgba(79, 209, 197, 0.4);
    border-radius: 2px;
}

.tqf-response p {
    margin: 0;
    white-space: pre-wrap;
}

.tqf-response .tqf-cursor {
    opacity: 1;
}

/* Footer with keyboard hints */
.tqf-footer {
    display: none;
    padding: 8px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0 0 12px 12px;
}

.tqf-hint {
    font-size: 0.6875rem;
    color: rgba(255, 255, 255, 0.4);
}

.tqf-hint strong {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

/* macOS Dock */
.macos-dock {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: flex-end;
    gap: 6px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 5px 8px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.dock-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dock-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    overflow: hidden;
}

.dock-icon.figma-dock-icon {
    background: #2c2c2c;
}

.dock-icon.figma-dock-icon svg {
    width: 20px;
    height: 30px;
}


.dock-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dock-indicator {
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    margin-top: 3px;
}

.macos-frame {
    background: white;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.macos-titlebar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid var(--esl-border);
}

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

.macos-titlebar .dot.red { background: #ef4444; }
.macos-titlebar .dot.yellow { background: #f59e0b; }
.macos-titlebar .dot.green { background: #22c55e; }

.macos-content {
    padding: 1.5rem;
    min-height: 280px;
    position: relative;
    background: #fafafa;
}

/* Demo Email */
.demo-email {
    background: white;
    border: 1px solid var(--esl-border);
    border-radius: 8px;
    padding: 1rem;
}

.demo-email.faded {
    opacity: 0.5;
}

.email-header {
    font-size: 0.875rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--esl-border);
    margin-bottom: 1rem;
}

.email-body {
    font-size: 0.875rem;
    line-height: 1.6;
}

.email-received {
    color: var(--esl-text);
    margin-bottom: 1rem;
}

.email-response {
    color: var(--esl-primary-dark);
    background: rgba(49, 130, 206, 0.05);
    padding: 0.75rem;
    border-radius: 6px;
    border-left: 3px solid var(--esl-primary);
}

.email-cursor {
    color: var(--esl-primary);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* HUD Overlay */
.hud-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    background: rgba(30, 30, 40, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hud-overlay.visible {
    opacity: 1;
}

#hud-step1 {
    opacity: 1;
}

.hud-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.hud-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.hud-tabs {
    display: flex;
    gap: 4px;
}

.hud-tabs span {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
}

.hud-tabs span.active {
    background: rgba(79, 209, 197, 0.2);
    color: #4FD1C5;
}

.hud-body {
    padding: 16px;
    min-height: 80px;
}

.hud-prompt {
    color: rgba(255,255,255,0.9);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.hud-thinking {
    display: flex;
    gap: 6px;
    justify-content: center;
    padding: 16px 0;
}

.hud-thinking span {
    width: 8px;
    height: 8px;
    background: #4FD1C5;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out;
}

.hud-thinking span:nth-child(1) { animation-delay: 0s; }
.hud-thinking span:nth-child(2) { animation-delay: 0.16s; }
.hud-thinking span:nth-child(3) { animation-delay: 0.32s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

/* Success Indicator */
.success-indicator {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: none;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--esl-accent);
    background: white;
    padding: 6px 12px;
    border-radius: 100px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.success-indicator svg {
    width: 14px;
    height: 14px;
}

/* Transformation Mini */
.transformation-mini {
    background: var(--esl-bg-alt);
    border: 1px solid var(--esl-border);
    border-radius: 12px;
    padding: 1.25rem;
    margin-top: 1.5rem;
}

.transform-before,
.transform-after {
    font-size: 0.875rem;
    line-height: 1.6;
}

.transform-before {
    color: var(--esl-text-secondary);
    margin-bottom: 0.75rem;
}

.transform-arrow {
    color: var(--esl-primary);
    font-size: 1.25rem;
    margin: 0.5rem 0;
}

.transform-after {
    color: var(--esl-text);
    background: rgba(16, 185, 129, 0.1);
    padding: 0.75rem;
    border-radius: 6px;
    border-left: 3px solid var(--esl-accent);
}

.transformation-mini .label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--esl-text-secondary);
    margin-bottom: 0.25rem;
}

/* Transformation Showcase */
.esl-transformation {
    background: linear-gradient(135deg, #f0f9ff 0%, #ecfdf5 100%);
}

.transformation-showcase {
    max-width: 900px;
    margin: 0 auto;
}

.transformation-card {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.transformation-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.transformation-side {
    padding: 1.5rem;
    border-radius: 12px;
}

.transformation-side.before {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.transformation-side.after {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
}

.transformation-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.transformation-side.before .transformation-label {
    color: #dc2626;
}

.transformation-side.after .transformation-label {
    color: #059669;
}

.transformation-side p {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--esl-text);
    margin-bottom: 1rem;
}

.transformation-issues,
.transformation-wins {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.transformation-issues span,
.transformation-wins span {
    font-size: 0.75rem;
    padding: 0.25rem 0.625rem;
    border-radius: 100px;
}

.transformation-issues span {
    background: #fee2e2;
    color: #dc2626;
}

.transformation-wins span {
    background: #d1fae5;
    color: #059669;
}

.transformation-divider {
    width: 48px;
    height: 48px;
    background: var(--esl-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.transformation-divider svg {
    width: 24px;
    height: 24px;
    color: white;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: white;
    border: none;
    border-radius: 20px;
    padding: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* Colored backgrounds for feature cards */
.feature-card:nth-child(1) {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}
.feature-card:nth-child(2) {
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
}
.feature-card:nth-child(3) {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #dbeafe 0%, #e0f2fe 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.feature-icon svg {
    width: 22px;
    height: 22px;
    color: var(--esl-primary);
}

.feature-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.875rem;
    color: var(--esl-text-secondary);
    line-height: 1.6;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.testimonial-card {
    background: var(--esl-bg-alt);
    border: 1px solid var(--esl-border);
    border-radius: 12px;
    padding: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.testimonial-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.testimonial-text {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--esl-text);
    margin-bottom: 1.25rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--esl-primary) 0%, #0ea5e9 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
}

.author-info strong {
    display: block;
    font-size: 0.875rem;
}

.author-info span {
    font-size: 0.8125rem;
    color: var(--esl-text-secondary);
}

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

.faq-item {
    border: 1px solid var(--esl-border);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    background: white;
    overflow: hidden;
}

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

.faq-question svg {
    width: 20px;
    height: 20px;
    color: var(--esl-text-secondary);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 1.5rem 1.25rem;
    color: var(--esl-text-secondary);
    line-height: 1.7;
    font-size: 0.9375rem;
}

/* Final CTA */
.esl-final-cta {
    background: linear-gradient(135deg, var(--esl-primary) 0%, #0ea5e9 100%);
    padding: 5rem 2rem;
}

.cta-card {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-card h2 {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.75rem;
}

.cta-card > p {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
}

.cta-card .btn-primary {
    background: white;
    color: var(--esl-primary);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.cta-card .btn-primary:hover {
    background: #f8fafc;
    transform: translateY(-2px);
}

.cta-card .cta-note {
    color: rgba(255,255,255,0.8);
    margin-top: 1rem;
    display: block;
}

/* Step 1 - Keyboard Animation */
.demo-keyboard-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 1rem;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.demo-key {
    background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    color: #475569;
    box-shadow: 0 4px 0 #cbd5e1;
    transition: all 0.1s ease;
}

.demo-key.pressed {
    transform: translateY(3px);
    box-shadow: 0 1px 0 #cbd5e1;
    background: linear-gradient(180deg, #e2e8f0 0%, #cbd5e1 100%);
}

/* Step 1 HUD Animation */
#hud-step1 {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
}

/* Step 2 - Typing Animation */
.hud-prompt.anim-typing::after {
    content: '|';
    animation: blink 0.5s infinite;
    color: #4FD1C5;
}

#loader-2 {
    opacity: 0;
}

#context-2 {
    opacity: 0;
}

/* Step 3 - Response Animation */
#response-3 {
    min-height: 3.5em;
}

#response-3::after {
    content: '|';
    animation: blink 0.5s infinite;
    color: var(--esl-primary);
    opacity: 0;
}

#response-3.typing::after {
    opacity: 1;
}

#success-3 {
    opacity: 0;
    transform: translateY(10px);
}

/* Magic Sparkles */
.magic-sparkles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
}

.magic-sparkles .sparkle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--esl-primary);
    border-radius: 50%;
    opacity: 0;
}

.magic-sparkles .sparkle:nth-child(1) { top: 60%; left: 20%; }
.magic-sparkles .sparkle:nth-child(2) { top: 65%; left: 40%; }
.magic-sparkles .sparkle:nth-child(3) { top: 58%; left: 60%; }
.magic-sparkles .sparkle:nth-child(4) { top: 70%; left: 75%; }
.magic-sparkles .sparkle:nth-child(5) { top: 62%; left: 85%; }

.magic-sparkles.active {
    opacity: 1;
}

.magic-sparkles.active .sparkle {
    animation: sparkle-burst 0.6s ease-out forwards;
}

.magic-sparkles.active .sparkle:nth-child(1) { animation-delay: 0s; }
.magic-sparkles.active .sparkle:nth-child(2) { animation-delay: 0.1s; }
.magic-sparkles.active .sparkle:nth-child(3) { animation-delay: 0.05s; }
.magic-sparkles.active .sparkle:nth-child(4) { animation-delay: 0.15s; }
.magic-sparkles.active .sparkle:nth-child(5) { animation-delay: 0.08s; }

@keyframes sparkle-burst {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    50% {
        transform: scale(1.5);
        opacity: 1;
    }
    100% {
        transform: scale(0.5) translateY(-20px);
        opacity: 0;
    }
}

/* Hero Keyboard Below Screen - Physical Keyboard Layout */
.hero-keyboard {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 1rem;
    opacity: 1;
}

.physical-keyboard {
    background: linear-gradient(180deg, #2d2d2d 0%, #1a1a1a 100%);
    border-radius: 12px;
    padding: 12px 16px 16px;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

/* Fade gradient overlay for top rows */
.physical-keyboard::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(180deg,
        rgba(26, 26, 26, 0.95) 0%,
        rgba(26, 26, 26, 0.7) 30%,
        rgba(26, 26, 26, 0) 100%);
    pointer-events: none;
    z-index: 1;
}

.kb-row {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 4px;
    width: 508px; /* Consistent width for all rows */
}

.kb-row:last-child {
    margin-bottom: 0;
}

/* Row fade levels */
.kb-row-fade-3 {
    opacity: 0.15;
}

.kb-row-fade-2 {
    opacity: 0.3;
}

.kb-row-fade-1 {
    opacity: 0.5;
}

/* Base key styles */
.kb-key {
    background: linear-gradient(180deg, #3a3a3a 0%, #2a2a2a 100%);
    border: 1px solid #1a1a1a;
    border-radius: 5px;
    color: #e0e0e0;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
    font-size: 0.625rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 2px 0 #1a1a1a,
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: all 0.08s ease-out;
    position: relative;
    z-index: 2;
}

/* Key sizes */
.kb-key-sm {
    width: 32px;
    height: 28px;
}

.kb-key-tab,
.kb-key-backspace {
    width: 52px;
    height: 28px;
    font-size: 0.5625rem;
}

.kb-key-caps {
    width: 62px;
    height: 28px;
    font-size: 0.5rem;
}

.kb-key-return {
    width: 68px;
    height: 28px;
    font-size: 0.5625rem;
}

.kb-key-shift {
    width: 82px;
    height: 28px;
    font-size: 0.5625rem;
}

/* Bottom row modifiers - sized to match row above */
.kb-key-fn {
    width: 24px;
    height: 24px;
    font-size: 0.5rem;
}

.kb-key-ctrl {
    width: 40px;
    height: 24px;
    font-size: 0.45rem;
    position: relative;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 3px 4px;
}

.kb-key-opt {
    width: 36px;
    height: 24px;
    font-size: 0.45rem;
    position: relative;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 3px 4px;
}

.kb-key-cmd {
    width: 42px;
    height: 24px;
    font-size: 0.45rem;
    position: relative;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 3px 4px;
}

/* Symbol in top-right corner */
.key-symbol-tr {
    position: absolute;
    top: 2px;
    right: 3px;
    font-size: 0.5625rem;
    line-height: 1;
    opacity: 0.9;
}

/* Text at bottom-left */
.key-text {
    font-size: 0.4rem;
    line-height: 1;
    opacity: 0.8;
}

.kb-key-space {
    flex: 1;
    height: 24px;
    max-width: 160px;
}

.kb-key-arrow {
    width: 24px;
    height: 24px;
    font-size: 0.5625rem;
}

.kb-key-arrow-stack {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.kb-key-arrow-half {
    width: 24px;
    height: 11px;
    font-size: 0.45rem;
}

/* Control key highlight - the important ones */
.kb-key-ctrl {
    background: linear-gradient(180deg, #4a4a4a 0%, #3a3a3a 100%);
    border-color: #2a2a2a;
    color: #fff;
}

/* Control key pressed state */
.kb-key-ctrl.pressed {
    transform: translateY(2px);
    box-shadow:
        0 0 0 #1a1a1a,
        inset 0 2px 4px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(49, 130, 206, 0.6),
        0 0 40px rgba(49, 130, 206, 0.3);
    background: linear-gradient(180deg, var(--esl-primary) 0%, #2563eb 100%);
    border-color: var(--esl-primary);
}

.hero-keyboard-hint {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--esl-text-secondary);
    font-weight: 500;
}

/* Responsive */
@media (max-width: 1024px) {
    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .comparison-divider {
        order: -1;
        margin: 0 auto;
    }

    .comparison-card.comparison-new {
        order: -2;
    }
}

@media (max-width: 900px) {
    .hero-step-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Adjust pinned section for mobile */
    .esl-hero-pinned {
        min-height: auto;
        padding: 4rem 1.5rem 2rem;
    }

    /* Mobile layout: headline -> simulation -> description */
    .mobile-headline-wrapper {
        display: block;
        order: 1;
        text-align: center;
        margin-bottom: 1rem;
    }

    .mobile-headline-wrapper h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .mobile-headline-wrapper .hero-badges {
        justify-content: center;
    }

    .mobile-headline-wrapper .hero-badge {
        font-size: 0.65rem;
        padding: 0.4rem 0.75rem;
    }

    .macos-demo-wrapper {
        order: 2;
        /* Break out of container padding to use full width */
        margin-left: -1.5rem;
        margin-right: -1.5rem;
        width: calc(100% + 3rem);
        /* Enable flex ordering for children */
        display: flex;
        flex-direction: column;
    }

    /* Move guidance above simulation on mobile */
    .hero-guidance {
        order: -1;
        margin: 0 1.5rem 1rem;
    }

    /* Hide desktop guidance, show mobile */
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    /* Mobile CTA button - keep inline layout */
    button.mobile-only,
    a.mobile-only {
        flex-direction: row;
        gap: 0.5rem;
    }

    /* Center the guidance-complete content on mobile */
    #guidance-complete {
        text-align: center;
    }

    /* Completion CTA for mobile - prominent reminder button */
    .completion-cta.mobile-only {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        gap: 0.625rem;
        margin: 1.25rem auto 0;
        padding: 0.875rem 1.5rem;
        background: linear-gradient(135deg, var(--esl-primary) 0%, #0ea5e9 50%, #06b6d4 100%);
        color: white;
        border: none;
        border-radius: 14px;
        font-size: 0.9375rem;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow:
            0 6px 20px -4px rgba(49, 130, 206, 0.5),
            0 2px 6px rgba(49, 130, 206, 0.2),
            0 0 0 1px rgba(255, 255, 255, 0.1) inset;
        position: relative;
        overflow: hidden;
        animation: completion-cta-enter 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both;
    }

    @keyframes completion-cta-enter {
        from {
            opacity: 0;
            transform: translateY(10px) scale(0.95);
        }
        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

    .completion-cta.mobile-only::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 50%;
        background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 100%);
        pointer-events: none;
    }

    .completion-cta.mobile-only:active {
        transform: scale(0.96);
        box-shadow:
            0 3px 10px -2px rgba(49, 130, 206, 0.4),
            0 1px 3px rgba(49, 130, 206, 0.2);
    }

    .completion-cta.mobile-only svg {
        width: 18px;
        height: 18px;
        filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.1));
    }

    /* Mobile CTA note */
    span.cta-note.mobile-only {
        display: block !important;
    }

    /* Hide the old ugly mobile control wrapper */
    .mobile-control-wrapper {
        display: none !important;
    }

    /* Mobile Control Button in guidance - Apple-style key with depth */
    .mobile-control-tap {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 88px;
        height: 88px;
        background: linear-gradient(180deg, #fefefe 0%, #f0f0f0 40%, #e4e4e4 100%);
        border: none;
        border-radius: 16px;
        box-shadow:
            0 1px 0 0 rgba(255, 255, 255, 0.9) inset,
            0 -2px 6px 0 rgba(0, 0, 0, 0.08) inset,
            0 6px 16px -4px rgba(0, 0, 0, 0.2),
            0 2px 4px rgba(0, 0, 0, 0.08);
        cursor: pointer;
        transition: all 0.12s cubic-bezier(0.4, 0, 0.2, 1);
        font-family: -apple-system, BlinkMacSystemFont, sans-serif;
        position: relative;
        overflow: hidden;
    }

    .mobile-control-tap::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 50%;
        background: linear-gradient(180deg, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0) 100%);
        border-radius: 16px 16px 0 0;
        pointer-events: none;
    }

    .mobile-control-tap:active {
        transform: scale(0.94) translateY(2px);
        box-shadow:
            0 1px 0 0 rgba(255, 255, 255, 0.5) inset,
            0 -1px 4px 0 rgba(0, 0, 0, 0.12) inset,
            0 2px 6px -2px rgba(0, 0, 0, 0.15),
            0 1px 2px rgba(0, 0, 0, 0.06);
        background: linear-gradient(180deg, #f0f0f0 0%, #e4e4e4 40%, #d8d8d8 100%);
    }

    .mobile-control-tap .control-symbol {
        font-size: 2.25rem;
        color: #1a1a1a;
        line-height: 1;
        font-weight: 300;
        text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
    }

    .mobile-control-tap .control-label {
        font-size: 0.65rem;
        color: #555;
        text-transform: lowercase;
        margin-top: 4px;
        font-weight: 500;
        letter-spacing: 0.02em;
        text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
    }

    .mobile-tap-instruction {
        font-size: 0.85rem;
        color: #64748b;
        font-weight: 500;
        animation: pulse-subtle 2s ease-in-out infinite;
    }

    @keyframes pulse-subtle {
        0%, 100% { opacity: 0.7; }
        50% { opacity: 1; }
    }

    .macos-desktop {
        border-radius: 0;
        order: 0;
    }

    .macos-desktop-content {
        padding: 12px 12px 0;
    }

    /* Demo drawer mobile styles */
    .demo-drawer {
        margin: 0;
        border-radius: 0;
        border-left: none;
        border-right: none;
        padding: 1rem;
    }

    .demo-caption {
        font-size: 1rem;
    }

    .drawer-action {
        font-size: 0.85rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Hide duplicate badges/h1/subtitle in hero-content-phase on mobile */
    .hero-content-phase .hero-badges,
    .hero-content-phase h1,
    .hero-content-phase .esl-hero-subtitle {
        display: none;
    }

    /* Show subtitle in mobile-headline-wrapper on mobile */
    .mobile-subtitle {
        display: block !important;
        text-align: center;
        margin-top: 1rem;
    }

    .browser-window {
        border-radius: 8px;
    }

    /* Hide LinkedIn sidebar on mobile to save space */
    .linkedin-sidebar {
        display: none;
    }

    /* Window title with logo on mobile */
    .window-title {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.35rem;
        font-size: 0.7rem;
    }

    .window-title-logo.mobile-only {
        display: block;
        width: 20px;
        height: 20px;
    }

    /* Hide "Messaging" text on mobile, just show "LinkedIn" */
    .window-title-text {
        display: none;
    }

    .window-title::after {
        content: "LinkedIn";
        font-weight: 500;
    }

    .left-content-wrapper {
        order: 3;
        min-height: auto;
    }

    .left-content-wrapper .esl-hero-subtitle {
        max-width: 100%;
    }

    /* Center just the CTA button, not the text */
    .left-content-wrapper .esl-hero-cta {
        align-items: center;
    }

    /* Hide desktop headline on mobile */
    .hero-content-phase h1 {
        display: none;
    }

    .problem-grid,
    .features-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .transformation-card {
        grid-template-columns: 1fr;
    }

    .transformation-divider {
        width: 40px;
        height: 40px;
        transform: rotate(90deg);
        margin: 0 auto;
    }

    .hero-content-phase h1 {
        font-size: 2.25rem;
    }

    .section-header-centered h2,
    .problem-header h2 {
        font-size: 1.75rem;
    }

    .step-content h3 {
        font-size: 1.5rem;
    }

    .scroll-hint {
        display: none;
    }

    .hero-keyboard-showcase {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-keyboard {
        margin-top: 1rem;
    }

    .physical-keyboard {
        padding: 8px 10px 12px;
        transform: scale(0.85);
        transform-origin: top center;
    }

    .kb-row-fade-3,
    .kb-row-fade-2 {
        display: none;
    }
}

@media (max-width: 600px) {
    .esl-hero-pinned {
        padding: 5rem 1.5rem 3rem;
    }

    .esl-section {
        padding: 3rem 1.5rem;
    }

    .hero-content-phase h1 {
        font-size: 2rem;
    }

    .esl-hero-subtitle {
        font-size: 1.125rem;
    }

    .macos-content {
        padding: 1rem;
        min-height: 240px;
    }

    .tqf-hud {
        width: 280px;
        /* Position from top for mobile peek animation */
        bottom: auto;
        top: 30px;
    }

    .physical-keyboard {
        transform: scale(0.7);
        transform-origin: top center;
    }

    .kb-row-fade-1 {
        display: none;
    }

    .hero-keyboard-hint {
        margin-top: 0.5rem;
        font-size: 0.8125rem;
    }

    .hero-keyboard-showcase {
        padding: 1rem;
    }

    .hero-kbd-key {
        padding: 8px 12px;
        min-width: 56px;
    }

    .hero-kbd-key .key-symbol {
        font-size: 1rem;
    }

    .hero-kbd-key .key-label {
        font-size: 0.65rem;
    }

    .hero-kbd-result {
        font-size: 1rem;
    }

    .comparison-stats {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .comparison-stats .stat {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        padding: 0.5rem 0;
        border-bottom: 1px solid var(--esl-border);
    }

    .comparison-stats .stat:last-child {
        border-bottom: none;
    }
}

/* Silly Popup for clicking virtual keyboard */
.silly-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.silly-popup.show {
    opacity: 1;
    visibility: visible;
}

.silly-popup-content {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.silly-popup.show .silly-popup-content {
    transform: scale(1);
}

.silly-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
    animation: wiggle 0.5s ease-in-out;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

.silly-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--esl-text);
    margin-bottom: 0.5rem;
}

.silly-subtext {
    font-size: 1rem;
    color: var(--esl-text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.silly-subtext strong {
    color: var(--esl-primary);
}

.silly-dismiss {
    background: linear-gradient(135deg, var(--esl-primary) 0%, var(--esl-primary-dark) 100%);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.silly-dismiss:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(49, 130, 206, 0.4);
}

/* Make virtual control keys clickable */
.kb-key-ctrl {
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.1s;
}

.kb-key-ctrl:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.3);
}

/* Rate Limit Popup - Conversion opportunity */
.rate-limit-content {
    max-width: 440px;
}

.rate-limit-content .silly-text {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.rate-limit-content .silly-subtext {
    font-size: 1.0625rem;
    margin-bottom: 2rem;
}

.rate-limit-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    background: linear-gradient(135deg, #059669 0%, #10B981 50%, #34d399 100%);
    color: white;
    text-decoration: none;
    padding: 1rem 2rem;
    border: none;
    border-radius: 14px;
    font-size: 1.0625rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 8px 24px -4px rgba(16, 185, 129, 0.5),
        0 4px 12px rgba(16, 185, 129, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

.rate-limit-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}

.rate-limit-cta:hover {
    transform: translateY(-3px);
    box-shadow:
        0 12px 32px -4px rgba(16, 185, 129, 0.6),
        0 6px 16px rgba(16, 185, 129, 0.25);
}

.rate-limit-cta:active {
    transform: translateY(-1px);
    box-shadow:
        0 6px 16px -2px rgba(16, 185, 129, 0.4),
        0 3px 8px rgba(16, 185, 129, 0.2);
}

.rate-limit-cta svg {
    width: 20px;
    height: 20px;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.1));
}

/* Mobile-specific rate limit CTA */
@media (max-width: 768px) {
    .rate-limit-cta {
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
        width: 100%;
        max-width: 280px;
    }
}

.rate-limit-dismiss {
    display: block;
    background: none;
    border: none;
    color: var(--esl-text-secondary);
    font-size: 0.9375rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: color 0.2s;
}

.rate-limit-dismiss:hover {
    color: var(--esl-text);
}

/* Keyboard Hint Popup */
.keyboard-hint-content {
    max-width: 400px;
}

.keyboard-hint-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
}

.keyboard-hint-content .silly-text {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.keyboard-hint-content .silly-subtext {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.keyboard-hint-keys {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.hint-key {
    display: inline-flex;
    align-items: center;
    padding: 0.625rem 1rem;
    background: linear-gradient(180deg, #f8f8f8 0%, #e8e8e8 100%);
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hint-twice {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--esl-primary);
    margin-left: 0.5rem;
}

/* ============================================
   MOBILE EXPERIENCE
   ============================================ */

/* Hide mobile elements on desktop */
.mobile-control-wrapper {
    display: none;
}

/* Mobile: Show control wrapper, hide keyboard */
@media (max-width: 768px) {
    .hero-keyboard {
        display: none !important;
    }

    /* Hide desktop-specific guidance text */
    .guidance-initial .try-live-text kbd {
        display: none;
    }

    .guidance-initial .try-live-text::after {
        content: "Tap the control key below";
    }

    /* Show mobile control wrapper */
    .mobile-control-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-top: 1.5rem;
        padding: 0 1rem;
    }
}

/* Mobile Desktop Warning Banner */
.mobile-desktop-warning {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, rgba(49, 130, 206, 0.1) 0%, rgba(56, 178, 172, 0.1) 100%);
    border: 1px solid rgba(49, 130, 206, 0.2);
    border-radius: 10px;
    font-size: 0.875rem;
    color: var(--esl-text);
    text-align: center;
}

.mobile-desktop-warning svg {
    color: var(--esl-primary);
    flex-shrink: 0;
}

/* Mobile Control Button */
.mobile-control-button {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.mobile-control-button:active {
    transform: scale(0.95);
}

.mobile-control-button.pressed .mobile-control-key {
    transform: translateY(2px);
    box-shadow: 0 2px 8px rgba(49, 130, 206, 0.3);
    background: linear-gradient(180deg, var(--esl-primary) 0%, #2563eb 100%);
    border-color: var(--esl-primary);
}

.mobile-control-key {
    background: linear-gradient(180deg, #f5f5f7 0%, #e8e8ed 100%);
    border: 2px solid #c0c0c0;
    border-radius: 16px;
    padding: 1.5rem 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    box-shadow:
        0 6px 12px rgba(0, 0, 0, 0.15),
        0 3px 0 #b8b8b8,
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: all 0.15s ease;
}

.mobile-control-key .key-symbol {
    font-size: 2.5rem;
    font-weight: 400;
    color: #1d1d1f;
    line-height: 1;
}

.mobile-control-key .key-label {
    font-size: 1rem;
    font-weight: 500;
    color: #1d1d1f;
    text-transform: lowercase;
}

.mobile-tap-hint {
    font-size: 0.9375rem;
    color: var(--esl-text-secondary);
    font-weight: 500;
    animation: pulse-opacity 2s ease-in-out infinite;
}

@keyframes pulse-opacity {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* ============================================
   REMINDER MODAL
   ============================================ */

.reminder-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    padding: 0;
}

@media (min-width: 480px) {
    .reminder-modal {
        align-items: center;
        padding: 1rem;
    }
}

.reminder-modal.show {
    opacity: 1;
    visibility: visible;
}

.reminder-content {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 24px 24px 0 0;
    padding: 2rem 1.5rem;
    max-width: 100%;
    width: 100%;
    text-align: center;
    box-shadow: 0 -10px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

@media (min-width: 480px) {
    .reminder-content {
        border-radius: 24px;
        padding: 2rem;
        max-width: 400px;
        transform: scale(0.9) translateY(20px);
        transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    }
}

.reminder-modal.show .reminder-content {
    transform: scale(1) translateY(0);
}

.reminder-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--esl-text-secondary);
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    transition: color 0.2s;
}

.reminder-close:hover {
    color: var(--esl-text);
}

.reminder-icon {
    width: 72px;
    height: 72px;
    margin-bottom: 1.25rem;
    filter: drop-shadow(0 8px 16px rgba(49, 130, 206, 0.2));
    animation: reminder-icon-bounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

@keyframes reminder-icon-bounce {
    from {
        opacity: 0;
        transform: scale(0.5) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Bottom sheet drag handle for mobile */
.reminder-handle {
    display: none;
}

@media (max-width: 479px) {
    .reminder-handle {
        display: block;
        width: 40px;
        height: 5px;
        background: #d1d5db;
        border-radius: 3px;
        margin: 0 auto 1.25rem;
    }
}

.reminder-content h2 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--esl-text);
    margin-bottom: 0.5rem;
}

.reminder-subtitle {
    font-size: 0.9375rem;
    color: var(--esl-text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* Reminder Form */
#reminder-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#reminder-email {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--esl-border);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

#reminder-email:focus {
    outline: none;
    border-color: var(--esl-primary);
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

/* Time Presets */
.time-presets {
    text-align: left;
}

.time-presets-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--esl-text);
    margin-bottom: 0.625rem;
}

.time-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.time-btn {
    flex: 1;
    min-width: 60px;
    padding: 0.75rem 0.625rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--esl-text);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    position: relative;
}

.time-btn:hover {
    border-color: var(--esl-primary);
    background: linear-gradient(180deg, #f0f9ff 0%, #e0f2fe 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(49, 130, 206, 0.12);
}

.time-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.time-btn.selected {
    background: linear-gradient(135deg, var(--esl-primary) 0%, #0ea5e9 100%);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.35);
    transform: translateY(-1px);
}

.time-btn.selected:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(49, 130, 206, 0.4);
}

/* Period Selection */
.period-buttons {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.period-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0.875rem 0.5rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.period-btn:hover {
    border-color: var(--esl-primary);
    background: linear-gradient(180deg, #f0f9ff 0%, #e0f2fe 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.15);
}

.period-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.period-btn.selected {
    background: linear-gradient(135deg, var(--esl-primary) 0%, #0ea5e9 100%);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 14px rgba(49, 130, 206, 0.4);
    transform: translateY(-1px);
}

.period-btn.selected:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(49, 130, 206, 0.5);
}

.period-icon {
    font-size: 1.5rem;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.period-name {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Time Slots - show only active period with animation */
.time-slots {
    margin-bottom: 1rem;
}

.time-slots .time-buttons {
    display: none;
}

.time-slots .time-buttons.active {
    display: flex;
    animation: time-slots-enter 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes time-slots-enter {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger time button animations */
.time-slots .time-buttons.active .time-btn {
    animation: time-btn-enter 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.time-slots .time-buttons.active .time-btn:nth-child(1) { animation-delay: 0.05s; }
.time-slots .time-buttons.active .time-btn:nth-child(2) { animation-delay: 0.1s; }
.time-slots .time-buttons.active .time-btn:nth-child(3) { animation-delay: 0.15s; }
.time-slots .time-buttons.active .time-btn:nth-child(4) { animation-delay: 0.2s; }
.time-slots .time-buttons.active .time-btn:nth-child(5) { animation-delay: 0.25s; }

@keyframes time-btn-enter {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Submit Button */
.reminder-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    width: 100%;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #059669 0%, #10B981 50%, #34d399 100%);
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 700;
    color: white;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 6px 20px -4px rgba(16, 185, 129, 0.5),
        0 2px 8px rgba(16, 185, 129, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    position: relative;
    overflow: hidden;
}

.reminder-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}

.reminder-submit:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 24px -4px rgba(16, 185, 129, 0.6),
        0 4px 12px rgba(16, 185, 129, 0.25);
}

.reminder-submit:active {
    transform: translateY(0);
    box-shadow:
        0 4px 12px -2px rgba(16, 185, 129, 0.4),
        0 2px 6px rgba(16, 185, 129, 0.2);
}

.reminder-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.2);
}

.reminder-submit svg {
    width: 18px;
    height: 18px;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.1));
}

/* Success State */
.reminder-success {
    padding: 1rem 0;
}

.reminder-success svg {
    color: #059669;
    margin-bottom: 1rem;
}

.reminder-success h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--esl-text);
    margin-bottom: 0.5rem;
}

.reminder-success p {
    font-size: 0.9375rem;
    color: var(--esl-text-secondary);
    line-height: 1.6;
}

/* Dismiss Button */
.reminder-dismiss {
    display: block;
    margin-top: 1rem;
    background: none;
    border: none;
    color: var(--esl-text-secondary);
    font-size: 0.9375rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    transition: color 0.2s;
}

.reminder-dismiss:hover {
    color: var(--esl-text);
}

/* Hide form after success */
.reminder-content.success #reminder-form,
.reminder-content.success .reminder-dismiss {
    display: none;
}

.reminder-content.success #reminder-success {
    display: block !important;
}

/* ===== NEW SECTIONS FROM ASSISTANT.NJK ===== */

/* Hero Badges Container */
/* Staggered fade-in animation for hero elements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.hero-content-phase h1 {
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.esl-hero-subtitle {
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.hero-keyboard-showcase {
    animation: fadeInUp 0.6s ease-out 0.35s both;
}

.esl-hero-cta {
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--esl-primary);
    background: rgba(56, 178, 172, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.hero-badge-github {
    background: #1a1a2e;
    color: white;
}

.hero-badge-github:hover {
    background: #24243e;
    transform: translateY(-1px);
}

.hero-badge-github svg {
    flex-shrink: 0;
}

/* Section Labels */
.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--esl-primary);
    background: rgba(56, 178, 172, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 900;
    color: var(--esl-text);
    margin-bottom: 3rem;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

/* Pain Points Section */
.pain-points {
    padding: 5rem 2rem;
    background: var(--esl-surface);
}

.pain-points .container {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.pain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.pain-card {
    background: var(--esl-bg);
    padding: 2rem;
    border-radius: 1rem;
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.pain-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.pain-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 1rem;
    object-fit: contain;
}

.pain-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--esl-text);
    margin-bottom: 0.75rem;
}

.pain-card p {
    font-size: 1rem;
    color: var(--esl-text-secondary);
    line-height: 1.6;
}

/* How It Works Section */
.how-it-works {
    padding: 5rem 2rem;
    background: var(--esl-bg);
}

.how-it-works .container {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.step {
    text-align: center;
    padding: 2rem;
    background: var(--esl-bg);
    border-radius: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.step:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.step-number {
    width: 3rem;
    height: 3rem;
    background: var(--esl-primary);
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.step h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--esl-text);
    margin-bottom: 0.75rem;
}

.step p {
    font-size: 1rem;
    color: var(--esl-text-secondary);
    line-height: 1.6;
}

/* Benefits Section */
.benefits {
    padding: 5rem 2rem;
    background: var(--esl-surface);
}

.benefits .container {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.benefit {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    text-align: left;
    padding: 1.5rem;
    background: var(--esl-bg);
    border-radius: 1rem;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.benefit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.benefit-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    object-fit: contain;
}

.benefit-icon-svg {
    color: #1a1a2e;
}

.benefit h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--esl-text);
    margin-bottom: 0.5rem;
}

.benefit p {
    font-size: 0.9375rem;
    color: var(--esl-text-secondary);
    line-height: 1.5;
}

/* Testimonials / Use Cases Section */
.testimonials {
    padding: 5rem 2rem;
    background: var(--esl-bg);
}

.testimonials .container {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.testimonial {
    background: var(--esl-surface);
    padding: 2rem;
    border-radius: 1rem;
    text-align: left;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.testimonial-text {
    font-size: 1rem;
    color: var(--esl-text);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-style: italic;
    flex: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(56, 178, 172, 0.1);
    padding: 8px;
    object-fit: contain;
    flex-shrink: 0;
}

.testimonial-name {
    font-weight: 700;
    color: var(--esl-text);
    font-size: 1rem;
}

.testimonial-role {
    font-size: 0.875rem;
    color: var(--esl-text-secondary);
}

/* Pricing Section */
.pricing-preview {
    padding: 5rem 2rem;
    background: var(--esl-surface);
}

.pricing-preview .container {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.price-card {
    max-width: 400px;
    margin: 2rem auto 0;
    background: var(--esl-bg);
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--esl-primary);
    display: flex;
    flex-direction: column;
}

.price-card .price-features {
    flex: 1;
}

.price-card .btn-primary,
.price-card .enterprise-cta,
.price-card .selfhosted-cta {
    margin-top: auto;
}

.price-amount {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--esl-text);
    margin-bottom: 1.5rem;
}

.price-amount-small {
    font-size: 1.75rem;
    font-weight: 700;
}

.price-amount span {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--esl-text-secondary);
}

.price-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    text-align: left;
}

.price-features li {
    padding: 0.75rem 0;
    font-size: 1rem;
    color: var(--esl-text);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.price-features li::before {
    content: "✓";
    color: var(--esl-primary);
    font-weight: 700;
}

.price-features li:last-child {
    border-bottom: none;
}

/* Beta pricing card */
.beta-card {
    position: relative;
    overflow: hidden;
}

.beta-banner {
    position: absolute;
    top: 20px;
    left: -40px;
    background: linear-gradient(90deg, #FFD700, #FFA500);
    color: #000;
    padding: 0.4rem 3rem;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transform: rotate(-15deg);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.beta-note {
    color: var(--esl-text-secondary);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.beta-future {
    font-size: 0.85rem;
    color: var(--esl-text-secondary);
    margin-bottom: 1.5rem;
    padding-top: 0.5rem;
}

/* Pricing grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 800px;
    margin: 2rem auto 0;
}

.pricing-grid-3 {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1100px;
}

.price-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--esl-text);
}

.price-period {
    font-size: 1rem;
    font-weight: 400;
    color: var(--esl-text-secondary);
}

.price-trial {
    font-size: 0.875rem;
    color: var(--esl-primary);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* Starter card */
.starter-card {
    border: 2px solid var(--esl-primary);
}

.starter-note {
    color: var(--esl-text-secondary);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

/* Self-hosted card */
.selfhosted-card {
    background: #f8fafc;
    border-color: var(--esl-border);
}

.selfhosted-note {
    color: var(--esl-text-secondary);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.selfhosted-warning {
    font-size: 0.75rem;
    color: var(--esl-text-secondary);
    background: rgba(0,0,0,0.03);
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.selfhosted-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1rem 2rem;
    background: transparent;
    color: var(--esl-text);
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid var(--esl-border);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s;
}

.selfhosted-cta:hover {
    border-color: var(--esl-primary);
    color: var(--esl-primary);
    transform: translateY(-2px);
}

/* Enterprise card */
.enterprise-card {
    background: linear-gradient(135deg, #09213F, #1a3a5f);
    border-color: #09213F;
    color: white;
}

.enterprise-card .price-title {
    color: white;
}

.enterprise-card .price-amount {
    color: white;
    font-size: 2rem;
}

.enterprise-note {
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.enterprise-card .price-features {
    color: rgba(255,255,255,0.9);
}

.enterprise-card .price-features li {
    color: rgba(255,255,255,0.9);
    border-bottom-color: rgba(255,255,255,0.1);
}

.enterprise-card .price-features li::before {
    color: #4FD1C5;
}

.enterprise-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1rem 2rem;
    background: white;
    color: #09213F;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 12px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.enterprise-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

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

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

/* CTA Section */
.cta-section {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, var(--esl-primary) 0%, #2C7A7B 100%);
    text-align: center;
}

.cta-section .container {
    max-width: 1100px;
    margin: 0 auto;
}

.cta-section h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    color: var(--esl-primary);
    font-size: 1.125rem;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Mobile Responsive Adjustments for New Sections */
@media (max-width: 768px) {
    .pain-points,
    .how-it-works,
    .benefits,
    .testimonials,
    .pricing-preview,
    .cta-section {
        padding: 3rem 1rem;
    }

    .section-title {
        margin-bottom: 2rem;
    }

    .pain-grid,
    .steps,
    .testimonial-grid {
        gap: 1.5rem;
    }

    .benefit-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .pain-card,
    .step,
    .benefit,
    .testimonial {
        padding: 1.5rem;
    }

    .price-card {
        padding: 2rem 1.5rem;
    }

    .price-amount {
        font-size: 2.5rem;
    }

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

/* ===== SCROLL ANIMATIONS ===== */

/* Fade-up animation for sections */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered entrance for cards */
.pain-card,
.step,
.benefit,
.testimonial {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.pain-card:nth-child(1) { animation-delay: 0.1s; }
.pain-card:nth-child(2) { animation-delay: 0.2s; }
.pain-card:nth-child(3) { animation-delay: 0.3s; }

.step:nth-child(1) { animation-delay: 0.1s; }
.step:nth-child(2) { animation-delay: 0.2s; }
.step:nth-child(3) { animation-delay: 0.3s; }

.benefit:nth-child(1) { animation-delay: 0.1s; }
.benefit:nth-child(2) { animation-delay: 0.2s; }
.benefit:nth-child(3) { animation-delay: 0.3s; }
.benefit:nth-child(4) { animation-delay: 0.4s; }

.testimonial:nth-child(1) { animation-delay: 0.1s; }
.testimonial:nth-child(2) { animation-delay: 0.2s; }
.testimonial:nth-child(3) { animation-delay: 0.3s; }

/* Section titles fade in */
.section-label,
.section-title {
    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards;
}

/* ===== ENHANCED HOVER STATES ===== */

/* Pain cards - lift with glow */
.pain-card {
    position: relative;
    overflow: hidden;
}

.pain-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(56, 178, 172, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pain-card:hover::before {
    opacity: 1;
}

.pain-card:hover {
    border-color: rgba(56, 178, 172, 0.2);
}

/* Step numbers - pulse on hover */
.step:hover .step-number {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(56, 178, 172, 0.4);
}

.step-number {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Benefits - icon glow */
.benefit:hover .benefit-icon {
    filter: drop-shadow(0 0 8px rgba(56, 178, 172, 0.4));
}

.benefit-icon {
    transition: filter 0.3s ease;
}

/* Testimonials - subtle border glow */
.testimonial {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.testimonial:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(56, 178, 172, 0.15);
    border-color: rgba(56, 178, 172, 0.3);
}

/* Price card - glow effect */
.price-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.price-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(56, 178, 172, 0.2);
}

/* CTA button - enhanced hover */
.cta-button {
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.cta-button:hover::before {
    transform: translateX(100%);
}

/* ===== DECORATIVE ELEMENTS ===== */

/* Floating accent shapes for visual interest */
.pain-points,
.benefits {
    position: relative;
    overflow: hidden;
}

.pain-points::after,
.benefits::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 178, 172, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.pain-points::after {
    top: -200px;
    right: -200px;
}

.benefits::after {
    bottom: -200px;
    left: -200px;
}

/* ===== OPEN SOURCE BADGE & SECTION ===== */

/* Open Source Badge in Hero */
.open-source-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 100px;
    text-decoration: none;
    margin-top: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.open-source-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #24243e 0%, #1e2f4d 100%);
}

.open-source-badge svg {
    width: 18px;
    height: 18px;
}

/* Mobile headline open source badge */
.mobile-headline-wrapper .open-source-badge {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    padding: 0.4rem 0.875rem;
}

.mobile-headline-wrapper .open-source-badge svg {
    width: 16px;
    height: 16px;
}

/* Open Source Section */
.open-source-section {
    padding: 5rem 2rem;
    background: linear-gradient(180deg, #ffffff 0%, var(--esl-surface) 100%);
    position: relative;
    overflow: hidden;
}

.open-source-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--esl-primary) 50%, transparent 100%);
    opacity: 0.3;
}

.open-source-section .container {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.open-source-section .section-subtitle {
    font-size: 1.125rem;
    color: var(--esl-text-secondary);
    max-width: 700px;
    margin: -1.5rem auto 3rem;
    line-height: 1.7;
}

.open-source-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.open-source-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: left;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* Colored backgrounds for feature cards - Typotab style */
.open-source-card:nth-child(1) {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}
.open-source-card:nth-child(2) {
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
}
.open-source-card:nth-child(3) {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
}
.open-source-card:nth-child(4) {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.open-source-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.os-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(56, 178, 172, 0.1) 0%, rgba(56, 178, 172, 0.05) 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--esl-primary);
    transition: all 0.3s ease;
}

.open-source-card:hover .os-icon {
    background: linear-gradient(135deg, var(--esl-primary) 0%, var(--esl-primary-dark) 100%);
    color: white;
    transform: scale(1.05);
}

.open-source-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--esl-text);
    margin-bottom: 0.75rem;
}

.open-source-card p {
    font-size: 1rem;
    color: var(--esl-text-secondary);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex: 1;
}

.os-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--esl-primary);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.os-link:hover {
    gap: 0.75rem;
    color: var(--esl-primary-dark);
}

.os-link svg {
    transition: transform 0.2s ease;
}

.os-link:hover svg {
    transform: translateX(4px);
}

/* Mobile responsive for open source section */
@media (max-width: 900px) {
    .open-source-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .open-source-section {
        padding: 3rem 1rem;
    }

    .open-source-section .section-subtitle {
        margin: -1rem auto 2rem;
        font-size: 1rem;
    }

    .open-source-card {
        padding: 1.5rem;
    }
}

/* Animation for open source cards */
.open-source-card {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.open-source-card:nth-child(1) { animation-delay: 0.1s; }
.open-source-card:nth-child(2) { animation-delay: 0.2s; }
.open-source-card:nth-child(3) { animation-delay: 0.3s; }
