/* Vera check-in page. Tokens from "Vera design system 9.26" (src/theme). */
:root {
  --bg: #fdf8f0;
  --surface: #f6efe2;
  --ink: #2b2d63;
  --muted: rgba(43, 45, 99, 0.62);
  --divider: rgba(43, 45, 99, 0.14);
  --coral: #f1502b;
  --coral-100: #ffece6;
  --coral-800: #814659;
  --lav-100: #f0f0fb;
  --lav-300: #c8c7ef;
  --lav-500: #8b84d7;
  --lav-700: #6461a9;
  --shadow-sm: 0 1px 2px rgba(43, 45, 99, 0.12);
  --shadow-md: 0 3px 10px rgba(43, 45, 99, 0.14);
  --heading: 'Caprasimo', 'Cooper Black', Georgia, serif;
  --body: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
}

.top {
  position: sticky; top: 0; z-index: 2;
  background: var(--bg);
  padding: 14px 22px 10px;
  display: flex; align-items: center; gap: 16px;
  max-width: 480px; width: 100%; margin: 0 auto;
}
.brand { font-family: var(--heading); font-size: 22px; line-height: 1; }
.progress { list-style: none; margin: 0 0 0 auto; padding: 0; display: flex; gap: 6px; }
.progress li { width: 28px; height: 6px; border-radius: 999px; background: var(--divider); }
.progress li.done, .progress li.current { background: var(--lav-500); }
.progress li.current { width: 40px; }

main { flex: 1; width: 100%; max-width: 480px; margin: 0 auto; padding: 4px 22px 120px; outline: none; }

h1 {
  font-family: var(--heading); font-weight: 400;
  font-size: 30px; line-height: 1.1; letter-spacing: -0.015em;
  margin: 10px 0 6px;
}
.lead { color: var(--muted); margin: 0 0 22px; font-size: 15px; }
.noscript { padding: 22px; }

/* One symptom: its name, then five circles that grow with the intensity. */
.symptom { border: 0; margin: 0 0 14px; padding: 16px 14px 12px; background: #fff; border-radius: 20px; box-shadow: var(--shadow-sm); }
.symptom legend { float: left; width: 100%; padding: 0 4px; margin: 0 0 12px; font-weight: 600; font-size: 17px; }
.symptom legend + * { clear: both; }
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; }
.opt { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; padding: 4px 0 2px; border-radius: 14px; -webkit-tap-highlight-color: transparent; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dot-wrap { height: 40px; display: grid; place-items: center; }
.dot { border-radius: 50%; border: 2px solid var(--lav-300); background: var(--lav-100); transition: background-color .15s ease, border-color .15s ease, transform .15s ease; }
.opt[data-v="0"] .dot { width: 18px; height: 18px; }
.opt[data-v="1"] .dot { width: 23px; height: 23px; }
.opt[data-v="2"] .dot { width: 28px; height: 28px; }
.opt[data-v="3"] .dot { width: 33px; height: 33px; }
.opt[data-v="4"] .dot { width: 38px; height: 38px; }
.word { font-size: 12.5px; line-height: 1.2; color: var(--muted); text-align: center; min-height: 2.4em; }
.opt input:checked ~ .dot-wrap .dot { background: var(--lav-500); border-color: var(--lav-700); transform: scale(1.06); }
.opt input:checked ~ .word { color: var(--ink); font-weight: 700; }
.opt input:focus-visible ~ .dot-wrap .dot { outline: 3px solid var(--ink); outline-offset: 3px; }
.symptom.missing { box-shadow: 0 0 0 2px var(--coral), var(--shadow-sm); }

/* The hot flush count */
.count { margin: 6px 0 14px; padding: 16px; background: #fff; border-radius: 20px; box-shadow: var(--shadow-sm); }
.count label { display: block; font-weight: 600; font-size: 17px; }
.count .help { color: var(--muted); font-size: 14px; margin: 2px 0 12px; }
.stepper { display: flex; align-items: center; gap: 12px; }
.stepper button { width: 48px; height: 48px; border-radius: 999px; border: 2px solid var(--lav-300); background: var(--lav-100); color: var(--ink); font: 700 24px/1 var(--body); cursor: pointer; }
.stepper input { width: 96px; height: 52px; border-radius: 999px; border: 2px solid var(--lav-300); background: #fff; color: var(--ink); text-align: center; font: 700 24px/1 var(--body); -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus-visible, .stepper button:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.count.missing { box-shadow: 0 0 0 2px var(--coral), var(--shadow-sm); }

/* Optional tags */
.tags { border: 0; margin: 8px 0 0; padding: 0; }
.tags legend { font-weight: 600; font-size: 17px; padding: 0; margin-bottom: 4px; }
.tags .help { color: var(--muted); font-size: 14px; margin: 0 0 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-block; padding: 10px 16px; border-radius: 999px; border: 2px solid var(--divider); background: #fff; font-weight: 600; font-size: 15px; }
.chip input:checked + span { background: var(--coral-100); border-color: #ffb6a4; color: var(--coral-800); }
.chip input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }

.notice { margin: 4px 0 16px; padding: 12px 14px; border-radius: 14px; background: var(--coral-100); color: var(--coral-800); font-size: 14.5px; }

/* Bottom bar: one coral action per screen */
.actions {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 12px 22px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 70%, rgba(253, 248, 240, 0));
  display: flex; gap: 10px; justify-content: center;
}
.actions > * { max-width: 218px; }
button.primary, button.quiet { height: 52px; border-radius: 999px; font: 700 16px/1 var(--body); padding: 0 26px; cursor: pointer; flex: 1; }
button.primary { background: var(--coral); color: #fff; border: 0; box-shadow: var(--shadow-md); }
button.primary[disabled] { opacity: .55; cursor: default; }
button.quiet { background: transparent; color: var(--ink); border: 2px solid var(--divider); }
button.quiet[hidden] { display: none; }
button:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

/* End states */
.state { padding-top: 18px; }
.state h1 { font-size: 34px; }
.summary { font-size: 17px; margin: 0 0 14px; }
.blob { width: 74px; height: 74px; border-radius: 50%; background: var(--lav-500); margin: 18px 0 8px; box-shadow: inset -10px -12px 0 rgba(43, 45, 99, 0.14); }
.blob.coral { background: var(--coral); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media (max-width: 360px) { .word { font-size: 11.5px; } h1 { font-size: 27px; } }
