/* ===================================
   SolidFoods Landing Page
   Mobile-first, soft & warm design
   =================================== */

:root {
    /* Brand Colors (from iOS app AppColors.swift) */
    --primary: #CCDC7B;
    --primary-dark: #565C34;
    --primary-muted: #919C57;
    --primary-light: #EBF4D1;
    --primary-very-light: #F4F8D7;
    --accent-teal: #3CC8C8;
    --accent-teal-light: #E0F7F8;
    --background: #F6F6F5;
    --card-bg: #FFFFFF;
    --dark-text: #151515;
    --body-text: #4A4A4A;
    --muted-text: #7A7A7A;
    --border-light: #E8E7E4;
    --success: #C3E6CD;
    --success-light: #E8F5ED;
    --warning: #FFDCC0;
    --warning-light: #FFF3E8;
    --danger-light: #FFE8E8;
    --info-light: #E3EFFF;

    /* Spacing */
    --section-padding: 80px 0;
    --container-max: 1120px;
    --radius: 16px;
    --radius-sm: 12px;
    --radius-lg: 24px;
}

/* ===================================
   Reset & Base
   =================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--dark-text);
    background: var(--background);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   Animations
   =================================== */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   Navigation
   =================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(246, 246, 245, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    transition: box-shadow 0.3s ease;
}

.nav.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-logo {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-logo-icon {
    font-size: 26px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    font-size: 15px;
    font-weight: 600;
    color: var(--body-text);
    transition: color 0.2s;
}

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

.nav-cta {
    background: var(--primary);
    color: var(--primary-dark) !important;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 700 !important;
    transition: background 0.2s, transform 0.2s !important;
}

.nav-cta:hover {
    background: #bdd06c;
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--dark-text);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

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

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

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

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    border: none;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.25s ease;
}

.btn-primary {
    background: var(--primary-dark);
    color: #fff;
}

.btn-primary:hover {
    background: #4a5030;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(86, 92, 52, 0.25);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 17px;
}

.apple-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ===================================
   Section Headers
   =================================== */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-badge {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-dark);
    background: var(--primary-light);
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.section-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--dark-text);
    margin-bottom: 12px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 17px;
    color: var(--muted-text);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(180deg, #fff 0%, var(--background) 100%);
    overflow: hidden;
}

.hero-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-content {
    flex: 1;
}

.hero-headline {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--dark-text);
    margin-bottom: 20px;
}

.hero-headline span {
    color: var(--primary-dark);
}

.hero-subheadline {
    font-size: 18px;
    line-height: 1.7;
    color: var(--body-text);
    margin-bottom: 32px;
    max-width: 520px;
}

.hero-cta {
    margin-bottom: 32px;
}

.hero-trust {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.hero-trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted-text);
}

.hero-trust-icon {
    font-size: 16px;
}

/* Phone Mockup */
.hero-visual {
    flex-shrink: 0;
}

.phone-mockup {
    position: relative;
}

.phone-frame {
    width: 280px;
    height: 580px;
    background: var(--dark-text);
    border-radius: 40px;
    padding: 12px;
    box-shadow:
        0 40px 80px rgba(0,0,0,0.12),
        0 8px 20px rgba(0,0,0,0.08),
        inset 0 1px 0 rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}

.phone-notch {
    width: 140px;
    height: 28px;
    background: var(--dark-text);
    border-radius: 0 0 18px 18px;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--background);
    border-radius: 30px;
    overflow: hidden;
    position: relative;
}

.phone-screen-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

/* ===================================
   Features Section
   =================================== */
.features {
    padding: var(--section-padding);
}

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

.feature-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 32px 28px;
    border: 1px solid var(--border-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.06);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark-text);
}

.feature-card p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--body-text);
}

/* ===================================
   How It Works
   =================================== */
.how-it-works {
    padding: var(--section-padding);
    background: #fff;
}

.steps {
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.step {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.step-number {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--primary-dark);
    font-size: 22px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
}

.step-content p {
    font-size: 15px;
    color: var(--body-text);
    line-height: 1.6;
}

.step-connector {
    width: 2px;
    height: 40px;
    background: var(--primary-light);
    margin-left: 25px;
}

/* ===================================
   Screenshots
   =================================== */
.screenshots {
    padding: var(--section-padding);
}

.screenshots-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 8px 0 20px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.screenshots-scroll::-webkit-scrollbar {
    display: none;
}

.screenshot-card {
    flex-shrink: 0;
    scroll-snap-align: center;
}

.screenshot-img {
    width: 220px;
    height: 440px;
    object-fit: cover;
    object-position: top center;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    background: var(--card-bg);
}

/* ===================================
   Social Proof
   =================================== */
.social-proof {
    padding: var(--section-padding);
    background: #fff;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}

.testimonial-card {
    background: var(--background);
    border-radius: var(--radius);
    padding: 28px;
    border: 1px solid var(--border-light);
}

.testimonial-stars {
    color: #F5A623;
    font-size: 18px;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.testimonial-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--body-text);
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-dark);
}

