/* ===== Tokens ===== */
:root {
  --verde: #1C7049;
  --verde-profundo: #0E5331;
  --terracota: #C2683C;
  --creme: #F7F2E3;
  --tinta: #23291F;
  --tinta-suave: #3D4238;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;

  --max: 1120px;
  --max-narrow: 640px;
  --nav-h: 68px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--creme);
  color: var(--tinta-suave);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--tinta);
}

/* ===== Utilities ===== */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: var(--max-narrow); }
.section { padding: 88px 0; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--verde-profundo); color: var(--creme);
  padding: 10px 16px; z-index: 1000;
}
.skip-link:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--verde); outline-offset: 2px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease),
              background .2s var(--ease), color .2s var(--ease);
  text-decoration: none;
}
.btn--primary { background: var(--verde); color: var(--creme); }
.btn--primary:hover {
  background: var(--verde-profundo);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(28,112,73,.28);
}
.btn--ghost {
  background: transparent;
  color: var(--verde-profundo);
  border: 2px solid var(--verde);
  padding: 12px 26px;
}
.btn--ghost:hover { background: var(--verde); color: var(--creme); }
/* Variants for dark backgrounds */
.btn--light { background: var(--creme); color: var(--verde-profundo); }
.btn--light:hover {
  background: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(247,242,227,.2);
}
.btn--ghost-light {
  background: transparent;
  color: var(--creme);
  border: 2px solid rgba(247,242,227,.45);
  padding: 12px 26px;
}
.btn--ghost-light:hover {
  background: rgba(247,242,227,.1);
  border-color: rgba(247,242,227,.75);
}
.btn--small { padding: 9px 18px; font-size: .88rem; }

/* ===== Nav ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .35s var(--ease), box-shadow .35s var(--ease);
}
/* Scrolled: creme bg for sections below the hero */
.nav.is-scrolled {
  background: rgba(247,242,227,.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(35,41,31,.1);
}
.nav__inner {
  max-width: var(--max); margin: 0 auto; padding: 0 24px;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 16px;
}
/* Initial state (over dark hero) — light text */
.nav__brand {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.15rem;
  color: var(--creme); text-decoration: none; flex-shrink: 0;
  transition: color .35s var(--ease);
}
.nav__mark { color: rgba(247,242,227,.85); display: inline-flex; transition: color .35s var(--ease); }
.nav__links {
  display: flex; gap: 28px;
  margin-left: 40px; margin-right: auto;
  font-size: .9rem; font-weight: 500;
}
.nav__links a {
  color: rgba(247,242,227,.78);
  transition: opacity .2s var(--ease), color .35s var(--ease);
}
.nav__links a:hover { color: var(--creme); opacity: 1; }
/* Scrolled: switch to dark text */
.nav.is-scrolled .nav__brand { color: var(--tinta); }
.nav.is-scrolled .nav__mark { color: var(--verde); }
.nav.is-scrolled .nav__links a { color: var(--tinta-suave); opacity: .8; }
.nav.is-scrolled .nav__links a:hover { color: var(--verde-profundo); opacity: 1; }
.nav.is-scrolled .nav__hamburger { color: var(--tinta); }
/* Nav CTA adapts to background state */
.nav__cta {
  flex-shrink: 0;
  background: var(--creme);
  color: var(--verde-profundo);
}
.nav__cta:hover { background: white; transform: translateY(-2px); box-shadow: 0 6px 18px rgba(247,242,227,.2); }
.nav.is-scrolled .nav__cta { background: var(--verde); color: var(--creme); }
.nav.is-scrolled .nav__cta:hover { background: var(--verde-profundo); box-shadow: 0 6px 18px rgba(28,112,73,.25); }

.nav__hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; padding: 6px;
  cursor: pointer; color: var(--creme); margin-left: auto;
  transition: color .35s var(--ease);
}
.nav__hamburger span {
  display: block; width: 22px; height: 2px;
  background: currentColor; border-radius: 2px;
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.nav.nav--open .nav__hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.nav--open .nav__hamburger span:nth-child(2) { opacity: 0; }
.nav.nav--open .nav__hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  background: var(--creme);
  border-top: 1px solid rgba(35,41,31,.08);
}
.nav__mobile nav {
  display: flex; flex-direction: column;
  padding: 12px 24px 24px;
}
.nav__mobile a {
  display: block; padding: 13px 0;
  color: var(--tinta); font-weight: 500;
  border-bottom: 1px solid rgba(35,41,31,.07);
}
.nav__mobile a:last-child { border-bottom: none; }
.nav__mobile .btn { margin-top: 8px; width: 100%; border-radius: 12px; padding: 14px 24px; }

@media (min-width: 760px) {
  .nav__hamburger { display: none; }
}
@media (max-width: 759px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__hamburger { display: flex; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--verde-profundo);
  padding-top: var(--nav-h);
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Full-bleed image behind everything */
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}

/* Gradient overlay: opaque on the left (text side), fades to translucent right */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    105deg,
    rgba(14,83,49,.95) 0%,
    rgba(14,83,49,.82) 38%,
    rgba(14,83,49,.50) 65%,
    rgba(14,83,49,.18) 100%
  );
}

/* Copy sits on top */
.hero__copy {
  position: relative;
  z-index: 2;
  max-width: 600px;
  padding: 72px clamp(24px, 6vw, 88px);
  color: var(--creme);
}

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 600;
  letter-spacing: .09em; text-transform: uppercase;
  color: rgba(247,242,227,.72); margin-bottom: 22px;
}
.hero__eyebrow::before {
  content: ''; display: block;
  width: 28px; height: 2px;
  background: #E8906A; /* lighter terracota — contrast safe on dark verde */
  flex-shrink: 0;
}

