/* ============================================
   FXbuddy Landing Page - Neumorphic Design System
   ============================================ */

html {
    scroll-behavior: smooth;
}

:root {
    /* Colors */
    --bg-base: #eef0f5;
    --text-primary: #000000;
    --text-secondary: #6b7280;
    --text-tertiary: #8a8a8a;
    --accent: #000000;

    /* Shadows - Neumorphic Light */
    --shadow-raised: 9px 9px 16px rgb(163,177,198,0.6), -9px -9px 16px rgba(255,255,255, 0.5);
    --shadow-pressed: inset 6px 6px 10px 0 rgba(163,177,198, 0.7), inset -6px -6px 10px 0 rgba(255,255,255, 0.8);
    --shadow-icon: 5px 5px 10px #babecc, -5px -5px 10px #ffffff;
    --shadow-button: 6px 6px 12px #b8b9be, -6px -6px 12px #ffffff;
    --shadow-button-active: inset 4px 4px 8px #b8b9be, inset -4px -4px 8px #ffffff;

    /* Mascot */
    --mascot-body: #000000;
    --mascot-face: #ffffff;
    --mascot-glare: rgba(255, 255, 255, 0.2);

    /* Typography */
    --font-display: 'Syne', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing & Radius */
    --radius-lg: 20px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --radius-pill: 9999px;
}

/* ── Dark Mode ── */
.dark {
    --bg-base: #232323;
    --text-primary: #e0e0e0;
    --text-secondary: #9ca3af;
    --text-tertiary: #6b7280;
    --accent: #ffffff;

    --shadow-raised: 6px 6px 12px #1a1a1a, -6px -6px 12px #2c2c2c;
    --shadow-pressed: inset 4px 4px 8px #1a1a1a, inset -4px -4px 8px #2c2c2c;
    --shadow-icon: 4px 4px 8px #1a1a1a, -4px -4px 8px #2c2c2c;
    --shadow-button: 4px 4px 10px #1a1a1a, -4px -4px 10px #2c2c2c;
    --shadow-button-active: inset 3px 3px 6px #1a1a1a, inset -3px -3px 6px #2c2c2c;

    --mascot-body: #ffffff;
    --mascot-face: #232323;
    --mascot-glare: rgba(0, 0, 0, 0.15);
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-body);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
    scroll-behavior: smooth;
}

/* Film Grain Overlay */
.film-grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.04;
    filter: url(#noiseFilter);
}

.hidden-svg {
    position: absolute;
    width: 0;
    height: 0;
}

/* ============================================
   Sticky Navigation Bar
   ============================================ */

.sticky-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 2rem;
    background: var(--bg-base);
    box-shadow: var(--shadow-raised);
}

.sticky-nav-brand {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.sticky-nav-beta {
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.5;
    margin-left: 0.35rem;
    vertical-align: middle;
}

.sticky-nav-cta {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--text-primary);
    color: var(--bg-base);
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 700;
    border-radius: var(--radius-pill);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 4px 4px 8px #b8b9be, -4px -4px 8px #ffffff;
}

.sticky-nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 6px 6px 12px #b8b9be, -6px -6px 12px #ffffff;
}

.sticky-nav-cta:active {
    transform: translateY(0);
    box-shadow: var(--shadow-button-active);
}

@media (max-width: 768px) {
    .sticky-nav {
        padding: 0.625rem 1rem;
    }
    .sticky-nav-brand {
        font-size: 1rem;
    }
    .sticky-nav-cta {
        font-size: 0.8125rem;
        padding: 0.4375rem 1.25rem;
    }
}

/* ── Dark Mode Toggle Button ── */

.sticky-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dark-mode-toggle {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: var(--bg-base);
    box-shadow: var(--shadow-button);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    color: var(--text-secondary);
    padding: 0;
}

.dark-mode-toggle:hover {
    box-shadow: var(--shadow-button-active);
    color: var(--text-primary);
}

.dark-mode-toggle:active {
    transform: scale(0.95);
}

.dark-mode-toggle svg {
    width: 14px;
    height: 14px;
}

.dark-mode-toggle .icon-sun { display: none; }
.dark-mode-toggle .icon-moon { display: block; }
.dark .dark-mode-toggle .icon-sun { display: block; }
.dark .dark-mode-toggle .icon-moon { display: none; }

/* ── Dark Mode: Hardcoded Color Overrides ── */

.dark .sticky-nav-cta {
    box-shadow: var(--shadow-button);
}
.dark .sticky-nav-cta:hover {
    box-shadow: 6px 6px 14px #1a1a1a, -6px -6px 14px #2c2c2c;
}

/* ── Profile Icon & Dropdown ── */

.profile-icon {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: var(--bg-base);
    box-shadow: var(--shadow-button);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    color: var(--text-secondary);
    padding: 0;
}

.profile-icon:hover {
    box-shadow: var(--shadow-button-active);
    color: var(--text-primary);
}

.profile-icon:active {
    transform: scale(0.95);
}

.profile-icon svg {
    width: 14px;
    height: 14px;
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 2rem;
    width: 320px;
    background: var(--bg-base);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-raised);
    padding: 1.25rem;
    z-index: 1001;
    animation: profileDropIn 0.2s ease-out;
}

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

.profile-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.profile-email {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 180px;
}

.profile-plan-badge {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 3px 10px;
    border-radius: 9999px;
    background: var(--bg-base);
    box-shadow: var(--shadow-pressed);
    color: var(--text-secondary);
}

.profile-plan-badge[data-plan="pro"] {
    color: #6366f1;
    background: rgba(99, 102, 241, 0.08);
    box-shadow: none;
}

.profile-plan-badge[data-plan="studio"] {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.08);
    box-shadow: none;
}

.profile-plan-badge[data-plan="enterprise"] {
    color: #10b981;
    background: rgba(16, 185, 129, 0.08);
    box-shadow: none;
}

.profile-license-bar {
    background: var(--bg-base);
    box-shadow: var(--shadow-pressed);
    border-radius: var(--radius-md);
    padding: 0.625rem 0.75rem;
    margin-bottom: 0.75rem;
}

.profile-license-label {
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.profile-license-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-license-key {
    font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.05em;
    user-select: all;
}

.profile-license-copy {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 2px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    transition: color 0.15s, background 0.15s;
}

.profile-license-copy:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

.profile-license-hint {
    font-size: 0.5625rem;
    color: var(--text-tertiary, var(--text-secondary));
    margin-top: 0.25rem;
    opacity: 0.7;
}

.profile-credits-bar {
    background: var(--bg-base);
    box-shadow: var(--shadow-pressed);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    margin-bottom: 0.75rem;
}

.profile-credits-label {
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.profile-credits-row {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.profile-credits-total {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
}

.profile-credits-detail {
    font-size: 0.6875rem;
    color: var(--text-secondary);
}

.profile-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--text-secondary), transparent);
    opacity: 0.15;
    margin: 0.75rem 0;
}

.profile-section-title {
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.profile-packs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.375rem;
}

.profile-pack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.125rem;
    padding: 0.625rem 0.375rem;
    background: var(--bg-base);
    box-shadow: var(--shadow-button);
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.profile-pack:hover {
    box-shadow: var(--shadow-button-active);
}

.profile-pack:active {
    transform: scale(0.97);
}

.profile-pack-credits {
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-primary);
}

.profile-pack-label {
    font-size: 0.5625rem;
    color: var(--text-secondary);
}

.profile-pack-price {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 0.125rem;
}

.profile-pack-note {
    font-size: 0.5625rem;
    color: var(--text-secondary);
    text-align: center;
}

.profile-autobuy-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.profile-autobuy-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
}

.profile-autobuy-desc {
    font-size: 0.625rem;
    color: var(--text-secondary);
    margin-top: 0.125rem;
}

.profile-toggle {
    position: relative;
    width: 36px;
    height: 20px;
    border-radius: 10px;
    border: none;
    background: var(--bg-base);
    box-shadow: var(--shadow-pressed);
    cursor: pointer;
    transition: background 0.2s ease;
    flex-shrink: 0;
    padding: 0;
}

.profile-toggle.active {
    background: #28c840;
    box-shadow: none;
}

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

.profile-toggle.active .profile-toggle-knob {
    transform: translateX(16px);
}

.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.profile-action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.625rem 0.75rem;
    background: var(--bg-base);
    box-shadow: var(--shadow-button);
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.profile-action-btn:hover {
    box-shadow: var(--shadow-button-active);
}

.profile-action-btn:active {
    transform: scale(0.98);
}

.profile-action-btn--danger {
    color: var(--text-secondary);
    font-weight: 500;
}

.profile-action-btn--danger:hover {
    color: #ef4444;
}

@media (max-width: 768px) {
    .profile-dropdown {
        right: 1rem;
        width: calc(100vw - 2rem);
        max-width: 320px;
    }
}

/* Mascot bodies */
.dark .mascot-body,
.dark .panel-mascot-body,
.dark .cta-mascot-body,
.dark .editor-fx-mascot {
    background-color: var(--mascot-body);
}

.dark .mascot-glare,
.dark .panel-mascot-glare,
.dark .cta-mascot-glare {
    background-color: var(--mascot-glare);
}

/* Mascot eye fills swap to dark background */
.dark .eye-oval,
.dark .panel-eye-oval,
.dark .cta-eye-oval {
    fill: var(--mascot-face);
}
.dark .eye-path,
.dark .panel-eye-path,
.dark .cta-eye-path {
    stroke: var(--mascot-face);
}

/* Mascot shadow references */
.dark .panel-mascot-body {
    box-shadow: 3px 3px 6px #1a1a1a, -3px -3px 6px #2c2c2c;
}
.dark .cta-mascot-body {
    box-shadow: 3px 3px 6px #1a1a1a, -3px -3px 6px #2c2c2c;
}

/* Speech bubbles */
.dark .mascot-bubble,
.dark .mascot-bubble-second {
    box-shadow: 2px 2px 5px #1a1a1a, -2px -2px 5px #2c2c2c;
}
.dark .cta-mascot-bubble {
    box-shadow: 2px 2px 5px #1a1a1a, -2px -2px 5px #2c2c2c;
}

/* Editor mock FX panel */
.dark .editor-fx-panel {
    background: var(--bg-base);
}
.dark .editor-fx-tab.active {
    background: var(--bg-base);
    box-shadow: var(--shadow-pressed);
    color: var(--text-primary);
}
.dark .editor-fx-mascot {
    box-shadow: 3px 3px 6px #1a1a1a, -3px -3px 6px #2c2c2c;
}
.dark .editor-fx-eye {
    background: var(--mascot-face);
}
.dark .editor-fx-heading {
    color: var(--text-primary);
}
.dark .editor-fx-input {
    background: var(--bg-base);
    box-shadow: var(--shadow-pressed);
    color: var(--text-secondary);
}
.dark .editor-fx-wand {
    background: var(--bg-base);
    box-shadow: var(--shadow-icon);
    color: var(--text-secondary);
}
.dark .editor-fx-dur-btn.active {
    background: var(--bg-base);
    box-shadow: var(--shadow-pressed);
    color: var(--text-primary);
}
.dark .editor-fx-dur-btn:not(.active) { color: var(--text-secondary); }
.dark .editor-fx-dur-label,
.dark .editor-fx-dur-credits {
    color: var(--text-secondary);
}
.dark .editor-fx-icon-btn {
    background: var(--bg-base);
    box-shadow: var(--shadow-icon);
    color: var(--text-secondary);
}
.dark .editor-fx-gen-btn {
    background: var(--bg-base);
    box-shadow: var(--shadow-button);
    color: var(--text-primary);
}
.dark .editor-fx-progress {
    background: var(--bg-base);
    box-shadow: var(--shadow-pressed);
}
.dark .editor-fx-progress-fill {
    background: var(--text-primary);
}
.dark .editor-fx-footer {
    color: rgba(255,255,255,0.2);
}

/* Toast inset shadows */
.dark .story-toast-icon {
}

/* Pricing card hover shadows */
.dark .pricing-card:hover {
    box-shadow: 8px 8px 16px #1a1a1a, -8px -8px 16px #2c2c2c;
}
.dark .pricing-card.featured {
    box-shadow: 10px 10px 20px #1a1a1a, -10px -10px 20px #2c2c2c;
}
.dark .pricing-card.featured:hover {
    box-shadow: 12px 12px 24px #1a1a1a, -12px -12px 24px #2c2c2c;
}
.dark .pricing-badge {
    box-shadow: 4px 4px 8px #1a1a1a, -4px -4px 8px #2c2c2c;
}
.dark .pricing-card.featured .pricing-cta-btn {
    box-shadow: var(--shadow-button);
}
.dark .pricing-card.featured .pricing-cta-btn:hover {
    box-shadow: inset 3px 3px 6px rgba(255,255,255,0.1), inset -3px -3px 6px rgba(0,0,0,0.3);
}

