/* === flomily Landing Page — Warm, Professional, Cohesive === */

:root {
    /* Primary palette: warm teal family */
    --primary: #2A9D8F;
    --primary-dark: #238B7E;
    --primary-light: #E8F6F4;
    --primary-glow: rgba(42, 157, 143, 0.12);

    /* Accent: warm peach/terracotta */
    --accent: #E76F51;
    --accent-dark: #D45A3C;
    --accent-light: #FDF0EC;

    /* Supporting: soft gold */
    --gold: #E9C46A;
    --gold-light: #FBF5E4;

    /* Neutrals */
    --slate: #2D3748;
    --muted: #718096;
    --light-muted: #A0AEC0;
    --snow: #FAFCFB;
    --warm-bg: #F7FAFA;
    --card-bg: #FFFFFF;

    /* Effects */
    --shadow: 0 2px 12px rgba(45, 55, 72, 0.06);
    --shadow-hover: 0 8px 28px rgba(45, 55, 72, 0.1);
    --radius: 14px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Quicksand', 'Segoe UI', system-ui, sans-serif;
    color: var(--slate);
    background: var(--snow);
    line-height: 1.65;
    font-weight: 500;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3 {
    line-height: 1.25;
    font-weight: 700;
}

/* === Header === */

.header-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.header-bar .burger {
    position: absolute;
    right: 0;
}

.lang-switch {
    position: absolute;
    right: 50px;
    font-size: 0.85rem;
    color: var(--muted);
}
.lang-switch a {
    color: var(--muted);
    text-decoration: none;
}
.lang-switch a.lang-active {
    color: var(--primary);
    font-weight: 700;
}
.lang-switch a:hover {
    color: var(--primary-dark);
}

/* Offset for anchor scroll — compensate sticky header height */
section[id] {
    scroll-margin-top: 70px;
}

.burger {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 201;
}

.burger span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--slate);
    border-radius: 2px;
    transition: all 0.3s;
}

.burger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger.open span:nth-child(2) {
    opacity: 0;
}

.burger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.nav-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.3);
    z-index: 199;
}
.nav-backdrop.open {
    display: block;
}
.nav-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 220px;
    height: 100vh;
    background: #fff;
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
    z-index: 200;
    display: flex;
    flex-direction: column;
    padding: 60px 24px 24px;
    gap: 10px;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.nav-overlay.open {
    right: 0;
}

.nav-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--slate);
    cursor: pointer;
}

.nav-overlay a {
    color: var(--slate);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 6px 0;
    border-bottom: 1px solid var(--warm-bg);
}

.nav-overlay a:hover {
    color: var(--primary);
}

/* === Hero === */

.hero {
    background: linear-gradient(150deg, #2A9D8F 0%, #3DBBAD 40%, #5CC9BA 100%);
    color: #fff;
    padding: 60px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 80%;
    height: 160%;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.1) 0%, transparent 65%);
    pointer-events: none;
}

.site-header {
    background: #fff;
    padding: 16px 0;
    text-align: center;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 8px rgba(45, 55, 72, 0.06);
}

.header-logo {
    width: 160px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.3px;
    position: relative;
}

.subline {
    font-size: 1.35rem;
    max-width: 600px;
    margin: 0 auto 36px;
    opacity: 0.95;
    line-height: 1.6;
    font-weight: 500;
}

.hero-trust {
    font-size: 0.95rem;
    opacity: 0.85;
    max-width: 520px;
    margin: -16px auto 28px;
    font-weight: 500;
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
}

.hero-wave svg {
    width: 100%;
    height: 60px;
}

/* === CTA Buttons === */

.cta-button {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 15px 34px;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    box-shadow: 0 4px 14px rgba(231, 111, 81, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(231, 111, 81, 0.4);
    background: var(--accent-dark);
}

.cta-secondary {
    margin-top: 28px;
}

.cta-ghost {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.7);
    box-shadow: none;
}

.cta-ghost:hover {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: none;
    border-color: #fff;
}

