/* ==========================================================
   BACKR — IELTS Gap de Band v3
   Product-Led Fake Door
   Mobile-first · Dark · Backr brand
   ========================================================== */

@font-face {
  font-family: 'BalooPaaji2';
  src: url('../../legacy/backr-design/font/BalooPaaji2-VariableFont_wght.ttf') format('truetype');
  font-weight: 400 800;
  font-display: swap;
}

/* ── Tokens ─────────────────────────────────────── */
:root {
  --bg:           #050d1f;
  --bg-card:      #091428;
  --bg-elevated:  #0d1c36;
  --bg-surface:   #112040;
  --pink:         #fa1a60;
  --pink-light:   #ff4d80;
  --pink-glow:    rgba(250,26,96,.22);
  --pink-dim:     rgba(250,26,96,.10);
  --text:         #edf2ff;
  --text-muted:   #7a91b8;
  --text-dim:     #384f72;
  --border:       #142040;
  --border-h:     #1e3060;
  --green:        #22c55e;
  --yellow:       #f59e0b;
  --red:          #ef4444;
  --green-dim:    rgba(34,197,94,.12);
  --yellow-dim:   rgba(245,158,11,.12);
  --red-dim:      rgba(239,68,68,.12);

  --font: 'Inter', 'BalooPaaji2', system-ui, sans-serif;
  --max-w: 460px;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 28px;
  --r-full: 9999px;

  --ease-out: cubic-bezier(.2, 0, 0, 1);
  --ease-spring: cubic-bezier(.34,1.4,.64,1);
}

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

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Ambient glow */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 55% at 50% -5%, rgba(250,26,96,.07) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 85% 90%, rgba(6,20,55,.5) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

/* ── Screens ─────────────────────────────────────── */
.screen {
  display: none;
  position: relative;
  min-height: 100dvh;
  z-index: 1;
}

.screen--active { display: flex; flex-direction: column; }

/* =========================================================
   HERO — Tela 0
   ========================================================= */

.hero {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  padding: 24px 22px 40px;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  gap: 32px;
}

.hero__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero__logo { width: 68px; height: auto; }

.hero__badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  padding: 4px 12px;
}

/* Becky + headline block */
.hero__intro {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex: 1;
  flex-direction: column;
  justify-content: center;
}

.hero__avatar-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.hero__avatar {
  width: 80px;
  height: 80px;
  border-radius: var(--r-full);
  object-fit: cover;
  border: 2px solid var(--pink);
  box-shadow: 0 0 28px var(--pink-glow);
}

.hero__pulse {
  position: absolute;
  inset: -7px;
  border-radius: var(--r-full);
  border: 2px solid var(--pink);
  opacity: .35;
  animation: pulse-ring 2.6s var(--ease-out) infinite;
}

.hero__pulse-2 {
  position: absolute;
  inset: -14px;
  border-radius: var(--r-full);
  border: 1.5px solid var(--pink);
  opacity: .15;
  animation: pulse-ring 2.6s var(--ease-out) infinite .8s;
}

@keyframes pulse-ring {
  0%   { transform: scale(1); opacity: .4; }
  70%  { transform: scale(1.18); opacity: 0; }
  100% { transform: scale(1.18); opacity: 0; }
}

/* Online dot */
.hero__online {
  position: absolute;
  bottom: 3px;
  right: 3px;
  width: 13px;
  height: 13px;
  background: var(--green);
  border-radius: var(--r-full);
  border: 2.5px solid var(--bg);
}

.hero__headline {
  font-size: clamp(1.55rem, 5.5vw, 2.1rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -.03em;
  margin-top: 8px;
}

.hero__headline em {
  font-style: normal;
  color: var(--pink);
}

.hero__sub {
  font-size: .95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 14px;
}

/* Scan preview — o visual que parece "produto" */
.hero__scan-preview {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.scan-preview__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.scan-preview__row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.scan-preview__bar-wrap {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: var(--r-full);
  overflow: hidden;
}

.scan-preview__bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--pink), var(--pink-light));
  border-radius: var(--r-full);
  width: 0%;
  transition: width 1.4s var(--ease-out);
}

.scan-preview__pct {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  width: 32px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.scan-preview__status {
  font-size: 11px;
  color: var(--text-dim);
  font-style: italic;
}

/* Bullets */
.hero__bullets {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.hero__bullets li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .85rem;
  color: var(--text-muted);
}

.hero__bullets li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: var(--r-full);
  background: var(--pink);
  flex-shrink: 0;
}

