/* =========================================================================
   Calculadora de Valuation — estilos específicos desta LP.
   Depende de /assets/css/base.css (tokens, reset, botões, rodapé).
   ========================================================================= */
/* ------------------------------------------------------- 4. Shell do app */
.app {
  display: grid;
  grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100svh;
}

/* --- Painel esquerdo (marca + progresso) --- */
.app__aside {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 36px var(--gutter) 40px;
  background: var(--ink);
  color: var(--text-onink);
  overflow: hidden;
}
.app__aside::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(112deg,
    rgba(78, 197, 193, .10) 0 2px, transparent 2px 90px);
  pointer-events: none;
}
.app__aside::after {
  content: '';
  position: absolute;
  right: -180px; top: -160px;
  width: 460px; height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(78, 197, 193, .34), transparent 62%);
  pointer-events: none;
}
.app__aside > * { position: relative; z-index: 1; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: 0 0 auto;
}
.brand img { width: 104px; height: auto; }
.brand__tag {
  padding: 5px 10px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1;
}

.aside__title {
  color: #fff;
  font-size: 1.5rem;
  line-height: 1.22;
  margin: 0 0 10px;
}
.aside__text { margin: 0; font-size: .9375rem; }

/* Lista de etapas */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.steps__item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 11px 12px;
  border-radius: var(--r);
  font-size: .9063rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .55);
  transition: background var(--t), color var(--t);
}
.steps__num {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .25);
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1;
  transition: all var(--t);
}
.steps__num svg { width: 15px; height: 15px; }
.steps__item.is-current {
  background: rgba(255, 255, 255, .09);
  color: #fff;
  font-weight: 600;
}
.steps__item.is-current .steps__num {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--ink);
}
.steps__item.is-done { color: rgba(255, 255, 255, .8); }
.steps__item.is-done .steps__num {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--ink);
}

.aside__foot {
  margin-top: auto;
  display: grid;
  gap: 12px;
  font-size: .8125rem;
  color: rgba(255, 255, 255, .62);
}
.aside__foot p { margin: 0; }
.trust {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.trust svg { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 3px; color: var(--teal); }

/* --- Painel direito (formulário) --- */
.app__main {
  display: flex;
  flex-direction: column;
  background: var(--paper-2);
  min-width: 0;
}

.app__bar {
  display: none;
  align-items: center;
  gap: 14px;
  padding: 14px var(--gutter);
  background: var(--ink);
  position: sticky;
  top: 0;
  z-index: 20;
}
.app__bar .brand img { width: 84px; }
.app__bar-step {
  margin-left: auto;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .7);
}

.progress {
  display: flex;
  gap: 5px;
  padding: 0 var(--gutter);
  margin-top: 22px;
}
.progress__seg {
  height: 4px;
  flex: 1 1 0;
  border-radius: 4px;
  background: var(--line);
  overflow: hidden;
}
.progress__seg span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 4px;
  background: var(--yellow);
  transition: width 380ms cubic-bezier(.4, 0, .2, 1);
}
.progress__seg.is-done span { width: 100%; background: var(--teal); }
.progress__seg.is-current span { width: 100%; }

.app__scroll {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4vw, 52px) var(--gutter);
}

.screen { max-width: 620px; width: 100%; margin-inline: auto; }
.screen[hidden] { display: none; }
.screen.is-entering { animation: slide-in 320ms cubic-bezier(.4, 0, .2, 1); }

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

.screen__kicker {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin: 0 0 10px;
}
.screen__title {
  font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2rem);
  margin: 0 0 8px;
}
.screen__sub {
  margin: 0 0 30px;
  color: var(--text-muted);
  font-size: .9688rem;
}

/* ------------------------------------------------------------ 5. Campos */
.fields { display: grid; gap: 20px; }
.fields--2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 620px) { .fields--2 { grid-template-columns: 1fr; } }

.field { display: grid; gap: 8px; min-width: 0; }

.field__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--ink);
}

