:root {
  --paper: #f7f4ed;
  --card: #fffdf8;
  --ink: #172033;
  --green: #3f9860;
  --green-soft: #e3f0e5;
  --orange: #e79a43;
  --red: #c95757;
  --line: #d9d6cc;
  --shadow: 0 18px 60px rgba(23, 32, 51, .08);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 0%, rgba(86,184,112,.12), transparent 26rem),
    var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
button, input { font: inherit; }
.shell { width: min(100%, 720px); margin: 0 auto; padding: 24px 16px 52px; }
.hero { padding: 20px 6px 26px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.leaf { color: var(--green); }
.eyebrow {
  margin-top: 26px; color: var(--green); font-size: 13px; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase;
}
h1 { margin: 10px 0 14px; font-size: clamp(38px, 9vw, 64px); line-height: 1.08; letter-spacing: -.04em; }
h1 em { color: var(--green); font-style: normal; }
.hero > p { max-width: 560px; margin: 0; color: #4e5666; line-height: 1.75; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.meta span { padding: 7px 11px; border: 1px solid #b8cabd; border-radius: 99px; color: #376d4a; font-size: 13px; }
.card { background: rgba(255,253,248,.95); border: 1px solid rgba(23,32,51,.08); border-radius: 22px; box-shadow: var(--shadow); padding: 22px; }
.progress { height: 5px; overflow: hidden; background: #e7e5de; border-radius: 99px; }
.progress i { display: block; width: 33.333%; height: 100%; background: var(--green); border-radius: inherit; transition: width .25s ease; }
.step-label { margin: 13px 0 25px; color: #6b7280; font-size: 13px; }
.step { display: none; }
.step.active { display: block; }
fieldset { min-width: 0; margin: 0 0 28px; padding: 0; border: 0; }
legend { width: 100%; margin-bottom: 11px; font-size: 18px; font-weight: 800; line-height: 1.45; }
.hint { margin: -4px 0 11px; color: #737a86; font-size: 13px; }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choices.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choices.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choices label { cursor: pointer; }
.choices input { position: absolute; opacity: 0; pointer-events: none; }
.choices span {
  display: flex; min-height: 52px; align-items: center; justify-content: center;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; text-align: center; line-height: 1.35; transition: .15s ease;
}
.choices b { margin-right: 2px; color: var(--green); font-size: 21px; }
.choices input:checked + span { border-color: var(--green); background: var(--green-soft); color: #245e39; box-shadow: inset 0 0 0 1px var(--green); }
.choices input:focus-visible + span { outline: 3px solid rgba(63,152,96,.22); }
.contact-wrap { margin-top: 12px; }
.contact-wrap label { display: block; margin-bottom: 7px; color: #515866; font-size: 14px; }
.contact-wrap input {
  width: 100%; min-height: 48px; padding: 10px 13px; border: 1px solid var(--line);
  border-radius: 10px; background: white; color: var(--ink);
}
.notice { margin: 4px 0 16px; padding: 16px; border-left: 4px solid var(--orange); border-radius: 10px; background: #fff6e9; }
.notice p { margin: 7px 0 0; color: #5f5648; font-size: 13px; line-height: 1.7; }
.consent { display: flex; gap: 10px; align-items: flex-start; color: #525966; font-size: 13px; line-height: 1.6; }
.consent input { margin-top: 4px; accent-color: var(--green); }
a { color: var(--green); }
.honeypot { position: absolute !important; left: -9999px !important; }
.error { min-height: 22px; margin: 16px 0 0; color: var(--red); font-size: 14px; }
.actions { display: flex; gap: 10px; }
button {
  flex: 1; min-height: 50px; border: 0; border-radius: 12px; color: white;
  background: var(--green); font-weight: 800; cursor: pointer;
}
button:disabled { opacity: .6; cursor: wait; }
button.ghost { border: 1px solid var(--line); color: var(--ink); background: white; }
.full { width: 100%; margin-top: 20px; }
.result { padding-top: 28px; }
.result-kicker { color: var(--green); font-size: 13px; font-weight: 800; letter-spacing: .12em; }
.plan-code { float: right; margin-top: -24px; color: var(--green); font-size: 42px; font-weight: 900; }
.result h2 { margin: 9px 0 14px; font-size: 30px; }
.goal-note { padding: 12px 14px; border-radius: 10px; background: var(--green-soft); color: #2c6740; line-height: 1.6; }
.week-plan { margin: 22px 0; }
.day {
  display: grid; grid-template-columns: 56px 88px 1fr; gap: 10px;
  padding: 14px 0; border-bottom: 1px solid #ebe8df;
}
.day:last-child { border-bottom: 0; }
.day-name { color: #6d7480; font-size: 13px; }
.day-type { color: var(--green); font-weight: 800; }
.day-detail { color: #414958; font-size: 14px; line-height: 1.6; }
.substitutions, .scale-rule, .safety { margin-top: 16px; padding: 16px; border-radius: 12px; background: #f5f3ed; }
.substitutions h3 { margin: 0 0 8px; font-size: 16px; }
.substitutions ul { margin: 0; padding-left: 20px; color: #4f5664; line-height: 1.75; }
.scale-rule { border-left: 4px solid var(--green); }
.safety { border-left: 4px solid var(--red); background: #fff2f1; }
.scale-rule p, .safety p { margin: 7px 0 0; color: #555c68; font-size: 13px; line-height: 1.7; }
footer { padding: 28px 6px 0; color: #747b86; font-size: 12px; text-align: center; }
footer p { margin: 0 0 8px; }
@media (max-width: 520px) {
  .shell { padding-inline: 12px; }
  .card { padding: 18px 15px; border-radius: 18px; }
  .choices { grid-template-columns: 1fr; }
  .choices.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .choices.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .choices span { min-height: 48px; font-size: 14px; }
  .day { grid-template-columns: 48px 74px 1fr; gap: 7px; }
  .day-detail { font-size: 13px; }
}
