/* ==========================================================================
   EVER — Ralos e Acessórios · Landing page
   Cores extraídas de assets/ref/mockup-lp-completa.png (ver README).
   ========================================================================== */

:root {
  /* Marca (valores reais do mockup) */
  --verde:        #6B8255;  /* painel do hero, bordas, logo, títulos grandes */
  --verde-aa:     #637B4E;  /* preenchimentos com texto branco (contraste AA ≥ 4.5) */
  --verde-hover:  #4F6340;  /* preenchimento do botão no hover */
  --verde-texto:  #56693F;  /* texto verde pequeno sobre sálvia (AA) */
  --verde-escuro: #343A2E;  /* card de diferencial em destaque */
  --verde-borda:  #6B8255;  /* borda dos cards de diferenciais */
  --card-escuro:  #10140D;  /* fundo dos cards de diferenciais */
  --aspas:        #26301E;  /* aspas decorativas da citação */
  --salvia:       #E3E8DF;  /* fundo claro */
  --salvia-2:     #D4DBCE;
  --preto:        #000000;
  --texto:        #111111;
  --texto-suave:  #5A6356;  /* eyebrows e notas sobre sálvia (AA) */
  --texto-card:   #C9CDC5;
  --eyebrow-dark: #8A9A7C;
  --linha:        #3F4540;
  --placeholder:  #6E7F60;
  --erro:         #8E3A2C;
  --branco:       #FFFFFF;
  --swatch-oculto: #FFFFFF;
  --swatch-inox:   #CFCFCF;
  --swatch-preto:  #3F3F3F;

  /* Tipografia (troque aqui se a agência tiver as fontes oficiais) */
  --font-sans:  "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Playfair Display", "Didot", Georgia, serif;

  /* Movimento */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --container: clamp(720px, 57.5vw, 1100px);  /* proporção do mockup (1100/1920) */
  --gutter: clamp(20px, 4vw, 48px);
  --section-y: clamp(80px, 9vw, 140px);
  --radius: clamp(14px, 1.5vw, 28px);         /* imagens arredondadas (banheira) */
  --radius-lg: clamp(56px, 7vw, 140px);       /* canto "folha" (foto da Regina) */
  --arc-h: clamp(36px, 6vw, 110px);           /* arco nas transições preto → claro */

  --fs-hero:    clamp(34px, 2.35vw, 52px);
  --fs-title:   clamp(30px, 3.45vw, 66px);
  --fs-eyebrow: clamp(11px, 1.2vw, 23px);
  --fs-body:    clamp(16px, 0.55vw + 10px, 20px);
}

/* ---------- Fontes (auto-hospedadas, subset latin, variáveis) ---------- */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/archivo-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url("../assets/fonts/playfair-display-italic-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Reset enxuto ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--salvia);
  color: var(--texto);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, figure, blockquote, ul { margin: 0; }
ul { padding: 0; list-style: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; }
em { font-style: normal; }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-stopped { overflow: clip; }

/* Foco visível */
:focus-visible { outline: 2px solid var(--verde); outline-offset: 4px; }
.video :focus-visible, .quote :focus-visible, .diferenciais :focus-visible { outline-color: var(--salvia); }

.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;
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 12px 20px; border-radius: 999px;
  background: var(--verde-aa); color: var(--branco); text-decoration: none;
}
.skip-link:focus { top: 16px; }

.serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 700;
  letter-spacing: -0.005em;
}

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

.eyebrow {
  display: block;
  font-size: var(--fs-eyebrow);
  font-weight: 400;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--texto-suave);
  margin-right: -0.45em; /* compensa o tracking no centro */
}
.eyebrow--dark { color: var(--eyebrow-dark); }
.eyebrow--tight { letter-spacing: 0.08em; margin-right: 0; font-size: 11px; color: var(--eyebrow-dark); }