.hint {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: var(--mist);
  color: var(--teal-600);
  font-size: .6875rem;
  font-weight: 700;
  line-height: 1;
}
.hint__text {
  position: absolute;
  left: 50%; bottom: calc(100% + 10px);
  transform: translateX(-50%);
  width: max-content;
  max-width: 240px;
  padding: 10px 13px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-size: .75rem;
  font-weight: 400;
  line-height: 1.45;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t), visibility var(--t);
  z-index: 30;
  pointer-events: none;
}
.hint__text::after {
  content: '';
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--ink);
}
.hint:hover .hint__text,
.hint:focus-visible .hint__text { opacity: 1; visibility: visible; }

.input {
  width: 100%;
  padding: 15px 18px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r);
  background: var(--paper);
  color: var(--ink);
  font-size: 1rem;
  transition: border-color var(--t), box-shadow var(--t), background var(--t);
  appearance: none;
}
.input::placeholder { color: #9aa5a3; }
.input:hover { border-color: #bcc7c5; }
.input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(78, 197, 193, .18);
}
.input.is-invalid { border-color: var(--danger); }
.input.is-invalid:focus { box-shadow: 0 0 0 4px rgba(192, 57, 43, .14); }

select.input {
  cursor: pointer;
  padding-right: 46px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23113131' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 18px;
}
select.input:invalid, select.input option[value=""] { color: #9aa5a3; }

/* Campo de dinheiro com prefixo R$ */
.money { position: relative; }
.money__prefix {
  position: absolute;
  left: 18px; top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  pointer-events: none;
}
.money .input { padding-left: 46px; font-variant-numeric: tabular-nums; }

.field__error {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--danger);
}
.field__error svg { width: 14px; height: 14px; flex: 0 0 auto; }
.field.has-error .field__error { display: flex; }

/* Bloco explicativo recolhível */
.helper {
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
  overflow: hidden;
}
.helper__toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 15px 20px;
  border: 0;
  background: none;
  text-align: left;
  font-size: .875rem;
  font-weight: 600;
  color: var(--ink);
}
.helper__toggle svg { width: 16px; height: 16px; color: var(--teal-600); }
.helper__toggle .chev { margin-left: auto; transition: transform var(--t); }
.helper[open] .helper__toggle .chev { transform: rotate(180deg); }
.helper__body {
  padding: 0 20px 18px;
  display: grid;
  gap: 10px;
  font-size: .8438rem;
  line-height: 1.6;
  color: var(--text-muted);
}
.helper__body p { margin: 0; padding-left: 24px; position: relative; }
.helper__body p::before {
  content: '';
  position: absolute;
  left: 0; top: .45em;
  width: 14px; height: 14px;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317817f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4 4L19 7'/%3E%3C/svg%3E");
}
.helper__body strong { color: var(--ink); font-weight: 600; }

/* ------------------------------------------------------------ 6. Ações */
.actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
}
.actions .btn--next { margin-left: auto; }
.btn--back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 6px;
  border: 0;
  background: none;
  color: var(--text-muted);
  font-size: .9063rem;
  font-weight: 500;
}
.btn--back:hover { color: var(--ink); }
.btn--back svg { width: 17px; height: 17px; }

.form-note {
  margin: 18px 0 0;
  font-size: .75rem;
  line-height: 1.55;
  color: var(--text-muted);
}
.form-note a { color: var(--teal-600); }

/* ---------------------------------------------------- 7. Tela de abertura */
.start__title {
  font-size: clamp(1.9rem, 1.2rem + 2.6vw, 2.9rem);
  line-height: 1.08;
  margin: 18px 0 16px;
}
.start__title em { font-style: normal; color: var(--teal-600); }
.start__text {
  font-size: 1.0625rem;
  color: var(--text-muted);
  margin: 0 0 28px;
  max-width: 46ch;
}
.start__list {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: grid;
  gap: 12px;
}
.start__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .9375rem;
}
.start__list svg { width: 20px; height: 20px; flex: 0 0 auto; margin-top: 2px; color: var(--teal-600); }
.start__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 20px;
  font-size: .8125rem;
  color: var(--text-muted);
}
.start__meta span { display: inline-flex; align-items: center; gap: 7px; }
.start__meta svg { width: 15px; height: 15px; color: var(--teal-600); }