/* Pricing toggle */
.dark .pricing-toggle-switch {
    box-shadow: var(--shadow-pressed);
}
.dark .pricing-toggle-knob {
    box-shadow: 2px 2px 4px #1a1a1a;
}

/* Cost card shadows */
.dark .cost-card--new {
    box-shadow: 8px 8px 16px #1a1a1a, -8px -8px 16px #2c2c2c;
}
.dark .cost-line {
    box-shadow: var(--shadow-pressed);
}
.dark .cost-line--total {
    box-shadow: var(--shadow-button);
}
.dark .cost-line--highlight {
    box-shadow: var(--shadow-button);
}

/* Proof card hover */
.dark .proof-card:hover {
    box-shadow: 8px 8px 16px #1a1a1a, -8px -8px 16px #2c2c2c;
}

/* Beliefs card hover */
.dark .beliefs-card:hover {
    box-shadow: 8px 8px 16px #1a1a1a, -8px -8px 16px #2c2c2c;
}

/* Stack CTA, Founding CTA, Final CTA */
.dark .stack-cta,
.dark .founding-cta {
    box-shadow: var(--shadow-button);
}
.dark .stack-cta:hover,
.dark .founding-cta:hover {
    box-shadow: inset 3px 3px 6px rgba(255,255,255,0.1), inset -3px -3px 6px rgba(0,0,0,0.3);
}

.dark .final-cta-button {
    box-shadow: var(--shadow-button);
}
.dark .final-cta-button:hover {
    box-shadow: 6px 6px 14px #1a1a1a, -6px -6px 14px #2c2c2c;
}

/* CTA subscribe button */
.dark .cta-subscribe-btn {
    box-shadow: var(--shadow-button);
}
.dark .cta-subscribe-btn:hover {
    box-shadow: inset 3px 3px 6px rgba(255,255,255,0.1), inset -3px -3px 6px rgba(0,0,0,0.3);
}

/* Panel textarea focus */
.dark .panel-textarea:focus {
    box-shadow: inset 4px 4px 8px #1a1a1a, inset -4px -4px 8px #2c2c2c, 0 0 0 2px rgba(255,255,255,0.06);
}

/* Email input focus */
.dark input[type="email"]:focus {
    box-shadow: inset 4px 4px 8px #1a1a1a, inset -4px -4px 8px #2c2c2c, 0 0 0 2px rgba(255,255,255,0.06);
}

/* Spinner ring */
.dark .spinner-ring {
    border-color: rgba(255,255,255,0.15);
    border-top-color: var(--text-primary);
}

/* Focus outlines */
.dark .panel-card button:focus-visible,
.dark .panel-card textarea:focus-visible {
    outline-color: rgba(255,255,255,0.15);
}
.dark .panel-tab:focus-visible {
    outline-color: rgba(255,255,255,0.15);
}

/* ============================================
   Layout
   ============================================ */

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* ============================================
   Story Hero (scroll-triggered scenes)
   ============================================ */

.story-hero {
    position: relative;
    z-index: 1;
    height: 500vh;
}

.story-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    contain: layout style;
}

/* Mascot: centered, fixed position within sticky */
.story-mascot {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    opacity: 1;
    animation: none;
}

.story-bubble {
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.story-bubble.hidden {
    opacity: 0 !important;
    transform: translateY(8px);
}

/* Scene panels - positioned on alternating sides */
.story-scene {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 400px;
    opacity: 0;
    pointer-events: none;
    will-change: opacity, transform;
    z-index: 5;
}

/* Left panels (scenes 0, 2) */
.story-scene[data-scene="0"],
.story-scene[data-scene="2"] {
    left: 8%;
    align-items: flex-start;
    text-align: left;
}

/* Right panels (scenes 1, 3) */
.story-scene[data-scene="1"],
.story-scene[data-scene="3"] {
    right: 8%;
    align-items: flex-end;
    text-align: right;
}

/* Brand Reveal Section (standalone, between Editors and Beliefs) */
.brand-reveal-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem;
    background: var(--bg-base);
}

.brand-reveal-inner {
    text-align: center;
    max-width: 600px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

/* Scroll-triggered entrance: hidden by default, animate on .visible */
.brand-reveal-section .char {
    animation: none;
}
.brand-reveal-section .created-by {
    animation: none;
}
.brand-reveal-section .text-cluster {
    animation: none;
}
.brand-reveal-section.visible .char {
    animation: char-enter 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: calc(0.1s + (var(--char-index) * 0.06s));
}
.brand-reveal-section.visible .created-by {
    animation: fade-in 0.6s ease-out forwards;
    animation-delay: 0.6s;
}
.brand-reveal-section.visible .text-cluster {
    animation: fade-up 0.6s ease-out forwards;
    animation-delay: 0.8s;
}

/* Scene 4: See how it works - full-width centered layout */
.scene4-layout {
    left: 50% !important;
    transform: translateX(-50%) !important;
    align-items: center !important;
    text-align: center !important;
    max-width: 960px !important;
    width: 92% !important;
    top: 28% !important;
}

.scene4-cta {
    margin-top: 1rem;
    padding: 0.75rem 2rem;
    font-size: 0.9375rem;
}

.scene4-heading {
    margin-bottom: 1.25rem;
}

.scene4-video-wrap {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}

.scene4-video-wrap video {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-raised);
    background: #000;
    display: block;
}

.story-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-align: inherit;
}

.story-app-logos {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.story-app-logos .app-icon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
}

.story-line--big {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.story-line--sub {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin: 0;
    max-width: 480px;
    line-height: 1.6;
}

/* Right panels: push sub text to the right */
.story-scene[data-scene="1"] .story-line--sub,
.story-scene[data-scene="3"] .story-line--sub {
    margin-left: auto;
}

/* Decorative: App badges (Scene 2) */
.story-decor--apps {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Right panels: align decorations */
.story-scene[data-scene="1"] .story-decor--apps,
.story-scene[data-scene="3"] .story-decor--apps {
    justify-content: flex-end;
}

/* Decorative: Prompt pills (Scene 3) */
.story-decor--prompts {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 540px;
}

.story-scene[data-scene="1"] .story-decor--prompts,
.story-scene[data-scene="3"] .story-decor--prompts {
    justify-content: flex-end;
}

/* Mobile: center everything */
@media (max-width: 768px) {
    .story-mascot {
        top: 22% !important;
        left: 50% !important;
    }

    .story-scene {
        left: 50% !important;
        right: auto !important;
        top: 38% !important;
        bottom: auto !important;
        text-align: center !important;
        align-items: center !important;
        max-width: 90%;
        /* JS handles transforms: translateX(-50%) + slide offset */
    }

    /* Scene 0: Center the Pr/Ae logos */
    .story-app-logos {
        justify-content: center;
    }

    /* Scene 1: Shrink editor mock so it doesn't overflow bottom */
    .story-decor--editor {
        max-width: 90%;
        transform: scale(0.82);
        transform-origin: top center;
    }

    .editor-body {
        height: 160px;
    }

    .editor-fx-panel {
        width: 120px;
        padding: 8px 6px;
        gap: 5px;
    }

    .editor-monitors {
        flex-direction: column;
    }

    /* Scene 4: Push content below mascot, spread out */
    .scene4-layout {
        top: 32% !important;
        max-width: 95% !important;
    }

    .scene4-heading {
        font-size: 1.5rem !important;
    }

    .scene4-video-wrap {
        max-width: 85%;
    }

    .scene4-cta {
        margin-top: 0.75rem;
    }

    .story-scene .story-decor--prompts,
    .story-scene .story-decor--apps {
        justify-content: center !important;
    }

    .story-line--sub {
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .story-line--big {
        font-size: 1.75rem !important;
    }

    .story-prompt-preview {
        width: 120px;
        height: 75px;
    }

    .story-prompt-pill {
        font-size: 0.75rem;
        padding: 0.375rem 0.875rem;
    }

    /* Mobile-only scroll indicator */
    .mobile-only-indicator {
        display: flex !important;
    }

    .brand-reveal-section .brand-name {
        font-size: 2.5rem;
    }

    .brand-reveal-section .tagline {
        font-size: 1.1rem;
    }

    .brand-reveal-section .value-prop {
        font-size: 0.875rem;
    }

    .brand-reveal-inner {
        gap: 0.5rem;
    }
}

.story-prompt-pill {
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-pill);
    background: var(--bg-base);
    box-shadow: var(--shadow-raised);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* Decorative: Sparkles (Scene 4) - kept in upper area behind heading */
.story-decor--sparkles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 55%;
    pointer-events: none;
    z-index: 0;
}

.story-sparkle {
    position: absolute;
    font-size: 1.5rem;
    color: var(--text-primary);
    opacity: 0.2;
    animation: sparkle-float 3s ease-in-out infinite;
}

.story-sparkle--1 { top: 30%; left: 18%; animation-delay: 0s; }
.story-sparkle--2 { top: 22%; right: 20%; animation-delay: 0.6s; font-size: 1rem; }
.story-sparkle--3 { top: 55%; left: 22%; animation-delay: 1.2s; font-size: 1.25rem; }
.story-sparkle--4 { top: 48%; right: 18%; animation-delay: 0.3s; }
.story-sparkle--5 { top: 38%; right: 30%; animation-delay: 0.9s; font-size: 0.875rem; }

@keyframes sparkle-float {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.2; }
    50% { transform: translateY(-8px) scale(1.2); opacity: 0.5; }
}

/* ── Premiere Pro Editor Mock (Scene 2) ── */

.story-decor--editor {
    width: 100%;
    max-width: 520px;
    margin-top: 0.5rem;
}

.editor-mock {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.18), 0 0 0 1px rgba(0,0,0,0.04);
}

.editor-titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    background: #1a1a1a;
    border-bottom: 1px solid #2a2a2a;
}

.editor-dots {
    display: flex;
    gap: 6px;
}

.editor-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.editor-dot-r { background: #ff5f57; }
.editor-dot-y { background: #ffbd2e; }
.editor-dot-g { background: #28c840; }

.editor-titlebar-title {
    font-size: 0.625rem;
    font-weight: 500;
    color: rgba(255,255,255,0.45);
    display: flex;
    align-items: center;
    gap: 6px;
}

.editor-titlebar-title .app-icon {
    width: 14px;
    height: 14px;
}

.editor-dots-placeholder {
    width: 48px;
}

.editor-body {
    display: flex;
    height: 280px;
}

.editor-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.editor-monitors {
    display: flex;
    flex: 1;
}

.editor-monitor {
    background: #1a1a1a;
    display: flex;
    flex-direction: column;
}

.editor-source {
    flex: 1;
    border-right: 1px solid #2a2a2a;
}

.editor-program {
    flex: 1;
}

.editor-program--full {
    flex: 1;
    width: 100%;
}

.editor-screen-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.editor-screen {
    flex: 1;
    margin: 4px;
    border-radius: 3px;
    background: #111;
    position: relative;
    min-height: 80px;
    overflow: hidden;
}

.editor-screen::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.02) 0%, transparent 70%);
}

.editor-screen-label {
    position: absolute;
    top: 6px;
    left: 8px;
    font-size: 0.5rem;
    color: rgba(255,255,255,0.2);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    z-index: 1;
}

.editor-screen-timecode {
    position: absolute;
    bottom: 6px;
    right: 8px;
    font-size: 0.5625rem;
    color: rgba(255,255,255,0.25);
    font-family: monospace;
    z-index: 1;
}

.editor-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 4px 0 6px;
}

.editor-ctrl-btn {
    font-size: 0.4375rem;
    color: rgba(255,255,255,0.25);
}

