/* ─── Tokens: "bilhete escrito à mão" ───────────────────── */
:root {
  --kraft: #CDB48C;
  --kraft-light: #E2C48F;
  --paper: #FFFDF6;
  --paper-dim: #EFE7D8;
  --rule: #DCE6EF;
  --margin-line: #EDBDB8;
  --ink: #2A2A3A;
  --ink-soft: #6B5E50;
  --pen: #C2362B;
  --pen-deep: #9E2A21;
  --note: #F6E7A3;

  --hand: "Caveat", "Bradley Hand", "Segoe Print", cursive;
  --sans: "Nunito", "Avenir Next", "Segoe UI", sans-serif;

  --box: 104px;          /* cresce a cada resposta (app.js) */
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease-out: cubic-bezier(.22, 1, .36, 1);

  /* traços de caneta (círculo e sublinhado) */
  --circle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 40' preserveAspectRatio='none'%3E%3Cpath d='M8 22 C 6 8, 40 2, 70 4 C 96 6, 99 22, 88 32 C 70 42, 20 40, 8 30 C 2 24, 14 10, 30 8' fill='none' stroke='%23C2362B' stroke-width='2.4' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
  --squiggle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 14' preserveAspectRatio='none'%3E%3Cpath d='M2 9 C 15 3, 25 13, 40 7 S 65 3, 78 8 S 92 10, 98 5' fill='none' stroke='%23C2362B' stroke-width='3' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
  --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 13 C 7 15, 8 17, 10 20 C 13 12, 17 7, 22 3' fill='none' stroke='%23C2362B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background-color: var(--kraft);
  /* fibra do papel kraft */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .2 0 0 0 0 .1 0 0 0 .2 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
::selection { background: var(--pen); color: var(--paper); }

:focus-visible { outline: 2px dashed var(--pen); outline-offset: 3px; }

/* ─── Topo / rodapé ─────────────────────────────────────── */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px clamp(16px, 4vw, 40px) 4px;
}
.wordmark {
  font-family: var(--hand);
  font-weight: 700;
  font-size: 30px;
  line-height: 1.1;
  text-decoration: none;
}
.wordmark em { font-style: normal; color: var(--pen-deep); }
.counter { font-family: var(--hand); font-size: 24px; font-weight: 600; }

.foot {
  padding: 12px clamp(16px, 4vw, 40px) 18px;
  font-family: var(--hand);
  font-size: 21px;
}
.foot a { text-underline-offset: 4px; text-decoration-color: rgba(42, 42, 58, .35); }
.foot a:hover { color: var(--pen-deep); }

