/* =========================================================
   Pet Nutrition Tracker — Marketing Site
   Design tokens pulled from the iOS app (AppColors, AppGradients, AppFonts)
   ========================================================= */

:root {
    /* Brand */
    --brand-primary: #6366F1;     /* Vibrant Indigo */
    --brand-secondary: #8B5CF6;   /* Purple */
    --brand-accent: #EC4899;      /* Pink */

    /* Semantic */
    --success: #10B981;
    --success-light: #34D399;
    --warning: #F59E0B;
    --warning-light: #FBBF24;
    --error: #EF4444;
    --info: #3B82F6;

    /* Neutrals (light mode) */
    --bg: #F9FAFB;
    --surface: #FFFFFF;
    --border: #E5E7EB;
    --text: #1F2937;
    --text-secondary: #6B7280;
    --text-muted: #9CA3AF;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    --gradient-secondary: linear-gradient(135deg, #8B5CF6 0%, #EC4899 100%);
    --gradient-success: linear-gradient(135deg, #34D399 0%, #10B981 100%);
    --gradient-warning: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%);
    --gradient-mesh: radial-gradient(at 20% 20%, rgba(99, 102, 241, 0.15) 0px, transparent 50%),
                     radial-gradient(at 80% 0%, rgba(139, 92, 246, 0.12) 0px, transparent 50%),
                     radial-gradient(at 80% 80%, rgba(236, 72, 153, 0.10) 0px, transparent 50%),
                     radial-gradient(at 0% 100%, rgba(99, 102, 241, 0.08) 0px, transparent 50%);

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-pill: 999px;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 12px;
    --space-lg: 16px;
    --space-xl: 24px;
    --space-2xl: 32px;
    --space-3xl: 48px;
    --space-4xl: 72px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.04), 0 1px 3px rgba(17, 24, 39, 0.06);
    --shadow-md: 0 4px 6px rgba(17, 24, 39, 0.04), 0 10px 15px rgba(17, 24, 39, 0.08);
    --shadow-lg: 0 20px 40px rgba(99, 102, 241, 0.15), 0 10px 20px rgba(17, 24, 39, 0.08);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.25);

    /* Typography */
    --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "SF Pro Display",
                 "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #111827;
        --surface: #1F2937;
        --border: #374151;
        --text: #F9FAFB;
        --text-secondary: #D1D5DB;
        --text-muted: #9CA3AF;
        --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.4);
        --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3), 0 10px 15px rgba(0, 0, 0, 0.4);
        --shadow-lg: 0 20px 40px rgba(99, 102, 241, 0.25), 0 10px 20px rgba(0, 0, 0, 0.5);
    }
}

/* =========================================================
   Reset & base
   ========================================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    background-image: var(--gradient-mesh);
    background-attachment: fixed;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--brand-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--brand-secondary);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { color: var(--text-secondary); }

/* =========================================================
   Layout helpers
   ========================================================= */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.section {
    padding: var(--space-4xl) 0;
}

.section-sm {
    padding: var(--space-3xl) 0;
}

.text-center { text-align: center; }
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* =========================================================
   Navigation
   ========================================================= */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(249, 250, 251, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border);
}

@media (prefers-color-scheme: dark) {
    .navbar {
        background: rgba(17, 24, 39, 0.8);
    }
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg) var(--space-xl);
    max-width: 1200px;
    margin: 0 auto;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--text);
}

.navbar-brand:hover { color: var(--text); }

.navbar-logo {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: var(--shadow-sm);
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    list-style: none;
}

.navbar-links a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
}

.navbar-links a:hover,
.navbar-links a.active {
    color: var(--brand-primary);
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
    color: var(--text);
}

.navbar-toggle svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .navbar-toggle { display: block; }
    .navbar-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--surface);
        flex-direction: column;
        padding: var(--space-xl);
        gap: var(--space-lg);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
    }
    .navbar-links.open { display: flex; }
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 14px 28px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    color: white;
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    color: var(--brand-primary);
    border-color: var(--brand-primary);
}

.btn-lg {
    padding: 18px 36px;
    font-size: 1.125rem;
}