.editor-ctrl-play {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(255,255,255,0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.4375rem;
    color: rgba(255,255,255,0.35);
}

/* ── Editor Timeline ── */

.editor-timeline {
    background: #1e1e1e;
    border-top: 1px solid #2a2a2a;
    padding: 6px 10px;
}

.editor-timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.editor-timeline-title {
    font-size: 0.5rem;
    color: rgba(255,255,255,0.3);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.editor-timeline-time {
    font-size: 0.5rem;
    color: rgba(255,255,255,0.18);
    font-family: monospace;
}

.editor-tracks-area {
    position: relative;
}

.editor-track {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 18px;
    margin-bottom: 2px;
}

.editor-track-label {
    font-size: 0.5rem;
    font-weight: 700;
    color: rgba(255,255,255,0.2);
    width: 18px;
    text-align: right;
    flex-shrink: 0;
}

.editor-clip {
    height: 100%;
    border-radius: 3px;
}

.editor-clip-v1 { flex: 3; background: #3a4a5c; }
.editor-clip-v2 { flex: 1.5; margin-left: 25%; background: #4a5a6c; }
.editor-clip-fx {
    flex: 1;
    margin-left: 18%;
    background: #7c5cbf;
    font-size: 0.4375rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    padding: 0 5px;
    letter-spacing: 0.02em;
    animation: editor-fx-glow 2s ease-in-out infinite;
}

@keyframes editor-fx-glow {
    0%, 100% { box-shadow: none; }
    50% { box-shadow: 0 0 8px rgba(124,92,191,0.5); }
}

.editor-clip-a1 { flex: 3; background: #2a5a3a; }

.editor-playhead {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 55%;
    width: 2px;
    background: #4a9eff;
    z-index: 2;
    animation: editor-playhead-move 4s ease-in-out infinite;
}

.editor-playhead::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    width: 8px;
    height: 8px;
    background: #4a9eff;
    border-radius: 50%;
}

@keyframes editor-playhead-move {
    0%, 100% { left: 35%; }
    50% { left: 70%; }
}

/* ── FXbuddy Docked Panel ── */

.editor-fx-panel {
    background: #eef0f5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    gap: 5px;
    padding: 8px 8px 4px;
    width: 160px;
    flex-shrink: 0;
    border-left: 1px solid #2a2a2a;
}

.editor-fx-tabs {
    display: flex;
    gap: 3px;
}

.editor-fx-tab {
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.5625rem;
    font-weight: 500;
    color: #8a8a8a;
    background: transparent;
}

.editor-fx-tab.active {
    background: #eef0f5;
    box-shadow: inset 2px 2px 4px rgba(163,177,198,0.5), inset -2px -2px 4px rgba(255,255,255,0.6);
    color: #000;
}

.editor-fx-mascot {
    width: 44px;
    height: 28px;
    background: var(--mascot-body);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    box-shadow: 3px 3px 6px rgba(163,177,198,0.5), -3px -3px 6px rgba(255,255,255,0.5);
}

.editor-fx-eye {
    width: 6px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.editor-fx-heading {
    font-family: var(--font-display);
    font-size: 0.5625rem;
    font-weight: 700;
    color: #000;
    text-align: center;
}

.editor-fx-input {
    width: 100%;
    min-height: 32px;
    background: #eef0f5;
    border-radius: 6px;
    box-shadow: inset 2px 2px 5px rgba(163,177,198,0.5), inset -2px -2px 5px rgba(255,255,255,0.6);
    padding: 6px 24px 6px 8px;
    font-size: 0.5625rem;
    color: #8a8a8a;
    position: relative;
    display: flex;
    align-items: center;
}

.editor-fx-wand {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: #eef0f5;
    box-shadow: 2px 2px 3px rgba(163,177,198,0.4), -2px -2px 3px rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.4375rem;
    color: #8a8a8a;
}

.editor-fx-duration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

.editor-fx-dur-label {
    font-size: 0.4375rem;
    color: #8a8a8a;
}

.editor-fx-dur-btn {
    padding: 2px 6px;
    border-radius: 999px;
    font-size: 0.4375rem;
    font-weight: 600;
}

.editor-fx-dur-btn.active {
    background: #eef0f5;
    box-shadow: inset 2px 2px 3px rgba(163,177,198,0.4), inset -2px -2px 3px rgba(255,255,255,0.5);
    color: #000;
}

.editor-fx-dur-btn:not(.active) {
    background: transparent;
    color: #8a8a8a;
}

.editor-fx-dur-credits {
    font-size: 0.4375rem;
    color: #8a8a8a;
}

.editor-fx-actions {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
}

.editor-fx-icon-btn {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #eef0f5;
    box-shadow: 2px 2px 5px rgba(163,177,198,0.4), -2px -2px 5px rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.5625rem;
    color: #6b7280;
}

.editor-fx-gen-btn {
    flex: 1;
    padding: 6px;
    border-radius: 999px;
    background: #eef0f5;
    box-shadow: 3px 3px 6px rgba(163,177,198,0.4), -3px -3px 6px rgba(255,255,255,0.5);
    font-size: 0.5625rem;
    font-weight: 700;
    color: #000;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.editor-fx-progress {
    width: 100%;
    height: 3px;
    background: #eef0f5;
    border-radius: 999px;
    box-shadow: inset 1px 1px 2px rgba(163,177,198,0.4), inset -1px -1px 2px rgba(255,255,255,0.5);
    overflow: hidden;
}

.editor-fx-progress-fill {
    height: 100%;
    width: 45%;
    background: #000;
    border-radius: 999px;
}

.editor-fx-footer {
    font-size: 0.4375rem;
    color: rgba(0,0,0,0.2);
    display: flex;
    justify-content: space-between;
    width: 100%;
}

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

/* ── Prompt Cards with GIF Previews (Scene 3) ── */

.story-prompt-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

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

.story-prompt-preview {
    width: 160px;
    height: 100px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-base);
    box-shadow: var(--shadow-raised);
}

.story-prompt-preview img,
.story-prompt-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

/* ── Scattered Video Cards (Scene 2) ── */

.scene2-videos {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 4;
    opacity: 0;
}

.scene2-card {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    opacity: 0;
    transform: scale(0.5) translateY(40px);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.scene2-videos.visible .scene2-card {
    opacity: 1;
    transform: scale(1) translateY(0) rotate(var(--rot, 0deg));
    animation: scene2-drift var(--drift-duration, 8s) ease-in-out infinite;
}

.scene2-videos.visible .scene2-card--1 { transition-delay: 0.05s; }
.scene2-videos.visible .scene2-card--2 { transition-delay: 0.12s; }
.scene2-videos.visible .scene2-card--3 { transition-delay: 0.2s; }
.scene2-videos.visible .scene2-card--4 { transition-delay: 0.28s; }
.scene2-videos.visible .scene2-card--5 { transition-delay: 0.36s; }

.scene2-pill {
    padding: 0.4rem 1rem;
    border-radius: var(--radius-pill);
    background: var(--bg-base);
    box-shadow: var(--shadow-button);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
}

.scene2-preview {
    width: 170px;
    height: 105px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-base);
    box-shadow: var(--shadow-raised);
}

.scene2-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Scattered positions - asymmetric, filling the viewport */
.scene2-card--1 {
    top: 8%;
    right: 8%;
    --drift-duration: 7.5s;
    --drift-x: -5px;
    --drift-y: -12px;
    --rot: -3deg;
}

.scene2-card--2 {
    top: 18%;
    right: 32%;
    --drift-duration: 9s;
    --drift-x: 6px;
    --drift-y: -10px;
    --rot: 2deg;
}

.scene2-card--3 {
    bottom: 10%;
    right: 6%;
    --drift-duration: 8.5s;
    --drift-x: -7px;
    --drift-y: -14px;
    --rot: 4deg;
}

.scene2-card--4 {
    bottom: 25%;
    right: 34%;
    --drift-duration: 10s;
    --drift-x: 4px;
    --drift-y: -9px;
    --rot: -2deg;
}

.scene2-card--5 {
    bottom: 6%;
    left: 6%;
    --drift-duration: 8s;
    --drift-x: 5px;
    --drift-y: -11px;
    --rot: 3deg;
}

@keyframes scene2-drift {
    0%, 100% {
        transform: translate(0, 0) rotate(var(--rot, 0deg));
    }
    33% {
        transform: translate(var(--drift-x, 5px), var(--drift-y, -12px)) rotate(calc(var(--rot, 0deg) + 1.5deg));
    }
    66% {
        transform: translate(calc(var(--drift-x, 5px) * -0.6), calc(var(--drift-y, -12px) * 0.5)) rotate(calc(var(--rot, 0deg) - 1deg));
    }
}

@media (max-width: 768px) {
    .scene2-videos {
        display: block;
    }
    .scene2-card {
        transform: scale(0.55);
        transform-origin: center;
    }
    .scene2-preview {
        width: 120px;
        height: 75px;
    }
    /* Reposition cards for narrow viewport */
    .scene2-card--1 { top: 3%; right: -8%; left: auto; }
    .scene2-card--2 { top: 15%; right: auto; left: -8%; }
    .scene2-card--3 { bottom: 8%; right: -8%; left: auto; top: auto; }
    .scene2-card--4 { bottom: 22%; right: auto; left: -8%; top: auto; }
    .scene2-card--5 { bottom: 3%; left: 25%; right: auto; top: auto; }
}

@media (min-width: 769px) and (max-width: 1100px) {
    .scene2-preview {
        width: 130px;
        height: 80px;
    }
    .scene2-card--2 { right: 24%; }
    .scene2-card--4 { right: 26%; }
}

/* ── Confetti (Scene 4) ── */

.story-decor--confetti {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.confetti-piece {
    position: absolute;
    width: 8px;
    height: 8px;
    opacity: 0;
}

.confetti-piece.burst {
    animation: confetti-fall var(--fall-duration, 2.5s) cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: var(--delay, 0s);
}

@keyframes confetti-fall {
    0% {
        opacity: 1;
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    20% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate(var(--drift-x, 30px), var(--drift-y, 300px)) rotate(var(--spin, 720deg)) scale(0.3);
    }
}

/* ── Notification Toasts (Scene 3) ── */

.story-decor--toasts {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    max-width: 360px;
    width: 100%;
}

.story-toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--bg-base);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-raised);
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
                transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.story-toast.visible {
    opacity: 1;
    transform: translateX(0);
}

.story-toast-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
}

.story-toast-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.story-toast-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.story-toast-meta {
    font-size: 0.6875rem;
    color: var(--text-tertiary);
}

@media (max-width: 768px) {
    .story-decor--toasts {
        max-width: 280px;
        transform: scale(0.85);
        transform-origin: top center;
        max-height: 32vh;
        overflow: hidden;
    }
    .story-toast {
        transform: translateY(20px);
        padding: 0.5rem 0.625rem;
        gap: 0.5rem;
    }
    .story-toast.visible {
        transform: translateY(0);
    }
    .story-toast-title {
        font-size: 0.7rem;
    }
    .story-toast-meta {
        font-size: 0.6rem;
    }
}

/* Scroll indicator for story */
.story-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
    opacity: 1;
    animation: bounce-subtle 2s ease-in-out infinite;
    z-index: 20;
}

/* Hide mobile-only scroll indicator on desktop */
.scroll-indicator.mobile-only-indicator {
    display: none !important;
}

@media (min-width: 768px) {
    .story-line--big {
        font-size: 3rem;
    }

    .story-line--sub {
        font-size: 1.25rem;
    }
}

.content-wrapper {
    text-align: center;
    max-width: 600px;
    width: 100%;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* ============================================
   Mascot Styles
   ============================================ */

.mascot-container {
    position: relative;
    width: 180px;
    height: 120px;
    margin-bottom: 1rem;
    /* Entrance Animation */
    opacity: 0;
    transform: translateY(-20px);
    animation: mascot-drop 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: 0.2s;
}

.mascot-body {
    width: 100%;
    height: 100%;
    background-color: var(--mascot-body);
    border-radius: 32px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-icon);
    z-index: 2;
    transform-origin: center center;
    will-change: transform;
    transition: transform 0.1s ease-out; /* For physics/squash-stretch */
}

.mascot-glare {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 28px;
    height: 10px;
    background-color: var(--mascot-glare);
    border-radius: 99px;
    transform: rotate(12deg);
}

.mascot-face {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.eyes {
    display: flex;
    gap: 18px;
    transition: transform 0.1s ease-out; /* For look-around */
}

.eye {
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: center;
}

/* Eye states are managed directly via JS (inline styles on SVG elements).
   CSS transitions on the SVG elements provide smooth interpolation. */
.eye-oval, .eye-path {
    transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: center;
}


/* Hero Mascot Bubble */
.mascot-bubble,
.mascot-bubble-second {
    background: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    padding: 12px 32px;
    border-radius: 18px;
    box-shadow: var(--shadow-icon);
    position: absolute;
    top: -56px;
    left: 50%;
    translate: -50% 0;
    white-space: nowrap;
    z-index: 3;
    opacity: 0;
}

.mascot-bubble {
    animation: bubble-slide-up-down 2.4s ease-in-out forwards;
    animation-delay: 1s;
}

.mascot-bubble-second {
    animation: bubble-slide-up-down 2.4s ease-in-out forwards;
    animation-delay: 3.6s;
}

@keyframes bubble-slide-up-down {
    0% {
        opacity: 0;
        transform: translateY(8px);
    }
    25% {
        opacity: 1;
        transform: translateY(0);
    }
    70% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(8px);
    }
}

@keyframes bubble-slide-up {
    0% {
        opacity: 0;
        transform: translateY(8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.mascot-zzz {
    position: absolute;
    top: -10px;
    right: -5px;
    color: var(--text-tertiary);
    font-weight: bold;
    font-family: var(--font-display);
    z-index: 3;
}
.mascot-zzz .z1 { font-size: 14px; animation: z-float 2s infinite ease-in-out; display: block; position: absolute; right: 0; }
.mascot-zzz .z2 { font-size: 10px; animation: z-float 2s infinite 0.6s ease-in-out; display: block; position: absolute; right: 8px; top: -8px; }

.hidden { display: none !important; }

/* ============================================
   Typography & Text Animations
   ============================================ */

.brand-name {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.03em;
    line-height: 1;
    display: flex;
    justify-content: center;
    gap: 0.05em;
}

.char {
    display: inline-block;
    opacity: 0;
    transform: translateY(8px) scale(0.9);
    animation: char-enter 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: calc(0.3s + (var(--char-index) * 0.04s));
}

.created-by {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    margin: 0.3rem 0 0;
    font-weight: 400;
    letter-spacing: 0.04em;
    opacity: 0;
    animation: fade-in 0.6s ease-out forwards;
    animation-delay: 0.8s;
}

.created-by-name {
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 0.08em;
}

.text-cluster {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    transform: translateY(10px);
    animation: fade-up 0.6s ease-out forwards;
    animation-delay: 0.5s;
}

.tagline {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0;
}

.value-prop {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Hero CTA Button */
.hero-cta-button {
    align-self: center;
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: var(--radius-pill);
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.06);
    color: #000000;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    margin-top: 1.5rem;
}

.hero-cta-button:hover {
    background: #f5f5f5;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.hero-cta-button:active {
    transform: scale(0.97);
    background: #eeeeee;
}

.dark .hero-cta-button {
    background: #ffffff;
    color: #000000;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.2);
}

.dark .hero-cta-button:hover {
    background: #f0f0f0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.works-with {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.app-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
    color: var(--text-primary);
}

.app-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    border-radius: 4px;
}

/* ============================================
   Form & Interactive
   ============================================ */

.form-container {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.signup-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.signup-form.form-hidden {
    display: none;
}

.input-wrapper {
    width: 100%;
}

input[type="email"] {
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-pill);
    border: none;
    background: var(--bg-base);
    box-shadow: var(--shadow-pressed);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-primary);
    outline: none;
    transition: box-shadow 0.2s ease;
}

input[type="email"]::placeholder {
    color: var(--text-tertiary);
}

input[type="email"]:focus {
    box-shadow: inset 4px 4px 8px rgba(163,177,198, 0.5), inset -4px -4px 8px rgba(255,255,255, 0.6), 0 0 0 2px rgba(0,0,0,0.05);
}

.cta-button {
    width: 100%;
    padding: 1rem;
    border-radius: var(--radius-pill);
    border: none;
    background: var(--bg-base);
    box-shadow: var(--shadow-button);
    color: var(--text-primary);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.cta-button:active {
    box-shadow: var(--shadow-button-active);
    transform: scale(0.98);
}

/* Magnetic effect handled in JS, but base transition needed */
.magnetic-btn {
    /* transition: transform 0.1s ease-out; - handled in JS for snappy feel, CSS for return */
}

/* Success State */
.success-state {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    padding: 1.5rem 0;
}

.success-state.visible {
    display: flex;
    animation: fade-up 0.5s ease-out forwards;
}

.success-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.share-prompt {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.share-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-pill);
    background: var(--bg-base);
    box-shadow: var(--shadow-button);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.share-btn:hover {
    transform: translateY(-1px);
}

.share-btn:active {
    box-shadow: var(--shadow-button-active);
    transform: translateY(0);
}

.copy-btn {
    padding: 0.75rem;
}

/* Counter */
.counter-wrapper {
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    display: flex;
    justify-content: center;
    gap: 4px;
}

.counter-number {
    font-weight: 600;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-base);
    box-shadow: var(--shadow-button);
    color: var(--text-secondary);
    text-decoration: none;
    opacity: 0;
    animation: fade-in 1s ease-out forwards, bounce-subtle 2s ease-in-out infinite;
    animation-delay: 1.2s, 1.2s;
    transition: color 0.2s ease, box-shadow 0.2s ease;
    z-index: 3;
}

.scroll-indicator:hover {
    color: var(--text-primary);
    box-shadow: var(--shadow-button-active);
}

.demo-scroll-indicator {
    animation-delay: 0s, 0s;
    opacity: 0;
}

.demo-scroll-indicator.animate-in {
    animation: fade-in 1s ease-out forwards, bounce-subtle 2s ease-in-out infinite;
    animation-delay: 0.3s, 0.3s;
}

/* Section scroll-down chevron (reusable across all sections) */
.section-scroll-down {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-base);
    box-shadow: var(--shadow-button);
    color: var(--text-secondary);
    text-decoration: none;
    animation: bounce-subtle 2s ease-in-out infinite;
    transition: color 0.2s ease, box-shadow 0.2s ease;
    z-index: 3;
    margin: 3rem auto 0;
    flex-shrink: 0;
}

.section-scroll-down:hover {
    color: var(--text-primary);
    box-shadow: var(--shadow-button-active);
}

/* Sections with flex gap already space the arrow — zero out margin */
.cost-section > .section-scroll-down,
.proof-section > .section-scroll-down,
.beliefs-section > .section-scroll-down,
.stack-section > .section-scroll-down,
.pricing-section > .section-scroll-down {
    margin-top: 0;
}

.pain-section,
.cost-section,
.dream-section,
.how-it-works-section,
.proof-section,
.beliefs-section,
.stack-section,
.pricing-section,
.faq-section,
.guarantee-section,
.founding-section {
    position: relative;
}

/* Tighten bottom padding on sections with in-flow scroll arrows */
section:has(> .section-scroll-down) {
    padding-bottom: 2.5rem;
}

@media (max-width: 768px) {
    .section-scroll-down {
        width: 40px;
        height: 40px;
    }
    .section-scroll-down svg {
        width: 16px;
        height: 16px;
    }
}

/* ============================================
   Demo Section
   ============================================ */

.demo-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    position: relative;
    z-index: 1;
    gap: 2.5rem;
}

