/* =====================================================
   PONTESTUR — LANDING PAGE
   Design System & Styles
   ===================================================== */

/* === TOKENS === */
:root {
  --green-900: #004d29;
  --green-800: #006837;
  --green-700: #1a7a45;
  --green-600: #2e8b57;
  --green-100: #f0f9f4;
  --green-50:  #f5faf7;

  --gold-500:  #f7941d;
  --gold-600:  #d47a0a;

  --text-dark:  #1a2a1f;
  --text-muted: #4a6555;
  --border:     #d4e5db;
  --white:      #ffffff;

  --font-heading: 'Montserrat', sans-serif;
  --font-body:    'Open Sans', sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;

  --shadow-sm:  0 1px 3px rgba(0,104,55,.06);
  --shadow-md:  0 4px 16px rgba(0,104,55,.10);
  --shadow-lg:  0 12px 40px rgba(0,104,55,.13);
  --shadow-card: 0 8px 32px rgba(0,0,0,.10);

  --transition: .25s ease;
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  /* Compensa o header sticky (72px) ao navegar por âncoras */
  scroll-padding-top: 88px;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }

/* === CONTAINER === */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .04em;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  padding: .7rem 1.5rem;
  white-space: nowrap;
}

.btn--accent {
  background: var(--gold-500);
  color: var(--text-dark);
}
.btn--accent:hover {
  background: var(--gold-600);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(247,148,29,.35);
}

.btn--primary {
  background: var(--green-800);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--green-900);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,104,55,.30);
}

.btn--outline-light {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.6);
}
.btn--outline-light:hover {
  border-color: var(--white);
  background: rgba(255,255,255,.08);
}

.btn--lg  { padding: 1rem 2rem; font-size: 1rem; }
.btn--sm  { padding: .5rem 1.1rem; font-size: .8rem; }
.btn--full{ width: 100%; }

/* === SECTION LABELS === */
.section-eyebrow {
  font-family: var(--font-heading);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: .75rem;
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  line-height: 1.2;
  color: var(--text-dark);
}

.section-title--white { color: var(--white); }

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 56ch;
  margin: .8rem 0 0;
}
.section-subtitle--white { color: rgba(255,255,255,.8); }

/* =====================================================
   HEADER
   ===================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header .container {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.header__logo { flex-shrink: 0; }
.header__logo img { height: 44px; width: auto; }
.header .btn { flex-shrink: 0; }

/* Texto curto do CTA aparece só em telas estreitas */
.header__cta-short { display: none; }

/* =====================================================
   HERO
   ===================================================== */
.hero {
  background:
    linear-gradient(135deg, rgba(0,77,41,.97) 0%, rgba(0,104,55,.90) 55%, rgba(46,139,87,.85) 100%);
  position: relative;
  overflow: hidden;
  padding: 72px 0 80px;
}

/* Geometric decoration */
.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(247,148,29,.06);
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Left — copy */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(247,148,29,.18);
  border: 1px solid rgba(247,148,29,.35);
  border-radius: var(--radius-xl);
  padding: .35rem 1rem;
  font-family: var(--font-heading);
  font-size: .78rem;
  font-weight: 600;
  color: var(--gold-500);
  letter-spacing: .04em;
  margin-bottom: 1.25rem;
}

.hero__title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 1.2rem;
}

.hero__subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,.85);
  max-width: 50ch;
  margin-bottom: 2rem;
  line-height: 1.65;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.hero__trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .9rem;
  color: rgba(255,255,255,.85);
  font-weight: 600;
}

.hero__trust-item svg {
  width: 18px;
  height: 18px;
  color: var(--gold-500);
  flex-shrink: 0;
}

/* Right — form card */
.hero__form-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-lg);
}

.hero__form-card h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text-dark);
  margin-bottom: .35rem;
}

.hero__form-card p {
  font-size: .88rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Form elements */
.form__group {
  margin-bottom: 14px;
}

.form__group label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 5px;
}

