/* ==========================================================================
   Evofit · quiz, análise, e-mail e resultado
   Mobile: faixa de foto no topo (--band) que abre e fecha entre as áreas.
   Desktop (960px+): painel de foto fixo à esquerda (--panel-w).
   ========================================================================== */

@property --band { syntax: '<length>'; inherits: true; initial-value: 0px; }
@property --panel-w { syntax: '<length>'; inherits: true; initial-value: 0px; }

:root {
  --water: oklch(0.74 0.085 200);
  --water-deep: oklch(0.46 0.07 205);
  --topbar-h: 68px;
}

body { transition: background-color 900ms var(--ease-out), --panel-w 800ms var(--ease-out); }
body[data-view='analise'] { background: var(--olive-night); }

/* ---------- Topo e progresso ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  height: calc(var(--topbar-h) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) var(--gutter) 0;
  display: flex; align-items: center; gap: 12px;
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.topbar::before {
  content: ''; position: absolute; inset: 0 0 -28px 0; z-index: -1; pointer-events: none;
  background: linear-gradient(var(--bg) 40%, oklch(0.165 0.008 7 / 0));
  transition: opacity 500ms var(--ease-out);
}
body[data-band='on'] .topbar::before { opacity: 0; }
body[data-view='analise'] .topbar::before { background: linear-gradient(var(--olive-night) 40%, oklch(0.294 0.077 7 / 0)); }
.topbar__back { background: oklch(0.165 0.008 7 / 0.55); }
.topbar__count {
  margin-left: auto; font-size: 0.9rem; font-weight: 600; color: var(--text-2);
  font-variant-numeric: tabular-nums; letter-spacing: 0.02em;
}
.topbar__count [data-qnow] { color: var(--text); }

.progress {
  position: fixed; z-index: 61;
  top: calc(var(--topbar-h) - 6px + env(safe-area-inset-top)); left: var(--gutter); right: var(--gutter);
  height: 4px; display: grid; gap: 4px;
  grid-template-columns: 4fr 2fr 3fr 3fr 3fr 3fr 2fr 3fr;
}
.progress[hidden] { display: none; }
.progress__seg { position: relative; overflow: hidden; border-radius: 4px; background: oklch(0.945 0.018 7 / 0.14); }
.progress__seg > span {
  position: absolute; inset: 0; border-radius: inherit; background: var(--sage);
  transform-origin: left center; transform: scaleX(0);
  transition: transform 600ms var(--ease-out);
}

/* ---------- Layout ---------- */
.layout {
  --band: 0px;
  display: grid;
  grid-template-rows: var(--band) auto;
  min-height: 100dvh;
  overflow-x: clip;
  transition: --band 700ms var(--ease-out);
}

.panel { position: relative; overflow: hidden; grid-row: 1; background: var(--bg-2); transition: background-color 900ms var(--ease-out); }
.panel__media > * {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; transform: scale(1.08);
  transition: opacity 900ms var(--ease-out), transform 8s var(--ease-out);
}
.panel__media > picture > img, .panel__media > img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: saturate(0.88) contrast(1.04) brightness(0.9); }
.panel__media > .is-on { opacity: 1; transform: scale(1); }
.panel__shade { position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, oklch(0.165 0.008 7 / 0.7) 0%, oklch(0.165 0.008 7 / 0) 26%, oklch(0.165 0.008 7 / 0) 52%, var(--bg) 100%);
}
.panel__shade::after { content: ''; position: absolute; inset: 0; background: var(--olive-deep); mix-blend-mode: soft-light; opacity: 0.6; }
.panel__lines { position: absolute; inset: auto 0 0 0; width: 100%; height: 60%; pointer-events: none; opacity: 0.8; }
.panel__caption { display: none; }

body[data-view='analise'] .panel { background: radial-gradient(120% 90% at 30% 20%, var(--olive) 0%, var(--olive-deep) 40%, var(--olive-night) 100%); }
body[data-view='analise'] .panel__media > * { opacity: 0; }
body[data-view='analise'] .panel__shade { opacity: 0.35; }

/* Chips flutuantes do hero (ecoam as telas do app) */
.panel__chips { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 500ms var(--ease-out); }
body[data-view='hero'] .panel__chips { opacity: 1; }
.float-chip {
  position: absolute; display: flex; align-items: center; gap: 10px;
  padding: 9px 16px 9px 9px; border-radius: 18px;
  background: oklch(0.2 0.012 7 / 0.9); border: 1px solid oklch(1 0 0 / 0.08);
  box-shadow: var(--shadow-float); font-weight: 700; font-size: 0.98rem; line-height: 1.15;
  animation: chip-in 900ms var(--ease-expo) both, float 6s var(--ease-in-out) infinite alternate;
}
.float-chip .ico { width: 36px; height: 36px; padding: 8px; border-radius: 11px; background: var(--olive-deep); color: var(--sage-hi); }
.float-chip small { display: block; font-size: 0.7rem; font-weight: 600; color: var(--muted); letter-spacing: 0.02em; }
.float-chip--a { top: 26%; left: 5%; animation-delay: 700ms, 0s; }
.float-chip--b { top: 50%; right: 5%; animation-delay: 850ms, -2s; }
.float-chip--c { bottom: 16%; left: 12%; animation-delay: 1s, -4s; display: none; }
.float-ring svg { width: 44px; height: 44px; transform: rotate(-90deg); }
.float-ring circle { fill: none; stroke: oklch(1 0 0 / 0.1); stroke-width: 5; }
.float-ring .float-ring__bar { stroke: var(--sage); stroke-linecap: round; stroke-dasharray: 113.1; stroke-dashoffset: 113.1; animation: ring72 1.6s var(--ease-out) 1.3s forwards; }
.float-ring strong { display: block; font-size: 1.05rem; }
@keyframes chip-in { from { opacity: 0; transform: translateY(18px) scale(0.92); } }
@keyframes float { to { translate: 0 -10px; } }
@keyframes ring72 { to { stroke-dashoffset: 31.7; } }

