/* Mesma marca do app: marinho para confiança, laranja para progresso e a ação principal. */
:root {
  --marinho: #0b1f3b;
  --marinho-claro: #1d3a63;
  --laranja: #ff8a00;
  --laranja-suave: #fff3e3;
  --fundo: #f5f6f9;
  --texto-suave: #5a6b85;
  --borda: #e3e7ee;
  --ok: #1e8a4f;
  --ok-fundo: #e3f5ea;
  --critico: #a52a2a;
  --sans: 'Inter', system-ui, 'Segoe UI', sans-serif;
  --marca: 'Montserrat', 'Inter', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Os links #secao não escondem o título atrás do topo fixo. */
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background: #fff;
  color: var(--marinho);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.2;
  text-wrap: balance;
}

h1,
h2 {
  font-family: var(--marca);
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin-bottom: 2rem;
  max-width: 34ch;
}

h3 {
  font-size: 1.05rem;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--laranja);
  outline-offset: 2px;
}

.largura {
  width: min(1120px, 100% - 32px);
  margin-inline: auto;
}

.estreita {
  width: min(760px, 100% - 32px);
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 0.75rem 1.4rem;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition:
    filter 0.15s,
    background-color 0.15s,
    border-color 0.15s;
}

.btn-destaque {
  background: var(--laranja);
  color: var(--marinho);
  box-shadow: 0 6px 18px rgb(255 138 0 / 0.3);
}

.btn-destaque:hover {
  filter: brightness(1.06);
}

.btn-destaque:disabled {
  opacity: 0.6;
  cursor: default;
}

.btn-contorno {
  border-color: rgb(255 255 255 / 0.35);
  color: #fff;
}

.btn-contorno:hover {
  border-color: #fff;
}

.btn-claro {
  background: #fff;
  color: var(--marinho);
  padding: 0.5rem 1.1rem;
}

.btn-claro:hover {
  background: var(--laranja-suave);
}

.btn-largo {
  width: 100%;
}

/* Topo */
.topo {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(11 31 59 / 0.96);
  backdrop-filter: blur(8px);
  color: #fff;
}

.topo-conteudo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.topo nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.link-nav {
  text-decoration: none;
  font-size: 0.9rem;
  color: rgb(255 255 255 / 0.8);
}

.link-nav:hover {
  color: #fff;
}

.marca {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--marca);
  font-weight: 800;
  font-size: 1.2rem;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.marca-pequena {
  font-size: 1rem;
}

/* Hero */
.hero {
  background:
    radial-gradient(900px 500px at 85% 20%, rgb(255 138 0 / 0.16), transparent 60%),
    linear-gradient(180deg, var(--marinho), #102a4f);
  color: #fff;
  padding: 4.5rem 0 5.5rem;
  overflow: hidden;
}

.hero-grade {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.selo {
  display: inline-block;
  background: rgb(255 138 0 / 0.15);
  color: #ffb866;
  border: 1px solid rgb(255 138 0 / 0.35);
  border-radius: 999px;
  padding: 0.2rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3.3rem);
  margin-bottom: 1.25rem;
}

h1 em {
  font-style: normal;
  color: var(--laranja);
}

.lead {
  font-size: 1.1rem;
  color: rgb(255 255 255 / 0.82);
  max-width: 52ch;
}

.acoes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2rem 0;
}

.fatos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
  color: rgb(255 255 255 / 0.7);
}

.fatos b {
  color: #fff;
  font-size: 1.05rem;
  margin-right: 0.25rem;
}

/* Exemplo de questão */
.demo {
  position: relative;
}

.demo-cartao {
  background: #fff;
  color: var(--marinho);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 30px 60px rgb(0 0 0 / 0.35);
  transform: rotate(1deg);
}

.demo-topo {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--texto-suave);
  font-weight: 600;
}

.demo-progresso {
  height: 6px;
  background: var(--borda);
  border-radius: 99px;
  margin: 0.6rem 0 1.2rem;
  overflow: hidden;
}

.demo-progresso span {
  display: block;
  height: 100%;
  background: var(--laranja);
  border-radius: 99px;
}

.demo-materia {
  font-size: 0.75rem;
  color: var(--texto-suave);
  margin-bottom: 0.4rem;
}

.demo-enunciado {
  font-weight: 600;
  margin-bottom: 1rem;
}

.demo-opcoes {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: grid;
  gap: 0.45rem;
}

.demo-opcoes li {
  border: 1px solid var(--borda);
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.demo-opcoes b {
  display: inline-grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--fundo);
  font-size: 0.8rem;
}

.demo-opcoes .certa {
  border: 2px solid var(--ok);
  background: var(--ok-fundo);
}

.demo-opcoes .certa b {
  background: var(--ok);
  color: #fff;
}

.demo-retorno {
  background: var(--ok-fundo);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  font-size: 0.85rem;
}

.demo-retorno b {
  color: var(--ok);
}

