/* ==========================================================================
   GreenSafety — Soluções em SMS
   style.css · tokens, base, componentes e seções (mobile-first)
   ========================================================================== */

/* ---------- Fontes (self-hosted, subset latino) ---------- */
@font-face {
  font-family: "Archivo Black";
  src: url("../assets/fonts/archivo-black-latin.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fira Sans";
  src: url("../assets/fonts/fira-sans-regular-latin.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fira Sans";
  src: url("../assets/fonts/fira-sans-medium-latin.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fira Sans";
  src: url("../assets/fonts/fira-sans-semibold-latin.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Cores — conferidas no logotipo e no cartão digital */
  --c-mata: #00331c;          /* verde profundo (fundo do cartão) */
  --c-mata-2: #014223;        /* variação para painéis sobre o profundo */
  --c-folha: #008702;         /* verde institucional (letras "SAFETY") */
  --c-broto: #00b000;         /* verde vibrante (folha) */
  --c-lima: #c6f000;          /* verde-limão: só detalhes e destaques */
  --c-branco: #ffffff;
  --c-nevoa: #f2f6f1;         /* cinza claro esverdeado */
  --c-tinta: #0f1f15;         /* texto principal */
  --c-tinta-suave: #44574a;   /* texto secundário */
  --c-linha: rgba(0, 51, 28, 0.14);
  --c-linha-clara: rgba(255, 255, 255, 0.16);
  --c-erro: #b42318;

  /* Tipografia */
  --f-display: "Archivo Black", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --f-texto: "Fira Sans", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --fs-sm: 0.875rem;
  --fs-base: 1.0625rem;
  --fs-md: 1.1875rem;
  --fs-lg: 1.375rem;
  --fs-h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --fs-h2: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
  --fs-h1: clamp(2.25rem, 1.4rem + 3.6vw, 3.5rem);

  /* Espaçamento */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-section: clamp(4.5rem, 3rem + 6vw, 8.5rem);

  /* Layout */
  --container: 1240px;
  --gutter: clamp(1.25rem, 0.8rem + 2vw, 2.5rem);
  --header-h: 72px;

  /* Formas */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 24px;
  --r-pill: 999px;
  --r-folha: 110px 16px 110px 16px; /* recorte de folha, inspirado no símbolo */

  /* Movimento */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 180ms;
  --t-med: 320ms;

  --sombra-suave: 0 18px 40px -24px rgba(0, 51, 28, 0.45);
}

/* ---------- Reset enxuto ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body { margin: 0; }
h1, h2, h3, h4, p, figure, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
abbr[title] { text-decoration: none; }

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

/* ---------- Base ---------- */
body {
  font-family: var(--f-texto);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--c-tinta);
  background: var(--c-branco);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip;
}

::selection { background: var(--c-lima); color: var(--c-mata); }

:focus-visible {
  outline: 3px solid var(--c-lima);
  outline-offset: 3px;
  border-radius: 4px;
}
.section :focus-visible,
.contact :focus-visible { outline-color: var(--c-folha); }

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

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

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  padding: 0.75rem 1rem;
  background: var(--c-lima); color: var(--c-mata);
  font-weight: 600; border-radius: var(--r-sm);
  transform: translateY(-160%);
  transition: transform var(--t-fast) var(--ease-out);
}
.skip-link:focus { transform: none; }

.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Tipografia de seção ---------- */
.section { padding-block: var(--sp-section); }

.section-title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: var(--fs-h2);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--c-mata);
  max-width: 18ch;
  text-wrap: balance;
}
.section-title--light { color: var(--c-branco); }

.section-intro {
  margin-top: var(--sp-4);
  font-size: var(--fs-md);
  color: var(--c-tinta-suave);
  max-width: 56ch;
}
.section-intro--light { color: rgba(255, 255, 255, 0.78); }

.section-head { margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }

.prose p + p { margin-top: var(--sp-4); }
.prose { max-width: 62ch; color: var(--c-tinta-suave); font-size: var(--fs-md); }

/* ---------- Botões ---------- */
.btn {
  --btn-bg: var(--c-folha);
  --btn-fg: var(--c-branco);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 52px;
  padding: 0.85rem 1.5rem;
  border: 2px solid transparent;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--f-texto);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.btn--primary { --btn-bg: var(--c-folha); --btn-fg: var(--c-branco); }