/* Arte da água (área sem foto) */
.water-art { background: radial-gradient(120% 80% at 50% 0%, oklch(0.3 0.045 195), oklch(0.18 0.02 180)); overflow: hidden; }
.water-art__body {
  position: absolute; inset: 0;
  transform: translateY(calc((1 - var(--level, 0.35)) * 100%));
  transition: transform 1.4s var(--ease-out);
  background: linear-gradient(180deg, oklch(0.6 0.075 200 / 0.85), var(--water-deep));
}
.water-art__wave {
  position: absolute; left: 0; width: 200%; height: 46px; top: -44px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 46' preserveAspectRatio='none'%3E%3Cpath d='M0 23 C 50 0, 150 0, 200 23 S 350 46, 400 23 V46 H0Z' fill='%236aa5ad'/%3E%3C/svg%3E") repeat-x 0 0 / 50% 100%;
  animation: wave-x 9s linear infinite;
}
.water-art__wave--back { top: -52px; opacity: 0.45; animation-duration: 14s; animation-direction: reverse; }
.water-art__wave--front { opacity: 0.9; }
.bubble { position: absolute; bottom: -20px; left: var(--x); width: var(--s); height: var(--s); border-radius: 50%; border: 1.5px solid oklch(1 0 0 / 0.5); animation: bubble 7s var(--ease-in) var(--d) infinite; }
@keyframes wave-x { to { transform: translateX(-50%); } }
@keyframes bubble { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 0.8; } 100% { transform: translateY(-70vh); opacity: 0; } }

/* ---------- Palco e telas ---------- */
.stage {
  grid-row: 2; position: relative; min-width: 0; overflow-x: clip;
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr;
  min-height: calc(100dvh - var(--band));
  padding: max(18px, calc(var(--topbar-h) + 20px - var(--band))) 0 0;
  outline: none;
}
.screen { grid-area: 1 / 1; min-width: 0; display: flex; flex-direction: column; }
.screen[hidden] { display: none; }
.screen__inner { width: 100%; max-width: 600px; margin: 0 auto; padding: 0 var(--gutter); flex: 1; display: flex; flex-direction: column; }
:root { --enter-delay: 160ms; }
.screen.is-active:not(.screen--hero) { animation: screen-in 460ms var(--ease-out) var(--enter-delay) both; }
.screen.is-active[data-dir='back'] { animation-name: screen-in-back; }
.screen.is-leaving { pointer-events: none; animation: screen-out 150ms var(--ease-in) forwards; }
.screen.is-leaving[data-dir='back'] { animation-name: screen-out-back; }
@keyframes screen-in { from { opacity: 0; transform: translateX(22px); } }
@keyframes screen-in-back { from { opacity: 0; transform: translateX(-22px); } }
@keyframes screen-out { to { opacity: 0; transform: translateX(-16px); } }
@keyframes screen-out-back { to { opacity: 0; transform: translateX(16px); } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

.screen.is-active .q-chip { animation: rise 600ms var(--ease-out) calc(var(--enter-delay) + 40ms) both; }
.screen.is-active .q-title { animation: rise 700ms var(--ease-out) calc(var(--enter-delay) + 80ms) both; }
.screen.is-active .q-sub { animation: rise 700ms var(--ease-out) calc(var(--enter-delay) + 130ms) both; }
.screen.is-active .opt,
.screen.is-active .field-form,
.screen.is-active .glasses,
.screen.is-active .ruler-wrap { animation: rise 620ms var(--ease-out) both; animation-delay: calc(var(--enter-delay) + 170ms + var(--i, 0) * 45ms); }

.q-chip {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  padding: 6px 12px 6px 8px; border-radius: var(--r-pill);
  background: var(--surface-2); color: var(--text-2);
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.02em;
}
.q-chip .ico { width: 18px; height: 18px; color: var(--sage); }
.q-title { margin-top: 16px; font-size: var(--fs-headline); line-height: 1.12; letter-spacing: -0.025em; outline: none; }
.q-name { color: var(--sage); }
.q-sub { margin-top: 10px; color: var(--muted); font-size: 1rem; line-height: 1.6; max-width: 52ch; }

/* ---------- Toque ---------- */
.opt, .glass, .chip-btn, .icon-btn, .btn, .area__head {
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: manipulation;
}

/* ---------- Opções ---------- */
.opts { display: grid; gap: 10px; margin-top: 28px; }
.opt {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px;
  padding: 14px 16px 14px 18px; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--line-soft);
  text-align: left; font-weight: 600; font-size: 1rem; line-height: 1.35; color: var(--text);
  transition: border-color var(--t-base) var(--ease-out), background-color var(--t-base) var(--ease-out), transform var(--t-fast) var(--ease-out), box-shadow var(--t-base) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.opt__label { flex: 1; }
.opt__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; flex: none; background: var(--surface-2); color: var(--sage); transition: background-color var(--t-base) var(--ease-out), color var(--t-base) var(--ease-out); }
.opt__icon .ico { width: 22px; height: 22px; }
.opt__swatch { width: 30px; height: 30px; border-radius: 50%; flex: none; background: var(--sw); box-shadow: inset 0 -6px 10px oklch(0 0 0 / 0.18), inset 0 3px 6px oklch(1 0 0 / 0.35), 0 0 0 3px var(--surface-2); }
.opt__mark { position: relative; width: 24px; height: 24px; flex: none; border-radius: 50%; border: 1.5px solid var(--line); transition: background-color var(--t-base) var(--ease-out), border-color var(--t-base) var(--ease-out); }
.opt__mark svg { position: absolute; inset: 3px; fill: none; stroke: var(--on-sage); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 20; stroke-dashoffset: 20; transition: stroke-dashoffset 320ms var(--ease-out) 80ms; }
@media (hover: hover) {
  .opt:hover { border-color: oklch(0.727 0.106 7 / 0.45); background: var(--surface-2); }
  .opt:hover .opt__icon { background: var(--olive-deep); }
}
.opt:active { transform: scale(0.985); }
.opt:focus-visible { outline: none; border-color: var(--sage); box-shadow: var(--ring-sage); }
.opt[aria-checked='true'] { background: var(--olive-deep); border-color: var(--sage); }
.opt[aria-checked='true'] .opt__mark { background: var(--sage); border-color: var(--sage); }
.opt[aria-checked='true'] .opt__mark svg { stroke-dashoffset: 0; }
.opt[aria-checked='true'] .opt__icon { background: var(--sage); color: var(--on-sage); }
.opt.is-picked { animation: picked 420ms var(--ease-out); box-shadow: 0 12px 34px -14px oklch(0.727 0.106 7 / 0.6); }
@keyframes picked { 40% { transform: scale(1.02); } }
.ripple { position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; background: oklch(0.727 0.106 7 / 0.3); transform: scale(0); animation: ripple 650ms var(--ease-out) forwards; }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }

/* Cartões (sexo) */
.opts--cards { grid-template-columns: 1fr 1fr; }
.opts--cards .opt { flex-direction: column; align-items: flex-start; justify-content: space-between; min-height: 132px; padding: 16px; gap: 18px; }
.opts--cards .opt__icon { width: 52px; height: 52px; border-radius: 16px; }
.opts--cards .opt__icon .ico { width: 28px; height: 28px; }
.opts--cards .opt__label { font-size: 1.1rem; flex: none; }
.opts--cards .opt__mark { position: absolute; top: 14px; right: 14px; }
.opts--cards .opt:last-child { grid-column: 1 / -1; min-height: 64px; flex-direction: row; align-items: center; }
.opts--cards .opt:last-child .opt__icon { width: 42px; height: 42px; border-radius: 12px; }
.opts--cards .opt:last-child .opt__mark { position: relative; top: auto; right: auto; }

/* Chips (idade) */
.opts--chips { grid-template-columns: repeat(2, 1fr); }
.opts--chips .opt { justify-content: center; text-align: center; min-height: 60px; border-radius: var(--r-pill); font-size: 1.05rem; }
.opts--chips .opt__mark { display: none; }
.opts--chips .opt:last-child { grid-column: 1 / -1; }

/* ---------- Campo de texto ---------- */
.field-form { display: grid; gap: 12px; margin-top: 28px; }
.field-label { font-weight: 600; font-size: 0.9rem; color: var(--text-2); }
.field {
  width: 100%; height: 62px; padding: 0 20px; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--line);
  font-size: 1.15rem; font-weight: 600; color: var(--text);
  transition: border-color var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out);
}
.field::placeholder { color: oklch(0.68 0.016 7 / 0.7); font-weight: 400; }
.field:focus { outline: none; border-color: var(--sage); box-shadow: var(--ring-sage); }
.field[aria-invalid='true'] { border-color: var(--terra); }
.field-error { color: var(--terra); font-size: 0.9rem; font-weight: 600; }
.field-form .btn { margin-top: 8px; }
.shake { animation: shake 380ms var(--ease-out); }
@keyframes shake { 20% { transform: translateX(-7px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(2px); } }

.screen__actions { margin-top: auto; padding: 28px 0 calc(20px + env(safe-area-inset-bottom)); position: sticky; bottom: 0; z-index: 2;
  background: linear-gradient(oklch(0.165 0.008 7 / 0), var(--bg) 38%); }

/* ---------- Copos ---------- */
.glasses { margin-top: 24px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.glasses__readout { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.glasses__readout strong { font-size: clamp(3rem, 11vw, 4.2rem); line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; display: inline-block; }
.glasses__readout > span:not(.glasses__liters) { font-size: 1.2rem; font-weight: 600; color: var(--text-2); }
.glasses__liters { width: 100%; color: var(--water); font-weight: 600; }
.bump { animation: bump 380ms var(--ease-out); }
@keyframes bump { 35% { transform: translateY(-5px) scale(1.06); } }
.glasses__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px 10px; }
.glass { aspect-ratio: 40 / 52; color: var(--line); transition: transform var(--t-fast) var(--ease-out), color var(--t-base) var(--ease-out); -webkit-tap-highlight-color: transparent; }
.glass svg { width: 100%; height: 100%; overflow: visible; }
.glass__outline { fill: oklch(1 0 0 / 0.03); stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.glass__water { transform: translateY(52px); transition: transform 700ms var(--ease-out) var(--d, 0ms); }
.glass__wave { fill: var(--water); animation: wave-glass 2.4s linear infinite; }
.glass.is-full { color: oklch(0.74 0.085 200 / 0.8); }
.glass.is-full .glass__water { transform: translateY(12px); }
.glass:active { transform: scale(0.92); }
@media (hover: hover) { .glass:hover { color: var(--sage); } }
@keyframes wave-glass { to { transform: translateX(40px); } }
.glasses__controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.glasses__controls .icon-btn, .ruler__controls .icon-btn { width: 52px; height: 52px; font-size: 1.6rem; font-weight: 400; color: var(--text); }
.chip-btn {
  min-height: 44px; padding: 10px 18px; border-radius: var(--r-pill); border: 1px solid var(--line-soft);
  font-weight: 600; font-size: 0.92rem; color: var(--text-2); transition: border-color var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out);
}
@media (hover: hover) { .chip-btn:hover { border-color: var(--line); color: var(--text); } }

/* ---------- Régua do peso ---------- */
.ruler-wrap { margin-top: 26px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.ruler__value { display: flex; align-items: baseline; justify-content: center; gap: 8px; }
.ruler__value strong { font-size: clamp(3.6rem, 14vw, 5.2rem); line-height: 1; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.ruler__value span { font-size: 1.3rem; font-weight: 600; color: var(--muted); }
.ruler-box { position: relative; min-width: 0; }
.ruler-box::after {
  content: ''; position: absolute; left: 50%; top: -8px; width: 3px; height: 58px; border-radius: 3px;
  background: var(--sage); transform: translateX(-50%); box-shadow: 0 0 18px oklch(0.727 0.106 7 / 0.7); pointer-events: none;
}
.ruler {
  height: 84px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none;
  overscroll-behavior-x: contain; touch-action: pan-x; cursor: grab; border-radius: var(--r-md);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
}
.ruler::-webkit-scrollbar { display: none; }
.ruler.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.ruler:focus-visible { outline: 2px solid var(--sage); outline-offset: 4px; }
.ruler__track { display: flex; width: max-content; height: 100%; padding-inline: calc(50% - var(--tick) / 2); }
.tick { position: relative; flex: none; width: var(--tick); height: 100%; scroll-snap-align: center; }
.tick::before { content: ''; position: absolute; left: 50%; top: 0; width: 2px; height: 18px; border-radius: 2px; background: var(--line); transform: translateX(-50%); }
.tick--mid::before { height: 28px; background: var(--muted); }
.tick--major::before { height: 40px; background: var(--text-2); }
.tick b { position: absolute; top: 50px; left: 50%; transform: translateX(-50%); font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.ruler__controls { display: flex; align-items: center; justify-content: space-between; }
.ruler__hint { color: var(--muted); font-size: 0.85rem; }

/* ---------- Telas de transição ---------- */
.insight { display: flex; flex-direction: column; min-width: 0; }
.insight__stat { margin-top: 18px; display: grid; }
.insight__stat strong { font-size: clamp(3.8rem, 16vw, 6.4rem); line-height: 0.95; letter-spacing: -0.05em; color: var(--sage); font-variant-numeric: tabular-nums; }
.insight__stat span { color: var(--muted); font-weight: 600; margin-top: 6px; }
.insight .q-title { margin-top: 14px; }
.insight__lead { margin-top: 12px; font-size: var(--fs-lead); font-weight: 600; color: var(--text); }
.insight__text { margin-top: 12px; color: var(--text-2); max-width: 56ch; }
.insight__source { margin-top: 14px; color: var(--muted); font-size: 0.8rem; line-height: 1.5; }
.screen.is-active .insight__stat, .screen.is-active .gauge { animation: rise 800ms var(--ease-out) 140ms both; }
.screen.is-active .insight__lead, .screen.is-active .insight__text, .screen.is-active .insight__source, .screen.is-active .proof { animation: rise 700ms var(--ease-out) 260ms both; }

.gauge { margin-top: 22px; display: grid; gap: 10px; }
.gauge__bar { position: relative; height: 16px; border-radius: 10px; background: var(--surface-2); overflow: hidden; }
.gauge__fill { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, var(--water-deep), var(--water)); transform-origin: left; transform: scaleX(0); animation: gauge-fill 1.4s var(--ease-out) 450ms forwards; }
.gauge__goal { position: absolute; top: -4px; bottom: -4px; right: 0; width: 3px; background: var(--sage); }
.gauge__legend { display: flex; justify-content: space-between; color: var(--muted); font-size: 0.9rem; }
.gauge__legend b { color: var(--text); }
@keyframes gauge-fill { to { transform: scaleX(var(--v)); } }

.proof { margin: 24px calc(var(--gutter) * -1) 0; padding: 0 var(--gutter) 6px; display: grid; grid-auto-flow: column; grid-auto-columns: 72%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.proof::-webkit-scrollbar { display: none; }
.proof__item { scroll-snap-align: start; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-soft); background: var(--surface); }
.proof__item img { width: 100%; aspect-ratio: 1; object-fit: cover; }

/* ---------- Análise ---------- */
.analysis { display: grid; justify-items: center; text-align: center; gap: 22px; padding-top: 2vh; }
.orbit { --size: min(270px, 72vw); position: relative; width: var(--size); aspect-ratio: 1; }
.orbit__ring { position: absolute; inset: 17%; transform: rotate(-90deg); }
.orbit__track { fill: none; stroke: oklch(1 0 0 / 0.1); stroke-width: 7; }
.orbit__bar { fill: none; stroke: var(--sage-hi); stroke-width: 7; stroke-linecap: round; transition: stroke-dashoffset 560ms var(--ease-out); filter: drop-shadow(0 0 8px oklch(0.863 0.053 7 / 0.6)); }
.orbit::before { content: ''; position: absolute; inset: 8%; border-radius: 50%; border: 1px dashed oklch(1 0 0 / 0.14); animation: spin 26s linear infinite; }
.orbit__pct { position: absolute; inset: 0; display: grid; place-content: center; grid-auto-flow: column; align-items: baseline; }
.orbit__pct strong { font-size: 2.8rem; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.orbit__pct span { font-weight: 600; color: var(--text-2); }
.orbit__icon {
  position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px;
  display: grid; place-items: center; border-radius: 50%;
  background: oklch(0.203 0.039 7); border: 1px solid oklch(1 0 0 / 0.12); color: var(--muted);
  transform: rotate(var(--a)) translateY(calc(var(--size) / -2 + 23px)) rotate(calc(var(--a) * -1));
  transition: background-color 400ms var(--ease-out), color 400ms var(--ease-out), box-shadow 400ms var(--ease-out), scale 400ms var(--ease-out);
}
.orbit__icon .ico { width: 22px; height: 22px; }
.orbit__icon.is-lit { background: var(--sage); color: var(--on-sage); border-color: transparent; box-shadow: 0 0 26px oklch(0.863 0.053 7 / 0.55); scale: 1.08; }
.alines { list-style: none; padding: 0; display: grid; gap: 10px; width: min(340px, 100%); text-align: left; }
.aline { display: flex; align-items: center; gap: 12px; color: oklch(0.945 0.018 7 / 0.4); font-weight: 600; transition: color 300ms var(--ease-out); }
.aline__dot { position: relative; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid oklch(1 0 0 / 0.2); flex: none; transition: background-color 300ms var(--ease-out), border-color 300ms var(--ease-out); }
.aline__dot .ico { width: 13px; height: 13px; color: var(--on-sage); opacity: 0; transform: scale(0.4); transition: opacity 250ms var(--ease-out), transform 350ms var(--ease-out); }
.aline.is-active { color: var(--text); }
.aline.is-active .aline__dot { border-color: var(--sage); }
.aline.is-active .aline__dot::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--sage); border-top-color: transparent; animation: spin 700ms linear infinite; }
.aline.is-done { color: var(--text-2); }
.aline.is-done .aline__dot { background: var(--sage); border-color: var(--sage); }
.aline.is-done .aline__dot .ico { opacity: 1; transform: none; }

/* ---------- E-mail ---------- */
.gate__preview {
  display: flex; align-items: center; gap: 18px; padding: 16px; margin-bottom: 26px;
  border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line-soft);
  filter: blur(5px); opacity: 0.6; user-select: none;
  animation: rise 700ms var(--ease-out) both;
}
.gate__ring { width: 76px; height: 76px; flex: none; border-radius: 50%; border: 8px solid var(--olive); border-right-color: var(--surface-2); display: grid; place-items: center; font-size: 1.8rem; font-weight: 700; }
.gate__bars { flex: 1; display: grid; gap: 7px; }
.gate__bars span { height: 7px; border-radius: 4px; background: linear-gradient(90deg, var(--sage) var(--w), var(--surface-2) var(--w)); }
.gate .kicker { animation: rise 600ms var(--ease-out) 80ms both; }
.gate .q-title { margin-top: 12px; }
.gate__privacy { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 0.85rem; line-height: 1.5; }
.gate__privacy .ico { width: 18px; height: 18px; color: var(--sage); margin-top: 1px; }

/* ---------- Resultado ---------- */
.screen--resultado .screen__inner { max-width: 1160px; }
.result { display: grid; gap: clamp(56px, 9vw, 104px); padding: 8px 0 72px; }
.result__hero { display: grid; gap: 26px; justify-items: start; }
.result__score { justify-self: center; }
.ring { position: relative; width: min(236px, 62vw); aspect-ratio: 1; animation: rise 800ms var(--ease-out) both; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring__track { fill: none; stroke: var(--surface-2); stroke-width: 14; }
.ring__bar { fill: none; stroke: url(#ring-g); stroke-width: 14; stroke-linecap: round; stroke-dasharray: var(--c); stroke-dashoffset: var(--c); transition: stroke-dashoffset 1.9s var(--ease-out) 0.2s; filter: drop-shadow(0 0 10px oklch(0.727 0.106 7 / 0.45)); }
.ring.is-drawn .ring__bar { stroke-dashoffset: var(--target); }
.ring__label { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; }
.ring__label strong { font-size: clamp(3.6rem, 15vw, 4.8rem); line-height: 1; letter-spacing: -0.055em; font-variant-numeric: tabular-nums; }
.ring__label span { color: var(--muted); font-weight: 600; }
.result__summary { display: grid; gap: 14px; justify-items: start; }
.result__summary > * { animation: rise 700ms var(--ease-out) both; }
.result__summary > :nth-child(2) { animation-delay: 120ms; }
.result__summary > :nth-child(3) { animation-delay: 220ms; }
.result__summary > :nth-child(4) { animation-delay: 320ms; }
.result__summary > :nth-child(5) { animation-delay: 420ms; }
.result__meta { color: var(--muted); font-size: 0.9rem; font-weight: 600; }
.phase-badge { display: inline-flex; gap: 6px; padding: 7px 14px; border-radius: var(--r-pill); background: var(--olive-deep); color: var(--text); font-size: 0.9rem; font-weight: 600; }
.phase-badge strong { color: var(--sage-hi); }
.result__headline { font-size: var(--fs-headline); line-height: 1.1; letter-spacing: -0.028em; max-width: 22ch; outline: none; }
.result__text { color: var(--text-2); max-width: 58ch; font-size: var(--fs-lead); }
.phase-track { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; width: 100%; max-width: 520px; margin-top: 6px; }
.phase-track li { position: relative; display: grid; gap: 8px; padding-top: 12px; font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.phase-track li::before { content: ''; position: absolute; inset: 0 0 auto; height: 5px; border-radius: 3px; background: var(--surface-2); }
.phase-track li span { display: none; }
.phase-track li.is-past::before { background: var(--olive); }
.phase-track li.is-current { color: var(--text); }
.phase-track li.is-current::before { background: var(--sage); box-shadow: 0 0 14px oklch(0.727 0.106 7 / 0.6); }

.result__h { font-size: var(--fs-h3); letter-spacing: -0.02em; }
.result__hint { color: var(--muted); margin: 6px 0 18px; font-size: 0.95rem; }
.result__areas { display: grid; gap: 32px; }

.radar { display: grid; gap: 10px; justify-items: center; }
.radar svg { width: 100%; max-width: 520px; height: auto; overflow: visible; }
.radar__level { fill: none; stroke: oklch(0.945 0.018 7 / 0.1); stroke-width: 1; }
.radar__strong { fill: oklch(0.727 0.106 7 / 0.05); stroke: var(--sage); stroke-opacity: 0.55; stroke-width: 1.2; stroke-dasharray: 4 5; }
.radar__axis { stroke: oklch(0.945 0.018 7 / 0.1); }
.radar__area { fill: oklch(0.727 0.106 7 / 0.3); stroke: var(--sage-hi); stroke-width: 2.2; stroke-linejoin: round; transform-box: view-box; transform-origin: 180px 180px; transform: scale(0); transition: transform 1.3s var(--ease-expo) 0.15s; }
.radar__dot { fill: var(--sage-hi); stroke: var(--bg); stroke-width: 2.5; opacity: 0; transition: opacity 300ms var(--ease-out); transition-delay: calc(800ms + var(--i) * 70ms); }
.result__radar.is-in .radar__area { transform: scale(1); }
.result__radar.is-in .radar__dot { opacity: 1; }
.radar__label { fill: var(--text-2); font-size: 13px; font-weight: 600; font-family: var(--font); }
.radar__num { fill: var(--text); font-size: 16px; font-weight: 700; }
.radar__legend { color: var(--muted); font-size: 0.82rem; display: flex; align-items: center; gap: 8px; }
.radar__legend-strong { width: 22px; border-top: 1.5px dashed var(--sage); }

.areas { list-style: none; padding: 0; display: grid; gap: 10px; }
.area { --band-color: var(--sage); border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line-soft); transition: border-color var(--t-base) var(--ease-out); }
.area--critico { --band-color: var(--terra); }
.area--atencao { --band-color: var(--ochre); }
.area__head {
  width: 100%; display: grid; align-items: center; gap: 10px 12px; padding: 14px 14px 16px; text-align: left;
  grid-template-columns: 38px minmax(0, 1fr) auto auto 18px;
  grid-template-areas: 'icon name band score caret' 'bar bar bar bar bar';
}
.area__icon { grid-area: icon; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--surface-2); color: var(--band-color); }
.area__icon .ico { width: 20px; height: 20px; }
.area__name { grid-area: name; font-weight: 700; font-size: 1.02rem; }
.area__band { grid-area: band; padding: 3px 9px; border-radius: var(--r-pill); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--band-color); background: color-mix(in oklch, var(--band-color) 14%, transparent); }
.area__score { grid-area: score; font-size: 1.3rem; font-weight: 700; font-variant-numeric: tabular-nums; min-width: 2ch; text-align: right; }
.area__caret { grid-area: caret; width: 18px; height: 18px; color: var(--muted); transition: transform 320ms var(--ease-out); }
.area__head[aria-expanded='true'] .area__caret { transform: rotate(180deg); }
.area__bar { grid-area: bar; height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.area__bar > span { display: block; height: 100%; border-radius: inherit; background: var(--band-color); transform-origin: left; transform: scaleX(0); transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--i) * 90ms); }
.areas.is-in .area__bar > span { transform: scaleX(var(--s)); }
.areas.reveal { opacity: 1; transform: none; }
.area__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 420ms var(--ease-out); }
.area__head[aria-expanded='true'] + .area__body { grid-template-rows: 1fr; }
.area__inner { min-height: 0; overflow: hidden; padding: 0 16px; color: var(--text-2); }
.area__inner > p:first-child { padding-top: 2px; }
.area__tip { margin: 12px 0 16px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--surface-2); color: var(--text); }
.area__tip strong { color: var(--sage); }
@media (hover: hover) { .area:hover { border-color: var(--line); } }

