/* ==========================================================================
   Briefing · Zanin Labs
   Tokens e componentes vindos do Zanin Labs Design System (assets/overview)
   ========================================================================== */

@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 200 600; font-display: swap;
  src: url("../assets/fonts/inter-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 200 600; font-display: swap;
  src: url("../assets/fonts/inter-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Marca e ação */
  --lime: #d2ff00;
  --lime-off: #b2c73a;
  --orange: #ea8b1e;

  /* Superfícies */
  --dark: #282c20;
  --black: #111112;
  --white: #f4f4ed;

  /* Texto e linhas */
  --off-1: #dde1d2;
  --off-2: #b4b8a5;
  --line: rgba(244, 244, 237, .12);
  --line-strong: rgba(244, 244, 237, .24);
  --field: rgba(17, 17, 18, .32);
  --error: #ff9a6b;

  /* Tipografia */
  --font-sans: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Espaço e raios */
  --gutter: clamp(1.25rem, 4.2vw, 4.5rem);
  --r-control: .45rem;
  --r-card: .5rem;
  --r-pill: 999px;
  --r-box: 1rem;
  --col: 40rem;                         /* largura da coluna do formulário */

  /* Movimento */
  --ease: cubic-bezier(.65, .05, 0, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur: .75s;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  min-height: 100svh;
  font-family: var(--font-sans); font-size: 1rem; line-height: 1.5;
  background: var(--dark); color: var(--white);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--lime); color: var(--dark); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
[hidden] { display: none !important; }

.mono { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .25em; text-transform: uppercase; line-height: 1.4; }
.mono--dim { opacity: .6; }
.mono--lime { color: var(--lime-off); }

/* --------------------------------------------------------------- Fundo vivo */
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg canvas { position: absolute; inset: -4%; width: 108%; height: 108%; display: block; }
.bg::after {           /* lanterna que segue o cursor */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(36rem circle at var(--fx, 70%) var(--fy, 30%), rgba(210, 255, 0, .06), transparent 45%);
}
.glow { position: absolute; border-radius: 50%; translate: -50% -50%; }
.glow--lime {
  left: 82%; top: 22%; width: min(70vh, 90vw); aspect-ratio: 1;
  background: radial-gradient(circle, rgba(210, 255, 0, .16), rgba(210, 255, 0, .04) 42%, transparent 68%);
  filter: blur(30px); animation: breathe 7s ease-in-out infinite;
}
.glow--orange {
  left: 8%; top: 92%; width: min(48vh, 70vw); aspect-ratio: 1;
  background: radial-gradient(circle, rgba(234, 139, 30, .14), transparent 66%);
  filter: blur(34px); animation: breathe 9s ease-in-out -3s infinite;
}

/* ------------------------------------------------------------------ Topo */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem var(--gutter);
  background: linear-gradient(to bottom, rgba(40, 44, 32, .92), rgba(40, 44, 32, .7));
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.brand img { width: clamp(6.5rem, 9vw, 8rem); height: auto; }
.top-meta { display: flex; align-items: center; gap: 1.25rem; }
.progress { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); }
.progress span {
  display: block; height: 100%; width: 0; background: var(--lime);
  box-shadow: 0 0 12px rgba(210, 255, 0, .6);
  transition: width .9s var(--ease);
}

/* ------------------------------------------- Painel de vidro do formulário */
.screen--form.panel {
  --side-w: 15.5rem;
  max-width: 64rem;
  display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); gap: clamp(1rem, 2.5vw, 2rem);
  padding: .75rem;
  border-radius: 1.6rem;
  background: linear-gradient(160deg, rgba(244, 244, 237, .07), rgba(244, 244, 237, 0) 50%), rgba(24, 27, 19, .55);
  -webkit-backdrop-filter: blur(22px) saturate(1.2); backdrop-filter: blur(22px) saturate(1.2);
  box-shadow: 0 50px 110px -45px rgba(0, 0, 0, .75), inset 0 0 0 1px rgba(244, 244, 237, .08), inset 0 1px 0 rgba(244, 244, 237, .12);
}