.btn--lima { --btn-bg: var(--c-lima); --btn-fg: var(--c-mata); }
.btn--mata { --btn-bg: var(--c-mata); --btn-fg: var(--c-branco); }
.btn--ghost-light {
  --btn-bg: transparent; --btn-fg: var(--c-branco);
  border-color: rgba(255, 255, 255, 0.4);
}
.btn--sm { min-height: 44px; padding: 0.6rem 1.15rem; font-size: 0.9375rem; }
.btn--lg { min-height: 60px; padding: 1rem 2rem; font-size: 1.0625rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* ---------- Emblema (ícone em esfera com luz, sombra e anel) ---------- */
.plate {
  --plate: 44px;
  --plate-a: #3fd23a;
  --plate-b: #00a000;
  --plate-c: #00561b;
  --plate-ink: var(--c-branco);
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: none;
  width: var(--plate);
  height: var(--plate);
  border-radius: 50%;
  color: var(--plate-ink);
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.55) 0, rgba(255, 255, 255, 0) 32%),
    radial-gradient(circle at 50% 40%, var(--plate-a) 0%, var(--plate-b) 48%, var(--plate-c) 100%);
  box-shadow:
    inset 0 -6px 12px rgba(0, 40, 18, 0.35),
    inset 0 1px 1px rgba(255, 255, 255, 0.5),
    0 10px 22px -10px rgba(0, 107, 34, 0.75);
}
.plate::after {
  /* anel externo discreto */
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid rgba(0, 176, 0, 0.28);
  pointer-events: none;
}
.plate svg { position: relative; width: 52%; height: 52%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 1px 1px rgba(0, 40, 18, 0.35)); }
.plate--sm { --plate: 36px; }
.plate--md { --plate: 48px; }
.plate--lg { --plate: 64px; }
.plate--xl { --plate: 72px; }
.plate--lima { --plate-a: #f1ff8a; --plate-b: #c6f000; --plate-c: #86a800; --plate-ink: var(--c-mata); }
.plate--lima svg { filter: none; }
.on-dark .plate::after,
.plate--on-dark::after { border-color: rgba(198, 240, 0, 0.25); }

/* ---------- Núcleo da marca (símbolo em disco de vidro + órbitas) ---------- */
.brand-core {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.brand-core__orbits {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.orbit { transform-origin: 200px 200px; transform-box: view-box; }
.orbit ellipse { fill: none; stroke: rgba(198, 240, 0, 0.32); stroke-width: 1; }
.orbit--2 ellipse { stroke: rgba(255, 255, 255, 0.16); stroke-dasharray: 2 8; }
.orbit--3 ellipse { stroke: rgba(0, 176, 0, 0.5); stroke-dasharray: 60 14; }
.orbit__dot { fill: var(--c-broto); filter: drop-shadow(0 0 6px rgba(0, 202, 0, 0.9)); }
.orbit__dot--lima { fill: var(--c-lima); filter: drop-shadow(0 0 8px rgba(198, 240, 0, 0.9)); }
.brand-core__glow {
  position: absolute;
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 202, 0, 0.55), rgba(0, 176, 0, 0.12) 60%, transparent);
  filter: blur(18px);
}
.brand-core__disc {
  position: relative;
  width: 48%;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 38%),
    radial-gradient(circle at 70% 85%, rgba(198, 240, 0, 0.22), rgba(198, 240, 0, 0) 45%),
    linear-gradient(160deg, rgba(1, 80, 38, 0.92), rgba(0, 38, 20, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.12),
    inset 0 -18px 36px rgba(0, 0, 0, 0.35),
    0 40px 80px -30px rgba(0, 0, 0, 0.7),
    0 0 0 10px rgba(255, 255, 255, 0.03);
}
.brand-core__disc img { width: 72%; height: auto; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35)); }

/* ---------- Mídia com recorte de folha ---------- */
.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-folha);
  background:
    radial-gradient(90% 60% at 80% 10%, rgba(198, 240, 0, 0.22), transparent 60%),
    radial-gradient(80% 70% at 10% 100%, rgba(0, 176, 0, 0.45), transparent 60%),
    var(--c-mata);
}
.media--leaf-alt { border-radius: 16px 110px 16px 110px; }
.media > img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media.is-missing > img { display: none; }
.media__fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.media__fallback .brand-core { width: 86%; max-width: 440px; }
.media__fallback--logo img { position: relative; width: 62%; max-width: 340px; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.35)); }
.media__ring { position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(198, 240, 0, 0.22); }
.media__ring--2 { width: 104%; border-color: rgba(255, 255, 255, 0.08); border-style: dashed; }

