:root {
  --bg: #fbfaf6;
  --surface: #ffffff;
  --ink: #16241c;
  --muted: #5b6a61;
  --line: #e4e8e2;
  --brand: #1f8a5b;
  --brand-dark: #146b45;
  --brand-soft: #e3f4ea;
  --accent: #ff8a3d;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(22, 36, 28, 0.08);
  --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(251, 250, 246, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.3rem; color: var(--ink); text-decoration: none; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), #53c28b);
  display: grid; place-items: center; color: #fff;
}
.logo span b { color: var(--brand); }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.nav-links a:hover { color: var(--brand); }
@media (max-width: 720px) { .nav-links .hide-sm { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; border: 0; cursor: pointer;
  font: inherit; font-weight: 700; text-decoration: none;
  background: var(--brand); color: #fff;
  transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
  box-shadow: 0 8px 20px rgba(31, 138, 91, 0.25);
}
.btn:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn:disabled { opacity: 0.6; cursor: wait; transform: none; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: none; border: 1.5px solid var(--line); }
.btn-ghost:hover { background: var(--surface); border-color: var(--brand); color: var(--brand); }
.btn-sm { padding: 10px 18px; font-size: 0.92rem; }
.btn-block { width: 100%; }

/* Hero */
.hero { padding: 72px 0 56px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand-soft); color: var(--brand-dark);
  padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: 0.85rem; margin-bottom: 18px;
}
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 18px; }
.trust { display: flex; gap: 20px; flex-wrap: wrap; font-size: 0.9rem; color: var(--muted); }
.trust span::before { content: '✓ '; color: var(--brand); font-weight: 800; }

.mock {
  background: var(--surface); border-radius: 24px; box-shadow: var(--shadow);
  border: 1px solid var(--line); padding: 24px; position: relative;
}
.mock-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.mock-head b { font-size: 1.05rem; }
.tag { font-size: 0.75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); }
.macro-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 16px; }
.macro { background: var(--bg); border-radius: 12px; padding: 10px; text-align: center; }
.macro b { display: block; font-size: 1.1rem; }
.macro small { color: var(--muted); font-size: 0.72rem; }
.meal { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px dashed var(--line); }
.meal-emoji { width: 40px; height: 40px; border-radius: 12px; background: #fff4eb; display: grid; place-items: center; font-size: 1.3rem; flex-shrink: 0; }
.meal div { flex: 1; font-size: 0.92rem; }
.meal small { color: var(--muted); display: block; }
.meal .kcal { font-weight: 700; font-size: 0.85rem; color: var(--brand-dark); }
.float-badge {
  position: absolute; bottom: -18px; left: -18px; background: var(--ink); color: #fff;
  padding: 12px 16px; border-radius: 14px; font-size: 0.85rem; font-weight: 600; box-shadow: var(--shadow);
}
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .float-badge { left: 12px; }
}

/* Sections */
section { padding: 72px 0; }
.section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.eyebrow { color: var(--brand); font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.8rem; margin-bottom: 10px; display: block; }
.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.alt .step { background: var(--bg); }
.step-num {
  width: 44px; height: 44px; border-radius: 12px; background: var(--brand); color: #fff;
  display: grid; place-items: center; font-weight: 800; margin-bottom: 16px;
}
.step p { color: var(--muted); margin: 0; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.feature .ico { font-size: 1.6rem; margin-bottom: 10px; }
.feature p { color: var(--muted); margin: 0; font-size: 0.95rem; }
@media (max-width: 880px) { .steps, .features { grid-template-columns: 1fr; } }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.price-card {
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 22px; padding: 30px;
  display: flex; flex-direction: column; position: relative;
}
.price-card.featured { border-color: var(--brand); box-shadow: 0 20px 40px rgba(31, 138, 91, 0.15); transform: translateY(-8px); }
.ribbon {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: 0.78rem; font-weight: 800;
  padding: 5px 14px; border-radius: 999px; white-space: nowrap;
}
.price-card h3 { font-size: 1.3rem; margin-bottom: 4px; }
.price-card .desc { color: var(--muted); font-size: 0.93rem; min-height: 3em; }
.price { font-size: 2.8rem; font-weight: 800; letter-spacing: -0.03em; margin: 10px 0 2px; }
.price small { font-size: 1rem; color: var(--muted); font-weight: 600; }
.once { color: var(--muted); font-size: 0.85rem; margin-bottom: 20px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 26px; flex: 1; }
.price-card li { padding: 7px 0 7px 28px; position: relative; font-size: 0.95rem; }
.price-card li::before {
  content: '✓'; position: absolute; left: 0; top: 7px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand-dark); font-size: 0.72rem; font-weight: 800;
  display: grid; place-items: center;
}
.price-card li.off { color: #a3aea7; }
.price-card li.off::before { content: '–'; background: #f1f3f0; color: #a3aea7; }
@media (max-width: 880px) {
  .pricing { grid-template-columns: 1fr; }
  .price-card.featured { transform: none; }
}

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; margin-bottom: 12px; }
.faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: '+'; color: var(--brand); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--muted); margin: 12px 0 0; }