/* App Store badge */
.app-store-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-md);
    padding: 14px 28px;
    background: #000;
    color: white;
    border-radius: var(--radius-md);
    text-decoration: none;
    box-shadow: var(--shadow-md);
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.app-store-btn:hover {
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.app-store-btn svg {
    width: 30px;
    height: 30px;
    fill: white;
}

.app-store-btn .label {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    text-align: left;
}

.app-store-btn .label small {
    font-size: 0.65rem;
    opacity: 0.85;
}

.app-store-btn .label strong {
    font-size: 1.1rem;
    font-weight: 600;
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
    padding: var(--space-4xl) 0 var(--space-3xl);
    position: relative;
    overflow: hidden;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-visual { order: -1; }
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 6px 14px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--brand-primary);
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: var(--space-xl);
}

.hero h1 {
    margin-bottom: var(--space-xl);
}

.hero-lead {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-2xl);
    max-width: 560px;
}

@media (max-width: 900px) {
    .hero-lead { margin-left: auto; margin-right: auto; }
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
}

@media (max-width: 900px) {
    .hero-ctas { justify-content: center; }
}

.hero-meta {
    display: flex;
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .hero-meta { justify-content: center; }
}

.hero-meta .dot {
    color: var(--success);
    margin-right: var(--space-xs);
}

/* Phone mockup */
.phone-mockup {
    position: relative;
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
    aspect-ratio: 9 / 19;
    background: #111;
    border-radius: 42px;
    padding: 10px;
    box-shadow: var(--shadow-lg), 0 0 0 2px #333, 0 0 60px rgba(139, 92, 246, 0.3);
}

.phone-mockup::before {
    content: "";
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 28px;
    background: #000;
    border-radius: 0 0 16px 16px;
    z-index: 2;
}

.phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 34px;
    background: var(--gradient-mesh), var(--bg);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    padding: var(--space-4xl) var(--space-lg) var(--space-xl);
}

.mock-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
    box-shadow: var(--shadow-sm);
}

.mock-card-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.mock-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient-warning);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.mock-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text);
}

.mock-sub {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.mock-progress {
    height: 8px;
    background: var(--border);
    border-radius: var(--radius-pill);
    overflow: hidden;
    margin-top: var(--space-sm);
}

.mock-progress-fill {
    height: 100%;
    width: 68%;
    background: var(--gradient-primary);
    border-radius: var(--radius-pill);
}

.mock-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
    margin-top: var(--space-md);
    font-size: 0.7rem;
}

.mock-stat {
    text-align: center;
}

.mock-stat strong {
    display: block;
    color: var(--brand-primary);
    font-size: 0.95rem;
}

/* =========================================================
   Feature grid
   ========================================================= */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-3xl);
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: var(--space-lg);
    box-shadow: var(--shadow-md);
}

.feature-card h3 {
    margin-bottom: var(--space-sm);
    font-size: 1.2rem;
}

.feature-card p {
    font-size: 0.95rem;
}

/* Alternate feature icon colors */
.feature-icon.pink { background: var(--gradient-secondary); }
.feature-icon.green { background: var(--gradient-success); }
.feature-icon.amber { background: var(--gradient-warning); }

/* =========================================================
   Section header
   ========================================================= */
.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}

.section-header .eyebrow {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand-primary);
    margin-bottom: var(--space-md);
}

.section-header h2 {
    margin-bottom: var(--space-lg);
}

.section-header p {
    font-size: 1.1rem;
}

/* =========================================================
   Stat banner
   ========================================================= */
.stat-banner {
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-xl);
    padding: var(--space-3xl);
    text-align: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.stat-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.15), transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(236,72,153,0.3), transparent 50%);
    pointer-events: none;
}

.stat-banner h2 {
    color: white;
    margin-bottom: var(--space-md);
    position: relative;
}

.stat-banner p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

/* =========================================================
   Pricing
   ========================================================= */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-3xl);
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    border: 2px solid transparent;
    background:
        linear-gradient(var(--surface), var(--surface)) padding-box,
        var(--gradient-primary) border-box;
    box-shadow: var(--shadow-lg);
}

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: white;
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: var(--shadow-md);
}

