:root {
  --primary: #4a704a;
  --primary-dark: #2e7d32;
  --brand-cream: #faf0d2;
  --brand-ink: #34442f;
  --brand-peach: #f8c8a0;
  --background: #fbf7ee;
  --surface: #fff;
  --border: rgba(52, 68, 47, 0.16);
  --text-primary: rgba(0, 0, 0, 0.87);
  --text-secondary: rgba(0, 0, 0, 0.64);
  --on-primary: #fff;
  --accent: #e9cba9;
  --radius: 12px;
  --font-title: 'Nunito', system-ui, sans-serif;
  --font-body: system-ui, -apple-system, Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0;
  font: 400 16px/24px var(--font-body);
  color: var(--text-primary);
  background: var(--background);
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; }
a { color: var(--primary); }
h1, h2, h3 { font-family: var(--font-title); margin: 0; }
h1 { font-weight: 900; font-size: 32px; line-height: 40px; }
h2 { font-weight: 700; font-size: 24px; line-height: 32px; text-align: center; }
h3 { font-weight: 700; font-size: 20px; line-height: 28px; }
p { margin: 0; }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 720px; }
.icon { width: 24px; height: 24px; flex: none; }

/* nav */
.nav { position: sticky; top: 0; z-index: 100; height: 56px; background: var(--primary); }
.nav-inner { max-width: 960px; height: 100%; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; }
.nav-cta { color: var(--brand-cream); font: 700 15px/20px var(--font-title); min-height: 40px; padding: 0 16px; display: inline-flex; align-items: center; text-decoration: none; border: 2px solid var(--brand-cream); border-radius: var(--radius); transition: background 200ms, color 200ms; }
.nav-cta:hover { background: var(--brand-cream); color: var(--primary); }

/* botões */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 32px; border-radius: var(--radius); font: 500 16px/20px var(--font-body); text-decoration: none; transition: background 200ms, box-shadow 200ms; }
.btn-cream { background: var(--brand-cream); color: var(--primary); }
.btn-cream:hover { background: var(--brand-peach); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2); }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-dark); }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--brand-peach); outline-offset: 2px; }

/* seções */
.sec { padding: 64px 0; }
.sec h2 + .grid, .sec h2 + .steps { margin-top: 40px; }
.sub { text-align: center; color: var(--text-secondary); margin-top: 8px; margin-bottom: 40px; }
.sec-cream .sub { color: rgba(52, 68, 47, 0.7); }
.foot { text-align: center; color: var(--text-secondary); font-size: 14px; line-height: 20px; margin-top: 24px; }
.sec-surface { background: var(--surface); }
.sec-bg { background: var(--background); }
.sec-cream { background: var(--brand-cream); color: var(--brand-ink); }
.sec-cream h2, .sec-cream h3 { color: var(--brand-ink); }
.sec-primary { background: var(--primary); color: var(--brand-cream); }

/* hero */
.hero { background: var(--primary); color: var(--brand-cream); padding: 80px 0 0; }
.hero-grid { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero h1 { color: var(--brand-cream); max-width: 560px; }
.hero-sub { font: 600 18px/28px var(--font-title); opacity: 0.8; max-width: 480px; margin: 16px auto 32px; }
.hero-note { font-size: 14px; line-height: 20px; opacity: 0.8; margin-top: 12px; }
.hero-text { padding-bottom: 56px; }
.hero-phone { width: 260px; margin-bottom: -80px; position: relative; z-index: 1; border: 3px solid var(--brand-cream); border-radius: 24px; overflow: hidden; box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25); background: var(--background); }
.hero-phone img { display: block; width: 100%; }
.hero:has(.hero-phone) .hero-text { padding-bottom: 48px; }
.hero:has(.hero-phone) + .sec { padding-top: 144px; }

/* cards */
.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card h3 { margin: 16px 0 8px; }
.card p { color: var(--text-secondary); }
.chip { display: inline-flex; width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: var(--on-primary); align-items: center; justify-content: center; }
.corner { position: absolute; top: 24px; right: 24px; color: var(--primary); }
.checks { list-style: none; margin: 16px 0 0; padding: 0; }
.checks li { display: flex; gap: 8px; margin-bottom: 8px; color: var(--text-primary); }
.checks .icon { width: 20px; height: 20px; margin-top: 2px; color: var(--primary); }
.checks.dim .icon, .checks.dim li { color: var(--text-secondary); }
.terms { font-size: 14px; line-height: 20px; color: rgba(52, 68, 47, 0.7) !important; margin-top: 16px; }


