/* MyTree Planner — site oficial (identidade aprovada, 04/11/2026)
   Paleta: somente tons da paleta oficial do app (DS v2.1) e da marca.
     VERDE  = primário/ação — escala derivada da logo (#4FA8A0 / #00E199):
              #2E7D6E (ação), #1C4B44 (escuro), #EDF6F6/#D8ECEA (sálvia suave)
     CREME  = fundos — #F7F2E7 (fundo), #FBF7EE (superfícies)
     DOURADO= detalhe discreto — #F7CF05 (amarelo da logo), #FDF2B9 (suave)
     BRANCO = cartões; NEUTROS warm = texto e estrutura.
   Tipografia: Nunito. Mobile-first, 100% estático, sem build. */

:root {
  --primary: #2E7D6E;
  --primary-dark: #1C4B44;
  --primary-mid: #4FA8A0;
  --sage-soft: #EDF6F6;
  --sage: #D8ECEA;
  --gold: #F7CF05;
  --gold-soft: #FDF2B9;
  --ink: #292524;
  --muted: #57534E;
  --bg: #F7F2E7;
  --bg-soft: #FBF7EE;
  --card: #FFFFFF;
  --border: #E7E5E4;
  --radius-card: 20px;
  --radius-btn: 12px;
  --maxw: 1080px;
  --font: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--primary); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
