:root {
  --ink: #0c0b0a;
  --cream: #f1ece3;
  --muted: #c3bbb0;
  --gold: #b69058;
}

* { box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--ink);
}

body {
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--ink);
  color: var(--cream);
  font-family: Montserrat, Arial, sans-serif;
}

/* Um único viewport: painéis absolutos nunca reservam espaço no fluxo vertical. */
.app-shell {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--ink);
  contain: layout paint;
}

.intro {
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  background: radial-gradient(ellipse 70% 100% at 91% 42%, #292016 0%, #12100d 52%, var(--ink) 88%);
}

.intro__image {
  z-index: -2;
  position: absolute;
  inset: 0 0 0 39%;
  background: url("assets/rayssa.png") 65% center / cover no-repeat;
}

.intro__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--ink) 0%, rgba(12, 11, 10, .94) 8%, rgba(12, 11, 10, .45) 35%, rgba(12, 11, 10, .05) 68%),
    linear-gradient(0deg, rgba(4, 4, 4, .42), transparent 38%);
}

.intro__content {
  width: min(620px, 51vw);
  margin-left: clamp(2rem, 9.2vw, 11rem);
  padding: 3rem 0;
  animation: reveal .9s cubic-bezier(.2,.7,.2,1) both;
}

.eyebrow, .program, .intro__number { text-transform: uppercase; letter-spacing: .18em; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin: 0 0 2.7rem;
  color: var(--gold);
  font-size: .63rem;
  font-weight: 600;
}

.eyebrow span { width: 2rem; height: 1px; background: currentColor; }

.program {
  margin: 0 0 1.3rem;
  color: #d6cbbd;
  font-size: .61rem;
  font-weight: 500;
  line-height: 1.7;
}

.program em { color: var(--gold); font-style: normal; }

h1 {
  max-width: 610px;
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(3.65rem, 5vw, 6.3rem);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: .87;
  text-wrap: balance;
}

.copy {
  max-width: 490px;
  margin: clamp(2rem, 4vh, 3.5rem) 0 2.2rem;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 400;
  letter-spacing: .015em;
  line-height: 1.85;
}

.copy p { margin: 0 0 .8rem; }

.start {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  min-height: 3.45rem;
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(182, 144, 88, .75);
  border-radius: 0;
  background: transparent;
  color: var(--cream);
  cursor: pointer;
  font: 600 .64rem/1 Montserrat, sans-serif;
  letter-spacing: .15em;
  text-transform: uppercase;
  transition: color .25s ease, gap .25s ease, border-color .25s ease;
}