/* prints */
.sec-prints { padding-left: 0; padding-right: 0; }
.sec-prints h2 { padding: 0 20px; }
.carousel { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding: 32px 20px 8px; }
.shot { margin: 0; scroll-snap-align: center; flex: none; display: flex; flex-direction: column; align-items: center; }
.phone { width: 240px; aspect-ratio: 9 / 19.5; border: 2px solid var(--border); border-radius: 24px; overflow: hidden; background: var(--background); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08); }
.phone img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot figcaption { font-size: 14px; line-height: 20px; color: var(--text-secondary); margin-top: 8px; }

/* planos */
.plan { padding: 32px 24px; }
.plan-free { border: 2px solid var(--primary); }
.plan .badge { display: inline-flex; align-items: center; gap: 4px; font: 500 14px/20px var(--font-body); border-radius: 20px; padding: 4px 12px; }
.plan .badge .icon { width: 14px; height: 14px; }
.badge-primary { background: var(--primary); color: var(--on-primary); }
.badge-soon { background: var(--accent); color: var(--text-primary); }
.plan-title { font: 700 24px/32px var(--font-title); margin: 16px 0 0 !important; color: var(--primary); }
.plan-title-dim { color: var(--text-primary); }
.plan .checks { margin-bottom: 24px; }
.plan .btn { width: 100%; }

/* FAQ */
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 8px; overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 48px; padding: 12px 24px; font: 600 18px/28px var(--font-title); }
.faq summary::-webkit-details-marker { display: none; }
.faq .chev { color: var(--text-secondary); transition: transform 200ms ease; }
.faq details[open] .chev { transform: rotate(180deg); }
.answer { padding: 0 24px 16px; color: var(--text-secondary); }

/* CTA final */
.final { text-align: center; }
.final h2 { color: var(--brand-cream); }
.final-sub { color: var(--brand-cream); opacity: 0.8; margin: 16px 0 32px; }

/* rodapé */
.footer { background: var(--brand-ink); color: var(--brand-cream); padding: 40px 20px; text-align: center; }
.footer-links { margin-top: 24px; font-size: 14px; color: rgba(250, 240, 210, 0.8); }
.footer-links a { color: inherit; display: inline-block; padding: 12px 8px; }
.footer-small { margin-top: 8px; font-size: 14px; line-height: 20px; color: rgba(250, 240, 210, 0.72); }

/* política */
.prose h1 { font-size: 28px; line-height: 36px; margin-bottom: 8px; color: var(--primary); }
.prose h2 { text-align: left; margin: 32px 0 12px; }
.prose h3 { margin: 20px 0 8px; font-size: 16px; }
.prose p, .prose ul { margin: 0 0 12px; }
.prose ul { padding-left: 20px; }
.prose table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14px; }
.prose th, .prose td { border: 1px solid var(--border); padding: 8px; text-align: left; vertical-align: top; }
.updated { color: var(--text-secondary); margin-bottom: 24px; }