/* ---------------------------------------------------- 8. Enviando dados */
.loading { text-align: center; padding: 40px 0; }
.loading__ring {
  width: 66px; height: 66px;
  margin: 0 auto 26px;
  border-radius: 50%;
  border: 5px solid var(--mist);
  border-top-color: var(--teal);
  animation: spin 900ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading__step {
  margin: 0;
  color: var(--text-muted);
  font-size: .9375rem;
  min-height: 1.6em;
}

/* ------------------------------------------------- 9. Confirmação de envio */
.done { max-width: 700px; }

.done__card {
  position: relative;
  padding: clamp(30px, 4vw, 48px);
  border-radius: var(--r-xl);
  background: var(--ink);
  color: var(--text-onink);
  overflow: hidden;
  text-align: center;
}
.done__card::before {
  content: '';
  position: absolute;
  right: -110px; bottom: -190px;
  width: 440px; height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(230, 228, 55, .26), transparent 60%);
}
.done__card > * { position: relative; }

.done__seal {
  display: grid;
  place-items: center;
  width: 74px; height: 74px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  animation: pop 420ms cubic-bezier(.34, 1.56, .64, 1);
}
.done__seal svg { width: 34px; height: 34px; }
@keyframes pop {
  from { opacity: 0; transform: scale(.6); }
  to { opacity: 1; transform: none; }
}

.done__card h2 {
  color: #fff;
  font-size: clamp(1.5rem, 1.15rem + 1.6vw, 2.1rem);
  margin: 0 0 12px;
}
.done__card p { margin: 0 auto; max-width: 46ch; font-size: 1rem; }
.done__card strong { color: #fff; font-weight: 600; }
.done__mail {
  display: inline-block;
  width: auto;
  margin: 16px auto 0;
  padding: 9px 20px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
  color: #fff;
  font-weight: 600;
  word-break: break-all;
}

/* Linha do tempo do que acontece depois */
.timeline {
  list-style: none;
  margin: 16px 0 0;
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--paper);
  display: grid;
  gap: 22px;
}
.timeline li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.timeline__dot {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--mist);
  color: var(--teal-600);
  font-size: .8125rem;
  font-weight: 700;
}
.timeline li:not(:last-child) .timeline__dot::after {
  content: '';
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  width: 2px; height: 22px;
  background: var(--line);
}
.timeline h3 { font-size: 1rem; margin: 5px 0 4px; }
.timeline p { margin: 0; font-size: .9063rem; color: var(--text-muted); }

/* Resumo do que foi enviado */
.summary {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--paper);
  overflow: hidden;
}
.summary > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 24px;
  cursor: pointer;
  font-size: .9063rem;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
}
.summary > summary::-webkit-details-marker { display: none; }
.summary > summary::after {
  content: '';
  margin-left: auto;
  width: 17px; height: 17px;
  flex: 0 0 auto;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23113131' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  transition: transform var(--t);
}
.summary[open] > summary::after { transform: rotate(180deg); }
.summary__list {
  margin: 0;
  padding: 0 24px 22px;
  display: grid;
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
}
.summary__row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  justify-content: space-between;
  padding: 11px 0;
  background: var(--paper);
  font-size: .875rem;
}
.summary__row dt { color: var(--text-muted); margin: 0; }
.summary__row dd { margin: 0; font-weight: 600; color: var(--ink); text-align: right; }

.callout {
  margin-top: 16px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--yellow);
  border-radius: var(--r-lg);
  background: var(--paper);
}
.callout h3 { font-size: 1.0625rem; margin: 0 0 12px; }
.callout ul { margin: 0; padding-left: 20px; display: grid; gap: 7px; }
.callout li { font-size: .9063rem; color: var(--text-muted); }
.callout li::marker { color: var(--teal); }
.callout strong { color: var(--ink); font-weight: 600; }

.done__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

