/* --- Variables & Reset --- */
:root {
    --bg-cream: #FFFAF0; /* UPDATED: FloralWhite as requested */
    --text-dark: #1A1A1A;
    --text-grey: #666666;
    --font-main: 'Mulish', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-cream);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* --- Global Background Shape (Header + Hero) --- */
.main-bg-shape {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

/* --- Header --- */
header {
    padding: 15px 0;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    width: 32px;
    height: auto;
}

.logo-text {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--text-dark);
}

/* --- Hero Section --- */
.hero {
    /* Transparent background so body color (#FFFAF0) shows through */
    background-color: transparent; 
    text-align: center;
    padding-top: 80px;
    padding-bottom: 60px; 
    position: relative;
    z-index: 1; 
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
}

.subtitle {
    color: var(--text-grey);
    margin-bottom: 30px;
    font-size: 1rem;
}

.app-store-badge {
    display: inline-block;
    transition: transform 0.2s;
    text-decoration: none;
}

.app-store-badge:hover {
    transform: scale(1.05);
}

.app-store-badge img {
    height: 60px;
    width: auto;
}

.hero-visuals {
    margin-top: 80px;
    display: flex;
    justify-content: center;
}

/* Phone Mockup Size - BIGGER */
.phone-main {
    width: 130%;
    height: auto;
}

/* --- Features Section --- */
.features {
    background-color: #FFFFFF; /* UPDATED: Pure White */
    
    /* Background Clouds Cover */
    background-image: url('images/clouds.svg');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover; 

    min-height: 150vh; /* 100vh is usually enough (full screen), but you can keep 150vh if you really want it huge */
    display: flex;
    flex-direction: column;
    justify-content: center;
    
    padding: 0 0 100px 0;

    text-align: center;
    position: relative;
    z-index: 2; /* Sits on top of Hero */
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 100px 120px;
    max-width: 900px;
    margin: 0 auto;
}

.feature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-img {
    height: 140px; 
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 320px;
    margin: 0 auto;
}

/* --- Testimonials Section --- */
.testimonials {
    /* Background Setup */
    background-image: url('images/bg-testimonials.svg');
    background-size: cover; 
    background-position: top center;
    background-repeat: no-repeat;
    
    /* UPDATED: Spacing for seamless connection */
    margin-top: 0; 
    padding-top: 80px; /* Push text down below the cloud wave */
    padding-bottom: 80px;
    
    text-align: center;
    position: relative;
    width: 100%;
}

.bun-container {
    position: absolute;
    /* Adjusted top position since we removed margin-top */
    top: -220px; 
    left: 50%;
    transform: translateX(-50%);
    width: 130px;
    z-index: 5;
}

.buns-steam {
    width: 100%;
    height: auto;
}

.features h2,
.testimonials h2 {
    font-size: 2.5rem;   /* Large and readable */
    font-weight: 800;    /* Extra bold (Mulish) */
    color: #4a3b32;      /* Using the Dark Brown color for both to fit the theme */
    line-height: 1.2;
    text-align: center;
}

.features h2 {
    margin-bottom: 90px; 
}

/* Testimonials: Needs less space to connect title to cards */
.testimonials h2 {
    margin-bottom: 50px;
}

.reviews-scroll {
    display: flex;
    gap: 30px;
    width: 100%;
    
    /* Changed padding to add space on left/right sides */
    padding: 20px 20px; 
    
    overflow-x: auto;
    
    /* CRITICAL FIX: Changed from 'center' to 'flex-start' so scrolling works properly */
    justify-content: center; 
    
    /* Hide scrollbars */
    /* scrollbar-width: none;  */
    /* -ms-overflow-style: none;  */
}

/* HIDE SCROLLBAR (Chrome, Safari, Opera) */
.reviews-scroll::-webkit-scrollbar {
    display: none;
}

.review-card {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    text-align: left;
    min-width: 300px;
    max-width: 50%;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.6);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.avatar-circle {
    width: 45px;
    height: 45px;
    background-color: #333;
    border-radius: 50%;
    overflow: hidden;
}

.avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

.user-info h4 {
    font-size: 1rem;
    margin: 0;
}

.user-info span {
    font-size: 0.8rem;
    color: #555;
}

.next-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #5D4037;
    background: none;
    color: #5D4037;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* --- FAQ Section --- */
.faq-section {
    padding: 80px 0;
    /* Uses the body cream background variable you defined */
    background-color: var(--bg-cream); 
}

.faq-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #4a3b32; /* Matches your other headers */
    text-align: center;
    margin-bottom: 60px;
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* The Card Style */
.faq-card {
    background-color: #FFFFFF;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    /* Slight shadow for depth */
    box-shadow: 0 4px 15px rgba(0,0,0,0.03); 
}