.demo-flutuante {
  position: absolute;
  left: -2rem;
  bottom: -1.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #fff;
  color: var(--marinho);
  border-radius: 14px;
  padding: 0.75rem 1rem;
  box-shadow: 0 16px 32px rgb(0 0 0 / 0.25);
  transform: rotate(-2deg);
}

.demo-flutuante div {
  display: grid;
  line-height: 1.3;
}

.demo-flutuante span:not(.chama) {
  font-size: 0.75rem;
  color: var(--texto-suave);
}

.chama {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--laranja-suave);
  position: relative;
}

.chama::after {
  content: '';
  position: absolute;
  inset: 0.55rem 0.65rem 0.5rem;
  background: var(--laranja);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
}

/* Seções */
.secao {
  padding: 5rem 0;
}

.secao-clara {
  background: var(--fundo);
}

.secao-marinho {
  background: var(--marinho);
  color: #fff;
}

.rotulo {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c26200;
  margin-bottom: 0.6rem;
}

.rotulo-claro {
  color: #ffb866;
}

.passos {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.passos li {
  border-top: 3px solid var(--laranja);
  padding-top: 1.25rem;
}

.numero {
  font-family: var(--marca);
  font-weight: 800;
  font-size: 2rem;
  color: var(--laranja);
  line-height: 1;
}

.passos h3 {
  margin: 0.6rem 0 0.4rem;
}

.passos p,
.recursos p,
.trilhas p {
  color: var(--texto-suave);
  font-size: 0.95rem;
}

.recursos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.recursos article,
.trilhas article {
  background: #fff;
  border: 1px solid var(--borda);
  border-radius: 14px;
  padding: 1.4rem;
}

.recursos h3,
.trilhas h3 {
  margin-bottom: 0.4rem;
}

.trilhas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.trilhas article {
  border-left: 4px solid var(--marinho);
}

/* Planos */
.planos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 380px));
  gap: 1.25rem;
}

.plano {
  position: relative;
  background: #fff;
  color: var(--marinho);
  border-radius: 16px;
  padding: 1.75rem;
  display: grid;
  gap: 1rem;
  align-content: start;
}

.plano-destaque {
  outline: 3px solid var(--laranja);
}

.plano-selo {
  position: absolute;
  top: -0.8rem;
  right: 1.25rem;
  background: var(--laranja);
  color: var(--marinho);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
}

.plano h3 {
  font-size: 1.25rem;
}

.preco {
  font-family: var(--marca);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
}

.preco span {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  color: var(--texto-suave);
}

.preco-anual {
  font-size: 0.9rem;
  color: var(--texto-suave);
  margin-top: -0.5rem;
}

.plano ul {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.35rem;
  font-size: 0.95rem;
}

.btn-contorno-escuro {
  border-color: var(--borda);
  color: var(--marinho);
}

.btn-contorno-escuro:hover {
  border-color: var(--marinho);
}

.planos-nota {
  margin-top: 1.5rem;
  color: rgb(255 255 255 / 0.75);
  font-size: 0.9rem;
}

[hidden] {
  display: none !important;
}

/* Perguntas */
details {
  border-bottom: 1px solid var(--borda);
  padding: 1.1rem 0;
}

summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: '+';
  font-size: 1.3rem;
  line-height: 1;
  color: var(--laranja);
}

details[open] summary::after {
  content: '−';
}

details p {
  margin-top: 0.6rem;
  color: var(--texto-suave);
}

/* Rodapé */
.rodape {
  background: var(--marinho);
  color: rgb(255 255 255 / 0.7);
  font-size: 0.85rem;
  padding: 1.75rem 0;
  border-top: 1px solid rgb(255 255 255 / 0.08);
}

.rodape-conteudo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.rodape .marca {
  color: #fff;
}

.rodape-links {
  display: flex;
  gap: 1.25rem;
}

.rodape-links a {
  color: rgb(255 255 255 / 0.7);
}

/* Termos e privacidade */
.documento {
  padding: 3rem 0 4rem;
}

.documento h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 0.5rem;
}

.documento h2 {
  font-size: 1.2rem;
  margin: 2rem 0 0.6rem;
  max-width: none;
}

.documento p,
.documento li {
  color: #2b3b55;
}

.documento p + p {
  margin-top: 0.75rem;
}

.documento ul {
  padding-left: 1.2rem;
  display: grid;
  gap: 0.35rem;
}

.atualizado {
  color: var(--texto-suave);
  font-size: 0.9rem;
}

@media (max-width: 880px) {
  .hero {
    padding: 3rem 0 4rem;
  }

  .hero-grade,
  .planos {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .demo {
    max-width: 440px;
    margin-inline: auto;
  }

  .demo-flutuante {
    left: 0.5rem;
  }

  .passos,
  .recursos,
  .trilhas {
    grid-template-columns: 1fr;
  }

  .link-nav {
    display: none;
  }

  .secao {
    padding: 3.5rem 0;
  }
}

@media (min-width: 881px) and (max-width: 1040px) {
  .recursos {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