.form__group input {
  width: 100%;
  padding: .7rem .9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: .9rem;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form__group input:focus {
  border-color: var(--green-800);
  box-shadow: 0 0 0 3px rgba(0,104,55,.12);
}

.form__group input::placeholder { color: #aab8b2; }

.form__group input.error { border-color: #e53e3e; }

/* Honeypot */
.form__honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* Consent checkbox */
.form__consent {
  margin: 16px 0 18px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  cursor: pointer;
  font-size: .83rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  margin-top: 2px;
  accent-color: var(--green-800);
  cursor: pointer;
}

/* Form feedback */
.form__message {
  margin-top: 12px;
  font-size: .85rem;
  border-radius: var(--radius-md);
  padding: 0;
  display: none;
}

.form__message.success {
  display: block;
  background: #f0faf4;
  border: 1px solid #2e8b57;
  color: var(--green-900);
  padding: .75rem 1rem;
}

.form__message.error-msg {
  display: block;
  background: #fff5f5;
  border: 1px solid #e53e3e;
  color: #c53030;
  padding: .75rem 1rem;
}

.form__privacy {
  font-size: .75rem;
  color: var(--text-muted);
  margin-top: 12px;
  line-height: 1.5;
}

.form__recaptcha {
  font-size: .72rem;
  color: #8fa89d;
  margin-top: 8px;
  line-height: 1.5;
}

.form__recaptcha a {
  color: var(--green-700);
  text-decoration: underline;
}

/* =====================================================
   BENEFITS
   ===================================================== */
.benefits {
  padding: 96px 0;
  background: var(--white);
}

.benefits__header {
  text-align: center;
  margin-bottom: 56px;
}

.benefits__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.benefit-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.benefit-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}

.benefit-card:hover {
  border-color: var(--green-800);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.benefit-card:hover::after { transform: scaleX(1); }

.benefit-card__icon {
  width: 48px;
  height: 48px;
  background: var(--green-100);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--green-800);
}

.benefit-card__icon svg {
  width: 24px;
  height: 24px;
}

.benefit-card h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.benefit-card p {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* 5 cards: first 3 in row, last 2 centered */
.benefits__grid .benefit-card:nth-child(4) { grid-column: 1; }
.benefits__grid .benefit-card:nth-child(5) { grid-column: 2; }

.benefits__cta { text-align: center; }

/* =====================================================
   TESTIMONIAL
   ===================================================== */
.testimonial {
  padding: 96px 0;
  background: linear-gradient(135deg, var(--green-900) 0%, var(--green-800) 100%);
  position: relative;
  overflow: hidden;
}

.testimonial::before {
  content: '';
  position: absolute;
  top: -160px; right: -160px;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: rgba(255,255,255,.03);
}

.testimonial .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.testimonial__header {
  margin-bottom: 48px;
}

.testimonial__card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-xl);
  padding: 40px 48px;
  max-width: 680px;
  position: relative;
  backdrop-filter: blur(4px);
}

.testimonial__quote-mark {
  position: absolute;
  top: -20px;
  left: 36px;
  font-family: Georgia, serif;
  font-size: 6rem;
  line-height: 1;
  color: var(--gold-500);
  opacity: .6;
}

.testimonial__stars {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 20px;
}

.testimonial__stars svg {
  width: 22px;
  height: 22px;
  color: var(--gold-500);
  fill: var(--gold-500);
}

.testimonial__text {
  font-size: 1.15rem;
  font-style: italic;
  color: rgba(255,255,255,.92);
  line-height: 1.7;
  margin-bottom: 28px;
}

.testimonial__author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.testimonial__initial {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold-500);
  color: var(--text-dark);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.testimonial__author-info strong {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--white);
  font-size: .95rem;
}

.testimonial__author-info span {
  font-size: .82rem;
  color: rgba(255,255,255,.6);
}

/* =====================================================
   AUTHORITY
   ===================================================== */
.authority {
  padding: 96px 0;
  background: var(--green-50);
}

.authority .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.authority__header {
  width: 100%;
  text-align: center;
  margin-bottom: 56px;
}

.authority__headline {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--text-dark);
  margin-bottom: .6rem;
}

.authority__sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 52ch;
  line-height: 1.65;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.authority__logos {
  margin-bottom: 56px;
  width: 100%;
  max-width: 780px;
}

.authority__logos img {
  width: 100%;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
  opacity: .9;
  transition: opacity var(--transition);
}
.authority__logos img:hover { opacity: 1; }

.authority__divider {
  width: 60px;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  margin: 0 auto 48px;
}

.authority__partners {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.authority__logos--partners {
  max-width: 640px;
}

.authority__award-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-muted);
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: .82rem;
  margin-bottom: 20px;
}

.award-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 2px solid var(--gold-500);
  border-radius: var(--radius-xl);
  padding: 16px 28px;
  box-shadow: var(--shadow-md);
}

.award-badge__icon {
  font-size: 1.8rem;
  line-height: 1;
}

.award-badge__text {
  text-align: left;
}

.award-badge__text strong {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-dark);
}

.award-badge__text span {
  font-size: .83rem;
  color: var(--text-muted);
}

/* =====================================================
   FINAL CTA
   ===================================================== */
.final-cta {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--green-900) 0%, var(--green-800) 100%);
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.final-cta .container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.final-cta__title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--white);
  line-height: 1.2;
  max-width: 22ch;
}

.final-cta__sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,.8);
  max-width: 54ch;
  line-height: 1.65;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  background: #0d1f14;
  padding: 32px 0;
  border-top: 1px solid rgba(255,255,255,.06);
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__logo img { height: 36px; width: auto; }

.footer__social {
  display: flex;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: rgba(255,255,255,.7);
  background: rgba(255,255,255,.06);
  transition: color .2s ease, background .2s ease;
}

.footer__social a:hover {
  color: #fff;
  background: rgba(255,255,255,.16);
}

