:root {
  --accent: #C2577A;
  --accent-soft: color-mix(in srgb, var(--accent) 12%, white);
  --ink: #1f1a1d;
  --muted: #6b6468;
  --line: #ece6e9;
  --bg: #fff;
  --good: #2f9e6a;
  --mid: #e0a030;
  --low: #d9534f;
  --radius: 16px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: Poppins, system-ui, sans-serif; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
h1 { font-size: clamp(28px, 6vw, 44px); line-height: 1.15; margin: 12px 0; }
h2 { font-size: 22px; margin: 8px 0; }
h3 { font-size: 17px; margin: 28px 0 12px; }
.app { max-width: 720px; margin: 0 auto; padding: 24px 16px 40px; min-height: 100dvh; }
.screen { animation: in .3s ease; }
.screen.center { text-align: center; padding-top: 12vh; }
@keyframes in { from { opacity: 0; transform: translateY(8px); } }
.brand { font-weight: 700; color: var(--accent); letter-spacing: .5px; text-transform: uppercase; font-size: 14px; }
.lead { color: var(--muted); font-size: 16px; line-height: 1.6; }
.note { color: var(--muted); font-size: 13px; }
.center { text-align: center; }
.opt { color: var(--muted); font-weight: 400; font-size: 12px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 12px 22px;
  font: 600 15px Poppins, sans-serif; cursor: pointer; text-decoration: none; min-height: 48px; transition: transform .1s, opacity .2s; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn.primary { background: var(--accent); color: #fff; }
.btn.ghost { background: var(--accent-soft); color: var(--accent); }
.btn.wa { background: #25D366; color: #fff; }
.btn.big { padding: 16px 32px; font-size: 17px; }
.btn.small { min-height: 34px; padding: 6px 14px; font-size: 13px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.row > .btn { flex: 1; }
.row.sticky { position: sticky; bottom: 0; background: linear-gradient(transparent, var(--bg) 30%); padding: 20px 0 8px; }
html { overflow-x: clip; }
.actions { position: sticky; bottom: 0; z-index: 5; margin: 24px calc(50% - 50vw) 0; padding: 12px calc(50vw - 50%) calc(12px + env(safe-area-inset-bottom));
  background: var(--bg); border-top: 1px solid var(--line); box-shadow: 0 -6px 16px rgba(0,0,0,.05); }
.actions .field { margin: 0 0 10px; }
.actrow { display: grid; grid-template-columns: 1fr; gap: 10px; }
.actrow .btn { width: 100%; min-height: 54px; padding: 12px 18px; font-size: 16px; white-space: nowrap; }
.btn svg { width: 22px; height: 22px; flex: none; }
#countdown { margin: 8px 0 0; }
.actrow > *, .actions > * { max-width: 688px; margin-inline: auto; }
.actrow #done { min-height: 44px; background: none; }
@media (min-width: 600px) { .actrow { grid-template-columns: 2fr 1fr; } .actrow #done { min-height: 54px; background: var(--accent-soft); } }

.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 32px 0; }
.steps li { background: var(--accent-soft); border-radius: var(--radius); padding: 16px 12px; text-align: center; font-size: 13px; }
.steps b { display: grid; place-items: center; width: 32px; height: 32px; margin: 0 auto 8px; border-radius: 50%; background: var(--accent); color: #fff; }
#home .btn.big { width: 100%; margin-top: 12px; }

.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; }
.list { margin: 0; padding-left: 18px; line-height: 1.7; font-size: 14px; }
.field { display: block; margin-top: 16px; font-size: 14px; font-weight: 500; }
.field input, .field select, input.in, select.in { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font: 15px Poppins, sans-serif; }
.field input:focus, input.in:focus { outline: 2px solid var(--accent); border-color: transparent; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 20px; font-size: 14px; line-height: 1.5; }
.check input { width: 22px; height: 22px; accent-color: var(--accent); flex: none; }

.cam { position: relative; aspect-ratio: 3 / 4; max-height: 65dvh; margin: 0 auto; border-radius: 24px; overflow: hidden; background: #111; }
.cam video, .cam img { width: 100%; height: 100%; object-fit: cover; }
.cam video { transform: scaleX(-1); }
.oval { position: absolute; inset: 12% 20% 14%; border: 3px dashed rgba(255,255,255,.85); border-radius: 50%; box-shadow: 0 0 0 999px rgba(0,0,0,.35); pointer-events: none; }
.light { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); padding: 6px 14px; border-radius: 999px; font-size: 13px; background: rgba(0,0,0,.6); color: #fff; white-space: nowrap; }
.light.warn { background: var(--mid); color: #000; }
.light:empty { display: none; }
.hint { text-align: center; color: var(--muted); font-size: 13px; }

.spinner { width: 72px; height: 72px; margin: 0 auto 20px; border: 6px solid var(--accent-soft); border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.progress { height: 8px; background: var(--accent-soft); border-radius: 999px; overflow: hidden; max-width: 360px; margin: 20px auto; }
.progress div { height: 100%; width: 0; background: var(--accent); transition: width .8s; }
.big-emoji { font-size: 56px; }

.overall { display: flex; gap: 20px; align-items: center; margin-top: 12px; }
.ring { --p: 0; flex: none; width: 130px; height: 130px; border-radius: 50%; display: grid; place-content: center; text-align: center;
  background: radial-gradient(closest-side, #fff 78%, transparent 80%), conic-gradient(var(--accent) calc(var(--p) * 1%), var(--accent-soft) 0); }
.ring span { font-size: 40px; font-weight: 700; line-height: 1; }
.ring small { color: var(--muted); }
.scores { display: grid; gap: 14px; }
.score .top { display: flex; justify-content: space-between; font-weight: 600; font-size: 14px; }
.bar { height: 10px; background: #f3eff1; border-radius: 999px; overflow: hidden; margin: 6px 0; }
.bar div { height: 100%; border-radius: 999px; transition: width 1s; }
.score p { margin: 0; font-size: 13px; color: var(--muted); }
.recgroup { margin-bottom: 18px; }
.recgroup h4 { margin: 0 0 8px; font-size: 13px; color: var(--muted); font-weight: 500; }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.product { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.product .img { aspect-ratio: 1; border-radius: 12px; background: var(--accent-soft) center / cover no-repeat; display: grid; place-items: center; font-size: 36px; }
.product b { font-size: 14px; line-height: 1.3; }
.product span { color: var(--accent); font-weight: 600; font-size: 14px; }
.product .btn { margin-top: auto; }
.empty { background: var(--accent-soft); border-radius: var(--radius); padding: 16px; color: var(--muted); font-size: 14px; }
.disclaimer { margin-top: 28px; padding: 14px 16px; border-radius: 12px; background: #fff8e8; font-size: 13px; line-height: 1.5; }
.qr { display: flex; gap: 16px; align-items: center; margin-top: 20px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); }
.qr svg { width: 120px; height: 120px; display: block; }
.qr p { margin: 0; font-size: 14px; }

@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
  .steps li { display: flex; align-items: center; gap: 12px; text-align: left; }
  .steps b { margin: 0; }
  .overall { flex-direction: column; text-align: center; }
}
