:root {
  --bg: #1c1814;
  --surface: #242019;
  --surface2: #2d2822;
  --border: #3a342c;
  --text: #f0ebe4;
  --text-muted: #8a7f74;
  --text-faint: #4a4440;
  --accent: #e8854e;
  --accent-hover: #f09060;
  --accent-bg: #2e1e0e;
  --protein: #e07878;
  --carbs: #d4a832;
  --fat: #60a880;
  --fiber: #7a8fc4;
  --radius: 12px;
  --radius-sm: 8px;
  --max-width: 1100px;
  --nav-height: 64px;
}

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

html { scroll-behavior: smooth; }

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

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

/* ── NAV ─────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(28, 24, 20, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
}

.nav-inner {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
}
.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }

/* ── HERO ────────────────────────────────────────── */
.hero {
  padding: 96px 24px 80px;
  text-align: center;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-bg);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 5px 16px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 32px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.app-icon-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.app-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--border);
}

.hero h1 {
  font-size: clamp(40px, 7vw, 76px);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.06;
  color: var(--text);
  margin-bottom: 24px;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero p {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 40px;
  line-height: 1.65;
}

.hero-badges {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 24px;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  transition: border-color 0.15s, background 0.15s;
}
.badge-btn:hover {
  border-color: var(--accent);
  background: var(--surface2);
  color: var(--text);
}
.badge-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: var(--text-muted);
}

/* ── SECTIONS ────────────────────────────────────── */
.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.12;
  color: var(--text);
  margin-bottom: 48px;
}

/* ── FEATURES ────────────────────────────────────── */
.features {
  padding: 80px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

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

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.15s;
}
.feature-card:hover { border-color: var(--accent); }

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}

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

.macro-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.macro-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 0.3px;
}
.pill-cal     { background: rgba(232,133,78,0.15);  color: #e8854e; }
.pill-protein { background: rgba(224,120,120,0.15); color: #e07878; }
.pill-carbs   { background: rgba(212,168,50,0.15);  color: #d4a832; }
.pill-fat     { background: rgba(96,168,128,0.15);  color: #60a880; }
.pill-fiber   { background: rgba(122,143,196,0.15); color: #7a8fc4; }

/* ── HOW IT WORKS ────────────────────────────────── */
.how-it-works {
  padding: 80px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  border-top: 1px solid var(--border);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 0;
}

.step-num {
  display: block;
  font-size: 52px;
  font-weight: 900;
  color: var(--border);
  letter-spacing: -3px;
  line-height: 1;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}

.step p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── FOOTER ──────────────────────────────────────── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 56px 24px 32px;
  margin-top: 80px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand .nav-logo {
  display: block;
  font-size: 18px;
  margin-bottom: 10px;
}
.footer-brand p {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 260px;
  line-height: 1.6;
}

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

.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom p {
  font-size: 13px;
  color: var(--text-faint);
}

/* ── LEGAL PAGES ─────────────────────────────────── */
.legal-header {
  padding: 64px 24px 48px;
  max-width: 760px;
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}

.legal-header h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text);
  margin-bottom: 10px;
}

.legal-header p {
  font-size: 14px;
  color: var(--text-muted);
}

.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 96px;
}

.legal-content h2 {
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  margin: 40px 0 12px;
  letter-spacing: -0.3px;
}
.legal-content h2:first-child { margin-top: 0; }

.legal-content p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 14px;
}

.legal-content ul, .legal-content ol {
  margin: 0 0 14px 24px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.8;
}
.legal-content li { margin-bottom: 4px; }
.legal-content strong { color: var(--text); font-weight: 600; }
.legal-content a { color: var(--accent); }

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  font-size: 14px;
}
.legal-table th {
  text-align: left;
  padding: 10px 16px;
  border: 1px solid var(--border);
  color: var(--text-faint);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: var(--surface);
}
.legal-table td {
  padding: 10px 16px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  vertical-align: top;
}

/* ── DELETION FORM ───────────────────────────────── */
.form-wrap {
  max-width: 600px;
  margin: 0 auto;
  padding: 48px 24px 96px;
}

.form-group { margin-bottom: 24px; }

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.form-group input[type="radio"],
.form-group input[type="checkbox"] {
  width: auto;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  appearance: auto;
}

.form-group input:not([type="radio"]):not([type="checkbox"]),
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
  appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-faint); }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--accent); }
.form-group textarea { min-height: 120px; resize: vertical; line-height: 1.6; }

.form-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #1c1814;
  border: none;
  border-radius: var(--radius-sm);
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:active { transform: scale(0.98); }

.form-success {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  margin-top: 24px;
}
.form-success.show { display: block; }
.form-success h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.form-success p { font-size: 14px; color: var(--text-muted); }

/* ── FORM EXTRAS ─────────────────────────────────── */
.required-mark { color: var(--protein); }
.optional-mark { color: var(--text-muted); font-weight: 400; font-size: 13px; }

.select-wrap { position: relative; }
.select-wrap::after {
  content: '\25BE';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  font-size: 14px;
}

.radio-group { display: flex; flex-direction: column; gap: 14px; }

.radio-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.5;
}
.radio-label input[type="radio"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 3px;
  accent-color: var(--accent);
  cursor: pointer;
}
.radio-label span strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.5;
}
.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 3px;
  accent-color: var(--accent);
  cursor: pointer;
}

.captcha-wrap { margin: 4px 0; }

.form-error {
  color: var(--protein);
  font-size: 14px;
  margin-bottom: 16px;
}

.deletion-info {
  max-width: 600px;
  margin: 48px auto 0;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.deletion-info h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}
.deletion-info ul {
  margin: 0 0 16px 20px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.75;
}
.deletion-info p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 10px;
}
.deletion-info strong { color: var(--text); }

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 640px) {
  .nav-links { display: none; }
  .footer-top { flex-direction: column; }
  .footer-links { flex-direction: column; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .legal-table { font-size: 13px; }
}
