:root {
    /* -- Palette -- */
    --bg-cream: #FFF6E6;
    --brand-purple: #7A58B0;
    --brand-pink: #E098B6;
    --brand-dark: #2D1B4E;
    --accent-gold: #FFD580;

    /* -- UI Variables -- */
    --glass-surface: rgba(255, 255, 255, 0.65);
    --glass-surface-hover: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-blur: blur(20px);

    --shadow-xs: 0 2px 10px rgba(122, 88, 176, 0.05);
    --shadow-sm: 0 10px 30px -5px rgba(122, 88, 176, 0.1);
    --shadow-md: 0 20px 60px -10px rgba(122, 88, 176, 0.15);
    --shadow-glow: 0 0 40px rgba(122, 88, 176, 0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-cream);
    color: var(--brand-dark);
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- Texture Overlay --- */
.texture-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
    opacity: 0.4;
}

/* --- Background Animations --- */
.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    filter: blur(90px);
    opacity: 0.4;
    animation: floatBlob 25s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.blob-1 {
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: var(--brand-pink);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
}

.blob-2 {
    bottom: -10%;
    left: -10%;
    width: 700px;
    height: 700px;
    background: var(--brand-purple);
    opacity: 0.15;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation-delay: -5s;
}

@keyframes floatBlob {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(40px, 40px) rotate(10deg);
    }
}

/* --- Typography --- */
h1,
h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    color: var(--brand-dark);
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--brand-purple) 0%, var(--brand-pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Navbar --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 2rem;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(15px);
    background: rgba(255, 246, 230, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease-in-out;
}

/* Hide Navbar on Scroll Down */
nav.nav-hidden {
    transform: translateY(-100%);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--brand-purple);
    z-index: 1001;
}

.nav-logo img {
    height: 50px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Desktop Menu */
.desktop-menu {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

/* Burger Menu Icon */
.burger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
}

.burger-menu span {
    width: 25px;
    height: 3px;
    background-color: var(--brand-dark);
    border-radius: 5px;
    transition: 0.3s;
}

/* Burger Animation when active */
.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 80px;
    /* Below Navbar */
    left: 0;
    width: 100%;
    height: auto;
    /* Adapt to content */
    background: rgba(255, 246, 230, 0.98);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 0;
    transform: translateY(-150%);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 999;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-link {
    font-size: 1.2rem;
    text-decoration: none;
    color: var(--brand-dark);
    font-weight: 700;
}

.download-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-outline {
    border: 1px solid var(--brand-purple) !important;
    background: transparent !important;
    color: var(--brand-purple) !important;
}

.btn-outline:hover {
    background: var(--brand-purple) !important;
    color: white !important;
}

/* --- Sections --- */
section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

/* --- Hero & Phone --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 2rem;
    /* Reduced bottom padding */
    position: relative;
}

/* ... existing code ... */

/* --- Footer & Stats --- */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    margin: 2rem 0;
    /* Reduced margin */
    text-align: center;
}

