/* Protótipo da home do ZapNotei: fundação (fontes, tokens, tipografia, botões, topo e rodapé). */

@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("../fonts/Lato-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("../fonts/Lato-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;

  /* Marca (mesmos valores do app). */
  --green: #1b4332;
  --green-2: #2d6a4f;
  --green-deep: #0f2a1f;
  --green-tint: #e4efe7;
  --lime: #d4f458;
  --lime-2: #c4e43e;

  /* Superfícies e texto. Fundo levemente quente, para não parecer cinza de template. */
  --bg: #f3f4ee;
  --bg-2: #e9ece3;
  --paper: #ffffff;
  --ink: #132019;
  --ink-2: #33433a;
  --muted: #5b6a62;
  --line: #dde2d9;
  --line-2: #c9d1c7;

  /* WhatsApp (reprodução fiel das conversas). */
  --wa-bg: #efeae2;
  --wa-out: #d9fdd3;
  --wa-ink: #111b21;
  --wa-muted: #667781;
  --wa-link: #027eb5;
  --wa-tick: #53bdeb;
  --wa-head: #075e54;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --shadow-1: 0 1px 2px rgb(19 32 25 / 6%), 0 10px 28px -14px rgb(19 32 25 / 22%);
  --shadow-2: 0 2px 4px rgb(19 32 25 / 5%), 0 24px 60px -28px rgb(19 32 25 / 35%);
  --shadow-phone: 0 60px 120px -50px rgb(15 42 31 / 60%), 0 24px 48px -24px rgb(15 42 31 / 35%);

  --f-display: "Poppins", ui-sans-serif, system-ui, sans-serif;
  --f-body: "Lato", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 160ms var(--ease);
  --t-med: 420ms var(--ease);

  --wrap: 1200px;
  --gut: clamp(16px, 4.2vw, 40px);
  --sec: clamp(80px, 6vw + 40px, 132px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 6px;
}

.escuro :focus-visible {
  outline-color: var(--lime);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.pular {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.pular:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gut) * 2);
  margin-inline: auto;
  padding-inline: var(--gut);
}

/* ---------- Tipografia ---------- */

.t-hero,
.t-h2,
.t-h3 {
  font-family: var(--f-display);
  font-weight: 600;
  color: var(--ink);
  text-wrap: balance;
}