/* ---------- Tags ---------- */
.tags { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.tags li {
  padding: 0.3rem 0.75rem;
  border-radius: var(--r-pill);
  background: var(--c-nevoa);
  color: var(--c-mata);
  font-size: var(--fs-sm);
  font-weight: 500;
}

/* ---------- Checklist ---------- */
.checklist { display: grid; gap: var(--sp-3); }
.checklist li {
  position: relative;
  padding-left: 2rem;
  line-height: 1.45;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.1em;
  width: 1.3rem; height: 1.3rem;
  border-radius: 50%;
  background: var(--c-lima) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300331c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7'/%3E%3C/svg%3E") center / 62% no-repeat;
}
.checklist abbr { font-weight: 600; color: var(--c-mata); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  color: var(--c-branco);
  transition: background-color var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out), color var(--t-med) var(--ease-out);
}
.site-header__progress {
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  transform-origin: left;
  transform: scaleX(var(--progress, 0));
  background: linear-gradient(90deg, var(--c-broto), var(--c-lima));
  pointer-events: none;
}
.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--sp-5);
}
.brand { position: relative; display: block; width: 148px; flex: none; }
.brand__logo { width: 100%; transition: opacity var(--t-med) var(--ease-out); }
.brand__logo--color { position: absolute; inset: 0; opacity: 0; }

.main-nav { display: none; margin-left: auto; }
.site-header__cta { display: none; }

.menu-toggle {
  margin-left: auto;
  display: inline-grid;
  place-items: center;
  width: 48px; height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: inherit;
}
.menu-toggle .icon { width: 24px; height: 24px; grid-area: 1 / 1; }
.menu-toggle .icon--close { opacity: 0; }
.menu-toggle[aria-expanded="true"] .icon--open { opacity: 0; }
.menu-toggle[aria-expanded="true"] .icon--close { opacity: 1; }

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--c-linha);
  color: var(--c-mata);
}
.site-header.is-scrolled .brand__logo--light { opacity: 0; }
.site-header.is-scrolled .brand__logo--color { opacity: 1; }
.site-header.is-scrolled .menu-toggle { background: var(--c-nevoa); }

/* Menu aberto: header sempre sobre o verde profundo */
.menu-open .site-header { background: var(--c-mata); color: var(--c-branco); box-shadow: none; }
.menu-open .site-header .brand__logo--light { opacity: 1; }
.menu-open .site-header .brand__logo--color { opacity: 0; }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  padding: calc(var(--header-h) + var(--sp-6)) var(--gutter) var(--sp-6);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--c-mata);
  color: var(--c-branco);
  overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu__list a {
  display: block;
  padding: 0.6rem 0;
  font-family: var(--f-display);
  font-size: clamp(2rem, 9vw, 2.75rem);
  line-height: 1.1;
  text-decoration: none;
  border-bottom: 1px solid var(--c-linha-clara);
}
.mobile-menu__footer { display: grid; gap: var(--sp-4); margin-top: var(--sp-7); }
.mobile-menu__phone { text-align: center; color: rgba(255, 255, 255, 0.8); font-weight: 500; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--c-mata);
  color: var(--c-branco);
  padding-top: calc(var(--header-h) + clamp(2rem, 1rem + 3vw, 3.5rem));
  padding-bottom: clamp(8rem, 6rem + 8vw, 12rem);
}