.pricing-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.pricing-price {
    display: flex;
    align-items: baseline;
    gap: var(--space-xs);
    margin-bottom: var(--space-sm);
}

.pricing-price .amount {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text);
}

.pricing-price .period {
    color: var(--text-secondary);
    font-size: 1rem;
}

.pricing-desc {
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    font-size: 0.95rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: var(--space-xl);
    flex: 1;
}

.pricing-features li {
    padding: var(--space-sm) 0;
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    color: var(--text);
    font-size: 0.95rem;
}

.pricing-features li::before {
    content: "";
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gradient-success);
    background-image: var(--gradient-success),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath d='M7.5 13.5L4 10l1.4-1.4L7.5 10.7 14.6 3.6 16 5z'/%3E%3C/svg%3E");
    background-position: center;
    background-size: 14px;
    background-repeat: no-repeat;
    margin-top: 2px;
}

/* =========================================================
   FAQ
   ========================================================= */
.faq-list {
    max-width: 780px;
    margin: var(--space-3xl) auto 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.faq-item summary {
    cursor: pointer;
    padding: var(--space-xl);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
    list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: "+";
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--brand-primary);
    transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-item-body {
    padding: 0 var(--space-xl) var(--space-xl);
    color: var(--text-secondary);
    line-height: 1.7;
}

/* =========================================================
   Legal / long-form content
   ========================================================= */
.prose {
    max-width: 780px;
    margin: 0 auto;
}

.prose h2 {
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-md);
    font-size: 1.5rem;
}

.prose h3 {
    margin-top: var(--space-xl);
    margin-bottom: var(--space-sm);
    font-size: 1.2rem;
}

.prose p,
.prose ul,
.prose ol {
    margin-bottom: var(--space-lg);
    color: var(--text-secondary);
    line-height: 1.75;
}

.prose ul,
.prose ol {
    padding-left: var(--space-xl);
}

.prose li {
    margin-bottom: var(--space-sm);
}

.prose a {
    text-decoration: underline;
}

.prose .updated {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: var(--space-2xl);
}

.legal-hero {
    padding: var(--space-3xl) 0 var(--space-xl);
    text-align: center;
}

.legal-hero h1 { margin-bottom: var(--space-md); }

/* =========================================================
   CTA band
   ========================================================= */
.cta-band {
    margin-top: var(--space-4xl);
    text-align: center;
}

.cta-band .btn-group {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
    margin-top: var(--space-xl);
}

/* =========================================================
   Footer
   ========================================================= */
.footer {
    margin-top: var(--space-4xl);
    padding: var(--space-3xl) 0 var(--space-xl);
    border-top: 1px solid var(--border);
    background: rgba(255,255,255,0.5);
}

@media (prefers-color-scheme: dark) {
    .footer { background: rgba(17,24,39,0.5); }
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

@media (max-width: 768px) {
    .footer-inner { grid-template-columns: 1fr 1fr; }
}

.footer-brand {
    max-width: 320px;
}

.footer-brand .navbar-brand { margin-bottom: var(--space-md); }
.footer-brand p { font-size: 0.9rem; }

.footer h4 {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: var(--space-md);
}

.footer ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer ul a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer ul a:hover {
    color: var(--brand-primary);
}

.footer-bottom {
    max-width: 1200px;
    margin: var(--space-2xl) auto 0;
    padding: var(--space-xl) var(--space-xl) 0;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-md);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* =========================================================
   Animations
   ========================================================= */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.float { animation: float 4s ease-in-out infinite; }

@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
    animation: fade-in-up 0.6s ease-out both;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* =========================================================
   Extension / additions for multi-page site
   (Aliases + new components not in the original file)
   ========================================================= */

/* ---- Aliases ---- */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand-primary);
    margin-bottom: var(--space-md);
}

/* ---- Navigation (new naming) ---- */
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-md) var(--space-xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--text);
    letter-spacing: -0.01em;
}
.nav-logo:hover { color: var(--text); }

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--gradient-primary);
    font-size: 1.1rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    list-style: none;
}
.nav-menu a:not(.btn) {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-secondary);
}
.nav-menu a:not(.btn):hover,
.nav-menu a.active {
    color: var(--brand-primary);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--text);
    transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.navbar.scrolled {
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-sm);
}
@media (prefers-color-scheme: dark) {
    .navbar { background: rgba(17, 24, 39, 0.75); }
}