.hero-container {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content h1 {
    font-size: clamp(3.2rem, 5.5vw, 5rem);
    line-height: 1.05;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    color: #6B5A7D;
    margin-bottom: 2.5rem;
    max-width: 520px;
    line-height: 1.7;
}

.phone-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.phone {
    width: 310px;
    height: 620px;
    background: #FFF;
    border-radius: 50px;
    padding: 10px;
    border: 2px solid #F0F0F0;
    box-shadow: inset 0 0 0 4px #FAFAFA, 0 20px 50px -10px rgba(62, 42, 85, 0.3), 0 50px 100px -20px rgba(62, 42, 85, 0.2);
    position: relative;
    transform: rotateY(-8deg) rotateX(5deg);
    transition: transform 0.6s ease-out;
    z-index: 10;
}

.phone-wrapper:hover .phone {
    transform: rotateY(0) rotateX(0) translateY(-10px);
}

.phone::before {
    content: '';
    position: absolute;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 26px;
    background: #1a1a1a;
    border-radius: 20px;
    z-index: 20;
}

.screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #FFF8EE 0%, #FFFFFF 100%);
    border-radius: 42px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.app-ui-top {
    padding: 50px 24px 10px;
}

.date-pill {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(122, 88, 176, 0.1);
    border-radius: 20px;
    color: var(--brand-purple);
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.chat-bubble-question {
    background: linear-gradient(135deg, var(--brand-purple), var(--brand-pink));
    color: white;
    padding: 20px;
    border-radius: 24px 24px 24px 4px;
    margin: 10px 24px;
    box-shadow: 0 10px 25px rgba(122, 88, 176, 0.25);
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.typing-text {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
}

.cursor {
    display: inline-block;
    width: 2px;
    height: 1.1em;
    background: white;
    animation: blink 1s infinite;
    vertical-align: bottom;
    margin-left: 2px;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* --- Widgets --- */
.widget {
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    padding: 1rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.6);
    animation: float 6s ease-in-out infinite;
}

.w-calendar {
    top: 15%;
    right: -60px;
    width: 140px;
    text-align: center;
}

.w-photo {
    bottom: 20%;
    left: -80px;
    width: 160px;
    transform: rotate(-5deg);
    animation-delay: 1s;
    padding: 8px 8px 30px 8px;
    background: white;
}

.w-photo img {
    width: 100%;
    border-radius: 12px;
    height: 100px;
    object-fit: cover;
    background: #eee;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem 1.8rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid white;
    color: var(--brand-purple);
    text-decoration: none;
    border-radius: 16px;
    font-weight: 700;
    transition: all 0.4s;
    box-shadow: var(--shadow-xs);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-4px) scale(1.02);
    background: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-purple) 0%, #9D7AD2 100%);
    color: white;
    border: none;
}

/* --- Bento Grid --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, minmax(280px, auto));
    gap: 24px;
}

.bento-card {
    background: var(--glass-surface);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 2.5rem;
    transition: 0.4s;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bento-card:hover {
    transform: translateY(-5px);
    background: var(--glass-surface-hover);
    box-shadow: var(--shadow-md);
    border-color: white;
}

.bento-wide {
    grid-column: span 2;
}

.bento-tall {
    grid-row: span 2;
    background: linear-gradient(145deg, var(--brand-purple), #5E3D85);
    color: white;
    border: none;
}

.bento-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.bento-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* --- Pricing --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.pricing-card {
    background: white;
    border-radius: 32px;
    padding: 3rem;
    text-align: center;
    transition: 0.4s;
    box-shadow: var(--shadow-xs);
    border: 1px solid var(--glass-border);
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-card.premium {
    background: linear-gradient(180deg, #fff 0%, #FFF0F7 100%);
    border: 2px solid var(--brand-pink);
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
    position: relative;
}

.tag {
    background: var(--brand-pink);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
}

.price {
    font-size: 3.5rem;
    font-weight: 800;
    margin: 1rem 0;
    color: var(--brand-purple);
    letter-spacing: -1px;
}

.features-list {
    padding: 0;
    margin-bottom: 2rem;
}

.features-list li {
    list-style: none;
    margin-bottom: 1rem;
    color: #666;
    font-weight: 500;
}

/* --- Testimonials & FAQ --- */
.testimonials-row {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding-bottom: 2rem;
    scroll-snap-type: x mandatory;
}

.testimonial-card {
    min-width: 300px;
    background: white;
    padding: 2rem;
    border-radius: 24px;
    box-shadow: var(--shadow-xs);
    border: 1px solid #F0F0F0;
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
}

.stars {
    color: #FFC107;
    margin-bottom: 1rem;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 1.5rem;
}

.avatar {
    width: 40px;
    height: 40px;
    background: #eee;
    border-radius: 50%;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 20px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid transparent;
    transition: 0.3s;
}

.faq-item:hover {
    border-color: rgba(122, 88, 176, 0.3);
}

.faq-question {
    padding: 1.5rem 2rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    color: #666;
}

.faq-item.active .faq-answer {
    padding-bottom: 1.5rem;
    max-height: 200px;
}

.chevron {
    transition: 0.3s;
}

.faq-item.active .chevron {
    transform: rotate(180deg);
}

/* --- Footer & Stats --- */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    margin: 4rem 0;
    text-align: center;
}