/* Linhas com máscara (títulos) */
.line { display: block; overflow: hidden; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.line > span, .line > em { display: block; }
.line--serif { padding-right: 0.15em; margin-right: -0.15em; }

.section-head { text-align: center; }
.section-title {
  margin-top: clamp(16px, 1.6vw, 28px);
  font-size: var(--fs-title);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0.01em;
}
.section-title--form { font-size: clamp(26px, 2.9vw, 56px); }
.section-sub {
  max-width: 740px;
  margin: clamp(18px, 1.6vw, 28px) auto 0;
  font-size: clamp(16px, 1.5vw, 29px);
  font-weight: 300;
  line-height: 1.35;
  color: var(--verde-texto);
}

/* Imagens com revelação */
[data-img-reveal] { position: relative; overflow: hidden; }
.img-inner { position: relative; width: 100%; height: 100%; }
.img-inner img { width: 100%; height: 100%; object-fit: cover; }
[data-parallax] img { height: 116%; margin-top: -8%; }

/* ==========================================================================
   4.1 HERO
   ========================================================================== */
.hero {
  position: relative;
  height: clamp(440px, 31.25vw, 760px);
  background: var(--salvia);
  overflow: hidden;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0 30% 0 26%; overflow: hidden; }
.hero__media picture, .hero__media img { width: 100%; height: 100%; }
.hero__media img { object-fit: cover; object-position: 50% 45%; }
.hero__media[data-parallax] img { height: 116%; margin-top: -8%; }

.hero__salvia {
  position: absolute; inset: 0;
  background: var(--salvia);
  clip-path: polygon(0 0, 38.55% 0, 28.9% 100%, 0 100%);
}
.hero__panel {
  position: absolute; inset: 0;
  background: var(--verde);
  clip-path: polygon(68.5% 0, 100% 0, 100% 100%, 58.85% 100%);
}
.hero__logo {
  position: absolute;
  left: 63.5%; bottom: 10.5%;
  width: 17.2%; min-width: 200px;
}
.hero__content {
  position: absolute; z-index: 2;
  top: clamp(56px, 14.5%, 120px);
  left: max(var(--gutter), calc((100% - var(--container)) / 2 - 1.8%));
  max-width: 30%;
}
.hero__title {
  font-size: var(--fs-hero);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.005em;
  color: var(--preto);
}
.hero__title .serif {
  font-size: 1.58em;
  line-height: 0.95;
  color: var(--verde);
  font-weight: 800;
}
.hero__subtitle {
  margin-top: clamp(20px, 1.8vw, 36px);
  max-width: 12em;
  font-size: clamp(15px, 1.05vw, 20px);
  line-height: 1.3;
  color: var(--preto);
}

/* ==========================================================================
   4.2 VÍDEO MANIFESTO
   ========================================================================== */
.video {
  position: relative;
  min-height: max(480px, min(56.25vw, 100svh));
  background: var(--preto);
  color: var(--branco);
  overflow: hidden;
}
.video__stage {
  position: absolute; inset: 0; z-index: 3;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.9s var(--ease), visibility 0s linear 0.9s;
}
.video.is-playing .video__stage { opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
.video__stage iframe, .video__stage video { width: 100%; height: 100%; border: 0; background: #000; }

.video__play {
  position: absolute; z-index: 2;
  left: 50%; top: 50%;
  width: clamp(72px, 8.9vw, 170px);
  aspect-ratio: 1;
  display: grid; place-items: center;
  padding: 0;
  border: 0; background: none;
  color: #D9D9D9;
  translate: -50% -58%;
}
.video__play svg { width: 100%; fill: currentColor; transition: transform 0.9s var(--ease), color 0.6s var(--ease); }
.video__play:hover svg, .video__play:focus-visible svg { transform: scale(1.07); color: var(--branco); }
.video__play[aria-disabled="true"] { cursor: default; }
.video__play[aria-disabled="true"]:hover svg { transform: none; color: #D9D9D9; }
.video__soon {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%);
  margin-top: 8px;
  white-space: nowrap;
  font-size: 11px; letter-spacing: 0.4em; text-transform: uppercase;
  color: #9A9A9A;
}
.video.is-playing .video__play, .video.is-playing .video__label { visibility: hidden; }

.video__label {
  position: absolute; z-index: 2;
  left: max(var(--gutter), calc((100% - var(--container)) / 2));
  bottom: clamp(56px, 6vw, 110px);
  font-size: clamp(40px, 3.9vw, 76px);
  line-height: 1.12;
  color: var(--branco);
}
.video__label em { display: block; }

/* ==========================================================================
   4.3 APRESENTAÇÃO
   ========================================================================== */
.intro {
  position: relative; z-index: 2;
  overflow-x: clip;
  background: var(--verde-aa);
  color: var(--branco);
}
.intro__grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 31.5vw) clamp(300px, 26.6vw, 510px);
  justify-content: space-between;
  align-items: end;
}
/* O padding de baixo reserva espaço para o arco preto que fecha a seção. */
.intro__text { padding-block: clamp(110px, 10vw, 190px) calc(clamp(64px, 5vw, 100px) + var(--arc-h) * 0.6); }
.intro__text p { max-width: 36em; font-size: clamp(16px, 0.5vw + 10px, 19px); line-height: 1.45; }
.intro__text p + p { margin-top: 1.4em; }
.intro__text .serif { font-size: 1.12em; margin-left: 0.2em; white-space: nowrap; }
.intro__media {
  aspect-ratio: 510 / 650;
  margin-top: clamp(28px, 2.6vw, 52px);
  margin-bottom: clamp(-80px, -4vw, -40px);
  border-radius: 0 0 var(--radius) var(--radius);
  margin-right: calc(var(--gutter) * -0.6);
}

/* ==========================================================================
   4.4 CITAÇÃO
   ========================================================================== */
.quote {
  background: var(--preto);
  color: var(--branco);
  padding-block: clamp(104px, 8vw, 160px) calc(clamp(64px, 4.2vw, 84px) + var(--arc-h));
}
.quote__grid {
  display: grid;
  grid-template-columns: clamp(300px, 26.6vw, 510px) minmax(0, 29vw);
  justify-content: space-between;
  gap: clamp(32px, 4.5vw, 64px);
  align-items: center;
}
.quote__photo { aspect-ratio: 3 / 4; border-radius: var(--radius-lg) 0 var(--radius-lg) 0; }
.quote__body { padding-top: 3%; }
.quote__mark {
  display: block;
  height: 0.62em;
  font-size: clamp(72px, 5.6vw, 110px);
  line-height: 1;
  color: var(--aspas);
  margin-bottom: clamp(24px, 2vw, 40px);
}
.quote__text {
  font-size: clamp(19px, 1.55vw, 30px);
  line-height: 1.42;
  max-width: 18em;
  font-weight: 400;
}
.quote__text .w { display: inline; }
.quote__author { margin-top: clamp(28px, 2.4vw, 44px); }
.quote__author cite { display: block; font-size: clamp(20px, 1.35vw, 26px); }
.quote__author .eyebrow { margin-top: 10px; }

/* ==========================================================================
   4.5 PRODUTOS
   ========================================================================== */
.produtos { position: relative; overflow-x: clip; background: var(--salvia); padding-block: var(--section-y); }

/* Arco nas transições preto → claro: sobe para dentro da seção preta e achata ao rolar */
.arc {
  position: absolute; left: -12%; right: -12%; bottom: 100%;
  height: var(--arc-h);
  margin-bottom: -1px;
  background: var(--salvia);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  transform-origin: 50% 100%;
  pointer-events: none;
}
/* Variante invertida: a seção escura sobe no fim de uma seção clara (verde → preto) */
.arc--bottom {
  top: auto; bottom: 0;
  margin-bottom: 0;
  background: var(--preto);
}
.produtos__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(40px, 5.4vw, 60px);
  margin-top: clamp(40px, 4.2vw, 64px);
}
.produto__media { aspect-ratio: 1; background: var(--salvia-2); }
.produto__media picture, .produto__media img { width: 100%; height: 100%; }
.produto__media img { object-fit: cover; transition: opacity 1s var(--ease); }
.produto__media .img-swap { position: absolute; inset: 0; opacity: 0; }