/* ---- Buttons extensions ---- */
.btn-sm {
    padding: 0.55rem 1rem;
    font-size: 0.9rem;
}
.btn-large, .btn-lg {
    padding: 1rem 1.75rem;
    font-size: 1.05rem;
}
.btn-block {
    display: flex;
    width: 100%;
    justify-content: center;
    margin-top: var(--space-lg);
}

.btn-app-store {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1.4rem;
    border-radius: var(--radius-lg);
    background: #000;
    color: #fff;
    font-weight: 600;
    border: 1px solid #000;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-app-store:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}
.btn-app-store svg { flex-shrink: 0; }
.app-store-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
}
.app-store-text .small {
    font-size: 0.7rem;
    opacity: 0.85;
    font-weight: 500;
}
.app-store-text .large {
    font-size: 1.1rem;
    font-weight: 700;
}

/* ---- Hero (new naming) ---- */
.hero {
    position: relative;
    padding: var(--space-4xl) 0;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-mesh);
    z-index: -1;
    pointer-events: none;
}
.hero-container {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}
.hero-content { max-width: 620px; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-pill);
    background: rgba(99, 102, 241, 0.1);
    color: var(--brand-primary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: var(--space-lg);
}
.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brand-primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

.hero-title {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    line-height: 1.1;
    margin-bottom: var(--space-lg);
}
.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    line-height: 1.6;
}
.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border);
}
.trust-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.trust-item strong {
    font-size: 1rem;
    color: var(--text);
    font-weight: 700;
}
.trust-item span {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.trust-divider {
    width: 1px;
    height: 32px;
    background: var(--border);
}

.hero-visual {
    display: flex;
    justify-content: center;
}

/* ---- Phone mockup (extended) ---- */
.phone-notch {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 26px;
    background: #000;
    border-radius: 0 0 16px 16px;
    z-index: 2;
}
.mock-header {
    padding: var(--space-md);
    margin-bottom: var(--space-md);
}
.mock-greeting {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text);
}
.mock-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}
.mock-card-primary {
    background: var(--gradient-primary);
    color: #fff;
    border: none;
}
.mock-card-primary .mock-card-label {
    font-size: 0.75rem;
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}
.mock-card-primary .mock-card-value {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 4px 0 10px;
}
.mock-card-primary .mock-card-value span {
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.85;
}
.mock-card-primary .mock-progress {
    background: rgba(255, 255, 255, 0.25);
}
.mock-card-primary .mock-progress-fill {
    background: #fff;
}
.mock-row {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}
.mock-emoji {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 10px;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.mock-meal-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
}
.mock-meal-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}
.mock-ai {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: var(--space-md);
    background: rgba(139, 92, 246, 0.08);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    color: var(--brand-secondary);
    font-weight: 600;
    margin-top: var(--space-sm);
}
.mock-ai-icon { font-size: 1rem; }

/* ---- Stat banner (new content) ---- */
.stat-banner {
    padding: var(--space-3xl) 0;
    background: var(--gradient-primary);
    color: #fff;
    margin: var(--space-3xl) 0;
}
.stat-banner::before { display: none; }
.stat-content {
    display: flex;
    align-items: center;
    gap: var(--space-2xl);
    justify-content: center;
    flex-wrap: wrap;
    text-align: left;
}
.stat-number {
    font-size: clamp(3.5rem, 8vw, 5.5rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.03em;
}
.stat-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 520px;
}
.stat-text strong {
    font-size: 1.25rem;
    font-weight: 700;
}
.stat-text span {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
}

