/* RS Coaching brand (see aggressive-dieting-blueprint.md, Section 2).
   Lime is a highlighter, not a pen: never lime text on white or light teal. */
:root {
  --deep-teal: #1A4B51;
  --lime: #BDD72F;
  --light-teal: #E3F0F1;
  --dark-teal: #112F33;
  --white: #FFFFFF;
  --muted: #3E5F63;
  --line: #CFE0E2;
  --radius: 14px;
  --font: "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--white);
  color: var(--dark-teal);
  font: 400 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.top {
  position: sticky; top: 0; z-index: 2;
  background: var(--deep-teal);
  padding: 14px 16px 12px;
}
.brand { font: 700 18px/1 var(--font); letter-spacing: -0.01em; color: var(--white); }
.brand span { color: var(--lime); margin-left: 3px; }
.progress { height: 5px; background: rgba(255, 255, 255, 0.18); border-radius: 5px; margin-top: 12px; overflow: hidden; }
.bar { height: 100%; width: 0; background: var(--lime); transition: width 0.35s ease; }

main { flex: 1; width: 100%; max-width: 620px; margin: 0 auto; padding: 32px 16px 48px; }
.screen { animation: in 0.35s ease both; }
@keyframes in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

h1, h2, h3 { font-family: var(--font); color: var(--deep-teal); letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 14px; }
h1 { font-size: clamp(30px, 7.5vw, 42px); font-weight: 700; padding-bottom: 12px; border-bottom: 4px solid var(--lime); }
h2 { font-size: clamp(24px, 5.8vw, 30px); font-weight: 700; }
h3 { font-size: 19px; font-weight: 700; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 12px; font-weight: 700; color: var(--deep-teal); margin: 0 0 10px; }
.lead { font-size: 19px; color: var(--muted); margin: 0 0 22px; }
.hint { color: var(--muted); margin: -4px 0 20px; }
.hint:empty { display: none; }

.ticks { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 8px; }
.ticks li { padding-left: 30px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%23112F33' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; min-height: 56px; padding: 0 24px;
  border: 0; border-radius: 999px; cursor: pointer;
  font: 700 17px var(--font); text-decoration: none;
  transition: transform 0.1s ease, filter 0.2s ease;
}
.btn.primary { background: var(--deep-teal); color: var(--white); box-shadow: inset 0 -4px 0 var(--lime); }
.btn:hover { filter: brightness(1.12); }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.55; cursor: default; }
.btn:focus-visible, .option:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }
#next { margin-top: 20px; }

.back { background: none; border: 0; color: var(--muted); font: 500 15px var(--font); padding: 0; margin-bottom: 18px; cursor: pointer; }

.options { display: grid; gap: 10px; }
.option {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: var(--white); color: var(--dark-teal); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; font: 500 16px/1.35 var(--font); cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.option:hover { border-color: var(--deep-teal); }
.option[aria-pressed="true"] { border-color: var(--deep-teal); background: var(--light-teal); box-shadow: inset 4px 0 0 var(--lime); }
.option .box { flex: none; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line); background: var(--white); }
.option[aria-pressed="true"] .box { background: var(--deep-teal); border-color: var(--deep-teal); }

.weight { display: grid; gap: 12px; }
.units { display: flex; gap: 6px; background: var(--light-teal); border-radius: 999px; padding: 4px; width: fit-content; }
.units button { border: 0; background: none; border-radius: 999px; padding: 8px 16px; font: 700 14px var(--font); color: var(--deep-teal); cursor: pointer; }
.units button[aria-pressed="true"] { background: var(--deep-teal); color: var(--white); }
.weight-inputs { display: flex; gap: 10px; }

input, textarea {
  width: 100%; background: var(--white); color: var(--dark-teal);
  border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 16px; font: 400 17px var(--font);
}
textarea { min-height: 140px; resize: vertical; }
label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; margin-bottom: 14px; }
label.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; color: var(--muted); }
label.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--deep-teal); }
.hp { position: absolute; left: -9999px; }
.error { color: #A3261B; font-size: 15px; min-height: 1em; margin: 0 0 10px; }

.loading { text-align: center; padding-top: 40px; }
.loading h2 { border: 0; }
.pulse { width: 72px; height: 72px; margin: 0 auto 28px; border-radius: 50%; background: var(--deep-teal); box-shadow: 0 0 0 8px var(--lime); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: scale(0.8); opacity: 0.6; } 50% { transform: scale(1); opacity: 1; } }