.demo-header {
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    position: relative;
    z-index: 2;
}

.demo-header.animate-in {
    animation: fade-up 0.6s ease-out forwards;
}

.demo-heading {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 0.75rem;
    letter-spacing: -0.02em;
}

.demo-subtext {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
}

/* ============================================
   Floating GIFs Background
   ============================================ */

.floating-gifs {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.floating-gif {
    position: absolute;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-base);
    box-shadow: var(--shadow-raised);
    opacity: 0;
    transform: translateY(20px) scale(0.92);
    translate: var(--parallax-x, 0) var(--parallax-y, 0);
    will-change: transform, opacity, translate;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                translate 0.3s ease-out;
}

.floating-gif.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    animation: gif-drift var(--drift-duration, 8s) ease-in-out infinite;
    animation-delay: 0.1s;
}

.floating-gif img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
}

/* ── Individual GIF positions & sizing ── */

.floating-gif--1 {
    width: 130px;
    height: 95px;
    top: 6%;
    left: 4%;
    --drift-duration: 8s;
    --drift-x: 6px;
    --drift-y: -14px;
    --rot: -4deg;
}

.floating-gif--2 {
    width: 110px;
    height: 80px;
    top: 10%;
    right: 7%;
    --drift-duration: 10s;
    --drift-x: -5px;
    --drift-y: -10px;
    --rot: 3deg;
}

.floating-gif--3 {
    width: 120px;
    height: 85px;
    bottom: 16%;
    left: 3%;
    --drift-duration: 9s;
    --drift-x: 8px;
    --drift-y: -12px;
    --rot: -2deg;
}

.floating-gif--4 {
    width: 105px;
    height: 75px;
    bottom: 12%;
    right: 6%;
    --drift-duration: 11s;
    --drift-x: -6px;
    --drift-y: -16px;
    --rot: 5deg;
}

.floating-gif--5 {
    width: 95px;
    height: 70px;
    top: 52%;
    left: 6%;
    margin-top: -35px;
    --drift-duration: 7s;
    --drift-x: 4px;
    --drift-y: -10px;
    --rot: -3deg;
}

.floating-gif--6 {
    width: 115px;
    height: 82px;
    top: 32%;
    right: 3%;
    --drift-duration: 9.5s;
    --drift-x: -7px;
    --drift-y: -11px;
    --rot: 4deg;
}

.floating-gif--7 {
    width: 100px;
    height: 72px;
    top: 55%;
    right: 8%;
    --drift-duration: 8.5s;
    --drift-x: 5px;
    --drift-y: -13px;
    --rot: -3deg;
}

.floating-gif--8 {
    width: 120px;
    height: 88px;
    bottom: 32%;
    left: 5%;
    --drift-duration: 10.5s;
    --drift-x: -4px;
    --drift-y: -15px;
    --rot: 2deg;
}

.floating-gif--9 {
    width: 108px;
    height: 78px;
    bottom: 6%;
    left: 35%;
    --drift-duration: 7.5s;
    --drift-x: 6px;
    --drift-y: -9px;
    --rot: -5deg;
}

/* ── Keyframes ── */

@keyframes gif-drift {
    0%, 100% {
        transform: translate(0, 0) rotate(var(--rot, 0deg));
    }
    33% {
        transform: translate(var(--drift-x, 5px), var(--drift-y, -12px)) rotate(calc(var(--rot, 0deg) + 1.5deg));
    }
    66% {
        transform: translate(calc(var(--drift-x, 5px) * -0.6), calc(var(--drift-y, -12px) * 0.5)) rotate(calc(var(--rot, 0deg) - 1deg));
    }
}

/* ── Floating Prompt Pills ── */

.floating-prompt {
    position: absolute;
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    background: var(--bg-base);
    box-shadow: var(--shadow-raised);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    opacity: 0;
    transform: translateY(12px) scale(0.95);
    translate: var(--parallax-x, 0) var(--parallax-y, 0);
    will-change: transform, opacity, translate;
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                translate 0.3s ease-out;
}

.floating-prompt.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    animation: prompt-drift var(--drift-duration, 7s) ease-in-out infinite;
}

/* Positions — scattered around, filling gaps between the GIFs */
.floating-prompt--1 {
    top: 22%;
    left: 15%;
    --drift-duration: 7s;
    --drift-x: 4px;
    --drift-y: -8px;
    --rot: -1deg;
}

.floating-prompt--2 {
    top: 5%;
    right: 22%;
    --drift-duration: 9s;
    --drift-x: -5px;
    --drift-y: -10px;
    --rot: 2deg;
}

.floating-prompt--3 {
    top: 50%;
    left: 2%;
    margin-top: -10px;
    --drift-duration: 8s;
    --drift-x: 6px;
    --drift-y: -7px;
    --rot: -1deg;
}

.floating-prompt--4 {
    top: 48%;
    right: 2%;
    --drift-duration: 10s;
    --drift-x: -4px;
    --drift-y: -9px;
    --rot: 1deg;
}

.floating-prompt--5 {
    bottom: 20%;
    left: 14%;
    --drift-duration: 8.5s;
    --drift-x: 5px;
    --drift-y: -6px;
    --rot: -2deg;
}

.floating-prompt--6 {
    bottom: 6%;
    right: 18%;
    --drift-duration: 7.5s;
    --drift-x: -3px;
    --drift-y: -8px;
    --rot: 1deg;
}

@keyframes prompt-drift {
    0%, 100% {
        transform: translate(0, 0) rotate(var(--rot, 0deg));
    }
    33% {
        transform: translate(var(--drift-x, 4px), var(--drift-y, -8px)) rotate(calc(var(--rot, 0deg) + 1deg));
    }
    66% {
        transform: translate(calc(var(--drift-x, 4px) * -0.5), calc(var(--drift-y, -8px) * 0.4)) rotate(calc(var(--rot, 0deg) - 0.5deg));
    }
}

/* Responsive: hide on small screens, scale on medium */
@media (max-width: 768px) {
    .floating-gifs {
        display: none;
    }
}

@media (min-width: 769px) and (max-width: 1100px) {
    .floating-gif {
        transform: scale(0.7);
    }
    .floating-prompt--3,
    .floating-prompt--4 {
        display: none;
    }
}

/* ============================================
   Panel Card
   ============================================ */

.panel-card {
    width: 100%;
    max-width: 400px;
    background: var(--bg-base);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-raised);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    opacity: 0;
    transform: translateY(20px);
    position: relative;
    z-index: 2;
}

.panel-card.animate-in {
    animation: fade-up 0.7s ease-out 0.15s forwards;
}

/* Panel Tabs */
.panel-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.panel-tab {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-pill);
    border: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-tertiary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.panel-tab:hover {
    color: var(--text-primary);
}

.panel-tab:focus-visible {
    outline: 2px solid rgba(0,0,0,0.1);
    outline-offset: 2px;
}

