/* =========================================================
   Terram Club — LP
   Paleta tirada da identidade: verde-mata, verde-circuito e ouro
   ========================================================= */
:root {
  --mata: #06170f;
  --mata-2: #0a2218;
  --folha: #0f2e21;
  --folha-2: #164030;
  --neon: #2ee38a;
  --ouro: #f5c026;
  --ouro-escuro: #d9a713;
  --texto: #eef3ee;
  --texto-2: #a8bfb1;
  --linha: rgba(46, 227, 138, 0.16);
  --erro: #ff8a7a;

  --fonte: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --larg: 1120px;
  --inclina: 14px; /* deslocamento do paralelogramo da marca */

  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--mata);
  color: var(--texto);
  font-family: var(--fonte);
  font-size: 1.125rem;
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

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

h1, h2, h3 {
  margin: 0;
  font-weight: 700;
  line-height: 1.08;
  font-variation-settings: "wdth" 116;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p { margin: 0; }

.wrap {
  width: min(var(--larg), 100% - 48px);
  margin-inline: auto;
}

:focus-visible {
  outline: 2px solid var(--ouro);
  outline-offset: 3px;
}

/* ---------- Botões: mesmo formato de terram.agr.br ("Saiba Mais") ---------- */
@font-face { font-family: "Normalidad Compact"; src: url("fontes/Normalidad-Compact-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Normalidad Compact"; src: url("fontes/Normalidad-Compact-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
.btn, .plano__ir {
  appearance: none;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-family: "Normalidad Compact", var(--fonte);
  font-weight: 400;
  font-size: 18px;
  line-height: 18px;
  letter-spacing: normal;
  color: #fff;
  background: linear-gradient(130deg, #005241 0%, rgba(25, 174, 106, 0) 100%);
  border: 2px solid #19AE6A;
  border-radius: 100px;
  padding: 12px 45px;
  transition: border-color .3s, background-color .3s, transform .2s;
}
.btn:hover, .plano:hover .plano__ir { border-color: #2FFFA0; background-color: rgba(25, 174, 106, .12); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid #2FFFA0; outline-offset: 3px; }
.btn--pequeno { padding: 10px 28px; font-size: 16px; line-height: 16px; }
.btn--bloco { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

.link {
  background: none; border: 0; padding: 0;
  font: inherit; font-size: 0.9rem; font-weight: 600;
  color: var(--neon); cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}

/* ---------- Trilha (linha com ponto, como no logo) ---------- */
.trilha {
  position: relative;
  display: inline-block;
  width: 56px;
  height: 1px;
  background: currentColor;
  vertical-align: middle;
  margin-right: 14px;
}
.trilha::after {
  content: "";
  position: absolute;
  right: -3px; top: -3px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
}

/* ---------- Forma (paralelogramo do símbolo) ---------- */
.forma {
  display: block;
  width: 54px;
  height: 26px;
  background: var(--texto);
  clip-path: polygon(30% 0, 100% 0, 70% 100%, 0 100%);
  border-radius: 2px;
}
.forma--ouro { background: var(--ouro); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  isolation: isolate;
  min-height: min(100svh, 920px);
  display: flex;
  align-items: flex-end;
  padding: calc(env(safe-area-inset-top, 0px) + 56px) 0 clamp(64px, 10vh, 112px);
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(6,23,15,.2) 0%, rgba(6,23,15,.5) 40%, var(--mata) 80%),
    linear-gradient(90deg, rgba(6,23,15,.55) 0%, transparent 70%),
    url("assets/campo.webp") center top / cover no-repeat;
}
.hero__media::after {
  /* malha de conexões sutil por cima da foto */
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(120% 60% at 50% 0%, transparent 40%, rgba(6,23,15,.6) 100%);
}
/* Rede de conexões ativas (rede.js) — por cima da foto, sob o texto */
.hero__rede { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; mix-blend-mode: screen; opacity: .9; }
.hero__inner { max-width: 880px; margin-left: max(24px, calc((100% - var(--larg)) / 2)); }

.hero__logo {
  width: clamp(220px, 32vw, 380px);
  margin-bottom: clamp(48px, 9vh, 96px);
}

.convite {
  color: var(--neon);
  font-size: 1rem;
  font-weight: 500;
  font-variation-settings: "wdth" 112;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.5rem, 6.4vw, 5.25rem);
  font-weight: 750;
  font-variation-settings: "wdth" 118;
  line-height: 1.02;
  max-width: 14ch;
}

.hero__lead {
  margin-top: 28px;
  max-width: 58ch;
  color: var(--texto-2);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
}

.hero__acao {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}
.hero__preco { color: var(--texto-2); font-size: 0.98rem; }

/* entrada única da página */
@media (prefers-reduced-motion: no-preference) {
  .hero__inner > * { animation: sobe 0.9s cubic-bezier(.2,.7,.2,1) both; }
  .hero__inner > :nth-child(2) { animation-delay: .12s; }
  .hero__inner > :nth-child(3) { animation-delay: .2s; }
  .hero__inner > :nth-child(4) { animation-delay: .3s; }
  .hero__inner > :nth-child(5) { animation-delay: .4s; }
  @keyframes sobe { from { opacity: 0; transform: translateY(18px); } }
}

/* =========================================================
   PROPÓSITO
   ========================================================= */
.proposito {
  padding: clamp(72px, 12vw, 152px) 0;
  background:
    radial-gradient(60% 80% at 100% 100%, rgba(46, 227, 138, 0.07), transparent 70%),
    var(--mata);
  border-top: 1px solid var(--linha);
}
.proposito__frase {
  font-size: clamp(1.75rem, 3.6vw, 3rem);
  line-height: 1.18;
  font-weight: 600;
  font-variation-settings: "wdth" 108;
  max-width: 26ch;
  text-wrap: pretty;
}
.proposito__apoio {
  margin-top: 36px;
  margin-left: auto;
  max-width: 34ch;
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  line-height: 1.45;
  color: var(--texto-2);
  padding-left: 24px;
  border-left: 2px solid var(--ouro);
}

/* =========================================================
   ACESSOS
   ========================================================= */
.acessos {
  padding: clamp(72px, 10vw, 128px) 0;
  background: var(--mata-2);
}
.acessos h2, .perfil h2, .investimento h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
}
.acessos__lista {
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--linha);
}
.acessos__lista li {
  padding: 40px 32px 8px 0;
}
.acessos__lista li + li {
  padding-left: 32px;
  border-left: 1px solid var(--linha);
}
.acessos__lista h3 {
  margin-top: 28px;
  font-size: clamp(1.35rem, 2vw, 1.65rem);
}
.acessos__lista p {
  margin-top: 10px;
  color: var(--texto-2);
  max-width: 28ch;
}

/* =========================================================
   PARA QUEM
   ========================================================= */
.perfil {
  padding: clamp(72px, 10vw, 128px) 0;
}
.perfil__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px;
  align-items: start;
}
.perfil h2 { max-width: 12ch; position: sticky; top: 40px; }
.perfil__lista {
  list-style: none;
  margin: 0;
  padding: 0;
}
.perfil__lista { border-top: 1px solid var(--linha); }
.perfil__lista li {
  position: relative;
  padding: 22px 0 22px 64px;
  border-bottom: 1px solid var(--linha);
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.45;
}
.perfil__lista li::before,
.perfil__lista li::after {
  content: "";
  position: absolute;
  top: calc(22px + 0.72em);
}
.perfil__lista li::before {
  left: 0; width: 36px; height: 1px; background: var(--neon);
}
.perfil__lista li::after {
  left: 36px; width: 7px; height: 7px; margin-top: -3px;
  border-radius: 50%; background: var(--neon);
}

/* =========================================================
   AVISO
   ========================================================= */
.aviso {
  padding: clamp(80px, 12vw, 160px) 0;
  background:
    linear-gradient(90deg, var(--mata) 0%, transparent 60%),
    url("assets/campo.webp") center 70% / cover no-repeat;
  position: relative;
  border-block: 1px solid var(--linha);
}
.aviso::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(6, 23, 15, 0.72);
}
.aviso .wrap { position: relative; }
.aviso__rotulo {
  display: inline-block;
  background: var(--ouro);
  color: var(--mata);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 6px 22px;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  margin-bottom: 24px;
}
.aviso__frase {
  font-size: clamp(2.4rem, 7vw, 6rem);
  font-weight: 800;
  font-variation-settings: "wdth" 120;
  line-height: 1;
  letter-spacing: -0.02em;
  max-width: 12ch;
}

/* =========================================================
   INVESTIMENTO
   ========================================================= */
.investimento {
  padding: clamp(72px, 10vw, 128px) 0 clamp(80px, 11vw, 140px);
}
.planos {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.plano {
  appearance: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 36px 36px 32px;
  background: var(--folha);
  border: 1px solid var(--linha);
  border-radius: 4px;
  transition: border-color .2s ease, background-color .2s ease;
}
.plano:hover { border-color: rgba(245, 192, 38, .55); background: #11331f; }
.plano--destaque { border-color: rgba(245, 192, 38, .4); }
.plano__nome { color: var(--texto-2); font-size: 1rem; }
.plano__valor {
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  font-weight: 750;
  font-variation-settings: "wdth" 112;
  line-height: 1.05;
  color: var(--ouro);
  font-variant-numeric: tabular-nums;
}
.plano__valor small { font-size: 0.5em; font-weight: 600; color: var(--texto); margin-right: 4px; }
.plano__nota { color: var(--texto-2); font-size: 0.95rem; }
.plano__ir { margin-top: 24px; align-self: flex-start; }


.seguro {
  margin-top: 28px;
  display: flex; align-items: center; gap: 10px;
  color: var(--texto-2);
  font-size: 0.95rem;
}
.seguro svg { color: var(--neon); flex: none; }

/* =========================================================
   RODAPÉ
   ========================================================= */
.rodape {
  border-top: 1px solid var(--linha);
  padding: 40px 0 120px;
}
.rodape__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.rodape img { width: 140px; opacity: .85; }
.rodape p { color: var(--texto-2); font-size: 0.9rem; }

/* =========================================================
   BARRA FIXA
   ========================================================= */
.barra {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 20;
  background: rgba(6, 23, 15, 0.86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--linha);
  padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px));
  transform: translateY(110%);
  transition: transform .35s ease;
}
.barra.visivel { transform: none; }
.barra__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.barra p { display: flex; flex-direction: column; line-height: 1.3; font-size: 0.9rem; }
.barra strong { font-variation-settings: "wdth" 112; font-size: 1rem; }
.barra span { color: var(--texto-2); }

/* =========================================================
   CHECKOUT
   ========================================================= */
.checkout {
  width: min(560px, 100%);
  max-height: min(92vh, 100%);
  margin: auto;
  padding: 0;
  border: 1px solid var(--linha);
  border-radius: 6px;
  background: var(--mata-2);
  color: var(--texto);
  overflow: auto;
  overscroll-behavior: contain;
}
.checkout::backdrop {
  background: rgba(2, 10, 6, 0.78);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
@media (prefers-reduced-motion: no-preference) {
  .checkout[open] { animation: abre .28s ease both; }
  @keyframes abre { from { opacity: 0; transform: translateY(12px); } }
}
.checkout__topo {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px;
  background: var(--mata-2);
  border-bottom: 1px solid var(--linha);
}
.checkout__topo img { width: 120px; }
.checkout__fechar {
  background: none; border: 0; color: var(--texto-2); cursor: pointer;
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
}
.checkout__fechar:hover { color: var(--texto); background: var(--folha); }

.passos {
  list-style: none;
  margin: 0; padding: 18px 24px 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  counter-reset: passo;
}
.passos li {
  counter-increment: passo;
  font-size: 0.8rem;
  color: var(--texto-2);
  padding-top: 10px;
  border-top: 2px solid var(--folha-2);
}
.passos li::before { content: counter(passo) ". "; }
.passos li.ativo { color: var(--texto); border-top-color: var(--ouro); }
.passos li.feito { border-top-color: var(--neon); }

.passo { padding: 24px; }
.passo h2 { font-size: 1.6rem; margin-bottom: 20px; }

.escolha { border: 0; margin: 0 0 20px; padding: 0; display: grid; gap: 10px; }
.escolha legend { font-size: 0.9rem; color: var(--texto-2); margin-bottom: 10px; padding: 0; }
.escolha__op {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: var(--folha);
  border: 1px solid var(--linha);
  border-radius: 4px;
  cursor: pointer;
}
.escolha__op:has(input:checked) { border-color: var(--ouro); background: #13361f; }
.escolha__op input { accent-color: var(--ouro); width: 18px; height: 18px; margin: 0; }
.escolha__op span { display: flex; flex-direction: column; line-height: 1.3; }
.escolha__op b { font-weight: 650; }
.escolha__op small { color: var(--texto-2); font-size: 0.85rem; }

.campo { margin-bottom: 16px; }
.campo label { display: block; font-size: 0.9rem; color: var(--texto-2); margin-bottom: 6px; }
.campo input {
  width: 100%;
  font: inherit; font-size: 1rem;
  color: var(--texto);
  background: var(--mata);
  border: 1px solid var(--folha-2);
  border-radius: 4px;
  padding: 13px 14px;
}
.campo input:focus { outline: none; border-color: var(--ouro); box-shadow: 0 0 0 3px rgba(245,192,38,.18); }
.campo__erro { display: none; color: var(--erro); font-size: 0.85rem; margin-top: 6px; }
.campo.invalido input { border-color: var(--erro); }
.campo.invalido .campo__erro { display: block; }
#passo-1 .btn { margin-top: 8px; }

.resumo {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  padding: 16px; margin-bottom: 20px;
  background: var(--folha); border-radius: 4px; border-left: 3px solid var(--ouro);
}
.resumo__plano { font-weight: 650; }
.resumo__quem { font-size: 0.88rem; color: var(--texto-2); }

.checkout__msg { margin-top: 16px; color: var(--erro); font-size: 0.95rem; }
.checkout__aguarde { margin-top: 12px; color: var(--texto-2); font-size: 0.9rem; text-align: center; }

.boas-vindas { text-align: center; padding: 24px 0 8px; }
.boas-vindas .forma { margin: 0 auto 24px; width: 72px; height: 34px; }
.boas-vindas h2 { margin-bottom: 12px; }
.boas-vindas p { color: var(--texto-2); margin: 0 auto 28px; max-width: 36ch; }

/* =========================================================
   RESPONSIVO
   ========================================================= */
@media (max-width: 860px) {
  .acessos__lista { grid-template-columns: 1fr; }
  .acessos__lista li, .acessos__lista li + li {
    padding: 28px 0;
    border-left: 0;
    border-bottom: 1px solid var(--linha);
    display: grid; grid-template-columns: 70px 1fr; column-gap: 16px; align-items: start;
  }
  .acessos__lista .forma { grid-row: span 2; margin-top: 4px; }
  .acessos__lista h3 { margin-top: 0; }
  .perfil__grid { grid-template-columns: 1fr; gap: 32px; }
  .perfil h2 { position: static; }
  .planos { grid-template-columns: 1fr; }
  .proposito__apoio { margin-left: 0; }
}

@media (max-width: 560px) {
  body { font-size: 1.05rem; }
  .wrap { width: calc(100% - 40px); }
  .hero { align-items: flex-end; min-height: 100svh; }
  .hero__inner { margin-left: 20px; margin-right: 20px; }
  .hero__acao .btn { width: 100%; }
  .hero__preco { width: 100%; text-align: center; }
  .plano { padding: 28px 24px; }
  .barra span { display: none; }
  .checkout {
    width: 100%; max-width: 100%;
    height: 100%; max-height: 100%;
    border-radius: 0; border: 0;
  }
  .checkout__topo { padding-top: calc(18px + env(safe-area-inset-top, 0px)); }
  .passo { padding: 20px; }
  .perfil__lista li { padding-left: 54px; }
  .perfil__lista li::before { width: 28px; }
  .perfil__lista li::after { left: 28px; }
}
