:root {
    /* Warm, trustworthy palette */
    --cream: #FDF8F3;
    --warm-white: #FFFCF8;
    --paper: #F5EDE4;
    --ink: #2D2A26;
    --ink-light: #5C5650;
    --ink-muted: #8A847C;

    /* Accent colors - muted but characterful */
    --coral: #E07B67;
    --coral-soft: #F4B8AD;
    --sage: #7A9E7E;
    --sage-soft: #C4D9C6;
    --mustard: #D4A84B;
    --mustard-soft: #F0DEB3;
    --lavender: #9B8AAD;
    --lavender-soft: #D4CDE0;

    /* Functional */
    --shadow-soft: rgba(45, 42, 38, 0.06);
    --shadow-medium: rgba(45, 42, 38, 0.12);
    --border-subtle: rgba(45, 42, 38, 0.08);

    /* Typography */
    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, sans-serif;
    --font-handwritten: 'Caveat', cursive;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background: var(--cream);
    color: var(--ink);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Paper texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.25;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='2.5' numOctaves='5' stitchTiles='stitch'/%3E%3CfeGaussianBlur stdDeviation='0.3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    z-index: 1000;
}

/* Hero Section */
.hero {
    background: linear-gradient(180deg, var(--warm-white) 0%, var(--cream) 100%);
    padding: 60px 24px 100px;
    position: relative;
    overflow: hidden;
}

/* Decorative doodles */
.hero::before {
    content: '';
    position: absolute;
    top: 40px;
    right: 5%;
    width: 200px;
    height: 200px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M20 50 Q35 20 50 50 Q65 80 80 50' stroke='%23E07B67' stroke-width='2' fill='none' opacity='0.3'/%3E%3Ccircle cx='25' cy='30' r='8' stroke='%237A9E7E' stroke-width='1.5' fill='none' opacity='0.25'/%3E%3Crect x='60' y='65' width='15' height='15' stroke='%23D4A84B' stroke-width='1.5' fill='none' transform='rotate(15 67.5 72.5)' opacity='0.25'/%3E%3C/svg%3E");
    background-size: contain;
    opacity: 0.8;
    animation: float 6s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 60px;
    left: 3%;
    width: 150px;
    height: 150px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M10 70 L30 30 L50 70 L70 30 L90 70' stroke='%239B8AAD' stroke-width='2' fill='none' opacity='0.25'/%3E%3Ccircle cx='75' cy='25' r='12' stroke='%23E07B67' stroke-width='1.5' fill='none' opacity='0.2'/%3E%3C/svg%3E");
    background-size: contain;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(3deg); }
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Navigation */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.logo:hover .logo-icon {
    transform: rotate(-8deg);
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: var(--coral);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    transform: rotate(-3deg);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.alpha-badge {
    display: inline-block;
    background: var(--mustard);
    color: var(--ink);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hero Content */
.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    align-items: center;
}

@media (min-width: 900px) {
    .hero-content {
        grid-template-columns: 1.1fr 1fr;
        gap: 80px;
    }
}

.hero-text {
    max-width: 520px;
}

.wordmark {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 20px;
    color: var(--ink);
    letter-spacing: -0.02em;
}

.wordmark span {
    color: var(--coral);
    font-style: italic;
}

.tagline {
    font-size: 1.35rem;
    color: var(--ink-light);
    margin-bottom: 12px;
    font-weight: 400;
}

.subtext {
    font-size: 1.1rem;
    color: var(--ink-muted);
    margin-bottom: 35px;
}

/* Handwritten annotation */
.annotation {
    font-family: var(--font-handwritten);
    font-size: 1.3rem;
    color: var(--coral);
    transform: rotate(-2deg);
    display: inline-block;
    margin-bottom: 15px;
}

.cta-button {
    background: var(--ink);
    color: var(--warm-white);
    border: none;
    padding: 16px 36px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px var(--shadow-medium);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.6s ease;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px var(--shadow-medium);
    background: #3d3a36;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:active {
    transform: translateY(-1px) scale(1);
    transition: all 0.1s ease;
}

/* Hero Chat Preview */
.hero-chat {
    background: var(--warm-white);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 40px var(--shadow-soft), 0 1px 3px var(--shadow-soft);
    position: relative;
}

.hero-chat::before {
    content: 'Assistant chat preview';
    font-family: var(--font-handwritten);
    font-size: 1.1rem;
    color: var(--sage);
    position: absolute;
    top: -28px;
    left: 20px;
    transform: rotate(-3deg);
}

.hero-chat-message,
.chat-message {
    margin-bottom: 14px;
    opacity: 0;
    animation: fadeSlideIn 0.5s forwards;
}

.hero-chat-message:last-child,
.chat-message:last-child {
    margin-bottom: 0;
}

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

.hero-chat-bubble,
.chat-bubble {
    display: inline-block;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 0.95rem;
    max-width: 85%;
    line-height: 1.5;
}

.chat-bubble {
    max-width: 80%;
    text-align: left;
    white-space: pre-line;
}

.hero-chat-message.user,
.chat-message.user {
    text-align: right;
}

.hero-chat-message.user .hero-chat-bubble,
.hero-chat-message.user .chat-bubble,
.chat-message.user .hero-chat-bubble,
.chat-message.user .chat-bubble {
    background: var(--ink);
    color: var(--warm-white);
    border-bottom-right-radius: 4px;
    text-align: left;
}

.hero-chat-message.assistant .hero-chat-bubble,
.hero-chat-message.assistant .chat-bubble,
.chat-message.assistant .hero-chat-bubble,
.chat-message.assistant .chat-bubble {
    background: var(--paper);
    color: var(--ink);
    border-bottom-left-radius: 4px;
}

.chat-message.image-placeholder .chat-bubble {
    background: var(--lavender-soft);
    color: var(--ink-light);
    font-style: italic;
    font-size: 0.9rem;
}

/* Pitch Section */
.pitch {
    background: var(--paper);
    padding: 100px 24px;
    position: relative;
}

.pitch-content {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}

.pitch-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--ink);
    line-height: 1.2;
}

