@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@500;600;700;800&family=Inter:wght@400;600;700&display=swap');

/* ZENOO Design System tokens (project/tokens.json) */
:root {
  --forest: #445942; --forest-600: #597557; --sage: #afc2ad; --mist: #dde5dc;
  --cream: #f8f7f2; --white: #ffffff; --sun: #f7a223; --on-sun: #ffffff; --on-forest: #ffffff;
  --ink-muted: #7c8a7b; --line: rgba(68, 89, 66, 0.1);
  --font-display: "Inter Tight", Inter, system-ui, sans-serif;
  --font-sans: Inter, system-ui, sans-serif;
  --radius-sm: 4px; --radius-lg: 24px; --radius-button: 25px; --radius-pill: 70px;
  --ease: cubic-bezier(0, 0, 0.3, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font-sans); font-size: 16px; line-height: 1.3; background: var(--cream); color: var(--forest); min-height: 100vh; display: flex; flex-direction: column; }

.zq-header { background: var(--forest); padding: 10px 16px; display: flex; justify-content: center; }
.zq-header img { height: 30px; display: block; }

.zq-progress { height: 6px; background: var(--mist); }
.zq-progress > div { height: 100%; background: var(--forest); transition: width 400ms var(--ease); }

main { flex: 1; width: 100%; max-width: 560px; margin: 0 auto; padding: 24px 16px 40px; }
.zq-screen { animation: zqIn 400ms var(--ease); }
@keyframes zqIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .zq-screen { animation: none; } .zq-progress > div { transition: none; } }

.zq-step { font-family: var(--font-display); font-weight: 600; font-size: 13px; letter-spacing: .5px; margin: 0 0 8px; opacity: .8; }
h1, h2 { font-family: var(--font-display); font-weight: 800; margin: 0 0 12px; }
h1 { font-size: 34px; line-height: 1.15; }
h2 { font-size: 26px; line-height: 1.2; }
.zq-lead { font-size: 18px; line-height: 1.35; margin: 0 0 20px; }
.zq-small { font-size: 13px; line-height: 1.4; }
p { margin: 0 0 12px; }

/* Options */
.zq-options { display: grid; gap: 8px; margin: 16px 0 8px; }
.zq-options.two { grid-template-columns: 1fr 1fr; }
.zq-opt { width: 100%; text-align: left; font: inherit; color: var(--forest); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px 18px; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; align-items: center; min-height: 56px; }
.zq-opt small { opacity: .75; font-size: 13px; }
.zq-opt[aria-pressed="true"] { background: var(--forest); color: var(--on-forest); border-color: var(--forest); }
.zq-opt[aria-pressed="true"]::after { content: "✓"; font-weight: 700; }
.zq-opt:hover { opacity: .85; }
.zq-opt:focus-visible, .zq-btn:focus-visible, input:focus-visible, .zq-back:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; }

/* Body shape picker */
.zq-shapes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 16px 0; }
.zq-shape { font: inherit; color: var(--forest); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 10px 4px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; text-align: center; }
.zq-shape svg { width: 100%; max-width: 52px; height: auto; }
.zq-shape[aria-pressed="true"] { background: var(--forest); color: var(--on-forest); }

/* Inputs */
label.zq-label { display: block; font-weight: 600; margin: 14px 0 6px; }
input[type=text], input[type=email], input[type=number], input[type=search] { width: 100%; font: inherit; font-size: 18px; color: var(--forest); background: var(--white); border: 1px solid var(--sage); border-radius: var(--radius-lg); padding: 14px 18px; }
.zq-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.zq-label-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; }
.zq-label-grid label { font-size: 14px; font-weight: 600; display: block; margin-bottom: 4px; }
.zq-hint { background: var(--mist); border-radius: var(--radius-lg); padding: 12px 16px; font-size: 14px; margin: 12px 0; }
.zq-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin: 16px 0; cursor: pointer; }
.zq-check input { width: 20px; height: 20px; accent-color: var(--forest); flex: none; margin-top: 1px; }
.zq-amount { background: var(--white); border-radius: var(--radius-lg); padding: 4px 16px 2px; margin-bottom: 10px; }
.zq-amount .zq-label { margin-top: 12px; }
.zq-amount-row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; }
.zq-amount .zq-check { margin: 10px 0; }
select { width: 100%; font: inherit; font-size: 15px; color: var(--forest); background: var(--white); border: 1px solid var(--sage); border-radius: var(--radius-lg); padding: 14px 12px; }
input:disabled, select:disabled { opacity: .45; }
.zq-breedlist { max-height: 320px; overflow-y: auto; margin-top: 8px; display: grid; gap: 6px; }