/* ─── Palco ─────────────────────────────────────────────── */
main {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.is-intro main, .is-loading main { justify-content: center; }
.is-loading .box { width: min(var(--box), 60vw, 34vh); }

.stage {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 2px 0 12px;
}

.box {
  width: min(var(--box), 46vw, 18vh); /* cabe junto com a pergunta, sem rolar */
  transition: width .7s var(--ease-spring);
}
.box svg { display: block; width: 100%; height: auto; overflow: visible; }
.box-lid, .box-body { transform-box: fill-box; transform-origin: 50% 100%; }
.box-lid { transition: transform .9s var(--ease-out), opacity .6s; }
.box-shadow { fill: #3A2A1A; opacity: .18; transform-box: fill-box; transform-origin: center; }

/* pulinho a cada resposta */
.box.hop svg { animation: hop .55s var(--ease-out); }
@keyframes hop {
  0%   { transform: translateY(0) scale(1, 1); }
  30%  { transform: translateY(-14%) scale(.96, 1.05); }
  60%  { transform: translateY(0) scale(1.05, .94); }
  80%  { transform: translateY(-2%) scale(.99, 1.01); }
  100% { transform: translateY(0) scale(1, 1); }
}

/* quase abrindo */
.box.jiggle svg { animation: jiggle 1.6s infinite; transform-origin: 50% 95%; }
.box.jiggle .box-lid { animation: lid-peek 1.6s infinite; }
@keyframes jiggle {
  0%, 46%, 100% { transform: rotate(0) translateY(0); }
  50% { transform: rotate(-5deg) translateY(-3%); }
  56% { transform: rotate(4deg)  translateY(-1%); }
  62% { transform: rotate(-3deg) translateY(-3%); }
  68% { transform: rotate(2deg)  translateY(0); }
  74% { transform: rotate(-1deg); }
  80% { transform: rotate(0); }
}
@keyframes lid-peek {
  0%, 46%, 84%, 100% { transform: translateY(0) rotate(0); }
  54% { transform: translateY(-18%) rotate(-4deg); }
  62% { transform: translateY(-6%)  rotate(3deg); }
  70% { transform: translateY(-22%) rotate(-2deg); }
  78% { transform: translateY(0); }
}

/* abriu! */
.box.open .box-lid { transform: translate(-28%, -180%) rotate(-28deg); opacity: 0; }
.box.open svg { animation: none; }
.box.gone { width: 0; opacity: 0; transition: width .6s var(--ease-out) .5s, opacity .3s .5s; }

.confetti { position: absolute; left: 50%; top: 45%; pointer-events: none; }
.confetti i {
  position: absolute;
  width: 9px; height: 14px;
  background: var(--c);
  animation: burst 1.3s var(--ease-out) forwards;
}
@keyframes burst {
  0%   { transform: translate(0, 0) rotate(0); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) rotate(var(--r)); opacity: 0; }
}

/* ─── O bilhete (cada pergunta é uma folha pautada colada com fita) ─── */
.screen {
  position: relative;
  width: 100%;
  padding: 22px 32px 20px 68px;
  background-color: var(--paper);
  background-image:
    linear-gradient(90deg, transparent 46px, var(--margin-line) 46px, var(--margin-line) 48px, transparent 48px),
    repeating-linear-gradient(transparent 0 31px, var(--rule) 31px 32px);
  background-position: 0 0, 0 14px;
  box-shadow: 0 1px 1px rgba(60, 40, 10, .08), 0 14px 26px -10px rgba(60, 40, 10, .45);
  transition: opacity .22s ease, transform .22s ease;
}
/* fitas adesivas discretas */
.screen::before, .screen::after {
  content: "";
  position: absolute;
  top: -10px;
  width: 84px; height: 22px;
  background: rgba(235, 222, 196, .72);
  box-shadow: 0 1px 2px rgba(60, 40, 10, .12);
  pointer-events: none;
}
.screen::before { left: 22px; transform: rotate(-5deg); background-color: rgba(226, 200, 196, .6); }
.screen::after  { right: 24px; transform: rotate(4deg);  background-color: rgba(206, 220, 204, .6); }

.is-intro .screen, .is-loading .screen, .is-results .screen {
  background: none;
  box-shadow: none;
  padding: 0;
}
.is-intro .screen::before, .is-intro .screen::after,
.is-loading .screen::before, .is-loading .screen::after,
.is-results .screen::before, .is-results .screen::after { display: none; }

.screen.leaving { opacity: 0; transform: translateY(8px); }
.screen.entering { opacity: 0; transform: translateY(-8px); }

.intro { display: flex; justify-content: center; padding-bottom: 12vh; }

.eyebrow {
  font-family: var(--hand);
  font-size: 22px;
  line-height: 1.1;
  color: var(--ink-soft);
  margin: 0 0 2px;
}
.question {
  font-family: var(--hand);
  font-weight: 700;
  font-size: clamp(40px, 5.4vw, 54px);
  line-height: 1;
  letter-spacing: -.005em;
  margin: 0 0 16px;
  text-wrap: balance;
}
.question em {
  font-style: normal;
  color: var(--pen);
  padding-bottom: 5px;
  background: var(--squiggle) left bottom / 100% 10px no-repeat;
}
.hint { font-family: var(--hand); font-size: 22px; line-height: 1.15; color: var(--ink-soft); margin: 0 0 12px; }
.question + .hint { margin-top: -10px; }

/* ─── Botões ────────────────────────────────────────────── */
.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  background: none;
  padding: 0;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
  padding: 4px 26px 7px;
  border-radius: 40px 34px 38px 30px / 30px 38px 32px 36px;
  font-family: var(--hand);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.2;
  transform: rotate(-1.5deg);
  transition: background .2s, transform .15s;
}
.btn-primary:hover { background: var(--pen); }
.btn-primary:active { transform: rotate(-1.5deg) translateY(1px); }
.btn-primary:disabled { background: var(--paper-dim); color: var(--ink-soft); cursor: not-allowed; }
.btn-primary .arrow { display: inline-block; margin-left: 8px; transition: transform .2s; }
.btn-primary:not(:disabled):hover .arrow { transform: translateX(4px); }

