@font-face {
  font-family: "Inter";
  src: url("assets/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --laranja: #FF5E24;
  --laranja-texto: #B83A08;   /* laranja para texto sobre fundo claro (contraste 5:1) */
  --grafite: #232323;
  --branco: #EFF1F4;          /* branco frio oficial (não usar #FFF) */
  --azul: #1B75EB;            /* só foco e interação */
  --linha: rgba(35, 35, 35, .14);
  --suave: rgba(35, 35, 35, .64);
  --campo: #F7F8FA;
  --raio: 28px;
  --raio-bloco: 24px;
}
* { box-sizing: border-box; margin: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--branco);
  color: var(--grafite);
  min-height: 100dvh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
figure { margin: 0; }
img { display: block; max-width: 100%; }

/* ---------- Layout dividido ---------- */
.shell { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 100dvh; }

/* Painel da marca: degradê laranja da identidade, imagem em bloco arredondado e frase em peso leve */
.brand {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; gap: 20px;
  height: 100dvh; position: sticky; top: 0;
  padding: clamp(24px, 3vw, 44px) clamp(32px, 4.5vw, 72px) clamp(28px, 4.5dvh, 64px) clamp(32px, 4.5vw, 72px);
  background: url("assets/fundo-modular.jpg") center / cover no-repeat, var(--laranja);
  color: #fff;
}
.brand-logo { height: 38px; width: auto; align-self: flex-start; }
.slide { max-width: 640px; transition: opacity .3s ease, transform .3s ease; }
.slide.out { opacity: 0; transform: translateY(10px); }
.slide-img {
  border-radius: var(--raio-bloco); overflow: hidden; aspect-ratio: 16 / 10; max-height: 38dvh;
  background: rgba(35,35,35,.2); box-shadow: 0 24px 60px rgba(35, 20, 10, .28);
}
.slide-img img { width: 100%; height: 100%; object-fit: cover; }
.slide h2 {
  margin-top: clamp(22px, 3vh, 36px);
  font-size: clamp(28px, min(3.5vw, 6dvh), 56px); line-height: 1.06;
  letter-spacing: -.035em; font-weight: 500; text-wrap: balance;
}
.slide h2 em { font-style: normal; color: var(--grafite); }
.slide p { margin-top: 14px; font-size: clamp(15px, 1.25vw, 19px); line-height: 1.45; color: rgba(255,255,255,.9); max-width: 44ch; }

.panel {
  position: relative; z-index: 1;
  background: var(--branco);
  border-radius: var(--raio) 0 0 var(--raio);
  margin-left: calc(var(--raio) * -1);
  display: flex; flex-direction: column;
  padding: 20px clamp(24px, 4vw, 56px) 20px;
  min-height: 100dvh;
}
.bar { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; height: 56px; }
.bar-symbol { justify-self: center; height: 30px; width: auto; }
.bar-count { justify-self: end; font-size: 13px; color: var(--suave); font-variant-numeric: tabular-nums; }
.back {
  width: 44px; height: 44px; border: 0; background: transparent; border-radius: 50%;
  display: grid; place-items: center; color: var(--laranja-texto); cursor: pointer;
}
.back svg { width: 26px; height: 26px; }
.back:hover { background: rgba(35,35,35,.06); }
.back:focus-visible { outline: 3px solid var(--azul); outline-offset: 2px; }
.progress { height: 4px; background: rgba(35,35,35,.1); border-radius: 4px; margin-top: 8px; overflow: hidden; }
.progress i { display: block; height: 100%; width: calc(var(--p, 0) * 1%); background: var(--laranja); border-radius: 4px; transition: width .35s ease; }

.m-hero { display: none; }

.step { width: 100%; max-width: 620px; margin: 0 auto; padding: clamp(36px, 8vh, 88px) 0 24px; flex: 1 1 auto; }
.step.enter { animation: entra .32s ease both; }
@keyframes entra { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.kicker { font-size: 15px; font-weight: 500; color: var(--suave); }
.question {
  margin-top: 10px; font-size: clamp(28px, 3vw, 38px); line-height: 1.12;
  letter-spacing: -.035em; font-weight: 500; outline: none; text-wrap: balance;
}
.req { color: var(--laranja-texto); }
.field { margin-top: 28px; }
.input {
  width: 100%; height: 62px; padding: 0 22px;
  font: inherit; font-size: 18px; color: var(--grafite);
  background: var(--campo); border: 1.5px solid var(--linha); border-radius: 18px;
  transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: rgba(35,35,35,.4); }
.input:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 4px rgba(27,117,235,.16); }
.input[aria-invalid="true"] { border-color: #C0262D; }
.choices { display: grid; gap: 10px; }
.choice {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
  min-height: 58px; padding: 12px 20px; text-align: left; cursor: pointer;
  font: inherit; font-size: 17px; color: var(--grafite);
  background: var(--campo); border: 1.5px solid var(--linha); border-radius: 18px;
  transition: border-color .15s, background .15s, transform .1s;
}
.choice:hover { border-color: var(--laranja); background: rgba(255,94,36,.07); }
.choice:active { transform: scale(.99); }
.choice:focus-visible { outline: 3px solid var(--azul); outline-offset: 2px; }
.choice[aria-pressed="true"] { border-color: var(--laranja); background: rgba(255,94,36,.14); font-weight: 600; }
.choice i { width: 18px; height: 18px; flex: none; border-radius: 50%; border: 1.5px solid var(--linha); }
.choice[aria-pressed="true"] i { border: 5px solid var(--laranja); }
.error { min-height: 22px; margin-top: 10px; font-size: 14px; color: #B3202A; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.actions { display: flex; justify-content: flex-end; margin-top: 4px; }
.next {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 54px; padding: 0 26px 0 30px; border: 0; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 16px; font-weight: 600;
  background: var(--laranja); color: var(--grafite);
  transition: background .15s, transform .1s;
}
.next svg { width: 20px; height: 20px; }
.next:hover { background: #ff7243; }
.next:active { transform: scale(.98); }
.next:focus-visible { outline: 3px solid var(--azul); outline-offset: 3px; }
.next[disabled] { opacity: .6; cursor: progress; }
.actions.hide { display: none; }

/* Frase da marca: seta laranja + texto, como nas peças da identidade */
.note {
  width: 100%; max-width: 620px; margin: 8px auto 0;
  display: flex; gap: 14px; align-items: flex-start;
  padding: 22px 24px; border-radius: var(--raio-bloco);
  background: var(--campo); border: 1px solid var(--linha);
}
.note-arrow { width: 26px; height: 26px; flex: none; color: var(--laranja); margin-top: 1px; }
.note p { font-size: 17px; line-height: 1.35; letter-spacing: -.01em; font-weight: 500; color: var(--laranja-texto); }
.legal { max-width: 620px; margin: 28px auto 0; text-align: center; font-size: 12.5px; color: var(--suave); }
.copy { margin: 20px auto 0; text-align: center; font-size: 12px; color: var(--suave); padding-bottom: env(safe-area-inset-bottom); }

/* ---------- Tela final ---------- */
.thanks {
  min-height: 100dvh; background: var(--branco);
  display: flex; flex-direction: column; align-items: center;
  padding: max(36px, env(safe-area-inset-top)) 24px 36px; text-align: center;
}
.thanks.enter { animation: entra .4s ease both; }
.thanks-logo { height: 36px; width: auto; }
.thanks-title { margin-top: 48px; font-size: clamp(32px, 5vw, 56px); line-height: 1.06; letter-spacing: -.04em; font-weight: 500; max-width: 22ch; text-wrap: balance; }
.thanks-title em { font-style: normal; color: var(--laranja-texto); }
.thanks-sub { margin-top: 14px; color: var(--suave); font-size: 17px; max-width: 46ch; }
.journey {
  list-style: none; padding: 0; margin: 44px auto 0; width: 100%; max-width: 1040px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; text-align: left;
}
.tile {
  position: relative; display: flex; flex-direction: column; min-height: 230px; padding: 22px;
  border-radius: var(--raio-bloco); background: var(--campo); border: 1px solid var(--linha);
}
.tile .num { font-size: 40px; font-weight: 500; letter-spacing: -.04em; line-height: 1; color: var(--laranja-texto); margin-bottom: auto; padding-bottom: 28px; }
.tile h3 { font-size: 19px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.tile p { margin-top: 8px; font-size: 14px; line-height: 1.45; color: var(--suave); }
.tile.first { background: var(--laranja); border-color: var(--laranja); }
.tile.first .num, .tile.first p { color: var(--grafite); }
.tile.dark { background: var(--grafite); border-color: var(--grafite); color: var(--branco); }
.tile.dark .num { color: var(--laranja); }
.tile.dark p { color: rgba(239,241,244,.75); }
.thanks-img { width: 100%; max-width: 1040px; margin: 14px auto 0; border-radius: var(--raio-bloco); overflow: hidden; aspect-ratio: 21 / 8; }
.thanks-img img { width: 100%; height: 100%; object-fit: cover; }
.meanwhile { margin-top: 48px; font-weight: 600; font-size: 18px; letter-spacing: -.01em; }
.thanks-links { margin-top: 20px; display: grid; gap: 12px; width: 100%; max-width: 420px; }
.btn {
  display: flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 20px;
  border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 16px; color: var(--grafite);
  background: var(--campo); border: 1.5px solid var(--linha); transition: border-color .15s, background .15s;
}
.btn:hover { border-color: var(--laranja); background: rgba(255,94,36,.08); }
.btn:focus-visible { outline: 3px solid var(--azul); outline-offset: 3px; }
.btn.primary { background: var(--laranja); border-color: var(--laranja); }
.btn.primary:hover { background: #ff7243; }

/* ---------- Celular e tablet ---------- */
@media (max-width: 899px) {
  body { background: var(--branco); }
  .shell { display: block; }
  .brand { height: auto; position: relative; padding: 18px 24px 36px; flex-direction: row; align-items: center; justify-content: center; }
  .brand .slide { display: none; }
  .brand-logo { height: 30px; align-self: center; }
  .panel { margin-left: 0; margin-top: -22px; border-radius: 24px 24px 0 0; min-height: calc(100dvh - 66px + 22px); padding: 10px 20px 16px; }
  .bar { height: 46px; }
  .m-hero { display: block; margin-top: 14px; border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 7; background: rgba(35,35,35,.08); }
  .m-hero img { width: 100%; height: 100%; object-fit: cover; }
  .step { padding-top: 22px; }
  .note { display: none; }
  .journey { grid-template-columns: 1fr; max-width: 480px; }
  .tile { min-height: 0; }
  .tile .num { margin-bottom: 0; padding-bottom: 16px; }
  .thanks-img { aspect-ratio: 16 / 9; }
}
@media (prefers-reduced-motion: reduce) {
  .slide, .progress i, .step.enter, .thanks.enter { transition: none; animation: none; }
}