/* animação */
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.reveal-load { animation: rise 600ms ease-out both; animation-delay: var(--d, 0ms); }
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 500ms ease-out, transform 500ms ease-out; }
.js .reveal.visible { opacity: 1; transform: none; }
.js .reveal .card { transition-delay: var(--d, 0ms); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-load { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .faq .chev, .btn { transition: none; }
}

/* >= 600px */
@media (min-width: 600px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
}

/* >= 768px: selos no lugar do botão único */
@media (min-width: 768px) {
  .wrap, .nav-inner { padding-left: 40px; padding-right: 40px; }
  h1 { font-size: 48px; line-height: 56px; }
  h2 { font-size: 32px; line-height: 40px; }
  body { font-size: 18px; line-height: 28px; }
      .final   .hero { padding-top: 100px; }
  .hero-phone { width: 300px; }
}

/* >= 960px: hero em duas colunas */
@media (min-width: 960px) {
  .hero-grid { flex-direction: row; text-align: left; align-items: flex-start; justify-content: space-between; gap: 40px; }
  .hero-sub { margin-left: 0; }
    .hero-phone { margin-bottom: 0; }
  .hero:has(.hero-phone) + .sec { padding-top: 64px; }
  .hero:has(.hero-phone) .hero-text { padding-bottom: 64px; }
}

/* logos: o SVG não tem tamanho próprio, a altura vem daqui */
.logo img { height: 28px; width: auto; display: block; }
.footer img { height: 24px; width: auto; }

/* CTA único */
.hero .btn { width: 100%; max-width: 320px; }

/* hero com ilustração de fundo */
.hero { position: relative; overflow: hidden; min-height: 520px; color: var(--brand-ink); background: #fcdfb6 url('/img/hero.webp') 72% bottom / cover no-repeat; }
.hero h1 { color: var(--brand-ink); }
.hero-sub { color: var(--brand-ink); opacity: 0.85; }
.hero-note { color: var(--brand-ink); opacity: 0.75; }
.hero .wrap { position: relative; z-index: 2; }
.hero-phone { z-index: 3; }

/* lojas: selos no formato original */
.stores { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; align-items: center; margin-top: 32px; }
.store-badge { display: inline-flex; border-radius: 10px; }
.store-badge img { height: 56px; width: auto; display: block; }
/* o PNG do Google Play é mais largo (3,4:1 contra 3:1 da Apple): 50px iguala a largura dos dois */
.store-badge img[src$="google-play.png"] { height: 50px; }

/* FAQ: respiro entre título e caixas */
.faq { margin-top: 40px; }

/* como funciona: cards */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr; counter-reset: s; }
.step { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; text-align: center; }
.step-art { background: var(--brand-cream); border-radius: var(--radius); padding: 16px; margin-bottom: 20px; }
.step-art img { display: block; margin: 0 auto; width: 100%; max-width: 220px; height: auto; mix-blend-mode: multiply; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--text-secondary); }
.num { position: absolute; top: 12px; left: 12px; z-index: 1; display: inline-flex; width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: var(--on-primary); font: 900 18px/1 var(--font-title); align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

/* hero mobile: texto sobre o céu liso, a ilustração fica na base */
.hero { background-color: #fcdfb6; background-size: auto 340px; min-height: 520px; padding-top: 48px; }
.hero-text { padding-bottom: 240px; }
/* tablet e desktop: ilustração na largura toda; a altura deixa o texto dentro do céu */
@media (min-width: 768px) {
  .hero { background-size: 100% auto; background-position: center bottom; padding-top: 80px; min-height: min(calc(400px + 34vw), 800px); }
  .hero-text { padding-bottom: 56px; }
}
@media (min-width: 1700px) {
  .hero { background-size: cover; min-height: 900px; }
}

/* hero animado: o vídeo cobre a ilustração (fica de fallback) com o mesmo enquadramento */
.hero-video { position: absolute; bottom: 0; left: 72%; transform: translateX(-72%); height: 340px; width: auto; max-width: none; z-index: 0; pointer-events: none; }
@media (min-width: 768px) {
  .hero-video { left: 0; transform: none; width: 100%; height: auto; }
}
@media (min-width: 1700px) {
  .hero-video { height: 100%; object-fit: cover; object-position: center bottom; }
}
@media (prefers-reduced-motion: reduce) { .hero-video { display: none; } }

/* ---------- vida e movimento ---------- */

/* entrada item por item */
.js [data-reveal] { opacity: 0; transition: opacity 500ms ease-out, transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: calc(var(--i, 0) * 90ms); }
.js [data-reveal='up'] { transform: translateY(24px); }
.js [data-reveal='left'] { transform: translateX(-32px); }
.js [data-reveal='right'] { transform: translateX(32px); }
.js [data-reveal='zoom'] { transform: scale(0.96); }
.js [data-reveal].visible { opacity: 1; transform: none; }

/* divisores em colina, ecoam a ilustração do hero */
.divider { position: relative; z-index: 2; height: 56px; margin-top: -56px; line-height: 0; pointer-events: none; }
.divider svg { width: 100%; height: 100%; display: block; fill: var(--c); }
.divider.flip svg { transform: scaleX(-1); }
/* hero termina reto, sem onda */
.hero + .divider { display: none; }

/* cards e botões respondem ao toque */
.card, .step { transition: transform 200ms, box-shadow 200ms; }
.icon { transition: transform 250ms cubic-bezier(0.3, 1.6, 0.5, 1); }
@media (hover: hover) {
  .card:hover, .step:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(52, 68, 47, 0.12); }
  .card:hover .chip .icon { transform: rotate(-8deg) scale(1.1); }
}
.btn:active, .store-badge:active, .card:active { transform: scale(0.97); }
.store-badge { transition: transform 200ms; }
@media (hover: hover) { .store-badge:hover { transform: translateY(-3px); } }

/* o ícone "pop" ao entrar */
.js [data-reveal].visible .chip { animation: pop 500ms cubic-bezier(0.3, 1.6, 0.5, 1) both; animation-delay: calc(var(--i, 0) * 90ms + 150ms); }
@keyframes pop { from { transform: scale(0.6); } to { transform: scale(1); } }

/* ilustrações vivas */
@keyframes breathe { 50% { transform: translateY(-3px) scaleY(1.02); } }
.step-art img { transform-origin: bottom; animation: breathe 4s ease-in-out infinite; animation-play-state: paused; }
.step.live .step-art img { animation-play-state: running; }
.step:nth-child(2) .step-art img { animation-delay: -1.3s; }
.step:nth-child(3) .step-art img { animation-delay: -2.6s; }

/* CTA final: foto de fundo com véu verde e nuvens à deriva */
.final { position: relative; overflow: hidden; background: linear-gradient(var(--primary), rgba(74, 112, 74, 0) 110px), linear-gradient(rgba(74, 112, 74, 0.88), rgba(74, 112, 74, 0.88)), url('/img/farm_header.webp') center / cover no-repeat; }
.final .wrap { position: relative; z-index: 1; }
.cloud { position: absolute; width: 160px; fill: var(--brand-cream); opacity: 0.22; left: -200px; animation: drift 70s linear infinite; animation-play-state: paused; }
.final.live .cloud { animation-play-state: running; }
.cloud.c1 { top: 28px; }
.cloud.c2 { top: 130px; width: 110px; animation-duration: 95s; animation-delay: -40s; }
@keyframes drift { to { transform: translateX(calc(100vw + 400px)); } }
.final.sec { padding: 96px 0 72px; }

/* painéis do público */
.panel { padding: 0; overflow: hidden; }
.panel-art { display: block; width: 100%; height: auto; transition: transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1); }
@media (hover: hover) { .panel:hover .panel-art { transform: scale(1.03); } }
.panel { overflow: hidden; }
.panel-body { padding: 24px; position: relative; background: var(--surface); }
.panel-body h3 { margin-bottom: 4px; }