.cta-band {
  background: linear-gradient(135deg, #16241c, #1f4d36); color: #fff; border-radius: 28px;
  padding: 56px 32px; text-align: center;
}
.cta-band p { color: #c8dccf; }

/* Footer */
footer { padding: 40px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.88rem; }
.foot { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot a { color: var(--muted); margin-right: 16px; }
.disclaimer { font-size: 0.8rem; margin-top: 18px; max-width: 800px; }

/* Forms */
.form-wrap { max-width: 760px; margin: 40px auto 80px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 32px; box-shadow: var(--shadow); }
@media (max-width: 600px) { .card { padding: 22px; } }
.progress { display: flex; gap: 8px; margin-bottom: 26px; }
.progress i { flex: 1; height: 6px; border-radius: 6px; background: var(--line); }
.progress i.on { background: var(--brand); }
.fstep { display: none; }
.fstep.active { display: block; animation: fade 0.25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .grid-2 { grid-template-columns: 1fr; } }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 6px; }
.field .hint { font-weight: 500; color: var(--muted); font-size: 0.82rem; }
input, select, textarea {
  width: 100%; font: inherit; padding: 12px 14px; border-radius: 12px;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
textarea { min-height: 70px; resize: vertical; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: block; padding: 14px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer;
  font-weight: 600; font-size: 0.92rem; background: #fff; transition: all 0.15s;
}
.choice span small { display: block; color: var(--muted); font-weight: 500; font-size: 0.8rem; }
.choice input:checked + span { border-color: var(--brand); background: var(--brand-soft); }
.choice input:focus-visible + span { box-shadow: 0 0 0 4px var(--brand-soft); }
.form-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--muted); }
.check input { width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; accent-color: var(--brand); }
.error { background: #fff0ec; color: #b3361b; border-radius: 12px; padding: 12px 14px; font-size: 0.92rem; margin-top: 14px; display: none; }
.error.show { display: block; }
.summary { background: var(--bg); border-radius: 14px; padding: 16px 18px; margin: 16px 0; font-size: 0.93rem; }
.summary div { display: flex; justify-content: space-between; padding: 3px 0; }
.summary .total { font-weight: 800; font-size: 1.05rem; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 10px; }

/* Plan page */
.plan-hero { padding: 48px 0 24px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 24px 0; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.stat b { display: block; font-size: 1.5rem; letter-spacing: -0.02em; }
.stat small { color: var(--muted); font-size: 0.8rem; font-weight: 600; }
.plan-section { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 30px; margin-bottom: 20px; }
.plan-section > h2 { font-size: 1.5rem; display: flex; align-items: center; gap: 10px; }
.md h3 { margin-top: 1.4em; padding-top: 1em; border-top: 1px solid var(--line); font-size: 1.1rem; }
.md h3:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.md ul, .md ol { padding-left: 1.3em; }
.md li { margin-bottom: 6px; }
.md table { border-collapse: collapse; width: 100%; font-size: 0.9rem; }
.md th, .md td { border: 1px solid var(--line); padding: 6px 10px; text-align: left; }
.loading { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--brand-soft); border-top-color: var(--brand); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; }

/* Legal */
.legal { max-width: 800px; margin: 40px auto 80px; }
.legal h2 { font-size: 1.5rem; margin-top: 2em; }

@media print {
  .site-header, footer, .toolbar, .no-print { display: none !important; }
  body { background: #fff; }
  .plan-section { border: 0; padding: 0; page-break-inside: auto; }
  .plan-section > h2 { page-break-before: always; }
}
