/* VitalScore by SoyLucianoFit — maqueta */

:root {
  /* Grafito cálido + un solo rojo de energía. El rojo nunca significa "mal": errores en ámbar. */
  --bg: oklch(13.5% 0.007 20);
  --bg-raised: oklch(18% 0.009 20);
  --ink: oklch(96% 0.004 20);
  --ink-2: oklch(80% 0.008 20);
  --ink-3: oklch(66% 0.008 20);
  --line: oklch(27% 0.008 20);
  --line-strong: oklch(37% 0.01 20);
  --track: oklch(26% 0.009 20);
  --accent: oklch(64% 0.225 25);
  --accent-hover: oklch(70% 0.21 25);
  --accent-soft: oklch(24% 0.05 25);
  --on-accent: oklch(14% 0.01 20);
  --attention: oklch(82% 0.14 78);
  color-scheme: dark;

  --display: "Archivo", "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: 0.8125rem;
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: clamp(1.375rem, 1.2rem + 0.8vw, 1.625rem);
  --step-3: clamp(1.9rem, 1.55rem + 1.6vw, 2.6rem);

  --radius: 14px;
  --gutter: 16px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --col: 34rem;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: var(--line-strong) transparent;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  caret-color: var(--accent);
}

::selection { background: var(--accent-soft); color: var(--ink); }

h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
p { text-wrap: pretty; }

button, input { font: inherit; color: inherit; }
button { cursor: pointer; }

a { color: var(--accent); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
[tabindex="-1"]:focus { outline: none; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Mockup strip (not part of the product) ---------- */

.mockbar[hidden] { display: none; }
.mockbar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px var(--gutter);
  background: var(--accent-soft);
  color: var(--ink-2);
  font-size: var(--step--1);
  line-height: 1.35;
  border-bottom: 1px solid var(--line);
}
.mockbar strong { color: var(--ink); font-weight: 600; }
.mockbar__toggle {
  flex: none;
  border: 1px solid var(--line-strong);
  background: var(--bg-raised);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: var(--step--1);
  font-weight: 500;
}
.mockmenu {
  position: absolute;
  top: calc(100% + 6px);
  right: var(--gutter);
  display: grid;
  min-width: 15rem;
  padding: 6px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 16px 40px -12px oklch(5% 0 0 / 0.6);
}
.mockmenu[hidden] { display: none; }
.mockmenu button {
  text-align: left;
  border: 0;
  background: none;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.875rem;
}
.mockmenu button:hover { background: var(--accent-soft); }

.mock-note {
  display: block;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  color: var(--ink-2);
  font-size: var(--step--1);
  line-height: 1.45;
}
.mock-note b { color: var(--ink); font-weight: 600; }

/* ---------- Layout ---------- */

.app {
  width: 100%;
  max-width: calc(var(--col) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter) max(32px, env(safe-area-inset-bottom));
}

.screen { display: flex; flex-direction: column; min-height: 100dvh; }
.mockbar:not([hidden]) ~ .app .screen { min-height: calc(100dvh - 40px); }
.screen.is-entering { animation: screen-in 380ms var(--ease-out) both; }
@keyframes screen-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  gap: 12px;
}
.wordmark {
  font-weight: 600;
  letter-spacing: -0.015em;
  font-size: 0.9375rem;
}
.wordmark span { font-weight: 400; color: var(--ink-3); }

.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin-left: -10px;
  padding: 0 10px;
  border: 0;
  background: none;
  color: var(--ink-2);
  font-size: 0.9375rem;
  border-radius: 10px;
}
.back:hover { color: var(--ink); }
.back svg { width: 18px; height: 18px; }

/* ---------- Buttons ---------- */

.btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  padding: 0 24px;
  border: 0;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--on-accent);
  font-size: var(--step-1);
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: background-color 160ms ease, transform 160ms var(--ease-out), opacity 160ms ease;
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: scale(0.985); }
.btn[disabled] { opacity: 0.38; cursor: not-allowed; transform: none; background: var(--accent); }
.btn svg { width: 18px; height: 18px; transition: transform 200ms var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }

.btn--quiet {
  background: none;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  font-weight: 500;
}
.btn--quiet:hover { background: var(--bg-raised); border-color: var(--ink-3); }

.actions { margin-top: auto; padding-top: 28px; }

/* ---------- Entry ---------- */

.entry { text-align: center; align-items: center; }
.entry h1 {
  margin-top: clamp(28px, 4.5vh, 44px);
  font-size: var(--step-3);
  letter-spacing: -0.03em;
  max-width: 14ch;
}
.entry__lede {
  margin-top: 16px;
  color: var(--ink-2);
  font-size: var(--step-1);
  line-height: 1.5;
  max-width: 30rem;
}
.entry__cta { width: 100%; margin-top: 28px; }
.entry__cta .hint { margin-top: 12px; color: var(--ink-3); font-size: 0.9375rem; }
.notices {
  width: 100%;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.875rem;
}
.notices li { display: flex; gap: 12px; padding: 12px 2px; border-bottom: 1px solid var(--line); }
.notices li::before {
  content: "";
  flex: none;
  width: 5px; height: 5px;
  margin-top: 0.6em;
  border-radius: 50%;
  background: var(--ink-3);
}

/* ---------- Forms ---------- */