.produto__nome {
  margin-top: clamp(20px, 1.8vw, 30px);
  font-size: clamp(26px, 2.3vw, 44px);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--verde);
}
.produto__label {
  margin: clamp(18px, 1.3vw, 24px) 0 12px;
  font-size: clamp(14px, 0.95vw, 18px);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.chips { display: flex; flex-wrap: wrap; gap: 12px; }

/* Chips de tamanho (produtos) */
.opt {
  position: relative;
  display: inline-grid; place-items: center;
  min-width: clamp(64px, 4.6vw, 88px); height: clamp(36px, 2.3vw, 44px);
  padding: 0 clamp(14px, 1vw, 20px);
  border: 0; border-radius: 999px;
  background: var(--branco);
  color: var(--verde-texto);
  font-size: clamp(15px, 0.95vw, 18px);
  font-weight: 300;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.opt:hover { box-shadow: inset 0 0 0 1px var(--verde); }
.opt[aria-checked="true"] { background: var(--verde-aa); color: var(--branco); box-shadow: none; }
.opt.is-pressed { animation: press 0.45s var(--ease); }
@keyframes press { from { transform: scale(0.96); } to { transform: scale(1); } }

/* Swatches de acabamento */
.swatches { display: flex; flex-wrap: wrap; gap: 12px; }
.swatch {
  display: grid; justify-items: center; gap: 6px;
  font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--texto-suave);
}
.swatch__pill {
  width: clamp(64px, 4.6vw, 88px); height: clamp(34px, 2.3vw, 44px); border-radius: 999px;
  background: var(--sw, #fff);
  box-shadow: inset 0 0 0 1px rgba(63, 69, 64, 0.14);
}

.produto__status {
  margin-top: clamp(28px, 2.2vw, 40px);
  padding-top: 20px;
  border-top: 1px solid var(--verde);
  font-size: clamp(13px, 0.8vw, 15px);
  font-weight: 300;
}
.produto__status [data-status] { display: inline-block; }

/* ==========================================================================
   4.6 DIFERENCIAIS
   ========================================================================== */
.diferenciais { background: var(--preto); color: var(--branco); padding-block: var(--section-y) calc(var(--section-y) + var(--arc-h) * 0.6); }
.diferenciais .section-title { color: #F4F5F1; }
.dif__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 3.2vw, 62px) clamp(32px, 3.6vw, 68px);
  margin-top: clamp(40px, 3.6vw, 64px);
}
.dif {
  position: relative;
  min-height: clamp(260px, 20.4vw, 392px);
  padding: clamp(28px, 1.9vw, 36px);
  background: var(--card-escuro);
  border: 1px solid var(--verde-borda);
  transition: background-color 0.8s var(--ease);
}
.dif:hover, .dif:focus-visible, .dif.is-active { background: var(--verde-escuro); }
.dif:focus-visible { outline-offset: 6px; }
.dif__icon {
  width: clamp(44px, 3.9vw, 74px); height: auto;
  fill: none; stroke: var(--verde); stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.dif__title {
  margin-top: clamp(28px, 2.2vw, 44px);
  font-size: clamp(19px, 1.7vw, 32px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  max-width: 16em;
}
.dif__text {
  margin-top: 14px;
  max-width: 21em;
  font-size: clamp(15px, 1.28vw, 24px);
  font-weight: 300;
  line-height: 1.45;
  color: var(--texto-card);
}

/* ==========================================================================
   4.7 CADASTRO
   ========================================================================== */
.cadastro { position: relative; overflow-x: clip; background: var(--salvia); padding-top: var(--section-y); padding-bottom: clamp(40px, 3vw, 56px); }
.container--form { max-width: calc(clamp(700px, 55.7vw, 1070px) + var(--gutter) * 2); }

.q { margin-top: clamp(64px, 7vw, 120px); text-align: center; }
.q legend { width: 100%; text-align: center; }
.q__title {
  display: block;
  max-width: 20em;
  margin: clamp(18px, 1.6vw, 30px) auto clamp(24px, 2vw, 38px);
  font-size: clamp(22px, 2.75vw, 52px);
  font-weight: 400;
  line-height: 1.22;
  color: var(--texto);
}

.chips--form { justify-content: center; gap: clamp(10px, 1.1vw, 20px); margin-inline: -3.2vw; }
.chip { position: relative; display: inline-flex; cursor: pointer; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center;
  min-height: clamp(42px, 3.5vw, 66px);
  padding: 8px clamp(18px, 1.9vw, 36px);
  border: 1px solid var(--verde);
  border-radius: 999px;
  font-size: clamp(15px, 1.7vw, 32px);
  font-weight: 300;
  line-height: 1.2;
  color: var(--verde-texto);
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.chip:hover span { background: rgba(107, 130, 85, 0.1); }
.chip input:checked + span { background: var(--verde-aa); border-color: var(--verde-aa); color: var(--branco); animation: press 0.45s var(--ease); }
.chip input:focus-visible + span { outline: 2px solid var(--verde); outline-offset: 3px; }
.q.has-error .chip span { border-color: var(--erro); }

.outro { max-width: 520px; margin: 28px auto 0; text-align: left; }

/* Campos */
.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(36px, 2.8vw, 48px) 16px;
  margin-top: clamp(36px, 2.8vw, 48px);
}
.field { position: relative; display: block; text-align: left; }
.field--full { grid-column: 1 / -1; }
.field__label {
  display: block;
  padding-left: 14px;
  font-size: clamp(11px, 0.78vw, 15px);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #3B3F38;
}
.field__input {
  display: block; width: 100%;
  margin-top: 6px;
  padding: 10px 14px 12px;
  border: 0; border-bottom: 1px solid var(--linha); border-radius: 0;
  background: transparent;
  font-size: clamp(16px, 1.4vw, 27px);
  font-weight: 300;
  color: var(--texto);
  transition: border-color 0.35s var(--ease);
}
.field__input::placeholder { color: var(--placeholder); opacity: 1; }
.field__input:focus { outline: none; }
.field::after {
  content: ""; position: absolute; left: 0; right: 0;
  top: var(--line-top, auto); bottom: var(--line-bottom, 0);
  height: 2px; background: var(--verde);
  transform: scaleX(0); transform-origin: center;
  transition: transform 0.7s var(--ease);
  pointer-events: none;
}
.field:focus-within::after { transform: scaleX(1); }
.field.has-error .field__input { border-bottom-color: var(--erro); }

.field--select { margin-top: clamp(24px, 2vw, 36px); }
.field--select .field__input {
  appearance: none; -webkit-appearance: none;
  padding-right: 48px;
  color: var(--placeholder);
  cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' fill='none' stroke='%233F4540' stroke-width='1.2'%3E%3Cpath d='m1 1 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center;
}
.field--select .field__input.has-value { color: var(--texto); }
.field--select .field__input option { color: var(--texto); }
.q--regiao { margin-top: clamp(56px, 5vw, 90px); }
.q__eyebrow-label { cursor: pointer; }

.field__error {
  min-height: 0;
  font-size: 12.5px;
  line-height: 1.3;
  color: var(--erro);
  opacity: 0; transform: translateY(-4px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.field__error:not(:empty) { opacity: 1; transform: none; }
.field .field__error { position: absolute; left: 14px; top: calc(100% + 6px); }
.q > .field__error, .q--regiao > .field__error { margin-top: 12px; text-align: center; }
.q--regiao > .field__error { text-align: left; padding-left: 14px; }

/* Consentimento LGPD */
.consent { max-width: 640px; margin: clamp(44px, 3.4vw, 60px) auto 0; }
.consent__label {
  position: relative;
  display: flex; gap: 14px; align-items: flex-start;
  font-size: 14px; line-height: 1.45;
  color: var(--texto-suave);
  cursor: pointer;
}
.consent__label input { position: absolute; left: 0; top: 2px; width: 18px; height: 18px; opacity: 0; margin: 0; cursor: pointer; }
.consent__box {
  flex: none;
  width: 18px; height: 18px; margin-top: 1px;
  border: 1px solid var(--verde);
  border-radius: 3px;
  background: transparent no-repeat center / 12px;
  transition: background-color 0.35s var(--ease);
}
.consent__label input:checked + .consent__box {
  background-color: var(--verde-aa);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10' fill='none' stroke='white' stroke-width='1.6'%3E%3Cpath d='m1 5 3.5 3.5L11 1.5'/%3E%3C/svg%3E");
}
.consent__label input:focus-visible + .consent__box { outline: 2px solid var(--verde); outline-offset: 3px; }
.consent.has-error .consent__box { border-color: var(--erro); }
.consent .field__error { margin-top: 8px; padding-left: 32px; }

/* Botão */
.form__actions { margin-top: clamp(44px, 3.6vw, 64px); text-align: center; }
.btn {
  position: relative;
  display: inline-grid; place-items: center;
  width: min(clamp(320px, 35vw, 670px), 100%);
  min-height: clamp(56px, 3.5vw, 70px);
  padding: 12px 32px;
  border: 0; border-radius: 999px;
  background: var(--verde-aa);
  color: var(--branco);
  font-size: clamp(17px, 1.55vw, 30px);
  font-weight: 300;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--verde-hover);
  transform: translateX(-101%);
  transition: transform 0.8s var(--ease);
}
.btn:hover, .btn:focus-visible { transform: translateY(-2px); box-shadow: 0 14px 30px -18px rgba(38, 50, 28, 0.7); }
.btn:hover::before, .btn:focus-visible::before { transform: translateX(0); }
.btn__text, .btn__spinner { grid-area: 1 / 1; transition: opacity 0.35s var(--ease); }
.btn__spinner {
  width: 22px; height: 22px; opacity: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; border-radius: 50%;
}
.btn.is-loading { pointer-events: none; }
.btn.is-loading .btn__text { opacity: 0; }
.btn.is-loading .btn__spinner { opacity: 1; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.form__note { margin-top: 12px; font-size: 13px; color: var(--verde-texto); }
.form__feedback { margin-top: 16px; font-size: 14px; color: var(--erro); }
.form__feedback:empty { display: none; }

.form-success { padding-block: clamp(48px, 6vw, 96px); text-align: center; }
.form-success:focus { outline: none; }
.form-success__title { font-size: clamp(34px, 3vw, 52px); color: var(--verde); line-height: 1.1; }
.form-success p + p { margin-top: 16px; font-size: clamp(17px, 1.2vw, 22px); font-weight: 300; color: var(--verde-texto); }

/* Faixa ofuscada no topo da tela (desfoque progressivo em 3 camadas) */
.top-fade {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: clamp(44px, 6vh, 76px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}
.top-fade.is-on { opacity: 1; }
.top-fade span { position: absolute; inset: 0; }
.top-fade span:nth-child(1) { backdrop-filter: blur(1.5px); -webkit-backdrop-filter: blur(1.5px); mask-image: linear-gradient(to bottom, #000 40%, transparent); -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent); }
.top-fade span:nth-child(2) { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); mask-image: linear-gradient(to bottom, #000 15%, transparent 70%); -webkit-mask-image: linear-gradient(to bottom, #000 15%, transparent 70%); }
.top-fade span:nth-child(3) { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); mask-image: linear-gradient(to bottom, #000, transparent 40%); -webkit-mask-image: linear-gradient(to bottom, #000, transparent 40%); }

/* Honeypot */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ==========================================================================
   4.8 RODAPÉ
   ========================================================================== */
.footer {
  display: grid; justify-items: center;
  padding: clamp(24px, 2vw, 40px) var(--gutter) clamp(20px, 1.6vw, 32px);
  background: var(--salvia);
  text-align: center;
}
.footer__logo { width: clamp(170px, 12.3vw, 236px); }
.footer .eyebrow { margin-top: clamp(56px, 5vw, 96px); font-size: clamp(11px, 0.72vw, 14px); }
.footer__credit {
  color: var(--preto);
  font-weight: 700;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.6s var(--ease);
}
.footer__credit:hover, .footer__credit:focus-visible { background-size: 100% 1px; }

/* ==========================================================================
   Estados iniciais das animações (só com JS ativo)
   ========================================================================== */
.js [data-reveal],
.js [data-stagger] > *,
.js .dif,
.js .hero__subtitle,
.js .hero__logo { opacity: 0; }
.js .line > span, .js .line > em { transform: translateY(110%); }
.js [data-img-reveal] { clip-path: inset(100% 0 0 0); }
.js .hero__media { opacity: 0; }
.js .hero:not(.is-ready) .hero__panel { clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%); }
.js .video__play { opacity: 0; }
.js .dif__icon > * { stroke-dasharray: 1; stroke-dashoffset: 1; }

/* ==========================================================================
   Responsivo
   ========================================================================== */
@media (max-width: 1024px) {
  .hero__content { max-width: 36%; }
  .intro__grid { grid-template-columns: minmax(0, 1fr) min(380px, 40vw); gap: 40px; }
  .quote__grid { grid-template-columns: min(380px, 40vw) minmax(0, 1fr); }
}

@media (max-width: 768px) {
  /* Hero: texto em cima, imagem ao fundo, faixa verde diagonal embaixo */
  .hero { height: max(640px, min(100svh, 860px)); }
  .hero__media { inset: 0; }
  .hero__media img { object-position: 42% 50%; }
  .hero__salvia { clip-path: polygon(0 0, 100% 0, 100% 40%, 0 47%); }
  .hero__panel { clip-path: polygon(0 84%, 100% 73%, 100% 100%, 0 100%); }
  .js .hero:not(.is-ready) .hero__panel { clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%); }
  .hero__logo { left: auto; right: var(--gutter); bottom: 4.5%; width: 44%; min-width: 0; max-width: 220px; }
  .hero__content { top: clamp(48px, 9vh, 88px); left: var(--gutter); right: var(--gutter); max-width: none; }
  .hero__title { font-size: clamp(34px, 9.4vw, 44px); }

  .video__label { bottom: 48px; }
  .video__play { translate: -50% -64%; }

  .intro__grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .intro__text { padding-block: 96px 48px; }
  .intro__media {
    width: min(100%, 440px);
    margin: 0 0 -56px auto;
    margin-right: 0;
  }
  .quote { padding-top: calc(56px + 56px); }
  .quote__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  :root { --container: 100%; }
  .quote__photo { width: min(100%, 440px); }

  .produtos__grid, .dif__grid { grid-template-columns: minmax(0, 1fr); }
  .dif { min-height: 0; padding-bottom: 36px; }

  .fields { grid-template-columns: minmax(0, 1fr); }
  .chips--form { margin-inline: 0; }
  .q__title { max-width: none; }
}

@media (max-width: 420px) {
  .chip span { font-size: 15px; }
  .opt, .swatch__pill { min-width: 76px; width: auto; }
  .swatch__pill { width: 76px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.2s !important; }
  [data-parallax] img, .hero__media[data-parallax] img { height: 100%; margin-top: 0; }
}