/* Lateral: etapas */
.side {
  display: flex; flex-direction: column;
  padding: 1.5rem 1rem 1.25rem;
  border-radius: 1.1rem;
  background: rgba(244, 244, 237, .035);
  box-shadow: inset 0 0 0 1px rgba(244, 244, 237, .05);
}
.side > .mono { padding-inline: .5rem; font-size: .62rem; }
.side-title {
  margin: .9rem 0 1.75rem; padding-inline: .5rem;
  font-size: 1.45rem; font-weight: 500; letter-spacing: -.04em; line-height: 1.05; color: var(--off-1);
}
.side-title span { font-weight: 200; color: var(--off-2); }
.side-steps { display: grid; gap: .15rem; list-style: none; }
.side-step {
  width: 100%; display: grid; grid-template-columns: 1.75rem minmax(0, 1fr) 1.1rem; align-items: center; gap: .4rem;
  min-height: 2.45rem; padding: 0 .65rem 0 .5rem;
  border: 0; border-radius: .6rem; background: none; text-align: left; cursor: pointer;
  font-size: .86rem; font-weight: 400; color: var(--off-1);
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
.side-step:hover:not(:disabled) { background: rgba(244, 244, 237, .05); }
.side-step:disabled { cursor: default; }
.side-num { font-size: .62rem; letter-spacing: .1em; color: var(--off-2); }
.side-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-icon { display: grid; place-items: center; width: 1.1rem; height: 1.1rem; color: var(--lime); }
.side-icon svg { width: .95rem; height: .95rem; }
.side-step.is-current { background: rgba(244, 244, 237, .08); color: var(--white); font-weight: 500; box-shadow: inset 2px 0 0 var(--lime); }
.side-step.is-current .side-num { color: var(--lime-off); }
.side-step.is-todo { color: rgba(244, 244, 237, .38); }
.side-step.is-todo .side-num { color: rgba(244, 244, 237, .3); }
.side-step.is-done .side-num { color: var(--off-2); }

.side-total { margin-top: auto; padding: 1.5rem .5rem 0; display: grid; gap: .55rem; }
.side-total-text { display: flex; justify-content: space-between; gap: .5rem; font-size: .74rem; color: var(--off-2); }
.side-total-text span:first-child { color: var(--off-1); font-weight: 500; }
.side-total-bar { height: 3px; border-radius: var(--r-pill); background: rgba(244, 244, 237, .1); overflow: hidden; }
.side-total-bar span {
  display: block; height: 100%; background: var(--lime); transform: scaleX(0); transform-origin: left;
  box-shadow: 0 0 10px rgba(210, 255, 0, .6); transition: transform .8s var(--ease);
}

/* Coluna das perguntas */
.main { min-width: 0; display: flex; flex-direction: column; padding: clamp(1.25rem, 3vw, 2.25rem) clamp(1rem, 3vw, 2.25rem) clamp(1rem, 2.5vw, 1.75rem) 0; }

/* Progresso da etapa atual (acima das perguntas) */
.cat { display: grid; gap: .7rem; }
.cat-text { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.cat-name { display: flex; align-items: baseline; gap: .75rem; min-width: 0; }
.cat-name .mono { font-size: .62rem; flex: none; }
.cat-name b { font-size: .95rem; font-weight: 500; color: var(--white); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-count { flex: none; font-size: .78rem; color: var(--off-2); }
.cat-bar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 5px; }
.cat-seg { position: relative; height: 4px; border-radius: var(--r-pill); background: rgba(244, 244, 237, .12); overflow: hidden; }
.cat-seg::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: var(--lime); transform: scaleX(0); transform-origin: left;
  transition: transform .6s var(--ease);
}
.cat-seg.is-done::after { transform: scaleX(1); }
.cat-seg.is-current::after { transform: scaleX(.5); box-shadow: 0 0 10px rgba(210, 255, 0, .7); }

/* ---------------------------------------------------------------- Telas */
.stage { position: relative; z-index: 1; padding: clamp(2.5rem, 7vh, 5rem) var(--gutter) 6rem; }
.screen { max-width: var(--col); margin-inline: auto; }
.screen--intro, .screen--done { padding-top: clamp(1rem, 6vh, 4rem); }

.display {
  margin-top: 1.5rem;
  font-size: clamp(2.2rem, 5.4vw, 3.9rem); font-weight: 600;
  letter-spacing: -.045em; line-height: 1.02; color: var(--off-1);
  text-wrap: balance;
}
.display em { font-style: normal; font-weight: 300; color: var(--lime-off); }
.lead { margin-top: 1.25rem; max-width: 32rem; font-size: 1rem; font-weight: 300; line-height: 1.55; color: var(--off-2); }

.intro-list { margin: 2rem 0 2.25rem; display: grid; gap: 0; max-width: 26rem; }

/* Abertura: título, texto, etapas e botão verde */
.btn--start { height: 3.1rem; padding: 0 1.5rem; font-size: .76rem; }
.intro-cta { margin-top: 2.25rem; }
@media (max-width: 767px) {
  /* tudo cabe na tela, sem rolagem: botão preso embaixo, ocupando a largura */
  .screen--intro {
    display: flex; flex-direction: column;
    min-height: calc(100svh - 3.4rem - .75rem);
    padding-top: clamp(.5rem, 3.5svh, 1.75rem);
  }
  .screen--intro .display { margin-top: 1rem; font-size: clamp(2rem, 10vw, 2.6rem); }
  .screen--intro .lead { margin-top: .9rem; font-size: .92rem; line-height: 1.5; }
  .screen--intro .intro-list { margin: clamp(1rem, 3svh, 1.75rem) 0 1.25rem; }
  .screen--intro .intro-list li { padding-block: clamp(.5rem, 1.6svh, .75rem); font-size: .9rem; }
  .intro-cta { margin-top: auto; padding-bottom: calc(1rem + env(safe-area-inset-bottom)); }
  .btn--start { width: 100%; }
}
.intro-list li {
  display: flex; align-items: center; gap: 1rem;
  padding-block: .75rem; border-top: 1px solid var(--line);
  font-size: .95rem; font-weight: 500;
}
.intro-list li:last-child { border-bottom: 1px solid var(--line); }
.intro-list .mono { color: var(--lime-off); font-size: .62rem; }

/* --------------------------------------------- Perguntas, uma por tela */
#steps {
  --ink: var(--white);                     /* texto */
  --ink-2: var(--off-2);                   /* dicas e rótulos secundários */
  --fill: rgba(244, 244, 237, .06);        /* fundo dos campos, sem contorno */
  --fill-hover: rgba(244, 244, 237, .09);
  --fill-on: rgba(210, 255, 0, .09);       /* opção marcada */
  --rule: rgba(244, 244, 237, .14);        /* linhas */
  --r-field: .8rem;                        /* raio dos campos */
  --error-ink: #ff9a6b;

  display: grid;                           /* todas as telas no mesmo lugar */
  flex: 1; min-height: clamp(19rem, 48svh, 30rem);
  color: var(--ink);
}
.q { grid-area: 1 / 1; display: none; align-self: start; padding-top: clamp(1.75rem, 5vh, 3rem); }
.q:focus { outline: none; }
.q.is-active, .q.is-out { display: block; }
.q.is-active { animation: qIn .7s var(--ease-out) both; }
.q.is-active.from-back { animation-name: qInBack; }
.q.is-out { animation: qOut .42s var(--ease) both; pointer-events: none; }
.q.is-out.to-back { animation-name: qOutBack; }
.q.is-out .enter { animation: none; }