.hero-ctas {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}

@media (max-width: 600px) {
    .hero-ctas {
        flex-direction: column;
        align-items: stretch;
    }
    .hero-ctas .cta-button {
        text-align: center;
    }
}

/* === Hero Video === */
.hero-video {
    width: 220px;
    margin: 40px auto 0;
}
.hero-video video {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
@media (max-width: 768px) {
    .hero-video {
        width: 180px;
        margin: 32px auto 0;
    }
}

/* === Demo Animation === */

.demo-animation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 48px;
    flex-wrap: wrap;
    position: relative;
}

.demo-phone, .demo-calendar {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 18px;
    padding: 16px 18px;
    width: 250px;
    text-align: left;
}

.demo-phone-header, .demo-cal-header {
    font-weight: 700;
    font-size: 1rem;
    opacity: 0.85;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.demo-message {
    background: rgba(255,255,255,0.13);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 6px;
    font-size: 1.1rem;
    opacity: 0;
    animation: fadeSlideIn 0.6s ease forwards;
}

.demo-sender {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 2px;
}

.demo-msg-1 { animation-delay: 0.5s; }
.demo-msg-2 { animation-delay: 1.5s; }
.demo-msg-3 { animation-delay: 2.5s; }

.demo-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.75);
}

.demo-arrow-svg {
    width: 60px;
    height: 20px;
}

.demo-spark {
    font-size: 1.4rem;
    animation: sparkPulse 2s ease infinite;
}

.demo-cal-entry {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 0;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    opacity: 0;
    animation: fadeSlideIn 0.6s ease forwards;
}

.demo-cal-entry:last-child { border-bottom: none; }
.demo-cal-1 { animation-delay: 1.0s; }
.demo-cal-2 { animation-delay: 2.0s; }
.demo-cal-3 { animation-delay: 3.0s; }

.demo-cal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.demo-cal-dot.green { background: var(--primary); }
.demo-cal-dot.orange { background: var(--accent); }
.demo-cal-dot.pink { background: var(--gold); }

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

@keyframes sparkPulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.3); }
}

/* === Pain Points === */

.pain {
    padding: 60px 0;
    background: var(--snow);
}

.pain h2 {
    text-align: center;
    font-size: 2.1rem;
    margin-bottom: 32px;
}

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

.pain-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--accent);
    transition: transform 0.2s, box-shadow 0.2s;
}

.pain-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.pain-emoji {
    font-size: 1.6rem;
    margin-bottom: 6px;
}

.pain-quote {
    font-size: 1.02rem;
    font-weight: 700;
    font-style: italic;
    margin-bottom: 6px;
    color: var(--accent-dark);
}

.pain-card p {
    font-size: 0.9rem;
    color: var(--muted);
}

.pain-resolve {
    text-align: center;
    padding: 36px;
    background: var(--primary);
    border-radius: 18px;
    color: #fff;
    box-shadow: 0 4px 20px rgba(42, 157, 143, 0.25);
}

.resolve-emoji {
    font-size: 2.2rem;
    margin-bottom: 8px;
}

.resolve-text {
    font-size: 1.35rem;
    margin-bottom: 8px;
}

.resolve-sub {
    font-size: 0.98rem;
    opacity: 0.92;
}

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

.social-proof {
    padding: 40px 0;
    background: var(--warm-bg);
}

.proof-grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
}

.proof-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    border-top: 3px solid var(--primary);
    transition: transform 0.2s;
}

.proof-card:hover {
    transform: translateY(-3px);
}
.beta-quotes {
    margin-top: 32px;
    text-align: center;
}
.beta-quotes h3 {
    font-size: 1.1rem;
    color: var(--heading);
    margin-bottom: 16px;
}
.beta-quotes-track {
    position: relative;
    min-height: 120px;
}
.beta-quote-card {
    display: none;
    background: var(--primary-light);
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    padding: 24px 28px;
    max-width: 500px;
    margin: 0 auto;
}
.beta-quote-card.active {
    display: block;
}
.beta-quote-card .proof-quote {
    font-size: 1rem;
    margin-bottom: 8px;
}
.beta-quotes-dots {
    margin-top: 12px;
    display: flex;
    justify-content: center;
    gap: 8px;
}
.beta-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: #cbd5e1;
    cursor: pointer;
}
.beta-dot.active {
    background: var(--primary);
}