.start i { color: var(--gold); font: 1.35rem/1 Georgia, serif; transition: transform .25s ease; }
.start:hover, .start:focus-visible { color: #d6ae71; gap: 1.65rem; border-color: #d6ae71; outline: none; }
.start:hover i, .start:focus-visible i { transform: translateX(.2rem); }

.intro__number {
  position: absolute;
  right: clamp(1.5rem, 3.5vw, 4rem);
  bottom: 2rem;
  margin: 0;
  color: rgba(241, 236, 227, .7);
  font-size: .58rem;
  font-weight: 500;
}
.intro__number span { margin: 0 .35rem; color: var(--gold); }

@keyframes reveal { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 760px) {
  .intro { align-items: flex-end; min-height: 0; background: var(--ink); }
  .intro__image { inset: 0; background-position: 64% 23%; }
  .intro__image::after { background: linear-gradient(180deg, rgba(12,11,10,.12) 0%, rgba(12,11,10,.7) 28%, var(--ink) 56%); }
  .intro__content { width: auto; margin: 0; padding: 9.5rem 1.7rem 2.4rem; }
  .eyebrow { margin-bottom: 1.6rem; }
  .program { margin-bottom: .9rem; }
  h1 { font-size: clamp(3.15rem, 13vw, 4.5rem); line-height: .88; }
  .copy { margin: 1.65rem 0 1.45rem; font-size: .68rem; line-height: 1.75; }
  .copy p { margin-bottom: .62rem; }
  .intro__number { display: none; }
}

@media (prefers-reduced-motion: reduce) { .intro__content { animation: none; } .start, .start i { transition: none; } }

/* Etapa 01 — a estrutura abaixo mantém uma única pergunta visível por vez. */
.intro.is-leaving { animation: fade-out .45s ease both; }
.questionnaire {
  isolation: isolate;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  padding-top: clamp(1.6rem, 4.5vw, 4rem);
  background: radial-gradient(ellipse 68% 100% at 92% 45%, #211a12 0%, #12100d 55%, var(--ink) 88%);
}
.questionnaire[hidden] { display: none; }
.questionnaire__wash { position: absolute; z-index: -1; inset: 0; opacity: .09; background: url("assets/rayssa.png") 105% center / 53% auto no-repeat; }
.questionnaire__wash::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink) 0%, rgba(12,11,10,.94) 32%, rgba(12,11,10,.2) 100%); }
.questionnaire__header { position: relative; z-index: 1; margin: 0 clamp(1.7rem, 6vw, 7rem) 0 clamp(1.7rem, 9.2vw, 11rem); display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; }
.questionnaire__header .eyebrow { margin: 0; }
.questionnaire__counter { margin: 0; color: var(--muted); font-size: .61rem; font-weight: 500; letter-spacing: .16em; line-height: 1.6; text-transform: uppercase; }
.stage-progress { width: min(720px, 56vw); }
.stage-progress ol { display: flex; align-items: flex-start; justify-content: flex-end; gap: 0; padding: 0; margin: 0; list-style: none; }
.stage-progress li { position: relative; flex: 1 1 0; min-width: 0; color: rgba(195,187,176,.5); font-size: .52rem; font-weight: 500; letter-spacing: .11em; line-height: 1.45; text-transform: uppercase; }
.stage-progress li:not(:last-child)::after { content: ""; position: absolute; top: .28rem; left: 1.45rem; right: .5rem; height: 1px; background: rgba(182,144,88,.24); }
.stage-progress span { display: block; color: currentColor; font-size: .61rem; letter-spacing: .17em; }
.stage-progress em { display: block; max-width: 7rem; margin-top: .45rem; font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stage-progress .is-active { color: var(--gold); }
.stage-progress .is-active span { color: #d6ae71; }
.stage-progress .is-complete { color: rgba(182,144,88,.8); }
.stage-progress .is-complete:not(:last-child)::after { background: rgba(182,144,88,.72); }
.questionnaire__body { display: flex; flex-direction: column; justify-content: flex-start; min-height: 0; width: min(800px, 72vw); margin-left: clamp(1.7rem, 16vw, 19rem); padding: clamp(2.5rem, 7vh, 5rem) 0 3rem; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.questionnaire__body::-webkit-scrollbar { width: 0; height: 0; }
.questionnaire__counter { color: var(--gold); margin-bottom: 1.35rem; }
.question-title { max-width: 800px; font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(3.25rem, 5vw, 5.8rem); font-weight: 500; letter-spacing: -.045em; line-height: .92; margin: 0; }
.question-help { max-width: 510px; color: var(--muted); font-size: .75rem; letter-spacing: .01em; line-height: 1.8; margin: 1.35rem 0 0; }
.answer-area { max-width: 700px; margin-top: clamp(2.2rem, 5vh, 4rem); }
.answer-input, .answer-select { width: 100%; border: 0; border-bottom: 1px solid rgba(182,144,88,.55); border-radius: 0; appearance: none; background: transparent; color: var(--cream); padding: .5rem 0 .9rem; outline: none; font: 500 clamp(1.1rem, 1.7vw, 1.45rem)/1.3 Montserrat, sans-serif; transition: border-color .25s ease; }
.answer-textarea { display: block; min-height: 7.5rem; resize: vertical; }
.answer-input::placeholder { color: rgba(195,187,176,.45); }
.answer-input:focus, .answer-select:focus { border-color: var(--gold); }
.select-wrap { position: relative; max-width: 600px; }
.select-wrap::after { content: "↓"; color: var(--gold); position: absolute; right: .2rem; top: .4rem; pointer-events: none; font-size: 1.1rem; }
.answer-select option { background: #151310; color: var(--cream); }
.options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem 2.7rem; max-width: 720px; }
.option { position: relative; display: flex; align-items: center; gap: .85rem; min-height: 3.15rem; color: #d8d0c6; cursor: pointer; font-size: .75rem; letter-spacing: .01em; transition: color .2s ease; }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option__mark { flex: 0 0 1rem; width: 1rem; height: 1rem; border: 1px solid rgba(182,144,88,.65); border-radius: 50%; transition: background .2s ease, box-shadow .2s ease; }
.option:hover, .option:has(input:focus-visible) { color: var(--cream); }
.option input:checked + .option__mark { border-color: var(--gold); background: var(--gold); box-shadow: inset 0 0 0 3px var(--ink); }
.option--multiple .option__mark { border-radius: 2px; }
.questionnaire__nav { display: flex; justify-content: space-between; align-items: center; max-width: 700px; margin-top: clamp(2.8rem, 7vh, 5.5rem); }
.back, .continue { border: 0; border-radius: 0; background: transparent; cursor: pointer; text-transform: uppercase; letter-spacing: .16em; font: 600 .62rem/1 Montserrat, sans-serif; }
.back { padding: .7rem 0; color: var(--muted); transition: color .2s ease; }
.back:hover, .back:focus-visible { color: var(--cream); outline: none; }
.continue { display: inline-flex; align-items: center; gap: 1rem; padding: 1.15rem 0; border-bottom: 1px solid rgba(182,144,88,.7); color: var(--cream); transition: color .2s ease, gap .2s ease; }
.continue i { color: var(--gold); font: 1.35rem/1 Georgia, serif; }
.continue:hover, .continue:focus-visible { color: #d6ae71; gap: 1.35rem; outline: none; }
.validation { min-height: 1.2rem; margin: 1rem 0 -1rem; color: #d7a37d; font-size: .63rem; letter-spacing: .04em; }
.questionnaire__number { color: rgba(241,236,227,.6); }
.question-enter { animation: reveal .45s cubic-bezier(.2,.7,.2,1) both; }
@keyframes fade-out { to { opacity: 0; transform: translateY(-8px); } }

@media (max-width: 760px) {
  .questionnaire__wash { opacity: .055; background-size: auto 90%; background-position: 125% 8%; }
  .questionnaire { padding-top: 1.6rem; }
  .questionnaire__header { margin: 0 1.7rem; align-items: flex-start; }
  .questionnaire__header .eyebrow { font-size: .57rem; }
  .stage-progress { width: min(50vw, 13rem); }
  .stage-progress em { display: none; }
  .stage-progress li { font-size: .55rem; }
  .stage-progress li:not(:last-child)::after { left: 1.35rem; right: .25rem; }
  .questionnaire__body { width: auto; margin: 0; padding: 2.1rem 1.7rem 2rem; justify-content: flex-start; }
  .question-title { font-size: clamp(2.85rem, 12.5vw, 4.1rem); }
  .question-help { font-size: .68rem; }
  .answer-area { margin-top: 2rem; }
  .options { grid-template-columns: 1fr; gap: .15rem; }
  .option { min-height: 2.65rem; font-size: .7rem; }
  .questionnaire__nav { margin-top: 2.3rem; }
  .questionnaire__number { display: none; }
}
/* =========================================
   TELA FINAL — CONCLUSÃO
   ========================================= */

.completion {
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  background: #0b0a09;
  color: #f4f1ea;
  display: grid;
  align-items: center;
  isolation: isolate;
}

.completion[hidden] {
  display: none;
}

/* Imagem/atmosfera do lado direito */
.completion__image {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(
      90deg,
      #0b0a09 0%,
      rgba(11, 10, 9, 0.98) 28%,
      rgba(11, 10, 9, 0.82) 52%,
      rgba(11, 10, 9, 0.28) 100%
    ),
    url("assets/rayssa.png") center right / cover no-repeat;
  filter: none;
}

/* Escurecimento adicional na parte inferior */
.completion::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(11, 10, 9, 0.04) 45%,
      rgba(11, 10, 9, 0.72) 100%
    );
}

/* Conteúdo */
.completion__content {
  width: min(720px, calc(100% - 48px));
  margin-left: clamp(56px, 9vw, 140px);
  padding: 80px 0;
}

.completion .eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 44px;
  color: #d5a334;
  font-family: Montserrat, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.completion .eyebrow span {
  display: inline-block;
  width: 32px;
  height: 1px;
  background: #d5a334;
}

.completion .program {
  margin: 0 0 24px;
  color: rgba(244, 241, 234, 0.68);
  font-family: Montserrat, sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.completion .program em {
  font-style: normal;
  color: rgba(244, 241, 234, 0.9);
}

.completion h1 {
  max-width: 720px;
  margin: 0;
  color: #f4f1ea;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(64px, 7vw, 108px);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: -0.035em;
}

.completion .copy {
  max-width: 570px;
  margin-top: 42px;
  color: rgba(244, 241, 234, 0.72);
  font-family: Montserrat, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.8;
}

.completion .copy p {
  margin: 0 0 16px;
}

.completion__signature {
  margin: 34px 0 42px;
  color: #d5a334;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 24px;
  font-style: italic;
}

.completion__button {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  color: #f4f1ea;
  text-decoration: none;
  font-family: Montserrat, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(213, 163, 52, 0.75);
  padding-bottom: 14px;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    gap 180ms ease;
}

.completion__button i {
  color: #d5a334;
  font-size: 18px;
  font-style: normal;
  line-height: 1;
}

.completion__button:hover {
  color: #d5a334;
  border-color: #d5a334;
  gap: 28px;
}

.completion__number {
  position: absolute;
  right: clamp(28px, 4vw, 64px);
  bottom: 28px;
  margin: 0;
  color: rgba(244, 241, 234, 0.52);
  font-family: Montserrat, sans-serif;
  font-size: 10px;
  letter-spacing: 0.16em;
}

.completion__number span {
  margin: 0 5px;
  color: rgba(213, 163, 52, 0.75);
}

/* =========================================
   RESPONSIVO
   ========================================= */

@media (max-width: 800px) {
  .completion {
    min-height: 100svh;
    height: auto;
    align-items: start;
    overflow-x: hidden;
    overflow-y: auto;
  }
  .completion__image {
    background:
      linear-gradient(
        180deg,
        rgba(11, 10, 9, 0.32) 0%,
        rgba(11, 10, 9, 0.88) 54%,
        #0b0a09 100%
      ),
      url("assets/rayssa.png") center top / cover no-repeat;
  }

  .completion__content {
    width: min(100% - 40px, 620px);
    margin: 0 auto;
    padding: 100px 0 76px;
  }

  .completion .eyebrow {
    margin-bottom: 30px;
  }

  .completion h1 {
    font-size: clamp(54px, 14vw, 82px);
  }

  .completion .copy {
    margin-top: 32px;
    font-size: 13px;
    line-height: 1.7;
  }

  .completion__signature {
    margin: 28px 0 34px;
  }

  .completion__number {
    right: 20px;
    bottom: 18px;
  }
}

@media (max-width: 480px) {
  .completion__content {
    width: calc(100% - 32px);
    padding-bottom: 64px;
  }

  .completion h1 {
    font-size: clamp(48px, 14vw, 66px);
  }

  .completion .copy {
    font-size: 12px;
  }

  .completion__button {
    font-size: 10px;
  }
}