.footer__legal {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer__company {
  font-size: .85rem;
  font-weight: 600;
  color: rgba(255,255,255,.7);
}

.footer__cnpj {
  font-size: .8rem;
  color: rgba(255,255,255,.5);
}

.footer__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.footer__policy {
  font-size: .8rem;
  color: rgba(255,255,255,.7);
  text-decoration: none;
  transition: color .2s ease;
}

.footer__policy:hover {
  color: #fff;
  text-decoration: underline;
}

.footer__copy {
  font-size: .8rem;
  color: rgba(255,255,255,.4);
}

.footer__credit {
  font-size: .8rem;
  color: rgba(255,255,255,.4);
}

.footer__credit a {
  color: rgba(255,255,255,.7);
  text-decoration: none;
  font-weight: 600;
  transition: color .2s ease;
}

.footer__credit a:hover {
  color: #fff;
  text-decoration: underline;
}

/* =====================================================
   SUBMIT BUTTON STATE
   ===================================================== */
#submit-btn:disabled {
  opacity: .7;
  cursor: not-allowed;
  transform: none;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero { padding: 52px 0 60px; }

  .hero__form-card { max-width: 520px; margin: 0 auto; }

  .benefits__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .benefits__grid .benefit-card:nth-child(4),
  .benefits__grid .benefit-card:nth-child(5) {
    grid-column: auto;
  }

  /* Last card full width on 2-col */
  .benefits__grid .benefit-card:nth-child(5) {
    grid-column: 1 / -1;
    max-width: 420px;
    justify-self: center;
  }
}

@media (max-width: 640px) {
  .hero { padding: 40px 0 52px; }

  .hero__title { font-size: 1.8rem; }

  .hero__form-card { padding: 24px 20px; }

  /* Inputs com 16px evitam o zoom automático do iOS Safari ao focar */
  .form__group input,
  .checkbox-label { font-size: 16px; }
  .form__group label { font-size: .85rem; }

  .benefits { padding: 64px 0; }
  .benefits__header { margin-bottom: 40px; }
  .benefits__grid { grid-template-columns: 1fr; }
  .benefits__grid .benefit-card:nth-child(5) {
    grid-column: auto;
    max-width: none;
    justify-self: auto;
  }

  .testimonial { padding: 64px 0; }
  .testimonial__card { padding: 28px 24px; }
  .testimonial__text { font-size: 1rem; }
  .testimonial__quote-mark { font-size: 4.5rem; left: 24px; top: -12px; }

  .authority { padding: 64px 0; }

  .final-cta { padding: 72px 0; }
  .final-cta__title { font-size: 1.7rem; }

  .footer .container {
    flex-direction: column;
    text-align: center;
  }

  .footer__brand,
  .footer__legal,
  .footer__meta {
    align-items: center;
  }
}

/* === Logo + CTA: troca para texto curto quando o espaço aperta === */
@media (max-width: 480px) {
  .header__logo img { height: 40px; }
  .header__cta-full  { display: none; }
  .header__cta-short { display: inline; }
}

/* === Telas muito pequenas (≤380px) === */
@media (max-width: 380px) {
  .container { padding: 0 18px; }

  .header .container { gap: 8px; }
  .header__logo img { height: 36px; }
  .btn--sm { padding: .5rem .9rem; font-size: .75rem; letter-spacing: .02em; }

  .hero__title { font-size: 1.6rem; }
  .hero__subtitle { font-size: 1rem; }
  .hero__form-card { padding: 22px 16px; }

  /* Trust items empilhados ocupam a largura toda */
  .hero__trust { gap: 10px; }
  .hero__trust-item { font-size: .85rem; }

  .award-badge { padding: 14px 18px; gap: 10px; }
  .award-badge__text strong { font-size: .9rem; }
}

/* =====================================================
   SCROLL ANIMATIONS
   ===================================================== */

/* Hero — CSS keyframe (above the fold, não usa observer) */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__badge    { animation: heroFadeUp .55s ease both; animation-delay: .10s; }
.hero__title    { animation: heroFadeUp .60s ease both; animation-delay: .25s; }
.hero__subtitle { animation: heroFadeUp .60s ease both; animation-delay: .40s; }
.hero__trust    { animation: heroFadeUp .60s ease both; animation-delay: .55s; }
.hero__form-card{ animation: heroFadeUp .65s ease both; animation-delay: .30s; }

/* Scroll-triggered: estado inicial */
[data-animate] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .65s ease, transform .65s ease;
}

[data-animate="fade-in"] {
  transform: none;
  transition: opacity .7s ease;
}

[data-animate="scale-up"] {
  transform: scale(.94);
  transition: opacity .6s ease, transform .6s ease;
}

/* Delays para stagger */
[data-delay="1"] { transition-delay: .10s; }
[data-delay="2"] { transition-delay: .20s; }
[data-delay="3"] { transition-delay: .30s; }
[data-delay="4"] { transition-delay: .40s; }
[data-delay="5"] { transition-delay: .50s; }

/* Estado visível (adicionado via JS) */
[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* =====================================================
   REDUCED MOTION
   ===================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  [data-animate] { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