.numbers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.num { display: grid; gap: 8px; align-content: start; padding: 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line-soft); }
.num:last-child { grid-column: 1 / -1; }
.num:first-child { grid-column: 1 / -1; background: linear-gradient(135deg, oklch(0.3 0.04 195 / 0.55), var(--surface) 60%); }
.num:first-child .num__now { font-size: 2.2rem; color: var(--water); }
.num:first-child .num__meter > span { background: linear-gradient(90deg, var(--water-deep), var(--water)); }
.num__label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.num__label .ico { width: 18px; height: 18px; color: var(--sage); }
.num__now { font-size: 1.25rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
.num__meter { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.num__meter > span { display: block; height: 100%; background: var(--sage); transform-origin: left; transform: scaleX(0); transition: transform 1.2s var(--ease-out) 0.25s; }
.num.is-in .num__meter > span { transform: scaleX(var(--v)); }
.num__goal { color: var(--text-2); font-size: 0.85rem; }

.plan { list-style: none; padding: 0; margin-top: 22px; display: grid; }
.plan__step { position: relative; padding: 0 0 30px 46px; }
.plan__step::before { content: ''; position: absolute; left: 7px; top: 4px; width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--sage); background: var(--bg); box-shadow: 0 0 0 5px oklch(0.727 0.106 7 / 0.12); }
.plan__step::after { content: ''; position: absolute; left: 15px; top: 28px; bottom: 2px; width: 2px; background: linear-gradient(var(--sage), oklch(0.727 0.106 7 / 0.1)); }
.plan__step:last-child::after { display: none; }
.plan__step:last-child::before { background: var(--sage); }
.plan__when { font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sage); }
.plan__title { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 1.15rem; font-weight: 700; }
.plan__title .ico { width: 20px; height: 20px; color: var(--sage); }
.plan__text { margin-top: 6px; color: var(--text-2); max-width: 46ch; }