/* Fundo: aurora animada + partículas WebGL + véu de leitura */
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__aurora { position: absolute; inset: 0; overflow: hidden; }
.hero__aurora span {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  will-change: transform;
}
.hero__aurora span:nth-child(1) { width: 46vw; height: 46vw; right: -8vw; top: -14vw; background: radial-gradient(closest-side, #00b000, transparent); }
.hero__aurora span:nth-child(2) { width: 34vw; height: 34vw; right: 18vw; top: 20vh; background: radial-gradient(closest-side, rgba(198, 240, 0, 0.55), transparent); opacity: 0.35; }
.hero__aurora span:nth-child(3) { width: 50vw; height: 40vw; left: -18vw; bottom: -18vw; background: radial-gradient(closest-side, #008702, transparent); opacity: 0.45; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s ease; }
.hero__canvas.is-ready { opacity: 1; }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 51, 28, 0.85) 0%, rgba(0, 51, 28, 0.35) 45%, rgba(0, 51, 28, 0) 70%),
    linear-gradient(180deg, rgba(0, 51, 28, 0.55) 0%, rgba(0, 51, 28, 0) 30%);
}

.hero__grid { position: relative; display: grid; gap: var(--sp-6); align-items: center; }

.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: var(--sp-5);
  padding: 0.4rem 0.9rem 0.4rem 0.7rem;
  border-radius: var(--r-pill);
  border: 1px solid rgba(198, 240, 0, 0.28);
  background: rgba(198, 240, 0, 0.06);
  color: var(--c-lima);
  font-weight: 500;
  font-size: 0.875rem;
}
.hero__kicker-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--c-lima);
  box-shadow: 0 0 0 0 rgba(198, 240, 0, 0.6);
  animation: pulse-dot 2.4s ease-out infinite;
}
.hero__title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: var(--fs-h1);
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.hero__lead {
  margin-top: var(--sp-5);
  max-width: 52ch;
  font-size: var(--fs-md);
  color: rgba(255, 255, 255, 0.8);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }

/* Palco visual */
.hero__stage {
  position: relative;
  width: min(100%, 520px);
  margin-inline: auto;
  aspect-ratio: 1 / 1;
  perspective: 1000px;
}
.hero__core { position: absolute; inset: 6%; width: auto; }
.hero__cards { position: absolute; inset: 0; }

.glass-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 1.1rem 0.7rem 0.7rem;
  border-radius: 20px;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  white-space: nowrap;
  will-change: transform;
}
.glass-card .plate::after { border-color: rgba(198, 240, 0, 0.22); }
.glass-card__text { display: grid; line-height: 1.25; }
.glass-card__text strong { font-weight: 600; font-size: 0.95rem; }
.glass-card__text span { font-size: 0.8rem; color: rgba(255, 255, 255, 0.7); }
.glass-card--a { left: -4%; top: 8%; }
.glass-card--b { right: -6%; top: 62%; }
.glass-card--c { left: 0; bottom: 4%; }

/* Indicador de rolagem */
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: clamp(5.5rem, 4rem + 4vw, 8.5rem);
  transform: translateX(-50%);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.8rem;
  text-decoration: none;
}
.hero__scroll-line {
  position: relative;
  width: 1px; height: 44px;
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
}
.hero__scroll-line::after {
  content: "";
  position: absolute; left: 0; top: 0;
  width: 100%; height: 40%;
  background: var(--c-lima);
  animation: scroll-line 2s var(--ease-out) infinite;
}

.hero__wave {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  width: 100%;
  height: clamp(70px, 9vw, 170px);
}
.hero__wave-fill { fill: var(--c-branco); }
.hero__wave-line { fill: none; stroke: var(--c-broto); stroke-width: 10; stroke-linecap: round; vector-effect: non-scaling-stroke; }

/* ==========================================================================
   SOBRE
   ========================================================================== */
.about { padding-top: clamp(2.5rem, 1rem + 4vw, 5rem); }
.about__grid { display: grid; gap: var(--sp-7); align-items: center; }
.about__text .prose { margin-top: var(--sp-5); }

.areas { display: grid; gap: var(--sp-4); margin-top: var(--sp-7); }
.areas__item {
  padding-top: var(--sp-4);
  border-top: 1px solid var(--c-linha);
}
.areas__item dt {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--f-display);
  font-size: var(--fs-lg);
  line-height: 1.15;
  color: var(--c-mata);
}
.areas__item dd { margin-top: var(--sp-2); padding-left: calc(44px + var(--sp-3)); color: var(--c-tinta-suave); }

.about__media { aspect-ratio: 5 / 6; max-height: 640px; }
.about__badge {
  position: absolute;
  z-index: 2;
  left: auto;
  right: var(--sp-4);
  bottom: var(--sp-4);
  max-width: min(300px, calc(100% - 4.5rem));
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-md);
  background: var(--c-lima);
  color: var(--c-mata);
}
.about__badge strong { display: block; font-family: var(--f-display); font-weight: 400; font-size: 1.125rem; line-height: 1.2; }
.about__badge span { font-size: var(--fs-sm); font-weight: 500; }

/* ==========================================================================
   SOLUÇÕES
   ========================================================================== */
.solutions { background: var(--c-nevoa); }