.panel-tab.active {
    background: var(--bg-base);
    box-shadow: var(--shadow-button-active);
    color: var(--text-primary);
}

/* Panel Status Dot */
.panel-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
}

.panel-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
}

.panel-status-text {
    font-size: 0.625rem;
    color: var(--text-tertiary);
    opacity: 0.5;
}

/* Panel Mini Mascot */
.panel-mascot {
    display: flex;
    justify-content: center;
}

.panel-mascot-body {
    width: 80px;
    height: 50px;
    background: var(--mascot-body);
    border-radius: 16px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-icon);
    transform-origin: center center;
    will-change: transform;
}

.panel-mascot-glare {
    position: absolute;
    top: 6px;
    right: 8px;
    width: 14px;
    height: 5px;
    background: var(--mascot-glare);
    border-radius: 99px;
    transform: rotate(12deg);
}

.panel-mascot-face {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.panel-eyes {
    display: flex;
    gap: 8px;
    transition: transform 0.15s ease-out;
}

.panel-eye {
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: center;
}

.panel-eye-oval, .panel-eye-path {
    transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: center;
}

/* Panel Tab Content */
.panel-tab-content {
    display: none;
    flex-direction: column;
    gap: 1rem;
    animation: panel-fade 0.25s ease-out;
}

.panel-tab-content.active {
    display: flex;
}

@keyframes panel-fade {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.panel-content-heading {
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 600;
    margin: 0;
    text-align: center;
}

/* Panel Textarea */
.panel-input-area {
    position: relative;
    flex: 1;
}

.panel-textarea {
    width: 100%;
    min-height: 100px;
    background: var(--bg-base);
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.75rem 2.5rem 0.75rem 0.75rem;
    box-shadow: var(--shadow-pressed);
    font-family: var(--font-body);
    font-size: 0.8125rem;
    color: var(--text-primary);
    resize: none;
    outline: none;
    transition: box-shadow 0.2s ease;
}

.panel-textarea::placeholder {
    color: var(--text-tertiary);
}

.panel-textarea:focus {
    box-shadow: inset 4px 4px 8px rgba(163,177,198, 0.5), inset -4px -4px 8px rgba(255,255,255, 0.6), 0 0 0 2px rgba(0,0,0,0.04);
}

.panel-enhance-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.panel-enhance-btn:hover {
    color: var(--text-primary);
    background: var(--bg-base);
    box-shadow: var(--shadow-button);
}

.panel-enhance-btn:active {
    box-shadow: var(--shadow-button-active);
}

.panel-input-icons {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    display: flex;
    gap: 0.25rem;
}

.panel-input-icons .panel-enhance-btn {
    position: static;
}

/* Generation Status */
.panel-gen-status {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 1.25rem;
}

.panel-gen-status.hidden {
    display: none;
}

.panel-gen-status-text {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-primary);
}

.panel-gen-status-text.status-failed {
    color: #ef4444;
}

/* Panel Actions */
.panel-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.panel-icon-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--bg-base);
    border-radius: 50%;
    box-shadow: var(--shadow-button);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.panel-icon-btn:hover {
    box-shadow: var(--shadow-button-active);
    color: var(--text-primary);
}

.panel-icon-btn:active {
    transform: scale(0.95);
}

.panel-generate-btn {
    flex: 1;
    padding: 0.75rem;
    border: none;
    background: var(--bg-base);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-button);
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.panel-generate-btn:hover:not(:disabled) {
    box-shadow: var(--shadow-button-active);
}

.panel-generate-btn:active:not(:disabled) {
    transform: scale(0.97);
}

.panel-generate-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.panel-generate-btn-full {
    width: 100%;
    flex: none;
}

.panel-generate-text {
    /* shown by default */
}

.panel-generate-spinner {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.panel-generate-spinner.hidden {
    display: none;
}

.spinner-ring {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(0,0,0,0.15);
    border-top-color: var(--text-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Progress Bar */
.panel-progress-track {
    width: 100%;
    height: 5px;
    background: var(--bg-base);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-pressed);
    overflow: hidden;
}

.panel-progress-fill {
    height: 100%;
    width: 0%;
    border-radius: var(--radius-pill);
    background: var(--text-primary);
    transition: width 0.4s ease-out;
}

.panel-progress-fill.status-success {
    background: #22c55e;
}

.panel-progress-fill.status-failed {
    background: #ef4444;
}

/* Effects Grid */
.panel-effects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.panel-effect-card {
    height: 80px;
    border: none;
    background: var(--bg-base);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-button);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.panel-effect-card:hover {
    box-shadow: var(--shadow-button-active);
}

.panel-effect-card:active {
    transform: scale(0.96);
}

/* Clean focus styles for all panel interactive elements */
.panel-card button:focus-visible,
.panel-card textarea:focus-visible {
    outline: 2px solid rgba(0,0,0,0.1);
    outline-offset: 2px;
}

.panel-effect-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-base);
    box-shadow: var(--shadow-icon);
    display: flex;
    align-items: center;
    justify-content: center;
}

.panel-effect-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-primary);
    opacity: 0.5;
}

.panel-effect-label {
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--text-primary);
    text-align: center;
    padding: 0 0.25rem;
    line-height: 1.3;
}

/* Motion Templates */
.panel-templates-scroll {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.25rem 0.125rem 0.75rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.panel-templates-scroll::-webkit-scrollbar {
    display: none;
}

.panel-template-pill {
    padding: 0.5rem 0.875rem;
    border: none;
    background: var(--bg-base);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-button);
    font-family: var(--font-body);
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.panel-template-pill:hover {
    box-shadow: var(--shadow-button-active);
}

.panel-template-pill:active {
    transform: scale(0.95);
}

/* Coming Soon Pages */
.panel-coming-soon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.875rem;
    padding: 1.5rem 1rem;
    flex: 1;
}

.panel-coming-soon-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--bg-base);
    box-shadow: var(--shadow-icon);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
}

.panel-coming-soon-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.01em;
}

.panel-coming-soon-desc {
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--text-secondary);
    margin: 0;
    max-width: 260px;
}

.panel-coming-soon-badge {
    display: inline-block;
    padding: 0.375rem 1rem;
    border-radius: var(--radius-pill);
    background: var(--bg-base);
    box-shadow: var(--shadow-pressed);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-tertiary);
}

/* Panel Footer */
.panel-footer {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: auto;
}

.panel-footer-brand {
    font-family: var(--font-display);
    font-size: 0.6875rem;
    color: var(--text-tertiary);
    opacity: 0.5;
}

.panel-footer-version {
    font-size: 0.625rem;
    color: var(--text-tertiary);
    opacity: 0.4;
}

/* Demo Nudge */
.demo-nudge {
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    position: relative;
    z-index: 2;
}

.demo-nudge.visible {
    opacity: 1;
    transform: translateY(0);
}

.demo-nudge.hidden {
    display: none;
}

.demo-nudge-text {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0 0 0.75rem;
}

.demo-nudge-link {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-pill);
    background: var(--bg-base);
    box-shadow: var(--shadow-button);
    color: var(--text-primary);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.demo-nudge-link:hover {
    box-shadow: var(--shadow-button-active);
}

.demo-nudge-link:active {
    transform: scale(0.97);
}

/* ============================================
   How It Works Section
   ============================================ */

.how-it-works-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6rem 2rem;
    text-align: center;
}

.how-it-works-header {
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.how-it-works-header.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.how-it-works-heading {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 0.5rem;
}

.how-it-works-subtext {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    margin: 0;
}

.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 900px;
    width: 100%;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}

.how-it-works-grid.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.how-it-works-card {
    background: var(--bg-base);
    box-shadow: var(--shadow-raised);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.how-it-works-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.how-it-works-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.how-it-works-desc {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .how-it-works-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .how-it-works-section {
        padding: 4rem 1.5rem;
    }
}

/* ============================================
   Pricing Section
   ============================================ */

.pricing-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6rem 2rem;
    position: relative;
    z-index: 1;
    gap: 3rem;
}

.pricing-header {
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
}

.pricing-header.animate-in {
    animation: fade-up 0.6s ease-out forwards;
}

.pricing-heading {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 0.75rem;
    letter-spacing: -0.02em;
}

.pricing-subtext {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
}

/* ── Pricing Toggle ── */

.pricing-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: -1rem;
}

.pricing-toggle-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color 0.2s ease;
    cursor: pointer;
}

.pricing-toggle-label.active {
    color: var(--text-primary);
}

.pricing-toggle-switch {
    position: relative;
    width: 48px;
    height: 26px;
    border-radius: 999px;
    background: var(--bg-base);
    box-shadow: inset 3px 3px 6px rgba(163,177,198,0.5), inset -3px -3px 6px rgba(255,255,255,0.6);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease;
}

.pricing-toggle-knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--text-primary);
    box-shadow: 2px 2px 4px rgba(163,177,198,0.4);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.pricing-toggle-switch.yearly .pricing-toggle-knob {
    transform: translateX(22px);
}

.pricing-toggle-save {
    font-size: 0.75rem;
    font-weight: 700;
    color: #28c840;
    background: rgba(40,200,64,0.08);
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-pill);
}

/* ── Pricing Grid ── */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
    max-width: 1100px;
    width: 100%;
    align-items: stretch;
}

/* ── Pricing Card ── */

.pricing-card {
    background: var(--bg-base);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-raised);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: relative;
    transition: box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.pricing-card.animate-in {
    animation: fade-up 0.6s ease-out forwards;
}

.pricing-card:hover {
    box-shadow: 12px 12px 20px rgb(163,177,198,0.7), -12px -12px 20px rgba(255,255,255, 0.6);
}

/* Featured (Pro) Card */
.pricing-card.featured {
    transform: scale(1.05);
    border: 2px solid var(--text-primary);
    box-shadow: 16px 16px 32px rgb(163,177,198,0.75), -16px -16px 32px rgba(255,255,255, 0.65);
    z-index: 2;
    padding: 3rem 1.75rem 2rem;
}

.pricing-card.featured:hover {
    box-shadow: 18px 18px 36px rgb(163,177,198,0.8), -18px -18px 36px rgba(255,255,255, 0.7);
}

/* ── Badge ── */

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-pill);
    background: var(--text-primary);
    color: var(--bg-base);
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    letter-spacing: 0.03em;
    box-shadow: 4px 4px 8px rgb(163,177,198,0.5), -4px -4px 8px rgba(255,255,255, 0.4);
}

/* ── Card Header ── */

.pricing-card-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
}

.pricing-tier-name {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.pricing-tagline {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: -0.25rem;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
}

.pricing-amount {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
}

.pricing-period {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.pricing-daily {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-top: -0.125rem;
}

.pricing-multiplier {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    color: #28c840;
    background: rgba(40,200,64,0.08);
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-pill);
    margin-top: 0.25rem;
    letter-spacing: 0.02em;
}

.pricing-generations {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ── Includes Separator ── */

.pricing-includes {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
    padding: 0.5rem 1rem;
    background: var(--bg-base);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-pressed);
    margin: 0;
    white-space: nowrap;
}

/* ── Feature List ── */

.pricing-feature-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    flex: 1;
}

.pricing-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--text-primary);
    line-height: 1.45;
}

.pricing-check {
    flex-shrink: 0;
    margin-top: 1px;
    color: var(--text-primary);
    opacity: 0.5;
}

.pricing-feature--bonus {
    font-weight: 600;
    color: #28c840;
}

.pricing-feature--bonus .pricing-check {
    color: #28c840;
    opacity: 1;
}

.pricing-original-price {
    text-decoration: line-through;
    opacity: 0.6;
    font-size: 0.8125rem;
    font-weight: 700;
    margin-left: 0.35rem;
    white-space: nowrap;
}

/* ── Urgency Badge ── */

.pricing-urgency {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border-radius: var(--radius-pill);
    background: var(--bg-base);
    box-shadow: var(--shadow-pressed);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

.pricing-urgency-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    flex-shrink: 0;
    animation: urgency-pulse 2s ease-in-out infinite;
}

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

/* ── CTA Button ── */

.pricing-cta-btn {
    display: block;
    width: 100%;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-pill);
    background: var(--bg-base);
    box-shadow: var(--shadow-button);
    color: var(--text-primary);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9375rem;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: none;
    margin-top: auto;
}

.pricing-cta-btn:hover {
    box-shadow: var(--shadow-button-active);
}

.pricing-cta-btn:active {
    transform: scale(0.97);
}

.pricing-card.featured .pricing-cta-btn {
    background: var(--text-primary);
    color: var(--bg-base);
    box-shadow: 6px 6px 12px rgb(163,177,198,0.6), -6px -6px 12px rgba(255,255,255, 0.5);
}

.pricing-card.featured .pricing-cta-btn:hover {
    box-shadow: inset 4px 4px 8px rgba(0,0,0,0.3), inset -4px -4px 8px rgba(255,255,255,0.1);
}