.proof-quote {
    font-size: 1rem;
    font-style: italic;
    color: var(--slate);
    line-height: 1.6;
    margin-bottom: 12px;
}

.proof-author {
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: 600;
}

/* === How it works === */

.how {
    padding: 60px 0;
    text-align: center;
    background: var(--warm-bg);
}

.how h2 {
    font-size: 2.1rem;
    margin-bottom: 36px;
}

.steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 12px;
}

.step {
    text-align: center;
    flex: 1;
    max-width: 240px;
}

.step-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.step-number {
    width: 38px;
    height: 38px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    margin: 0 auto 12px;
}

.step h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.step p {
    font-size: 0.9rem;
    color: var(--muted);
}

.step-arrow {
    font-size: 1.6rem;
    color: var(--primary);
    padding-top: 44px;
    font-weight: 700;
}

/* === Demo Carousel === */

.demo-carousel-section {
    padding: 60px 0;
    background: var(--snow);
    text-align: center;
}

.demo-carousel-section h2 {
    font-size: 2.1rem;
    margin-bottom: 8px;
}

.demo-subtitle {
    color: var(--muted);
    font-size: 1.05rem;
    margin-bottom: 36px;
}

.carousel {
    position: relative;
    max-width: 860px;
    margin: 0 auto;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    padding: 0 20px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #CBD5E0;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #E2E8F0;
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.2s;
}

.carousel-nav:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.carousel-prev { left: 0; }
.carousel-next { right: 0; }

.scene-label {
    display: inline-block;
    background: none;
    color: var(--primary);
    padding: 0;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 0.02em;
}

/* Demo flow layout */
.demo-flow {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 24px;
}

.demo-mockup {
    width: 250px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 24px;
    border: 3px solid #E2E8F0;
    box-shadow: 0 6px 24px rgba(0,0,0,0.07);
    overflow: hidden;
    text-align: left;
}

.mockup-header {
    padding: 10px 14px;
    font-weight: 700;
    font-size: 0.88rem;
    border-bottom: 1px solid #EDF2F7;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mockup-month {
    margin-left: auto;
    font-size: 0.72rem;
    color: var(--muted);
    font-weight: 500;
}

.mockup-body {
    padding: 10px;
    min-height: 240px;
    position: relative;
}

.mockup-phone-bg {
    background: #F0F4F3;
}