.solutions__tabs {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
}
.solutions__tabs[hidden] { display: none; }
.solutions__tabs { position: relative; }
.tabs__indicator {
  position: absolute;
  z-index: 0;
  border-radius: var(--r-md);
  background: var(--c-mata);
  box-shadow: 0 18px 30px -18px rgba(0, 51, 28, 0.8);
  transition: transform 520ms var(--ease-out), width 520ms var(--ease-out), height 520ms var(--ease-out);
  pointer-events: none;
}
.tabs__indicator { display: none; }
.tab {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--sp-3);
  width: 100%;
  padding: 0.8rem 1rem;
  min-height: 60px;
  border: 1px solid var(--c-linha);
  border-radius: var(--r-md);
  background: var(--c-branco);
  color: var(--c-mata);
  text-align: left;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.25;
  transition: background-color var(--t-med) var(--ease-out), color var(--t-med) var(--ease-out), border-color var(--t-med) var(--ease-out);
}
.tab svg { width: 28px; height: 28px; fill: none; stroke: var(--c-folha); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: stroke var(--t-med) var(--ease-out); }
.tab[aria-selected="true"] { background: var(--c-mata); color: var(--c-branco); border-color: var(--c-mata); }
.tab[aria-selected="true"] svg { stroke: var(--c-lima); }

.solutions__panels { display: grid; gap: var(--sp-5); }
.panel {
  display: grid;
  gap: var(--sp-5);
  align-content: start;
  padding: clamp(1.5rem, 1rem + 2.5vw, 3rem);
  border-radius: var(--r-lg);
  background: var(--c-branco);
  box-shadow: var(--sombra-suave);
}
.panel[hidden] { display: none; }
.panel:focus-visible { outline-offset: 4px; }
.panel__head { display: grid; gap: var(--sp-4); }
.panel__title { font-family: var(--f-display); font-weight: 400; font-size: var(--fs-h3); line-height: 1.15; color: var(--c-mata); }
.panel__desc { margin-top: var(--sp-2); color: var(--c-tinta-suave); max-width: 60ch; }
.panel__note {
  padding: var(--sp-3) var(--sp-4);
  border-left: 3px solid var(--c-broto);
  background: var(--c-nevoa);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: var(--fs-sm);
  color: var(--c-tinta-suave);
}
.panel .btn { justify-self: start; }

/* ==========================================================================
   SEGMENTOS
   ========================================================================== */