.stack-head { padding-top: 12px; }
.stack-head h1, .q-title {
  font-size: var(--step-2);
  letter-spacing: -0.025em;
}
.stack-head p { margin-top: 10px; color: var(--ink-2); }

.field { margin-top: 28px; }
.field + .field { margin-top: 22px; }
.field label { display: block; font-weight: 500; margin-bottom: 8px; }
.input {
  width: 100%;
  min-height: 56px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg-raised);
  font-size: var(--step-1);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.input::placeholder { color: var(--ink-3); }
.input:hover { border-color: var(--ink-3); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input[aria-invalid="true"] { border-color: var(--attention); }
.input:disabled { background: var(--track); color: var(--ink-3); }
.error {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  color: var(--attention);
  font-size: 0.875rem;
  font-weight: 500;
}
.error svg { flex: none; width: 16px; height: 16px; margin-top: 2px; }

/* ---------- Question ---------- */

.progress { display: flex; align-items: center; gap: 12px; flex: none; }
.progress__label { font-size: var(--step--1); color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.progress__track { display: grid; grid-template-columns: repeat(var(--n, 13), 1fr); gap: 3px; width: 7.5rem; }
.progress__track i { height: 3px; border-radius: 2px; background: var(--track); transition: background-color 300ms ease; }
.progress__track i.is-done { background: var(--accent); }
.progress__track i.is-current { background: var(--ink-3); }

.q-head { padding-top: 16px; }
.q-help { margin-top: 12px; color: var(--ink-2); font-size: 0.9375rem; }
.q-help + .q-help { margin-top: 8px; }

.portion {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--accent-soft);
  font-size: 0.875rem;
  color: var(--ink-2);
}
.portion b { color: var(--ink); font-weight: 600; }
.portion ul { margin: 6px 0 0; padding-left: 18px; }
.portion small { display: block; margin-top: 6px; color: var(--ink-3); font-size: 0.75rem; }

.options { margin-top: 24px; border-top: 1px solid var(--line); }
.option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 60px;
  padding: 14px 4px 14px 2px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  text-align: left;
  font-size: var(--step-1);
  line-height: 1.35;
  transition: color 160ms ease;
}
.option:hover { color: var(--ink); }
.option:hover .mark { border-color: var(--ink-3); }
.option.is-muted { color: var(--ink-2); }
.option[aria-checked="true"] { font-weight: 600; }
.mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 24px; height: 24px;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  transition: background-color 180ms ease, border-color 180ms ease, transform 220ms var(--ease-out);
}
.mark--box { border-radius: 7px; }
.mark svg { width: 14px; height: 14px; color: var(--on-accent); opacity: 0; transform: scale(0.6); transition: opacity 160ms ease, transform 220ms var(--ease-out); }
[aria-pressed="true"] .mark, [aria-checked="true"] .mark { background: var(--accent); border-color: var(--accent); }
[aria-pressed="true"] .mark svg, [aria-checked="true"] .mark svg { opacity: 1; transform: none; }