.pitch-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--ink-light);
}

/* Demo Section */
.demo {
    background: var(--warm-white);
    padding: 100px 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--ink);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--ink-muted);
}

.demo-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.demo-tab {
    background: transparent;
    border: 2px solid var(--border-subtle);
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--ink-muted);
    position: relative;
}

.demo-tab:hover:not(.active) {
    border-color: var(--ink-light);
    color: var(--ink);
    transform: translateY(-1px);
    background: var(--warm-white);
}

.demo-tab.active {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--warm-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-soft);
}

.chat-container {
    max-width: 580px;
    margin: 0 auto;
    background: var(--warm-white);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 24px;
    min-height: 380px;
    box-shadow: 0 4px 20px var(--shadow-soft);
}

.typing-indicator {
    display: inline-flex;
    gap: 5px;
    padding: 14px 18px;
    background: var(--paper);
    border-radius: 14px;
    border-bottom-left-radius: 4px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--ink-muted);
    border-radius: 50%;
    animation: bounce 1.4s infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-8px); }
}

/* Features Section */
.features {
    background: var(--cream);
    padding: 100px 24px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 50px;
}

.feature-card {
    background: var(--warm-white);
    padding: 32px 28px;
    border-radius: 16px;
    border: 1px solid var(--border-subtle);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card {
    --accent-color: var(--coral);
    --accent-soft: var(--coral-soft);
}

.feature-card:nth-child(2) {
    --accent-color: var(--sage);
    --accent-soft: var(--sage-soft);
}

.feature-card:nth-child(3) {
    --accent-color: var(--mustard);
    --accent-soft: var(--mustard-soft);
}

.feature-card:nth-child(4) {
    --accent-color: var(--lavender);
    --accent-soft: var(--lavender-soft);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--accent-color);
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top left, var(--border-subtle), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.feature-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 16px 40px var(--shadow-soft);
    border-color: var(--border-subtle);
}

.feature-card:hover::before {
    height: 100%;
}

.feature-card:hover::after {
    opacity: 1;
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 18px;
    background: var(--accent-soft);
}

.feature-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--ink);
}

.feature-text {
    color: var(--ink-light);
    line-height: 1.65;
    font-size: 0.95rem;
}

