/* MoveDiet — site de divulgação (movediet.app)
   Paleta derivada do app: roxo primário, verdes do logo e o gradiente da splash. */

:root {
  --bg: #fbf8ff;
  --bg-hero-top: #e9ffee;
  --bg-hero-bottom: #c9dafa;
  --surface: #ffffff;
  --surface-2: #f1ecfa;
  --text: #1a1626;
  --text-2: #5b5670;
  --line: rgba(60, 40, 110, 0.12);
  --primary: #724fd2;
  --primary-ink: #ffffff;
  --brand-purple: #372a60;
  --brand-green: #024f34;
  --accent-green: #4d9a3c;
  --shadow: 0 12px 32px rgba(114, 79, 210, 0.14);
  --radius: 20px;
  --max: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151318;
    --bg-hero-top: #1d1a26;
    --bg-hero-bottom: #151318;
    --surface: #1f1c25;
    --surface-2: #2a2633;
    --text: #efeaf7;
    --text-2: #b3acc4;
    --line: rgba(255, 255, 255, 0.1);
    --primary: #d0bcff;
    --primary-ink: #2a1a55;
    --brand-purple: #ba9fec;
    --brand-green: #90c140;
    --accent-green: #90c140;
    --shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 {
  font-family: "Poppins", "Inter", system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.125rem); }
h3 { font-size: 1.125rem; }
p { margin: 0 0 1em; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul { padding-left: 1.25em; }

.container { width: min(var(--max), 100% - 40px); margin: 0 auto; }
.muted { color: var(--text-2); }
.center { text-align: center; }

/* Logo e marca (imagens por tema) */
.only-dark { display: none; }
@media (prefers-color-scheme: dark) {
  .only-light { display: none; }
  .only-dark { display: block; }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img.mark { width: 34px; height: 34px; }
.brand img.word { height: 22px; width: auto; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--text); font-weight: 500; font-size: 0.95rem; }
.nav a:hover { color: var(--primary); text-decoration: none; }
/* `.nav a` tem especificidade maior que `.btn-primary` e roubava a cor do
   texto do botão (texto escuro sobre roxo no claro, claro sobre lilás no
   escuro). Reafirma a cor de contraste do botão, inclusive no hover. */
.nav a.btn-primary,
.nav a.btn-primary:hover { color: var(--primary-ink); }
.lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-2);
  background: var(--surface);
}
.lang:hover { color: var(--primary); text-decoration: none; border-color: var(--primary); }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
}
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
  .nav .lang { align-self: flex-start; margin-top: 10px; padding: 8px 14px; }
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: var(--primary-ink); box-shadow: var(--shadow); }
.btn-outline { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn-outline:hover { border-color: var(--primary); }
.btn .small { display: block; font-size: 0.7rem; font-weight: 500; opacity: 0.8; line-height: 1; }
.btn .big { display: block; line-height: 1.15; }
.btn svg { width: 22px; height: 22px; flex: none; }

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--bg-hero-top) 0%, var(--bg-hero-bottom) 100%);
  padding: 72px 0 40px;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero .eyebrow {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 14%, transparent);
  color: var(--brand-purple);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero h1 { color: var(--brand-purple); }
.hero h1 .green { color: var(--brand-green); }
.hero .lead { font-size: 1.15rem; color: var(--text-2); max-width: 34rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 14px; }
.hero .note { font-size: 0.85rem; color: var(--text-2); }
.phone {
  justify-self: center;
  width: min(320px, 80vw);
  padding: 12px;
  border-radius: 44px;
  background: #16131c;
  box-shadow: 0 30px 60px rgba(30, 20, 60, 0.35);
}
.phone img { border-radius: 34px; }
@media (max-width: 860px) {
  .hero { padding-top: 48px; }
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero .actions { justify-content: center; }
  .phone { margin-top: 8px; }
}

/* Seções */
.section { padding: 80px 0; }
.section-title { max-width: 40rem; margin-bottom: 40px; }
.section-title p { color: var(--text-2); font-size: 1.05rem; }
.alt { background: var(--surface-2); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.card .icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  background: color-mix(in srgb, var(--primary) 14%, transparent);
  color: var(--primary);
}
.card .icon svg { width: 24px; height: 24px; }
.card p { color: var(--text-2); margin: 0; font-size: 0.95rem; }

.steps { counter-reset: step; }
.step { position: relative; padding-left: 64px; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  background: var(--primary);
  color: var(--primary-ink);
}

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.chip {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.9rem;
  font-weight: 500;
}

/* FAQ */
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 4px 22px;
  margin-bottom: 12px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 14px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--text-2); padding-bottom: 14px; margin: 0; }

/* CTA final */
.cta {
  background: linear-gradient(135deg, var(--bg-hero-top), var(--bg-hero-bottom));
  border-radius: 28px;
  padding: 56px 32px;
  text-align: center;
}
.cta h2 { color: var(--brand-purple); }
.cta .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 22px; }

/* Rodapé */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; font-size: 0.9rem; color: var(--text-2); }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { color: var(--text-2); }
.site-footer a:hover { color: var(--primary); }

/* Páginas legais */
.legal { padding: 56px 0 80px; }
.legal .container { max-width: 760px; }
.legal h1 { margin-bottom: 8px; }
.legal .updated { color: var(--text-2); font-size: 0.9rem; margin-bottom: 36px; }
.legal h2 { font-size: 1.35rem; margin-top: 40px; }
.legal h3 { font-size: 1.05rem; margin-top: 24px; }
.legal li { margin-bottom: 6px; }
.legal .box {
  background: var(--surface-2);
  border-left: 4px solid var(--primary);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 24px 0;
}
.legal table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 0.95rem; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { color: var(--text-2); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; }

/* Aviso de idioma */
.lang-hint {
  display: none;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
  text-align: center;
  padding: 10px 20px;
}
.lang-hint.show { display: block; }
.lang-hint button {
  margin-left: 12px;
  background: none;
  border: 0;
  color: var(--text-2);
  cursor: pointer;
  font-size: 0.85rem;
}