.segment-list { border-top: 1px solid var(--c-linha); }
.segment {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4) var(--sp-5);
  padding-block: var(--sp-6);
  border-bottom: 1px solid var(--c-linha);
}
.segment { position: relative; isolation: isolate; }
.segment::before {
  content: "";
  position: absolute;
  inset: 6px -1rem;
  z-index: -1;
  border-radius: var(--r-md);
  background: linear-gradient(90deg, var(--c-nevoa), rgba(242, 246, 241, 0));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 600ms var(--ease-out);
}
.segment__plate { --plate: 56px; }
.segment__cta { grid-column: 1 / -1; }
.segment__title { font-family: var(--f-display); font-weight: 400; font-size: var(--fs-h3); line-height: 1.15; color: var(--c-mata); }
.segment__body p { margin-top: var(--sp-2); color: var(--c-tinta-suave); max-width: 60ch; }
.segment__body .tags { margin-top: var(--sp-4); }
.segment__cta {
  grid-column: 1 / -1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.55rem 1.1rem;
  border: 2px solid var(--c-folha);
  border-radius: var(--r-pill);
  color: var(--c-folha);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.schools {
  display: grid;
  gap: var(--sp-5);
  margin-top: var(--sp-7);
  padding: clamp(1.5rem, 1rem + 3vw, 3rem);
  border-radius: var(--r-lg);
  background: var(--c-mata);
  color: var(--c-branco);
  position: relative;
  overflow: hidden;
}
.schools::after {
  content: "";
  position: absolute;
  right: -30%; bottom: -105%;
  width: 70%; height: 150%;
  border-radius: 50%;
  border-top: 3px solid rgba(198, 240, 0, 0.4);
  transform: rotate(-14deg);
  pointer-events: none;
}
.schools__title { font-family: var(--f-display); font-weight: 400; font-size: var(--fs-h3); line-height: 1.2; max-width: 30ch; }
.schools__body p { margin-top: var(--sp-3); color: rgba(255, 255, 255, 0.8); max-width: 70ch; }
.schools .btn { justify-self: start; position: relative; z-index: 1; --btn-bg: var(--c-lima); --btn-fg: var(--c-mata); }

/* ==========================================================================
   DIFERENCIAIS
   ========================================================================== */
.values { position: relative; overflow: hidden; background: var(--c-mata); color: var(--c-branco); padding-top: var(--sp-6); }
.marquee {
  overflow: hidden;
  margin-bottom: var(--sp-section);
  padding-block: var(--sp-5);
  border-block: 1px solid var(--c-linha-clara);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; align-items: center; gap: clamp(1.5rem, 3vw, 3rem); width: max-content; will-change: transform; }
.marquee__word {
  font-family: var(--f-display);
  font-size: clamp(2.25rem, 1.5rem + 4vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.2px rgba(255, 255, 255, 0.38);
}
.marquee__word:nth-of-type(3n + 2) { color: var(--c-broto); -webkit-text-stroke: 0; }
.marquee__leaf { width: clamp(1.5rem, 1rem + 2vw, 3rem); height: clamp(1.5rem, 1rem + 2vw, 3rem); flex: none; fill: none; stroke: var(--c-lima); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.values__grid { display: grid; gap: var(--sp-7); }
.values__list { display: grid; gap: 0; border-top: 1px solid var(--c-linha-clara); }
.values__list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-4);
  padding-block: var(--sp-5);
  border-bottom: 1px solid var(--c-linha-clara);
}
.values__mark {
  width: 28px; height: 28px;
  margin-top: 2px;
  padding: 5px;
  border-radius: 50%;
  background: var(--c-lima);
  fill: none; stroke: var(--c-mata); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
}
.values__list h3 { font-size: var(--fs-md); font-weight: 600; line-height: 1.3; }
.values__list p { margin-top: var(--sp-1); color: rgba(255, 255, 255, 0.7); font-size: 0.975rem; }

/* ==========================================================================
   CTA
   ========================================================================== */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--c-broto);
  color: var(--c-mata);
  padding-block: clamp(4rem, 3rem + 5vw, 7.5rem);
}
.cta-band__swoosh {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.cta-band__swoosh path { fill: none; stroke: var(--c-lima); stroke-width: 3; opacity: 0.75; vector-effect: non-scaling-stroke; }
.cta-band__inner { position: relative; }
.cta-band__title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: var(--fs-h2);
  line-height: 1.04;
  letter-spacing: -0.02em;
  max-width: 20ch;
  text-wrap: balance;
}
.cta-band__text { margin-top: var(--sp-4); max-width: 50ch; font-size: var(--fs-md); font-weight: 500; }
.cta-band__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4) var(--sp-5); margin-top: var(--sp-6); }
.cta-band__phone { font-weight: 600; text-underline-offset: 4px; }

/* ==========================================================================
   CONTATO
   ========================================================================== */
.contact__grid { display: grid; gap: var(--sp-8); }
.channels { display: grid; gap: var(--sp-2); margin-top: var(--sp-6); }
.channel {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-3);
  border-radius: var(--r-md);
  text-decoration: none;
  transition: background-color var(--t-fast) var(--ease-out);
}
.channel__text { display: grid; min-width: 0; }
.channel__label { font-size: var(--fs-sm); color: var(--c-tinta-suave); }
.channel__value { font-weight: 600; color: var(--c-mata); overflow-wrap: break-word; }

.channel { position: relative; overflow: hidden; isolation: isolate; }

/* ---------- Formulário ---------- */
.form {
  position: relative;
  padding: clamp(1.5rem, 1rem + 2vw, 2.75rem);
  border-radius: var(--r-lg);
  background:
    radial-gradient(120% 60% at 100% 0%, rgba(198, 240, 0, 0.14), transparent 55%),
    var(--c-nevoa);
  border: 1px solid rgba(0, 51, 28, 0.08);
  box-shadow: 0 30px 60px -40px rgba(0, 51, 28, 0.45);
  overflow: hidden;
}
.form::before {
  /* traço da marca no canto do cartão */
  content: "";
  position: absolute;
  right: -45%; top: -95%;
  width: 90%; height: 120%;
  border-radius: 50%;
  border-bottom: 2px solid rgba(0, 176, 0, 0.25);
  transform: rotate(-12deg);
  pointer-events: none;
}
.form__body { position: relative; display: grid; gap: var(--sp-4); }
.form__body[hidden] { display: none; }
.form__head { display: grid; gap: var(--sp-1); margin-bottom: var(--sp-2); }
.form__title { font-family: var(--f-display); font-weight: 400; font-size: var(--fs-h3); line-height: 1.15; color: var(--c-mata); }
.form__hint { font-size: var(--fs-sm); color: var(--c-tinta-suave); }
.form__row { display: grid; gap: var(--sp-4); }