.t-hero {
  font-size: clamp(2.5rem, 1.35rem + 3.4vw, 4.15rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.t-h2 {
  font-size: clamp(2rem, 1.2rem + 2.6vw, 3.3rem);
  line-height: 1.03;
  letter-spacing: -0.034em;
}

.t-h3 {
  font-size: clamp(1.2rem, 1.05rem + 0.45vw, 1.4rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.lead {
  font-size: clamp(1.0625rem, 0.98rem + 0.4vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* Eyebrow: pílula com contorno e um ícone por seção. */
.rotulo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--paper);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}
.rotulo svg {
  flex: none;
  color: var(--green);
}

/* Grifo de marca-texto: o lima da marca atrás da palavra. */
.grifo {
  position: relative;
  white-space: nowrap;
  z-index: 0;
}
.grifo::after {
  content: "";
  position: absolute;
  left: -0.06em;
  right: -0.08em;
  bottom: 0.06em;
  height: 0.36em;
  z-index: -1;
  border-radius: 0.12em 0.3em 0.18em 0.4em;
  background: var(--lime);
  transform: rotate(-1.2deg);
  transform-origin: left center;
}

.cabeca {
  max-width: 760px;
}
.cabeca .rotulo {
  margin-bottom: 18px;
}
.cabeca .lead {
  margin-top: 20px;
  max-width: 620px;
}
.cabeca--centro {
  margin-inline: auto;
  text-align: center;
}
.cabeca--centro .lead {
  margin-inline: auto;
}

/* ---------- Botões ---------- */

.btn {
  --btn-bg: var(--green);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 10px 0 26px;
  border: 0;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
  box-shadow: 0 1px 0 rgb(255 255 255 / 12%) inset, 0 10px 24px -12px rgb(15 42 31 / 55%);
}
.btn:hover {
  --btn-bg: var(--green-2);
}
.btn:active {
  transform: scale(0.98);
}
.btn__seta {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--green-deep);
  transition: transform var(--t-fast);
}
.btn:hover .btn__seta {
  transform: translateX(3px);
}

.btn--lima {
  --btn-bg: var(--lime);
  --btn-fg: var(--green-deep);
  box-shadow: none;
}
.btn--lima:hover {
  --btn-bg: var(--lime-2);
}
.btn--lima .btn__seta {
  background: var(--green-deep);
  color: var(--lime);
}

.btn--fantasma {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  padding: 0 22px;
  box-shadow: inset 0 0 0 1.5px var(--line-2);
}
.btn--fantasma:hover {
  --btn-bg: var(--paper);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}

.btn--pequeno {
  min-height: 44px;
  padding: 0 20px;
  font-size: 0.9375rem;
  box-shadow: none;
}

.link-seta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--green);
  text-decoration: none;
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 2px;
  transition: gap var(--t-fast);
}
.link-seta:hover {
  gap: 12px;
}

/* Chamada no pé de cada seção: o botão, centralizado, que abre o pop-up de entrada. */
.chamada {
  display: flex;
  justify-content: center;
  margin-top: clamp(40px, 4vw, 56px);
}

/* ---------- Topo ---------- */

.topo {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background-color var(--t-med), box-shadow var(--t-med);
}
.topo.rolou {
  background: rgb(243 244 238 / 82%);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  box-shadow: 0 1px 0 var(--line);
}
.topo__barra {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 76px;
}
.marca-link {
  display: inline-flex;
  flex: none;
  border-radius: 12px;
}
.logo {
  width: 132px;
  height: 40px;
}
.nav {
  display: flex;
  gap: 4px;
  margin-right: auto;
}
.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.9688rem;
  font-weight: 700;
  color: var(--ink-2);
  text-decoration: none;
  transition: background-color var(--t-fast), color var(--t-fast);
}
.nav a:hover {
  background: var(--bg-2);
  color: var(--ink);
}
/* Seção visível agora (marcada pelo JS). */
.nav a[aria-current="true"] {
  background: var(--paper);
  color: var(--green);
  box-shadow: inset 0 0 0 1px var(--line);
}
.topo__acoes {
  display: flex;
  align-items: center;
  gap: 8px;
}
.topo__menu {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: 4px;
  border: 0;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
  cursor: pointer;
}
.topo__menu span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: var(--ink);
  transition: transform var(--t-fast), opacity var(--t-fast);
}
.topo__menu[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.topo__menu[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.topo__menu[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}
.gaveta {
  display: none;
}

@media (max-width: 960px) {
  .nav {
    display: none;
  }
  .topo__barra {
    justify-content: space-between;
  }
  .topo__menu {
    display: block;
  }
  .gaveta {
    display: block;
    position: absolute;
    inset: 76px 0 auto;
    padding: 8px var(--gut) 24px;
    background: var(--bg);
    box-shadow: 0 1px 0 var(--line), 0 30px 40px -30px rgb(19 32 25 / 30%);
  }
  .gaveta[hidden] {
    display: none;
  }
  .gaveta a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--f-display);
    font-weight: 600;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    text-decoration: none;
  }
}
/* Celular estreito: "Acessar" sozinho, para caber com a logo e o menu. */
@media (max-width: 420px) {
  .topo .btn--pequeno {
    padding: 0 18px;
  }
  .so-largo {
    display: none;
  }
}

/* ---------- Rodapé ---------- */

.rodape {
  padding-block: 72px 40px;
  background: var(--green-deep);
  color: #c9d8cf;
}
.rodape__grade {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
}
.rodape__sobre p {
  max-width: 300px;
  margin-top: 16px;
  font-size: 0.9375rem;
  line-height: 1.6;
}
.rodape h2 {
  font-family: var(--f-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8fb09d;
}
.rodape ul {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}
.rodape li a {
  text-decoration: none;
  font-size: 0.9688rem;
}
.rodape li a:hover {
  color: var(--lime);
}
.rodape__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid rgb(255 255 255 / 10%);
  font-size: 0.875rem;
  color: #8fb09d;
}

.rodape__empresa {
  max-width: 760px;
}
.rodape__base a {
  color: inherit;
  text-underline-offset: 3px;
}
.rodape__base a:hover {
  color: var(--lime);
}

@media (max-width: 860px) {
  .rodape__grade {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px 24px;
  }
  .rodape__sobre {
    grid-column: 1 / -1;
  }
}
@media (max-width: 560px) {
  .rodape__grade {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  /* No celular, o botão da chamada ocupa a largura toda, com a seta na ponta. */
  .chamada .btn {
    flex: 1 1 100%;
    justify-content: space-between;
  }
}

/* ---------- Revelação na rolagem (só com JS; sem JS tudo aparece) ---------- */

.js .revela {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms var(--ease), transform 900ms var(--ease);
  transition-delay: var(--atraso, 0ms);
}
.js .revela.visivel {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
  .js .revela {
    opacity: 1;
    transform: none;
  }
}

.lead a {
  font-weight: 700;
  color: var(--green);
}
.lead strong {
  font-weight: 700;
  color: var(--ink);
}
/* Siglas com hífen ("NF-e", "NFS-e") não podem quebrar no meio. */
.sem-quebra {
  white-space: nowrap;
}
