/* Healfy look for dogfoodmath.com. Same palette and ledge style as the iPhone app
   (the-room: app/Healfy/Healfy/HealfyApp.swift, enum Look). Change both together. */
:root {
  color-scheme: light;
  --mint: #e9f6f2;
  --deep: #1d5b4f;
  --green: #3aa57a;
  --orange: #f6a33b;
  --bowl: #e8743b;
  --ink: #1f2328;
  --soft: #4a5c57;
  --coat: #f2c48d;
  --ear: #b9814a;
  --card: #ffffff;
  --ledge: #cfe6de;
  --picked: #e0f7eb;
  --r: 18px;
  --font: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--mint);
  color: var(--ink);
  font: 17px/1.45 var(--font);
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
a { color: var(--deep); font-weight: 700; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

.page { max-width: 560px; margin: 0 auto; padding: 20px 16px 64px; display: flex; flex-direction: column; gap: 28px; }
.top { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--deep); }
.top svg { width: 26px; height: 26px; }

.hero { display: flex; flex-direction: column; gap: 10px; }
h1 { font-size: 34px; line-height: 1.1; font-weight: 900; letter-spacing: -0.01em; }
h2 { font-size: 24px; line-height: 1.2; font-weight: 850; }
h3 { font-size: 18px; font-weight: 800; }
.soft { color: var(--soft); }
.small { font-size: 14px; }
.warn { color: var(--bowl); font-weight: 700; font-size: 15px; }
.hero img { width: 100%; height: auto; border-radius: var(--r); }

/* White card on a soft ledge, as in the app. */
.card {
  background: var(--card);
  border-radius: var(--r);
  box-shadow: 0 3px 0 var(--ledge);
  padding: 16px;
}
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack-s { display: flex; flex-direction: column; gap: 6px; }

/* Body shape choices. */
.shapes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.shape {
  all: unset; cursor: pointer; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: var(--card); border-radius: 14px; box-shadow: 0 3px 0 var(--ledge);
  padding: 10px 2px 8px; font-size: 13px; font-weight: 700; line-height: 1.15; color: var(--ink);
}
.shape svg { width: 34px; height: 48px; }
.shape[aria-pressed="true"] { background: var(--picked); box-shadow: 0 3px 0 var(--green), inset 0 0 0 2px var(--green); }
.shape:focus-visible { outline: 3px solid var(--green); }
.hint { min-height: 1.45em; }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label { min-width: 0; display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 15px; }
.input {
  display: flex; align-items: center; background: var(--card); border-radius: 14px;
  box-shadow: 0 3px 0 var(--ledge); padding: 0 14px;
}
.input input {
  all: unset; flex: 1; min-width: 0; width: 100%; padding: 14px 0; font: 700 20px var(--font); color: var(--ink);
}
.input span { color: var(--soft); font-weight: 700; }
.input:focus-within { box-shadow: 0 3px 0 var(--ledge), inset 0 0 0 2px var(--green); }
details summary { cursor: pointer; font-weight: 700; color: var(--deep); }
details[open] summary { margin-bottom: 10px; }

/* Result. */
.result { display: flex; flex-direction: column; gap: 14px; }
.result .big { font-size: 28px; line-height: 1.15; font-weight: 900; }
.curve { width: 100%; height: auto; display: block; }
.meals { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.meal { background: #fff8ec; border-radius: 14px; box-shadow: 0 3px 0 #f1dfc4; padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.meal b { font-size: 20px; }
.cups { display: flex; gap: 4px; align-items: flex-end; height: 34px; }
.cups svg { height: 34px; width: auto; }

/* App offer. */
.app { display: flex; flex-direction: column; gap: 14px; background: var(--card); }
.app-head { display: flex; gap: 12px; align-items: center; }
.app-head img { width: 56px; height: 56px; border-radius: 13px; }
.ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; color: var(--deep); font-weight: 700; }
.ticks li::before { content: "✓ "; color: var(--green); }
.btn {
  display: block; text-align: center; text-decoration: none; cursor: pointer; border: 0;
  background: var(--green); color: #fff; font: 850 20px var(--font);
  padding: 16px; border-radius: 16px; box-shadow: 0 4px 0 var(--deep);
}
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--deep); }
.btn[aria-disabled="true"] { background: var(--soft); box-shadow: 0 4px 0 var(--ink); cursor: default; }

/* Article text under the tool. */
.read { display: flex; flex-direction: column; gap: 12px; }
.read p, .read li { color: var(--ink); }
.read ul, .read ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.formula { font-weight: 800; color: var(--deep); background: var(--card); border-radius: 14px; padding: 12px 14px; box-shadow: 0 3px 0 var(--ledge); }
.faq details { background: var(--card); border-radius: 14px; box-shadow: 0 3px 0 var(--ledge); padding: 14px; }
.faq details + details { margin-top: 10px; }
.faq details p { margin-top: 8px; }
footer { font-size: 14px; color: var(--soft); display: flex; flex-direction: column; gap: 6px; }

@media (max-width: 420px) {
  h1 { font-size: 30px; }
  .shape { font-size: 11px; padding: 8px 0 6px; }
  .shape svg { width: 28px; height: 40px; }
}
@media (prefers-reduced-motion: no-preference) {
  .shape, .btn { transition: transform .08s ease-out, box-shadow .08s ease-out; }
}
