/* ==========================================================
   Pierre Benazzi — Consultoria de Software
   Tokens: mude as cores aqui. Se mudar --bg, rode de novo
   scripts/tratar_foto.py com --fundo igual a --bg.
   ========================================================== */
:root {
  --bg: #2B2E33;
  --surface: #33373D;
  --surface-2: #3A3F46;
  --border: #474C54;
  --divider: #3E434A;
  --text: #F2F3F5;
  --muted: #C3C8D0;
  --dim: #A3AAB4;
  --accent: #B8A6FF;
  --on-accent: #1E1B2E;

  --p-alta: #F8A0A0;
  --p-media: #FCD34D;
  --p-baixa: #86EFC4;

  --font-sans: "Space Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --container: 1200px;
  --container-narrow: 1100px;
  --radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }

.mono { font-family: var(--font-mono); }
.accent { color: var(--accent); }
.muted { color: var(--muted); }

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

section { scroll-margin-top: 24px; }
.section { padding-top: 96px; padding-bottom: 96px; }
.section-title { font-size: clamp(32px, 4vw, 44px); font-weight: 700; letter-spacing: -0.02em; }

/* ---------- Botões ---------- */
.btn {
  display: inline-block;
  text-decoration: none;
  border-radius: 999px;
  padding: 16px 26px;
  font-weight: 700;
  font-size: 16px;
  transition: transform .15s ease, filter .15s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn:focus-visible, .nav a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--secondary { background: var(--surface-2); color: var(--text); font-weight: 600; }
.btn--outline { border: 1px solid var(--accent); padding: 10px 18px; font-weight: 500; font-size: 15px; }

/* ---------- Nav ---------- */
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 22px; }
.nav__brand { font-family: var(--font-mono); font-weight: 700; font-size: 16px; text-decoration: none; }
.nav__links { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; font-size: 15px; }
.nav__links a:not(.btn) { color: var(--muted); text-decoration: none; }
.nav__links a:not(.btn):hover { color: var(--text); }

/* ---------- Hero ---------- */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding-top: 24px; padding-bottom: 64px; }
.hero__text { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.hero__tag { font-family: var(--font-mono); font-size: 13px; letter-spacing: .08em; color: var(--accent); border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px; }
.hero h1 { font-size: clamp(42px, 6vw, 72px); line-height: 1.02; font-weight: 700; letter-spacing: -0.035em; }
.hero__lead { font-size: 20px; line-height: 1.6; color: var(--muted); max-width: 580px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__photo { flex: 1 1 380px; min-width: 0; position: relative; }
.hero__badge {
  position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%);
  width: max-content; max-width: calc(100% - 24px); text-align: center;
  display: flex; align-items: center; gap: 10px;
  background: rgba(43, 46, 51, .9); border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px;
  font-family: var(--font-mono); font-size: 13px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--p-baixa); }

/* ---------- Relatório Raio-X ---------- */
.report { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.report__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 16px 24px; border-bottom: 1px solid var(--border); font-family: var(--font-mono); font-size: 14px; color: var(--muted); }
.report__row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 18px 24px; border-bottom: 1px solid var(--divider); }
.report__row:last-child { border-bottom: 0; }
.report__prio { font-family: var(--font-mono); font-size: 13px; color: #1A1C20; padding: 5px 10px; border-radius: 6px; min-width: 64px; text-align: center; }
.prio--alta { background: var(--p-alta); }
.prio--media { background: var(--p-media); }
.prio--baixa { background: var(--p-baixa); }
.report__title { flex: 1 1 280px; min-width: 0; font-size: 18px; }
.report__effort { font-family: var(--font-mono); font-size: 14px; color: var(--muted); }

/* ---------- Sintomas ---------- */
.symptoms { display: flex; flex-direction: column; margin-top: 32px; }
.symptom { display: flex; flex-wrap: wrap; gap: 24px; padding: 26px 0; border-top: 1px solid var(--border); }
.symptom__q { flex: 1 1 380px; min-width: 0; font-size: 22px; font-weight: 600; }
.symptom__a { flex: 1 1 380px; min-width: 0; font-size: 17px; line-height: 1.6; color: var(--muted); }

/* ---------- Processo ---------- */
.band { background: var(--surface); border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); }
.steps { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 48px; }
.step { flex: 1 1 220px; min-width: 0; background: var(--bg); border: 1px solid var(--border); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.step__day { font-family: var(--font-mono); font-size: 14px; color: var(--accent); }
.step__title { font-size: 20px; font-weight: 700; }
.step__text { font-size: 15px; line-height: 1.6; color: var(--muted); }

/* ---------- Trabalhos ---------- */
.cases { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }
.case { min-width: 0; min-height: 280px; border-radius: var(--radius); padding: 36px; background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; }
.case--big { flex: 2 1 520px; }
.case--small { flex: 1 1 300px; }
.case--wide { flex: 1 1 100%; min-height: 0; padding: 32px 36px; flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.case__tag { font-family: var(--font-mono); font-size: 13px; color: var(--accent); }
.case__name { font-size: 30px; font-weight: 700; }
.case__text { font-size: 17px; line-height: 1.6; color: var(--muted); }

/* ---------- Citação ---------- */
.quote { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.3; font-weight: 500; letter-spacing: -0.015em; }
.quote span { color: var(--dim); }
.quote-author { margin-top: 24px; font-family: var(--font-mono); font-size: 15px; color: var(--accent); }

/* ---------- CTA final ---------- */
.cta { border: 1px solid var(--accent); border-radius: 24px; padding: 64px 40px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 32px; }
.cta__text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.cta h2 { font-size: clamp(30px, 3.6vw, 40px); font-weight: 700; letter-spacing: -0.02em; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--divider); }
.footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; padding-bottom: 24px; font-family: var(--font-mono); font-size: 13px; color: var(--dim); }
.footer a { color: var(--dim); text-decoration: none; }
.footer a:hover { color: var(--text); }

/* ---------- WhatsApp flutuante (celular) ---------- */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 50;
  display: none; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}
@media (max-width: 720px) {
  .wa-float { display: flex; }
  .section { padding-top: 72px; padding-bottom: 72px; }
  .cta { padding: 40px 24px; }
}

@media (max-width: 960px) {
  .hero__photo { flex: 0 1 auto; width: 100%; max-width: 440px; margin: 0 auto; }
}

@media (max-width: 720px) {
  .case { min-height: 0; padding: 28px 24px; }
}

@media (max-width: 380px) {
  .hero__tag { font-size: 11px; padding: 6px 12px; }
  .hero__lead { font-size: 18px; }
  .hero__badge { font-size: 12px; padding: 10px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* ---------- Texto de apoio e FAQ ---------- */
.section-intro { margin-top: 16px; max-width: 640px; font-size: 18px; line-height: 1.6; color: var(--muted); }
.section-intro strong { color: var(--text, inherit); }
.faq { margin-top: 32px; display: flex; flex-direction: column; gap: 12px; }
.faq details { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 18px 22px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-family: var(--font-mono); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 12px; color: var(--muted); line-height: 1.6; }