/* Falha no envio — o lead não pode ficar sem saída */
.fail__card {
  padding: clamp(26px, 3.5vw, 40px);
  border: 1px solid #f0c8c2;
  border-left: 4px solid var(--danger);
  border-radius: var(--r-xl);
  background: #fdf6f5;
}
.fail__card h2 { font-size: 1.375rem; margin: 0 0 10px; }
.fail__card p { color: var(--text-muted); margin: 0 0 8px; }
.fail__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* --------------------------------------------- 10. Conteúdo institucional */
.section { padding-block: clamp(56px, 8vw, 96px); }
.section--mist { background: var(--paper-2); }
.section--dark { background: var(--ink); color: var(--text-onink); }
.section--dark h2, .section--dark h3 { color: #fff; }

.section__head { max-width: 640px; margin-bottom: clamp(32px, 4vw, 48px); }
.section__head h2 {
  font-size: clamp(1.7rem, 1.2rem + 2vw, 2.4rem);
  margin: 14px 0 12px;
}
.section__head p { margin: 0; color: var(--text-muted); font-size: 1.0313rem; }
.section--dark .section__head p { color: var(--text-onink); }

.cards {
  display: grid;
  gap: clamp(18px, 2.4vw, 26px);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.card {
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--paper);
}
.card__num {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  font-size: .9375rem;
  font-weight: 700;
}
.card h3 { font-size: 1.1875rem; margin: 0 0 10px; }
.card p { margin: 0; color: var(--text-muted); font-size: .9375rem; }

.section--dark .card {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .12);
}
.section--dark .card p { color: var(--text-onink); }
.section--dark .card__num { background: var(--teal); }

.plans { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.plan {
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--paper);
}
.plan--highlight { border: 2px solid var(--ink); box-shadow: var(--sh-lg); }
.plan h3 { font-size: 1.375rem; margin: 14px 0 10px; }
.plan__desc { color: var(--text-muted); font-size: .9375rem; margin: 0 0 20px; }
.plan ul { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 11px; }
.plan li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .9063rem;
}
.plan li svg { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 3px; color: var(--teal-600); }
.plan .btn { margin-top: auto; }

.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
  overflow: hidden;
}
.faq summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  margin-left: auto;
  width: 18px; height: 18px;
  flex: 0 0 auto;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23113131' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  transition: transform var(--t);
}
.faq details[open] summary::after { transform: rotate(180deg); }
.faq__body { padding: 0 24px 22px; color: var(--text-muted); font-size: .9375rem; }
.faq__body p { margin: 0; }

.final-cta {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
  padding: clamp(32px, 4.5vw, 56px);
  border-radius: var(--r-xl);
  background: var(--ink);
  color: var(--text-onink);
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: '';
  position: absolute;
  right: -80px; bottom: -170px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(230, 228, 55, .28), transparent 60%);
}
.final-cta > * { position: relative; }
.final-cta h2 { color: #fff; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem); margin: 14px 0 10px; }
.final-cta p { margin: 0; max-width: 48ch; }
.final-cta__actions { display: flex; justify-content: flex-end; }
@media (max-width: 760px) {
  .final-cta { grid-template-columns: 1fr; }
  .final-cta__actions { justify-content: flex-start; }
}

/* --------------------------------------------------------- 12. Responsivo */
@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; min-height: 0; }
  .app__aside { display: none; }
  .app__bar { display: flex; }
  .app__scroll { justify-content: flex-start; padding-block: 26px 40px; }
  .progress { margin-top: 16px; }
  .actions {
    position: sticky;
    bottom: 0;
    margin-top: 28px;
    padding: 14px 0 max(14px, env(safe-area-inset-bottom));
    background: linear-gradient(to bottom, rgba(250, 250, 250, 0), var(--paper-2) 30%);
  }
  .actions .btn--next { flex: 1 1 auto; }
}

@media (max-width: 520px) {
  .result__actions .btn { width: 100%; }
  .btn { padding: 14px 24px; }
}

/* Em contexto flex a pílula esticava até a largura do card */
.plan > .eyebrow, .done__card .eyebrow { align-self: flex-start; }