.pricing-cancel-note {
    display: block;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-top: 0.5rem;
}

/* ── Responsive: Pricing ── */

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

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

    .pricing-card.featured {
        transform: scale(1);
    }

    .pricing-section {
        padding: 4rem 1.5rem;
    }

    .pricing-urgency {
        font-size: 0.6875rem;
        white-space: normal;
        text-align: center;
    }
}

/* ============================================
   Pain / Browser Tax Section
   ============================================ */

.pain-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6rem 2rem;
    position: relative;
    z-index: 1;
    gap: 3rem;
}

.pain-header {
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
}

.pain-header.animate-in {
    animation: fade-up 0.6s ease-out forwards;
}

.pain-heading {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 0.75rem;
    letter-spacing: -0.02em;
}

.pain-subtext {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0 auto;
    max-width: 540px;
}

.pain-comparison {
    display: flex;
    align-items: stretch;
    gap: 2rem;
    max-width: 820px;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
}

.pain-comparison.animate-in {
    animation: fade-up 0.6s ease-out 0.15s forwards;
}

.pain-column {
    flex: 1;
    background: var(--bg-base);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-raised);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pain-column-title {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0;
}

.pain-column-subtitle {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin: 0;
    margin-top: -0.5rem;
}

.pain-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.pain-step {
    font-size: 0.875rem;
    line-height: 1.5;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
}

.pain-step--struck {
    text-decoration: line-through;
    color: var(--text-secondary);
    opacity: 0.6;
    background: var(--bg-base);
    box-shadow: inset 3px 3px 6px rgba(163,177,198,0.4), inset -3px -3px 6px rgba(255,255,255,0.5);
}

.pain-step--highlight {
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-base);
    box-shadow: var(--shadow-button);
}

.pain-time {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-align: center;
    padding: 0.625rem;
    border-radius: var(--radius-pill);
    background: var(--bg-base);
    box-shadow: var(--shadow-pressed);
}

.pain-time--fast {
    color: var(--text-primary);
}

.pain-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pain-vs {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--text-primary);
    color: var(--bg-base);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-raised);
}

@media (max-width: 768px) {
    .pain-comparison {
        flex-direction: column;
        gap: 1.5rem;
    }

    .pain-divider {
        padding: 0.5rem 0;
    }

    .pain-heading {
        font-size: 1.5rem;
    }
}

@media (min-width: 768px) {
    .pain-heading {
        font-size: 2.5rem;
    }
}

/* ============================================
   Cost Comparison Section
   ============================================ */

.cost-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6rem 2rem;
    position: relative;
    z-index: 1;
    gap: 3rem;
}

.cost-header {
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
}

.cost-header.animate-in {
    animation: fade-up 0.6s ease-out forwards;
}

.cost-heading {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 0.75rem;
    letter-spacing: -0.02em;
}

.cost-subtext {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0 auto;
    max-width: 540px;
}

.cost-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 820px;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
}

.cost-comparison.animate-in {
    animation: fade-up 0.6s ease-out 0.15s forwards;
}

.cost-card {
    background: var(--bg-base);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-raised);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cost-card--new {
    border: 2px solid var(--text-primary);
    box-shadow: 14px 14px 28px rgb(163,177,198,0.75), -14px -14px 28px rgba(255,255,255, 0.65);
}

.cost-card-label {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
}

.cost-card-price {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
}

.cost-card-unit {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.cost-breakdown {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.cost-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.875rem;
    padding: 0.625rem 0.875rem;
    border-radius: var(--radius-sm);
    background: var(--bg-base);
    box-shadow: inset 3px 3px 6px rgba(163,177,198,0.35), inset -3px -3px 6px rgba(255,255,255,0.45);
    gap: 0.75rem;
}

.cost-line-desc {
    color: var(--text-primary);
}

.cost-line-hours {
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
    font-size: 0.8125rem;
}

.cost-line--total {
    background: var(--bg-base);
    box-shadow: var(--shadow-button);
    font-weight: 600;
    margin-top: 0.375rem;
}

.cost-line--highlight {
    background: var(--text-primary);
    color: var(--bg-base);
    box-shadow: 6px 6px 12px rgb(163,177,198,0.6), -6px -6px 12px rgba(255,255,255,0.5);
}

.cost-line--highlight .cost-line-desc,
.cost-line--highlight .cost-line-amount {
    color: var(--bg-base);
}

.cost-line-amount {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.125rem;
    white-space: nowrap;
}

.cost-extras {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cost-extra-item {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-pill);
    background: var(--bg-base);
    box-shadow: var(--shadow-pressed);
}

.cost-extras--new .cost-extra-item {
    color: var(--text-primary);
    font-weight: 600;
}

.cost-footnote {
    font-size: 1rem;
    color: var(--text-secondary);
    text-align: center;
    margin: 0;
    max-width: 600px;
    line-height: 1.6;
}

.cost-footnote strong {
    color: var(--text-primary);
}

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

    .cost-heading {
        font-size: 1.5rem;
    }
}

@media (min-width: 768px) {
    .cost-heading {
        font-size: 2.5rem;
    }
}

/* ============================================
   Dream Bridge Section
   ============================================ */

.dream-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6rem 2rem;
    position: relative;
    z-index: 1;
}

.dream-content {
    max-width: 640px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    opacity: 0;
    transform: translateY(20px);
}

.dream-content.animate-in {
    animation: fade-up 0.6s ease-out forwards;
}

.dream-heading {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.02em;
}

.dream-narrative {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.dream-narrative p {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--text-primary);
    margin: 0;
}

.dream-closer {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.01em;
}

@media (min-width: 768px) {
    .dream-heading {
        font-size: 2.5rem;
    }
}

/* ============================================
   Social Proof Section
   ============================================ */

.proof-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6rem 2rem;
    position: relative;
    z-index: 1;
    gap: 3rem;
}

.proof-header {
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
}

.proof-header.animate-in {
    animation: fade-up 0.6s ease-out forwards;
}

.proof-heading {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 0.75rem;
    letter-spacing: -0.02em;
}

.proof-subtext {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
}

.proof-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 960px;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
}

.proof-grid.animate-in {
    animation: fade-up 0.6s ease-out 0.15s forwards;
}

.proof-card {
    background: var(--bg-base);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-raised);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transition: box-shadow 0.3s ease;
}

.proof-card:hover {
    box-shadow: 12px 12px 20px rgb(163,177,198,0.7), -12px -12px 20px rgba(255,255,255,0.6);
}

.proof-quote {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
    font-style: italic;
}

.proof-author {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.proof-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.875rem;
}

.proof-role {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

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

@media (min-width: 768px) {
    .proof-heading {
        font-size: 2.5rem;
    }
}

/* ============================================
   False Beliefs Section
   ============================================ */

.beliefs-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6rem 2rem;
    position: relative;
    z-index: 1;
    gap: 3rem;
}

.beliefs-header {
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
}

.beliefs-header.animate-in {
    animation: fade-up 0.6s ease-out forwards;
}

.beliefs-heading {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 0.75rem;
    letter-spacing: -0.02em;
}

.beliefs-subtext {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
}

.beliefs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 960px;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
}

.beliefs-grid.animate-in {
    animation: fade-up 0.6s ease-out 0.15s forwards;
}

.beliefs-card {
    background: var(--bg-base);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-raised);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: box-shadow 0.3s ease;
}

.beliefs-card:hover {
    box-shadow: 12px 12px 20px rgb(163,177,198,0.7), -12px -12px 20px rgba(255,255,255,0.6);
}

.beliefs-objection {
    font-size: 1rem;
    font-style: italic;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.beliefs-reframe {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.01em;
}

.beliefs-copy {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
}

.beliefs-proof {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-pill);
    background: var(--bg-base);
    box-shadow: var(--shadow-button);
    transition: all 0.2s ease;
    align-self: flex-start;
}

.beliefs-proof:hover {
    box-shadow: var(--shadow-button-active);
}

.beliefs-proof-pill {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 0.375rem 1rem;
    border-radius: var(--radius-pill);
    background: var(--bg-base);
    box-shadow: var(--shadow-pressed);
    align-self: flex-start;
}

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

@media (min-width: 768px) {
    .beliefs-heading {
        font-size: 2.5rem;
    }
}

/* ============================================
   Value Stack Section
   ============================================ */

.stack-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6rem 2rem;
    position: relative;
    z-index: 1;
    gap: 2.5rem;
}

.stack-header {
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
}

.stack-header.animate-in {
    animation: fade-up 0.6s ease-out forwards;
}

.stack-heading {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 0.75rem;
    letter-spacing: -0.02em;
}

.stack-subtext {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
}

.stack-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 560px;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
}

.stack-list.animate-in {
    animation: fade-up 0.6s ease-out 0.15s forwards;
}

.stack-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: var(--bg-base);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-raised);
    gap: 1rem;
}

.stack-item-name {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-primary);
}

.stack-item-value {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-secondary);
    white-space: nowrap;
}

.stack-total {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--bg-base);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-pressed);
}

.stack-total-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.stack-total-amount {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: line-through;
    opacity: 0.6;
}

.stack-reveal {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    text-align: center;
}

.stack-reveal-label {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.stack-reveal-price {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    line-height: 1;
}

.stack-reveal-period {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.stack-cta {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-pill);
    background: var(--text-primary);
    color: var(--bg-base);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 6px 6px 12px rgb(163,177,198,0.6), -6px -6px 12px rgba(255,255,255,0.5);
    transition: all 0.2s ease;
}

.stack-cta:hover {
    box-shadow: inset 4px 4px 8px rgba(0,0,0,0.3), inset -4px -4px 8px rgba(255,255,255,0.1);
}

.stack-cta:active {
    transform: scale(0.97);
}

@media (min-width: 768px) {
    .stack-heading {
        font-size: 2.5rem;
    }
}

/* ============================================
   Trust Signals Bar
   ============================================ */

.trust-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 2rem 2rem 0;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.trust-bar.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.trust-item {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    white-space: nowrap;
}

.trust-item svg {
    flex-shrink: 0;
    opacity: 0.6;
}

.trust-divider {
    color: var(--text-tertiary);
    opacity: 0.4;
    font-size: 1rem;
}

@media (max-width: 640px) {
    .trust-bar {
        gap: 0.5rem 0.625rem;
    }

    .trust-item {
        font-size: 0.75rem;
    }

    .trust-divider {
        display: none;
    }
}

/* ============================================
   FAQ Section
   ============================================ */

.faq-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6rem 2rem;
}

.faq-header {
    text-align: center;
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.faq-header.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.faq-heading {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0;
}

.faq-list {
    max-width: 680px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}

.faq-list.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.faq-item {
    background: var(--bg-base);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-raised);
    overflow: hidden;
}

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

.faq-question:hover {
    color: var(--text-secondary);
}

.faq-chevron {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: var(--text-tertiary);
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 1.5rem;
}

.faq-item.faq-open .faq-answer {
    max-height: 200px;
    padding: 0 1.5rem 1.25rem;
}

.faq-answer p {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .faq-section {
        padding: 4rem 1.5rem;
    }

    .faq-question {
        font-size: 0.9375rem;
        padding: 1rem 1.25rem;
    }
}

/* ============================================
   Guarantee Section
   ============================================ */

.guarantee-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6rem 2rem;
    position: relative;
    z-index: 1;
}

.guarantee-content {
    text-align: center;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    opacity: 0;
    transform: translateY(20px);
}

.guarantee-content.animate-in {
    animation: fade-up 0.6s ease-out forwards;
}

.guarantee-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-base);
    box-shadow: var(--shadow-raised);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
}

.guarantee-heading {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.02em;
}

.guarantee-copy {
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--text-primary);
    margin: 0;
}

.guarantee-subtext {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin: 0;
    font-style: italic;
}

@media (min-width: 768px) {
    .guarantee-heading {
        font-size: 2.5rem;
    }
}

/* ============================================
   Founding Member / Urgency Section
   ============================================ */

.founding-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4rem 2rem 6rem;
    position: relative;
    z-index: 1;
}

.founding-content {
    text-align: center;
    max-width: 520px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
}

.founding-content.animate-in {
    animation: fade-up 0.6s ease-out forwards;
}

.founding-heading {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.02em;
}