.field { position: relative; display: grid; gap: var(--sp-2); }
.field label { font-weight: 600; font-size: 0.9375rem; color: var(--c-mata); }
.field__label-row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-3); }
.field__count { font-size: 0.8rem; color: var(--c-tinta-suave); font-variant-numeric: tabular-nums; }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.8rem 1rem;
  border: 1.5px solid rgba(0, 51, 28, 0.16);
  border-radius: 12px;
  background: var(--c-branco);
  font-size: 1rem; /* evita zoom automático no iOS */
  box-shadow: 0 1px 2px rgba(0, 51, 28, 0.04);
  transition: border-color var(--t-fast) var(--ease-out), box-shadow var(--t-med) var(--ease-out), background-color var(--t-fast) var(--ease-out);
}
.field input::placeholder { color: rgba(15, 31, 21, 0.4); }
.field textarea { resize: vertical; min-height: 130px; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: rgba(0, 135, 2, 0.45); }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--c-folha); box-shadow: 0 0 0 4px rgba(0, 135, 2, 0.16), 0 10px 24px -14px rgba(0, 135, 2, 0.6); }
.field input[aria-invalid="false"],
.field textarea[aria-invalid="false"] {
  padding-right: 2.75rem;
  background: var(--c-branco) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23008702' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7'/%3E%3C/svg%3E") right 1rem top 15px / 18px no-repeat;
}
.field [aria-invalid="true"] { border-color: var(--c-erro); background-color: #fffafa; }
.field__error {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--fs-sm);
  color: var(--c-erro);
  font-weight: 500;
}
.field__error::before { content: "!"; display: inline-grid; place-items: center; width: 16px; height: 16px; flex: none; border-radius: 50%; background: var(--c-erro); color: #fff; font-size: 11px; font-weight: 700; }
.field__error:empty { display: none; }
.is-shaking { animation: field-shake 380ms ease; }

.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 2.75rem; cursor: pointer; }
.select::after {
  content: "";
  position: absolute;
  right: 1.1rem; top: 50%;
  width: 9px; height: 9px;
  border-right: 2px solid var(--c-mata);
  border-bottom: 2px solid var(--c-mata);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
  transition: transform var(--t-med) var(--ease-out);
}
.select:focus-within::after { transform: translateY(-30%) rotate(225deg); }

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

/* Consentimento com caixa personalizada */
.consent {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-3);
  align-items: start;
  font-size: 0.9375rem;
  color: var(--c-tinta-suave);
  cursor: pointer;
}
.consent input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; cursor: pointer; }
.consent__box {
  display: grid;
  place-items: center;
  width: 22px; height: 22px;
  margin-top: 1px;
  border: 1.5px solid rgba(0, 51, 28, 0.35);
  border-radius: 7px;
  background: var(--c-branco);
  transition: background-color var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out);
}
.consent__box svg { width: 15px; height: 15px; fill: none; stroke: var(--c-branco); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset 280ms var(--ease-out); }
.consent input:checked + .consent__box { background: var(--c-folha); border-color: var(--c-folha); }
.consent input:checked + .consent__box svg { stroke-dashoffset: 0; }
.consent input:focus-visible + .consent__box { outline: 3px solid var(--c-folha); outline-offset: 2px; }
.consent input[aria-invalid="true"] + .consent__box { border-color: var(--c-erro); }
.consent:active .consent__box { transform: scale(0.92); }
.consent a { color: var(--c-folha); font-weight: 600; }

/* Botão de envio com estado de carregamento */
.form__submit { margin-top: var(--sp-2); min-height: 56px; }
.form__spinner {
  display: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: var(--c-branco);
  animation: spin 0.8s linear infinite;
}
.form__submit.is-loading .form__spinner { display: inline-block; }

