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

:root {
  --red:        #D03B35;
  --red-dark:   #B02E28;
  --red-light:  #FEF2F2;
  --text:       #111827;
  --muted:      #6B7280;
  --border:     #E5E7EB;
  --bg:         #FFFFFF;
  --card-bg:    #FAFAFA;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Nav ─────────────────────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--red);
  letter-spacing: -0.5px;
}

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

.nav-links a {
  font-size: 15px;
  color: var(--muted);
  font-weight: 500;
  transition: color 0.15s;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  border: none;
}

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

.btn-primary:hover { background: var(--red-dark); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--red);
  border: 1.5px solid var(--red);
}

.btn-outline:hover { background: var(--red-light); }

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

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 24px 60px;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--red-light);
  color: var(--red);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

.hero h1 span { color: var(--red); }

.hero p {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--text);
  color: #fff;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.15s;
}

.store-btn:hover { background: #374151; transform: translateY(-1px); }

.store-btn svg { width: 20px; height: 20px; fill: #fff; }

.store-btn-label { display: flex; flex-direction: column; }
.store-btn-sub { font-size: 10px; font-weight: 400; opacity: 0.75; line-height: 1; }
.store-btn-name { font-size: 15px; font-weight: 700; line-height: 1.2; }

.hero-trust {
  font-size: 13px;
  color: var(--muted);
}

/* ── Phone mockup ────────────────────────────────────────────────────── */
.phone-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 10px;
}

.phone {
  width: 260px;
  height: 530px;
  background: #fff;
  border-radius: 42px;
  border: 7px solid #1a1a1a;
  box-shadow: 0 0 0 1px #333, 0 30px 80px rgba(0,0,0,0.18);
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 26px;
  background: #1a1a1a;
  border-radius: 0 0 18px 18px;
  z-index: 10;
}

.phone-screen {
  height: 100%;
  background: #F9FAFB;
  padding: 36px 16px 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.phone-header {
  padding-top: 4px;
}

.phone-greeting {
  font-size: 11px;
  color: #9CA3AF;
  font-weight: 500;
}

.phone-title {
  font-size: 17px;
  font-weight: 800;
  color: #111827;
  margin-top: 1px;
}

.phone-calories {
  background: var(--red);
  border-radius: 14px;
  padding: 14px;
  color: #fff;
}

.phone-calories-label {
  font-size: 10px;
  font-weight: 600;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.phone-calories-val {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
  margin-top: 2px;
}

.phone-calories-sub {
  font-size: 10px;
  opacity: 0.7;
  margin-top: 2px;
}

.phone-meal {
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #F3F4F6;
}

.phone-meal-name { font-size: 12px; font-weight: 600; color: #111827; }
.phone-meal-kcal { font-size: 11px; color: var(--muted); }

.phone-insight {
  background: #FEF2F2;
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid #FECACA;
}

.phone-insight-text {
  font-size: 11px;
  color: var(--red-dark);
  font-weight: 500;
  line-height: 1.4;
}

/* ── Section base ────────────────────────────────────────────────────── */
section { padding: 80px 24px; }

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: 52px;
}

/* ── Features ────────────────────────────────────────────────────────── */
#features { background: var(--red-light); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.feature-card {
  background: #fff;
  border-radius: 20px;
  padding: 28px;
  border: 1px solid #FED7D7;
  transition: box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover {
  box-shadow: 0 8px 30px rgba(208,59,53,0.1);
  transform: translateY(-3px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--red-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* ── How it works ────────────────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(16.6% + 20px);
  right: calc(16.6% + 20px);
  height: 2px;
  background: var(--border);
}

.step { text-align: center; position: relative; }

.step-num {
  width: 56px;
  height: 56px;
  background: var(--red);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
}

.step h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Pricing ─────────────────────────────────────────────────────────── */
#pricing { background: var(--card-bg); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 780px;
}

.pricing-card {
  background: #fff;
  border-radius: 24px;
  padding: 36px;
  border: 1.5px solid var(--border);
  position: relative;
}

.pricing-card.featured {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(208,59,53,0.08);
}

.pricing-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 14px;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.pricing-price {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -2px;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}

.pricing-price sup {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0;
  vertical-align: top;
  margin-top: 6px;
  display: inline-block;
}

.pricing-period {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 4px;
}

.pricing-alt {
  font-size: 13px;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 28px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
}

.pricing-features li::before {
  content: '✓';
  width: 20px;
  height: 20px;
  background: var(--red-light);
  color: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.pricing-features li.muted { color: var(--muted); }
.pricing-features li.muted::before { background: #F3F4F6; color: #9CA3AF; }

/* ── FAQ ─────────────────────────────────────────────────────────────── */
.faq-list {
  max-width: 700px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

details {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

details + details { margin-top: 8px; }

summary {
  padding: 18px 20px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: #fff;
  transition: background 0.15s;
}

summary:hover { background: var(--red-light); }

summary::after {
  content: '+';
  font-size: 22px;
  color: var(--red);
  flex-shrink: 0;
  font-weight: 400;
  transition: transform 0.2s;
}

details[open] summary::after {
  content: '−';
}

details .answer {
  padding: 0 20px 18px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  background: #fff;
}

/* ── CTA banner ──────────────────────────────────────────────────────── */
.cta-section {
  background: var(--red);
  color: #fff;
  text-align: center;
  padding: 80px 24px;
}

.cta-section h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 14px;
}

.cta-section p {
  font-size: 18px;
  opacity: 0.85;
  margin-bottom: 36px;
}

.cta-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.store-btn-white {
  background: #fff;
  color: var(--red);
}

.store-btn-white:hover { background: #FEF2F2; transform: translateY(-1px); }

/* ── Footer ──────────────────────────────────────────────────────────── */
footer {
  background: var(--text);
  color: #9CA3AF;
  padding: 48px 24px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-logo {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  font-size: 14px;
  color: #9CA3AF;
  transition: color 0.15s;
}

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

.footer-copy { font-size: 13px; }

/* ── Inner page (terms/privacy/about) ────────────────────────────────── */
.page-hero {
  background: var(--red-light);
  padding: 60px 24px 48px;
  text-align: center;
  border-bottom: 1px solid #FED7D7;
}

.page-hero h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 10px;
}

.page-hero p {
  font-size: 16px;
  color: var(--muted);
}

.prose {
  max-width: 720px;
  margin: 60px auto;
  padding: 0 24px 80px;
}

.prose h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 40px 0 12px;
  color: var(--text);
}

.prose h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 24px 0 8px;
  color: var(--text);
}

.prose p, .prose li {
  font-size: 15px;
  color: #374151;
  line-height: 1.8;
  margin-bottom: 12px;
}

.prose ul, .prose ol {
  padding-left: 22px;
  margin-bottom: 16px;
}

.prose a { color: var(--red); text-decoration: underline; }

.prose hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

/* ── Contact form ────────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 900px;
  margin: 60px auto;
  padding: 0 24px 80px;
  align-items: start;
}

.contact-info h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 12px;
}

.contact-info p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 28px;
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.contact-item-icon {
  width: 36px;
  height: 36px;
  background: var(--red-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.contact-item-text strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.contact-item-text span {
  font-size: 14px;
  color: var(--muted);
}

form { display: flex; flex-direction: column; gap: 16px; }

label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  display: block;
  margin-bottom: 6px;
}

input, textarea, select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  transition: border-color 0.15s;
  outline: none;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(208,59,53,0.08);
}

textarea { resize: vertical; min-height: 120px; }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 48px 24px 40px;
    gap: 40px;
  }

  .phone-wrap { display: none; }

  .steps {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .steps::before { display: none; }

  .step { text-align: left; display: flex; gap: 16px; align-items: flex-start; }
  .step-num { margin: 0; flex-shrink: 0; }

  .nav-links { display: none; }

  .contact-grid { grid-template-columns: 1fr; gap: 40px; }

  .footer-inner { flex-direction: column; text-align: center; }
}