.q-head { margin-bottom: 1.5rem; }
.q-chapter {
  margin-top: .9rem;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem); font-weight: 300; line-height: 1.3;
  color: var(--off-2);
}
.q-chapter em { font-style: normal; color: var(--lime-off); }
.q-lead { margin-top: .4rem; font-size: .9rem; font-weight: 300; color: var(--off-2); max-width: 32rem; }

.q-body { display: grid; gap: 2rem; }
/* a pergunta principal da tela vira o título */
.q-body:not(.q-body--grouped) > .field:first-child > .field-label {
  font-size: clamp(1.6rem, 3.6vw, 2.5rem); font-weight: 600;
  letter-spacing: -.04em; line-height: 1.08; color: var(--off-1);
  text-wrap: balance; margin-bottom: .6rem;
}
.q-body:not(.q-body--grouped) > .field:first-child > .field-hint { margin-top: -.5rem; margin-bottom: .4rem; font-size: .9rem; }
.q-body:not(.q-body--grouped) > .field:first-child > .chips,
.q-body:not(.q-body--grouped) > .field:first-child > .scale { margin-top: .6rem; }
/* título de tela com várias perguntas */
.q-title {
  margin-bottom: 1.6rem;
  font-size: clamp(1.6rem, 3.6vw, 2.5rem); font-weight: 600;
  letter-spacing: -.04em; line-height: 1.08; color: var(--off-1); text-wrap: balance;
}
.q-body--grouped { gap: 1.5rem; }