.btn-link {
  font-family: var(--hand);
  font-size: 23px;
  color: var(--ink-soft);
  padding: 4px 0;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: color .2s, text-decoration-color .2s;
}
.btn-link:hover { color: var(--ink); text-decoration-color: currentColor; }

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
}
.nav .spacer { flex: 1; }
.nav .btn, .after .btn { white-space: nowrap; }

/* ─── Lista de opções ───────────────────────────────────── */
.options { list-style: none; margin: 0; padding: 0; }
@media (min-width: 640px) {
  .options.two-col { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
}
.opt {
  appearance: none;
  border: 0;
  background: none;
  width: 100%;
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  gap: 4px;
  padding: 6px 2px;
  text-align: left;
  font-size: 16.5px;
  font-weight: 600;
  transition: color .15s, transform .2s var(--ease-out);
}
.opt .key { font-family: var(--hand); font-size: 20px; color: var(--ink-soft); }
.opt .label { justify-self: start; position: relative; }
.opt .mark { display: none; }
@media (hover: hover) { .opt:hover { color: var(--pen); transform: translateX(4px); } }
.opt[aria-pressed="true"] { color: var(--pen); }

/* o círculo de caneta em volta do que foi escolhido */
.opt[aria-pressed="true"] .label::after,
.chip[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  inset: -7px -12px -6px;
  background: var(--circle) center / 100% 100% no-repeat;
  pointer-events: none;
  animation: draw .35s var(--ease-out);
}
@keyframes draw {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}

/* escolha do quiz */
.modes .opt { padding: 10px 2px; }
.modes .label { display: flex; flex-direction: column; gap: 0; }
.mode-name { font-family: var(--hand); font-size: 36px; font-weight: 700; line-height: 1; }
.mode-meta { font-size: 14.5px; font-weight: 600; color: var(--ink-soft); }
.mode-meta strong { color: var(--pen); font-weight: 800; }
.modes .opt[aria-pressed="true"] .label::after { inset: -8px -16px -6px -14px; }

/* ─── Palavras para circular (multi-escolha) ────────────── */
.chips { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-left: -6px; }
.chip {
  border: 0;
  background: none;
  position: relative;
  padding: 6px 8px;
  font-size: 16px;
  font-weight: 600;
  transition: color .15s, transform .2s var(--ease-spring);
}
@media (hover: hover) { .chip:not(:disabled):hover { color: var(--pen); transform: rotate(-2deg); } }
.chip[aria-pressed="true"] { color: var(--pen); font-weight: 800; }
.chip[aria-pressed="true"]::after { inset: -4px -6px; }
.chip:disabled { opacity: .35; cursor: not-allowed; transform: none; }
.tally { font-family: var(--hand); }

.group { margin-top: 18px; }
.question + .group { margin-top: 0; }
.group-label { font-family: var(--hand); font-size: 22px; color: var(--ink-soft); margin: 0 0 4px; display: block; }

/* ─── Campos ────────────────────────────────────────────── */
.field { display: block; }
.field input, .field textarea, .inline-input input {
  width: 100%;
  border: 0;
  border-bottom: 2px solid var(--ink);
  border-radius: 0;
  background: transparent;
  padding: 6px 2px;
  font-size: 19px;
  font-weight: 600;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .inline-input input:focus {
  outline: none;
  border-bottom-color: var(--pen);
  box-shadow: 0 2px 0 var(--pen);
}
.field textarea { resize: vertical; min-height: 96px; line-height: 1.6; background: rgba(255, 253, 246, .6); }
.field input::placeholder, .field textarea::placeholder, .inline-input input::placeholder { color: var(--ink-soft); opacity: 1; font-weight: 500; }
.field .label-text { font-family: var(--hand); font-size: 21px; line-height: 1; color: var(--ink-soft); }
.field.invalid input { border-bottom-color: var(--pen); }
.field .err { font-family: var(--hand); font-size: 20px; line-height: 1.1; color: var(--pen); min-height: 18px; display: block; margin-top: 2px; }
.field .err:empty { min-height: 6px; margin: 0; }

input[type="date"] { min-height: 50px; }
input[type="date"]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .6; }

/* post-it da contagem regressiva */
.countdown {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--hand);
  font-weight: 700;
  font-size: 23px;
  line-height: 1.1;
  padding: 8px 14px;
  background: var(--note);
  box-shadow: 1px 3px 6px rgba(60, 40, 10, .18);
  transform: rotate(-2deg);
  transition: opacity .2s;
}
.countdown:empty { opacity: 0; }
.countdown.urgent { background: #F5CBC4; color: var(--pen-deep); }

.inline-input {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 12px;
  font-family: var(--hand);
  font-size: 22px;
  color: var(--ink-soft);
}
.inline-input .cur { font-family: var(--hand); font-size: 30px; font-weight: 700; color: var(--ink); }
.inline-input input { max-width: 160px; font-family: var(--hand); font-size: 32px; font-weight: 700; }

/* slider útil ↔ emocional */
.slider { margin-top: 4px; }
.slider input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 28px;
  background: transparent;
  cursor: pointer;
}
.slider input[type="range"]::-webkit-slider-runnable-track { height: 2px; background: var(--ink); }
.slider input[type="range"]::-moz-range-track { height: 2px; background: var(--ink); }
.slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  margin-top: -10px;
  border-radius: 50%;
  background: var(--pen);
  border: 2px solid var(--ink);
}
.slider input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--pen);
  border: 2px solid var(--ink);
}
.slider .ends { display: flex; justify-content: space-between; font-family: var(--hand); font-size: 22px; color: var(--ink-soft); }
.slider .ends span.on { color: var(--pen); font-weight: 700; }

