:root {
  color-scheme: light;
  --ink: #17231f;
  --muted: #65706b;
  --green-950: #103c31;
  --green-800: #17624f;
  --green-600: #25876c;
  --green-100: #dff2e9;
  --lime: #c8f169;
  --cream: #f5f3eb;
  --paper: #fffefa;
  --line: #d9ddd7;
  --shadow: 0 24px 60px rgba(19, 52, 43, 0.12);
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, select { font: inherit; }
button, input, select, summary { -webkit-tap-highlight-color: transparent; }

.hero { max-width: 1240px; margin: 0 auto; padding: 54px 28px 34px; display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: start; }
.hero__mark { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 18px; background: var(--green-950); color: var(--lime); font-size: 38px; font-weight: 800; transform: rotate(-4deg); }
.eyebrow, .step { margin: 0 0 7px; color: var(--green-600); font-size: 0.74rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
h1 { margin: 0; max-width: 760px; font-size: clamp(2.2rem, 5vw, 4.45rem); line-height: 0.96; letter-spacing: -0.055em; }
.intro { max-width: 680px; margin: 16px 0 0; color: var(--muted); font-size: 1.08rem; line-height: 1.6; }
.privacy-pill { display: flex; align-items: center; gap: 9px; margin-top: 8px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.65); color: #3d4d46; font-size: 0.82rem; font-weight: 700; white-space: nowrap; }
.privacy-pill span { width: 8px; height: 8px; border-radius: 50%; background: #38a875; box-shadow: 0 0 0 4px #d6f0e4; }

main { max-width: 1240px; margin: 0 auto; padding: 0 28px 50px; }
.planner { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(360px, .8fr); border-radius: 28px; overflow: hidden; background: var(--paper); box-shadow: var(--shadow); }
.controls { padding: 36px; }
.section-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 27px; }
h2 { margin: 0; font-size: 1.55rem; letter-spacing: -0.025em; }
.text-button { border: 0; padding: 5px 0; background: transparent; color: var(--green-800); font-size: .84rem; font-weight: 800; cursor: pointer; }
.text-button:hover { text-decoration: underline; }
.input-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.input-grid--equipment { margin-top: 27px; padding-top: 27px; border-top: 1px solid var(--line); }
.field { display: grid; gap: 8px; color: #38433e; font-size: .83rem; font-weight: 750; }
.number-input, .price-input { display: flex; min-height: 50px; align-items: center; border: 1px solid var(--line); border-radius: 13px; background: #fff; overflow: hidden; transition: border-color .18s, box-shadow .18s; }
.number-input:focus-within, .price-input:focus-within, select:focus { border-color: var(--green-600); box-shadow: 0 0 0 4px rgba(37,135,108,.12); outline: none; }
.number-input input, .price-input input { min-width: 0; width: 100%; border: 0; padding: 13px 5px 13px 14px; outline: 0; font-weight: 760; color: var(--ink); background: transparent; }
.number-input b { padding-right: 14px; color: #7a837f; font-size: .78rem; font-weight: 650; white-space: nowrap; }
.price-input i { padding-left: 14px; color: var(--green-800); font-style: normal; font-weight: 850; }
.price-input input { padding-left: 4px; }
.price-input select { width: auto; min-height: 48px; border: 0; border-left: 1px solid var(--line); border-radius: 0; padding: 0 28px 0 10px; background-color: #f7f8f4; font-size: .76rem; font-weight: 700; }
select { min-height: 50px; width: 100%; border: 1px solid var(--line); border-radius: 13px; padding: 0 40px 0 14px; background: #fff; color: var(--ink); font-weight: 690; }
fieldset { border: 0; margin: 27px 0 0; padding: 0; }
legend { padding: 0; color: #38433e; font-size: .83rem; font-weight: 750; }
.hint { margin: 6px 0 13px; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.meal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.meal-toggle { cursor: pointer; }
.meal-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.meal-toggle__surface { min-height: 130px; display: flex; flex-direction: column; padding: 15px; border: 1px solid var(--line); border-radius: 15px; background: #fbfcf8; transition: .18s ease; }
.meal-toggle__top { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.meal-toggle__top b { font-size: .9rem; }
.meal-toggle__top i { width: 31px; height: 18px; border-radius: 999px; background: #cbd1cd; padding: 3px; transition: .18s ease; }
.meal-toggle__top i::after { content: ""; display: block; width: 12px; height: 12px; border-radius: 50%; background: white; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .18s ease; }
.meal-toggle small { margin-top: 9px; color: var(--muted); font-size: .72rem; line-height: 1.35; }
.meal-toggle em { margin-top: auto; padding-top: 12px; color: var(--green-800); font-size: .68rem; font-style: normal; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.meal-toggle input:checked + .meal-toggle__surface { border-color: #7bb6a3; background: var(--green-100); box-shadow: inset 0 0 0 1px #8ec5b3; }
.meal-toggle input:checked + .meal-toggle__surface i { background: var(--green-600); }
.meal-toggle input:checked + .meal-toggle__surface i::after { transform: translateX(13px); }
.meal-toggle input:focus-visible + .meal-toggle__surface { outline: 3px solid rgba(37,135,108,.28); outline-offset: 2px; }

.results { min-height: 100%; padding: 36px; color: white; background: radial-gradient(circle at 100% 0%, rgba(200,241,105,.15), transparent 34%), var(--green-950); }
.step--light { color: var(--lime); }
.results h2 { color: #f7fbf8; }
.primary-result { margin: 34px 0 24px; padding-bottom: 25px; border-bottom: 1px solid rgba(255,255,255,.16); }
.primary-result > span, .result-cards article div > span { display: block; color: #b9d1c9; font-size: .78rem; font-weight: 700; }
.primary-result strong { display: block; margin: 5px 0 2px; color: var(--lime); font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1; letter-spacing: -.055em; }
.primary-result small, .result-cards small { color: #abc0b9; font-size: .72rem; }
.result-cards { display: grid; gap: 10px; }
.result-cards article { display: grid; grid-template-columns: 42px 1fr; gap: 12px; align-items: center; padding: 13px; border: 1px solid rgba(255,255,255,.13); border-radius: 14px; background: rgba(255,255,255,.06); }
.result-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; color: var(--lime); background: rgba(200,241,105,.11); font-weight: 850; }
.result-cards strong { display: block; margin: 2px 0; color: white; font-size: 1.35rem; letter-spacing: -.025em; }
.warning { display: grid; gap: 4px; margin-top: 14px; padding: 13px 14px; border-radius: 12px; background: #fff1bd; color: #4f3c05; font-size: .76rem; line-height: 1.4; }
.meal-summary { margin-top: 20px; }
.meal-summary > span { color: #9eb8af; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.meal-summary div { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; }
.meal-summary div span { padding: 6px 9px; border-radius: 999px; background: rgba(255,255,255,.1); color: #eaf4f0; font-size: .7rem; font-weight: 700; }
.empty-state { min-height: 360px; place-content: center; text-align: center; color: #c6d7d1; }
.empty-state:not([hidden]) { display: grid; }
.empty-state > span { font-size: 3rem; color: var(--lime); }
.empty-state h3 { margin: 12px 0 4px; color: white; }
.empty-state p { margin: 0; font-size: .85rem; }

.assumptions { margin-top: 25px; padding: 34px 36px; border: 1px solid #dedfd8; border-radius: 24px; background: rgba(255,255,255,.46); }
.assumptions > div:first-child { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; align-items: end; }
.assumptions > div:first-child .step { grid-column: 1 / -1; }
.assumptions > div:first-child > p:last-child { margin: 0; color: var(--muted); line-height: 1.55; font-size: .86rem; }
details { margin-top: 25px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
summary { display: flex; justify-content: space-between; padding: 17px 0; cursor: pointer; list-style: none; font-size: .86rem; font-weight: 800; }
summary::-webkit-details-marker { display: none; }
.assumption-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 3px 0 21px; }
.assumption-grid article { border-left: 3px solid #b6d8cc; padding-left: 13px; }
.assumption-grid b { font-size: .78rem; }
.assumption-grid p { margin: 5px 0 0; color: var(--muted); font-size: .74rem; line-height: 1.5; }
.safety-note { margin: 18px 0 0; color: #59645f; font-size: .74rem; line-height: 1.55; }
footer { max-width: 1240px; margin: 0 auto; padding: 0 28px 35px; display: flex; justify-content: space-between; gap: 20px; color: #7b827f; font-size: .7rem; }

@media (max-width: 900px) {
  .hero { grid-template-columns: auto 1fr; }
  .privacy-pill { grid-column: 2; justify-self: start; }
  .planner { grid-template-columns: 1fr; }
  .results { min-height: auto; }
  .assumption-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .hero { padding: 34px 18px 24px; gap: 13px; }
  .hero__mark { width: 44px; height: 44px; border-radius: 13px; font-size: 28px; }
  .privacy-pill { grid-column: 1 / -1; }
  main { padding: 0 12px 34px; }
  .planner { border-radius: 20px; }
  .controls, .results { padding: 25px 20px; }
  .input-grid, .meal-grid, .assumptions > div:first-child { grid-template-columns: 1fr; }
  .meal-toggle__surface { min-height: 106px; }
  .assumptions { padding: 25px 20px; border-radius: 20px; }
  .assumptions > div:first-child .step { grid-column: 1; }
  .assumptions > div:first-child > p:last-child { margin-top: 10px; }
  .assumption-grid { grid-template-columns: 1fr; gap: 16px; }
  footer { padding: 0 18px 25px; flex-direction: column; gap: 5px; }
}