/* Chat bubbles in carousel */
.chat-bubble {
    background: #fff;
    border-radius: 12px 12px 12px 4px;
    padding: 9px 12px;
    margin-bottom: 6px;
    font-size: 0.82rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.chat-bubble-sender {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 2px;
}

.chat-bubble-time {
    font-size: 0.62rem;
    color: var(--light-muted);
    text-align: right;
    margin-top: 3px;
}

/* Photo mockup */
.photo-mockup {
    background: #EDF2F7;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 8px;
    font-size: 0.78rem;
    color: #4A5568;
    border: 2px dashed #CBD5E0;
    text-align: left;
    line-height: 1.7;
}

.photo-icon {
    font-size: 1.4rem;
    margin-bottom: 6px;
}

.photo-mockup-small {
    padding: 10px 12px;
    font-size: 0.75rem;
}

/* Voice mockup */
.voice-mockup {
    background: var(--primary-light);
    border-radius: 16px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.voice-wave {
    display: flex;
    gap: 2px;
    align-items: center;
}

.voice-bar {
    width: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.voice-time {
    font-size: 0.72rem;
    color: var(--muted);
    margin-left: auto;
}

.voice-transcript {
    font-size: 0.72rem;
    color: var(--muted);
    font-style: italic;
    padding: 0 4px;
}

/* Forward indicator */
.fwd-indicator {
    text-align: center;
    margin: 8px 0;
}

.fwd-indicator span,
.fwd-indicator {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 5px 14px;
    border-radius: 14px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* flomily response */
.flomily-response {
    background: var(--primary-light);
    border-radius: 4px 12px 12px 12px;
    padding: 10px 12px;
    margin-bottom: 6px;
    font-size: 0.82rem;
    border-left: 3px solid var(--primary);
}

.flomily-tag {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.flomily-tag-icon {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

.confirm-buttons {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

.confirm-btn {
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    border: none;
    display: inline-block;
}

.confirm-yes {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 0 2px rgba(42,157,143,0.3);
}

.confirm-no {
    background: #EDF2F7;
    color: var(--muted);
}

.confirmed-badge {
    display: inline-block;
    background: #48BB78;
    color: #fff;
    padding: 5px 14px;
    border-radius: 14px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Flow center arrow */
.demo-flow-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding-top: 90px;
    flex-shrink: 0;
}

.demo-flow-center svg {
    width: 44px;
    height: 14px;
    color: var(--primary);
}

.demo-flow-spark {
    font-size: 1.4rem;
}

.demo-flow-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}

/* Calendar entries in carousel */
.cal-entry {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 6px;
    border-bottom: 1px solid #F7FAFC;
}

.cal-faded { opacity: 0.4; }

.cal-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    margin-top: 4px;
    flex-shrink: 0;
}

.cal-dot-teal { background: var(--primary); }
.cal-dot-orange { background: var(--accent); }
.cal-dot-gold { background: var(--gold); }
.cal-dot-pink { background: #D53F8C; }

.cal-title {
    font-size: 0.82rem;
    font-weight: 700;
}

.cal-time {
    font-size: 0.7rem;
    color: var(--muted);
}

.cal-badge {
    font-size: 0.58rem;
    font-weight: 700;
    color: #fff;
    background: var(--primary);
    padding: 1px 6px;
    border-radius: 6px;
    margin-left: auto;
    align-self: center;
    flex-shrink: 0;
}

/* Carousel animation classes */
.anim { opacity: 0; }

.slide-active .s1-photo { animation: carSlideUp 0.5s 0.3s ease both; }
.slide-active .s1-arrow { animation: carFadeIn 0.4s 1.2s ease both; }
.slide-active .s1-spark { animation: carPopIn 0.4s 1.5s ease both; }
.slide-active .s1-label { animation: carFadeIn 0.4s 1.7s ease both; }
.slide-active .s1-e1 { animation: carSlideLeft 0.4s 2.4s ease both; }
.slide-active .s1-e2 { animation: carSlideLeft 0.4s 2.8s ease both; }
.slide-active .s1-e3 { animation: carSlideLeft 0.4s 3.2s ease both; }
.slide-active .s1-b1 { animation: carPopIn 0.3s 2.7s ease both; }
.slide-active .s1-b2 { animation: carPopIn 0.3s 3.1s ease both; }
.slide-active .s1-b3 { animation: carPopIn 0.3s 3.5s ease both; }

.slide-active .s2-msg { animation: carSlideUp 0.4s 0.3s ease both; }
.slide-active .s2-photo { animation: carSlideUp 0.4s 1.0s ease both; }
.slide-active .s2-voice { animation: carSlideUp 0.4s 1.7s ease both; }
.slide-active .s2-arrow { animation: carFadeIn 0.4s 2.5s ease both; }
.slide-active .s2-spark { animation: carPopIn 0.4s 2.8s ease both; }
.slide-active .s2-label { animation: carFadeIn 0.4s 3.0s ease both; }
.slide-active .s2-e1 { animation: carSlideLeft 0.4s 3.5s ease both; }
.slide-active .s2-e2 { animation: carSlideLeft 0.4s 3.9s ease both; }
.slide-active .s2-e3 { animation: carSlideLeft 0.4s 4.3s ease both; }
.slide-active .s2-b1 { animation: carPopIn 0.3s 3.8s ease both; }
.slide-active .s2-b2 { animation: carPopIn 0.3s 4.2s ease both; }
.slide-active .s2-b3 { animation: carPopIn 0.3s 4.6s ease both; }

.slide-active .s3-msg { animation: carSlideUp 0.4s 0.3s ease both; }
.slide-active .s3-fwd { animation: carPopIn 0.4s 1.2s ease both; }
.slide-active .s3-flomily { animation: carSlideUp 0.4s 2.2s ease both; }
.slide-active .s3-btns { animation: carFadeIn 0.4s 2.8s ease both; }
.slide-active .s3-check { animation: carPopIn 0.4s 3.8s ease both; }
.slide-active .s3-arrow { animation: carFadeIn 0.4s 4.3s ease both; }
.slide-active .s3-spark { animation: carPopIn 0.4s 4.6s ease both; }
.slide-active .s3-e1 { animation: carSlideLeft 0.4s 5.2s ease both; }
.slide-active .s3-b1 { animation: carPopIn 0.3s 5.5s ease both; }

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

@keyframes carFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes carSlideLeft {
    from { opacity: 0; transform: translateX(14px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes carPopIn {
    0% { opacity: 0; transform: scale(0.5); }
    70% { opacity: 1; transform: scale(1.12); }
    100% { opacity: 1; transform: scale(1); }
}

/* Carousel mobile */
@media (max-width: 768px) {
    .demo-flow {
        flex-direction: column;
        align-items: center;
    }

    .demo-flow-center {
        padding-top: 0;
        flex-direction: row;
        padding: 8px 0;
    }

    .demo-flow-center svg {
        transform: rotate(90deg);
    }

    .demo-mockup {
        width: 280px;
    }

    .carousel-nav {
        display: none;
    }
}

/* === Showcase Carousel === */

.showcase {
    padding: 60px 0;
    background: var(--warm-bg);
    text-align: center;
}

.showcase-carousel {
    position: relative;
    max-width: 900px;
    margin: 0 auto 24px;
    overflow: hidden;
}

.showcase-track {
    display: flex;
    transition: transform 0.5s ease;
}

.showcase-slide {
    min-width: 100%;
    padding: 0 10px;
}

.showcase-slide h2 {
    font-size: 2.1rem;
    margin-bottom: 8px;
}

.showcase-sub {
    color: var(--muted);
    font-size: 1.05rem;
    margin-bottom: 36px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin: 0 auto 20px;
    align-items: start;
}

.showcase-item {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.showcase-item:hover {
    box-shadow: var(--shadow-hover);
}

.showcase-label {
    padding: 12px 16px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--slate);
    background: var(--primary-light);
    text-align: left;
}

.showcase-item img {
    width: 100%;
    height: auto;
    display: block;
}

.showcase-disclaimer {
    font-size: 0.82rem;
    color: var(--light-muted);
    margin-top: 16px;
    font-style: italic;
}

.showcase .cta-button {
    margin-top: 8px;
}

.showcase-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.85);
    border: none;
    font-size: 2rem;
    color: var(--slate);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    z-index: 2;
    transition: background 0.2s;
}

.showcase-nav:hover {
    background: rgba(255,255,255,1);
}

.showcase-prev { left: 4px; }
.showcase-next { right: 4px; }

.showcase-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.showcase-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: var(--light-muted);
    cursor: pointer;
    transition: background 0.2s;
}

.showcase-dot.active {
    background: var(--primary);
}

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

    .showcase-nav {
        display: none;
    }
}

/* === Calendar Compatibility === */

.calendar-compat {
    padding: 60px 0;
    background: var(--snow);
}

.compat-content {
    text-align: center;
}

.compat-text {
    max-width: 580px;
    margin: 0 auto 36px;
}

.compat-text h2 {
    font-size: 1.9rem;
    margin-bottom: 12px;
}

.compat-text p {
    font-size: 1.02rem;
    color: var(--muted);
    line-height: 1.65;
}

.compat-highlight {
    margin-top: 20px;
    padding: 18px 24px;
    background: var(--primary-light);
    border-radius: 12px;
    font-size: 1rem;
    color: var(--slate);
}

.compat-highlight strong {
    font-size: 1.08rem;
    color: var(--primary);
}

.compat-logos {
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
}

.compat-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.compat-logo span {
    font-size: 0.8rem;
    color: var(--muted);
    font-weight: 600;
}

/* === Channels === */

.channels {
    padding: 60px 0;
    background: var(--warm-bg);
}

.channels h2 {
    text-align: center;
    font-size: 2.1rem;
    margin-bottom: 36px;
}

.channel-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.channel-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    transition: all 0.2s;
}

.channel-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}
.channel-highlight {
    border: 2px solid var(--primary);
    background: var(--primary-light);
    position: relative;
}
.channel-highlight::after {
    content: 'Beliebteste Funktion';
    position: absolute;
    top: -10px;
    right: 16px;
    background: var(--primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 10px;
}

.channel-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.channel-card h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.channel-card p {
    font-size: 0.88rem;
    color: var(--muted);
    margin-bottom: 12px;
}

.channel-example {
    font-size: 0.83rem;
    color: var(--primary-dark);
    font-style: italic;
    padding: 10px 14px;
    background: var(--primary-light);
    border-radius: 10px;
    border-left: 3px solid var(--primary);
}

/* === For whom === */

/* === Homescreen hint (inside requirements) === */
.homescreen-hint {
    margin-top: 30px;
    padding: 24px;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.homescreen-hint-content {
    display: flex;
    align-items: center;
    gap: 24px;
}
.homescreen-hint-text {
    flex: 1;
}
.homescreen-hint h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
    color: var(--heading);
}
.homescreen-hint p {
    font-size: 0.9rem;
    color: var(--muted);
}
.homescreen-hint-img {
    flex-shrink: 0;
    display: flex;
    gap: 12px;
}
.homescreen-hint-img img {
    width: 100px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
@media (max-width: 600px) {
    .homescreen-hint-content {
        flex-direction: column;
        text-align: center;
    }
    .homescreen-hint-img img {
        width: 160px;
    }
}

.forwho {
    padding: 20px 0 40px;
    background: var(--snow);
}
.forwho h2 {
    text-align: center;
    font-size: 2.1rem;
    margin-bottom: 24px;
}
.forwho-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: center;
}

.forwho-card {
    padding: 28px 20px;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}

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

.forwho-emoji {
    font-size: 2.6rem;
    margin-bottom: 12px;
}

.forwho-card h3 {
    font-size: 1.02rem;
    margin-bottom: 6px;
}

.forwho-card p {
    font-size: 0.88rem;
    color: var(--muted);
}

/* === Features === */

.features {
    padding: 60px 0;
    background: var(--warm-bg);
}

.features h2 {
    text-align: center;
    font-size: 2.1rem;
    margin-bottom: 32px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 18px 16px;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 2px;
}

.feature-item strong {
    font-size: 0.92rem;
    display: block;
    margin-bottom: 3px;
}

.feature-item p {
    font-size: 0.82rem;
    color: var(--muted);
    margin: 0;
    line-height: 1.5;
}

.feature-item.coming-soon {
    opacity: 0.45;
    position: relative;
}

.feature-item.coming-soon:hover {
    transform: none;
    box-shadow: var(--shadow);
}

.coming-soon-badge {
    font-size: 0.65rem;
    font-weight: 700;
    color: #E76F51;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
    display: block;
}

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

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

/* === Trust === */

.trust {
    padding: 60px 0;
    background: var(--snow);
}

.trust h2 {
    text-align: center;
    font-size: 2.1rem;
    margin-bottom: 32px;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 700px;
    margin: 0 auto;
}

.trust-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 20px 18px;
    box-shadow: var(--shadow);
}

.trust-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.trust-item strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.trust-item p {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.5;
}

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

.features-toggle {
    display: block;
    margin: 28px auto 0;
    background: none;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.features-toggle:hover {
    background: var(--primary);
    color: #fff;
}

.features-more {
    margin-top: 14px;
}

/* === Credits === */

.credits-section {
    padding: 60px 0;
    background: #f8fafa;
    text-align: center;
}
.credits-section h2 {
    margin-bottom: 32px;
}
.credits-grid {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.credits-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px 28px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    flex: 1;
    min-width: 220px;
    max-width: 280px;
}
.credits-number {
    font-size: 3rem;
    font-weight: 700;
    color: #2A9D8F;
    line-height: 1;
    margin-bottom: 4px;
}
.credits-label {
    font-weight: 600;
    color: #64748b;
    margin-bottom: 12px;
}
.credits-card p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}
.credits-teaser {
    color: #64748b;
    font-size: 1rem;
    margin-bottom: 24px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* === Waitlist === */

.waitlist {
    padding: 60px 0;
    background: linear-gradient(150deg, #2A9D8F 0%, #3DBBAD 40%, #5CC9BA 100%);
    color: #fff;
    text-align: center;
    position: relative;
}

.waitlist h2 {
    font-size: 2.1rem;
    margin-bottom: 8px;
}

.waitlist-sub {
    font-size: 1.15rem;
    opacity: 0.92;
    margin-bottom: 20px;
}

.fomo-badge {
    display: inline-block;
    background: #fff;
    color: #E76F51;
    border: 2px solid #E76F51;
    border-radius: 50px;
    padding: 10px 24px;
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 28px;
    animation: subtlePulse 3s ease infinite;
}

@keyframes subtlePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.15); }
    50% { box-shadow: 0 0 0 8px rgba(255,255,255,0); }
}

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

.waitlist-form input[type="email"] {
    flex: 1;
    min-width: 240px;
    padding: 14px 20px;
    border: 2px solid #E2E8F0;
    border-radius: 50px;
    background: var(--card-bg);
    color: var(--slate);
    font-size: 1rem;
    font-family: inherit;
    font-weight: 500;
    backdrop-filter: blur(4px);
}

.waitlist-form input[type="email"]::placeholder {
    color: var(--light-muted);
}

.waitlist-form input[type="email"]:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
}

.waitlist-form .cta-button {
    padding: 14px 28px;
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 14px rgba(231, 111, 81, 0.3);
}

.waitlist-form .cta-button:hover {
    background: var(--accent-dark);
    box-shadow: 0 6px 22px rgba(231, 111, 81, 0.4);
    color: #fff;
}

.waitlist-fomo {
    font-size: 1.05rem;
    font-weight: 600;
    opacity: 0.95;
    margin-bottom: 8px;
}

.waitlist-note {
    font-size: 0.83rem;
    opacity: 0.7;
}

/* === FAQ === */

.faq-section {
    padding: 60px 0;
    background: var(--snow);
}
.faq-section h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.6rem;
    color: var(--heading);
}
.faq-list {
    max-width: 700px;
    margin: 0 auto;
}
.faq-item {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 12px;
    overflow: hidden;
}
.faq-item summary {
    padding: 16px 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--heading);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-item summary::after {
    content: '+';
    font-size: 1.3rem;
    color: var(--primary);
    font-weight: 700;
    flex-shrink: 0;
    margin-left: 12px;
}
.faq-item[open] summary::after {
    content: '−';
}
.faq-item summary::-webkit-details-marker {
    display: none;
}
.faq-item p {
    padding: 0 20px 16px;
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.6;
}
.faq-item a {
    color: var(--primary);
}