/* Trust Section */
.trust {
    background: var(--warm-white);
    padding: 80px 24px;
    text-align: center;
}

.trust-content {
    max-width: 550px;
    margin: 0 auto;
}

.trust-icon {
    width: 64px;
    height: 64px;
    background: var(--sage-soft);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 24px;
}

.trust-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--ink);
}

.trust-text {
    font-size: 1.05rem;
    color: var(--ink-light);
    margin-bottom: 20px;
    line-height: 1.7;
}

.privacy-link {
    color: var(--coral);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

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

/* Waitlist CTA */
.waitlist-cta {
    background: var(--ink);
    color: var(--warm-white);
    padding: 100px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.waitlist-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='3.0' numOctaves='6' stitchTiles='stitch'/%3E%3CfeGaussianBlur stdDeviation='0.4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.015;
}

.waitlist-content {
    position: relative;
    z-index: 1;
}

.waitlist-annotation {
    font-family: var(--font-handwritten);
    font-size: 1.4rem;
    color: var(--coral);
    margin-bottom: 12px;
    transform: rotate(-1deg);
    display: inline-block;
}

.waitlist-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 16px;
}

.waitlist-subtitle {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 40px;
}

.waitlist-form {
    max-width: 460px;
    margin: 0 auto;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.email-input {
    flex: 1;
    min-width: 260px;
    padding: 16px 20px;
    border: 2px solid transparent;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 1rem;
    background: var(--warm-white);
    color: var(--ink);
    transition: all 0.2s ease;
}

.email-input:focus {
    outline: none;
    border-color: var(--coral);
    box-shadow: 0 0 0 3px rgba(224, 123, 103, 0.1);
}

.email-input::placeholder {
    color: var(--ink-muted);
}

.submit-button {
    background: var(--coral);
    color: white;
    border: none;
    padding: 16px 32px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(224, 123, 103, 0.3);
}

.submit-button:hover:not(:disabled) {
    background: #c96a58;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 16px rgba(224, 123, 103, 0.4);
}

.submit-button:active:not(:disabled) {
    transform: translateY(0) scale(1);
    transition: all 0.1s ease;
}

.submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.waitlist-message {
    margin-top: 24px;
    font-size: 1rem;
    min-height: 28px;
}

.waitlist-message.success {
    color: var(--sage-soft);
}

.waitlist-message.error {
    color: var(--coral-soft);
}

/* Footer */
footer {
    background: var(--ink);
    color: var(--warm-white);
    padding: 40px 24px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
}

footer a {
    color: var(--coral-soft);
    text-decoration: none;
    margin: 0 16px;
    font-size: 0.95rem;
    transition: color 0.2s;
}

footer a:hover {
    color: var(--warm-white);
}

.footer-copy {
    margin-top: 20px;
    opacity: 0.5;
    font-size: 0.85rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 40px 20px 80px;
    }

    .hero::before,
    .hero::after {
        display: none;
    }

    .nav {
        margin-bottom: 40px;
    }

    .wordmark {
        font-size: clamp(2.2rem, 8vw, 2.8rem);
    }

    .tagline {
        font-size: 1.15rem;
    }

    .subtext {
        font-size: 1rem;
    }

    .hero-chat::before {
        display: none;
    }

    .pitch,
    .demo,
    .features,
    .trust,
    .waitlist-cta {
        padding: 60px 20px;
    }

    .demo-tabs {
        gap: 6px;
    }

    .demo-tab {
        padding: 8px 14px;
        font-size: 0.85rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .waitlist-form {
        flex-direction: column;
    }

    .email-input {
        min-width: 100%;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .cta-button:active {
        transform: scale(0.98);
    }

    .demo-tab:active {
        transform: scale(0.98);
    }

    .feature-card:active {
        transform: translateY(-2px) scale(0.99);
    }
}

/* =============================================================================
   Story Section - Personal note aesthetic
   ============================================================================= */

.story {
    background: var(--paper);
    padding: 100px 24px;
    position: relative;
    overflow: hidden;
}

/* Decorative background squiggles */
.story::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 5%;
    width: 120px;
    height: 120px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M15 50 Q30 25 50 50 Q70 75 85 50' stroke='%23D4A84B' stroke-width='2' fill='none' opacity='0.2'/%3E%3C/svg%3E");
    background-size: contain;
    animation: float 7s ease-in-out infinite;
}

.story::after {
    content: '';
    position: absolute;
    bottom: 15%;
    right: 8%;
    width: 100px;
    height: 100px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='25' stroke='%237A9E7E' stroke-width='1.5' fill='none' opacity='0.2'/%3E%3Cpath d='M30 70 L50 50 L70 70' stroke='%239B8AAD' stroke-width='1.5' fill='none' opacity='0.2'/%3E%3C/svg%3E");
    background-size: contain;
    animation: float 9s ease-in-out infinite reverse;
}

.story-paper {
    max-width: 680px;
    margin: 0 auto;
    background: var(--warm-white);
    padding: 48px 48px 40px;
    border-radius: 4px;
    position: relative;
    box-shadow:
        0 1px 3px var(--shadow-soft),
        0 8px 30px var(--shadow-soft),
        0 20px 50px rgba(45, 42, 38, 0.04);
    transform: rotate(-0.5deg);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.story-paper:hover {
    transform: rotate(0deg) translateY(-4px);
}

/* Paper corner folds */
.story-corner {
    position: absolute;
    width: 0;
    height: 0;
}

.story-corner-tl {
    top: 0;
    left: 0;
    border-top: 24px solid var(--paper);
    border-right: 24px solid transparent;
}

.story-corner-br {
    bottom: 0;
    right: 0;
    border-bottom: 20px solid var(--paper);
    border-left: 20px solid transparent;
}

/* Tape effect */
.story-tape {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%) rotate(-2deg);
    width: 80px;
    height: 28px;
    background: linear-gradient(
        135deg,
        rgba(212, 168, 75, 0.4) 0%,
        rgba(212, 168, 75, 0.25) 100%
    );
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(212, 168, 75, 0.2);
}

.story-tape::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent 0px,
        transparent 4px,
        rgba(255, 255, 255, 0.3) 4px,
        rgba(255, 255, 255, 0.3) 8px
    );
    border-radius: 2px;
}