/* The Question (Clickable area) */
.faq-card summary {
    list-style: none; /* Hide default triangle */
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-dark);
}

/* Hide default triangle in Webkit */
.faq-card summary::-webkit-details-marker {
    display: none;
}

/* The Answer */
.faq-answer {
    padding: 0 30px 30px 30px;
    color: var(--text-grey);
    font-size: 1rem;
    line-height: 1.6;
    border-top: 1px solid transparent; /* Smoother animation spacing */
}

/* Hover effect */
.faq-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

/* Icon Rotation Animation */
.faq-icon {
    font-size: 1.5rem;
    font-weight: 400;
    transition: transform 0.3s ease;
}

/* When the details are Open */
.faq-card[open] .faq-icon {
    transform: rotate(45deg); /* Turns + into x */
}

/* --- Footer --- */
footer {
    background-color: #4D3B36; 
    color: #aaa;
    padding: 60px 0 20px 0;
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 200px;
    margin-bottom: 40px;
}

.footer-left h3, .footer-right h3 {
    color: #D4A88C;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.logo-icon-sm {
    width: 24px;
}

.footer-right ul {
    list-style: none;
}

.footer-right ul li {
    margin-bottom: 10px;
}

.footer-right ul li a {
    color: #aaa;
    text-decoration: none;
}

.footer-right ul li a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #66524C;
    padding-top: 20px;
    font-size: 0.75rem;
}

/* =========================================
   PRIVACY POLICY & TERMS PAGES
   ========================================= */

/* The Header specific to the Policy page */
.policy-header {
    background-color: #fff;
    border-bottom: 1px solid #EADDD7;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Main Container for Text */
.policy-container {
    max-width: 800px; /* Narrower width for easier reading */
    padding-top: 60px;
    padding-bottom: 100px;
    margin: 0 auto;
}

.policy-container h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #4a3b32;
    margin-bottom: 10px;
}

.last-updated {
    color: var(--text-grey);
    font-size: 0.9rem;
    margin-bottom: 40px;
    font-style: italic;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

/* Text Styling */
.policy-text h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #4a3b32;
    margin-top: 40px;
    margin-bottom: 20px;
}

.policy-text h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 25px;
    margin-bottom: 10px;
}

.policy-text p {
    margin-bottom: 15px;
    color: #333;
    line-height: 1.8; /* Slightly more spacing for reading long text */
}

/* List Styling */
.policy-text ul {
    margin-bottom: 20px;
    padding-left: 25px;
}

.policy-text li {
    margin-bottom: 10px;
    color: #333;
    line-height: 1.6;
}

/* Links inside the text */
.policy-text a {
    color: #5D4037;
    text-decoration: underline;
    font-weight: 600;
}

.policy-text a:hover {
    color: #8D6E63;
}

@media (max-width: 1024px) {
    .review-card {
        max-width: 80%;
    }
  }

/* --- Responsive Mobile --- */
@media (max-width: 768px) {
    .hero {
        overflow-x: hidden;
    }

    .hero h1 {
        font-size: 2rem;
    }
    
    .phone-main {
        width: 140%; 
        /* max-width: 130%; */
        padding: 0;
    }

    .features h2,
    .testimonials h2 {
        font-size: 2rem;  
    }

    .features {
        /* 1. Stop forcing it to be huge */
        min-height: auto; 
        
        /* 2. Stop centering it vertically */
        justify-content: flex-start; 
        
        /* 3. Now apply your padding */
        padding-top: 60px;
        padding-bottom: 250px; /* Make this as big as you need */
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .testimonials {
        padding-top: 80px; /* Less padding on mobile */
    }
    
    .bun-container {
        top: -230px;
    }

    .reviews-scroll {
        /* On mobile, we often prefer them to start from the left 
           so the user can swipe through them easily */
        justify-content: center; 
        padding-left: 20px;
        padding-right: 20px;
    }

    .review-card {
        max-width: 80%;
    }

    .faq-card summary {
        padding: 20px;
        font-size: 1rem;
    }
    .faq-answer {
        padding: 0 20px 20px 20px;
    }

    .footer-content {
        flex-direction: column;
        gap: 40px;
    }

    .policy-container {
        padding-top: 30px;
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .policy-container h1 {
        font-size: 1.8rem;
    }
}

@keyframes floatBubble {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); } /* Moves up slightly */
    100% { transform: translateY(0px); }
}

/* Apply it to your background shape */
.main-bg-shape {
    /* 6 seconds makes it very slow and relaxing */
    animation: floatBubble 8s ease-in-out infinite; 
}