/* ─── Formulário final ──────────────────────────────────── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 24px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid { grid-template-areas: "f l" "b e"; }
.f-firstName { grid-area: f; } .f-lastName { grid-area: l; } .f-birthdate { grid-area: b; } .f-email { grid-area: e; }

.consent {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: start;
  margin-top: 10px;
  font-size: 14px;
  color: var(--ink-soft);
  cursor: pointer;
}
.consent input {
  appearance: none;
  width: 22px; height: 22px;
  margin: 1px 0 0;
  border: 2px solid var(--ink);
  border-radius: 3px 5px 2px 6px;
  background: var(--paper);
  cursor: pointer;
}
.consent input:checked { background: var(--paper) var(--tick) center / 120% no-repeat; }
.consent.invalid input { border-color: var(--pen); box-shadow: 0 0 0 3px rgba(194, 54, 43, .18); }
.consent a { text-underline-offset: 3px; }

/* ─── Carregando ───────────────────────────────────────── */
.loading { text-align: center; padding-bottom: 10vh; }
.loading .question { font-size: clamp(40px, 6vw, 56px); }

/* ─── Resultado ─────────────────────────────────────────── */
.results { padding-bottom: 32px; }
.results .eyebrow { color: var(--ink); opacity: .8; }
.results .question { margin-bottom: 24px; }
.results .question em { color: var(--pen-deep); }
.demo-note { margin: -8px 0 26px; padding: 8px 14px; background: var(--note); font-weight: 700; font-size: 15px; transform: rotate(-.5deg); box-shadow: 1px 3px 6px rgba(60, 40, 10, .18); }