/* === Feedback === */

.feedback-section {
    padding: 60px 0;
    background: var(--warm-bg);
    text-align: center;
}

.feedback-section h2 {
    font-size: 2.1rem;
    margin-bottom: 8px;
}

.feedback-sub {
    font-size: 1.05rem;
    color: var(--muted);
    max-width: 520px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

.feedback-form {
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
}

.feedback-field {
    margin-bottom: 20px;
}

.feedback-field label {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--slate);
}

.feedback-optional {
    font-weight: 500;
    color: var(--light-muted);
    font-size: 0.85rem;
}

.feedback-field textarea,
.feedback-field input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: inherit;
    font-weight: 500;
    color: var(--slate);
    background: var(--card-bg);
    transition: border-color 0.2s;
    resize: vertical;
}

.feedback-field textarea:focus,
.feedback-field input[type="text"]:focus {
    outline: none;
    border-color: var(--primary);
}

.feedback-field textarea::placeholder,
.feedback-field input[type="text"]::placeholder {
    color: var(--light-muted);
}

.feedback-form .cta-button {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 8px;
}

.feedback-danke {
    background: var(--snow);
    padding-top: 40px;
}

.feedback-danke .danke-back {
    color: var(--primary);
    margin-top: 28px;
}

/* === Why flomily === */