.founding-copy {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

.founding-copy strong {
    color: var(--text-primary);
}

.founding-meter {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.founding-meter-bar {
    width: 100%;
    height: 12px;
    background: var(--bg-base);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-pressed);
    overflow: hidden;
}

.founding-meter-fill {
    height: 100%;
    background: var(--text-primary);
    border-radius: var(--radius-pill);
    transition: width 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.founding-meter-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.founding-cta {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-pill);
    background: var(--text-primary);
    color: var(--bg-base);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 6px 6px 12px rgb(163,177,198,0.6), -6px -6px 12px rgba(255,255,255,0.5);
    transition: all 0.2s ease;
}

.founding-cta:hover {
    box-shadow: inset 4px 4px 8px rgba(0,0,0,0.3), inset -4px -4px 8px rgba(255,255,255,0.1);
}

.founding-cta:active {
    transform: scale(0.97);
}

@media (min-width: 768px) {
    .founding-heading {
        font-size: 2.5rem;
    }
}

/* ============================================
   CTA Section
   ============================================ */

.cta-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    position: relative;
    z-index: 1;
}

.cta-content {
    text-align: center;
    max-width: 600px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
}

.cta-content.animate-in {
    animation: fade-up 0.6s ease-out forwards;
}

.cta-heading {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.02em;
}

.cta-subtext {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
}

.cta-subscribe-btn {
    display: inline-block;
    align-self: center;
    padding: 1.125rem 3rem;
    border-radius: var(--radius-pill);
    background: var(--text-primary);
    color: var(--bg-base);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.125rem;
    text-decoration: none;
    box-shadow: 8px 8px 16px rgb(163,177,198,0.65), -8px -8px 16px rgba(255,255,255,0.55);
    transition: all 0.2s ease;
}

.cta-subscribe-btn:hover {
    box-shadow: inset 4px 4px 8px rgba(0,0,0,0.3), inset -4px -4px 8px rgba(255,255,255,0.1);
}

.cta-subscribe-btn:active {
    transform: scale(0.97);
}

.cta-fine-print {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    margin: 0.75rem 0 0;
    text-align: center;
}

.final-cta-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin-top: 2rem;
}

.final-cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--text-primary);
    color: var(--bg-base);
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    border-radius: var(--radius-pill);
    text-decoration: none;
    box-shadow: 6px 6px 12px #b8b9be, -6px -6px 12px #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.final-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 8px 8px 16px #b8b9be, -8px -8px 16px #ffffff;
}

.final-cta-button:active {
    transform: translateY(0);
    box-shadow: var(--shadow-button-active);
}

/* CTA Mascot */
.cta-mascot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    animation: cta-mascot-bob 2.5s ease-in-out infinite;
}

@keyframes cta-mascot-bob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}

.cta-mascot-bubble {
    background: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 12px;
    box-shadow: var(--shadow-icon);
    position: relative;
    white-space: nowrap;
}

.cta-mascot-bubble::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid var(--bg-base);
}

.cta-mascot-body {
    width: 90px;
    height: 56px;
    background-color: var(--mascot-body);
    border-radius: 18px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-icon);
    transform-origin: center center;
    will-change: transform;
}

.cta-mascot-glare {
    position: absolute;
    top: 7px;
    right: 10px;
    width: 10px;
    height: 6px;
    background: var(--mascot-glare);
    border-radius: 50%;
    transform: rotate(12deg);
}

.cta-mascot-face {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.cta-eyes {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.cta-eye {
    display: block;
}

/* Footer */
.site-footer {
    position: absolute;
    bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-tertiary);
    opacity: 0;
    animation: fade-in 1s ease-out forwards;
    animation-delay: 0.5s;
}

.footer-brand {
    font-family: var(--font-display);
    font-weight: 700;
}

.footer-link {
    color: inherit;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
}

.footer-link:hover {
    color: var(--text-primary);
}

/* ============================================
   Animations Keyframes
   ============================================ */

@keyframes mascot-drop {
    0% { opacity: 0; transform: translateY(-40px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes char-enter {
    0% { opacity: 0; transform: translateY(10px) scale(0.8); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes fade-up {
    0% { opacity: 0; transform: translateY(15px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
    to { opacity: 1; }
}

@keyframes z-float {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0; }
    50% { opacity: 0.8; }
    100% { transform: translateY(-10px) translateX(5px); opacity: 0; }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.3s ease-in-out;
}

@keyframes mascot-wiggle {
    0%   { transform: rotate(0deg)   translateX(0);    }
    15%  { transform: rotate(-8deg)  translateX(-4px); }
    30%  { transform: rotate(7deg)   translateX(4px);  }
    45%  { transform: rotate(-5deg)  translateX(-2px); }
    60%  { transform: rotate(4deg)   translateX(2px);  }
    80%  { transform: rotate(-1deg)  translateX(0);    }
    100% { transform: rotate(0deg)   translateX(0);    }
}

.mascot-wiggle {
    animation: mascot-wiggle 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes mascot-bounce {
    0%   { transform: translateY(0); }
    25%  { transform: translateY(-28px); }
    50%  { transform: translateY(0); }
    70%  { transform: translateY(-10px); }
    85%  { transform: translateY(0); }
    92%  { transform: translateY(-3px); }
    100% { transform: translateY(0); }
}

.mascot-bounce {
    animation: mascot-bounce 0.55s cubic-bezier(.22,.68,.36,1.2);
}

@keyframes eye-loading {
    0%   { transform: scale(1.15); }
    20%  { transform: scaleY(0.3) scaleX(1.1); }
    40%  { transform: scale(1.05); }
    60%  { transform: scaleY(0.35) scaleX(1.05); }
    80%  { transform: scale(1.1); }
    100% { transform: scale(1.15); }
}

.eye-loading {
    animation: eye-loading 1.4s ease-in-out infinite;
}

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

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

/* ═══ Signup Modal ═══ */
.signup-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.signup-modal {
    background: var(--bg-base);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-raised);
    padding: 2.5rem 2rem;
    max-width: 400px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.signup-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1;
}

.signup-modal-close:hover {
    color: var(--text-primary);
}

/* Animated Mascot */
.signup-mascot {
    margin-bottom: 1rem;
    animation: signup-mascot-bob 2.5s ease-in-out infinite;
}

@keyframes signup-mascot-bob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}

.signup-mascot-body {
    width: 80px;
    height: 50px;
    background-color: var(--mascot-body);
    border-radius: 18px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-icon);
}

.signup-mascot-glare {
    position: absolute;
    top: 7px;
    right: 10px;
    width: 14px;
    height: 6px;
    background: var(--mascot-glare);
    border-radius: 99px;
    transform: rotate(12deg);
}

.signup-mascot-face {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.signup-mascot-eyes {
    display: flex;
    gap: 12px;
}

.signup-mascot-eye {
    animation: signup-mascot-blink 3s ease-in-out infinite;
}

.signup-mascot-eye:nth-child(2) {
    animation-delay: 0s;
}

@keyframes signup-mascot-blink {
    0%, 42%, 48%, 100% { transform: scaleY(1); }
    45% { transform: scaleY(0.1); }
}

.signup-modal-title {
    font-family: 'Syne', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.signup-modal-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

/* Google Sign-In Button */
.signup-google-btn {
    width: 100%;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    border: none;
    background: var(--bg-base);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    box-shadow: var(--shadow-raised);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.signup-google-btn:hover {
    box-shadow: 4px 4px 8px rgba(163,177,198,0.5), -4px -4px 8px rgba(255,255,255,0.7);
}

.dark .signup-google-btn:hover {
    box-shadow: 4px 4px 8px rgba(0,0,0,0.4), -4px -4px 8px rgba(60,60,60,0.3);
}

.signup-google-btn:active {
    box-shadow: var(--shadow-pressed);
}

/* Divider */
.signup-divider {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 1rem 0;
}

.signup-divider::before,
.signup-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--text-tertiary);
    opacity: 0.3;
}

.signup-divider span {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.signup-modal-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.signup-input,
.signup-input[type="text"],
.signup-input[type="email"],
.signup-input[type="password"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    border: none;
    background: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.875rem;
    box-shadow: inset 2px 2px 5px rgba(163,177,198,0.3), inset -2px -2px 5px rgba(255,255,255,0.5);
    outline: none;
    transition: box-shadow 0.2s;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    height: 44px;
    line-height: normal;
    margin: 0;
}

.dark .signup-input {
    box-shadow: inset 2px 2px 5px rgba(0,0,0,0.4), inset -2px -2px 5px rgba(60,60,60,0.3);
}

.signup-input:focus {
    box-shadow: inset 2px 2px 5px rgba(163,177,198,0.4), inset -2px -2px 5px rgba(255,255,255,0.6), 0 0 0 2px rgba(0, 0, 0, 0.08);
}

.dark .signup-input:focus {
    box-shadow: inset 2px 2px 5px rgba(0,0,0,0.5), inset -2px -2px 5px rgba(60,60,60,0.4), 0 0 0 2px rgba(255, 255, 255, 0.08);
}

.signup-input::placeholder {
    color: var(--text-tertiary);
}

.signup-error {
    color: #ef4444;
    font-size: 0.8125rem;
    text-align: center;
    margin: 0;
}

.signup-submit-btn {
    width: 100%;
    padding: 0.875rem;
    border-radius: 9999px;
    border: none;
    background: var(--bg-base);
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    box-shadow: var(--shadow-raised);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.signup-submit-btn:hover {
    box-shadow: 4px 4px 8px rgba(163,177,198,0.5), -4px -4px 8px rgba(255,255,255,0.7);
}

.dark .signup-submit-btn:hover {
    box-shadow: 4px 4px 8px rgba(0,0,0,0.4), -4px -4px 8px rgba(60,60,60,0.3);
}

.signup-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.signup-btn-spinner svg {
    animation: spin 1s linear infinite;
}

.signup-login-link {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-top: 1rem;
}

.signup-login-link a {
    color: var(--text-secondary);
    text-decoration: none;
}

.signup-login-link a:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

/* ═══ Step 2: Plan Selection (wide modal) ═══ */

.signup-modal--wide {
    max-width: 900px;
    padding: 2rem 2rem 1.5rem;
}

.modal-pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.modal-pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    width: 100%;
}

/* Plan Card */
.modal-plan-card {
    background: var(--bg-base);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-raised);
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.modal-plan-card:hover {
    transform: translateY(-3px);
}

.modal-plan-card--featured {
    border: 2px solid var(--text-primary);
    transform: scale(1.04);
    z-index: 1;
}

.modal-plan-card--featured:hover {
    transform: scale(1.04) translateY(-3px);
}

.modal-plan-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-primary);
    color: var(--bg-base);
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 10px;
    border-radius: 9999px;
    white-space: nowrap;
}

.modal-plan-name {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.modal-plan-price {
    margin-bottom: 0.75rem;
}

.modal-plan-amount {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
}

.modal-plan-period {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.modal-plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    width: 100%;
    text-align: left;
}

.modal-plan-features li {
    font-size: 0.75rem;
    color: var(--text-secondary);
    padding: 0.25rem 0;
    padding-left: 1.25rem;
    position: relative;
    line-height: 1.4;
}

.modal-plan-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.45rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-tertiary);
}

/* Plan CTA Button */
.modal-plan-btn {
    width: 100%;
    padding: 0.625rem;
    border-radius: 9999px;
    border: none;
    background: var(--bg-base);
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    box-shadow: var(--shadow-raised);
    transition: all 0.2s;
    margin-top: auto;
}

.modal-plan-btn:hover {
    box-shadow: 4px 4px 8px rgba(163,177,198,0.5), -4px -4px 8px rgba(255,255,255,0.7);
}

.dark .modal-plan-btn:hover {
    box-shadow: 4px 4px 8px rgba(0,0,0,0.4), -4px -4px 8px rgba(60,60,60,0.3);
}

.modal-plan-btn:active {
    box-shadow: var(--shadow-pressed);
}

.modal-plan-btn--featured {
    background: var(--text-primary);
    color: var(--bg-base);
    box-shadow: none;
}

.modal-plan-btn--featured:hover {
    opacity: 0.9;
    box-shadow: none;
}

.dark .modal-plan-btn--featured:hover {
    box-shadow: none;
}

.modal-plan-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.modal-plan-note {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-top: 1rem;
    text-align: center;
}

/* Responsive: Stack plan cards on mobile */
@media (max-width: 700px) {
    .signup-modal--wide {
        max-width: 100%;
        padding: 1.5rem 1rem;
    }
    .modal-pricing-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
}

@media (max-width: 440px) {
    .modal-pricing-grid {
        grid-template-columns: 1fr;
    }
    .modal-plan-card--featured {
        transform: none;
    }
    .modal-plan-card--featured:hover {
        transform: translateY(-3px);
    }
}

/* ============================================
   Responsive
   ============================================ */

@media (min-width: 768px) {
    .brand-name { font-size: 4.5rem; }
    .tagline { font-size: 1.5rem; }
    .demo-heading { font-size: 2.5rem; }
    .pricing-heading { font-size: 2.5rem; }
    .cta-heading { font-size: 2.5rem; }
    .form-container { max-width: 480px; }
    .signup-form { flex-direction: row; }
    .input-wrapper { flex: 1; }
    .cta-button { width: auto; white-space: nowrap; }
}

/* ============================================
   Story Hero - Specificity overrides
   Base .mascot-container / .mascot-bubble / .scroll-indicator
   are defined AFTER the story hero block, so compound
   selectors here guarantee the story variants win.
   ============================================ */

.mascot-container.story-mascot {
    position: absolute;
    top: 18%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 1;
    animation: none;
    margin-bottom: 0;
    will-change: transform, left, top;
    transition: none;
    z-index: 10;
}

.mascot-bubble.story-bubble {
    animation: none;
}

.scroll-indicator.story-scroll-indicator {
    opacity: 1;
    animation: bounce-subtle 2s ease-in-out infinite;
}

/* Scene progress dots removed */

/* ============================================
   Cancel Flow Modal
   ============================================ */

.cancel-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cancel-modal {
    background: var(--bg-base);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-raised);
    padding: 2rem 1.75rem;
    max-width: 440px;
    width: 100%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--text-tertiary) transparent;
}

.cancel-modal::-webkit-scrollbar {
    width: 4px;
}
.cancel-modal::-webkit-scrollbar-track {
    background: transparent;
}
.cancel-modal::-webkit-scrollbar-thumb {
    background: var(--text-tertiary);
    border-radius: 2px;
}

.cancel-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1;
    z-index: 1;
    padding: 4px;
}
.cancel-close:hover {
    color: var(--text-primary);
}

/* Progress Bar */
.cancel-progress {
    margin-bottom: 1.5rem;
    text-align: center;
}
.cancel-progress--hidden {
    display: none;
}
.cancel-progress-track {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--bg-base);
    box-shadow: var(--shadow-pressed);
    position: relative;
    overflow: hidden;
}
.cancel-progress-fill {
    height: 100%;
    border-radius: 3px;
    background: var(--text-primary);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 14%;
}
.cancel-progress-label {
    display: block;
    font-size: 0.6875rem;
    color: var(--text-tertiary);
    margin-top: 0.5rem;
    font-family: var(--font-body);
}