/* Buttons */
.zq-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; }
.zq-btn { font-family: var(--font-display); font-weight: 700; font-size: 16px; text-transform: none; border: 0; border-radius: var(--radius-pill); background: var(--sun); color: var(--on-sun); padding: 14px 40px; cursor: pointer; min-height: 48px; }
.zq-btn.forest { background: var(--forest); color: var(--on-forest); border-radius: var(--radius-button); }
.zq-btn[disabled] { opacity: .45; cursor: not-allowed; }
.zq-btn.block { width: 100%; }
.zq-back { font: inherit; background: none; border: 0; color: var(--forest); cursor: pointer; padding: 10px 4px; text-decoration: underline; }
.zq-link { background: none; border: 0; font: inherit; color: var(--forest); text-decoration: underline; cursor: pointer; padding: 0; }

/* Slides */
.zq-slide { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; }
.zq-slide-body { padding: 20px; }
.zq-tag { display: inline-block; background: var(--mist); border-radius: 40px; padding: 4px 12px; font-size: 12px; font-weight: 700; letter-spacing: .5px; margin-bottom: 10px; }
.zq-photo { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--mist); }
.zq-photo.round { border-radius: var(--radius-lg); }
.zq-btn.outline { background: var(--white); color: var(--forest); box-shadow: inset 0 0 0 2px var(--forest); }
.zq-ph { aspect-ratio: 4 / 3; background: var(--mist); display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px; font-size: 13px; color: var(--forest); border-radius: 0; }
.zq-ph.round { border-radius: var(--radius-lg); }
.zq-ph b { display: block; font-family: var(--font-display); font-size: 14px; }

/* Bars (label maths, sub-scores) */
.zq-bars { display: grid; gap: 10px; margin: 14px 0; }
.zq-bar { font-size: 14px; }
.zq-bar-top { display: flex; justify-content: space-between; margin-bottom: 4px; font-weight: 600; }
.zq-bar-track { height: 10px; background: var(--mist); border-radius: 10px; overflow: hidden; }
.zq-bar-track > div { height: 100%; background: var(--forest); border-radius: 10px; }
.zq-bar-track.carbs > div { background: var(--sage); }

/* Result */
.zq-profile { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 10px; }
.zq-profile .zq-photo { aspect-ratio: 16 / 9; }
.zq-profile-body { padding: 18px 20px 20px; }
.zq-profile h1 { font-size: 30px; margin: 0 0 12px; }
.zq-profile dl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin: 0; }
.zq-profile dt { font-size: 12px; letter-spacing: .5px; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 2px; }
.zq-profile dd { margin: 0; font-weight: 600; }
@media (min-width: 560px) { .zq-profile { display: grid; grid-template-columns: 45% 1fr; align-items: center; } .zq-profile .zq-photo { height: 100%; aspect-ratio: auto; } }
.zq-scorecard { background: var(--forest); color: var(--on-forest); border-radius: var(--radius-lg); padding: 24px 20px; text-align: center; margin-bottom: 14px; }
.zq-scorecard h1 { color: var(--on-forest); font-size: 22px; margin: 6px 0 8px; }
.zq-score-num { font-family: var(--font-display); font-weight: 800; font-size: 80px; line-height: 1; color: var(--sun); }
.zq-score-num small { font-size: 24px; color: var(--on-forest); }
.zq-card { background: var(--white); border-radius: var(--radius-lg); padding: 18px 20px; margin-bottom: 10px; }
.zq-card h3 { font-family: var(--font-display); font-weight: 800; font-size: 18px; margin: 0 0 8px; display: flex; justify-content: space-between; }
.zq-card .fix { background: var(--cream); border-radius: 12px; padding: 10px 12px; margin-top: 8px; font-size: 14px; }
.zq-card .fix::before { content: "Try this: "; font-weight: 700; }
.zq-plan { background: var(--mist); border-radius: var(--radius-lg); padding: 20px; margin: 14px 0; }
.zq-plan dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 10px 0 0; }
.zq-plan dt { font-weight: 700; }
.zq-plan dd { margin: 0; }
.zq-vet { border-left: 4px solid var(--sun); background: var(--white); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; padding: 12px 16px; font-size: 14px; margin: 10px 0; }
.zq-sent { background: var(--white); border-radius: var(--radius-lg); padding: 18px 20px; margin: 14px 0; }
.zq-agota { display: flex; gap: 12px; align-items: center; margin: 20px 0 6px; font-size: 14px; }
.zq-agota img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.zq-footer { text-align: center; font-size: 13px; padding: 24px 16px; }
.zq-footer img { height: 22px; display: block; margin: 0 auto 6px; }

/* Prototype debug */
.zq-demo { margin-top: 20px; font-size: 12px; }
.zq-demo pre { background: var(--white); border-radius: 12px; padding: 12px; overflow-x: auto; white-space: pre-wrap; word-break: break-word; }
.zq-proto-flag { position: fixed; bottom: 8px; right: 8px; background: var(--forest); color: var(--on-forest); font-size: 11px; padding: 4px 10px; border-radius: 20px; opacity: .8; z-index: 5; }

@media (min-width: 640px) { h1 { font-size: 42px; } main { padding-top: 40px; } }
