/* Página de apresentação (/). As mesmas cores do app, claro e escuro. */
:root {
  --bg: #f4f7f3;
  --surface: #ffffff;
  --text: #1b2a21;
  --muted: #5d6e63;
  --border: #dbe4dd;
  --primary: #2f7d4f;
  --primary-dark: #22603c;
  --primary-ink: #ffffff;
  --soft: #e2efe6;
  --accent: #e9a93a;
  --accent-soft: #fbf0da;
  --radius: 20px;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 12px 32px rgb(27 42 33 / 0.08);
  --phone-shadow: 0 30px 60px rgb(27 42 33 / 0.22);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1612;
    --surface: #17211b;
    --text: #e5eee7;
    --muted: #97a99c;
    --border: #2a3a30;
    --primary: #5cc185;
    --primary-dark: #45a96f;
    --primary-ink: #0b1a10;
    --soft: #1e3226;
    --accent: #f0b95a;
    --accent-soft: #3a2f1a;
    --shadow: none;
    --phone-shadow: 0 30px 60px rgb(0 0 0 / 0.5);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.wrap.narrow { width: min(760px, 100% - 32px); }
.center { text-align: center; margin-inline: auto; }
.small { font-size: 14px; color: var(--muted); }
.eyebrow { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--primary); margin-bottom: 10px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 0.15s, background 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 16px 28px; font-size: 18px; }
.btn-sm { padding: 8px 16px; font-size: 15px; }
.btn-primary { background: var(--primary); color: var(--primary-ink); box-shadow: 0 8px 20px rgb(47 125 79 / 0.3); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-light { background: #fff; color: #22603c; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---------- Topo ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-row { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { font-weight: 800; font-size: 20px; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px; }
.nav-links a:hover { color: var(--text); }
.nav .btn { margin-left: 8px; }

/* ---------- Abertura ---------- */
.hero { padding: 56px 0 72px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(36px, 5.4vw, 60px); font-weight: 800; }
.hl { color: var(--primary); }
.lead { margin-top: 20px; font-size: clamp(18px, 2vw, 20px); color: var(--muted); max-width: 34em; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.trust { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: 15px; font-weight: 600; }

.hero-art { position: relative; height: 560px; }
.phone {
  border-radius: 34px; padding: 8px; background: #111; box-shadow: var(--phone-shadow);
  border: 1px solid rgb(255 255 255 / 0.08);
}
.phone img { border-radius: 26px; width: 100%; height: auto; }
.hero-art .phone { position: absolute; width: 250px; }
.hero-art .front { right: 12%; top: 0; z-index: 2; }
.hero-art .back { right: 46%; top: 70px; opacity: 0.95; }
.tilt-left { transform: rotate(-6deg); }
.float-card {
  position: absolute; z-index: 3; display: flex; flex-direction: column;
  padding: 12px 16px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); border: 1px solid var(--border);
  font-size: 13px; color: var(--muted);
}
.float-card b { font-size: 22px; color: var(--primary); }
.fc-1 { right: 0; top: 120px; }
.fc-2 { left: 4%; bottom: 40px; }

/* ---------- Seções ---------- */
.section { padding: 88px 0; }
.section.alt { background: var(--surface); border-block: 1px solid var(--border); }
.section h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; }
.sub { margin-top: 14px; color: var(--muted); max-width: 40em; font-size: 18px; }

.cards { display: grid; gap: 20px; margin-top: 44px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.feature {
  padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.feature .ico { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--soft); font-size: 26px; }
.feature h3 { margin-top: 16px; font-size: 21px; }
.feature p { margin-top: 8px; color: var(--muted); }

.steps { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.steps li { padding: 28px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--border); }
.num {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--primary); color: var(--primary-ink); font-weight: 800;
}
.steps h3 { margin-top: 14px; font-size: 20px; }
.steps p { margin-top: 6px; color: var(--muted); }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 48px; }
.gallery figure { margin: 0; display: flex; flex-direction: column; gap: 16px; }
.gallery .phone { max-width: 240px; width: 100%; margin-inline: auto; }
.gallery figcaption { text-align: center; color: var(--muted); font-size: 15px; }
.gallery figcaption b { display: block; color: var(--text); font-size: 17px; }