/* cada ideia é uma ficha colada com fita */
.idea {
  position: relative;
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 4px 22px;
  margin: 0 0 22px;
  padding: 24px 28px 22px 24px;
  background: var(--paper);
  box-shadow: 0 1px 1px rgba(60, 40, 10, .08), 0 12px 22px -10px rgba(60, 40, 10, .45);
  opacity: 0;
  transform: translateY(14px);
  animation: rise .7s var(--ease-out) forwards;
}
.idea::before {
  content: "";
  position: absolute;
  top: -10px; left: 50%;
  width: 80px; height: 22px;
  margin-left: -40px;
  background: rgba(235, 222, 196, .78);
  box-shadow: 0 1px 2px rgba(60, 40, 10, .12);
  transform: rotate(-3deg);
}
.idea:nth-of-type(2) { --tilt: .5deg; animation-delay: .15s; }
.idea:nth-of-type(2)::before { background-color: rgba(226, 200, 196, .65); transform: rotate(3deg); }
.idea:nth-of-type(3) { --tilt: -.4deg; animation-delay: .3s; }
.idea:nth-of-type(3)::before { background-color: rgba(206, 220, 204, .65); }
@keyframes rise { to { opacity: 1; transform: rotate(var(--tilt, -.3deg)); } }

.illo { display: block; width: 88px; height: 88px; }
.illo svg { display: block; width: 100%; height: 100%; }