.why-flomily {
    padding: 56px 0;
    background: var(--snow);
}

.why-flomily h2 {
    text-align: center;
    font-size: 2.1rem;
    margin-bottom: 28px;
}

.why-content {
    max-width: 680px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--slate);
}


.why-content p {
    margin-bottom: 16px;
}

.why-content blockquote {
    border-left: 4px solid var(--primary);
    margin: 24px 0;
    padding: 12px 24px;
    font-style: italic;
    color: var(--muted);
    font-size: 1.1rem;
    background: var(--primary-light);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.why-signature {
    margin-top: 24px;
    font-weight: 600;
    color: var(--primary);
    font-size: 1rem;
}

.why-toggle {
    display: block;
    margin: 16px auto 0;
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    font-family: inherit;
}

.why-toggle:hover {
    text-decoration: underline;
}

/* === Requirements === */

.requirements {
    padding: 48px 0;
    background: var(--warm-bg);
    text-align: center;
}

.requirements h2 {
    font-size: 2.1rem;
    margin-bottom: 8px;
}

.requirements-sub {
    color: var(--muted);
    margin-bottom: 32px;
    font-size: 1.1rem;
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 700px;
    margin: 0 auto 24px;
}

.requirement-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: var(--shadow);
    text-align: center;
}

.requirement-icon {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.requirement-card h3 {
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.requirement-card p {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.5;
}

.requirement-link {
    display: inline-block;
    margin-top: 12px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.requirement-link:hover {
    text-decoration: underline;
}

.requirements-note {
    color: var(--muted);
    font-size: 0.85rem;
}

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

/* === Footer === */

footer {
    padding: 32px 0;
    text-align: center;
    font-size: 0.83rem;
    color: var(--muted);
    background: var(--snow);
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.footer-logo {
    width: 120px;
    opacity: 0.7;
}

.footer-brand p {
    margin: 0;
    font-size: 0.85rem;
}

.footer-copy {
    font-size: 0.75rem;
    margin-top: 4px;
}

footer nav {
    display: flex;
    gap: 24px;
}

footer a {
    color: var(--muted);
    text-decoration: none;
}

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

/* === Mobile === */

@media (max-width: 768px) {
    .hero {
        padding: 60px 0 80px;
    }

    .hero h1 {
        font-size: 2.1rem;
    }

    .subline {
        font-size: 1.02rem;
    }

    .demo-animation {
        flex-direction: column;
    }

    .demo-arrow {
        transform: rotate(90deg);
    }

    .demo-arrow-svg {
        width: 40px;
    }

    .steps {
        flex-direction: column;
        align-items: center;
    }

    .step-arrow {
        transform: rotate(90deg);
        padding: 0;
    }

    .channel-grid {
        grid-template-columns: 1fr;
    }

    .pain-grid {
        grid-template-columns: 1fr;
    }

    .forwho-cards {
        grid-template-columns: 1fr;
    }

    .compat-logos {
        gap: 16px;
    }

    footer .container {
        flex-direction: column;
        text-align: center;
    }
}
