/* NestUp — grafite quente com laranja queimado (as mesmas cores do app). */
:root {
  --fundo: #141311;
  --superficie: #1f1d1a;
  --elevado: #2a2724;
  --linha: #2f2c28;
  --tinta: #f5f2ee;
  --suave: #a39e97;
  --fraco: #6f6a63;
  --laranja: #f0803c;
  --laranja-claro: #f59a5e;
  --laranja-fundo: #2a1d14;
  --sobre-laranja: #1a0e06;
  --verde: #4cc38a;
  --raio: 22px;
  --largura: 1080px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--fundo);
  color: var(--tinta);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--laranja-claro); }
a:hover { color: var(--tinta); }
:focus-visible { outline: 2px solid var(--laranja); outline-offset: 3px; border-radius: 6px; }

.largura { width: 100%; max-width: var(--largura); margin: 0 auto; padding: 0 20px; }

/* Topo */
.topo { position: sticky; top: 0; z-index: 10; background: rgba(20, 19, 17, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--linha); }
.topo .largura { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.marca { display: flex; align-items: center; gap: 10px; color: var(--tinta); text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: -.01em; }
.marca img { width: 32px; height: 32px; border-radius: 8px; }
.topo nav { display: flex; align-items: center; gap: 18px; }
.topo nav a.link { color: var(--suave); text-decoration: none; font-size: 15px; }
.topo nav a.link:hover { color: var(--tinta); }

/* Botões */
.botao { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--laranja); color: var(--sobre-laranja); text-decoration: none; font-weight: 700; border-radius: 999px; padding: 15px 26px; font-size: 17px; transition: transform .15s ease, background .15s ease; }
.botao:hover { background: var(--laranja-claro); color: var(--sobre-laranja); transform: translateY(-1px); }
.botao.pequeno { padding: 9px 16px; font-size: 15px; }
.botao svg { width: 20px; height: 20px; }