/* CTA */
.hero__cta { display: flex; flex-direction: column; gap: 10px; }

.hero__microcopy {
  font-size: .78rem;
  color: var(--text-dim);
  text-align: center;
  font-style: italic;
}

/* ── Buttons ─────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 17px 28px;
  border-radius: var(--r-full);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  transition: all 220ms var(--ease-out);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
}

.btn--primary {
  background: linear-gradient(135deg, var(--pink) 0%, #c4004a 100%);
  color: #fff;
  box-shadow: 0 4px 22px rgba(250,26,96,.38), 0 1px 4px rgba(0,0,0,.3);
  width: 100%;
}

.btn--primary:hover  { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(250,26,96,.5); }
.btn--primary:active { transform: translateY(0); }

.btn--whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #1a9e4d 100%);
  color: #fff;
  box-shadow: 0 4px 22px rgba(37,211,102,.35);
  width: 100%;
  padding: 18px 28px;
  font-size: 1.05rem;
}

.btn--whatsapp:hover  { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(37,211,102,.5); }
.btn--whatsapp:active { transform: translateY(0); }

/* =========================================================
   QUIZ — Header
   ========================================================= */

.quiz__header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(5, 13, 31, .94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 12px 20px 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quiz__header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.quiz__logo { width: 52px; height: auto; flex-shrink: 0; }

.quiz__step-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: .06em;
}

/* Global progress */
.quiz__progress-global {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.quiz__progress-track {
  height: 3px;
  background: var(--border);
  border-radius: var(--r-full);
  overflow: hidden;
}

.quiz__progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--pink), var(--pink-light));
  border-radius: var(--r-full);
  width: 0%;
  transition: width 600ms var(--ease-out);
}

/* =========================================================
   MINI-SCAN — aparece entre respostas (o coração do Product-Led)
   ========================================================= */

.mini-scan {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(9, 20, 40, .98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  padding: 14px 22px 20px;
  z-index: 30;
  transform: translateY(100%);
  transition: transform 280ms var(--ease-out);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mini-scan.active { transform: translateY(0); }

.mini-scan__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.mini-scan__label::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--pink);
  border-radius: var(--r-full);
  animation: blink .8s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: .2; }
}

.mini-scan__bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mini-scan__track {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: var(--r-full);
  overflow: hidden;
}

.mini-scan__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--pink), #ff5090);
  border-radius: var(--r-full);
  width: 0%;
  transition: width 700ms var(--ease-out);
}

.mini-scan__pct {
  font-size: 13px;
  font-weight: 800;
  color: var(--pink);
  width: 36px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* =========================================================
   QUIZ — Main
   ========================================================= */

.quiz__main {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px 20px 100px;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  gap: 18px;
}

/* Becky strip */
.becky-strip {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  animation: fade-up 320ms var(--ease-out) both;
}

.becky-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--r-full);
  object-fit: cover;
  border: 1.5px solid var(--pink);
  flex-shrink: 0;
  box-shadow: 0 0 16px var(--pink-glow);
}

.becky-bubble {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0 var(--r-md) var(--r-md) var(--r-md);
  padding: 10px 14px;
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
  position: relative;
  transition: opacity 200ms ease;
}

.becky-bubble::before {
  content: '';
  position: absolute;
  top: 10px;
  left: -7px;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 7px solid var(--border);
}

/* Question card */
.quiz__card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 22px 20px 20px;
  box-shadow: 0 4px 28px rgba(0,0,0,.4);
  animation: card-slide 360ms var(--ease-spring) both;
}

@keyframes card-slide {
  from { opacity: 0; transform: translateY(18px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.quiz__q-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 10px;
}

.quiz__question {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 20px;
  color: var(--text);
}

/* Options */
.quiz__options { display: flex; flex-direction: column; gap: 9px; }

.option-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-elevated);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font-size: .92rem;
  font-weight: 500;
  color: var(--text);
  text-align: left;
  width: 100%;
  transition: border-color 120ms ease, background 120ms ease, transform 120ms var(--ease-spring);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  position: relative;
  overflow: hidden;
}

.option-btn:hover  { border-color: var(--border-h); background: var(--bg-surface); transform: translateX(3px); }

.option-btn.selected {
  border-color: var(--pink);
  background: var(--pink-dim);
  color: #fff;
}

/* Ripple on select */
.option-btn .ripple {
  position: absolute;
  border-radius: var(--r-full);
  background: rgba(250,26,96,.25);
  transform: scale(0);
  animation: ripple-out 500ms var(--ease-out) forwards;
  pointer-events: none;
}