.minutes { margin-top: 24px; }
.minutes__row { position: relative; }
.minutes__row .input::placeholder { font-size: var(--step-1); font-weight: 400; }
.minutes__row .input { padding-right: 64px; font-variant-numeric: tabular-nums; font-size: 1.5rem; font-weight: 600; min-height: 64px; }
.minutes__unit { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.chips-label { margin-top: 18px; font-size: var(--step--1); color: var(--ink-3); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: none;
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.chip:hover { border-color: var(--ink-3); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.minutes .options { margin-top: 20px; }

.hint-multi { margin-top: 16px; font-size: 0.875rem; color: var(--ink-3); }
.options--multi { margin-top: 10px; }

/* ---------- Ring ---------- */

.ring { position: relative; width: 100%; aspect-ratio: 1; }
.ring svg { display: block; width: 100%; height: 100%; overflow: visible; }
.ring .seg-track { stroke: var(--track); }
.ring .seg-fill { stroke: var(--accent); }
.ring__center {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}
.ring__score {
  font-size: clamp(3.75rem, 2.8rem + 5vw, 5.25rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.ring__score small { font-size: 0.32em; font-weight: 500; letter-spacing: -0.01em; color: var(--ink-3); margin-left: 2px; }
.ring__caption { margin-top: 8px; font-size: var(--step--1); color: var(--ink-3); }
.ring__partial { font-size: var(--step-2); font-weight: 600; letter-spacing: -0.02em; }


.ring .draw, .hero__ring .draw {
  stroke-dasharray: 1 1;
  stroke-dashoffset: 1;
  animation: draw 760ms var(--ease-out) forwards;
  animation-delay: calc(var(--i) * 130ms + 380ms);
}
@keyframes draw { to { stroke-dashoffset: 0; } }
.result__ring.is-revealing .ring { animation: unblur 820ms var(--ease-out) both; }
@keyframes unblur { from { filter: blur(14px); opacity: 0.85; } to { filter: blur(0); opacity: 1; } }

/* ---------- Email gate ---------- */

.gate__preview {
  position: relative;
  width: min(62vw, 220px);
  margin: 12px auto 0;
  user-select: none;
}
.gate__preview .ring, .gate__preview .ghost-rows { filter: blur(14px); opacity: 0.85; }
.ghost-rows { display: grid; gap: 10px; margin-top: 18px; }
.ghost-rows i { display: block; height: 10px; border-radius: 6px; background: var(--line-strong); }
.gate h1 { margin-top: 28px; text-align: center; font-size: var(--step-2); }
.gate .lede { margin-top: 10px; text-align: center; color: var(--ink-2); }
.consent + .consent { margin-top: 12px; }
.consent a { color: var(--accent); }
.consent {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  font-size: 0.875rem;
  color: var(--ink-2);
  cursor: pointer;
  line-height: 1.45;
}
.consent input {
  flex: none;
  appearance: none;
  width: 22px; height: 22px;
  margin: 0;
  border: 1.5px solid var(--line-strong);
  border-radius: 6px;
  background: var(--bg-raised) center / 13px no-repeat;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease;
}
.consent input:checked {
  background-color: var(--accent);
  border-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23231314' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E");
}

/* ---------- Result ---------- */

.result h1 { padding-top: 12px; font-size: var(--step-2); }
.result__ring { width: min(72vw, 288px); margin: 28px auto 0; }
.result__explain { margin-top: 24px; color: var(--ink-2); font-size: 0.9375rem; text-align: center; }
.result__legend { margin-top: 8px; color: var(--ink-3); font-size: var(--step--1); text-align: center; }

.section { margin-top: 44px; }
.section > h2 { font-size: var(--step-1); letter-spacing: -0.015em; }
.section > h2 + * { margin-top: 12px; }

.areas { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.area { padding: 16px 0 18px; border-bottom: 1px solid var(--line); }
.area__top { display: flex; align-items: center; justify-content: flex-start; gap: 12px; }
.area__name { font-weight: 600; }
.area__score { font-variant-numeric: tabular-nums; font-weight: 600; font-size: var(--step-1); }
.area__score small { font-weight: 400; color: var(--ink-3); font-size: 0.8125rem; }
.area__score { margin-left: auto; }
.area__key { flex: none; width: 26px; height: 26px; align-self: center; }
.area__key svg { display: block; width: 100%; height: 100%; }
.area__key .seg-track { stroke: var(--track); }
.area__key .seg-fill { stroke: var(--accent); }
.area__text { margin-top: 6px; padding-left: 38px; color: var(--ink-2); font-size: 0.9375rem; }
.area--missing .area__score { color: var(--ink-3); font-weight: 500; font-size: 0.9375rem; }
.linkish {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 2px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: underline;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
}

.pair { display: grid; gap: 0; border-top: 1px solid var(--line); }
.pair > div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.pair h3 { font-size: var(--step-0); font-weight: 600; letter-spacing: -0.01em; }
.pair p { margin-top: 6px; color: var(--ink-2); }
.pair .goal { margin-top: 10px; font-size: 0.875rem; color: var(--ink-3); }

.notes { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.notes li { padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 0.9375rem; }
.notes li b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 4px; font-size: var(--step-0); }
.care {
  margin-top: 16px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--ink);
  font-size: 0.9375rem;
}
.care b { font-weight: 600; }

details.method { margin-top: 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
details.method summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
details.method summary::-webkit-details-marker { display: none; }
details.method summary svg { width: 18px; height: 18px; color: var(--ink-3); transition: transform 220ms var(--ease-out); }
details.method[open] summary svg { transform: rotate(180deg); }
details.method .method__body { padding-bottom: 18px; color: var(--ink-2); font-size: 0.9375rem; }
details.method ul { margin: 8px 0; padding-left: 18px; }
details.method p + p { margin-top: 8px; }

.invite {
  margin-top: 56px;
  padding: 32px 0 8px;
  border-top: 1px solid var(--ink);
}
.invite h2 { font-size: var(--step-3); letter-spacing: -0.03em; max-width: 16ch; }
.invite p { margin-top: 14px; color: var(--ink-2); font-size: var(--step-1); }
.invite .btn { margin-top: 28px; }

.fineprint { margin-top: 36px; color: var(--ink-3); font-size: var(--step--1); line-height: 1.5; }

.stopped { text-align: left; }
.stopped h1 { margin-top: 24px; font-size: var(--step-2); }
.stopped p { margin-top: 12px; color: var(--ink-2); }

.noscript { padding: 24px var(--gutter); }

/* ---------- Wider screens ---------- */

@media (min-width: 640px) {
  :root { --gutter: 24px; }
  .screen { min-height: auto; padding-bottom: 48px; }
  .actions { margin-top: 36px; }
  .btn { width: auto; min-width: 16rem; }
  .entry__cta .btn { min-width: 18rem; }
  .q-actions .btn, .form-actions .btn { width: 100%; }
  .result__ring { width: 340px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    transition-duration: 1ms !important;
  }
}

.consent input[aria-invalid="true"] { border-color: var(--attention); }
.consent + .error { margin-top: 6px; padding-left: 34px; }

/* ---------- Aviso de privacidad ---------- */

.legal { padding-block: 8px 48px; }
.legal h1 { font-size: var(--step-2); margin-top: 12px; }
.legal .updated { margin-top: 8px; color: var(--ink-3); font-size: var(--step--1); }
.legal h2 { font-size: var(--step-1); margin-top: 32px; }
.legal p, .legal li { color: var(--ink-2); font-size: 0.9375rem; }
.legal p { margin-top: 10px; }
.legal ul { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 6px; }
.legal a { color: var(--accent); }


/* ---------- v2: figura, marca, plan ---------- */

.fig { display: block; width: 100%; height: 100%; overflow: visible; }
.fig__wave { animation: wave 2.6s linear infinite; }
@keyframes wave { to { transform: translateX(-100px); } }
.fig.is-low .fig__wave { animation-duration: 5s; }
.fig.is-low .fig__level { animation: flicker 2.8s ease-in-out infinite; }
@keyframes flicker { 50% { opacity: 0.55; } }
.fig.is-high { filter: drop-shadow(0 0 14px oklch(64% 0.225 25 / 0.5)); }
.fig__glow { transform-box: view-box; transform-origin: 100px 220px; animation: aura 3.2s ease-in-out infinite; }
@keyframes aura { 50% { transform: scale(1.06); } }
.fig__z { opacity: 0; transition: opacity 400ms ease; }
.fig.is-tired .fig__z { opacity: 1; animation: zfloat 2.4s ease-in-out infinite; }
.fig.is-tired .fig__z--2 { animation-delay: 0.6s; }
@keyframes zfloat { 50% { transform: translateY(-6px); opacity: 0.4; } }
.fig.is-low { animation: sway 3.6s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes sway { 25% { transform: rotate(-1.2deg); } 75% { transform: rotate(1.2deg); } }
.fig--idle { animation: breathe 4s ease-in-out infinite; }
@keyframes breathe { 50% { transform: translateY(-2px); } }


.q-head__row { display: grid; grid-template-columns: 1fr 86px; gap: 16px; align-items: start; }
.q-fig { width: 86px; height: 161px; margin-top: -6px; }

.label { font-weight: 500; margin: 0 0 10px; }
.chips--gender { margin-top: 0; }
.chips--gender .chip { min-height: 48px; padding: 0 18px; font-size: var(--step-0); }
.chips--gender .chip[aria-checked="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }

.textarea { min-height: 128px; padding: 14px 16px; resize: vertical; line-height: 1.5; font-size: var(--step-0); }
.counter { margin-top: 6px; text-align: right; font-size: var(--step--1); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.skip { display: flex; justify-content: center; width: 100%; margin-top: 8px; color: var(--ink-2); font-weight: 500; }

.hint-multi.is-nudge { color: var(--attention); animation: nudge 360ms var(--ease-out); }
@keyframes nudge { 30% { transform: translateX(-4px); } 60% { transform: translateX(3px); } }

.why-area { font-size: 0.9375rem; color: var(--ink-3) !important; }
.quote {
  margin: 10px 0 0;
  padding: 2px 0 2px 14px;
  border-left: 1px solid var(--accent);
  color: var(--ink);
  font-size: var(--step-1);
  line-height: 1.45;
}

.plan__lede { margin-top: 8px; color: var(--ink-2); font-size: 0.9375rem; }
.steps { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.steps li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  animation: step-in 600ms var(--ease-out) both;
  animation-delay: calc(var(--i) * 140ms + 200ms);
}
@keyframes step-in { from { opacity: 0; transform: translateY(8px); } }
.steps__n {
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}
.steps p { margin: 3px 0 0; color: var(--ink); }
.plan__video { display: block; width: 100%; margin-top: 18px; border-radius: var(--radius); background: var(--bg-raised); }

.invite__figs { display: flex; justify-content: center; gap: 40px; margin-bottom: 28px; }
.invite__figs figure { margin: 0; display: grid; justify-items: center; gap: 8px; }
.invite__figs svg { width: 92px; height: 172px; }
.invite__figs figcaption { font-size: var(--step--1); color: var(--ink-3); }
.invite { border-top-color: var(--accent); }


/* ---------- v4: tipografía de marcador, héroe, revelado, compartir ---------- */

h1, .invite h2, .ring__score, .veil__score, .area__score, .steps__n, .hero__brand b, .coach b {
  font-family: var(--display);
  font-stretch: 72%;
}
h1, .invite h2 { font-weight: 800; letter-spacing: -0.01em; line-height: 1.02; }
.entry h1 { font-size: clamp(2.6rem, 2rem + 3vw, 3.6rem); text-transform: uppercase; max-width: 12ch; }
.result h1 { font-size: clamp(1.9rem, 1.5rem + 2vw, 2.4rem); }
.invite h2 { font-size: clamp(2.1rem, 1.6rem + 2.4vw, 2.9rem); text-transform: uppercase; }
.ring__score { font-weight: 800; font-size: clamp(5rem, 3.8rem + 6vw, 6.5rem); letter-spacing: -0.02em; }
.ring__score small { font-family: var(--font); font-stretch: 100%; font-weight: 500; }
.area__score { font-weight: 800; font-size: 1.5rem; }
.area__score small { font-family: var(--font); font-stretch: 100%; }

.entry { text-align: left; align-items: stretch; }
.hero { position: relative; margin: 0 calc(var(--gutter) * -1); height: min(52vh, 470px); overflow: hidden; }
.hero__photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 18%;
  -webkit-mask-image: linear-gradient(to bottom, #000 52%, transparent 96%);
  mask-image: linear-gradient(to bottom, #000 52%, transparent 96%);
  animation: photo-in 1.2s var(--ease-out) both;
}
@keyframes photo-in { from { opacity: 0; transform: scale(1.04); } }
.hero__logo { position: absolute; top: 16px; left: var(--gutter); width: 44px; height: 44px; }
.hero__brand { position: absolute; left: var(--gutter); bottom: 6px; display: flex; align-items: center; gap: 12px; }
.hero__ring { position: relative; width: 74px; height: 74px; }
.hero__ring .seg-track { stroke: var(--line-strong); }
.hero__fig { position: absolute; inset: 14% 30% 12%; }
.hero__brand p { display: grid; line-height: 1.1; }
.hero__brand b { font-size: 1.6rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.01em; }
.hero__brand span { font-size: var(--step--1); color: var(--ink-3); }
.entry h1 { margin-top: 22px; }
.entry__lede { margin-top: 14px; }
.entry__cta { margin-top: 24px; text-align: center; }

.screen.is-stepping .q-title, .screen.is-stepping .q-help, .screen.is-stepping .portion,
.screen.is-stepping .options, .screen.is-stepping .minutes, .screen.is-stepping .field,
.screen.is-stepping .hint-multi, .screen.is-stepping .q-actions {
  animation: step-slide 420ms var(--ease-out) both;
}
.screen.is-stepping .options, .screen.is-stepping .minutes, .screen.is-stepping .field { animation-delay: 60ms; }
@keyframes step-slide { from { opacity: 0; transform: translateX(18px); } }

.veil {
  position: fixed; inset: 0; z-index: 40;
  display: grid; place-content: center; justify-items: center; gap: 24px;
  background: var(--bg);
  animation: veil-out 600ms var(--ease-out) 2500ms forwards;
}
@keyframes veil-out { to { opacity: 0; visibility: hidden; } }
.veil__ring { position: relative; width: min(78vw, 340px); }
.veil__ring .ring .draw { animation-delay: calc(var(--i) * 150ms + 250ms); }
.veil__score { font-weight: 800; font-size: clamp(5.5rem, 4rem + 8vw, 7.5rem); opacity: 0; animation: pop 700ms var(--ease-out) 1450ms forwards; }
@keyframes pop { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: none; } }
.veil__center { transition: none; }
.veil__fig { width: 70px; height: 131px; margin: 18px auto 0; opacity: 0; animation: fade-up 600ms var(--ease-out) 900ms forwards; }
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.veil__label { margin-top: 6px; color: var(--ink-2); font-size: var(--step-1); opacity: 0; animation: fade-up 500ms var(--ease-out) 300ms forwards; }

.share { display: flex; justify-content: center; margin-top: 18px; }
.share .btn { width: auto; min-height: 48px; font-size: var(--step-0); gap: 8px; }
.btn--quiet svg { width: 18px; height: 18px; }

.coach { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.coach img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; border: 1px solid var(--line-strong); }
.coach p { display: grid; line-height: 1.2; }
.coach b { font-size: 1.15rem; font-weight: 800; text-transform: uppercase; }
.coach span { font-size: var(--step--1); color: var(--ink-3); }

.cardview { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; background: oklch(8% 0.005 20 / 0.86); }
.cardview__inner { display: grid; justify-items: center; gap: 14px; max-width: 360px; text-align: center; }
.cardview img { width: min(72vw, 300px); border-radius: 14px; box-shadow: 0 24px 60px -20px oklch(0% 0 0 / 0.8); }
.cardview p { color: var(--ink-2); font-size: 0.9375rem; }

@media (prefers-reduced-motion: reduce) { .veil { display: none; } }


/* ---------- v6: profundidad ---------- */

body {
  background:
    radial-gradient(120% 60% at 50% -10%, oklch(22% 0.05 25 / 0.55), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: radial-gradient(60% 80% at 30% 100%, oklch(64% 0.225 25 / 0.18), transparent 70%);
  pointer-events: none;
}
.btn:not(.btn--quiet) { box-shadow: 0 8px 20px -10px oklch(4% 0 0 / 0.8); }
.btn:not(.btn--quiet):hover { box-shadow: 0 12px 26px -10px oklch(4% 0 0 / 0.9); }
.option { transition: color 160ms ease, background-color 160ms ease, padding 200ms var(--ease-out); }
.option:hover { background: oklch(100% 0 0 / 0.025); }
.option[aria-checked="true"] { padding-left: 10px; background: linear-gradient(90deg, oklch(64% 0.225 25 / 0.12), transparent 70%); }

/* ---------- v7: resultado enfocado, correo, botón fijo, computadora ---------- */

/* Prioridad: la pieza principal del resultado */
.focus {
  margin-top: 36px;
  padding: 22px 20px 8px;
  border-radius: 18px;
  background: linear-gradient(180deg, oklch(22% 0.045 25), var(--bg-raised) 55%);
  border: 1px solid oklch(34% 0.07 25);
}
.focus__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 6px; }
.focus__head h2 { font-family: var(--display); font-stretch: 72%; font-weight: 800; font-size: clamp(2rem, 1.6rem + 2vw, 2.6rem); text-transform: uppercase; line-height: 1; letter-spacing: 0; }
.focus__score { font-family: var(--display); font-stretch: 72%; font-weight: 800; font-size: 2rem; font-variant-numeric: tabular-nums; }
.focus__score small { font-family: var(--font); font-stretch: 100%; font-weight: 500; font-size: 0.8125rem; color: var(--ink-3); }
.focus .quote { margin-top: 16px; }
.focus__goal { margin-top: 12px; color: var(--ink-2); }
.focus__fact { margin-top: 14px; color: var(--ink); font-size: var(--step-1); line-height: 1.45; }
.focus__why { margin-top: 10px; color: var(--ink-3); font-size: 0.9375rem; }
.focus__plan { margin-top: 26px; font-size: var(--step-0); font-weight: 600; }
.focus .steps { margin-top: 10px; border-top-color: oklch(30% 0.03 25); }
.focus .steps li { border-bottom-color: oklch(30% 0.03 25); }
.focus .steps li:last-child { border-bottom: 0; }

.strength { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; color: var(--ink-2); font-size: 0.9375rem; }
.strength svg { flex: none; width: 18px; height: 18px; margin-top: 2px; padding: 3px; border-radius: 50%; background: var(--accent); color: var(--on-accent); }
.strength b { color: var(--ink); font-weight: 600; }

.section__hint { margin-top: 6px !important; color: var(--ink-3); font-size: var(--step--1); }
.areas { margin-top: 14px !important; border-top: 1px solid var(--line); }
details.area { padding: 0; border-bottom: 1px solid var(--line); }
details.area summary { list-style: none; cursor: pointer; min-height: 60px; padding: 10px 0; }
details.area summary::-webkit-details-marker { display: none; }
details.area summary > svg:last-child { flex: none; width: 18px; height: 18px; color: var(--ink-3); transition: transform 220ms var(--ease-out); }
details.area[open] summary > svg:last-child { transform: rotate(180deg); }
details.area .area__name { font-weight: 600; }
details.area .area__text { margin: 0 0 16px; }
details.area .area__fix { margin: -8px 0 10px 38px; }
.area__score { margin-right: 4px; }
.method__count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-left: 8px; margin-right: auto; padding: 0 6px; border-radius: 999px; background: var(--track); color: var(--ink-2); font-size: 0.75rem; font-variant-numeric: tabular-nums; }
.method .notes { border-top: 0; }

/* Botón fijo de agendar */
.stickycta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 30;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(to top, var(--bg) 60%, transparent);
  transform: translateY(110%);
  transition: transform 360ms var(--ease-out);
  pointer-events: none;
}
.stickycta.is-on { transform: none; pointer-events: auto; }
.stickycta .btn { width: 100%; max-width: 34rem; margin: 0 auto; display: flex; }

/* Pantalla del correo */
.gate__stage { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 8px; }
.gate__fig { width: 70px; height: 131px; flex: none; }
.gate__preview { width: min(48vw, 190px); margin: 0; }
.gate__lock {
  position: absolute; inset: 0; margin: auto;
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--bg-raised); border: 1px solid var(--line-strong); color: var(--ink);
}
.gate__lock svg { width: 22px; height: 22px; }
.gate h1 { margin-top: 24px; text-align: left; font-size: clamp(1.9rem, 1.5rem + 2vw, 2.4rem); }
.perks { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.perks li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); }
.perks svg { flex: none; width: 20px; height: 20px; padding: 4px; border-radius: 50%; background: var(--accent); color: var(--on-accent); margin-top: 1px; }
.gate .field { margin-top: 26px; }
.gate__trust { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 14px; color: var(--ink-3); font-size: var(--step--1); }
.gate__trust svg { width: 14px; height: 14px; }

/* ---------- Computadora ---------- */
@media (min-width: 960px) {
  .app { max-width: 1120px; padding-inline: 40px; }
  .screen:not(.entry):not(.result) { max-width: 36rem; margin-inline: auto; }

  .entry { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 30rem); column-gap: clamp(40px, 6vw, 96px); align-items: center; min-height: 100dvh; padding-block: 40px; }
  .entry .hero { margin: 0; height: min(84vh, 780px); border-radius: 24px; }
  .entry .hero__photo { -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%); mask-image: linear-gradient(to bottom, #000 70%, transparent 100%); }
  .entry .hero__logo { top: 24px; left: 24px; width: 56px; height: 56px; }
  .entry .hero__brand { left: 24px; bottom: 20px; }
  .entry .hero__ring { width: 96px; height: 96px; }
  .entry h1 { margin-top: 0; font-size: clamp(3.4rem, 2rem + 2.6vw, 4.6rem); }
  .entry__cta { text-align: left; }
  .entry__cta .btn { width: 100%; }

  .q-head__row { grid-template-columns: 1fr 120px; }
  .q-fig { width: 120px; height: 225px; }

  .result__grid { display: grid; grid-template-columns: 380px minmax(0, 1fr); column-gap: 72px; align-items: start; }
  .result__hero { position: sticky; top: 24px; }
  .result__ring { width: 100%; }
  .result__body { max-width: 40rem; padding-top: 12px; }
  .result__body .focus { margin-top: 0; }
  .stickycta { display: none; }
}
.invite__more { display: flex; justify-content: center; margin-top: 10px; color: var(--ink-2); }

/* ---------- VitalScore overdrive: escenario, controles táctiles, espejo ---------- */
.stage { display: grid; justify-items: center; gap: 10px; padding-top: 6px; }
.stage__body { position: relative; width: 150px; aspect-ratio: 1; display: grid; place-items: center; }
.stage__ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.st-seg { fill: none; stroke: var(--track); stroke-width: 9; transition: stroke 500ms ease; }
.st-seg.is-done { stroke: oklch(64% 0.225 25 / 0.55); }
.st-seg.is-current { stroke: var(--accent); animation: seg-pulse 1.6s ease-in-out infinite; }
@keyframes seg-pulse { 50% { stroke-opacity: 0.45; } }
.stage .q-fig { width: 58px; height: 108px; margin: 0; }
.stage__pulse { position: absolute; inset: 14%; border-radius: 50%; pointer-events: none; opacity: 0; }
.stage.is-charge .stage__pulse { animation: charge 900ms var(--ease-out); background: radial-gradient(circle, oklch(64% 0.225 25 / 0.55), transparent 65%); }
.stage.is-drain .stage__pulse { animation: drain 900ms var(--ease-out); background: radial-gradient(circle, oklch(40% 0.01 20 / 0.7), transparent 65%); }
@keyframes charge { from { opacity: 1; transform: scale(0.6); } to { opacity: 0; transform: scale(1.5); } }
@keyframes drain { from { opacity: 0; transform: scale(1.4); } 40% { opacity: 1; } to { opacity: 0; transform: scale(0.5); } }
.coach-msg { display: flex; gap: 10px; align-items: flex-start; max-width: 30rem; padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: var(--bg-raised); border: 1px solid var(--line); animation: fade-up 500ms var(--ease-out) both; }
.coach-msg img { flex: none; width: 30px; height: 30px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; filter: grayscale(1); }
.coach-msg p { color: var(--ink); font-size: 0.875rem; line-height: 1.45; }
.question .q-head { padding-top: 12px; text-align: left; }

.tactile { margin-top: 18px; }
.tactile__value { display: flex; align-items: baseline; gap: 10px; justify-content: center; }
.tactile__value b { font-family: var(--display); font-stretch: 72%; font-weight: 800; font-size: clamp(3.4rem, 2.6rem + 4vw, 4.6rem); line-height: 1; font-variant-numeric: tabular-nums; }
.tactile__value span { color: var(--ink-3); font-size: 0.9375rem; }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; margin-top: 12px; background: none; cursor: pointer; }
.range::-webkit-slider-runnable-track { height: 10px; border-radius: 999px; background: linear-gradient(90deg, oklch(40% 0.01 20), var(--accent)); }
.range::-moz-range-track { height: 10px; border-radius: 999px; background: linear-gradient(90deg, oklch(40% 0.01 20), var(--accent)); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 34px; height: 34px; margin-top: -12px; border-radius: 50%; background: var(--ink); border: 4px solid var(--accent); box-shadow: 0 6px 16px -6px oklch(4% 0 0 / 0.8); }
.range::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); border: 4px solid var(--accent); }
.range:disabled { opacity: 0.35; }
.range__ticks { display: flex; justify-content: space-between; color: var(--ink-3); font-size: 0.75rem; margin-top: 2px; }

.dial { position: relative; width: min(66vw, 250px); aspect-ratio: 1; margin: 0 auto; touch-action: none; cursor: grab; border-radius: 50%; }
.dial:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.dial__svg { width: 100%; height: 100%; display: block; overflow: visible; }
.dial__track { fill: none; stroke: var(--track); stroke-width: 22; }
.dial__fill { fill: none; stroke: var(--accent); stroke-width: 22; stroke-linecap: round; }
.dial__knob { fill: var(--ink); stroke: var(--accent); stroke-width: 5; }
.dial__center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; }
.dial__center b { font-family: var(--display); font-stretch: 72%; font-weight: 800; font-size: clamp(3rem, 2.4rem + 3vw, 4rem); line-height: 1; font-variant-numeric: tabular-nums; }
.dial__center span { color: var(--ink-3); font-size: 0.8125rem; }
.dial.is-off { opacity: 0.35; }
.dial__fine { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.dial__fine span { color: var(--ink-3); font-size: 0.8125rem; text-align: center; }
.dial__fine .chip { min-width: 56px; min-height: 48px; font-family: var(--display); font-stretch: 72%; font-weight: 800; font-size: 1.2rem; }

.portions { display: flex; justify-content: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.portion-dot { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line-strong); cursor: pointer; transition: background 200ms ease, border-color 200ms ease, transform 200ms var(--ease-out); }
.portion-dot.is-full { background: var(--accent); border-color: var(--accent); transform: scale(1.06); }
.portion-dot.is-half { background: linear-gradient(90deg, var(--accent) 50%, transparent 50%); border-color: var(--accent); }

.mirror { margin-top: 32px; padding: 22px 20px; border-radius: 18px; border: 1px solid var(--line-strong); background: var(--bg-raised); }
.mirror h2 { font-family: var(--display); font-stretch: 72%; font-weight: 800; text-transform: uppercase; font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.3rem); line-height: 1; }
.mirror h2 em { font-style: normal; color: var(--accent); }
.mirror ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.mirror li { position: relative; padding-left: 20px; color: var(--ink); font-size: var(--step-0); line-height: 1.45; }
.mirror li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 10px; height: 2px; background: var(--accent); }
.mirror__want { margin-top: 16px; color: var(--ink); font-size: var(--step-1); line-height: 1.45; }
.mirror__want span { display: block; color: var(--ink-3); font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 4px; }
.mirror__turn { margin-top: 14px; color: var(--ink-2); font-size: 0.9375rem; }
.result__body .mirror + .focus { margin-top: 18px; }