/* Result */
.result h1 { margin-bottom: 18px; }
.result p { margin: 0 0 14px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; margin: 22px 0; }
.card.hidden-problem { background: var(--light-teal); border: 0; border-left: 6px solid var(--deep-teal); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 22px 0 8px; }
.stat { background: var(--light-teal); border-radius: var(--radius); padding: 16px; }
.stat.hot { background: var(--dark-teal); color: var(--white); }
.stat b { display: block; font: 700 28px/1.05 var(--font); letter-spacing: -0.02em; margin-bottom: 6px; color: var(--deep-teal); }
.stat.hot b { color: var(--lime); }
.stat span { font-size: 14px; color: var(--muted); }
.stat.hot span { color: rgba(255, 255, 255, 0.82); }
.stats-note { font-size: 14px; color: var(--muted); margin: 0 0 22px !important; }
.list { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: n; }
.list li { padding-left: 42px; position: relative; }
.list h3 { font-size: 18px; margin-bottom: 4px; }
.list p { color: var(--muted); margin: 0; }
.list.numbered li::before { counter-increment: n; content: counter(n); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--lime); color: var(--dark-teal); font: 700 14px/28px var(--font); text-align: center; }
.list.dots li::before { content: ""; position: absolute; left: 8px; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--lime); border: 3px solid var(--deep-teal); }
.fit { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--light-teal); color: var(--deep-teal); font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.sign { font-weight: 700; font-size: 20px; color: var(--deep-teal); margin-top: 6px; }
.cta { margin-top: 26px; }
.cta small { display: block; text-align: center; color: var(--muted); margin-top: 10px; font-size: 14px; }
.mock { background: #FFF6CC; border: 1px solid #E6D27A; border-radius: 12px; padding: 10px 14px; font-size: 14px; margin-bottom: 18px; }

.foot { text-align: center; color: rgba(255, 255, 255, 0.82); background: var(--dark-teal); font-size: 13px; padding: 20px 16px 28px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Body measurements step */
.measure-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.measure-grid label { font-size: 14px; }
.skip { display: block; margin: 18px 0 0; text-decoration: underline; }
.optional { font-weight: 400; color: var(--muted); }

/* Route card */
.bf { margin: 0 0 14px !important; }
.bf b { font-size: 22px; color: var(--deep-teal); }
.bf span { font-size: 14px; color: var(--muted); }
.route-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.route { border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--white); }
.route h3 { font-size: 17px; margin: 0 0 2px; }
.route p { margin: 0 !important; color: var(--muted); font-size: 15px; }
.route.pick { border-color: var(--deep-teal); box-shadow: inset 5px 0 0 var(--lime); }
.badge { display: inline-block; background: var(--lime); color: var(--dark-teal); font-weight: 700; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; border-radius: 999px; padding: 3px 10px; margin-bottom: 6px; }

/* Client results */
.results-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 8px; }
.client { margin: 0; background: var(--light-teal); border-radius: var(--radius); overflow: hidden; }
.client img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.client figcaption { padding: 14px; }
.client figcaption b { display: block; font-size: 18px; color: var(--deep-teal); line-height: 1.2; margin-bottom: 4px; }
.client figcaption span { font-size: 14px; color: var(--muted); }
.client q { display: block; font-size: 14px; margin-top: 8px; color: var(--dark-teal); }

/* Height dropdown */
.height-field { margin-bottom: 4px; }
select {
  width: 100%; background: var(--white); color: var(--dark-teal);
  border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 16px; font: 400 17px var(--font);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='%231A4B51' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
select:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }
.units-label { margin: 4px 0 -4px; font-weight: 600; font-size: 15px; }

/* Client before-and-after photos are square side-by-side images: show them whole, one per row */
.results-grid { grid-template-columns: 1fr; gap: 14px; }
.client img { aspect-ratio: 1 / 1; object-fit: contain; background: var(--white); }