/* ---- Features section ---- */
.features {
    padding: var(--space-4xl) 0;
}
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-3xl);
}
.feature-card {
    padding: var(--space-2xl);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    opacity: 0;
    transform: translateY(14px);
}
.feature-card.in-view,
.feature-card {
    opacity: 1;
    transform: translateY(0);
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.feature-icon {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    font-size: 1.6rem;
    margin-bottom: var(--space-lg);
    background: var(--gradient-primary);
    color: #fff;
}
.feature-icon-primary   { background: var(--gradient-primary); }
.feature-icon-secondary { background: var(--gradient-secondary); }
.feature-icon-success   { background: var(--gradient-success); }
.feature-icon-warning   { background: var(--gradient-warning); }
.feature-icon-accent    { background: linear-gradient(135deg, #EC4899 0%, #F472B6 100%); }

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto var(--space-2xl);
}
.section-header h2 { margin-bottom: var(--space-md); }
.section-header p { font-size: 1.1rem; color: var(--text-secondary); }

.section-cta {
    display: flex;
    justify-content: center;
    margin-top: var(--space-3xl);
}

/* ---- How it works ---- */
.how-it-works {
    padding: var(--space-4xl) 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-2xl);
    margin-top: var(--space-2xl);
}
.step {
    text-align: center;
    padding: var(--space-xl);
}
.step-number {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: #fff;
    border-radius: 50%;
    font-size: 1.4rem;
    font-weight: 800;
    box-shadow: var(--shadow-md);
}
.step h3 { margin-bottom: var(--space-sm); }
.step p { color: var(--text-secondary); }

/* ---- Pricing preview / full ---- */
.pricing-preview,
.pricing-full {
    padding: var(--space-4xl) 0;
}
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
    max-width: 1000px;
    margin: 0 auto;
    align-items: stretch;
}
.pricing-card {
    position: relative;
    padding: var(--space-2xl);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}
.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.pricing-featured {
    border: 2px solid var(--brand-primary);
    box-shadow: var(--shadow-lg);
    transform: scale(1.03);
}
.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: #fff;
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: var(--shadow-md);
}
.pricing-name {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}
.pricing-price {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
}
.pricing-price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-left: 4px;
}
.pricing-desc {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    font-size: 0.95rem;
}
.pricing-features {
    list-style: none;
    padding: 0;
    margin: var(--space-md) 0;
    flex: 1;
}
.pricing-features li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li::before { content: none; }

.pricing-note {
    max-width: 680px;
    margin: var(--space-2xl) auto 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ---- Final CTA ---- */
.final-cta {
    padding: var(--space-4xl) 0;
}
.cta-card {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    padding: var(--space-4xl) var(--space-2xl);
    background: var(--gradient-primary);
    color: #fff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}
.cta-card h2 { color: #fff; margin-bottom: var(--space-md); }
.cta-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.15rem;
    margin-bottom: var(--space-xl);
}
.cta-card .btn-app-store {
    background: #fff;
    color: #000;
    border-color: #fff;
}
.cta-card .btn-app-store:hover { color: #000; }

/* ---- Footer (new naming) ---- */
.footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: var(--space-4xl) 0 var(--space-xl);
    margin-top: var(--space-4xl);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}
.footer-brand p {
    margin-top: var(--space-md);
    font-size: 0.9rem;
    color: var(--text-secondary);
    max-width: 320px;
}
.footer-col h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text);
    margin-bottom: var(--space-md);
}
.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}
.footer-col ul a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.footer-col ul a:hover { color: var(--brand-primary); }

/* ---- Page hero (sub-pages) ---- */
.page-hero {
    padding: var(--space-4xl) 0 var(--space-2xl);
    text-align: center;
}
.page-hero h1 { margin-bottom: var(--space-md); }
.page-hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 620px;
    margin: 0 auto;
}

