:root {
  font-family: 'Microsoft JhengHei', 'Noto Sans TC', 'Segoe UI', sans-serif;
  color: #24352e;
  background: #f7f5ef;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #24352e;
  --ink-soft: #52615a;
  --muted: #819087;
  --line: #e5e4da;
  --paper: #fffefa;
  --cream: #f7f5ef;
  --green: #336c4e;
  --green-dark: #27573e;
  --green-pale: #e9f2e9;
  --orange: #e7794f;
  --orange-pale: #fff0e8;
  --yellow: #f3c85b;
  --shadow: 0 18px 55px rgba(50, 65, 55, 0.075);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--cream); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .7; }
a { color: inherit; text-decoration: none; }
.topbar { min-height: 68px; padding: 0 max(26px, calc((100vw - 1160px) / 2)); display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(52, 68, 57, .08); background: rgba(255, 254, 250, .76); }
.brand { display: flex; align-items: center; gap: 11px; font-size: 15px; font-weight: 800; letter-spacing: -.35px; }
.brand-mark { width: 31px; height: 31px; border-radius: 11px 11px 11px 4px; display: grid; place-items: center; color: #fffdf5; background: var(--green); font-size: 17px; font-weight: 700; transform: rotate(-4deg); }
.brand-sub { margin-left: 5px; color: var(--ink-soft); font-weight: 500; }
.brand-mark.small { width: 23px; height: 23px; border-radius: 8px 8px 8px 3px; font-size: 13px; }
.topbar-note { display: flex; align-items: center; gap: 8px; color: #68766c; font-size: 12px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #7ab283; box-shadow: 0 0 0 4px rgba(122, 178, 131, .13); }
.page-shell { width: min(1160px, calc(100% - 52px)); margin: 0 auto; }
.hero { display: flex; align-items: center; justify-content: space-between; min-height: 240px; padding: 38px 26px 30px 8px; overflow: hidden; }
.hero-copy { max-width: 740px; position: relative; z-index: 1; }
.eyebrow { margin: 0 0 13px; color: #7b867e; font-size: 11px; line-height: 1.6; letter-spacing: .15em; font-weight: 700; text-transform: uppercase; }
.eyebrow-line { display: inline-block; vertical-align: middle; width: 19px; height: 1px; margin: 0 7px 3px 0; background: var(--orange); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 12px; font-size: clamp(34px, 4.1vw, 49px); line-height: 1.23; letter-spacing: -.065em; font-weight: 700; }
h1 em { color: var(--green); font-style: normal; }
.hero-description { max-width: 620px; margin-bottom: 16px; color: #64736a; font-size: 14px; line-height: 1.9; }
.hero-pills { display: flex; flex-wrap: wrap; gap: 7px; }
.hero-pills span { padding: 6px 10px; border-radius: 999px; color: #52645a; background: rgba(255, 254, 250, .8); border: 1px solid #e8e8dd; font-size: 10px; font-weight: 600; }
.hero-pills span:first-child { color: var(--green-dark); background: #eaf2e9; border-color: #dcebdd; }
.hero-doodle { position: relative; width: 220px; height: 192px; margin: 0 2px 0 26px; flex: 0 0 220px; }
.doodle-sun { position: absolute; top: 5px; right: 30px; width: 105px; height: 105px; border-radius: 50%; background: #f1cf71; opacity: .9; }
.doodle-plate { position: absolute; right: 4px; bottom: 8px; width: 170px; height: 150px; border: 13px solid #fffefa; border-radius: 50%; background: #edf2e6; box-shadow: 0 8px 25px rgba(80, 89, 57, .12), inset 0 0 0 2px #d8e4d6; transform: rotate(-12deg); }
.doodle-plate::before { content: ''; position: absolute; top: 32px; left: 26px; width: 45px; height: 21px; border-radius: 70% 20% 70% 30%; background: #8daa70; transform: rotate(-22deg); }
.doodle-plate::after { content: ''; position: absolute; top: 57px; right: 27px; width: 43px; height: 43px; border-radius: 50%; background: #e87e50; box-shadow: -46px 16px 0 -6px #f4c95b; }
.doodle-leaf { position: absolute; z-index: 2; font-size: 26px; color: var(--green); }
.leaf-one { left: 22px; top: 36px; transform: rotate(-22deg); }
.leaf-two { right: 2px; top: 43px; color: #e7794f; font-size: 22px; }
.doodle-caption { position: absolute; z-index: 3; left: 0; bottom: 18px; padding: 7px 10px; border-radius: 10px; color: #fff; background: var(--green); font-size: 10px; font-weight: 600; transform: rotate(-5deg); }
.app-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(270px, .69fr); align-items: start; gap: 19px; }
.card { border: 1px solid #ebe9df; border-radius: 17px; background: var(--paper); box-shadow: var(--shadow); }
.form-card { padding: 25px 28px 24px; }
.section-heading { display: flex; gap: 13px; align-items: flex-start; margin-bottom: 20px; }
.section-heading h2 { margin: 0 0 4px; color: var(--ink); font-size: 19px; line-height: 1.5; letter-spacing: -.035em; }
.section-heading p { margin: 0; color: var(--muted); font-size: 11px; }
.heading-number { flex: 0 0 32px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 11px 11px 11px 4px; color: var(--green); background: var(--green-pale); font-size: 10px; font-weight: 800; letter-spacing: .06em; }
.quick-example { display: flex; align-items: center; gap: 7px; margin: 0 0 14px; padding: 10px 11px; border-radius: 10px; color: #627167; background: #f5f7f0; font-size: 10px; line-height: 1.5; }
.example-icon { color: #d69a3b; font-size: 15px; }
.text-button { margin-left: auto; padding: 2px 1px; border: 0; color: var(--green); background: none; white-space: nowrap; font-size: 10px; font-weight: 700; }
.text-button:hover { color: var(--orange); }
.field-label { display: block; margin: 17px 0 7px; color: #37483f; font-size: 11px; font-weight: 700; }
.required { margin-left: 5px; color: var(--orange); font-size: 9px; font-weight: 600; }
.optional { margin-left: 5px; color: #939c93; font-size: 9px; font-weight: 500; }
.text-area, .text-input { width: 100%; border: 1px solid #dfe3da; border-radius: 10px; outline: none; color: var(--ink); background: #fff; font-size: 12px; line-height: 1.75; transition: box-shadow .16s, border-color .16s; }
.text-area { min-height: 83px; resize: vertical; padding: 11px 12px; }
.text-area::placeholder, .text-input::placeholder { color: #aab3ad; }
.text-area:focus, .text-input:focus, input:focus-visible, select:focus-visible { border-color: #84ad8c; box-shadow: 0 0 0 3px rgba(113, 162, 123, .13); outline: none; }
.text-input { height: 42px; padding: 0 11px; }
.field-hint { margin-top: 5px; color: #929d94; font-size: 9px; line-height: 1.6; }
.allergy-note { color: #a06c4a; }
.two-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.number-wrap { height: 42px; display: flex; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid #dfe3da; border-radius: 10px; background: white; color: #78867b; font-size: 11px; }
.number-wrap:focus-within { border-color: #84ad8c; box-shadow: 0 0 0 3px rgba(113, 162, 123, .13); }
.number-wrap input { width: 100%; min-width: 0; padding: 0; border: 0; outline: none; color: var(--ink); background: transparent; font-size: 14px; font-weight: 600; }
.number-wrap input:focus { box-shadow: none; }
.number-wrap.persons { gap: 8px; }
.number-wrap.persons span { order: 2; }
.number-wrap.persons input { order: 1; }
.methods-fieldset { margin: 0; padding: 0; border: 0; }
.methods-fieldset legend { padding: 0; }
.method-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.method-option { min-height: 52px; position: relative; display: grid; grid-template-columns: 24px auto; grid-template-rows: auto auto; align-items: center; column-gap: 7px; padding: 8px 10px; border: 1px solid #dfe3da; border-radius: 10px; color: #495a4f; background: white; cursor: pointer; }
.method-option:has(input:checked) { border-color: #97b99d; background: #f4f8f2; box-shadow: inset 0 0 0 1px rgba(79, 137, 88, .07); }
.method-option input { position: absolute; top: 10px; right: 10px; width: 14px; height: 14px; accent-color: var(--green); }
.method-icon { grid-row: 1 / span 2; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 8px; color: var(--green); background: #e8f1e8; font-size: 13px; }
.method-option > span:nth-of-type(2) { font-size: 10px; font-weight: 700; }
.method-option small { color: #9aa49b; font-size: 8px; }
.price-editor { margin-top: 16px; border-top: 1px solid #eeeee7; border-bottom: 1px solid #eeeee7; }
.price-editor summary { display: flex; align-items: center; gap: 9px; min-height: 53px; list-style: none; cursor: pointer; }
.price-editor summary::-webkit-details-marker { display: none; }
.price-edit-icon { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; color: var(--green); background: #eef3eb; font-size: 13px; }
.price-editor summary b { display: block; color: #526157; font-size: 10px; }
.price-editor summary small { display: block; margin-top: 2px; color: #9aa29b; font-size: 8px; }
.summary-chevron { margin-left: auto; color: #88958a; font-size: 15px; transition: transform .2s; }
.price-editor[open] .summary-chevron { transform: rotate(180deg); }
.estimate-note { margin: 0 0 10px 32px; padding: 8px 9px; border-radius: 8px; color: #8d6b46; background: #fbf5e9; font-size: 9px; line-height: 1.6; }
.price-table { display: grid; grid-template-columns: 1fr 90px 82px; gap: 5px 8px; padding: 0 0 13px 32px; }
.price-table-header { color: #9aa39b; font-size: 8px; }
.price-table-row { display: contents; }
.price-table-name { align-self: center; color: #627167; font-size: 9px; }
.price-table-pack { align-self: center; color: #9ba49c; font-size: 8px; }
.price-table-input { width: 100%; height: 29px; padding: 0 7px; border: 1px solid #e0e5dc; border-radius: 7px; color: var(--ink); text-align: right; background: #fff; font-size: 9px; }
.model-callout { display: grid; grid-template-columns: 29px 1fr auto; gap: 10px; align-items: start; margin-top: 17px; padding: 11px 12px; border: 1px solid #e3ebde; border-radius: 11px; background: #f7faf4; }
.model-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px 9px 9px 3px; color: white; background: var(--green); font-size: 9px; font-weight: 700; letter-spacing: -.04em; }
.model-callout strong { display: block; margin: 2px 0 3px; color: #3c5746; font-size: 9px; }
.model-callout p { margin: 0; color: #86948a; font-size: 8px; line-height: 1.65; }
.local-badge { margin-top: 2px; padding: 4px 7px; border: 1px solid #dce9da; border-radius: 999px; color: #5b835e; background: #f1f8ef; font-size: 8px; font-weight: 700; }
.form-actions { display: flex; align-items: center; gap: 10px; margin-top: 17px; }
.primary-button, .secondary-button { min-height: 44px; display: inline-flex; justify-content: center; align-items: center; gap: 9px; padding: 0 18px; border: 0; border-radius: 10px; color: white; background: var(--green); box-shadow: 0 7px 15px rgba(48, 101, 69, .16); font-size: 11px; font-weight: 700; transition: background .16s, transform .16s, box-shadow .16s; }
.primary-button { width: 100%; }
.primary-button span { color: #f6d783; font-size: 16px; }
.primary-button:hover, .secondary-button:hover { background: var(--green-dark); box-shadow: 0 9px 20px rgba(48, 101, 69, .22); transform: translateY(-1px); }
.cancel-button { min-height: 40px; padding: 0 13px; border: 1px solid #e6c8bd; border-radius: 9px; color: #a34e36; background: #fffaf7; font-size: 10px; font-weight: 700; white-space: nowrap; }
.status-box { display: flex; align-items: center; gap: 11px; margin-top: 14px; padding: 11px 12px; border: 1px solid #dce9da; border-radius: 10px; background: #f6faf4; }
.spinner { width: 21px; height: 21px; flex: 0 0 auto; border: 2px solid #d7e5d5; border-top-color: var(--green); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.status-content { flex: 1; display: grid; gap: 3px; }
.status-content strong { color: #47614d; font-size: 9px; }
.status-content span { color: #85928a; font-size: 8px; line-height: 1.5; }
.progress-track { height: 3px; margin-top: 5px; overflow: hidden; border-radius: 99px; background: #e7eee4; }
.progress-track span { display: block; width: 5%; height: 100%; border-radius: inherit; background: #70a478; transition: width .2s; }
.error-box { margin-top: 13px; padding: 11px 12px; border: 1px solid #f0cdbf; border-radius: 9px; color: #98553f; background: #fff5f0; font-size: 10px; line-height: 1.7; }
.manual-button { margin-top: 8px; padding: 4px 1px; border: 0; color: #94643e; background: transparent; font-size: 9px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.side-column { display: grid; gap: 15px; }
.review-card { padding: 19px 18px; }
.section-heading.compact { margin-bottom: 14px; }
.section-heading.compact h2 { font-size: 15px; }
.section-heading.compact p { font-size: 9px; line-height: 1.6; }
.mode-notice { margin: 0 0 10px; padding: 7px 8px; border-radius: 7px; color: #547359; background: #eff6ed; font-size: 8px; line-height: 1.6; }
.mode-notice.manual { color: #8c6540; background: #fbf3e8; }
.recognized-list { display: grid; gap: 9px; }
.recognized-row { display: grid; grid-template-columns: minmax(0,1fr) 108px 22px; gap: 5px; align-items: center; padding-bottom: 8px; border-bottom: 1px solid #f0efe7; }
.food-select { min-width: 0; width: 100%; height: 34px; padding: 0 6px; border: 1px solid #e1e4dc; border-radius: 7px; color: #4b5c50; background: #fff; font-size: 9px; }
.qty-field { height: 34px; display: flex; align-items: center; gap: 4px; padding: 0 6px; border: 1px solid #e1e4dc; border-radius: 7px; color: #99a49a; font-size: 8px; }
.qty-input { width: 100%; min-width: 0; padding: 0; border: 0; outline: none; color: #47574c; background: transparent; text-align: right; font-size: 9px; font-weight: 600; }
.qty-input:focus { box-shadow: none; }
.remove-row { width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; color: #a0aaa0; background: #f2f3ee; font-size: 14px; line-height: 1; }
.remove-row:hover { color: #a34e36; background: #faece7; }
.recognized-meta { grid-column: 1 / -1; min-height: 10px; color: #98a197; font-size: 8px; }
.recognized-meta.warning { color: #a2693e; }
.add-row-button { margin-top: 10px; padding: 4px 0; border: 0; color: var(--green); background: none; font-size: 9px; font-weight: 700; }
.excluded-summary { margin-top: 10px; color: #708074; font-size: 8px; line-height: 1.6; }
.excluded-summary > strong { display: block; margin-bottom: 6px; color: #617363; font-size: 8px; }
.excluded-review-list { display: grid; gap: 6px; margin-bottom: 6px; }
.excluded-review-row { display: grid; grid-template-columns: minmax(0,1fr) 122px; align-items: center; gap: 8px; }
.excluded-review-row span { overflow-wrap: anywhere; color: #748177; font-size: 8px; }
.excluded-food-select { width: 100%; height: 29px; padding: 0 6px; border: 1px solid #e1e4dc; border-radius: 7px; color: #4b5c50; background: #fff; font-size: 8px; }
.excluded-summary > small { display: block; color: #a06c4a; font-size: 7px; line-height: 1.6; }
.model-run-info { margin-top: 10px; padding: 8px; border-radius: 7px; color: #7b897e; background: #f6f6f0; font-size: 8px; line-height: 1.7; overflow-wrap: anywhere; }
.secondary-button { width: 100%; min-height: 41px; margin-top: 13px; padding: 0 12px; font-size: 9px; }
.secondary-button span { margin-left: auto; color: #d2e8d1; font-size: 14px; }
.promise-card { position: relative; min-height: 149px; overflow: hidden; padding: 23px 21px; border-radius: 17px; color: #fffaf0; background: #39684f; box-shadow: var(--shadow); }
.promise-card::before { content: ''; position: absolute; top: -48px; right: -16px; width: 137px; height: 137px; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; box-shadow: 0 0 0 13px rgba(255,255,255,.035), 0 0 0 30px rgba(255,255,255,.03); }
.promise-card::after { content: '✺'; position: absolute; right: 31px; bottom: 6px; color: rgba(247, 214, 126, .75); font-size: 59px; transform: rotate(11deg); }
.promise-quote { position: relative; z-index: 1; margin-bottom: 15px; font-size: 17px; line-height: 1.7; letter-spacing: -.04em; font-weight: 600; }
.promise-mark { position: relative; z-index: 1; color: #b9d0b5; font-size: 8px; letter-spacing: .1em; }
.rules-card { padding: 17px 18px 15px; box-shadow: none; }
.rules-heading { display: flex; align-items: center; gap: 8px; }
.rules-heading h3 { margin: 0; color: #526156; font-size: 10px; }
.rules-icon { width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; color: var(--green); background: #eaf2e9; font-size: 10px; font-weight: 700; }
.rules-card ul { display: grid; gap: 7px; margin: 13px 0 0; padding: 0; list-style: none; color: #849088; font-size: 9px; }
.rules-card li::before { content: '—'; margin-right: 7px; color: #d6a34c; }
.result-panel { padding: 55px 0 8px; }
.result-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 18px; }
.result-heading h2 { margin: 0 0 5px; color: #2f4538; font-size: 26px; letter-spacing: -.05em; }
.result-heading p:not(.eyebrow) { margin: 0; color: #819087; font-size: 10px; }
.cost-summary { min-width: 195px; padding: 12px 16px; border: 1px solid #e4e9df; border-radius: 12px; background: #f2f7ed; text-align: right; }
.cost-summary span, .cost-summary small { display: block; color: #819087; font-size: 8px; }
.cost-summary strong { display: block; margin: 2px 0; color: #2f6846; font-size: 23px; letter-spacing: -.05em; }
.cost-summary small { color: #719075; }
.meal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.meal-card { overflow: hidden; border: 1px solid #e8e8dd; border-radius: 15px; background: var(--paper); box-shadow: 0 10px 32px rgba(50, 65, 55, .05); }
.meal-top { display: flex; justify-content: space-between; align-items: start; gap: 8px; padding: 15px 15px 10px; }
.meal-day { color: #9a9e88; font-size: 8px; font-weight: 700; letter-spacing: .12em; }
.meal-emoji { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 50%; background: #f4f3e9; font-size: 23px; }
.meal-name { margin: 1px 15px 5px; color: #364c3e; font-size: 14px; line-height: 1.55; letter-spacing: -.03em; }
.meal-description { min-height: 35px; margin: 0 15px 10px; color: #89948c; font-size: 9px; line-height: 1.7; }
.meal-tag { display: inline-flex; align-items: center; margin: 0 15px 11px; padding: 4px 7px; border-radius: 999px; color: #66806a; background: #edf4e9; font-size: 8px; font-weight: 600; }
.meal-ingredients { display: grid; gap: 6px; padding: 11px 15px 13px; border-top: 1px solid #f0efe7; }
.ingredient-line { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 6px; align-items: baseline; font-size: 8px; }
.ingredient-line span:first-child { color: #65736a; }
.ingredient-line > span:last-child { color: #859187; text-align: right; white-space: nowrap; }
.source-label { display: inline-block; margin-left: 4px; color: #729275; font-size: 7px; }
.source-label.buy { color: #c78051; }
.result-lower-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 15px; }
.result-card { padding: 19px 20px 15px; box-shadow: 0 10px 32px rgba(50, 65, 55, .045); }
.result-card-heading { display: flex; align-items: start; gap: 11px; margin-bottom: 14px; }
.result-card-heading h3 { margin: 0 0 4px; color: #405347; font-size: 13px; }
.result-card-heading p { margin: 0; color: #929c93; font-size: 8px; }
.result-card-heading .heading-number { width: 27px; height: 27px; flex-basis: 27px; border-radius: 9px 9px 9px 3px; font-size: 8px; }
.shopping-list { display: grid; gap: 8px; }
.shopping-row { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 10px; align-items: center; padding: 0 0 7px; border-bottom: 1px dashed #e9e8df; }
.shopping-row-name { color: #58695d; font-size: 9px; }
.shopping-row-name small { display: block; margin-top: 3px; color: #9ba49b; font-size: 7px; }
.shopping-qty { color: #849189; font-size: 8px; white-space: nowrap; }
.shopping-cost { min-width: 50px; color: #586f5e; text-align: right; font-size: 9px; font-weight: 700; white-space: nowrap; }
.shopping-empty { padding: 13px; border-radius: 9px; color: #68836e; background: #f1f7ee; font-size: 9px; line-height: 1.7; }
.shopping-total { display: flex; justify-content: space-between; align-items: center; margin-top: 13px; padding-top: 11px; border-top: 1px solid #e9e9df; color: #758279; font-size: 9px; }
.shopping-total strong { color: #356948; font-size: 16px; }
.tiny-disclaimer { margin-top: 8px; color: #a2aaa1; font-size: 7px; line-height: 1.6; }
.prep-list { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; counter-reset: prep; }
.prep-list li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; color: #818d84; counter-increment: prep; }
.prep-list li::before { content: counter(prep, decimal-leading-zero); width: 20px; height: 20px; display: grid; place-items: center; border-radius: 7px; color: #738d74; background: #f0f5ed; font-size: 7px; font-weight: 700; }
.prep-list strong { display: block; margin: 1px 0 3px; color: #5d6d62; font-size: 8px; }
.prep-list span { display: block; font-size: 8px; line-height: 1.7; }
.result-model-note { margin-top: 11px; padding: 9px 11px; border: 1px solid #e2eadf; border-radius: 9px; color: #7d8c80; background: #f7faf4; font-size: 8px; line-height: 1.7; }
.result-actions { display: flex; justify-content: center; margin-top: 18px; }
.outline-button { min-height: 37px; padding: 0 14px; border: 1px solid #cfddce; border-radius: 9px; color: #507157; background: transparent; font-size: 9px; font-weight: 700; }
.outline-button:hover { background: #edf4e9; }
.page-footer { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin: 42px 0 17px; padding: 17px 4px; border-top: 1px solid #e8e7dd; color: #9aa39b; font-size: 8px; line-height: 1.7; }
.footer-brand { display: flex; align-items: center; gap: 7px; color: #5d7061; font-size: 9px; font-weight: 700; white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

@media (max-width: 850px) {
  .page-shell { width: min(720px, calc(100% - 36px)); }
  .hero { min-height: 210px; padding-right: 0; }
  .hero-doodle { width: 155px; height: 155px; flex-basis: 155px; margin-left: 7px; }
  .doodle-plate { width: 128px; height: 117px; border-width: 10px; }
  .doodle-sun { width: 80px; height: 80px; }
  .app-grid { grid-template-columns: minmax(0, 1fr); }
  .side-column { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .review-card { grid-column: 1 / -1; }
  .promise-card { min-height: 150px; }
  .rules-card { min-height: 150px; }
}

@media (max-width: 600px) {
  .topbar { min-height: 57px; padding: 0 18px; }
  .brand { font-size: 13px; }
  .topbar-note { font-size: 9px; }
  .brand-mark { width: 27px; height: 27px; font-size: 15px; }
  .page-shell { width: calc(100% - 30px); }
  .hero { min-height: unset; position: relative; padding: 29px 0 22px; }
  .hero-copy { max-width: 100%; }
  .hero-doodle { position: absolute; right: -20px; top: 39px; width: 87px; height: 90px; margin: 0; opacity: .45; transform: scale(.78); transform-origin: top right; }
  .hero-doodle .doodle-caption, .hero-doodle .leaf-one { display: none; }
  .eyebrow { position: relative; z-index: 1; max-width: 285px; margin-bottom: 10px; font-size: 8px; letter-spacing: .1em; }
  h1 { max-width: 330px; margin-bottom: 8px; font-size: clamp(29px, 8vw, 38px); }
  .hero-description { max-width: 360px; margin-bottom: 11px; font-size: 10px; line-height: 1.8; }
  .hero-pills { gap: 5px; }
  .hero-pills span { padding: 5px 7px; font-size: 8px; }
  .app-grid { gap: 12px; }
  .form-card { padding: 18px 16px 17px; border-radius: 14px; }
  .section-heading { gap: 10px; margin-bottom: 15px; }
  .heading-number { width: 28px; height: 28px; flex-basis: 28px; border-radius: 9px 9px 9px 3px; }
  .section-heading h2 { font-size: 16px; }
  .section-heading p { font-size: 9px; }
  .quick-example { align-items: start; padding: 8px; font-size: 8px; }
  .text-button { font-size: 8px; }
  .field-label { margin-top: 14px; font-size: 10px; }
  .text-area { min-height: 83px; font-size: 11px; }
  .field-hint { font-size: 8px; }
  .two-fields { gap: 9px; }
  .number-wrap { gap: 6px; padding: 0 8px; font-size: 9px; }
  .number-wrap input { font-size: 12px; }
  .method-options { gap: 7px; }
  .method-option { grid-template-columns: 20px auto; min-height: 47px; gap: 5px; padding: 7px; }
  .method-icon { width: 20px; height: 20px; font-size: 11px; }
  .method-option > span:nth-of-type(2) { font-size: 9px; }
  .method-option small { font-size: 7px; }
  .price-table { grid-template-columns: 1fr 76px 64px; gap: 5px; padding-left: 0; }
  .estimate-note { margin-left: 0; }
  .model-callout { grid-template-columns: 26px 1fr; gap: 8px; padding: 9px; }
  .model-icon { width: 25px; height: 25px; }
  .model-callout strong { font-size: 8px; }
  .model-callout p { font-size: 7px; }
  .local-badge { display: none; }
  .primary-button { min-height: 43px; padding: 0 10px; font-size: 10px; }
  .side-column { grid-template-columns: 1fr; gap: 11px; }
  .review-card { padding: 16px 14px; }
  .recognized-row { grid-template-columns: minmax(0,1fr) 102px 22px; }
  .promise-card, .rules-card { min-height: unset; }
  .promise-card { padding: 18px; }
  .promise-quote { font-size: 14px; }
  .rules-card { padding: 15px; }
  .result-panel { padding-top: 32px; }
  .result-heading { align-items: start; flex-direction: column; gap: 12px; margin-bottom: 13px; }
  .result-heading h2 { font-size: 21px; }
  .cost-summary { width: 100%; display: grid; grid-template-columns: 1fr auto; align-items: center; text-align: left; }
  .cost-summary span { grid-column: 1; }
  .cost-summary strong { grid-column: 1; grid-row: 2 / span 2; font-size: 20px; }
  .cost-summary small { grid-column: 2; grid-row: 1 / span 2; text-align: right; }
  .meal-grid { grid-template-columns: 1fr; gap: 10px; }
  .meal-card { display: grid; grid-template-columns: 1fr 62px; align-items: start; }
  .meal-top { grid-column: 1; grid-row: 1; padding: 12px 13px 4px; }
  .meal-emoji { grid-column: 2; grid-row: 1 / span 3; width: 46px; height: 46px; margin: 13px auto; }
  .meal-name { grid-column: 1; margin: 1px 13px 4px; font-size: 13px; }
  .meal-description { grid-column: 1; min-height: unset; margin: 0 13px 6px; font-size: 8px; }
  .meal-tag { grid-column: 1; width: fit-content; margin: 0 13px 9px; }
  .meal-ingredients { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; gap: 6px 12px; padding: 10px 13px; }
  .ingredient-line { font-size: 7px; }
  .result-lower-grid { grid-template-columns: 1fr; gap: 10px; margin-top: 10px; }
  .result-card { padding: 15px 14px; }
  .page-footer { align-items: flex-start; flex-direction: column; gap: 6px; margin: 27px 0 14px; font-size: 7px; }
}

@media (max-width: 360px) {
  .page-shell { width: calc(100% - 22px); }
  .form-card { padding: 16px 12px; }
  .two-fields { grid-template-columns: 1fr; gap: 4px; }
  .two-fields .field-label { margin-top: 10px; }
  .hero-pills span { font-size: 7px; }
}