.idea h3 { font-family: var(--hand); font-weight: 700; font-size: clamp(30px, 4vw, 36px); line-height: 1; margin: 0 0 4px; }
.idea .meta { font-family: var(--hand); font-size: 23px; line-height: 1.1; color: var(--ink-soft); margin: 0 0 8px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.idea .meta .tag {
  font-size: 19px;
  font-weight: 700;
  color: var(--pen);
  border: 2px solid var(--pen);
  border-radius: 4px 7px 3px 6px;
  padding: 0 8px;
  transform: rotate(-3deg);
}
.idea .why { margin: 0 0 12px; max-width: 56ch; font-size: 16px; }
.idea .shops { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline; }
.idea .shops .label { font-family: var(--hand); font-size: 21px; color: var(--ink-soft); }
.idea .shops a {
  font-weight: 800;
  text-decoration: underline wavy var(--pen) 1.5px;
  text-underline-offset: 5px;
  transition: color .15s;
}
.idea .shops a:hover { color: var(--pen); }

/* "É ele ou ela?" na mesma linha das opções */
.ask-gender:not([hidden]) { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 10px; }
.ask-gender .group-label { margin: 0; color: var(--pen); font-weight: 700; }

/* "não serviu?" */
.idea .fix { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 4px; margin-top: 12px; padding-top: 8px; border-top: 1.5px dashed var(--rule); }
.idea .fix .label { font-family: var(--hand); font-size: 20px; color: var(--ink-soft); margin-right: 6px; }
.fix-btn {
  border: 0; background: none; padding: 4px 8px;
  font-family: var(--hand); font-size: 21px; font-weight: 600; color: var(--ink);
  border-radius: 14px 10px 12px 9px / 9px 12px 10px 14px;
  transition: background .15s, color .15s;
}
.fix-btn:hover { background: var(--note); color: var(--pen-deep); }
.idea.busy > :not(.thinking) { opacity: .25; transition: opacity .3s; pointer-events: none; }
.idea .thinking {
  position: absolute; inset: 0; margin: 0;
  display: grid; place-items: center;
  font-family: var(--hand); font-size: 30px; font-weight: 700; color: var(--pen);
  animation: pulse 1.2s ease-in-out infinite;
}
.idea .thinking.failed { position: static; grid-column: 1 / -1; font-size: 22px; animation: none; opacity: 1; }
.idea.swapped { animation-delay: 0s !important; }
@keyframes pulse { 50% { opacity: .45; } }

/* etiqueta do cartão (kraft, com barbante) */
.card-tag {
  position: relative;
  margin: 26px 0 8px 14px;
  padding: 18px 26px 18px 58px;
  background: var(--kraft-light);
  clip-path: polygon(24px 0, 100% 0, 100% 100%, 24px 100%, 0 50%);
  transform: rotate(-1.2deg);
  box-shadow: inset 0 0 0 2px rgba(58, 42, 26, .15);
  opacity: 0;
  animation: rise .7s var(--ease-out) .5s forwards;
}
.card-tag::before { /* ilhós */
  content: "";
  position: absolute;
  left: 22px; top: 50%;
  width: 12px; height: 12px;
  margin-top: -6px;
  border: 2.5px solid #9C7A47;
  border-radius: 50%;
  background: var(--kraft);
}
.card-tag .eyebrow { margin-bottom: 0; color: #5A4632; }
.card-tag p:last-child { margin: 0; font-family: var(--hand); font-weight: 700; font-size: 28px; line-height: 1.15; }

.after { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; margin-top: 30px; }
.after .btn-link { color: var(--ink); }
.quota-note { margin: 18px 0 0; font-family: var(--hand); font-size: 21px; color: var(--ink-soft); }
.affiliate-note { margin: 22px 0 0; font-size: 12px; line-height: 1.4; color: var(--ink-soft); max-width: 52ch; }
.thanks { margin: 0; color: var(--pen-deep); }

/* ─── Celular ──────────────────────────────────────────── */
@media (max-width: 560px) {
  .topbar { padding-top: 10px; }
  .wordmark { font-size: 26px; }
  .counter { font-size: 21px; }
  .box { width: min(var(--box), 30vw, 11.5vh); }
  /* nas perguntas, o link de privacidade sai do rodapé (continua no início, no resultado e no consentimento) */
  body:not(.is-intro):not(.is-results) .foot { display: none; }
  .stage { padding-bottom: 10px; }
  .screen {
    padding: 18px 16px 14px 40px;
    background-image:
      linear-gradient(90deg, transparent 26px, var(--margin-line) 26px, var(--margin-line) 28px, transparent 28px),
      repeating-linear-gradient(transparent 0 31px, var(--rule) 31px 32px);
  }
  .screen::before, .screen::after { width: 60px; height: 18px; top: -8px; }
  .question { font-size: 36px; margin-bottom: 12px; }
  .question + .hint { margin-top: -6px; }
  .hint, .eyebrow { font-size: 20px; }
  .opt { grid-template-columns: 1fr; padding: 6px 2px; font-size: 15.5px; min-height: 44px; }
  .options.two-col-m { display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; }
  .options.two-col-m .opt { font-size: 14.5px; line-height: 1.25; min-height: 40px; }
  .opt .key { display: none; }
  .mode-name { font-size: 32px; }
  .chips { gap: 0 2px; }
  .chip { font-size: 14.5px; min-height: 40px; padding: 4px 7px; }
  .nav { margin-top: 12px; }
  .btn-primary { font-size: 24px; padding: 4px 20px 7px; }
  .field input { font-size: 17px; }
  .form-grid { gap: 0 14px; }
  .consent { font-size: 13px; }
  .idea { grid-template-columns: 1fr; padding: 22px 18px 18px; }
  .illo { width: 64px; height: 64px; margin-bottom: 4px; }
  .card-tag { padding-right: 18px; }
}

/* ─── Movimento reduzido ───────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .box.jiggle svg { animation: none; }
}