/* Abertura */
.abertura { padding: 56px 0 24px; }
.abertura .largura { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
.selo { display: inline-block; background: var(--laranja-fundo); color: var(--laranja-claro); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
h1 { font-size: clamp(38px, 8vw, 64px); line-height: 1.04; letter-spacing: -.03em; margin: 18px 0 18px; font-weight: 800; }
h1 em { font-style: normal; color: var(--laranja); }
.abertura p.lead { font-size: 19px; color: var(--suave); max-width: 33em; margin: 0 0 28px; }
.abertura p.lead b { color: var(--tinta); font-weight: 600; }
.nota { font-size: 14px; color: var(--fraco); margin-top: 14px; }

/* Celular */
.celular { width: min(300px, 78vw); margin: 0 auto; border-radius: 44px; padding: 9px; background: #0b0a09; box-shadow: 0 0 0 1px #34302b, 0 30px 80px -20px rgba(240, 128, 60, .28), 0 30px 60px -30px rgba(0, 0, 0, .9); }
.celular img { border-radius: 36px; width: 100%; aspect-ratio: 1320 / 2868; object-fit: cover; }
.celular.menor { width: min(250px, 66vw); }

/* Demonstração no topo: iPhone com o app de verdade */
.demo { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.demo .celular { width: min(300px, 78vw, calc((100svh - 220px) * .46)); min-width: 220px; }
.iphone { position: relative; transform: translateY(70px) scale(.69); opacity: 0; transition: transform 1.3s cubic-bezier(.16, 1, .3, 1), opacity .7s ease; }
.demo.chegou .iphone { transform: none; opacity: 1; }
.tela-demo { position: relative; border-radius: 36px; overflow: hidden; aspect-ratio: 1320 / 2868; background: #141311; }
.tela-demo video { width: 100%; height: 100%; display: block; object-fit: cover; }
.camada-toque { position: absolute; inset: 0; pointer-events: none; }
.dedo { position: absolute; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, .55) 0 40%, rgba(255, 255, 255, .18) 62%, transparent 70%);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .5); transform: scale(var(--aperta, 1)); }
.onda { position: absolute; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; border: 2px solid var(--laranja-claro); opacity: 0; }
.onda.bate { animation: onda .6s ease-out; }
@keyframes onda { from { transform: scale(.6); opacity: .9; } to { transform: scale(2.2); opacity: 0; } }
.cenas { list-style: none; margin: 0; padding: 0; position: relative; width: min(340px, 90vw); height: 58px; }
.cenas li { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  opacity: 0; transform: translateY(8px); transition: opacity .35s ease, transform .35s ease; }
.cenas li.ativa { opacity: 1; transform: none; }
.cenas b { font-size: 18px; color: var(--tinta); }
.cenas span { font-size: 15px; color: var(--suave); }
.demo.chegou .cenas { animation: aparece .6s .8s both; }
@keyframes aparece { from { opacity: 0; } to { opacity: 1; } }

/* Faixa de frases */
.frases { padding: 28px 0 8px; overflow: hidden; }
.frases ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.frases li { background: var(--superficie); border: 1px solid var(--linha); border-radius: 999px; padding: 9px 16px; font-size: 15px; color: var(--suave); }
.frases li::before { content: "“"; color: var(--laranja); margin-right: 2px; }
.frases li::after { content: "”"; color: var(--laranja); margin-left: 2px; }

/* Seções */
section.parte { padding: 72px 0; }
h2 { font-size: clamp(28px, 5vw, 42px); line-height: 1.1; letter-spacing: -.025em; margin: 0 0 14px; font-weight: 800; }
.parte .intro { color: var(--suave); font-size: 18px; max-width: 36em; margin: 0 0 40px; }

.tela { display: grid; gap: 32px; align-items: center; padding: 36px 0; border-top: 1px solid var(--linha); }
.tela:first-of-type { border-top: 0; }
.tela h3 { font-size: 26px; letter-spacing: -.02em; margin: 6px 0 10px; line-height: 1.15; }
.tela .num { color: var(--laranja); font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.tela p { color: var(--suave); margin: 0 0 12px; max-width: 30em; }
.tela ul { margin: 0; padding: 0; list-style: none; color: var(--tinta); }
.tela li { padding: 6px 0 6px 28px; position: relative; }
.tela li::before { content: ""; position: absolute; left: 4px; top: 14px; width: 10px; height: 10px; border-radius: 3px; background: var(--laranja); }
.embreve { display: inline-block; margin-left: 6px; font-size: 12px; font-weight: 700; color: var(--laranja-claro); background: var(--laranja-fundo); padding: 2px 8px; border-radius: 999px; vertical-align: 2px; }

/* Profissões */
.profissoes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.profissoes span { background: var(--superficie); border: 1px solid var(--linha); border-radius: 14px; padding: 12px 16px; font-weight: 600; }
.profissoes span.forte { background: var(--laranja); color: var(--sobre-laranja); border-color: var(--laranja); }

/* Cartões */
.cartoes { display: grid; gap: 14px; }
.cartao { background: var(--superficie); border: 1px solid var(--linha); border-radius: var(--raio); padding: 24px; }
.cartao h3 { margin: 0 0 8px; font-size: 19px; }
.cartao p { margin: 0; color: var(--suave); font-size: 16px; }
.cartao .icone { width: 40px; height: 40px; border-radius: 12px; background: var(--laranja-fundo); color: var(--laranja); display: grid; place-items: center; margin-bottom: 14px; }
.cartao .icone svg { width: 22px; height: 22px; }

/* Passos */
.passos { counter-reset: passo; display: grid; gap: 14px; list-style: none; padding: 0; margin: 0 0 32px; }
.passos li { counter-increment: passo; background: var(--superficie); border: 1px solid var(--linha); border-radius: var(--raio); padding: 20px 20px 20px 72px; position: relative; color: var(--suave); }
.passos li b { color: var(--tinta); display: block; font-size: 18px; margin-bottom: 2px; }
.passos li::before { content: counter(passo); position: absolute; left: 20px; top: 20px; width: 36px; height: 36px; border-radius: 50%; background: var(--laranja); color: var(--sobre-laranja); font-weight: 800; display: grid; place-items: center; }

.chamada { background: linear-gradient(160deg, var(--laranja-fundo), var(--superficie) 70%); border: 1px solid #3a2a1d; border-radius: 30px; padding: 40px 24px; text-align: center; }
.chamada h2 { margin-bottom: 10px; }
.chamada p { color: var(--suave); margin: 0 auto 24px; max-width: 30em; }

/* Rodapé */
footer { border-top: 1px solid var(--linha); padding: 32px 0 44px; color: var(--fraco); font-size: 14px; }
footer .largura { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { color: var(--suave); text-decoration: none; }
footer a:hover { color: var(--tinta); }

/* Página de texto (política) */
.texto { padding: 48px 20px 64px; max-width: 760px; }
.texto h1 { font-size: clamp(32px, 6vw, 46px); margin-bottom: 8px; }
.texto .atualizado { color: var(--fraco); font-size: 14px; margin: 0 0 28px; }
.texto h2 { font-size: 23px; margin: 40px 0 10px; letter-spacing: -.015em; }
.texto h3 { font-size: 18px; margin: 24px 0 6px; }
.texto p, .texto li { color: #d6d1ca; }
.texto ul { padding-left: 22px; }
.texto li { margin: 6px 0; }
.texto .resumo { background: var(--superficie); border: 1px solid var(--linha); border-left: 4px solid var(--laranja); border-radius: 16px; padding: 18px 22px; margin: 0 0 8px; }
.texto .resumo p { margin: 0 0 8px; color: var(--tinta); font-weight: 600; }
.texto .resumo ul { margin: 0; }
.tabela { overflow-x: auto; margin: 14px 0; border: 1px solid var(--linha); border-radius: 14px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 560px; }
th, td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid var(--linha); }
th { background: var(--superficie); color: var(--tinta); font-weight: 700; }
td { color: #d6d1ca; }
tr:last-child td { border-bottom: 0; }

@media (min-width: 860px) {
  .abertura { padding: 84px 0 40px; }
  .abertura .largura { grid-template-columns: 1.15fr .85fr; gap: 56px; }
  .tela { grid-template-columns: 1fr 1fr; gap: 64px; padding: 48px 0; }
  .tela.inverte .celular { order: 2; }
  .cartoes { grid-template-columns: repeat(3, 1fr); }
  .passos { grid-template-columns: repeat(3, 1fr); }
  .chamada { padding: 56px 40px; }
}

@media (max-width: 520px) {
  .topo nav a.link { display: none; }
  .botao { width: 100%; }
  .topo .botao { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .iphone { transform: none; opacity: 1; transition: none; }
  .botao { transition: none; }
}

/* Nome escrito do logo: "Nest" na cor do texto e "Up" em laranja */
.marca { font-weight: 800; letter-spacing: -.02em; }
.marca .up { color: var(--laranja); }
.marca img.logo { width: auto; height: 30px; border-radius: 0; }