/* card com ícone ao lado */
.card-row { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; }
.card-row h3 { margin: 0 0 4px; }

/* plano em breve */
.plan-soon { border-style: dashed; align-self: start; }
.plan-free { padding-bottom: 32px; }

/* FAQ animado */
:root { interpolate-size: allow-keywords; }
.faq details::details-content { height: 0; overflow: hidden; transition: height 300ms ease, content-visibility 300ms allow-discrete; }
.faq details[open]::details-content { height: auto; }


@media (min-width: 960px) {
  h1 { font-size: 56px; line-height: 64px; }
}

/* quem pede menos movimento */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
@media (min-width: 960px) { .hero h1 { max-width: 700px; } }
@media (min-width: 600px) { .panel-body h3 { min-height: 56px; } }

/* perfis: ícone e grupos de avisos e gestão */
.profile-head { display: flex; align-items: center; gap: 16px; }
.profile-head img { width: 64px; height: 64px; flex: none; }
.card .profile-head h3 { margin: 0; }
.card-profile .checks { margin-top: 24px; }

/* como funciona: celular com vídeo curto em loop */
.step { padding: 24px 24px 28px; }
.step-phone { width: 232px; margin: 8px auto 20px; border: 3px solid var(--brand-ink); border-radius: 28px; overflow: hidden; background: var(--brand-ink); box-shadow: 0 10px 28px rgba(52, 68, 47, 0.18); aspect-ratio: 9 / 19.5; }
.step-phone video { display: block; width: 100%; height: 100%; object-fit: cover; }
.step-art { display: none; }
@media (min-width: 768px) { .step-phone { width: 100%; max-width: 232px; } }
