:root {
  --verde: #056138;
  --verde-claro: #67c18c;
  --verde-escuro: #03422a;
  --verde-tinta: #eaf6ef;
  --fundo: #f5f7f6;
  --branco: #ffffff;
  --texto: #17231d;
  --texto-suave: #4a5a51;
  --borda: #dbe3de;
  --raio: 20px;
  --fonte: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --largura: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--branco);
  color: var(--texto);
  font-family: var(--fonte);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

h1,
h2 {
  margin: 0;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.9rem, 6.5vw, 2.9rem);
  color: var(--verde);
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

p:last-child {
  margin-bottom: 0;
}

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

.secao {
  padding: 72px 0;
}

.botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 14px 28px;
  border: 0;
  border-radius: 999px;
  background: var(--verde-claro);
  color: var(--verde-escuro);
  font-family: inherit;
  font-size: 1.0625rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.botao:hover {
  background: #7dcd9d;
}

.botao:active {
  transform: scale(0.98);
}

.botao:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--verde-claro);
  outline-offset: 3px;
}

/* Moldura de celular */

.celular {
  width: 100%;
  max-width: 250px;
  margin: 0 auto;
  padding: 8px;
  border-radius: 40px;
  background: #121714;
  box-shadow: 0 24px 48px -20px rgba(3, 66, 42, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.celular img {
  width: 100%;
  aspect-ratio: 780 / 1688;
  object-fit: cover;
  border-radius: 32px;
  background: var(--fundo);
}

/* 1. Abertura */

.abertura {
  position: relative;
  overflow: hidden;
  background: var(--verde);
  color: var(--branco);
  padding: 28px 0 72px;
}

.abertura::after {
  content: "";
  position: absolute;
  right: -180px;
  bottom: -200px;
  width: 520px;
  height: 520px;
  background: url("../imagens/logo/selo.svg") center / contain no-repeat;
  opacity: 0.12;
  pointer-events: none;
}

.abertura .container {
  position: relative;
  z-index: 1;
}

.abertura__logo {
  width: 180px;
  margin-bottom: 56px;
}

.abertura h1 {
  max-width: 14ch;
  font-size: clamp(2.6rem, 11vw, 4.75rem);
  margin-bottom: 24px;
}

.abertura__texto {
  max-width: 36rem;
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
}

.abertura .botao {
  width: 100%;
  max-width: 340px;
}

.celular--abertura {
  max-width: 260px;
  margin: 56px auto -140px;
  transform: rotate(-3deg);
}

.abertura__apoio {
  max-width: 30rem;
  margin-top: 20px;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.78);
}

/* 2. Os quatro momentos */

.momentos h2 {
  margin-bottom: 40px;
}

.momentos__grade {
  display: grid;
  gap: 16px;
}

.momento {
  padding: 28px 24px;
  border-radius: var(--raio);
  background: var(--fundo);
}

.momento__icone {
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  padding: 10px;
  border-radius: 14px;
  background: var(--verde);
  fill: none;
  stroke: var(--verde-claro);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.momento h3 {
  margin: 0 0 8px;
  font-size: 1.375rem;
  font-weight: 900;
  line-height: 1.2;
  color: var(--verde);
}

.momento p {
  color: var(--texto-suave);
}

/* 3. Viagens compartilhadas */

.compartilhadas {
  background: var(--verde-tinta);
}

.compartilhadas h2 {
  margin-bottom: 20px;
}

.compartilhadas__texto p {
  max-width: 34rem;
  font-size: 1.125rem;
  color: var(--texto-suave);
}

.grupo-cartao {
  margin-top: 40px;
  padding: 28px 24px;
  border-radius: 24px;
  background: var(--branco);
  box-shadow: 0 24px 48px -28px rgba(3, 66, 42, 0.35);
}

.grupo-cartao__pessoas {
  display: flex;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px dashed var(--borda);
}

.avatar {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-right: -12px;
  border: 3px solid var(--branco);
  border-radius: 50%;
}

.avatar svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.avatar--1 { background: var(--verde); color: var(--verde-claro); }
.avatar--2 { background: var(--verde-claro); color: var(--verde-escuro); }
.avatar--3 { background: #cfeedd; color: var(--verde); }

.avatar--mais {
  margin-left: 20px;
  border: 2px dashed var(--verde-claro);
  background: var(--branco);
  color: var(--verde);
}

.grupo-cartao__lista {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.grupo-cartao__lista li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.grupo-cartao__lista svg {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  padding: 9px;
  border-radius: 12px;
  background: var(--verde-tinta);
  fill: none;
  stroke: var(--verde);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 4. Pra quem é */

.pra-quem__grade {
  display: grid;
  gap: 32px;
}

.pra-quem h2 {
  max-width: 18ch;
}

.lembretes {
  display: grid;
  gap: 16px;
}

.lembrete {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin: 0;
  padding: 20px;
  border-radius: var(--raio);
  background: var(--verde-tinta);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.45;
}

.lembrete:nth-child(1) {
  transform: rotate(-1.5deg);
}

.lembrete:nth-child(2) {
  margin-left: 20px;
  transform: rotate(1.5deg);
}

.lembrete svg {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 14px;
  background: var(--verde);
  fill: none;
  stroke: var(--verde-claro);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pra-quem__destaque {
  margin: 0;
  padding-left: 20px;
  border-left: 4px solid var(--verde-claro);
  font-size: 1.3125rem;
  font-weight: 800;
  line-height: 1.4;
  color: var(--verde);
}

.pra-quem__faixa {
  margin-top: 48px;
  padding: 32px 24px;
  border-radius: 24px;
  background: var(--verde);
  color: var(--branco);
}

.etiquetas {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.etiquetas li {
  padding: 8px 16px;
  border: 1.5px solid rgba(103, 193, 140, 0.6);
  border-radius: 999px;
  color: var(--verde-claro);
  font-size: 0.9375rem;
  font-weight: 800;
}

.pra-quem__faixa p {
  font-size: 1.25rem;
  line-height: 1.45;
}

.pra-quem__faixa strong {
  color: var(--verde-claro);
  font-weight: 900;
}

/* 5. Quem está criando */

.criador {
  background: var(--fundo);
}

.criador__grade {
  display: grid;
  gap: 32px;
}

.criador__foto {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 18%;
  border-radius: var(--raio);
}

.criador h2 {
  margin-bottom: 20px;
}

.criador__texto {
  color: var(--texto-suave);
}

.criador__texto a {
  color: var(--verde);
  font-weight: 800;
  text-underline-offset: 3px;
}

/* 6. Formulário */

.lista {
  background: var(--verde);
  color: var(--branco);
  scroll-margin-top: 0;
}

.lista h2 {
  color: var(--branco);
  margin-bottom: 16px;
}

.lista__cabecalho {
  margin-bottom: 32px;
}

.lista__apoio {
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.88);
}

.cartao {
  max-width: 560px;
  padding: 28px 20px;
  border-radius: 24px;
  background: var(--branco);
  color: var(--texto);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.45);
}

.campo {
  margin-bottom: 20px;
}

.campo > label,
.grupo legend {
  display: block;
  margin-bottom: 8px;
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.35;
}

.campo input[type="text"],
.campo input[type="email"] {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 1.5px solid var(--borda);
  border-radius: 14px;
  background: var(--fundo);
  color: var(--texto);
  font-family: inherit;
  font-size: 1rem; /* 16px evita zoom automático no iPhone */
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.campo input:focus {
  outline: none;
  border-color: var(--verde);
  background: var(--branco);
}

.grupo {
  margin: 0 0 20px;
  padding: 0;
  border: 0;
}

.opcoes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.opcao {
  position: relative;
}

.opcao input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.opcao span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  border: 1.5px solid var(--borda);
  border-radius: 999px;
  background: var(--branco);
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.opcao input:checked + span {
  border-color: var(--verde);
  background: var(--verde);
  color: var(--branco);
}

.opcao input:focus-visible + span {
  outline: 3px solid var(--verde-claro);
  outline-offset: 2px;
}

.cartao .botao {
  width: 100%;
  margin-top: 8px;
  background: var(--verde);
  color: var(--branco);
}

.cartao .botao:hover {
  background: var(--verde-escuro);
}

.cartao .botao:disabled {
  opacity: 0.6;
  cursor: wait;
}

.erro {
  margin: 12px 0 0;
  padding: 12px 16px;
  border-radius: 12px;
  background: #fdecea;
  color: #8a1c12;
  font-size: 0.9375rem;
  font-weight: 700;
}

.armadilha {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.aviso-legal {
  margin-top: 16px;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--texto-suave);
}

.aviso-legal a {
  color: var(--verde);
  font-weight: 700;
}

.sucesso {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.5;
}

.sucesso:focus {
  outline: none;
}

[hidden] {
  display: none !important;
}

/* 7. Perguntas rápidas */

.perguntas h2 {
  margin-bottom: 32px;
}

.perguntas__lista {
  max-width: 760px;
  border-top: 1px solid var(--borda);
}

.perguntas details {
  border-bottom: 1px solid var(--borda);
}

.perguntas summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 16px 0;
  font-weight: 800;
  font-size: 1.0625rem;
  cursor: pointer;
  list-style: none;
}

.perguntas summary::-webkit-details-marker {
  display: none;
}

.perguntas summary::after {
  content: "";
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border-right: 2.5px solid var(--verde);
  border-bottom: 2.5px solid var(--verde);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.2s ease;
}

.perguntas details[open] summary::after {
  transform: rotate(-135deg) translateY(-3px);
}

.perguntas details p {
  padding: 0 32px 20px 0;
  color: var(--texto-suave);
}

/* 8. Rodapé */

.rodape {
  padding: 56px 0 40px;
  background: var(--verde-escuro);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9375rem;
}

.rodape__logo {
  width: 160px;
  margin-bottom: 24px;
}

.rodape p {
  max-width: 40rem;
}

.rodape__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 24px;
  padding: 0;
  list-style: none;
}

.rodape__links a {
  display: inline-block;
  padding: 6px 0;
  color: var(--branco);
  font-weight: 700;
  text-underline-offset: 3px;
}

/* 9. Aviso de cookies */

.cookies {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  padding: 20px 0 calc(20px + env(safe-area-inset-bottom));
  background: var(--verde-escuro);
  color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.2);
}

.cookies__conteudo {
  display: grid;
  gap: 16px;
}

.cookies p {
  font-size: 0.875rem;
  line-height: 1.5;
}

.cookies a {
  color: var(--branco);
  font-weight: 700;
}

.cookies__botoes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Os dois botões com o mesmo destaque */
.cookies__botao {
  min-height: 48px;
  padding: 10px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--branco);
  color: var(--verde-escuro);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
}

.cookies__botao:hover {
  background: var(--verde-tinta);
}

.cookies__botao:focus-visible {
  outline: 3px solid var(--verde-claro);
  outline-offset: 3px;
}

/* Página da política */

.documento {
  padding: 40px 0 80px;
}

.documento__logo {
  width: 170px;
  margin-bottom: 48px;
}

.documento h1 {
  font-size: clamp(2rem, 7vw, 2.75rem);
  color: var(--verde);
  margin-bottom: 24px;
}

.documento p {
  max-width: 40rem;
  color: var(--texto-suave);
}

.documento__voltar {
  display: inline-block;
  margin-top: 32px;
  color: var(--verde);
  font-weight: 800;
}

/* Telas maiores */

@media (min-width: 720px) {
  .container {
    padding: 0 40px;
  }

  .secao {
    padding: 112px 0;
  }

  .abertura {
    padding: 40px 0 128px;
  }

  .celular--abertura {
    max-width: 280px;
  }

  .abertura::after {
    right: -120px;
    bottom: -180px;
    width: 720px;
    height: 720px;
  }

  .abertura__logo {
    width: 220px;
    margin-bottom: 96px;
  }

  .abertura .botao {
    width: auto;
  }

  .abertura__texto {
    font-size: 1.25rem;
  }

  .momentos__grade {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .momento {
    padding: 36px 32px;
  }

  .compartilhadas__grade {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 64px;
    align-items: start;
  }

  .compartilhadas__grade {
    align-items: center;
  }

  .grupo-cartao {
    margin-top: 0;
    padding: 36px;
  }

  .pra-quem__grade {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "titulo lembretes" "destaque lembretes";
    column-gap: 80px;
    row-gap: 32px;
    align-items: start;
  }

  .pra-quem h2 { grid-area: titulo; }
  .lembretes { grid-area: lembretes; align-self: center; gap: 20px; }
  .pra-quem__destaque { grid-area: destaque; }

  .lembrete {
    padding: 24px;
    font-size: 1.125rem;
  }

  .lembrete:nth-child(2) {
    margin-left: 48px;
  }

  .pra-quem__faixa {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    margin-top: 72px;
    padding: 40px 48px;
  }

  .etiquetas {
    flex-direction: column;
    align-items: flex-start;
    margin: 0;
  }

  .pra-quem__faixa p {
    max-width: 26rem;
    font-size: 1.5rem;
  }

  .cookies__conteudo {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 32px;
  }

  .cookies__botoes {
    grid-template-columns: repeat(2, 140px);
  }

  .criador__grade {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: center;
    gap: 64px;
  }

  .cartao {
    padding: 40px;
  }

  .lista .container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 64px;
    align-items: start;
  }

  .lista__cabecalho {
    margin-bottom: 0;
    position: sticky;
    top: 40px;
  }
}

@media (min-width: 1024px) {
  .momentos__grade {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .abertura .container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    column-gap: 80px;
  }

  .abertura .container > :not(.celular--abertura) {
    grid-column: 1;
  }

  .celular--abertura {
    grid-column: 2;
    grid-row: 1 / span 5;
    align-self: center;
    margin: 0;
    transform: rotate(4deg);
  }

  .abertura::after {
    display: none;
  }
}