.result__cta {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; gap: 16px; justify-items: start;
  padding: clamp(28px, 6vw, 64px); border-radius: var(--r-xl);
  background: radial-gradient(130% 150% at 0% 0%, var(--olive) 0%, var(--olive-deep) 42%, var(--olive-night) 100%);
}
.result__lines { position: absolute; inset: auto 0 0; width: 100%; height: 70%; z-index: -1; pointer-events: none; }
.result__cta .kicker { color: var(--sage-hi); }
.result__cta-title { font-size: var(--fs-headline); max-width: 18ch; letter-spacing: -0.03em; }
.result__cta-text { max-width: 52ch; color: var(--text); opacity: 0.88; }
.result__cta .btn { margin-top: 8px; }
.link-btn { color: var(--text-2); font-weight: 600; font-size: 0.95rem; text-decoration: underline; text-underline-offset: 4px; padding: 8px 0; }
@media (hover: hover) { .link-btn:hover { color: var(--text); } }

/* ---------- Hero ---------- */
.hero { gap: 18px; padding-bottom: 36px; }
.hero__kicker { margin-top: 6px; animation: rise 700ms var(--ease-out) 150ms both; }
.hero__title { font-size: clamp(2.35rem, 1rem + 3.6vw, 4.1rem); line-height: 1.02; letter-spacing: -0.038em; }
.hero__title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.hero__title .w > span { display: inline-block; transform: translateY(108%); animation: word-up 1s var(--ease-expo) both; animation-delay: calc(260ms + var(--i) * 75ms); }
.hero__accent { color: var(--sage); }
@keyframes word-up { to { transform: none; } }
.hero__lead { color: var(--text-2); font-size: var(--fs-lead); max-width: 50ch; animation: rise 800ms var(--ease-out) 820ms both; }
.hero__cta { display: grid; gap: 12px; margin-top: 6px; animation: rise 800ms var(--ease-out) 960ms both; }
.hero__note { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.9rem; }
.hero__note .ico { width: 18px; height: 18px; color: var(--sage); }
.hero__proof { display: flex; align-items: center; gap: 14px; margin-top: 6px; color: var(--text-2); font-size: 0.92rem; animation: rise 800ms var(--ease-out) 1.1s both; }
.avatars { display: flex; }
.avatars img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; border: 2px solid var(--bg); }
.avatars img + img { margin-left: -10px; }