@keyframes qIn     { from { opacity: 0; transform: translateY(48px);  filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes qInBack { from { opacity: 0; transform: translateY(-48px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes qOut     { to { opacity: 0; transform: translateY(-56px); filter: blur(8px); } }
@keyframes qOutBack { to { opacity: 0; transform: translateY(56px);  filter: blur(8px); } }

/* atalho de letra nas opções */
.chip kbd {
  display: grid; place-items: center; flex: none;
  min-width: 1.6rem; height: 1.6rem; padding: 0 .3rem; border-radius: .4rem;
  font-family: var(--font-mono); font-size: .68rem; font-weight: 600; letter-spacing: 0;
  color: var(--off-2); box-shadow: inset 0 0 0 1px rgba(244, 244, 237, .22);
  transition: background-color .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease);
}
.chip input:checked + span kbd { background: var(--lime); color: var(--dark); box-shadow: 0 0 14px rgba(210, 255, 0, .45); }
.chip span::before { display: none; }
.chip input[type="checkbox"]:checked + span::after {
  content: ""; margin-left: auto; width: .9rem; height: .9rem; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-5' fill='none' stroke='%23d2ff00' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.chip input[type="radio"]:checked + span { animation: pick .35s var(--ease-out); }
@keyframes pick { 50% { transform: scale(.985); } }

.kbd-hint { align-self: center; margin-left: auto; font-size: .75rem; font-weight: 300; color: var(--off-2); white-space: nowrap; }
.kbd-hint span { display: inline-grid; place-items: center; min-width: 1.3rem; height: 1.3rem; margin-inline: .15rem; border-radius: .3rem; box-shadow: inset 0 0 0 1px rgba(244, 244, 237, .22); font-size: .7rem; }
.kbd-hint + .btn--lime { margin-left: 0 !important; }
@media (pointer: coarse) { .kbd-hint { display: none; } .kbd-hint + .btn--lime { margin-left: auto !important; } }

/* ------------------------------------------------------------- Campos */
.field { display: grid; gap: .65rem; min-width: 0; border: 0; }
.field-label { font-size: .95rem; font-weight: 500; line-height: 1.35; color: var(--ink); }
.req { color: var(--lime); margin-left: .2rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.intro-note { margin-top: 1rem; font-size: .8rem; font-weight: 300; color: var(--off-2); }
.intro-note span { color: var(--lime); }
.field-hint { font-size: .8rem; font-weight: 300; line-height: 1.45; color: var(--ink-2); }
.field-error { font-size: .8rem; font-weight: 500; color: var(--error-ink); }

.input {
  width: 100%; min-height: 3.1rem; padding: .85rem 1.05rem;
  border: 0; border-radius: var(--r-field);
  background: var(--fill); color: var(--ink);
  font-size: 1rem; font-weight: 400; line-height: 1.45;
  transition: box-shadow .4s var(--ease), background-color .4s var(--ease);
}
textarea.input { resize: vertical; min-height: 5.5rem; }
.input::placeholder { color: var(--ink-2); opacity: .5; }
.input:hover { background: var(--fill-hover); }
.input:focus { outline: none; background: rgba(244, 244, 237, .1); box-shadow: inset 0 0 0 1px rgba(210, 255, 0, .3), 0 0 24px -6px rgba(210, 255, 0, .2); }
.input[type="date"] { color-scheme: dark; max-width: 16rem; }
.field.is-invalid .input { background: rgba(255, 154, 107, .1); box-shadow: inset 0 0 0 1px rgba(255, 154, 107, .35); }

.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }

/* Opções fechadas: uma por linha (choice = bolinha, multi = quadrado) */
.chips { display: grid; grid-template-columns: minmax(0, 1fr); gap: .45rem; }
.chip { position: relative; display: block; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.chip span {
  display: flex; align-items: center; gap: .85rem;
  min-height: 3.1rem; padding: .7rem 1.05rem;
  border-radius: var(--r-field);
  background: var(--fill); color: var(--ink);
  font-size: .93rem; font-weight: 400; line-height: 1.3;
  cursor: pointer; user-select: none;
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease);
}
.chip span::before {   /* marcador */
  content: ""; width: 1.1rem; height: 1.1rem; flex: none; border-radius: 50%;
  background: transparent center / .7rem no-repeat; box-shadow: inset 0 0 0 1.5px rgba(244, 244, 237, .35);
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease);
}
.chip input[type="checkbox"] + span::before { border-radius: .3rem; }
.chip:hover span { background: var(--fill-hover); }
.chip input:checked + span { background: var(--fill-on); box-shadow: inset 0 0 0 1px rgba(210, 255, 0, .08); font-weight: 500; }
.chip input[type="radio"]:checked + span::before { background-color: var(--lime); box-shadow: inset 0 0 0 4px #23271c, 0 0 12px rgba(210, 255, 0, .5); }
.chip input[type="checkbox"]:checked + span::before {
  background-color: var(--lime); box-shadow: 0 0 12px rgba(210, 255, 0, .45);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-5' fill='none' stroke='%23282c20' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.chip input:focus-visible + span { outline: 2px solid var(--lime); outline-offset: 2px; }
.other-input { margin-top: .1rem; }

/* Escala 1–5 */
.scale { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr) 7.5rem; align-items: center; gap: .9rem; }
.scale-end { font-size: .8rem; font-weight: 400; line-height: 1.25; color: var(--ink-2); }
.scale-end:last-child { text-align: right; }
.scale-dots { display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.scale-dots::before { content: ""; position: absolute; left: 10%; right: 10%; top: 50%; height: 1px; background: var(--rule); }
.scale-dot { position: relative; display: grid; place-items: center; height: 2.75rem; cursor: pointer; }
.scale-dot input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.scale-dot span {
  width: 1.05rem; height: 1.05rem; border-radius: 50%;
  background: #23271c; box-shadow: inset 0 0 0 1.5px rgba(244, 244, 237, .3);
  transition: transform .45s var(--ease), background-color .45s var(--ease), box-shadow .45s var(--ease);
}
.scale-dot:hover span { transform: scale(1.2); }
.scale-dot input:checked + span { background: var(--lime); box-shadow: 0 0 0 5px rgba(210, 255, 0, .16), 0 0 22px rgba(210, 255, 0, .45); transform: scale(1.2); }
.scale-dot input:focus-visible + span { outline: 2px solid var(--lime); outline-offset: 5px; }

/* Envio de arquivos */
.drop {
  position: relative; display: grid; place-items: center; gap: .4rem;
  padding: 1.6rem 1rem; text-align: center;
  border: 1px dashed rgba(244, 244, 237, .14); border-radius: var(--r-field);
  background: var(--fill); cursor: pointer;
  transition: border-color .4s var(--ease), background-color .4s var(--ease);
}
.drop:hover, .drop.is-over { border-color: rgba(210, 255, 0, .4); background: var(--fill-on); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop svg { width: 1.6rem; height: 1.6rem; color: var(--lime-off); }
.drop strong { font-size: .9rem; font-weight: 500; }
.drop small { font-size: .75rem; font-weight: 300; color: var(--ink-2); }
.drop:focus-within { outline: 2px solid var(--lime); outline-offset: 3px; }
.files { display: grid; gap: .4rem; }
.files:empty { display: none; }
.file {
  display: flex; align-items: center; gap: .75rem;
  padding: .5rem .5rem .5rem 1rem;
  border-radius: var(--r-field); background: var(--fill);
  font-size: .85rem;
}
.file-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-size { font-family: var(--font-mono); font-size: .62rem; color: var(--ink-2); }
.file-remove {
  flex: none; width: 2rem; height: 2rem; display: grid; place-items: center;
  border: 0; border-radius: .55rem; background: none; color: var(--ink-2); cursor: pointer;
  transition: color .3s, background-color .3s;
}
.file-remove:hover { color: var(--ink); background: rgba(244, 244, 237, .08); }
.file-remove svg { width: .8rem; height: .8rem; }

/* armadilha de robô */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------------------------------------------------------------- Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  height: 2.75rem; padding: 0 1.1rem; white-space: nowrap;
  border: 1px solid transparent; border-radius: var(--r-control);
  font-size: .72rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  cursor: pointer; background: none;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease), opacity .3s;
}
.btn--lime { background: var(--lime); border-color: var(--lime); color: var(--dark); }
.btn--lime:hover { box-shadow: 0 0 0 4px rgba(210, 255, 0, .16), 0 10px 44px rgba(210, 255, 0, .38); }
.btn--ghost { border-color: transparent; background: transparent; color: var(--off-2); padding-inline: .75rem; }
.btn--ghost:hover { background: rgba(244, 244, 237, .06); color: var(--white); }
.btn:disabled { opacity: .55; cursor: progress; }
.btn-arrow { width: 1rem; height: 1rem; flex: none; transition: transform .6s var(--ease-out); }
.btn:hover .btn-arrow, .btn-beam:hover .btn-arrow { transform: translateX(4px); }
.btn:hover .btn-arrow--back { transform: translateX(-4px); }

.btn-beam {
  position: relative; display: inline-flex; padding: 1px; border: 0; background: none; cursor: pointer;
  border-radius: var(--r-pill); overflow: hidden; isolation: isolate;
  transition: box-shadow var(--dur) var(--ease);
}
.btn-beam:hover { box-shadow: 0 0 36px rgba(210, 255, 0, .22); }
.btn-beam__spin {
  position: absolute; inset: -1000%;
  background: conic-gradient(from 0deg, transparent 0 320deg, var(--lime) 360deg);
  animation: spin 2.4s linear infinite;
}
.btn-beam__in {
  position: relative; display: inline-flex; align-items: center; gap: .7rem;
  height: calc(3rem - 2px); padding: 0 1.4rem; white-space: nowrap;
  border-radius: var(--r-pill); background: var(--black); color: var(--white);
  box-shadow: inset 0 0 0 1px rgba(244, 244, 237, .1);
  font-size: .74rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  overflow: hidden;
}
.btn-beam__shine {
  position: absolute; inset: 0; opacity: 0;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, .2), transparent);
  transform: translateX(-100%) skewX(-15deg);
}
.btn-beam:hover .btn-beam__shine { opacity: 1; animation: shimmer 1.5s infinite; }

/* Text roll */
[data-roll] { display: inline-flex; overflow: hidden; height: 1.3em; line-height: 1.3; white-space: pre; }
[data-roll] .ch {
  display: inline-block; text-shadow: 0 1.3em currentColor;
  transition: transform .6s cubic-bezier(.22, 1, .36, 1);
  transition-delay: calc(var(--i) * 20ms);
}
button:hover [data-roll] .ch, button:focus-visible [data-roll] .ch { transform: translateY(-1.3em); }

/* Navegação do formulário */
.nav {
  margin-top: auto; padding-top: 1.5rem;
  display: flex; justify-content: space-between; gap: .75rem;
}
.nav .btn--lime { margin-left: auto; min-width: 9.5rem; }
.form-error { margin-top: 1rem; font-size: .85rem; color: var(--error); }
.spinner { width: .9rem; height: .9rem; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }

/* Tela final */
.pulse-wrap { display: inline-flex; align-items: center; gap: .65rem; color: var(--lime-off); }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); animation: pulse 1.8s ease-out infinite; }
.screen--done .mono--dim { margin-top: 2rem; }
.screen--done:focus { outline: none; }

/* ------------------------------------------------------------- Movimento */
@keyframes animationIn {
  0%   { opacity: 0; transform: translateY(24px); filter: blur(10px); }
  100% { opacity: 1; transform: translateY(0);    filter: blur(0); }
}
@keyframes spin    { to { transform: rotate(360deg); } }
@keyframes shimmer { from { transform: translateX(-100%) skewX(-15deg); } to { transform: translateX(200%) skewX(-15deg); } }
@keyframes breathe { 0%, 100% { opacity: .75; scale: 1; } 50% { opacity: 1; scale: 1.08; } }
@keyframes pulse   { 0% { box-shadow: 0 0 0 0 rgba(210, 255, 0, .55); } 100% { box-shadow: 0 0 0 10px rgba(210, 255, 0, 0); } }
@keyframes shake   { 0%, 100% { transform: none; } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

.js .enter { animation: animationIn .8s var(--ease-out) var(--d, 0s) both; }
.js .screen:not(.is-active) .enter { animation: none; }
.field.is-invalid { animation: shake .35s ease-in-out; }

/* ------------------------------------------------------------ Celular */
@media (max-width: 767px) {
  .top { padding-block: .9rem; }
  .top-meta #draft-state { display: none; }
  .stage { padding-top: .75rem; padding-bottom: 0; }
  .screen--form { margin-bottom: 6.5rem; }
  .nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; margin: 0;
    padding: .75rem var(--gutter) calc(.75rem + env(safe-area-inset-bottom));
    background: rgba(40, 44, 32, .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  }
  .nav .btn { flex: 1; }
  .nav .btn--lime { min-width: 0; flex: 1.6; }
  .trio { grid-template-columns: 1fr; }
  .scale { grid-template-columns: 1fr 1fr; gap: .25rem .75rem; }
  .scale-dots { grid-column: 1 / -1; grid-row: 2; }
  .scale-end:last-child { grid-row: 1; grid-column: 2; }
  .chip span { font-size: .85rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Tablet e celular: sem a lateral; fica só "Etapa X de Y" e a barra da etapa */
.cat-step { display: none; }
@media (max-width: 860px) {
  .screen--form.panel { grid-template-columns: minmax(0, 1fr); gap: 0; padding: .5rem; border-radius: 1.25rem; }
  .side { display: none; }
  .cat-name, .cat-count { display: none; }
  .cat-step { display: block; font-size: .85rem; font-weight: 500; color: var(--off-1); }
  .cat-step b { color: var(--lime); font-weight: 600; }
  .main { padding: 1.25rem .75rem 1rem; }
}
@media (max-width: 767px) {
  /* sem desfoque no painel, para a navegação ficar presa à tela */
  .screen--form.panel { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(28, 31, 22, .72); }
  .cat-count { font-size: .72rem; }
}

/* Celular, nas perguntas: o painel de vidro vira o próprio fundo, sem animação atrás */
@media (max-width: 767px) {
  body.is-form { background: #20241a; }
  body.is-form .bg { display: none; }               /* pausa as linhas topográficas e os glows */
  body.is-form .stage { padding: 0; }
  body.is-form .screen--form.panel {
    min-height: calc(100svh - 3.3rem);
    margin: 0; padding: 0 0 6.5rem; border-radius: 0; box-shadow: none;
    background:
      radial-gradient(120% 60% at 100% 0%, rgba(210, 255, 0, .07), transparent 60%),
      linear-gradient(170deg, rgba(244, 244, 237, .07), rgba(244, 244, 237, .015) 45%),
      #23271c;
  }
  body.is-form .main { padding: 1.5rem var(--gutter) 1rem; }
  body.is-form .top { background: #23271c; -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom: 1px solid rgba(244, 244, 237, .06); }
}

/* Versão de uma etapa só (formulário rápido): sem lateral, só "Pergunta X de Y" */
body.is-single .screen--form.panel { max-width: 44rem; grid-template-columns: minmax(0, 1fr); }
body.is-single .side, body.is-single .cat-name, body.is-single .cat-count { display: none; }
body.is-single .cat-step { display: block; font-size: .85rem; font-weight: 500; color: var(--off-1); }
body.is-single .cat-step b { color: var(--lime); font-weight: 600; }
body.is-single .main { padding-left: clamp(1rem, 3vw, 2.25rem); }
