:root {
  --bg: #f3f5f7;
  --bg-alt: #ffffff;
  --border-subtle: #dde3ea;
  --text-main: #0f172a;
  --text-muted: #6b7280;
  --accent: #16a34a;
  --accent-soft: #dcfce7;
  --accent-dark: #15803d;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-main);
  background: var(--bg);
}

.page {
  min-height: 100vh;
}

/* Topbar */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(243, 245, 247, 0.9);
  border-bottom: 1px solid rgba(209, 213, 219, 0.4);
}

.topbar-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  width: 24px;
  height: 24px;
}

.brand-name {
  font-weight: 600;
  font-size: 1rem;
}

.nav {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
}

.nav a {
  text-decoration: none;
  color: var(--text-muted);
}

.nav a:hover {
  color: var(--text-main);
}

/* Buttons */

.btn {
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  padding: 0.55rem 1.2rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-outline {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.6);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--text-main);
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--text-main);
}

.btn-ghost:hover {
  background: rgba(148, 163, 184, 0.12);
}

/* Hero */

.hero {
  padding: 3.5rem 1.5rem 2rem;
}

.hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
  gap: 3rem;
  align-items: center;
}

.hero-left h1 {
  font-size: clamp(2.3rem, 3vw, 2.8rem);
  line-height: 1.1;
  margin: 0.65rem 0;
}

.hero-sub {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
  max-width: 420px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  background: #e0f2fe;
  color: #0369a1;
  font-weight: 500;
}

.hero-actions {
  margin-top: 1.35rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-metrics {
  margin-top: 1.5rem;
  display: flex;
  gap: 1.5rem;
  font-size: 0.85rem;
}

.metric-label {
  font-weight: 600;
}

.metric-desc {
  color: var(--text-muted);
}

/* Meal card */

.hero-right {
  display: flex;
  justify-content: center;
}

.meal-card {
  background: var(--bg-alt);
  border-radius: var(--radius-xl);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(226, 232, 240, 0.9);
  width: 100%;
  max-width: 360px;
}

.meal-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.meal-main h2 {
  margin: 0 0 0.6rem;
  font-size: 1.1rem;
}

.meal-kcal {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}

.meal-kcal-value {
  font-size: 1.9rem;
  font-weight: 700;
}

.meal-kcal-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.meal-macros {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

.macro-label {
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.macro-value {
  font-weight: 600;
}

.confidence {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
}

/* Sections */

.section {
  padding: 2.8rem 1.5rem;
}

.section-alt {
  background: #f9fafb;
}

.section-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.section-title {
  font-size: 1.5rem;
  margin: 0 0 0.25rem;
}

.section-sub {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Grid helpers */

.grid {
  display: grid;
  gap: 1.4rem;
  margin-top: 1.9rem;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Card */

.card {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.3rem;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.02);
}

.card-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
  color: var(--accent-dark);
}

.card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Waitlist */

.waitlist-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.waitlist-form {
  margin-top: 1.35rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.waitlist-form input[type="email"] {
  flex: 1 1 220px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  padding: 0.6rem 0.9rem;
  font-size: 0.9rem;
  outline: none;
}

.waitlist-form input[type="email"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.2);
}

.fine-print {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.coming-card {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.4rem;
  border: 1px dashed var(--border-subtle);
}

.store-row {
  display: flex;
  gap: 0.7rem;
  margin-top: 0.9rem;
  flex-wrap: wrap;
}

.store-pill {
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.store-pill.disabled {
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  color: #6b7280;
}

.store-tag {
  font-size: 0.72rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: #e5e7eb;
}

.coming-note {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* FAQ */

.faq-grid .card h3 {
  font-size: 0.98rem;
}

/* Footer */

.footer {
  border-top: 1px solid rgba(209, 213, 219, 0.6);
  background: #f9fafb;
  margin-top: 1rem;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
  color: #6b7280;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a {
  color: inherit;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  display: inline-block;
  margin-right: 0.4rem;
}

/* Responsive */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-right {
    order: -1;
  }

  .waitlist-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .nav {
    display: none;
  }
}
