/* Pet Weight Checker styles — extends /styles.css */

.muted { color: var(--ink-soft); font-weight: 400; font-size: .85em; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .8rem;
}
.field-col { display: flex; flex-direction: column; }
.field-col label {
  font-weight: 700;
  font-size: .92rem;
  color: var(--ink);
  margin-bottom: .4rem;
}
input[type="number"],
input[type="text"] {
  width: 100%;
  padding: .7rem .8rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #fffdfa;
  font: inherit;
  color: var(--ink);
}
input[type="number"]:focus,
input[type="text"]:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
}
.chips-inline { margin-top: .15rem; }

/* ---------- result card ---------- */
.result { margin: 1rem 0 1.5rem; }
.result-card {
  border-left: 6px solid var(--brand);
}
.result-subject {
  margin: 0 0 .35rem;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: .95rem;
}
.result-headline {
  margin: 0 0 1rem;
}
.result-status {
  display: inline-block;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--brand-ink);
  line-height: 1.2;
  padding: .15rem .55rem;
  border-radius: var(--radius-sm);
}
/* Color-code the status badge by band */
.result-status[data-band="significantly-under"] { background: #ffe3df; color: #b54c00; }
.result-status[data-band="under"]                { background: #ffefe3; color: #b54c00; }
.result-status[data-band="healthy"]              { background: #e3f5e0; color: #2f7a3a; }
.result-status[data-band="slightly-over"]        { background: #fff3d6; color: #95680f; }
.result-status[data-band="over"]                 { background: #ffe2b0; color: #8a4f00; }
.result-status[data-band="significantly-over"]   { background: #ffd0d0; color: #9b2222; }

.result-detail {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  font-size: .95rem;
}

.result-disclaimer {
  margin: 0 0 1rem;
  padding: .7rem .9rem;
  border-left: 3px solid var(--accent);
  background: rgba(58, 163, 163, 0.06);
  border-radius: 6px;
  color: var(--ink-soft);
  font-size: .82rem;
  line-height: 1.5;
}
.result-disclaimer strong {
  color: var(--ink);
  font-weight: 700;
}

/* ---------- weight meter ---------- */
.weight-meter {
  margin: 0 0 1rem;
}
.meter-track {
  position: relative;
  display: flex;
  height: 18px;
  border-radius: 999px;
  overflow: visible;
  background: var(--muted);
}
.meter-zone {
  height: 100%;
  border-radius: 0; /* round only the outer ends */
}
.meter-zone:first-child { border-radius: 999px 0 0 999px; }
.meter-zone:last-child  { border-radius: 0 999px 999px 0; }
.meter-under   { background: linear-gradient(90deg, #ffd0d0 0%, #ffe9d4 100%); }
.meter-healthy { background: linear-gradient(90deg, #c8efc4 0%, #a4dca0 100%); }
.meter-over    { background: linear-gradient(90deg, #ffe2b0 0%, #ffb0b0 100%); }

.meter-marker {
  position: absolute;
  top: -28px;
  bottom: -8px;
  transform: translateX(-50%);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: left .55s cubic-bezier(.34, 1.4, .64, 1);
}
.meter-marker-flag {
  background: var(--ink);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  padding: .2rem .55rem;
  border-radius: 6px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  margin-bottom: 4px;
}
.meter-marker-flag::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--ink);
  transform: translateX(-50%);
}
.meter-marker-stem {
  width: 3px;
  background: var(--ink);
  flex: 1;
  border-radius: 999px;
}

.meter-legend {
  display: flex;
  margin-top: .85rem;
  font-size: .78rem;
  color: var(--ink-soft);
  text-align: center;
  gap: .4rem;
}
.meter-leg {
  flex: 1;
  font-weight: 700;
  line-height: 1.35;
}
.meter-leg span {
  display: block;
  font-weight: 400;
  font-size: .78rem;
  color: var(--ink-soft);
}
.meter-leg-under   { color: #b54c00; }
.meter-leg-healthy { color: #2f7a3a; }
.meter-leg-over    { color: #9b2222; }

/* ---------- actions ---------- */
.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 0 0 1rem;
}
.result-actions .btn { flex: 1 1 auto; }

.result-ctas {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.btn-cta {
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  background: linear-gradient(135deg, #7c4dff 0%, #ad55e6 50%, #ff6fa3 100%);
  color: #fff !important;
  font-weight: 700;
  padding: .85rem 1.2rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px rgba(124, 77, 255, .3);
}
.btn-cta:hover { filter: brightness(1.05); }

.btn-cta-secondary {
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  background: var(--surface);
  color: var(--brand-ink) !important;
  font-weight: 700;
  padding: .75rem 1.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}
.btn-cta-secondary:hover { background: var(--muted); }

/* ---------- reduce motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .meter-marker { transition: none; }
}