@keyframes ripple-out {
  to { transform: scale(4); opacity: 0; }
}

/* Option indicator (radio/checkbox) */
.opt-indicator {
  width: 22px;
  height: 22px;
  border-radius: var(--r-full);
  border: 2px solid var(--border-h);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  transition: all 140ms var(--ease-spring);
  background: var(--bg-card);
}

.option-btn.selected .opt-indicator {
  background: var(--pink);
  border-color: var(--pink);
  transform: scale(1.1);
}

.opt-indicator-check {
  opacity: 0;
  transform: scale(0) rotate(-20deg);
  transition: all 180ms var(--ease-spring);
}

.option-btn.selected .opt-indicator-check {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

/* Checkbox variant */
.opt-indicator--sq { border-radius: var(--r-sm); }

/* Multi continue */
.multi-continue {
  margin-top: 14px;
  display: none;
  animation: fade-up 200ms var(--ease-out) both;
}

.multi-continue.visible { display: block; }

/* Back btn */
.quiz__back-btn {
  position: fixed;
  bottom: 84px;
  left: 20px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  padding: 8px 16px;
  z-index: 10;
  transition: all 160ms ease;
}

.quiz__back-btn:hover { color: var(--text); border-color: var(--border-h); }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   CAPTURE SCREEN
   ========================================================= */

.capture__wrap {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  padding: 32px 22px 44px;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  gap: 24px;
}

/* Blurred result preview */
.capture__preview {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.capture__preview-inner {
  padding: 16px;
  filter: blur(6px);
  opacity: .5;
  pointer-events: none;
  user-select: none;
}

.capture__preview-lock {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(5, 13, 31, .6);
  backdrop-filter: blur(2px);
}

.capture__preview-lock-icon { font-size: 22px; }

.capture__preview-lock-text {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: .04em;
}

.capture__headline {
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -.02em;
}

.capture__sub {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-top: -8px;
}

.capture__form { display: flex; flex-direction: column; gap: 14px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-label {
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: .05em;
  text-transform: uppercase;
}

.form-label--opt { font-weight: 400; text-transform: none; color: var(--text-dim); font-style: italic; }

.form-input {
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font-size: 1rem;
  font-family: var(--font);
  color: var(--text);
  width: 100%;
  -webkit-appearance: none;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.form-input::placeholder { color: var(--text-dim); }
.form-input:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px rgba(250,26,96,.12); }

/* Checkbox */
.checkbox-wrap {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  cursor: pointer;
}

.checkbox-input { position: absolute; opacity: 0; width: 0; height: 0; }

.checkbox-box {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 2px solid var(--border-h);
  border-radius: var(--r-sm);
  background: var(--bg-card);
  display: grid;
  place-items: center;
  transition: all 140ms var(--ease-spring);
  margin-top: 2px;
}

.checkbox-input:checked + .checkbox-box {
  background: var(--pink);
  border-color: var(--pink);
  transform: scale(1.1);
}

.checkbox-input:checked + .checkbox-box::after {
  content: '✓';
  font-size: 12px;
  font-weight: 800;
  color: #fff;
}

.checkbox-input:focus + .checkbox-box { box-shadow: 0 0 0 3px rgba(250,26,96,.2); }

.checkbox-label { font-size: .82rem; color: var(--text-muted); line-height: 1.55; }

.form-error {
  background: rgba(239,68,68,.1);
  border: 1px solid rgba(239,68,68,.25);
  border-radius: var(--r-md);
  padding: 10px 14px;
  font-size: .85rem;
  color: #fca5a5;
}

.capture__microcopy { font-size: .78rem; color: var(--text-dim); text-align: center; font-style: italic; }

/* =========================================================
   PROCESSING SCREEN
   ========================================================= */

.processing__wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: 40px 24px;
  gap: 36px;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

.processing__visual {
  position: relative;
  width: 120px;
  height: 120px;
  display: grid;
  place-items: center;
}

.processing__becky {
  width: 78px;
  height: 78px;
  border-radius: var(--r-full);
  object-fit: cover;
  border: 2px solid var(--pink);
  position: relative;
  z-index: 2;
}

.proc-ring {
  position: absolute;
  border-radius: var(--r-full);
  border: 1.5px solid var(--pink);
  opacity: 0;
  animation: proc-pulse 2.2s var(--ease-out) infinite;
}

.proc-ring-1 { width: 88px;  height: 88px;  animation-delay: 0s; }
.proc-ring-2 { width: 108px; height: 108px; animation-delay: .55s; }
.proc-ring-3 { width: 128px; height: 128px; animation-delay: 1.1s; }

@keyframes proc-pulse {
  0%   { transform: scale(.85); opacity: .6; }
  80%  { transform: scale(1.08); opacity: 0; }
  100% { opacity: 0; }
}

/* ── Rotating message block (nova abordagem) ── */
.processing__msg-wrap {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 64px; /* prevents layout shift during swap */
  justify-content: center;
}

.processing__main-msg {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  letter-spacing: -.01em;
  /* opacity/transform manipulated by swapMessage() */
}

.processing__sub-msg {
  font-size: .8rem;
  color: var(--text-muted);
  font-style: italic;
  /* opacity manipulated by swapMessage() */
}

/* Global progress bar on processing screen */
.processing__global-bar {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.processing__pct-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.processing__pct-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: .04em;
}

.processing__pct-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--pink);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}

.processing__bar-track {
  height: 8px;
  background: var(--border);
  border-radius: var(--r-full);
  overflow: hidden;
}

.processing__bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--pink), var(--pink-light));
  border-radius: var(--r-full);
  width: 0%;
  transition: width 400ms var(--ease-out);
}