.hero__title {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 700;
  color: var(--creme);
  line-height: 1.08;
  margin-bottom: 20px;
}
.hero__title-em {
  display: block;
  font-style: italic;
  font-weight: 400;
  color: #E8906A; /* lighter terracota — 3.74:1 on verde-profundo ✓ */
}

.hero__sub {
  font-size: 1.05rem;
  color: rgba(247,242,227,.76);
  max-width: 400px;
  line-height: 1.65;
}

.hero__ctas {
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
  margin-top: 40px;
}

@media (max-width: 759px) {
  .hero__copy { padding: 52px 24px 64px; }
  .hero__overlay {
    background: linear-gradient(
      180deg,
      rgba(14,83,49,.88) 0%,
      rgba(14,83,49,.70) 60%,
      rgba(14,83,49,.50) 100%
    );
  }
}

/* ===== Section heading ===== */
.section__title {
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  text-align: center;
  margin-bottom: 56px;
}

/* ===== Como Funciona ===== */
.como-funciona { background: var(--verde-profundo); }
.como-funciona .section__title { color: var(--creme); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.step {
  background: rgba(247,242,227,.06);
  border: 1px solid rgba(247,242,227,.12);
  border-radius: 16px;
  padding: 32px 28px;
  position: relative;
}
.step__icon {
  display: block;
  color: var(--creme);
  margin-bottom: 18px;
}
.step h3 {
  font-size: 1.18rem;
  color: var(--creme);
  margin-bottom: 10px;
}
.step p {
  font-size: .93rem;
  color: rgba(247,242,227,.7);
  line-height: 1.65;
}

@media (max-width: 639px) {
  .steps { grid-template-columns: 1fr; }
}

/* ===== Confiança ===== */
.confianca {
  background: var(--terracota);
  padding: 18px 0;
  text-align: center;
}
.confianca__inner {
  display: inline-flex; align-items: center; gap: 9px;
  color: white;
  font-weight: 600; font-size: .95rem;
}

/* ===== Download ===== */
.download { text-align: center; }
.download .section__title { margin-bottom: 16px; }

.download__sub {
  font-size: 1.05rem;
  color: var(--tinta-suave);
  max-width: 420px;
  margin: 0 auto;
}
.store-btns {
  display: flex; gap: 16px;
  justify-content: center; flex-wrap: wrap;
  margin: 40px 0 0;
}
.store-btn {
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--tinta);
  color: var(--creme);
  padding: 14px 22px;
  border-radius: 14px;
  position: relative;
  min-width: 195px;
  cursor: default;
  opacity: .65;
  user-select: none;
}
.store-btn__icon { flex-shrink: 0; }
.store-btn__text {
  display: flex; flex-direction: column;
  align-items: flex-start; gap: 1px;
}
.store-btn__tag { font-size: .7rem; opacity: .75; }
.store-btn__name {
  font-size: 1rem; font-weight: 700;
  font-family: var(--font-display);
}
.store-btn__soon {
  position: absolute; top: -10px; right: -8px;
  background: var(--terracota); color: white;
  font-size: .65rem; font-weight: 700;
  padding: 3px 8px; border-radius: 20px;
  letter-spacing: .05em; text-transform: uppercase;
}
.download__note {
  margin-top: 28px;
  font-size: .9rem;
  color: var(--tinta-suave);
  opacity: .7;
}
.download__note a {
  color: var(--verde);
  text-decoration: underline;
}

/* ===== Footer ===== */
.footer {
  background: var(--verde-profundo);
  padding: 48px 0;
}
.footer__inner {
  display: flex; align-items: center;
  flex-wrap: wrap; gap: 24px 40px;
}
.footer__brand {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600;
  color: var(--creme); font-size: 1.05rem;
}
.footer__tagline {
  flex: 1; text-align: center;
  font-family: var(--font-display); font-style: italic;
  color: rgba(247,242,227,.5);
  font-size: .95rem;
}
.footer__links {
  display: flex; gap: 20px; flex-wrap: wrap;
  justify-content: flex-end;
  font-size: .85rem;
}
.footer__links a {
  color: rgba(247,242,227,.6);
  transition: color .2s;
}
.footer__links a:hover { color: var(--creme); }

@media (max-width: 639px) {
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .footer__tagline { text-align: left; flex: none; }
  .footer__links { justify-content: flex-start; }
}

/* ===== Reveal ===== */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
  transition-delay: var(--d, 0s);
}
[data-reveal].is-visible { opacity: 1; transform: none; }
html:not(.js) [data-reveal] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal], .btn { transition: none; }
}

/* ===== Legal pages ===== */
.legal {
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}
.legal__back {
  display: inline-block;
  margin-bottom: 32px;
  color: var(--verde);
  font-size: .9rem;
  font-weight: 500;
}
.legal__back:hover { text-decoration: underline; }
.legal h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: 8px; }
.legal h2 { font-size: 1.1rem; margin-bottom: 8px; color: var(--tinta); }
.legal__updated, .legal__intro {
  color: var(--tinta-suave);
  opacity: .7;
  margin-bottom: 32px;
  font-size: .93rem;
}
.legal__section {
  margin-bottom: 28px;
}
.legal__section p { margin-bottom: 8px; font-size: .95rem; }
.legal__list {
  list-style: disc;
  padding-left: 24px;
  margin: 8px 0;
}
.legal__list li { font-size: .95rem; margin-bottom: 4px; }
.legal .btn { margin-top: 16px; }