.story-title {
    font-family: var(--font-handwritten);
    font-size: 2rem;
    color: var(--coral);
    margin-bottom: 28px;
    transform: rotate(-1deg);
    display: inline-block;
}

.story-content {
    position: relative;
}

.story-content p {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--ink-light);
    margin-bottom: 18px;
}

.story-content p:last-child {
    margin-bottom: 0;
}

.story-intro {
    font-size: 1.2rem !important;
    color: var(--ink) !important;
    font-weight: 500;
    margin-bottom: 24px !important;
}

.story-signature {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px dashed var(--border-subtle);
    text-align: right;
}

.signature-dash {
    font-family: var(--font-handwritten);
    font-size: 1.5rem;
    color: var(--ink-muted);
    margin-right: 6px;
}

.signature-text {
    font-family: var(--font-handwritten);
    font-size: 1.8rem;
    color: var(--sage);
    transform: rotate(-2deg);
    display: inline-block;
}

/* =============================================================================
   App Preview Gallery Section
   ============================================================================= */

.app-preview {
    background: var(--warm-white);
    padding: 100px 24px;
    position: relative;
    overflow: hidden;
}

.preview-gallery {
    max-width: 400px;
    margin: 0 auto;
    position: relative;
}

.phone-frame {
    background: #1a1a1a;
    border-radius: 40px;
    padding: 12px;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    position: relative;
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 24px;
    background: #1a1a1a;
    border-radius: 0 0 14px 14px;
    z-index: 10;
}

.phone-screen {
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    background: var(--cream);
}

.gallery-slides {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-slide {
    min-width: 100%;
    position: relative;
}

.gallery-slide img,
.gallery-slide video {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-slide video {
    background: var(--cream);
}

/* Gallery navigation dots */
.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}

.gallery-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-subtle);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.gallery-dot:hover {
    background: var(--ink-muted);
}

.gallery-dot.active {
    background: var(--sage);
    transform: scale(1.2);
}

