/* ==========================================================================
   Vistoria landing — camada de refino (v3)
   Regras NÃO-layered: vencem as @layer do styles.css sem briga de especificidade.
   Foco: molduras de celular com screenshots REAIS + calor visual.
   Tokens herdados de styles.css (:root). Cores de marca PO UI.
   ========================================================================== */

/* --- canvas mais quente (não branco puro) --- */
body { background: #faf8fc; }

/* ======================= MOLDURA DE CELULAR ============================== */
.phone-wrap { position: relative; display: inline-block; }

.phone {
  --pw: 300px;
  width: var(--pw);
  max-width: 82vw;
  background: linear-gradient(158deg, #22292c 0%, #0c0f10 100%);
  border-radius: 42px;
  padding: 9px;
  position: relative;
  box-shadow:
    0 1px 2px rgba(0,0,0,.45),
    0 44px 70px -34px rgba(58,15,82,.62),
    inset 0 0 0 1.4px rgba(255,255,255,.10);
}
/* botão lateral, dá leitura de "aparelho" */
.phone::after {
  content: ""; position: absolute; right: -2px; top: 118px;
  width: 3px; height: 58px; border-radius: 3px; background: #171b1d;
}
.phone__screen {
  position: relative;
  border-radius: 33px;
  overflow: hidden;
  background: #fff;
  aspect-ratio: 9 / 19.3;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
}
.phone__screen img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  display: block;
}

/* selos flutuantes de deleite (escondidos no mobile p/ não gerar overflow) */
.floatchip {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 10px;
  background: #fff; border-radius: 15px;
  padding: 11px 15px;
  font-weight: 700; font-size: .84rem; color: var(--text);
  box-shadow: 0 14px 34px -10px rgba(58,15,82,.4), 0 0 0 1px rgba(0,0,0,.04);
}
.floatchip small { display: block; font-weight: 400; font-size: .72rem; color: var(--text-muted); margin-top: 1px; }
.floatchip__ic {
  flex: none; width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center; color: #fff;
}
.floatchip__ic svg { width: 17px; height: 17px; }
.floatchip__ic--ok { background: var(--success); }
.floatchip__ic--pdf { background: var(--brand); }
.floatchip--tl { top: 112px; left: -30px; } /* abaixo do cabeçalho do app — não cobre logo nem avatar */
.floatchip--br { bottom: 54px; right: -32px; }

/* ============================== HERO ==================================== */
/* fundo SÓLIDO no hero (axe computa contraste de forma determinística);
   os glows ficam numa <div> decorativa irmã do conteúdo — o axe não a trata
   como fundo do texto — e confinados à direita, atrás do celular. */
.hero {
  position: relative;
  overflow: hidden;
  background: #f4ecfb; /* shorthand: anula o gradiente da @layer sections (background-color sozinho perdia) */
}
.hero__glow {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(52vw 52vw at 116% -12%, rgba(117,51,153,.22), transparent 58%),
    radial-gradient(34vw 34vw at 104% 116%, rgba(185,47,114,.14), transparent 60%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 {
  letter-spacing: -.022em;
  line-height: 1.06;
  text-wrap: balance;
}
.hero .sub { font-size: 1.14rem; }

/* realce do trecho-chave no H1 */
.hl { color: var(--brand); }

/* linha de logos/estrelas de credibilidade */
.hero__meta {
  display: flex; align-items: center; gap: 12px;
  margin-top: 26px; color: var(--text-muted); font-size: .9rem;
}
.stars { display: inline-flex; gap: 2px; color: var(--brand-03); }
.stars svg { width: 17px; height: 17px; }

/* ========================= FAIXA "PROBLEMA" ============================= */
.problem { background: var(--brand-tint); }
.problem .wrap { max-width: 64ch; margin-inline: auto; text-align: center; }
.problem .eyebrow { color: var(--brand-02); }
.problem p { font-size: 1.14rem; line-height: 1.66; color: var(--text-body); }
.problem .turn {
  margin-top: 22px; font-size: 1.2rem; font-weight: 700; color: var(--brand);
  text-wrap: balance;
}

/* ===================== PASSOS (medalhões) =============================== */
.step { position: relative; }
.step__ic {
  width: 54px; height: 54px; border-radius: 15px;
  display: grid; place-items: center;
  background: var(--brand-tint); color: var(--brand);
  margin-bottom: 16px;
}
.step__ic svg { width: 27px; height: 27px; }
.step__n {
  position: absolute; top: 0; right: 0;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; color: var(--brand);
  font-weight: 700; font-size: .95rem;
  box-shadow: 0 0 0 1px var(--border), 0 3px 8px rgba(0,0,0,.06);
}

/* ================== DOCUMENTO / RELATÓRIO (papel) ====================== */
.paper {
  width: 340px; max-width: 82vw;
  background: #fff; border-radius: 12px; overflow: hidden;
  font-size: .82rem; color: var(--text-body);
  box-shadow: 0 40px 70px -30px rgba(58,15,82,.5), 0 0 0 1px rgba(0,0,0,.05);
}
.paper__band { background: var(--brand); color: #fff; padding: 15px 18px; }
.paper__band b { font-size: .98rem; }
.paper__band span { display: block; opacity: .82; font-size: .73rem; margin-top: 3px; }
.paper__body { padding: 16px 18px; }
.paper__cap { font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); font-weight: 700; margin-bottom: 8px; }
.paper__photo {
  aspect-ratio: 16/10; border-radius: 7px; margin-bottom: 8px;
  background: linear-gradient(135deg, #e7edf0, #d4dbdf);
  display: grid; place-items: center; color: #93a0a4;
  overflow: hidden;
}
.paper__photo svg { width: 30px; height: 30px; }
.paper__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.paper__metaline { display: flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: .72rem; margin: 2px 0; }
.paper__metaline svg { width: 13px; height: 13px; flex: none; }
.paper__rows { margin-top: 14px; border-top: 1px solid var(--border-2); }
.paper__row { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--border-2); }
.paper__row b { font-weight: 700; color: var(--text); }
.dchip { font-size: .68rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.dchip--ok { background: var(--ok-bg); color: var(--ok-text); }
.dchip--warn { background: var(--warn-bg); color: var(--warn-text); }
.dchip--dano { background: var(--danger-bg); color: var(--danger-text); }
.paper__seal { display: flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--success); font-weight: 700; font-size: .78rem; }
.paper__seal svg { width: 16px; height: 16px; }

/* ==================== FEATURES: arte com calor ========================= */
/* phone das features um pouco menor que o do hero — o texto lidera */
.feat .phone { --pw: 264px; }
/* glow suave atrás da arte, versão discreta do glow do hero.
   Sem sangria horizontal (inset lateral 0): o ::before gerava overflow-x
   em #recursos e #seguranca em todo viewport <=1024. */
.feat__art { position: relative; }
.feat__art::before {
  content: ""; position: absolute; inset: -8% 0; z-index: -1; pointer-events: none;
  background: radial-gradient(52% 44% at 50% 46%, rgba(117,51,153,.12), transparent 70%);
}

/* ===================== ENTRAR NO TESTE (waitlist) ====================== */
.waitlist__form {
  display: flex; gap: 12px; justify-content: center; align-items: stretch;
  flex-wrap: wrap; margin-top: 26px;
}
.waitlist__input {
  flex: 1 1 280px; max-width: 380px; min-height: 52px;
  padding: 14px 18px; border-radius: var(--r-full); border: 2px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.08); color: #fff;
  font: 400 1rem/1.2 'Roboto', sans-serif;
}
.waitlist__input::placeholder { color: rgba(255,255,255,.65); }
.waitlist__input:focus-visible { outline: 3px solid var(--brand-03); outline-offset: 2px; border-color: transparent; }
.waitlist__hint { margin-top: 14px; font-size: .86rem; color: rgba(255,255,255,.75); }
.waitlist__hint[data-state="ok"] { color: #b9ecd4; font-weight: 700; }
.waitlist__hint[data-state="err"] { color: #ffd0cb; font-weight: 700; }

/* ======================= REVEAL (robusto) ============================== */
/* base sempre visível; só esconde quando há JS e sem redução de movimento */
.reveal { opacity: 1; transform: none; }
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
html.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.js .reveal { opacity: 1 !important; transform: none !important; } }

/* link discreto de download dentro da feature do PDF */
.feat__link { margin-top: 18px; }
.feat__link a {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--brand); font-weight: 700; text-decoration: none;
  border-bottom: 2px solid var(--brand-tint-2); padding-bottom: 2px;
}
.feat__link a:hover { border-color: var(--brand); }
.feat__link svg { width: 18px; height: 18px; }

/* ============================ RESPONSIVO =============================== */
@media (max-width: 860px) {
  .floatchip { display: none; }        /* evita overflow lateral no mobile */
  .phone { --pw: 280px; }
}
@media (max-width: 720px) {
  .hero__meta { flex-wrap: wrap; }
}

/* garante que nenhuma arte estoure a largura */
.phone, .paper, .phone__screen, .phone__screen img { max-width: 100%; }
.hero__art, .feat__art { min-width: 0; }