.noscript { margin: 24px var(--gutter); padding: 16px; border-radius: var(--r-md); background: var(--surface); }

/* Leitura em telas baixas: esconde o chip do anel pra não poluir */
@media (min-width: 420px) { .float-chip--c { display: flex; } }
@media (max-width: 959px) {
  .panel { min-height: 0; }
  .panel__lines { display: none; }
  body[data-view='resultado'] .panel, body[data-band='off'] .panel { visibility: hidden; transition: visibility 0s 700ms; }
}

/* ---------- Desktop ---------- */
@media (min-width: 960px) {
  :root { --panel-open: clamp(400px, 44vw, 760px); --stage-pad: clamp(36px, 6vw, 104px); }
  body { --panel-w: var(--panel-open); }
  body[data-view='resultado'] { --panel-w: 0px; }
  .layout { grid-template-rows: none; grid-template-columns: var(--panel-w) minmax(0, 1fr); }
  .panel { grid-row: 1; grid-column: 1; position: sticky; top: 0; height: 100dvh; }
  .stage { grid-row: 1; grid-column: 2; min-height: 100dvh; padding: calc(var(--topbar-h) + 48px) var(--stage-pad) 56px; }
  .screen { justify-content: center; }
  body[data-view='resultado'] .screen { justify-content: flex-start; }
  .screen__inner { flex: 0 0 auto; padding: 0; margin: 0; max-width: 580px; }
  .screen--resultado .screen__inner { margin: 0 auto; max-width: 1160px; }
  .screen__actions { position: static; background: none; padding: 30px 0 0; margin-top: 0; }

  .topbar::before { left: var(--panel-w); }
  body[data-view='resultado'] .topbar::before { left: 0; }
  .progress { top: calc(var(--topbar-h) - 2px); left: calc(var(--panel-w) + var(--stage-pad)); right: var(--stage-pad); max-width: 580px; }

  .panel__shade { background: linear-gradient(180deg, oklch(0.165 0.008 7 / 0.72) 0%, oklch(0.165 0.008 7 / 0) 24%, oklch(0.165 0.008 7 / 0) 50%, oklch(0.165 0.008 7 / 0.94) 100%); }
  .panel__caption { display: block; position: absolute; left: clamp(28px, 3.6vw, 56px); right: 28px; bottom: clamp(28px, 6vh, 64px); transition: opacity 500ms var(--ease-out); }
  body[data-view='hero'] .panel__caption, body[data-view='email'] .panel__caption, body[data-view='analise'] .panel__caption { opacity: 0; }
  .panel__index { font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.16em; color: var(--sage); }
  .panel__title { margin-top: 6px; font-size: clamp(2.6rem, 4.4vw, 4.6rem); font-weight: 700; letter-spacing: -0.045em; line-height: 1; }
  .panel__title.swap { animation: title-swap 800ms var(--ease-expo); }
  @keyframes title-swap { from { opacity: 0; transform: translateY(26px); filter: blur(8px); } }
  .panel__groups { list-style: none; padding: 0; margin-top: 22px; display: flex; gap: 8px; }
  .panel__groups li { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid oklch(1 0 0 / 0.2); color: oklch(1 0 0 / 0.5); transition: background-color 400ms var(--ease-out), color 400ms var(--ease-out), transform 400ms var(--ease-out), box-shadow 400ms var(--ease-out); }
  .panel__groups li .ico { width: 17px; height: 17px; }
  .panel__groups li.is-done { background: oklch(0.446 0.105 7 / 0.85); color: var(--sage-hi); border-color: transparent; }
  .panel__groups li.is-current { background: var(--sage); color: var(--on-sage); border-color: transparent; transform: scale(1.14); box-shadow: 0 0 22px oklch(0.727 0.106 7 / 0.55); }

  .float-chip { font-size: 1.05rem; padding: 11px 18px 11px 11px; }
  .float-chip--a { top: 22%; left: 8%; }
  .float-chip--b { top: 44%; right: 8%; }
  .float-chip--c { bottom: 18%; left: 12%; }

  .screen--hero .screen__inner { max-width: 680px; }
  .hero { gap: 22px; padding-bottom: 0; }
  .hero__cta { justify-items: start; }
  .hero__btn { padding-inline: 34px; }

  .opts--chips { grid-template-columns: repeat(3, 1fr); }
  .opts--chips .opt:last-child { grid-column: auto; }
  .opts--cards { grid-template-columns: repeat(3, 1fr); }
  .opts--cards .opt:last-child { grid-column: auto; min-height: 132px; flex-direction: column; align-items: flex-start; }
  .opts--cards .opt:last-child .opt__icon { width: 52px; height: 52px; border-radius: 16px; }
  .opts--cards .opt:last-child .opt__mark { position: absolute; top: 14px; right: 14px; }

  .proof { margin: 26px 0 0; padding: 0; grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; }

  .result__hero { grid-template-columns: auto minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
  .ring { width: 280px; }
  .result__areas { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: start; gap: clamp(32px, 5vw, 72px); }
  .result__radar { position: sticky; top: 110px; }
  .numbers { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .num:first-child, .num:last-child { grid-column: span 1; }
  .plan { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .plan__step { padding: 38px 0 0; }
  .plan__step::before { left: 0; top: 0; }
  .plan__step::after { left: 26px; right: -24px; top: 8px; bottom: auto; width: auto; height: 2px; background: linear-gradient(90deg, var(--sage), oklch(0.727 0.106 7 / 0.1)); }
}

@media (min-width: 1280px) {
  .numbers { gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .panel__media > * { transform: none; }
  .hero__title .w > span { transform: none; }
}