/* Restored Avatar Styles */
.badges-row {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    align-items: center;
    justify-content: center;
    /* Helper for mobile */
}

@media (min-width: 769px) {
    .badges-row {
        justify-content: flex-start;
    }
}

.trust-badge {
    display: flex;
    align-items: center;
    padding-left: 10px;
    /* Offset for overlap */
}

.trust-badge>div {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 3px solid #FFFFFF;
    margin-left: -15px;
    /* Overlap effect */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.stat-item div:first-child {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--brand-purple);
}

.cta-box {
    background: radial-gradient(circle at top right, var(--brand-pink), var(--brand-purple));
    border-radius: 40px;
    padding: 5rem 2rem;
    text-align: center;
    color: white;
    box-shadow: 0 30px 80px rgba(122, 88, 176, 0.4);
    position: relative;
    overflow: hidden;
}

footer {
    border-top: 1px solid rgba(122, 88, 176, 0.1);
    padding: 4rem 2rem;
    text-align: center;
    color: #888;
    font-size: 0.9rem;
}

.badges-row {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    align-items: center;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: -10px;
}

/* --- Legal Page Specific --- */
.legal-container {
    background: white;
    padding: 4rem;
    border-radius: 32px;
    box-shadow: var(--shadow-sm);
    max-width: 900px;
    margin: 8rem auto 4rem;
}

.legal-content h1 {
    margin-bottom: 2rem;
}

.legal-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.legal-content p {
    margin-bottom: 1rem;
    color: #555;
}

.legal-content ul {
    padding-left: 20px;
    margin-bottom: 1rem;
    color: #555;
}

/* --- Utilities & Media Queries --- */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {

    /* Menu Visibility Logic */
    .desktop-menu {
        display: none !important;
    }

    .burger-menu {
        display: flex;
    }

    section {
        padding: 4rem 1rem;
    }

    /* Reduce generic section padding */

    .hero {
        padding-top: 7rem;
        padding-bottom: 3rem;
        min-height: auto;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-content p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .download-buttons {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .download-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .phone-wrapper {
        margin-top: 3rem;
        transform: scale(0.9);
    }

    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 1.5rem;
    }

    .bento-wide,
    .bento-tall {
        grid-column: auto;
        grid-row: auto;
    }

    .bento-card {
        padding: 2rem;
    }

    .w-calendar,
    .w-photo,
    .fb-1,
    .fb-2 {
        display: none;
    }

    .stats-bar {
        gap: 2rem;
        margin: 3rem 0;
    }

    .pricing-card.premium {
        transform: scale(1);
        margin-top: 1rem;
    }

    .legal-container {
        padding: 2rem;
        margin-top: 6rem;
    }

    nav {
        padding: 0.8rem 1.2rem;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .mobile-menu {
        top: 65px;
        /* Fix gap between navbar and menu on mobile */
    }

    .nav-logo {
        font-size: 1.1rem;
    }

    .nav-logo img {
        height: 40px;
    }

    /* Hide text link on very small screens to save space */
    .nav-link {
        display: none;
    }

    /* Adjust header button */
    nav .btn-primary {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

/* --- Cookie Banner --- */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    background: white;
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 10000;
    display: none;
    animation: slideUpBanner 0.5s ease-out;
}

.cookie-banner.show {
    display: block;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.cookie-content p {
    font-size: 0.9rem;
    color: #555;
    margin: 0;
    line-height: 1.4;
}

.cookie-content a {
    color: var(--brand-purple);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 0.8rem;
    flex-shrink: 0;
}

.btn-sm {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
}

.btn-secondary {
    background: #f0f0f0;
    color: #666;
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    background: #e0e0e0;
    color: #333;
}

@keyframes slideUpBanner {
    from {
        transform: translate(-50%, 50px);
        opacity: 0;
    }

    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }

    .cookie-banner {
        bottom: 10px;
        width: 95%;
        padding: 1.2rem;
    }
}