/* =========================================================
   RESULT SCREEN
   ========================================================= */

.result__wrap {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 32px 22px 56px;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

.result__logo { width: 60px; height: auto; margin-bottom: 4px; }

.result__kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--pink);
}

.result__title {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.25;
  margin-top: 4px;
}

.result__subtitle {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.6;
  border-left: 3px solid var(--pink);
  padding-left: 12px;
}

/* Summary row (3 data chips) */
.result__summary {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.summary-chip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 90px;
}

.summary-chip__label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-dim);
}

.summary-chip__value {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
}

/* Risk items */
.result__risks {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
}

.risks__header {
  padding: 14px 18px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.risk-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  animation: risk-in 400ms var(--ease-out) both;
}

.risk-item:last-child { border-bottom: none; }

@keyframes risk-in {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: translateX(0); }
}

.risk-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--r-full);
  flex-shrink: 0;
  margin-top: 4px;
}

.risk-dot--red    { background: var(--red);    box-shadow: 0 0 8px rgba(239,68,68,.5); }
.risk-dot--yellow { background: var(--yellow); box-shadow: 0 0 8px rgba(245,158,11,.4); }
.risk-dot--green  { background: var(--green);  box-shadow: 0 0 8px rgba(34,197,94,.4); }

.risk-content { display: flex; flex-direction: column; gap: 2px; }

.risk-label { font-size: .88rem; font-weight: 600; color: var(--text); }
.risk-sub   { font-size: .78rem; color: var(--text-muted); }

/* Diagnosis block */
.result__diagnosis {
  background: linear-gradient(135deg, rgba(250,26,96,.07) 0%, rgba(250,26,96,.02) 100%);
  border: 1.5px solid rgba(250,26,96,.2);
  border-radius: var(--r-xl);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.diagnosis__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(250,26,96,.14);
  border: 1px solid rgba(250,26,96,.28);
  border-radius: var(--r-full);
  padding: 4px 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--pink-light);
  width: fit-content;
}

.diagnosis__title { font-size: 1.1rem; font-weight: 800; line-height: 1.3; }
.diagnosis__copy  { font-size: .88rem; color: var(--text-muted); line-height: 1.7; }

.diagnosis__next {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 14px;
  font-size: .85rem;
  color: var(--text);
  line-height: 1.6;
}

.diagnosis__next strong { color: var(--pink); }

/* Criteria preview */
.result__criteria {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.crit-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.crit-card__label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); }

.crit-bar-wrap { height: 4px; background: var(--border); border-radius: var(--r-full); overflow: hidden; }

.crit-bar-fill {
  height: 100%;
  border-radius: var(--r-full);
  width: 0%;
  transition: width 800ms var(--ease-out);
}

.crit-bar-fill--unknown { background: var(--text-dim); }
.crit-bar-fill--low     { background: var(--red); }
.crit-bar-fill--mid     { background: var(--yellow); }
.crit-bar-fill--high    { background: var(--green); }

.crit-card__note { font-size: .7rem; color: var(--text-dim); font-style: italic; }

/* CTA block */
.result__cta { display: flex; flex-direction: column; gap: 10px; }
.result__cta-micro { font-size: .78rem; color: var(--text-dim); text-align: center; font-style: italic; }