/* Screen Transitions */
.cancel-screen {
    animation: cancel-fade-in 0.3s ease-out;
}
@keyframes cancel-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Typography */
.cancel-title {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.25rem;
    text-align: center;
    letter-spacing: -0.01em;
}
.cancel-title--danger { color: #ef4444; }
.cancel-title--success { color: #28c840; }

.cancel-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0 0 1.25rem;
    text-align: center;
    line-height: 1.5;
}
.cancel-body {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0 0 1.25rem;
    text-align: center;
    line-height: 1.6;
}
.cancel-subtext {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    text-align: center;
    margin: 0 0 1rem;
    line-height: 1.5;
}

/* Icon Container */
.cancel-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--bg-base);
    box-shadow: var(--shadow-raised);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}
.cancel-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--text-primary);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.cancel-icon--danger svg { stroke: #ef4444; }
.cancel-icon--success svg { stroke: #28c840; }

/* Badge */
.cancel-badge {
    display: inline-block;
    background: var(--text-primary);
    color: var(--bg-base);
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 12px;
    border-radius: 9999px;
    margin-bottom: 0.75rem;
    font-family: var(--font-body);
}

/* Buttons */
.cancel-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1.5rem;
    width: 100%;
}
.cancel-actions--stacked { gap: 0.625rem; }

.cancel-btn {
    display: block;
    width: 100%;
    padding: 0.8125rem;
    border-radius: var(--radius-pill);
    border: none;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.cancel-btn--primary {
    background: var(--bg-base);
    color: var(--text-primary);
    box-shadow: var(--shadow-raised);
}
.cancel-btn--primary:hover {
    box-shadow: 4px 4px 8px rgba(163,177,198,0.5), -4px -4px 8px rgba(255,255,255,0.7);
}
.dark .cancel-btn--primary:hover {
    box-shadow: 4px 4px 8px rgba(0,0,0,0.4), -4px -4px 8px rgba(60,60,60,0.3);
}
.cancel-btn--primary:active {
    box-shadow: var(--shadow-pressed);
}
.cancel-btn--primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.cancel-btn--secondary {
    background: var(--text-primary);
    color: var(--bg-base);
    box-shadow: none;
}
.cancel-btn--secondary:hover { opacity: 0.85; }

.cancel-btn--ghost {
    background: none;
    color: var(--text-secondary);
    box-shadow: none;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.8125rem;
}
.cancel-btn--ghost:hover { color: var(--text-primary); }

.cancel-btn--danger {
    background: none;
    color: #ef4444;
    box-shadow: none;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.8125rem;
}
.cancel-btn--danger:hover { background: rgba(239, 68, 68, 0.08); border-radius: var(--radius-pill); }

/* Stats Grid (RESELL) */
.cancel-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    width: 100%;
}
.cancel-stat-card {
    background: var(--bg-base);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-pressed);
    padding: 1rem;
    text-align: center;
}
.cancel-stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.125rem;
}
.cancel-stat-label {
    display: block;
    font-size: 0.6875rem;
    color: var(--text-secondary);
}
.cancel-stat-card--highlight {
    box-shadow: var(--shadow-raised);
    border: 1.5px solid var(--text-primary);
}

/* Loss Box (RESELL) */
.cancel-loss-box {
    width: 100%;
    background: var(--bg-base);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-pressed);
    padding: 1rem 1.25rem;
}
.cancel-loss-heading {
    font-size: 0.75rem;
    font-weight: 700;
    color: #ef4444;
    margin: 0 0 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Loss List */
.cancel-loss-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}
.cancel-loss-list li {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    padding: 0.375rem 0;
    padding-left: 1.25rem;
    position: relative;
    line-height: 1.4;
}
.cancel-loss-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.625rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-tertiary);
}
.cancel-loss-list--danger li { color: var(--text-primary); }
.cancel-loss-list--danger li::before { background: #ef4444; }

/* Reason Buttons (SURVEY) */
.cancel-reasons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    margin-bottom: 0.5rem;
}
.cancel-reason {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-base);
    box-shadow: var(--shadow-raised);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    color: var(--text-primary);
    text-align: left;
    transition: all 0.15s;
}
.cancel-reason:hover {
    box-shadow: var(--shadow-button-active);
}
.cancel-reason.selected {
    border-color: var(--text-primary);
    box-shadow: var(--shadow-pressed);
}
.cancel-reason-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cancel-reason-icon svg {
    width: 18px;
    height: 18px;
    stroke: var(--text-secondary);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.cancel-reason.selected .cancel-reason-icon svg {
    stroke: var(--text-primary);
}

/* Textarea (SURVEY other) */
.cancel-other-input {
    margin-bottom: 0.5rem;
    width: 100%;
}
.cancel-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    border: none;
    background: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.875rem;
    box-shadow: inset 2px 2px 5px rgba(163,177,198,0.3), inset -2px -2px 5px rgba(255,255,255,0.5);
    outline: none;
    resize: vertical;
    min-height: 80px;
    transition: box-shadow 0.2s;
}
.dark .cancel-textarea {
    box-shadow: inset 2px 2px 5px rgba(0,0,0,0.4), inset -2px -2px 5px rgba(60,60,60,0.3);
}
.cancel-textarea:focus {
    box-shadow: inset 2px 2px 5px rgba(163,177,198,0.4), inset -2px -2px 5px rgba(255,255,255,0.6), 0 0 0 2px rgba(0,0,0,0.08);
}
.dark .cancel-textarea:focus {
    box-shadow: inset 2px 2px 5px rgba(0,0,0,0.5), inset -2px -2px 5px rgba(60,60,60,0.4), 0 0 0 2px rgba(255,255,255,0.08);
}
.cancel-textarea::placeholder { color: var(--text-tertiary); }

/* Price Cards (PICK PRICE) */
.cancel-price-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    width: 100%;
    margin-bottom: 0.5rem;
}
.cancel-price-card {
    background: var(--bg-base);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-raised);
    border: 2px solid transparent;
    padding: 1.25rem 0.5rem 1rem;
    cursor: pointer;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.125rem;
    position: relative;
    transition: all 0.2s;
    font-family: var(--font-body);
}
.cancel-price-card:hover { transform: translateY(-2px); }
.cancel-price-card.selected {
    border-color: var(--text-primary);
    box-shadow: var(--shadow-pressed);
    transform: none;
}
.cancel-price-card--recommended {
    border-color: var(--text-primary);
    transform: scale(1.04);
}
.cancel-price-card--recommended:hover { transform: scale(1.04) translateY(-2px); }
.cancel-price-card--recommended.selected { transform: scale(1.04); }

.cancel-price-badge, .cancel-pause-badge {
    position: absolute;
    top: -9px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-primary);
    color: var(--bg-base);
    font-size: 0.5625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 2px 8px;
    border-radius: 9999px;
    white-space: nowrap;
}
.cancel-price-amount {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}
.cancel-price-period {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-secondary);
}
.cancel-price-discount {
    font-size: 0.6875rem;
    font-weight: 700;
    color: #28c840;
    margin-top: 0.25rem;
}

/* Pause Cards */
.cancel-pause-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    width: 100%;
    margin-bottom: 0.75rem;
}
.cancel-pause-card {
    background: var(--bg-base);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-raised);
    border: 2px solid transparent;
    padding: 1.25rem 0.5rem 1rem;
    cursor: pointer;
    text-align: center;
    position: relative;
    transition: all 0.2s;
    font-family: var(--font-body);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}
.cancel-pause-card:hover { transform: translateY(-2px); }
.cancel-pause-card.selected {
    border-color: var(--text-primary);
    box-shadow: var(--shadow-pressed);
    transform: none;
}
.cancel-pause-card--recommended {
    border-color: var(--text-primary);
}
.cancel-pause-duration {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}
.cancel-pause-desc {
    font-size: 0.6875rem;
    color: var(--text-secondary);
}

/* Reassurance note */
.cancel-reassurance {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--bg-base);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-pressed);
    margin-bottom: 0.5rem;
    width: 100%;
}
.cancel-reassurance svg { flex-shrink: 0; margin-top: 1px; }
.cancel-reassurance span {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Confirm Details */
.cancel-confirm-details {
    width: 100%;
    background: var(--bg-base);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-pressed);
    padding: 0.25rem 1rem;
    margin-bottom: 0.5rem;
}
.cancel-confirm-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
}
.cancel-confirm-row + .cancel-confirm-row {
    border-top: 1px solid rgba(0,0,0,0.06);
}
.dark .cancel-confirm-row + .cancel-confirm-row {
    border-top-color: rgba(255,255,255,0.06);
}
.cancel-confirm-label {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}
.cancel-confirm-value {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Comeback Card (CANCELLED) */
.cancel-comeback-card {
    width: 100%;
    background: var(--bg-base);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-raised);
    padding: 1.25rem;
    margin-bottom: 0.5rem;
}
.cancel-comeback-title {
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.75rem;
}
.cancel-comeback-perks {
    list-style: none;
    padding: 0;
    margin: 0;
}
.cancel-comeback-perks li {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    padding: 0.25rem 0;
    padding-left: 1.25rem;
    position: relative;
}
.cancel-comeback-perks li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #28c840;
}

/* Mobile */
@media (max-width: 480px) {
    .cancel-modal {
        padding: 1.5rem 1.25rem;
        max-width: 100%;
        max-height: 85vh;
    }
    .cancel-price-options,
    .cancel-pause-options {
        grid-template-columns: 1fr;
        gap: 0.625rem;
    }
    .cancel-price-card--recommended {
        transform: none;
    }
    .cancel-price-card--recommended:hover { transform: translateY(-2px); }
    .cancel-price-card--recommended.selected { transform: none; }
    .cancel-title { font-size: 1.25rem; }
}

/* ============================================
   ORIGIN STORY SECTION
   ============================================ */
.origin-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6rem 2rem;
    position: relative;
    z-index: 1;
}

.origin-content {
    max-width: 900px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 3rem;
    opacity: 0;
    transform: translateY(20px);
}

.origin-content.animate-in {
    animation: fade-up 0.6s ease-out forwards;
}

.origin-photo-wrap {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.origin-photo {
    width: 280px;
    height: 340px;
    border-radius: var(--radius-lg);
    background: var(--bg-inset);
    box-shadow: var(--shadow-raised);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.origin-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.origin-photo svg {
    color: var(--text-secondary);
    opacity: 0.35;
}

.origin-photo-caption {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.origin-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.origin-heading {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.02em;
}

.origin-narrative {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.origin-narrative p {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--text-primary);
    margin: 0;
}

.origin-closer {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.01em;
}

@media (min-width: 768px) {
    .origin-heading {
        font-size: 2.5rem;
    }
}

@media (max-width: 767px) {
    .origin-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .origin-photo {
        width: 200px;
        height: 240px;
    }
}
