/* Basic layout and theme */
:root{--bg:#f6f7fb;--card:#fff;--muted:#6b7280;--accent:#2563eb}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{font-family:Inter, system-ui, -apple-system, sans-serif;margin:0;background:var(--bg);color:#111;-webkit-font-smoothing:antialiased}

/* Header */
.site-header{background:rgba(255,255,255,0.9);backdrop-filter:blur(6px);position:sticky;top:0;z-index:40;border-bottom:1px solid rgba(16,24,40,0.04)}
.header-inner{display:flex;align-items:center;justify-content:space-between;padding:0.75rem 1rem;max-width:1100px;margin:0 auto}
.brand{display:flex;align-items:center;gap:.6rem;text-decoration:none;color:inherit}
.logo{height:64px;width:64px;object-fit:contain}
.brand span{font-size:1.1rem;font-weight:600}
.main-nav a{margin-left:1rem;color:var(--muted);text-decoration:none;font-weight:500}
.main-nav a:hover{color:var(--accent)}

/* Container */
.container{max-width:1100px;margin:0 auto;padding:1rem}

/* Hero */
.hero{padding:3.25rem 0;text-align:center;min-height:30vh;display:flex;align-items:center;justify-content:center;flex-direction:column}
.hero h1{font-size:clamp(2rem,6vw,3.5rem);margin:0 0 .5rem}

/* Waitlist Form */
.waitlist-form{max-width:600px;margin:0 auto;width:100%}
.form-group{position:relative;margin-bottom:1rem}
.waitlist-form input[type="email"]{width:100%;padding:1rem;font-size:1rem;border:2px solid #e5e7eb;border-radius:12px;background:#fff;transition:all 0.3s ease;font-family:inherit}
.waitlist-form input[type="email"]:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px rgba(37,99,235,0.1)}
.waitlist-form input[type="email"].error{border-color:#ef4444}
.error-message{display:none;position:absolute;top:100%;left:0;margin-top:0.25rem;font-size:0.875rem;color:#ef4444;background:rgba(239,68,68,0.1);padding:0.25rem 0.75rem;border-radius:6px}
.waitlist-form .btn{width:100%;padding:1rem;font-size:1rem;cursor:pointer;border:none;position:relative;display:flex;align-items:center;justify-content:center;transition:all 0.3s ease}
.waitlist-form .btn:disabled{opacity:0.7;cursor:not-allowed}

/* Spinner */
.spinner{display:none;width:20px;height:20px;border:3px solid rgba(255,255,255,0.3);border-top-color:#fff;border-radius:50%;animation:spin 0.8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}

/* Success Message */
.success-message{display:none;background:#fff;border:2px solid #10b981;border-radius:12px;padding:2rem;text-align:center;animation:fadeInScale 0.5s ease}
.success-message p{margin:0;font-size:1.5rem;font-weight:600;color:#059669}
@keyframes fadeInScale{from{opacity:0;transform:scale(0.9)}to{opacity:1;transform:scale(1)}}

/* Buttons */
.btn{display:inline-block;padding:.6rem 1rem;border-radius:8px;text-decoration:none;font-weight:600;border:1px solid transparent}
.btn-primary{background:var(--accent);color:#fff}
.btn-primary:hover{filter:brightness(.95)}
.hero-cta{display:block;margin-top:1.5rem;margin-bottom:1.25rem;text-align:center}

/* ensure two-line gap between hero paragraph and form */
.hero p{margin-bottom:2rem;color:var(--muted)}

@media (max-width:720px){
	.hero-cta{margin-top:1rem}
	.hero p{margin-bottom:1.5rem}
}

/* Features */
.features h2{margin-top:0}
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:1rem;margin-top:1rem}
.card{background:var(--card);padding:1rem;border-radius:8px;box-shadow:0 6px 20px rgba(16,24,40,0.06)}
.card h3{margin:0 0 .5rem}

/* Meals */
.meals{background:linear-gradient(180deg,rgba(37,99,235,0.04),transparent);padding:1.25rem;border-radius:8px}

/* Gallery */
.gallery h2{margin-top:0}
.grid{display:flex;gap:1.5rem;overflow-x:auto;overflow-y:hidden;scroll-behavior:smooth;padding:1rem 0;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color:rgba(37,99,235,0.3) transparent}
.grid::-webkit-scrollbar{height:8px}
.grid::-webkit-scrollbar-track{background:transparent}
.grid::-webkit-scrollbar-thumb{background:rgba(37,99,235,0.3);border-radius:4px}
.grid::-webkit-scrollbar-thumb:hover{background:rgba(37,99,235,0.5)}
figure{background:var(--card);border-radius:8px;overflow:hidden;margin:0;box-shadow:0 6px 18px rgba(16,24,40,0.06);display:flex;flex-direction:column;min-width:280px;max-width:280px;flex-shrink:0}
figure img{width:100%;height:auto;display:block;object-fit:cover}
figcaption{padding:.5rem .75rem;font-size:.9rem;color:var(--muted)}

/* CTA */
.cta{text-align:center;padding:2rem 0}

/* Footer */
.site-footer{padding:1rem 0;background:transparent}
.footer-inner{display:flex;justify-content:space-between;gap:1rem;align-items:center;flex-wrap:wrap}
.site-footer a{color:var(--muted);text-decoration:none}
.site-footer a:hover{color:var(--accent)}
.hint{color:var(--muted);font-size:.85rem}

@media (max-width:420px){
	figure{min-width:240px;max-width:240px}
	.main-nav{display:none}
}