@media (min-width: 960px) {
  .stage__body { width: 180px; }
  .stage .q-fig { width: 70px; height: 130px; }
}

/* ---------- Pruebas en vivo ---------- */
.tests .lede, .chair .lede, .rt .lede { margin-top: 12px; color: var(--ink-2); }
.tests__hero { display: flex; justify-content: center; margin: 4px 0 18px; }
.tests__hero svg { width: 96px; height: auto; }
.tests__list, .tsteps { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.tests__list li { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-raised); }
.tests__list b { font-family: var(--display); font-stretch: 72%; font-weight: 800; text-transform: uppercase; font-size: var(--step-1); color: var(--accent); }
.tests__list span { color: var(--ink-2); line-height: 1.45; }
.tsteps { counter-reset: s; margin-top: 18px; }
.tsteps li { counter-increment: s; display: grid; grid-template-columns: 2rem 1fr; gap: 10px; line-height: 1.45; color: var(--ink-2); }
.tsteps li::before { content: counter(s); font-family: var(--display); font-stretch: 72%; font-weight: 800; font-size: 1.5rem; line-height: 1; color: var(--accent); }
.chair .care { margin-top: 18px; }
.actions .btn + .btn { margin-top: 10px; }

.live { position: relative; margin-top: 8px; border-radius: var(--radius); background: var(--bg-raised); border: 1px solid var(--line); overflow: hidden; min-height: 60vh; display: flex; flex-direction: column; }
.live--cam { background: #000; }
.live__video, .live__canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.live--cam .live__video { opacity: .55; filter: grayscale(1); }
.live__hud { position: relative; display: grid; justify-items: center; gap: 10px; padding: 28px 16px 20px; text-align: center; }
.live__timer { position: relative; width: 88px; height: 88px; display: grid; place-items: center; }
.live__timer span { font-family: var(--display); font-stretch: 72%; font-weight: 800; font-size: 2rem; font-variant-numeric: tabular-nums; }
.tring { position: absolute; inset: 0; transform: rotate(-90deg); }
.tring circle { fill: none; stroke-width: 8; }
.tring__track { stroke: var(--track); }
.tring__fill { stroke: var(--accent); stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset .1s linear; }
.live__count { display: grid; justify-items: center; margin: 0; }
.live__count b { font-family: var(--display); font-stretch: 72%; font-weight: 800; font-size: clamp(5rem, 4rem + 8vw, 7.5rem); line-height: .9; font-variant-numeric: tabular-nums; }
.live__count span { color: var(--ink-2); text-transform: uppercase; letter-spacing: .08em; font-size: var(--step--1); }
.live__status { margin: 4px 0 0; min-height: 2.9em; max-width: 26rem; color: var(--ink); line-height: 1.45; }
.live--cam .live__status { background: oklch(13.5% 0.007 20 / .75); padding: 8px 12px; border-radius: 10px; }
.live__tap { margin: auto 12px 12px; flex: 1; min-height: 180px; border: 2px dashed var(--line-strong); border-radius: var(--radius); background: transparent; color: var(--ink-2); font: 600 var(--step-1)/1.3 var(--font); touch-action: manipulation; -webkit-user-select: none; user-select: none; cursor: pointer; }
.live__tap:not(:disabled) { border-style: solid; border-color: var(--accent); color: var(--ink); background: var(--accent-soft); }
.live__tap:disabled { opacity: .5; cursor: default; }
.live__tap.is-hit { animation: taphit .25s var(--ease-out); }
@keyframes taphit { 0% { transform: scale(.97); background: var(--accent); color: var(--on-accent); } 100% { transform: none; } }

.rt__progress { margin: 8px 0 14px; text-align: center; color: var(--ink-2); font-size: var(--step--1); text-transform: uppercase; letter-spacing: .08em; }
.rt__pad { display: grid; place-items: center; width: min(78vw, 300px); aspect-ratio: 1; margin: 0 auto; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--bg-raised); color: var(--ink-2); font: 600 var(--step-1)/1.3 var(--font); touch-action: manipulation; -webkit-user-select: none; user-select: none; cursor: pointer; }
.rt__pad.is-go { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-size: var(--step-2); }
.rt__pad.is-early { border-color: var(--attention); color: var(--attention); }
.rt__pad.is-hit { color: var(--ink); font-family: var(--display); font-stretch: 72%; font-weight: 800; font-size: 2.6rem; }

.livetests { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.livetests li { display: grid; gap: 6px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-raised); }
.livetests b { font-family: var(--display); font-stretch: 72%; font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.livetests span { color: var(--ink); line-height: 1.35; }
.livetests small { display: block; margin-top: 4px; color: var(--ink-3); font-size: var(--step--1); }
@media (prefers-reduced-motion: reduce) { .live__tap.is-hit { animation: none; } .tring__fill { transition: none; } }
.repfix { display: flex; align-items: center; gap: 10px; margin-top: 14px; color: var(--ink-2); font-size: var(--step--1); }
.repfix span { flex: 1; }
.repfix button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--bg-raised); color: var(--ink); font: 700 1.4rem/1 var(--font); cursor: pointer; }
.repfix button:active { background: var(--accent-soft); }
.live__ready { width: auto; margin-top: 6px; }
.live__ready[hidden] { display: none !important; }
.live__ready:disabled { opacity: .45; }
