:root {
  --cream: #FAF6EE;
  --cream-2: #F3ECDD;
  --surface: #FFFFFF;
  --sage: #7C9A6E;
  --sage-deep: #4E6B4A;
  --forest: #2C3D2E;
  --terra: #C97B53;
  --terra-soft: #E4A680;
  --ink: #2B2A26;
  --muted: #6E6A60;
  --line: #E6DFD0;
  --shadow-sm: 0 2px 10px rgba(44,61,46,.06);
  --shadow: 0 14px 40px rgba(44,61,46,.10);
  --radius: 22px;
  --radius-sm: 14px;
  --serif: "Noto Serif SC", "Fraunces", Georgia, serif;
  --display: "Fraunces", "Noto Serif SC", serif;
  --sans: "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.25; color: var(--forest); }
.wrap { width: min(1180px, 92vw); margin-inline: auto; }
.eyebrow {
  font-family: var(--sans); font-weight: 500; font-size: .8rem;
  letter-spacing: .22em; text-transform: uppercase; color: var(--sage-deep);
}
section { padding: clamp(64px, 9vw, 120px) 0; }

/* ---------- NAV ---------- */
header.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,246,238,.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 700; font-size: 1.25rem; color: var(--forest); }
.brand .leaf { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 34px; align-items: center; }
.nav-links a { color: var(--muted); font-size: .95rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--forest); font-weight: 600; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-weight: 500; font-size: .95rem;
  padding: 12px 24px; border-radius: 999px; cursor: pointer; border: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s; white-space: nowrap;
}
.btn-primary { background: var(--sage-deep); color: #fff; box-shadow: 0 8px 22px rgba(78,107,74,.28); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(78,107,74,.34); }
.btn-ghost { background: transparent; color: var(--forest); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--sage); background: #fff; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--forest); margin: 5px 0; transition: .3s; }

/* ---------- SUB HERO (inner pages) ---------- */
.subhero { padding: clamp(56px, 8vw, 100px) 0 8px; }
.subhero .eyebrow { color: var(--sage-deep); }
.subhero h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); margin-top: 12px; letter-spacing: -.01em; }
.subhero p { color: var(--muted); margin-top: 16px; font-size: 1.08rem; max-width: 36em; }
.banner-link {
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
  background: var(--cream-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 18px 22px; margin-top: 28px;
}
.banner-link p { margin: 0; color: var(--ink); font-size: .96rem; flex: 1; min-width: 220px; }
.banner-link .btn { flex-shrink: 0; }

/* ---------- HERO ---------- */
.hero { position: relative; padding-top: clamp(48px, 7vw, 90px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); letter-spacing: -.01em; }
.hero p.lead { margin: 22px 0 32px; font-size: 1.12rem; color: var(--muted); max-width: 30em; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-visual { position: relative; }
.hero-visual .photo {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  aspect-ratio: 4/5; background: linear-gradient(135deg, var(--sage), var(--terra-soft));
}
.hero-visual .photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-blob {
  position: absolute; inset: -8% -10% -12% -14%; z-index: -1;
  background: radial-gradient(closest-side, rgba(124,154,110,.35), transparent 70%);
  filter: blur(8px);
}
.hero-card {
  position: absolute; left: -26px; bottom: 26px; background: var(--surface);
  border-radius: 18px; padding: 16px 20px; box-shadow: var(--shadow); display: flex; gap: 12px; align-items: center;
}
.hero-card .ring { width: 46px; height: 46px; border-radius: 50%; background: conic-gradient(var(--sage) 72%, var(--cream-2) 0); display: grid; place-items: center; }
.hero-card .ring b { font-family: var(--display); color: var(--forest); font-size: .85rem; }
.hero-card small { display: block; color: var(--muted); font-size: .78rem; }

/* ---------- SECTION HEAD ---------- */
.sec-head { max-width: 640px; margin-bottom: 56px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-top: 14px; }
.sec-head p { color: var(--muted); margin-top: 16px; font-size: 1.05rem; }

/* ---------- FEATURES ---------- */
.features { background: var(--cream-2); }
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feat {
  background: var(--surface); border-radius: var(--radius-sm); padding: 30px 26px;
  box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s;
}
.feat:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feat .ic { width: 50px; height: 50px; border-radius: 14px; background: var(--cream-2); display: grid; place-items: center; margin-bottom: 18px; color: var(--sage-deep); }
.feat h3 { font-size: 1.18rem; margin-bottom: 8px; }
.feat p { color: var(--muted); font-size: .94rem; }

/* ---------- PROGRAMS ---------- */
.prog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.prog {
  border-radius: var(--radius); overflow: hidden; background: var(--surface);
  box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column;
}
.prog:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.prog .thumb { aspect-ratio: 16/11; background: linear-gradient(135deg, var(--sage), var(--terra-soft)); }
.prog .thumb img { width: 100%; height: 100%; object-fit: cover; }
.prog .body { padding: 24px 24px 28px; }
.tag { display: inline-block; font-size: .74rem; font-weight: 500; letter-spacing: .08em; color: var(--sage-deep); background: var(--cream-2); padding: 4px 12px; border-radius: 999px; }
.prog h3 { font-size: 1.3rem; margin: 14px 0 8px; }
.prog p { color: var(--muted); font-size: .92rem; }
.prog .meta { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: var(--muted); font-size: .85rem; }

/* ---------- MEAL ---------- */
.meal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.meal-visual { position: relative; }
.meal-visual .photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1/1; background: linear-gradient(135deg, var(--terra-soft), var(--sage)); box-shadow: var(--shadow); }
.meal-visual .photo img { width: 100%; height: 100%; object-fit: cover; }
.day-card {
  position: absolute; right: -22px; bottom: -22px; width: 230px; background: var(--surface);
  border-radius: 18px; padding: 20px; box-shadow: var(--shadow);
}
.day-card h4 { font-family: var(--serif); font-size: 1rem; color: var(--forest); margin-bottom: 12px; }
.day-row { display: flex; justify-content: space-between; font-size: .85rem; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.day-row:last-child { border: none; }
.day-row span:first-child { color: var(--muted); }
.day-row b { color: var(--forest); }
.bars { margin-top: 26px; display: grid; gap: 14px; }
.bar-row { display: grid; grid-template-columns: 70px 1fr 48px; align-items: center; gap: 12px; font-size: .9rem; }
.bar-track { height: 10px; background: var(--cream-2); border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; }
.bar-fill.p { background: var(--sage); }
.bar-fill.c { background: var(--terra); }
.bar-fill.f { background: var(--terra-soft); }

/* ---------- STEPS ---------- */
.steps { background: var(--forest); color: #EDEAE0; }
.steps .eyebrow { color: var(--terra-soft); }
.steps .sec-head h2 { color: #F4F1E8; }
.steps .sec-head p { color: #B9C2B2; }
.step-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { position: relative; padding-top: 18px; }
.step .n { font-family: var(--display); font-size: 2.6rem; color: var(--terra-soft); opacity: .9; }
.step h3 { color: #F4F1E8; font-size: 1.15rem; margin: 10px 0 8px; }
.step p { color: #B9C2B2; font-size: .9rem; }

/* ---------- QUOTE BAND ---------- */
.quote-band { text-align: center; }
.quote-band blockquote { font-family: var(--serif); font-size: clamp(1.5rem, 3.4vw, 2.4rem); color: var(--forest); max-width: 18em; margin: 0 auto; line-height: 1.5; }
.quote-band .by { margin-top: 26px; color: var(--muted); font-size: .95rem; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.faq-list { display: grid; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: none; padding: 20px 24px; font-family: var(--serif); font-size: 1.05rem; font-weight: 600; color: var(--forest); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-q .plus { font-size: 1.4rem; color: var(--sage-deep); transition: transform .3s; flex-shrink: 0; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a p { padding: 0 24px 22px; color: var(--muted); font-size: .94rem; }
.about-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 26px 28px; margin-top: 24px; }
.about-card h4 { font-family: var(--serif); color: var(--forest); font-size: 1.1rem; margin-bottom: 10px; }
.about-card p { color: var(--muted); font-size: .94rem; }
.about-card a { color: var(--sage-deep); font-weight: 500; }

/* ---------- CTA ---------- */
.cta-box { background: linear-gradient(135deg, var(--sage-deep), var(--forest)); border-radius: 30px; padding: clamp(40px, 6vw, 72px); text-align: center; color: #F4F1E8; position: relative; overflow: hidden; }
.cta-box::after { content: ""; position: absolute; width: 360px; height: 360px; right: -120px; top: -120px; background: radial-gradient(closest-side, rgba(201,123,83,.4), transparent 70%); }
.cta-box h2 { color: #F7F4EB; font-size: clamp(1.8rem, 3.6vw, 2.6rem); position: relative; }
.cta-box p { color: #C9D2C2; margin: 16px auto 30px; max-width: 30em; position: relative; }
.sub-form { display: flex; gap: 10px; max-width: 460px; margin: 0 auto; position: relative; flex-wrap: wrap; justify-content: center; }
.sub-form input { flex: 1; min-width: 220px; padding: 14px 20px; border-radius: 999px; border: none; font-family: var(--sans); font-size: .95rem; }
.sub-form .btn { background: var(--terra); color: #fff; box-shadow: 0 8px 22px rgba(201,123,83,.36); }
.sub-form .btn:hover { transform: translateY(-2px); }
.sub-note { margin-top: 14px; font-size: .82rem; color: #AEBBA6; position: relative; }

/* ---------- FOOTER ---------- */
footer { background: var(--forest); color: #C9D2C2; padding: 64px 0 36px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
footer .brand { color: #F4F1E8; }
footer p { color: #9FA99A; font-size: .9rem; margin-top: 14px; max-width: 26em; }
footer h5 { color: #F4F1E8; font-family: var(--sans); font-size: .9rem; letter-spacing: .06em; margin-bottom: 16px; }
footer ul { list-style: none; display: grid; gap: 10px; }
footer ul a { color: #9FA99A; font-size: .9rem; transition: color .2s; }
footer ul a:hover { color: #F4F1E8; }
.foot-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: #8A9485; font-size: .82rem; }

/* ---------- QUIZ ---------- */
.quiz-wrap { max-width: 780px; margin: 0 auto; }
.quiz-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 30px; }
.field > .q-label { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.08rem; color: var(--forest); margin-bottom: 4px; }
.field .hint { color: var(--muted); font-size: .85rem; margin-bottom: 14px; }
.chip-group { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; display: inline-block; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--muted); font-size: .92rem; transition: .2s; cursor: pointer; }
.chip input:checked + span { background: var(--sage-deep); color: #fff; border-color: var(--sage-deep); }
.chip input:focus-visible + span { outline: 2px solid var(--sage); outline-offset: 2px; }
.num-row { display: flex; gap: 16px; flex-wrap: wrap; }
.num-field { flex: 1; min-width: 130px; }
.num-field label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.num-field input { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; font-family: var(--sans); font-size: 1rem; background: #fff; color: var(--ink); }
.num-field input:focus { outline: none; border-color: var(--sage); }
.quiz-actions .btn { width: 100%; padding: 15px; font-size: 1rem; }
.privacy { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; color: var(--muted); font-size: .85rem; background: var(--cream-2); padding: 14px 16px; border-radius: 12px; line-height: 1.5; }
.privacy svg { flex-shrink: 0; margin-top: 2px; }

/* result */
.result { margin-top: 44px; }
.result-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); }
.result-card h3 { font-size: 1.5rem; margin-bottom: 4px; }
.result-card .sub { color: var(--muted); font-size: .95rem; margin-bottom: 8px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 22px 0 30px; }
.stat { background: var(--cream-2); border-radius: 14px; padding: 16px 10px; text-align: center; }
.stat .v { font-family: var(--display); font-size: 1.5rem; color: var(--forest); }
.stat .k { font-size: .76rem; color: var(--muted); margin-top: 4px; }
.plan-block { margin: 22px 0; }
.plan-block h4 { font-family: var(--serif); color: var(--forest); font-size: 1.1rem; margin-bottom: 10px; }
.plan-table { width: 100%; border-collapse: collapse; }
.plan-table th, .plan-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: .92rem; }
.plan-table th { color: var(--muted); font-weight: 500; font-size: .82rem; }
.plan-table tr:last-child td { border-bottom: none; }
.day-rest { color: var(--muted); }
.session-box { background: var(--cream-2); border-radius: 14px; padding: 16px 20px; }
.session-box .row { display: flex; justify-content: space-between; padding: 7px 0; font-size: .92rem; border-bottom: 1px dashed var(--line); }
.session-box .row:last-child { border: none; }
.session-box .row b { color: var(--forest); }
.diet-note { background: var(--cream-2); border-radius: 14px; padding: 16px 20px; font-size: .94rem; color: var(--ink); }
.diet-note b { color: var(--forest); }
.result-actions { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; }
.saved-tag { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--sage-deep); background: var(--cream-2); padding: 6px 12px; border-radius: 999px; margin-top: 14px; }

/* ---------- REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } html { scroll-behavior: auto; } }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px) {
  .hero-grid, .meal-grid, .faq-grid { grid-template-columns: 1fr; gap: 40px; }
  .feat-grid, .step-grid { grid-template-columns: repeat(2, 1fr); }
  .prog-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; }
  .meal-visual { max-width: 460px; }
}
@media (max-width: 640px) {
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0; background: var(--cream);
    flex-direction: column; gap: 0; padding: 8px 0; border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .3s ease; align-items: stretch;
  }
  .nav-links.open { max-height: 400px; }
  .nav-links a { padding: 14px 6vw; }
  .nav-links .btn { margin: 10px 6vw; }
  .nav-links .desktop-cta { display: none; }
  .nav-toggle { display: block; }
  .feat-grid, .step-grid { grid-template-columns: 1fr; }
  .day-card { right: 0; bottom: -16px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