.mini {
  display: flex; flex-direction: column; gap: 4px; padding: 20px; border-radius: 16px;
  background: var(--soft); text-align: left;
}
.mini span { font-size: 26px; }
.mini small { color: var(--muted); font-size: 14px; }

.quote {
  margin: 0; padding: 28px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 14px;
}
.stars { color: var(--accent); letter-spacing: 2px; font-size: 18px; }
.quote blockquote { margin: 0; font-size: 17px; flex: 1; }
.quote figcaption { display: flex; align-items: center; gap: 12px; }
.quote figcaption span:last-child { display: flex; flex-direction: column; line-height: 1.3; }
.quote small { color: var(--muted); font-size: 14px; }
.avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--soft); font-size: 22px; }
.note { margin-top: 20px; font-size: 13px; color: var(--muted); }

.faq { margin-top: 36px; display: flex; flex-direction: column; gap: 12px; }
.faq details { border: 1px solid var(--border); border-radius: 16px; background: var(--surface); padding: 4px 20px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--primary); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding-bottom: 16px; color: var(--muted); }

.final { padding: 0 0 88px; }
.final-box {
  text-align: center; padding: 56px 24px; border-radius: 28px;
  background: linear-gradient(135deg, #2f7d4f, #1f5b39); color: #fff;
}
.final-box h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; }
.final-box p { margin: 10px 0 26px; opacity: 0.9; }

/* ---------- Rodapé ---------- */
.footer { border-top: 1px solid var(--border); background: var(--surface); padding: 48px 0 24px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.foot-grid .small { margin-top: 10px; max-width: 28em; }
.footer h4 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 10px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.footer ul a { text-decoration: none; }
.footer ul a:hover { color: var(--primary); text-decoration: underline; }
.foot-bottom {
  margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted);
}

/* ---------- Tablet e celular ---------- */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .lead { margin-inline: auto; }
  .cta-row, .trust { justify-content: center; }
  .hero-art { height: 480px; max-width: 460px; width: 100%; margin-inline: auto; }
  .hero-art .phone { width: 210px; }
  .hero-art .front { right: 8%; }
  .hero-art .back { right: auto; left: 6%; }
  .cards.three, .steps { grid-template-columns: 1fr; }
  .cards.four, .gallery { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
  .section { padding: 64px 0; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .hero { padding-top: 32px; }
  .btn-lg { width: 100%; }
  .hero-art { height: 400px; }
  .hero-art .phone { width: 170px; }
  .float-card { font-size: 12px; padding: 8px 12px; }
  .float-card b { font-size: 18px; }
  .fc-1 { top: 60px; }
  .fc-2 { left: 0; bottom: 20px; }
  .gallery { gap: 18px 12px; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-bottom { flex-direction: column; }
}

[hidden] { display: none !important; }
/* Avaliações: 1, 2 ou 3 por linha, conforme quantas existem. */
.cards[data-ratings] { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 360px)); justify-content: center; }

/* ---------- Termos de uso e Política de privacidade ---------- */
.legal { padding: 48px 0 72px; }
.legal h1 { font-size: clamp(30px, 4vw, 42px); font-weight: 800; margin-bottom: 8px; }
.legal h2 { font-size: 22px; font-weight: 800; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--text); }
.legal p + p { margin-top: 10px; }
.legal ul { padding-left: 1.2em; margin: 10px 0 0; display: flex; flex-direction: column; gap: 6px; }
.legal .lead { color: var(--muted); }
.legal .note { background: var(--accent-soft); border-radius: 14px; padding: 14px 18px; margin: 24px 0 0; font-size: 15px; }
.legal mark { background: var(--accent-soft); color: inherit; border-radius: 6px; padding: 0 4px; font-weight: 700; }