/* Footer */
.result__footer {
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.result__disclaimer {
  font-size: .73rem;
  color: var(--text-dim);
  line-height: 1.65;
  text-align: center;
}

/* =========================================================
   SCREEN TRANSITIONS
   ========================================================= */

.screen--entering {
  display: flex;
  flex-direction: column;
  animation: screen-in 340ms var(--ease-out) both;
}

@keyframes screen-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

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

/* =========================================================
   PITCH SCREEN (VENDAS)
   ========================================================= */

.pitch__wrap {
  display: flex;
  flex-direction: column;
  padding: 24px 22px 40px;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  gap: 28px;
}

/* Status Card */
.pitch__status-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
}

.pitch__status-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pitch__status-dot {
  width: 8px;
  height: 8px;
  background: var(--pink);
  border-radius: var(--r-full);
  animation: blink .8s ease-in-out infinite;
  box-shadow: 0 0 8px var(--pink);
}

.pitch__status-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.pitch__status-progress {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pitch__status-fill {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: var(--r-full);
  position: relative;
  overflow: hidden;
}

.pitch__status-fill::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 80%;
  background: linear-gradient(90deg, var(--pink), var(--pink-light));
  border-radius: var(--r-full);
  animation: pitch-glow 2.5s ease-in-out infinite alternate;
}

@keyframes pitch-glow {
  0% { opacity: 0.85; }
  100% { opacity: 1; box-shadow: 0 0 6px var(--pink-glow); }
}

.pitch__status-pct {
  font-size: 13px;
  font-weight: 800;
  color: var(--pink);
  width: 32px;
  text-align: right;
}

.pitch__status-note {
  font-size: 11px;
  color: var(--text-dim);
  font-style: italic;
}

/* Header & Intro */
.pitch__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.pitch__logo {
  width: 60px;
  height: auto;
}

.pitch__headline {
  font-size: clamp(1.4rem, 5vw, 1.8rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.02em;
}

.pitch__subheadline {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Section Title */
.pitch__section-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -.01em;
  margin-bottom: 12px;
  color: var(--text);
  border-left: 3px solid var(--pink);
  padding-left: 10px;
}

/* Problem Card */
.pitch__problem-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.pitch__problem-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--yellow);
}

.pitch__problem-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pitch__problem-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.pitch__problem-highlight {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
  border-top: 1px solid var(--border);
  padding-top: 10px;
}

/* Steps */
.pitch__steps-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pitch__step-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px;
  transition: border-color 0.2s var(--ease-out);
}

.pitch__step-item:hover {
  border-color: var(--border-h);
}

.pitch__step-num {
  width: 28px;
  height: 28px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--pink);
  font-weight: 800;
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.pitch__step-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pitch__step-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
}

.pitch__step-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Prova Social / Testimonials */
.pitch__testimonials {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pitch__testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pitch__testimonial-quote {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  font-style: italic;
}

.pitch__testimonial-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 8px;
  font-size: 0.75rem;
}

.pitch__testimonial-author {
  font-weight: 700;
  color: var(--text);
}

.pitch__testimonial-tag {
  color: var(--green);
  font-weight: 600;
  background: var(--green-dim);
  padding: 2px 8px;
  border-radius: var(--r-full);
}

/* CTA */
.pitch__cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.pitch__microcopy {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-align: center;
  font-style: italic;
}

/* =========================================================
   DESKTOP
   ========================================================= */

@media (min-width: 600px) {
  .hero { padding: 32px 32px 48px; }
  .result__criteria { grid-template-columns: repeat(4, 1fr); }
}


/* ── v4: typing dots + tela de leitura (interlúdios) ───── */
.typing-dots { display: inline-flex; gap: 5px; align-items: center; padding: 4px 2px; }
.typing-dots span {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--color-pink, #fa1a60); opacity: .35;
  animation: typingBlink 1.1s infinite ease-in-out;
}
.typing-dots span:nth-child(2) { animation-delay: .18s; }
.typing-dots span:nth-child(3) { animation-delay: .36s; }
@keyframes typingBlink { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

.reading__wrap {
  width: 100%; max-width: 560px; margin: 0 auto;
  padding: 48px 22px 60px; display: flex; flex-direction: column; justify-content: center; min-height: 80vh;
}
.reading-line {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 4px 16px 16px 16px;
  padding: 13px 16px; margin-bottom: 10px;
  color: #e8ecf6; font-size: .98rem; line-height: 1.55;
  opacity: .85; transition: opacity .35s ease, transform .35s ease;
}
.reading-line.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .typing-dots span { animation: none; opacity: .8; }
  .reading-line { transition: none; }
}