section[id], main[id] { scroll-margin-top: 86px; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- Header + menu sanduíche ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 238, .97);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { height: 40px; width: auto; }
.brand-name { font-weight: 800; font-size: 1.15rem; }
.brand-name span { color: var(--primary); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-cta { display: none; }

/* Links simples usados nas páginas de documentos (Termos/Privacidade) */
.nav-desktop { display: none; gap: 26px; }
.nav-desktop a { text-decoration: none; color: var(--ink); font-weight: 700; font-size: .95rem; }
.nav-desktop a:hover { color: var(--primary); }

.btn {
  display: inline-block; text-decoration: none; font-weight: 800;
  border-radius: var(--radius-btn); padding: 12px 26px;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  border: none; cursor: pointer; font-family: var(--font); font-size: 1rem;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 18px rgba(46, 125, 110, .28); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-outline { background: #fff; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--sage-soft); }
.btn-sm { padding: 9px 18px; font-size: .9rem; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-btn); padding: 9px 11px; cursor: pointer;
}
.nav-toggle:hover { background: var(--sage-soft); }
.nav-toggle svg { width: 22px; height: 22px; stroke: var(--ink); }

/* Painel do menu sanduíche — funciona em celular e computador */
.nav-mobile {
  display: none;
  position: absolute; top: calc(100% + 8px); right: 16px; left: 16px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-card);
  box-shadow: 0 18px 40px rgba(28, 75, 68, .18);
  padding: 10px; z-index: 60;
}
.nav-mobile.open { display: block; }
.nav-mobile a {
  display: flex; align-items: center; justify-content: space-between;
  text-decoration: none; color: var(--ink); font-weight: 700;
  padding: 11px 12px; border-radius: var(--radius-btn);
}
.nav-mobile a:hover, .nav-mobile a:focus-visible { background: var(--bg-soft); color: var(--primary-dark); }
.nav-mobile a + a { border-top: 1px solid var(--bg); }
.nav-mobile a::after { content: '›'; color: var(--primary-mid); font-weight: 900; }
.nav-mobile a.menu-cta { background: var(--primary); color: #fff; margin-top: 6px; }
.nav-mobile a.menu-cta::after { color: #fff; }
.nav-mobile a.menu-cta:hover { background: var(--primary-dark); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(640px 300px at 85% -60px, var(--sage) 0%, rgba(216, 236, 234, 0) 70%),
    radial-gradient(520px 260px at 8% -40px, var(--gold-soft) 0%, rgba(253, 242, 185, 0) 70%),
    var(--bg);
  padding: 52px 0 46px; text-align: center;
}
.hero .logo-hero { height: 96px; margin-bottom: 16px; }
.hero h1 { font-size: 2.05rem; font-weight: 900; line-height: 1.2; margin-bottom: 14px; }
.hero h1 .hl { color: var(--primary); box-shadow: inset 0 -0.42em 0 var(--gold-soft); }
.hero p.destaque {
  font-size: 1.22rem; color: var(--primary-dark); font-weight: 800;
  max-width: 680px; margin: 0 auto 12px; line-height: 1.45;
}
.hero p.lead { font-size: 1.05rem; color: var(--muted); max-width: 660px; margin: 0 auto 26px; font-weight: 600; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.store-note { margin-top: 14px; font-size: .85rem; color: var(--muted); }

.pills { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.pill {
  background: #fff; border: 1px solid var(--border); border-radius: 999px;
  padding: 8px 18px; font-weight: 800; font-size: .9rem; color: var(--primary-dark);
  box-shadow: 0 2px 8px rgba(28, 75, 68, .08);
}

/* ---------- Sections ---------- */
.section { padding: 52px 0; }
.section.alt { background: var(--bg-soft); }
.section.white { background: #fff; }
.section-title { text-align: center; font-size: 1.6rem; font-weight: 900; margin-bottom: 10px; }
.section-title::after {
  content: ''; display: block; width: 54px; height: 4px; border-radius: 4px;
  background: var(--gold); margin: 12px auto 0;
}
.section-sub { text-align: center; color: var(--muted); max-width: 660px; margin: 0 auto 32px; font-weight: 600; }

.grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: 26px 22px; box-shadow: 0 4px 14px rgba(28, 75, 68, .06);
}
.card h3 { font-size: 1.12rem; margin-bottom: 8px; color: var(--primary-dark); }
.card p { color: var(--muted); font-size: .97rem; }
.card .icon {
  position: relative;
  width: 46px; height: 46px; border-radius: 14px; background: var(--sage-soft);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.card .icon::after {
  content: ''; position: absolute; top: -4px; right: -4px;
  width: 10px; height: 10px; border-radius: 50%; background: var(--gold);
  border: 2px solid #fff;
}
.card .icon svg { width: 24px; height: 24px; stroke: var(--primary); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.steps { display: grid; gap: 18px; grid-template-columns: 1fr; counter-reset: step; }
.step {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: 26px 22px; position: relative;
}
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--primary); color: #fff; font-weight: 900; margin-bottom: 12px;
}
.step h3 { margin-bottom: 6px; color: var(--primary-dark); }
.step p { color: var(--muted); font-size: .97rem; }

/* ---------- Baixar / criar conta ---------- */
.download-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-card);
  box-shadow: 0 10px 30px rgba(28, 75, 68, .10);
  max-width: 720px; margin: 0 auto; padding: 34px 26px; text-align: center;
}
.download-card h3 { font-size: 1.3rem; font-weight: 900; color: var(--primary-dark); margin-bottom: 8px; }
.download-card p { color: var(--muted); font-weight: 600; margin-bottom: 22px; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden; }
.faq-item summary {
  padding: 18px 22px; font-weight: 800; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--primary); font-size: 1.4rem; font-weight: 900; }
.faq-item[open] summary::after { content: '–'; }
.faq-item .faq-body { padding: 0 22px 20px; color: var(--muted); }
.faq-item .faq-body a { font-weight: 700; }

/* ---------- Páginas de documento (jurídico / exclusão) ---------- */
.doc { max-width: 820px; margin: 0 auto; padding: 40px 20px 64px; }
.doc h1 { font-size: 1.9rem; font-weight: 900; margin-bottom: 6px; }
.doc .updated { color: var(--muted); font-size: .9rem; margin-bottom: 28px; }
.doc h2 { font-size: 1.25rem; margin: 30px 0 10px; color: var(--primary-dark); }
.doc p, .doc li { color: #374151; margin-bottom: 10px; }
.doc ul, .doc ol { padding-left: 22px; margin-bottom: 12px; }
.doc .validate {
  background: #FFFBEB; border: 1px solid #FCD34D; border-radius: var(--radius-btn);
  padding: 12px 16px; font-size: .92rem; margin: 14px 0; color: #92400E;
}
.doc .validate strong { display: block; margin-bottom: 2px; }

/* ---------- Contato ---------- */
.contact-channels { display: grid; gap: 18px; grid-template-columns: 1fr; margin-bottom: 8px; }
.contact-channels .card p a { font-weight: 800; }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--primary-dark); color: #D8ECEA; padding: 40px 0 28px; margin-top: 0; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
.footer-brand img { height: 44px; margin-bottom: 10px; }
.footer-brand p { font-size: .9rem; max-width: 300px; }
.footer-links h4 { color: #fff; margin-bottom: 12px; font-size: 1rem; }
.footer-links a { display: block; color: #D8ECEA; text-decoration: none; padding: 5px 0; font-size: .95rem; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(216, 236, 234, .25);
  font-size: .85rem; display: flex; flex-direction: column; gap: 6px;
}
/* Rodapé simples do site (determinação da titular, 04/11/2026) */
.footer-simple { text-align: center; display: grid; gap: 10px; justify-items: center; }
.footer-simple .footer-name {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 900; font-size: 1.15rem; color: #fff;
}
.footer-simple .footer-name img { height: 38px; width: auto; }
.footer-simple nav { font-weight: 700; font-size: .95rem; }
.footer-simple nav a { color: #D8ECEA; text-decoration: none; padding: 2px 4px; }
.footer-simple nav a:hover { color: #fff; text-decoration: underline; }
.footer-simple nav .sep { color: var(--primary-mid); padding: 0 2px; }
.footer-simple .footer-mail { color: #D8ECEA; text-decoration: none; font-weight: 700; font-size: .95rem; }
.footer-simple .footer-mail:hover { color: #fff; text-decoration: underline; }

/* ---------- Notices ---------- */
.notice {
  border-radius: var(--radius-card); padding: 20px 22px; margin: 18px 0;
  border: 1px solid var(--border); background: var(--bg-soft);
}
.notice.warn { background: #FEF2F2; border-color: #FCA5A5; }
.notice.info { background: var(--sage-soft); border-color: var(--sage); }
.notice strong { display: block; margin-bottom: 4px; }

/* ---------- Desktop ---------- */
@media (min-width: 760px) {
  .nav-desktop { display: flex; align-items: center; }
  .header-cta { display: inline-block; }
  .nav-mobile { left: auto; width: 340px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .contact-channels { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
  .hero { padding: 68px 0 58px; }
  .hero h1 { font-size: 2.7rem; }
  .grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1020px) {
  .grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
}