/* Gallery arrow buttons */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--warm-white);
    border: 1px solid var(--border-subtle);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--ink-muted);
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px var(--shadow-soft);
    z-index: 10;
}

.gallery-nav:hover {
    background: var(--ink);
    color: var(--warm-white);
    border-color: var(--ink);
}

.gallery-nav.prev {
    left: -60px;
}

.gallery-nav.next {
    right: -60px;
}

.gallery-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.gallery-nav:disabled:hover {
    background: var(--warm-white);
    color: var(--ink-muted);
    border-color: var(--border-subtle);
}

/* Play button overlay for video */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: background 0.2s ease;
}

.video-overlay:hover {
    background: rgba(0, 0, 0, 0.3);
}

.video-overlay.hidden {
    display: none;
}

.play-button {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--warm-white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.video-overlay:hover .play-button {
    transform: scale(1.1);
}

.play-button::before {
    content: '';
    width: 0;
    height: 0;
    border-left: 24px solid var(--sage);
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
    margin-left: 6px;
}

/* Mobile responsive for gallery */
@media (max-width: 768px) {
    .app-preview {
        padding: 60px 20px;
    }

    .preview-gallery {
        max-width: 320px;
    }

    .phone-frame {
        border-radius: 32px;
        padding: 10px;
    }

    .phone-frame::before {
        width: 60px;
        height: 20px;
        border-radius: 0 0 10px 10px;
    }

    .phone-screen {
        border-radius: 22px;
    }

    .gallery-nav {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .gallery-nav.prev {
        left: -46px;
    }

    .gallery-nav.next {
        right: -46px;
    }
}

@media (max-width: 520px) {
    .gallery-nav {
        display: none;
    }

    .preview-gallery {
        max-width: 280px;
    }
}

/* =============================================================================
   FAQ Section - Accordion style
   ============================================================================= */

.faq {
    background: var(--cream);
    padding: 100px 24px;
    position: relative;
}

.faq-annotation {
    font-family: var(--font-handwritten);
    font-size: 1.4rem;
    color: var(--sage);
    transform: rotate(-2deg);
    display: inline-block;
    margin-bottom: 8px;
}

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

.faq-item {
    background: var(--warm-white);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:hover {
    border-color: rgba(45, 42, 38, 0.12);
    box-shadow: 0 4px 16px var(--shadow-soft);
}

.faq-item.active {
    border-color: var(--coral-soft);
    box-shadow: 0 4px 20px var(--shadow-soft);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--ink);
    text-align: left;
    transition: all 0.2s ease;
}

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

.faq-question span:first-child {
    flex: 1;
    padding-right: 16px;
}

.faq-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--paper);
    border-radius: 50%;
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--ink-muted);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    background: var(--coral);
    color: white;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 24px 24px;
    font-size: 1rem;
    line-height: 1.75;
    color: var(--ink-light);
}

.faq-answer a {
    color: var(--coral);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.faq-answer a:hover {
    color: var(--ink);
}

/* =============================================================================
   Mobile Responsive - Story & FAQ
   ============================================================================= */

@media (max-width: 768px) {
    .story {
        padding: 60px 20px;
    }

    .story::before,
    .story::after {
        display: none;
    }

    .story-paper {
        padding: 32px 24px 28px;
        transform: none;
    }

    .story-paper:hover {
        transform: translateY(-2px);
    }

    .story-corner-tl,
    .story-corner-br {
        display: none;
    }

    .story-tape {
        width: 60px;
        height: 22px;
        top: -6px;
    }

    .story-title {
        font-size: 1.7rem;
    }

    .story-content p {
        font-size: 1rem;
    }

    .story-intro {
        font-size: 1.1rem !important;
    }

    .signature-text {
        font-size: 1.5rem;
    }

    .faq {
        padding: 60px 20px;
    }

    .faq-annotation {
        font-size: 1.2rem;
    }

    .faq-question {
        padding: 16px 20px;
        font-size: 1rem;
    }

    .faq-icon {
        width: 24px;
        height: 24px;
        font-size: 1.1rem;
    }

    .faq-answer p {
        padding: 0 20px 20px;
        font-size: 0.95rem;
    }
}