.testimonial-author strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
}

.testimonial-author span {
    font-size: 13px;
    color: var(--muted-text);
}

.trust-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 32px;
    background: var(--primary-very-light);
    border-radius: var(--radius);
}

.trust-stat {
    text-align: center;
}

.trust-stat-number {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1.2;
}

.trust-stat-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-muted);
}

.trust-stat-divider {
    width: 1px;
    height: 40px;
    background: var(--primary);
    opacity: 0.5;
}

/* ===================================
   FAQ
   =================================== */
.faq {
    padding: var(--section-padding);
}

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

.faq-item {
    border-bottom: 1px solid var(--border-light);
}

.faq-item:first-child {
    border-top: 1px solid var(--border-light);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--dark-text);
    text-align: left;
    transition: color 0.2s;
}

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

.faq-chevron {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--muted-text);
    transition: transform 0.3s ease;
}

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

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

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

.faq-answer p {
    padding: 0 0 20px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--body-text);
}

/* ===================================
   Final CTA
   =================================== */
.final-cta {
    padding: var(--section-padding);
    background: #fff;
}

.cta-card {
    background: linear-gradient(135deg, var(--primary-very-light) 0%, var(--primary-light) 50%, var(--accent-teal-light) 100%);
    border-radius: var(--radius-lg);
    padding: 64px 40px;
    text-align: center;
}

.cta-card h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--dark-text);
}

.cta-card p {
    font-size: 17px;
    color: var(--body-text);
    margin-bottom: 28px;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--dark-text);
    color: #fff;
    padding: 56px 0 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-logo {
    font-size: 22px;
    font-weight: 800;
}

.footer-tagline {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    margin-top: 8px;
}

.footer-links {
    display: flex;
    gap: 56px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.4);
    margin-bottom: 4px;
}

.footer-col a {
    font-size: 15px;
    color: rgba(255,255,255,0.7);
    transition: color 0.2s;
}

.footer-col a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255,255,255,0.3);
}

/* ===================================
   Responsive — Tablet (768px)
   =================================== */
@media (max-width: 1024px) {
    .hero-headline {
        font-size: 40px;
    }

    .hero-container {
        gap: 40px;
    }

    .phone-frame {
        width: 240px;
        height: 500px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid .testimonial-card:last-child {
        grid-column: span 2;
        max-width: 50%;
        justify-self: center;
    }
}

/* ===================================
   Responsive — Mobile (768px and below)
   =================================== */
@media (max-width: 768px) {
    :root {
        --section-padding: 56px 0;
    }

    /* Nav mobile */
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(246, 246, 245, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 24px 20px;
        gap: 0;
        border-bottom: 1px solid var(--border-light);
        transform: translateY(-120%);
        opacity: 0;
        transition: transform 0.35s ease, opacity 0.35s ease;
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 14px 0;
        font-size: 17px;
        border-bottom: 1px solid var(--border-light);
    }

    .nav-links li:last-child a {
        border-bottom: none;
        text-align: center;
        margin-top: 8px;
    }

    /* Hero mobile */
    .hero {
        padding: 100px 0 56px;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .hero-headline {
        font-size: 32px;
    }

    .hero-subheadline {
        font-size: 16px;
        margin: 0 auto 28px;
    }

    .hero-trust {
        justify-content: center;
    }

    .phone-frame {
        width: 220px;
        height: 460px;
        border-radius: 34px;
    }

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

    /* Features mobile */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .feature-card {
        padding: 24px 20px;
    }

    /* Section headers mobile */
    .section-title {
        font-size: 26px;
    }

    .section-subtitle {
        font-size: 15px;
    }

    /* Testimonials mobile */
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid .testimonial-card:last-child {
        grid-column: span 1;
        max-width: 100%;
    }

    .trust-stats {
        flex-direction: column;
        gap: 20px;
        padding: 28px 20px;
    }

    .trust-stat-divider {
        width: 60px;
        height: 1px;
    }

    /* Screenshots mobile */
    .screenshot-img {
        width: 180px;
        height: 360px;
    }

    /* CTA mobile */
    .cta-card {
        padding: 40px 24px;
    }

    .cta-card h2 {
        font-size: 26px;
    }

    /* Footer mobile */
    .footer-content {
        flex-direction: column;
        gap: 32px;
    }

    .footer-links {
        flex-direction: column;
        gap: 28px;
    }

    .footer-brand {
        text-align: center;
    }

    .btn-lg {
        padding: 14px 28px;
        font-size: 16px;
    }
}

/* ===================================
   Small phones (480px)
   =================================== */
@media (max-width: 480px) {
    .hero-headline {
        font-size: 28px;
    }

    .hero-trust {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .phone-frame {
        width: 200px;
        height: 420px;
    }

    .step {
        gap: 16px;
    }

    .step-number {
        width: 44px;
        height: 44px;
        min-width: 44px;
        font-size: 18px;
    }

    .step-connector {
        margin-left: 21px;
    }
}