.form__status:empty { display: none; }
.form__status {
  padding: var(--sp-4);
  border-radius: 12px;
  font-weight: 500;
  font-size: 0.95rem;
}
.form__status.is-error { background: #fde8e6; color: var(--c-erro); border: 1px solid rgba(180, 35, 24, 0.2); }
.form__status a { color: inherit; font-weight: 600; }

/* Confirmação de envio */
.form__success {
  position: relative;
  display: grid;
  justify-items: center;
  gap: var(--sp-4);
  padding-block: var(--sp-7);
  text-align: center;
}
.form__success[hidden] { display: none; }
.form__success:focus { outline: none; }
.form__success p { max-width: 40ch; color: var(--c-tinta-suave); }
.form__success-icon { width: 76px; height: 76px; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.form__success-icon circle { stroke: var(--c-broto); stroke-width: 3; stroke-dasharray: 183; stroke-dashoffset: 183; transform: rotate(-90deg); transform-origin: center; }
.form__success-icon path { stroke: var(--c-folha); stroke-width: 4; stroke-dasharray: 44; stroke-dashoffset: 44; }
.form__success.is-visible .form__success-icon circle { animation: draw 700ms var(--ease-out) forwards; }
.form__success.is-visible .form__success-icon path { animation: draw 500ms 450ms var(--ease-out) forwards; }
.form__success.is-visible > :not(svg) { animation: fade-up 600ms 500ms var(--ease-out) both; }

.btn--ghost-dark { --btn-bg: transparent; --btn-fg: var(--c-mata); border-color: rgba(0, 51, 28, 0.25); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--c-mata);
  color: rgba(255, 255, 255, 0.78);
  padding-top: var(--sp-8);
  font-size: 0.975rem;
}
.site-footer__grid { display: grid; gap: var(--sp-7); padding-bottom: var(--sp-7); }
.site-footer__brand img { width: 200px; }
.site-footer__brand p { margin-top: var(--sp-4); max-width: 40ch; }
.site-footer__heading { font-family: var(--f-texto); font-size: 1rem; font-weight: 600; color: var(--c-branco); margin-bottom: var(--sp-3); }
.site-footer__col ul { display: grid; gap: var(--sp-2); }
.site-footer a { text-decoration: none; overflow-wrap: anywhere; transition: color var(--t-fast) var(--ease-out); }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-block: var(--sp-5);
  border-top: 1px solid var(--c-linha-clara);
  font-size: var(--fs-sm);
}
.site-footer__bottom a { text-decoration: underline; text-underline-offset: 3px; }
.site-footer__bottom p:first-child { margin-right: auto; }

/* Crédito do desenvolvedor: discreto, sem competir com a marca */
.dev-credit {
  flex-basis: 100%;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding-top: var(--sp-3);
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
}
.dev-credit__name {
  position: relative;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none !important;
}
.dev-credit__name::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: linear-gradient(90deg, var(--c-lima), transparent);
  transform-origin: left;
  transform: scaleX(0.35);
  transition: transform var(--t-med) var(--ease-out);
}
a.dev-credit__name:hover { color: var(--c-lima); }
a.dev-credit__name:hover::after { transform: scaleX(1); }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 80;
  display: grid;
  place-items: center;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--c-broto);
  color: var(--c-branco);
  box-shadow: 0 12px 28px -10px rgba(0, 51, 28, 0.6);
  transition: transform var(--t-med) var(--ease-out), opacity var(--t-med) var(--ease-out);
}
.wa-float svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wa-float.is-hidden { opacity: 0; transform: translateY(16px) scale(0.9); pointer-events: none; }

/* ==========================================================================
   PÁGINA DE POLÍTICA
   ========================================================================== */
.legal-header { background: var(--c-mata); color: var(--c-branco); padding: var(--sp-5) 0; }
.legal-header .container { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); }
.legal-header img { width: 150px; }
.legal-header a.back { color: var(--c-lima); font-weight: 600; }
.legal { padding-block: var(--sp-8); }
.legal .container { max-width: calc(780px + var(--gutter) * 2); }
.legal h1 { font-family: var(--f-display); font-weight: 400; font-size: clamp(2rem, 1.5rem + 2vw, 3rem); line-height: 1.08; color: var(--c-mata); }
.legal h2 { font-family: var(--f-display); font-weight: 400; font-size: 1.375rem; color: var(--c-mata); margin-top: var(--sp-7); }
.legal p, .legal li { color: var(--c-tinta-suave); margin-top: var(--sp-3); }
.legal ul { list-style: disc; padding-left: 1.25rem; }
.legal a { color: var(--c-folha); font-weight: 600; }
.legal .updated { font-size: var(--fs-sm); margin-top: var(--sp-3); }