/* ---- Features detail rows ---- */
.features-detail {
    padding: var(--space-3xl) 0 var(--space-4xl);
}
.feature-row {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
    margin-bottom: var(--space-4xl);
}
.feature-row.reverse {
    direction: rtl;
}
.feature-row.reverse > * {
    direction: ltr;
}
.feature-row-text .feature-icon {
    margin-bottom: var(--space-lg);
}
.feature-row-text h2 { margin-bottom: var(--space-md); }
.feature-row-text p {
    font-size: 1.05rem;
    margin-bottom: var(--space-lg);
    color: var(--text-secondary);
}
.feature-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}
.feature-list li {
    padding-left: 1.75rem;
    position: relative;
    color: var(--text);
}
.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    width: 1.25rem;
    height: 1.25rem;
    background: var(--gradient-success);
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
}
.feature-row-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}
.visual-card {
    width: 260px;
    height: 260px;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    box-shadow: var(--shadow-lg);
    background: var(--gradient-primary);
    color: #fff;
}
.visual-card-primary   { background: var(--gradient-primary); }
.visual-card-secondary { background: var(--gradient-secondary); }
.visual-card-success   { background: var(--gradient-success); }
.visual-card-warning   { background: var(--gradient-warning); }
.visual-card-accent    { background: linear-gradient(135deg, #EC4899 0%, #F472B6 100%); }

/* ---- FAQ (new naming) ---- */
.faq-section {
    padding: var(--space-4xl) 0;
}
.faq {
    max-width: 760px;
    margin: 0 auto var(--space-2xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}
.faq-category {
    max-width: 760px;
    margin: var(--space-2xl) auto var(--space-md);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand-primary);
    font-weight: 700;
}
.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-md) var(--space-lg);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq-item[open] {
    border-color: var(--brand-primary);
    box-shadow: var(--shadow-sm);
}
.faq-item summary {
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) 0;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--brand-primary);
    transition: transform 0.2s ease;
}
.faq-item[open] summary::after {
    content: "−";
}
.faq-item p {
    margin-top: var(--space-sm);
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ---- Prose (privacy / terms) ---- */
.prose-section {
    padding: var(--space-2xl) 0 var(--space-4xl);
}
.prose {
    max-width: 760px;
    margin: 0 auto;
    background: var(--surface);
    padding: var(--space-3xl);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
}
.prose h2 {
    font-size: 1.4rem;
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-md);
    color: var(--text);
}
.prose p, .prose ul, .prose ol {
    margin-bottom: var(--space-md);
    color: var(--text-secondary);
    line-height: 1.75;
}
.prose ul, .prose ol {
    padding-left: 1.5rem;
}
.prose li { margin-bottom: 0.4rem; }
.prose a {
    color: var(--brand-primary);
    text-decoration: underline;
}

/* ---- Support page ---- */
.support-contact {
    padding: var(--space-2xl) 0;
}
.contact-card {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
    padding: var(--space-3xl);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}
.contact-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
}
.contact-card h2 { margin-bottom: var(--space-sm); }
.contact-card p {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}
.contact-email {
    margin-top: var(--space-md);
    color: var(--text-muted);
    font-size: 0.9rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ---- Phone mockup base (in case not defined) ---- */
.phone-mockup {
    position: relative;
    width: 290px;
    height: 590px;
    background: #1a1a1a;
    border-radius: 44px;
    padding: 14px;
    box-shadow: var(--shadow-lg), 0 0 0 2px #2a2a2a;
    animation: float 6s ease-in-out infinite;
}
.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--bg);
    border-radius: 32px;
    overflow: hidden;
    padding: 44px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.mock-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
}
.mock-progress {
    width: 100%;
    height: 6px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 6px;
}
.mock-progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 3px;
}

/* ---- Responsive ---- */
@media (max-width: 960px) {
    .hero-container { grid-template-columns: 1fr; gap: var(--space-3xl); }
    .hero-content { max-width: none; text-align: center; margin: 0 auto; }
    .hero-cta, .hero-trust { justify-content: center; }
    .hero-trust { flex-wrap: wrap; }
    .feature-row,
    .feature-row.reverse { grid-template-columns: 1fr; direction: ltr; gap: var(--space-xl); text-align: center; }
    .feature-row-text .feature-icon { margin-left: auto; margin-right: auto; }
    .feature-list { text-align: left; display: inline-flex; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .stat-content { flex-direction: column; text-align: center; }
    .pricing-featured { transform: none; }
}

@media (max-width: 720px) {
    .nav-toggle { display: flex; }
    .nav-menu {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        padding: var(--space-lg);
        gap: var(--space-lg);
        transform: translateY(-110%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.25s ease, opacity 0.25s ease;
    }
    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-trust { gap: var(--space-md); }
    .trust-divider { display: none; }
}

/* In-view animation */
.in-view {
    animation: fade-in-up 0.6s ease-out both;
}
